@charset "utf-8";

/* ========================================================================== 
   header.css - N-1 TAXI PORTAL [Final Reconstruction - Premium & Fixed Edition]
   - PC：ゆとりある「80px」設計。視認性と企業の品格を最大化
   - SP：スマートな「60px」を維持。アコーディオンに滑らかなスライドを実装
   - 挙動：常時固定（Fixed）により、利便性とコンバージョン導線を確保
   - アイコン：V字シェブロンによる洗練されたアニメーション
   - FIX：下ラインにゴールド(2px)を配置。高さの整合性を完全維持
   ========================================================================== */

/* --- 0. ブラウザ固有の余白リセット・コンテンツ被り防止設定 --- */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* ヘッダーが position: fixed のため、その高さ分bodyを押し下げます */
body {
    padding-top: 80px; /* PC用ヘッダー高さ */
}

@media (max-width: 1024px) {
    body {
        padding-top: 60px; /* SP用ヘッダー高さ */
    }
}

/* --- 0. レスポンス表示制御 --- */
.sp-only { display: none !important; }

@media (max-width: 1024px) {
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
    .sp-menu.sp-only.is-open { display: flex !important; }
}

/* --- 1. 全体設定（常時固定） --- */
.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    position: fixed; /* 常にトップに表示 */
    top: 0;
    left: 0;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 84, 164, 0.08);
    height: 80px; /* PC版：固定高さ */
    /* 下ラインをゴールド 2px に設定 */
    border-bottom: 2px solid #d4a74a;
    box-sizing: border-box;
    transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.site-header.is-scrolled { 
    background: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 78px; /* 80px(全体) - 2px(ボーダー) = 78px */
    position: relative;
}

@media (max-width: 1200px) {
    .header-inner { padding-left: 20px; }
}

/* --- 2. ロゴエリア --- */
.header-brand {
    flex-shrink: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    height: 100%;
}
.brand-logo-wrapper img { 
    height: 54px; /* PC版：視認性アップ */
    width: auto; 
}
.brand-link { display: block; text-decoration: none !important; border: none !important; }

