/* 共通ヘッダー・フッタースタイル */

/* モバイル版のiPhone時計部分の白い帯（PC版では非表示） */
.mobile-status-bar {
    display: none;
}

/* ヘッダー背景（深緑の帯） */
.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #1a4d3a;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ヘッダーコンテンツ */
.header-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* PC版でも通常ナビゲーションを非表示 */
.navigation {
    display: none !important;
}

.nav-menu {
    display: flex !important;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #b8d4c8;
}

/* ハンバーガーメニュー - PC・モバイル両対応 */
.hamburger-menu {
    display: block !important;
    /* 🟢 PC版でも表示してテスト可能に */
    position: fixed !important;
    top: -2px !important;
    /* 画面上端から-2px（ヘッダー内に収める） */
    right: 20px !important;
    /* 🟢 画面右端から20px */
    z-index: 999999998 !important;
    /* 🟢 最前面に表示 */
    background: rgba(26, 77, 58, 0.9);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.hamburger-text {
    color: white;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hamburger-icon {
    width: 35px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-line {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 2px 0;
    display: block;
    opacity: 1;
    visibility: visible;
}

/* モバイルメニューオーバーレイ */
#mobileMenuOverlay {
    position: fixed !important;
    top: 0 !important;
    right: -400px !important;
    width: 300px !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.95) !important;
    z-index: 999999999 !important;
    padding: 80px 40px !important;
    transition: right 0.3s ease !important;
}

/* PC版でもスライドメニューを表示 */
#mobileMenuOverlay {
    display: block !important;
}

#mobileMenuOverlay.active {
    right: 0px !important;
    /* 🔥 IDセレクタで確実に適用 */
}


.mobile-menu-header {
    margin-bottom: 30px;
}

.mobile-menu-title {
    color: #333;
    /* 🟢 リザーブページと同じ色 */
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* 🟢 絶対位置 */
    top: 20px;
    right: 20px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    display: block;
    /* 🟢 リザーブページと同じスタイル */
    color: #333;
    /* 🟢 ダークグレー */
    text-decoration: none;
    padding: 15px 0;
    /* 🟢 上下パディングのみ */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* 🟢 下線 */
    font-size: 18px;
    font-weight: 300;
    /* 🟢 細めのフォント */
    transition: opacity 0.3s ease;
    /* 🟢 ホバーエフェクト */
}

.mobile-menu-item:hover {
    opacity: 0.7;
    /* 🟢 ホバー時に透明度変化 */
}

/* フッタースタイル */
.t-style-footer {
    background: #1a4d3a;
    color: white;
    padding: 60px 0 20px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    text-align: left;
}

.t-style-footer .footer-brand .footer-logo {
    font-size: 48px;
    font-weight: 300;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 8px;
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 1px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: white;
}

.footer-social {
    text-align: right;
}

.social-list {
    list-style: none;
    padding: 0;
}

.social-list li {
    margin-bottom: 15px;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

   /* モバイル版でハンバーガーメニューを表示 */
    .hamburger-menu {
        display: block !important;
    }

    /* モバイル版でPC用ナビゲーションを非表示 */
    .navigation {
        display: none !important;
    }

    /* モバイル版のiPhone時計部分の白い帯 - iOS Safari専用 */
    .mobile-status-bar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 44px !important;
        /* 🔥 Chromeサポート：固定値に変更 */
        background: white !important;
        z-index: 2147483648 !important;
    }

    /* ヘッダー背景を時計部分の下から開始 - Chrome対応 */
    .header-background {
        position: fixed !important;
        /* 🔥 モバイル版でも固定を明示 */
        top: 44px !important;
        height: 80px !important;
    }

    .header-content {
        position: fixed !important;
        /* 🔥 モバイル版でも固定を明示 */
        top: 44px !important;
    }

    /* 🟢 モバイル版ハンバーガーメニュー位置調整 */
    #hamburgerMenuBtn {
        display: block !important;
        /* 🟢 モバイル版で確実に表示 */
        position: fixed !important;
        top: 4px !important;
        /* シンプルに4px */
        /* 🟢 ステータスバー + マージン */
        right: 20px !important;
        /* 🟢 右端から20px */
        z-index: 999999998 !important;
        background: rgba(26, 77, 58, 0.95) !important;
        /* 🟢 少し濃く */
    }

    .navigation {
        display: none !important;
    }

    /* フッター調整 */
    .t-style-footer {
        padding: 60px 0 30px 0;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .t-style-footer .footer-brand .footer-logo {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .footer-social {
        text-align: left;
    }

    /* 🔥 iOS Safari専用の追加スタイル（env()関数をサポートする場合のみ適用）*/
    @supports (top: env(safe-area-inset-top)) {
        .mobile-status-bar {
            height: env(safe-area-inset-top, 44px) !important;
        }

        .header-background {
            top: env(safe-area-inset-top, 44px) !important;
        }

        .header-content {
            top: env(safe-area-inset-top, 44px) !important;
        }

        .hamburger-menu {
            top: calc(25px + env(safe-area-inset-top, 44px)) !important;
        }
    }
}