@charset "UTF-8";
/* ===================================================================
CSS information
 file name  :  etsjapancustom_header_nav.css
 style info :  カスタムヘッダー・ナビゲーション用のCSS
              educators_improved.html, topprogram.html等で使用
=================================================================== */

/*-----------------------------------------------------------------
ヘッダーの白いボーダーを削除
-----------------------------------------------------------------*/
header {
    border-bottom: none !important;
}

/*-----------------------------------------------------------------
ナビ全体の縦中央配置
-----------------------------------------------------------------*/
.header_navi {
    display: flex !important;
    align-items: center;
    height: 100%;
}

.header_navi ul {
    display: flex !important;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.header_navi ul li {
    display: flex !important;
    align-items: center;
    height: 100%;
}

/* ナビのリンクスタイル（お問い合わせ、公式教材・過去問） */
.header_navi ul li.nav02,
.header_navi ul li.nav03 {
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    background-image: none !important;
    height: auto;
}

.header_navi ul li.nav02 a,
.header_navi ul li.nav03 a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold;
    padding: 0 !important;
    background-image: none !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header_navi ul li.nav02 a:hover,
.header_navi ul li.nav03 a:hover {
    opacity: 0.8;
}

/* 受験者の方ボタン（枠線スタイル） */
.header_navi ul li.nav-btn-outline {
    margin-left: 20px;
    display: flex !important;
    align-items: center;
    padding: 0 !important;
    background-image: none !important;
    height: auto;
}

.header_navi ul li.nav-btn-outline a {
    display: inline-block;
    padding: 8px 18px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header_navi ul li.nav-btn-outline a:hover {
    background: #fff;
    color: #343579;
}

/* ヘッダーエリアの余白 */
.header_area {
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: flex !important;
    align-items: center !important;
}

/* ヘッダーロゴとテキストの配置 */
.logo_sub {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.logo_sub_img {
    margin-right: 10px !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
}

.logo_sub_img a {
    display: flex !important;
    align-items: center !important;
}

.logo_sub_img img {
    vertical-align: middle !important;
}

.logo_sub_txt {
    display: flex !important;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    margin-left: 0 !important;
}

.logo_sub_txt p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
    color: #fff;
}

.logo_sub_txt p:first-child {
    margin-right: 8px;
}

.logo_sub_txt p:first-child::after {
    content: " |";
    margin-left: 8px;
}

/* 「団体・教育関係者」リンク */
.logo_sub_txt .educators-link {
    color: #fff !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.logo_sub_txt .educators-link:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

/* タブレット・狭い幅の時のヘッダー調整 */
@media screen and (max-width: 1200px) {
    .logo_sub_txt p {
        font-size: 10px;
    }
    
    .header_navi ul li.nav-btn-outline a {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media screen and (max-width: 979px) {
    .header_area {
        max-width: none !important;
        width: auto !important;
        justify-content: space-between !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .logo_sub {
        margin-left: 0 !important;
        width: auto !important;
    }
    
    .logo_sub_img {
        margin-left: 0 !important;
    }
    
    /* モバイルでは「団体・教育関係者」のみ表示 */
    .logo_sub {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        height: 100% !important;
    }
    
    .logo_sub_img {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .logo_sub_img img {
        vertical-align: middle !important;
    }
    
    .logo_sub_txt {
        display: block !important;
        margin-left: 8px !important;
        position: static !important;
        white-space: nowrap !important;
    }
    
    .logo_sub_txt p:first-child {
        display: none !important;
        position: static !important;
    }
    
    .logo_sub_txt p:first-child::after {
        display: none !important;
    }
    
    .logo_sub_txt p:last-child {
        display: block !important;
        font-size: 10px !important;
        font-weight: bold;
        margin: 0 !important;
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    /* モバイルではナビを非表示 */
    .header_navi {
        display: none !important;
    }
}

/* ハンバーガーメニューボタン */
.header_navi ul li.nav04.btn_menu {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    cursor: pointer;
    padding: 0 !important;
    margin-top: 0 !important;
    background-image: none !important;
    font-size: 9px;
    color: #fff;
    height: auto;
}

.header_navi ul li.nav04.btn_menu i {
    font-size: 20px;
    display: block;
    margin-bottom: 0;
    line-height: 1;
    color: #fff;
}

/*-----------------------------------------------------------------
CMSヘッダー非表示 & カスタムヘッダー
BlueMonkey CMS対応
-----------------------------------------------------------------*/
/* BlueMonkey CMSで出力されるヘッダー・ナビを非表示 */
/* 直接の子要素として配置されるヘッダー（カスタムヘッダー以外） */
body > header:not(.custom-header),
body > .header,
body > div > header:not(.custom-header),
/* グローバルナビゲーション（カスタムナビ以外、.quick-navは除外） */
body > nav:not(#custom_pc_gnavi):not(.quick-nav),
body > nav#pc_gnavi:not(#custom_pc_gnavi),
body > #pc_gnavi:not(#custom_pc_gnavi),
body > .pc_gnavi:not(#custom_pc_gnavi),
body > div > nav:not(#custom_pc_gnavi):not(.quick-nav),
body > div > #pc_gnavi:not(#custom_pc_gnavi),
/* ナビ背景 */
body > .pc_gnavi_bg,
body > div > .pc_gnavi_bg,
/* ETS Japanロゴエリア（カスタムヘッダー内以外） */
body > .logo_area,
body > div > .logo_area,
/* BlueMonkeyの共通ヘッダーラッパー（カスタム要素以外） */
body > #hs-web-interactives-top-push-anchor + header:not(.custom-header),
body > #hs-web-interactives-top-push-anchor ~ header:not(.custom-header),
body > #hs-web-interactives-top-push-anchor ~ nav:not(#custom_pc_gnavi):not(.quick-nav),
body > #hs-web-interactives-top-push-anchor ~ .pc_gnavi_bg {
    display: none !important;
}

/* カスタムヘッダー以外のheader要素を非表示 */
header:not(.custom-header) {
    display: none !important;
}

/* カスタムナビ以外のpc_gnaviを非表示 */
nav#pc_gnavi:not(#custom_pc_gnavi),
nav.pc_gnavi:not(#custom_pc_gnavi) {
    display: none !important;
}

/* pc_gnavi背景を非表示 */
.pc_gnavi_bg {
    display: none !important;
}

/* ========== カスタムヘッダー表示 ========== */
.custom-header {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: transparent !important;
}

/* カスタムヘッダー内のlogo_areaは表示 */
.custom-header .logo_area {
    display: block !important;
    background-color: #fff !important;
    padding: 5px 16px !important;
}

/* カスタムヘッダー内のheader要素（紫帯）は表示 */
.custom-header .header {
    display: block !important;
    background-color: #343579 !important;
    width: 100% !important;
}

/* カスタムヘッダー内のheader_area */
.custom-header .header_area {
    background-color: #343579 !important;
}

/* カスタムヘッダーのテキスト色 */
.custom-header .logo_sub_txt p {
    color: #fff !important;
}

/* カスタムヘッダーのナビリンク色 */
.custom-header .header_navi ul li a {
    color: #fff !important;
}

/* カスタムヘッダーのハンバーガーメニュー色 */
.custom-header .header_navi ul li.nav04.btn_menu {
    color: #fff !important;
}

.custom-header .header_navi ul li.nav04.btn_menu i {
    color: #fff !important;
}

/* ヘッダー分の余白をbodyに追加 - より高い詳細度で上書き */
html body,
html body.page_educators,
html body.page_educators.common,
body#page_educators,
body.page_educators {
    padding-top: 0 !important;
    margin-top: 0 !important; /* etsjapanpublicside.cssのbody{margin-top: 160px;}を上書き */
}

/* カスタムヘッダーを使用しているページのコンテンツを下に下げる */
body:has(.custom-header) {
    padding-top: 100px !important; /* PC用（980px以上）: カスタムヘッダーの高さ分 */
    margin-top: 0 !important; /* etsjapanpublicside.cssのbody{margin-top: 160px;}を上書き */
}

@media only screen and (max-width: 979px) {
    html body,
    html body.page_educators,
    html body.page_educators.common,
    body#page_educators,
    body.page_educators {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* タブレット用（690px-979px）: カスタムヘッダーの高さ約50px */
    body:has(.custom-header) {
        padding-top: 50px !important;
    }
}

@media only screen and (max-width: 690px) {
    /* モバイル用（690px以下）: カスタムヘッダーの高さ約40px */
    body:has(.custom-header) {
        padding-top: 40px !important;
    }
}

/* 非表示にした元のヘッダー・ナビが空間を取らないようにする */
/* 注意: .quick-nav などページ内で使用するnav要素は除外 */
header:not(.custom-header),
nav#pc_gnavi:not(#custom_pc_gnavi),
nav.pc_gnavi:not(#custom_pc_gnavi),
.pc_gnavi:not(#custom_pc_gnavi):not(.quick-nav),
#pc_gnavi:not(#custom_pc_gnavi),
.pc_gnavi_bg,
.logo_area:not(.custom-header .logo_area) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

/* hs-web-interactives-top-push-anchorの余白を削除 */
#hs-web-interactives-top-push-anchor {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    display: block !important;
}

/* ========== カスタムナビ表示設定 ========== */
/* カスタムナビは初期非表示（メニューボタンで開閉） */
#custom_pc_gnavi {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(52, 53, 121, 0.98);
    z-index: 10000;
    overflow-y: auto;
}

/* メニュー開いた状態 */
#custom_pc_gnavi.open {
    display: block !important;
}

/* カスタムナビ内のすべての文字色を白/明るいグレーに統一 */
#custom_pc_gnavi,
#custom_pc_gnavi * {
    color: #fff !important;
}

#custom_pc_gnavi a {
    color: #fff !important;
}

#custom_pc_gnavi p,
#custom_pc_gnavi span,
#custom_pc_gnavi li,
#custom_pc_gnavi h1,
#custom_pc_gnavi h2,
#custom_pc_gnavi h3,
#custom_pc_gnavi h4,
#custom_pc_gnavi h5,
#custom_pc_gnavi h6 {
    color: #fff !important;
}

/* サブタイトル */
#custom_pc_gnavi .pcg_subtitle {
    color: #e0e0e0 !important;
    font-size: 14px;
}

/* 検索フォーム */
#custom_pc_gnavi .search_txt {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
}

#custom_pc_gnavi .search_txt::placeholder {
    color: rgba(255,255,255,0.7) !important;
}

#custom_pc_gnavi .submit_btn {
    background: #9196FF !important;
    color: #fff !important;
    border: none !important;
}

#custom_pc_gnavi .pcg_navi_list > li > a {
    padding: 12px 20px 12px 50px;
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #fff !important;
    position: relative;
    line-height: 1.4;
}

/* ナビリンクの矢印を白に */
#custom_pc_gnavi .pcg_navi_list li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 0px;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: #fff !important;
    transform: rotate(135deg);
    position: absolute;
    top: 50%;
    margin-top: -3px;
    left: 25px;
    display: block !important;
}

#custom_pc_gnavi .pcg_navi_list > li > a:hover {
    background: rgba(255,255,255,0.1);
}

