@charset "utf-8";

/* =========================================================================
   PC版 ハンバーガーメニュー追加用スタイル (HTML編集不要)
========================================================================= */

/* PC表示時（768px以上）のみ適用 */
@media screen and (min-width: 768px) {

    /* ----------------------------------------------------
       1. ハンバーガーボタンの配置
    ---------------------------------------------------- */
    header #headerSP {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 1060px;
        margin: 0 auto;
        height: 0;
        z-index: 9999;
        text-align: right;
    }

    header .headerSP__Nav {
        display: block !important;
        width: 100%;
        height: 0;
    }

    header .headerSP__Nav ul li.headerSP__Nav__Logo,
    header .headerSP__Nav__menu ul li {
        display: none !important;
    }

    header .headerSP__Nav__menu ul li#open {
        display: block !important;
        position: absolute;
        top: 0px;
        right: -43px;
        width: 51px;
        height: auto;
        cursor: pointer;
    }

    header .headerSP__Nav__menu ul li#open a {
        display: block;
        text-decoration: none;
    }

    header .headerSP__Nav__menu ul li#open a img {
        width: 100%;
        height: auto;
        vertical-align: middle;
    }

    /* ----------------------------------------------------
       2. ドロワーメニュー（スライドメニュー）のPC用開閉ロジック
    ---------------------------------------------------- */
    header #headerSP__slideMenu {
        display: block !important;
        text-align: left !important;
    }

    #g_menu {
        position: fixed;
        top: 0;
        height: 100vh;
        width: 600px !important;
        padding: 1rem 0 !important;
        background: #FFFFFF;
        overflow-y: auto;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
        z-index: 999999;
    }

    #g_menu:not(:target) {
        right: -650px;
    }

    #g_menu:target {
        right: 0;
    }

    /* ----------------------------------------------------
       3. メニュー内部のレイアウト調整（ヘッダー部分）
    ---------------------------------------------------- */
    #headerSP__slideMenu .g_manu__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 5%;
        margin-bottom: 1rem;
        border-bottom: none;
    }

    #headerSP__slideMenu .g_manu__header li {
        border: none !important;
        margin: 0 !important;
    }

    #headerSP__slideMenu .g_manu__header .home_btn_sp {
        width: 45px;
        padding: 0;
    }

    #headerSP__slideMenu .g_manu__header li#close {
        width: 45px;
        padding: 0;
        text-align: right;
        cursor: pointer;
    }

    #headerSP__slideMenu .g_manu__header li#close a {
        display: inline-block;
        width: 100%;
        padding: 5px;
        margin: -5px;
        border: none !important;
    }

    #headerSP__slideMenu .g_manu__header .home_btn_sp img,
    #headerSP__slideMenu .g_manu__header li#close.btn img {
        width: 100% !important;
        height: auto;
    }

    /* ----------------------------------------------------
       4. リストアイテムの装飾（固定値でSP版の距離感を完全再現）
    ---------------------------------------------------- */
    #headerSP__slideMenu ul li {
        width: 100%;
        margin-bottom: 0;
    }

    /* 基本のリンク設定 */
    #headerSP__slideMenu ul li a {
        display: block;
        padding: 0 !important;
        text-decoration: none;
        border-left: none !important;
        border-bottom: 1px solid #dcdcdc !important;
        font-size: 1rem !important;
        color: #333;
        transition: background-color 0.2s ease;
    }

    #headerSP__slideMenu ul li a span,
    #headerSP__slideMenu ul li a {
        font-weight: bold !important;
    }

    #headerSP__slideMenu ul li a:hover {
        background-color: #f5f5f5;
    }

    /* ★アイコンと文字の空きを【固定値(px)】にして間延びを防ぐ */
    #headerSP__slideMenu .right_arrow {
        background-repeat: no-repeat;
        background-position: 20px center !important; /* 左から20pxの位置に固定 */
        background-image: url(../images/menu_right.webp);
        padding: 1rem 20px 1rem 45px !important; /* 左の余白を45pxに固定 */
        margin: 0;
    }

    /* ----------------------------------------------------
       5. アコーディオン（コース紹介等の開閉部分）の装飾
    ---------------------------------------------------- */
    #headerSP__slideMenu details {
        padding-left: 0;
    }

    /* アコーディオンタイトルも通常リンクと揃える */
    #headerSP__slideMenu details summary {
        padding: 1rem 20px 1rem 45px !important;
        border-bottom: 1px solid #dcdcdc;
        font-weight: bold !important;
        cursor: pointer;
        position: relative;
    }

    #headerSP__slideMenu .g_manu_pulldown__courseName__title ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ★サブメニューの背景色と、文字とアイコンの距離感 */
    #headerSP__slideMenu .g_manu_pulldown__courseName__title__subtitle .right_arrow {
        background-color: #f7f7f7 !important;
        margin: 0.6rem 20px 0.6rem 40px !important; /* 全体を右にズラすインデント */
        padding: 0.8rem 20px 0.8rem 45px !important; /* アイコンから文字までの固定距離 */
        background-position: 20px center !important; /* アイコンの位置 */
    }

    /* ★サブメニューの文字サイズと太さをSP版に完全一致させる */
    #headerSP__slideMenu .g_manu_pulldown__courseName__title__subtitle a {
        border-bottom: none !important;
        font-weight: bold !important; /* 太字に戻す */
        font-size: 0.85rem !important; /* スマホ版に合わせて少し小さくする */
    }

    #headerSP__slideMenu .g_manu_pulldown__courseName__title__subtitle a span {
        font-weight: bold !important;
    }

    /* ----------------------------------------------------
       6. フッターとSNSリンク
    ---------------------------------------------------- */
    #headerSP__slideMenu ul li.slideMenu__footer {
        display: flex;
        flex-wrap: wrap;
        padding: 1.5rem 20px;
        border-bottom: none;
    }

    #headerSP__slideMenu ul li.slideMenu__footer a {
        width: 50%;
        border: none !important;
        padding: 0 0 1rem 0 !important;
        font-size: 0.85rem !important;
        font-weight: normal !important;
    }

    #headerSP__slideMenu .right_arrow2 {
        background: url(../images/menu_right.webp) left center no-repeat;
        background-size: 6px;
        padding-left: 15px;
    }

    #headerSP__slideMenu .sns {
        width: 80% !important;
        margin: 1rem auto 2rem !important;
        display: flex;
        justify-content: center;
    }

    #headerSP__slideMenu ul.sns li {
        width: 15%;
        text-align: center;
    }

    #headerSP__slideMenu ul.sns li a {
        border-bottom: none !important;
        padding: 0 !important;
    }

    #headerSP__slideMenu .sns li a img {
        width: 70%;
        height: auto;
    }
}
@charset "utf-8";

