/* =======================================
   Header Style (Sticky & Responsive)
   ======================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 3.281vw 0 1.719vw; /* 0 42px 0 22px / 12.8 */
    height: 7.109vw; /* 91px / 12.8 */
    box-sizing: border-box;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: #0a4ca1;
    margin-right: 0;
    padding-top: 1.172vw; /* 15px / 12.8 */
    flex-shrink: 0;
}

.logo-img {
    height: auto;
    display: block;
}

.logo-img.pc-only {
    width: 30vw; /* 384px / 12.8 */
}

.logo-sub {
    font-size: 1.094vw; /* 14px / 12.8 */
    font-weight: bold;
    color: #0a4ca1;
    letter-spacing: 0.05em;
    margin-top: 0.391vw; /* Moved up: 5px / 12.8 (was 9px) */
    margin-left: 21.953vw; /* 281px / 12.8 */
    font-family: 'mplus-1p-bold', 'M+ 1p', sans-serif;
    line-height: 1;
}

.global-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
    margin-left: 10.313vw; /* 132px / 12.8 */
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.813vw; /* 36px / 12.8 */
    margin-top: 0.781vw; /* 10px / 12.8 */
}

.nav-list a {
    text-decoration: none;
    color: #0c4da2;
    font-weight: 500;
    font-size: 1.406vw; /* 18px / 12.8 */
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.08em;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.nav-list a:hover {
    opacity: 0.7;
}

.entry-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13.069vw; /* 167.287 / 12.8 */
    height: 5.754vw; /* 73.649 / 12.8 */
    margin-left: auto;
    margin-top: 0.443vw; /* 5.675 / 12.8 */
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-style: italic;
    font-size: 2.188vw; /* 28px / 12.8 */
    font-family: Arial, sans-serif;
    letter-spacing: 0.047em;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.entry-btn:hover {
    transform: scale(1.05);
}

.entry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.entry-text {
    z-index: 1;
    padding-bottom: 5px; /* Visual centering adjustment */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #0c4da2;
    transition: 0.3s;
}

.hamburger-text {
    font-size: 10px;
    color: #0c4da2;
    margin-top: 2px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.sp-only { display: none; }
.pc-only { display: block; }

/* Hide redundant SVG header elements when HTML header is present */
svg [id$="logo"],
svg [id$="logo-2"],
svg [id$="logo_サブ"],
svg [id$="ENTRY-ボタン"],
svg [id$="ENTRY-パス"],
svg [id$="ENTRY-テキスト"],
svg [id$="バナー-テキスト"],
svg [id$="menu-ボタン"],
svg [id$="メニュー-テキスト"],
svg [id$="バナー"] {
    display: none !important;
}

/* Response (SP) */
@media screen and (max-width: 768px) {
    .sp-only { display: flex; }
    .pc-only { display: none; }

    .header-inner {
        justify-content: space-between;
        height: 71px; /* Matches SP SVG viewBox width/height ratio or clipPath */
        padding: 0 10px;
    }

    .logo {
        padding-top: 11px; /* Matches (15-4) in SP translate */
    }

    .logo-img.sp-only {
        width: 218px; /* Matches width="218" */
    }

    .logo-sub {
        font-size: 9px;
        margin-left: 114px; /* Matches 123 - 9 = 114 approx */
        margin-top: 2px; /* Moved up (was 5px) */
    }

    .global-nav {
        position: fixed;
        top: 71px;
        left: 0;
        width: 100%;
        margin-left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px 0;
        box-sizing: border-box;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .global-nav.is-open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        margin-top: 0;
    }

    .nav-list a {
        font-size: 16px;
    }

    .entry-btn {
        margin-left: 0;
        margin-top: 20px;
        width: 130px;
        height: 57px;
        font-size: 20px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.is-active .hamburger-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .hamburger.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}
