/* ==============================================
   ヘッダー基本スタイル
   ============================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ==============================================
   サイトロゴ
   ============================================== */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-logo a:hover {
    color: #0073aa;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* ==============================================
   メインナビゲーション（デスクトップ）- 2段表示対応
   ============================================== */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    text-align: center;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #0073aa;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
}

/* PCメニュー - メニューテキストコンテナ */
.nav-menu .menu-text {
    display: block;
}

/* PCメニュータイトル（上段） */
.nav-menu .menu-text > :first-child,
.nav-menu .menu-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    display: block;
}

/* PCメニュー説明（下段） */
.nav-menu .menu-description {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1.2;
    white-space: nowrap;
    display: block;
}

/* ホバー時の説明文の色変更 */
.nav-menu a:hover .menu-description {
    opacity: 1;
}

/* サブメニューがある場合のスタイル */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 10px;
    padding: 0.5rem 0;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

.nav-menu .sub-menu li {
    margin: 0;
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: none;
    white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
    background-color: #f8f9fa;
}

.nav-menu .sub-menu a::after {
    display: none;
}

/* ==============================================
   CTAボタン（デスクトップ）
   ============================================== */
.header-cta {
    flex-shrink: 0;
    margin-left: 1rem;
}

.cta-button {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%);
    color: white !important;
}

/* ==============================================
   ハンバーガーメニューボタン（モバイル）
   ============================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 18px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    margin: 2px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 開いた時黒い「×」に変化 */
.menu-toggle.active span {
    background-color: #000000;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ==============================================
   モバイルナビゲーション
   ============================================== */
.mobile-navigation {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mobile-navigation.active {
    opacity: 1;
    visibility: visible;
}

/* モバイルメニュー */
.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-menu li {
    margin: 1rem 0;
}

.mobile-menu a {
    display: block;
    color: #fff !important;
    text-decoration: none;
    padding: 0.8rem 0;
    transition: color 0.3s ease;
    text-align: center;
}

.mobile-menu a:hover {
    color: #0073aa !important;
}

/* モバイル用メニューコンテンツ（統一コンテナ） */
.mobile-menu .mobile-menu-content {
    display: block;
}

/* モバイル用メニュー名（上段） */
.mobile-menu .mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    display: block;
}

/* モバイル用メニュー説明（下段） */
.mobile-menu .mobile-menu-description {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.3;
    display: block;
}

/* 旧形式のクラスに対する互換性サポート */
.mobile-menu .menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    display: block;
}

.mobile-menu .menu-description {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.3;
    display: block;
}

/* ==============================================
   モバイル用CTAボタン
   ============================================== */
.mobile-cta {
    margin-top: 1.5rem;
}

.mobile-cta-button {
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%) !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

.mobile-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.4);
    background: linear-gradient(135deg, #005a87 0%, #004a70 100%) !important;
}

/* ==============================================
   レスポンシブ対応
   ============================================== */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    .header-cta {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .mobile-navigation {
        top: 60px;
    }
    .header-container {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        height: 55px;
    }
    .mobile-navigation {
        top: 55px;
        padding: 1.5rem;
    }
    .site-logo a {
        font-size: 1.2rem;
    }
    .site-logo img {
        max-height: 35px;
    }
    .mobile-menu .mobile-menu-title,
    .mobile-menu .menu-title {
        font-size: 1.1rem;
    }
    .mobile-menu .mobile-menu-description,
    .mobile-menu .menu-description {
        font-size: 0.8rem;
    }
    .mobile-menu li {
        margin: 0.8rem 0;
    }
}

/* PC画面でのメニュー間隔調整 */
@media (min-width: 1024px) {
    .nav-menu {
        gap: 3rem;
    }
    .nav-menu .menu-description {
        font-size: 0.8rem;
    }
}

/* ==============================================
   ボディpadding調整
   ============================================== */
body {
    padding-top: 80px;
}
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}
@media (max-width: 480px) {
    body {
        padding-top: 55px;
    }
}

/* ==============================================
   メニューが開いた時のボディスクロール制御
   ============================================== */
body.menu-open {
    overflow: hidden;
}