/* =========================================================================
   PC版 ハンバーガーメニュー追加用スタイル (HTML編集不要)
========================================================================= */

/* PC表示時（768px以上）のみ適用 */
@media screen and (min-width: 768px) {

    /* ----------------------------------------------------
       1. ハンバーガーボタンの配置
    ---------------------------------------------------- */
    header #headerSP {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 1060px;
        margin: 0 auto;
        height: 0;
        z-index: 9999;
        text-align: right;
    }

    header .headerSP__Nav {
        display: block !important;
        width: 100%;
        height: 0;
    }

    header .headerSP__Nav ul li.headerSP__Nav__Logo,
    header .headerSP__Nav__menu ul li {
        display: none !important;
    }

    /* ★追加：既存のPCナビ（黒いボタンとHOME）をハンバーガーボタンの分だけ左にずらす */
    header div#headerTop__PcNav {
        margin-right: 51px !important;
    }

    header .headerSP__Nav__menu ul li#open {
        display: block !important;
        position: absolute;
        top: 0px;
        right: 0px; /* ★ -43px から 0px に変更して右端にピタッと揃える */
        width: 51px;
        height: auto;
        cursor: pointer;
    }

    header .headerSP__Nav__menu ul li#open a {
        display: block;
        text-decoration: none;
    }

    header .headerSP__Nav__menu ul li#open a img {
        width: 100%;
        height: auto;
        vertical-align: middle;
    }

    /* ----------------------------------------------------
       2. ドロワーメニュー（スライドメニュー）のPC用開閉ロジック
       （※以下は変更なし。そのまま残してください）
    ---------------------------------------------------- */
header .headerSP__Nav__menu ul li#open a img {
        width: 100%;
        height: auto;
        vertical-align: middle;
        /* ↓ なめらかに色を変化させるための設定を追加 */
        transition: all 0.3s ease;
    }

    /* ★ここから下を追加：マウスオーバー時の設定 */
    header .headerSP__Nav__menu ul li#open a:hover img {
        /* 画像をモノクロにし、明るさを下げて黒っぽく見せる */
        filter: grayscale(100%) brightness(30%);
    }