/* ===== ヘッダー ===== */

/* ナビゲーションコンテナ */
.navigation {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff00;
    transition: background-color 0.3s ease; /* トランジション追加 */
}

/* スクロール時のヘッダースタイル */
.navigation.scrolled {
    background-color: #ffffffe6;

}

/* スクロール時のグローバルメニュースタイル - 背景色を同じにする */
.navigation.scrolled .grobal_menu {
    background-color: #ffffff00; /* ヘッダーと同じ背景色 */
}

/* ロゴエリア */
.navigation .logo_wrapper {
    display: flex;
    flex-direction: column;
    width: 160px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 10px 10px 40px;
}

.navigation .logo {
    width: 140px;
    height: 40px;
    object-fit: cover;
}

/* メニューエリア */
.navigation .menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* グローバルメニューにもフォントファミリーを適用 */
.navigation .grobal_menu {

    background-color: #ffffffe6; /* 元の背景色を維持 */
    border-radius: 60px;
    padding: 20px 60px;
    font-size: 1em;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background-color 0.3s ease; /* トランジション追加 */
}

/* ナビゲーションリンクスタイル - 標準（青） */
.navi_font {
    position: relative;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: 500;
    color: #004EA2;
    font-family: 'Noto Sans JP', sans-serif;
}

.navi_font::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--deep-blue);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.navi_font:hover::after {
    width: 100%;
}

/* ナビゲーションリンクスタイル - 反転（白） */
.navi_font_rev {
    position: relative;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
}

.navi_font_rev::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--white);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.navi_font_rev:hover::after {
    width: 100%;
}

/* CTAボタン */
.navigation .cta {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background-color: #004EA2;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.navigation .cta:hover {
    background-color: #004ea2cc;
    opacity: 0.8;
}

/* スマホ用メニューボタン */
.mobile-menu-button {
    display: none;
}

/* スマホ用メニューボタンスタイル */
#menu-toggle {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #004EA2;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

#menu-toggle:hover {
    background-color: #004ea2cc;
    opacity: 0.8;
}

#menu-toggle .icon {
    width: 24px;
    height: 24px;
}

/* モーダルメニュースタイル */
.mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 78, 162, 0.99);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    padding: 10px 20px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    width: 100%;
}

.mobile-menu-items li {
    margin-bottom: 20px;
    text-align: center;
}

.mobile-menu-items a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    display: block;
    padding: 12px;
}

.mobile-contact-link {
    text-align: center;
}

.mobile-cta {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 14px 40px;
    background-color: #ffffff;
    border-radius: 5px;
}

.mobile-cta .icon {
    width: 40px;
    height: 40px;
}

.mobile-cta .navi_font_rev {
    color: #004EA2;
}

.modal-footer-logo {
    margin-top: 100px;
    text-align: center;
}
  
.modal-footer-logo img {
    max-width: 150px; 
    height: auto;
}

/* ===== レスポンシブ設定 ===== */

/* ===== 大型ディスプレイ (1280px以下) ===== */
@media screen and (max-width: 1280px) {
    /* 1280px以下の調整 */
    /* .navigation .grobal_menu {
        padding: 15px 40px;
    } */
}

/* ===== タブレット・スマホ (1024px以下) ===== */
@media screen and (max-width: 1024px) {
    /* グローバルメニューを非表示 */
    .navigation .grobal_menu {
        display: none;
    }
    
    /* CTAボタンを非表示 */
    .navigation .cta {
        display: none;
    }
    
    /* スマホ用メニューボタンを表示 */
    .mobile-menu-button {
        display: block;
    }
    
    /* ナビゲーションコンテナ調整 */
    /* .navigation {
         padding: 0 0 0 15px;
    } */
    
    /* ロゴサイズ調整 */
    .navigation .logo_wrapper {
        width: 140px;
    }
    
    .navigation .logo {
        width: 120px;
        height: 35px;
    }

}

/* ===== モバイル大 (768px以下) ===== */
@media screen and (max-width: 768px) {
    /* メニューボタン調整 */
    #menu-toggle {
        padding: 2rem;
    }
    
    /* モーダル内コンテンツ調整 */
    .mobile-menu-items a {
        font-size: 18px;
    }
}

/* ===== モバイル小 (576px以下) ===== */
@media screen and (max-width: 576px) {
    /* ロゴサイズさらに調整 */
    .navigation .logo_wrapper {
        width: 120px;
        padding: 10px;
    }
    
    .navigation .logo {
        width: 100px;
        height: 30px;
    }
    
    /* メニューボタンさらに調整 */
    #menu-toggle {
        padding: 1.2rem 1.5rem;
    }
    
    #menu-toggle .icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    #menu-toggle .navi_font_rev {
        font-size: 14px;
    }
}