/* --- 3. PCナビゲーション --- */
.header-right-box {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-nav { height: 100%; }

.header-nav > ul {
    display: flex;
    list-style: none !important;
    padding: 0;
    margin: 0;
    height: 100%;
}

.header-nav > ul > li {
    position: relative;
    height: 100%;
    list-style: none !important;
}

/* 区切り線の位置調整 */
.header-nav > ul > li:not(:last-child)::after {
    content: "";
    width: 1px;
    height: 16px;
    background: #e0e0e0;
    transform: rotate(20deg);
    position: absolute;
    right: 0;
    top: 31px; 
    opacity: 0.7;
}

.header-nav a {
    color: #444444 !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 15px; 
    padding: 0 45px 0 25px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
    text-align: center;
}

.header-nav a span {
    display: block;
    font-size: 10px;
    color: #d4a74a;
    font-weight: 700;
    margin-top: 4px;
}

.header-nav a:hover { color: #d4a74a !important; }

/* PC版ドロップダウン（V字シェブロン） */
@media (min-width: 1025px) {
    .has-child > a::before,
    .has-child > a::after {
        content: "";
        position: absolute;
        right: 18px;
        top: 50%;
        width: 8px;
        height: 1.5px;
        background-color: #d4a74a;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
        border-radius: 2px;
    }
    
    .has-child > a::before { transform: translateX(-3px) rotate(45deg); } 
    .has-child > a::after { transform: translateX(2px) rotate(-45deg); }    

    .has-child.is-active > a::before { 
        transform: translateX(-3px) translateY(-2px) rotate(-45deg); 
        background-color: #0054a4; 
    }
    .has-child.is-active > a::after { 
        transform: translateX(2px) translateY(-2px) rotate(45deg); 
        background-color: #0054a4; 
    }

    .dropdown-menu {
        position: absolute;
        top: 78px; /* innerの高さに合わせる */
        left: 0;
        min-width: 180px;
        background: #f9f9f9;
        opacity: 0; 
        visibility: hidden;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.4s;
        z-index: 1000;
        list-style: none !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .has-child.is-active .dropdown-menu { 
        opacity: 1; 
        visibility: visible; 
        max-height: 500px; 
        padding-bottom: 10px; 
        border-top: 1px solid #eee;
    }

    .dropdown-menu li { list-style: none !important; }
    .dropdown-menu a { padding: 14px 20px !important; font-size: 14px !important; align-items: flex-start !important; height: auto !important; color: #666 !important; text-align: left; }
}

/* お問い合わせボタン（PC：右固定・左カット） */
.header-info { height: 100%; }
.header-info .button-link {
    background: #0054a4;
    color: #ffffff !important;
    padding: 0 40px 0 50px; 
    height: 100%;
    border-radius: 0; 
    text-decoration: none !important;
    font-weight: 900;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    clip-path: polygon(25px 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: background-color 0.3s ease;
}
.header-info .button-link:hover {
    background: #d4a74a;
}
.header-info .button-link::before { content: "✉"; font-size: 1.4em; }

/* --- 4. レスポンシブ (Mobile) --- */
@media (max-width: 1024px) {
    .site-header { height: 60px; }
    .header-inner { display: flex !important; padding: 0; height: 58px; /* 60px - 2px = 58px */ justify-content: center; }
    .header-brand { position: relative; height: 100%; }
    .brand-logo-wrapper img { height: 38px; }

    /* SPお問い合わせボタン（左固定・右カット） */
    .sp-reserve-accent {
        position: absolute; left: 0; top: 0; z-index: 20;
        background: #0054a4 !important; color: #ffffff !important;
        height: 100%; padding: 0 20px 0 12px; 
        font-weight: 800; font-size: 12px;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        text-decoration: none !important; line-height: 1.1; gap: 2px;
        clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    }

    .sp-menu-btn {
        position: fixed; right: 10px; top: 8px; width: 44px; height: 44px;
        background: #ffffff; border-radius: 50%; border: 2px solid #0054a4;
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; 
        z-index: 999999 !important;
    }
    .sp-menu-btn .line { width: 20px; height: 2px; background: #0054a4; transition: 0.4s; }
    .sp-menu-btn.is-active { background: #0054a4; }
    .sp-menu-btn.is-active .line { background: #ffffff !important; }

    .sp-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #ffffff !important;
        z-index: 999998 !important;
        display: flex; flex-direction: column;
        padding-top: 80px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        clip-path: circle(0% at 92% 5%); transition: clip-path 0.6s ease-in-out;
        visibility: hidden;
    }
    .sp-menu::-webkit-scrollbar { display: none; }
    .sp-menu { -ms-overflow-style: none; scrollbar-width: none; }
    .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%; }
    .sp-menu > ul:last-child { padding-bottom: 120px; }
    .sp-menu li { list-style: none !important; padding: 0; margin: 0; border-bottom: 1px solid #f5f5f5; }

    .sp-menu .has-child > a, 
    .sp-menu li > a { 
        position: relative; 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        justify-content: center;
        padding: 25px 20px;
        text-align: center;
        min-height: 80px;
        text-decoration: none;
        background: #ffffff;
        transition: background-color 0.3s ease;
    }

    .sp-menu a { font-size: 22px; font-weight: 900; color: #444 !important; }
    .sp-menu a span { display: block; font-size: 11px; color: #d4a74a; margin-top: 6px; }

    /* SP版：V字シェブロン */
    .sp-menu .has-child > a::before,
    .sp-menu .has-child > a::after {
        content: "";
        position: absolute;
        right: 25px;
        top: 50%;
        width: 10px;
        height: 2px;
        background-color: #d4a74a;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
        border-radius: 2px;
    }
    .sp-menu .has-child > a::before { transform: translateX(-4px) rotate(45deg); } 
    .sp-menu .has-child > a::after { transform: translateX(3px) rotate(-45deg); }    

    .sp-menu .has-child.is-active > a::before { 
        transform: translateX(-4px) translateY(-2px) rotate(-45deg); 
        background-color: #0054a4; 
    }
    .sp-menu .has-child.is-active > a::after { 
        transform: translateX(3px) translateY(-2px) rotate(45deg); 
        background-color: #0054a4; 
    }

    .sp-menu .dropdown-menu {
        width: 100%; 
        background: #f8f9fa !important;
        display: block;      
        max-height: 0;        
        opacity: 0; 
        overflow: hidden;    
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        flex-direction: column;
        z-index: 10;
        position: relative;
    }
    .sp-menu .has-child.is-active > .dropdown-menu { 
        max-height: 1000px; 
        opacity: 1; 
        border-top: 1px solid #eee;
    }
    .sp-menu .dropdown-menu li { border-bottom: 1px solid #eeeeee; width: 100%; display: flex; justify-content: center; background: #f8f9fa; }
    .sp-menu .dropdown-menu a { 
        display: inline-flex;
        width: auto;
        min-width: 220px;
        box-sizing: border-box;
        font-size: 17px; 
        padding: 18px 0;
        color: #666 !important; 
        font-weight: 700;
        align-items: center;        
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 15px;
        border-left: 4px solid #d4a74a; 
        padding-left: 20px;
        min-height: auto;
    }
}

/* --- スライダーとの干渉防止 --- */
body.is-menu-open .main-visual-slider, 
body.is-menu-open .swiper-container,
body.is-menu-open .slick-slider,
body.is-menu-open .l-main-visual,
body.is-menu-open #main-visual,
body.is-menu-open section[class*="slider"] {
    display: none !important;
}

/* --- キャッチコピー --- */
.text-group.align-left { position: relative; z-index: 5; padding: 20px; }
.text-group.align-left::before {
    content: ""; position: absolute; top: -10%; left: -20%; width: 140%; height: 140%;
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1; filter: blur(15px);
}
.slide-title {
    color: #000 !important;
    text-shadow: 0 0 15px #fff, 0 0 30px rgba(255, 255, 255, 0.6), 0 0 45px rgba(255, 255, 255, 0.3);
}
.slide-title .line-wrap:nth-of-type(2) { padding-left: 2em; display: inline-block; }