/* サブメニュー */
#custom_pc_gnavi .pcg_subocn {
    background: rgba(0,0,0,0.2) !important;
}

#custom_pc_gnavi .pcg_subocn a {
    color: #fff !important;
    padding: 10px 20px 10px 50px !important;
    display: flex;
    align-items: center;
    position: relative;
    line-height: 1.4;
}

#custom_pc_gnavi .pcg_subocn li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 0px;
    border-width: 0 2px 2px 0;
    border-style: solid;
    border-color: #fff !important;
    transform: rotate(135deg);
    position: absolute;
    top: 50%;
    margin-top: -3px;
    left: 25px;
    display: block !important;
}

#custom_pc_gnavi .pcg_subocn a:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* 閉じるボタン */
#custom_pc_gnavi .btn_menu.menuin {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    z-index: 10001;
    text-indent: -9999px; /* 「ボタン」テキストを画面外に */
    overflow: hidden;
}

#custom_pc_gnavi .btn_menu.menuin::before {
    content: "✕";
    font-size: 28px;
    color: #fff !important;
    display: block;
    text-indent: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

#custom_pc_gnavi .btn_menu.menuin:hover {
    background: rgba(255,255,255,0.3);
}

/* sp_abtn（スマホ用アコーディオンボタン）を非表示 */
#custom_pc_gnavi .sp_abtn {
    display: none !important;
}

/* 外部リンク（TOEFLテスト日本事務局、ETS TOEFL等） */
#custom_pc_gnavi .pcg_link {
    background: rgba(255,255,255,0.9);
    padding: 15px 20px;
    margin-top: 20px;
}

#custom_pc_gnavi .pcg_link li {
    display: inline-block;
    margin-right: 20px;
}

#custom_pc_gnavi .pcg_link a {
    color: #000000 !important;
    font-size: 13px;
}

#custom_pc_gnavi .pcg_link a:hover {
    color: #343579 !important;
    text-decoration: underline;
}

