/* index.html と下層ページで共有するヘッダー・フッター */
body {
    overflow-x: hidden;
}

.header-logo,
.footer-logo {
    width: auto;
    object-fit: contain;
}

.footer-logo {
    filter: brightness(0) invert(1);
}

.bg-accent-orange {
    background-color: #F25A00 !important;
}

.hamburger-lines {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-lines .line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #1e293b;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#menu-toggle.open .line1 { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open .line2 { opacity: 0; }
#menu-toggle.open .line3 { transform: translateY(-8px) rotate(-45deg); }

@media (min-width: 721px) {
    html {
        font-size: 1.111111vw;
    }

    .container {
        max-width: 73.75rem !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.875rem;
        padding-right: 1.875rem;
    }

    #main-header {
        height: 6.875rem;
        min-height: 6.875rem;
    }

    #main-header .container {
        width: 90rem;
        max-width: 100% !important;
        margin: 0 auto;
        padding-left: 3.75rem;
        padding-right: 0 !important;
    }

    .logo-container {
        width: 16.875rem;
        margin-right: 1.5rem;
        flex-shrink: 0;
    }

    .header-logo {
        width: 100% !important;
        height: auto !important;
    }

    .nav-link { font-size: 1rem; }
    .nav-container { gap: 1rem; flex-shrink: 1; }
    .header-btn-group { margin-left: auto; height: 100%; display: flex; flex-shrink: 0; }
    .header-btn { width: 11.25rem; padding: 0 0.5rem; font-size: 0.9375rem; }
    .header-btn i { width: 1.375rem; height: 1.375rem; max-width: 1.375rem; max-height: 1.375rem; }
}

/* index と同じく1280pxでリキッド拡大を停止 */
@media (min-width: 1280px) {
    html {
        font-size: 14.22222px;
    }
}

@media (max-width: 1024px) {
    .desktop-nav { display: none !important; }
    .mobile-toggle-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
    }
    #mobile-menu { padding-top: 7.5rem; }
    .hidden-header-inside-menu { display: none !important; }
}

@media (min-width: 1025px) {
    .desktop-nav { display: flex !important; }
    .mobile-toggle-btn { display: none !important; }
}

@media (max-width: 720px) {
    html { font-size: 16px !important; }
    #main-header { height: 4.375rem; min-height: 4.375rem; }
    #main-header .container { padding-left: 1.25rem; padding-right: 0.5rem !important; }
    .logo-container { width: 11.25rem !important; margin-right: 0; }
    #mobile-menu { padding-top: 6rem; }
}

