@charset "utf-8";

/* ========================================================================== 
   header.css - N-1 TRAVEL [Wide-Screen Optimized & Split Design Full Edition]
   - ロゴエリア: 画面左端からロゴ直下までを白背景、右端を斜め20度でカット
   - ヘッダー全体: 濃紺 (#0c3770) をベースに設定
   - ナビゲーション: 各店舗詳細へのアンカーリンク設定
   ========================================================================== */

/* --- 0. レスポンシブ表示制御 --- */
.sp-only { display: none !important; }

@media (max-width: 768px) {
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
    /* JS制御と連動 */
    .sp-menu.is-open { display: flex !important; }
}

/* --- 1. 全体設定 --- */
.site-header {
    width: 100%;
    /* ウルトラワイド対策：bodyのmax-width(1920px)に合わせて中央配置 */
    max-width: 1920px;
    left: 50% !important;
    transform: translateX(-50%);

    background: #0c3770 !important; /* ヘッダー全体を濃紺に固定 */
    position: fixed;
    top: 0;
    /* left: 0; は中央配置ロジック(50%)へ変更したため削除 */
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid #e5c17b;
    height: 90px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.4s ease;
}

.site-header.is-scrolled { 
    height: 75px; 
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

/* --- 2. ロゴエリア --- */
.header-brand {
    flex-shrink: 0;
    z-index: 10001;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 65px;
}

.header-brand::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    /* ウルトラワイド画面で白背景が途切れないよう左側を拡張 */
    left: -3000px; 
    right: 0;
    background: #ffffff;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
}

.brand-link { display: block; text-decoration: none !important; }
.brand-logo-wrapper { display: flex; align-items: center; }

@media (min-width: 769px) {
    .brand-logo-wrapper img { 
        height: 55px; 
        width: auto; 
    }
}

/* --- 3. PCナビゲーション (電話番号テキスト＋アンカーリンク) --- */
.header-nav {
    height: 100%;
    margin-left: auto;
}

.header-nav ul {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.header-nav li {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-nav li:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg);
    margin: 0 5px;
}

.header-nav a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.05em;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.3s ease;
}

.header-nav a:hover {
    color: #e5c17b !important;
    transform: translateY(-2px);
}

/* サブテキスト(電話番号)の設定 */
.header-nav a span {
    font-size: 12px;
    color: #e5c17b;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 0.05em;
    font-family: 'Oswald', sans-serif;
}

/* --- 4. アンカーリンク位置調整 (追加) --- */
/* 固定ヘッダーに重ならないようにスクロール位置を調整 */
#kagoshima, #tokunoshima, #info {
    scroll-margin-top: 100px;
}

/* --- 5. レスポンシブ (SP) --- */
@media (max-width: 768px) {
    .site-header { 
        height: 70px; 
        max-width: 100%;
        left: 0 !important;
        transform: none;
    }

    .header-inner {
        display: block !important; 
        padding: 0 15px;
    }

    .header-brand {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        padding-left: 15px;
        padding-right: 45px;
    }

    .header-brand::before {
        left: 0;
        clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
    }
    
    .brand-logo-wrapper { height: 32px; } 
    .brand-logo-wrapper img { 
        height: 100%; 
        width: auto; 
    }

    /* ハンバーガーボタン */
    .sp-menu-btn {
        position: fixed; 
        right: 15px;
        top: 13px;
        width: 44px; 
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex !important; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        gap: 5px; 
        border: 2px solid #ffffff; 
        z-index: 11000; 
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sp-menu-btn .line { 
        display: block;
        width: 22px; 
        height: 2px; 
        background: #ffffff !important; 
        transition: 0.4s;
    }

    .sp-menu-btn.is-active {
        background: #e5c17b;
        border-color: #e5c17b;
    }
    .sp-menu-btn.is-active .line { background: #0c3770 !important; }

    /* SPメニューパネル */
    .sp-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98); 
        z-index: 10500;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        clip-path: circle(0% at 92% 5%); 
        transition: clip-path 0.7s cubic-bezier(0.19, 1, 0.22, 1);
        visibility: hidden;
        overflow: hidden;
    }

    .sp-menu.is-open {
        clip-path: circle(150% at 92% 5%);
        visibility: visible;
    }

    .sp-menu ul { list-style: none !important; padding: 0; margin: 0; width: 100%; text-align: center; }

    .sp-menu li {
        opacity: 0; transform: translateY(30px);
        transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .sp-menu.is-open li { opacity: 1; transform: translateY(0); }
    .sp-menu.is-open li:nth-child(n) { transition-delay: calc(0.1s * var(--i, 1)); }

    .sp-menu a {
        display: block; padding: 15px 20px; color: #0c3770 !important;
        text-decoration: none !important; font-size: 20px; font-weight: 900;
        line-height: 1.4;
    }
    .sp-menu a span { 
        display: block; 
        font-size: 15px; 
        color: #d4a74a; 
        margin-top: 4px; 
        font-family: 'Oswald', sans-serif;
        font-weight: 700;
    }

    .sp-menu li:last-child { margin-top: 25px; padding: 0 40px; }
    
    .sp-menu a.sp-menu-reserve {
        background: #0c3770 !important; 
        padding: 18px;
        clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
        color: #ffffff !important;
    }
    .sp-menu a.sp-menu-reserve span { color: rgba(255, 255, 255, 0.7); }
}