@charset "utf-8";

/* --- レスポンシブ制御 --- */

/* 1. スマホ表示（画面幅 768px 未満）のとき */
@media screen and (max-width: 767px) {
    /* PC用の言語切替（header_rightの中にある方）を隠す */
    .header_right .custom-gt-switcher {
        display: none !important;
    }
    
    /* スマホ用の言語切替（メニューの中にある方）を表示する */
    .sp_lang_switcher {
        display: block !important;
    }
}

/* 2. PC表示（画面幅 768px 以上）のとき */
@media screen and (min-width: 768px) {
    /* PC用の言語切替を表示する */
    .header_right .custom-gt-switcher {
        display: inline-flex !important;
    }
    
    /* スマホ用の言語切替を隠す */
    .sp_lang_switcher {
        display: none !important;
    }
}

/* --- 共通設定 --- */
.custom-gt-switcher, .sp_lang_switcher {
    font-family: sans-serif;
}

/* --- PC版：ヘッダー内のデザイン --- */
.custom-gt-switcher {
    position: relative;
    display: inline-flex; /* inline-blockより整列しやすい */
    align-items: center;
}

/* ボタンのデザイン */
.gt-btn {
    background: transparent;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    height: 100%;
    outline: none;
    /* 下線を絶対に出さない設定 */
    text-decoration: none !important; 
}

/* ホバー時の設定 */
.gt-btn:hover {
    /* 下線を消す */
    text-decoration: none !important;
    /* 代わりに少し透明度を下げるなど、反応を分かりやすくする場合（任意） */
    opacity: 0.7; 
}

.gt-icon {
    margin-right: 5px;
}

/* PC版ドロップダウンメニュー */
.gt-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none !important; /* 既存のスタイルを打ち消し */
    padding: 0 !important;
    margin: 5px 0 0 !important;
    min-width: 150px;
    z-index: 99999;
}

.gt-menu.is-open {
    display: block;
}

.gt-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.gt-menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333 !important;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.gt-menu li a:hover {
    background: #005bb7;
    color: #fff !important;
}

/* --- スマホ版：メニュー内（gnav_f）のデザイン --- */
.sp_lang_switcher {
    margin: 20px 0;
    padding: 15px 10px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.sp_lang_label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333; /* 背景が白なら濃い色、暗いなら #fff に変更 */
    display: block;
}

.sp_lang_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sp_lang_list li {
    width: calc(50% - 4px); /* 2カラム */
    margin: 0 !important;
    padding: 0 !important;
}

.sp_lang_list li a {
    display: block;
    background: #f2f2f2; /* 薄いグレーのボタン */
    color: #333 !important;
    text-align: center;
    padding: 12px 5px;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.sp_lang_list li a:active {
    background: #005bb7;
    color: #fff !important;
}


/* --- 免責事項バーのスタイル（強化版） --- */
.gt-disclaimer-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important; /* 少し濃くして視認性アップ */
    color: #fff !important;
    padding: 12px 20px !important;
    /* z-indexを最大級に。他のどんな要素よりも上に表示させます */
    z-index: 2147483647 !important; 
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    /* 最初はJSで判定されるまで表示させないための初期値（JS側で block に書き換えます） */
    display: none; 
}

.gt-disclaimer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* スマホ用の調整 */
@media screen and (max-width: 767px) {
    .gt-disclaimer-inner {
        flex-direction: column;
        text-align: left;
    }
    .gt-disclaimer-bar {
        padding: 15px !important;
    }
}