@charset "UTF-8";

/* スマホ用スタイル（768px以下でのみ適用） */
@media (max-width: 768px) {
    
    /* --------------------------
       全体設定
    -------------------------- */
    html, body {
        margin: 0;
        padding: 0;
    }
    
    body {
        padding-top: 60px;
        overflow-x: hidden;
    }

    /* --------------------------
       ヘッダー & ナビゲーション
    -------------------------- */
    header {
        justify-content: space-between;
        padding: 0 20px;
    }

    /* ハンバーガーメニューを表示 */
    .hamburger-btn {
        display: block;
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 110;
        cursor: pointer;
    }

    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #202020;
        position: absolute;
        left: 0;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-btn span:nth-child(1) { top: 0; }
    .hamburger-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger-btn span:nth-child(3) { bottom: 0; }

    /* アクティブ時のアニメーション */
    .hamburger-btn.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

    .sitetitle p {
        font-size: 1.4rem;
    }

    footer {
        font-size: 0.6rem;
    }

    /* メニューバー（ハンバーガーの中身） */
    .menubar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #b5f3f2;
        z-index: 105;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        flex-direction: column;
        padding-top: 80px;
        align-items: center;
        justify-content: flex-start;
    }

    .menubar.active {
        transform: translateX(0);
    }

    .menubar a {
        width: 80%;
        margin: 10px 0;
        height: 50px;
        margin-left: 0;
    }

    .menu_button_top,
    .menu_button01,
    .menu_button02,
    .menu_button03 {
        border-radius: 50px;
    }

    .menu_button_top p,
    .menu_button01 p,
    .menu_button02 p,
    .menu_button03 p {
        font-size: 1.2rem;
        margin: 0;
    }

    /* --------------------------
       トップページ固有 (index.html)
    -------------------------- */
    .sec01 {
        height: auto;
        padding: 0 !important;
    }

    .con01-1 {
        width: 100%;
        padding-top: 56.25%; /* 16:9比率維持 */
        height: 0;
    }

    .video01 {
        object-position: center top;
    }

    .content-overlay {
        font-size: 0.8rem;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        padding: 10px;
    }

    /* 通知エリアの調整 */
    .con01-2 {
        height: auto;
        padding: 20px 10px;
    }
    
    .con01-3 {
        flex-direction: column; /* 縦並び */
        gap: 15px;
        align-items: center;    /* 中央寄せ */
    }

    .info-group {
        flex-direction: column; /* テキストも縦並び */
        width: 100%;
        align-items: center;    /* 中央寄せ */
        justify-content: center;
        gap: 10px;
    }

    .info-group p {
        width: 90vw;
        font-size: 1rem;
        text-align: center;
    }

    /* PC/SP表示切り替え */
    .pc-only { display: none; }
    .sp-only { display: block; }

    /* ボタングループ（スマホ版レイアウト） */
    .btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr; /* ボタンは横に2つ並べる */
        width: 95%;
        gap: 10px;
        margin: 0 auto; /* 中央配置 */
    }

    .btn-group a {
        min-width: 0;
        width: 100%;
        padding: 12px 5px;
        font-size: 0.9rem;
        margin: 0;
    }

    /* セクション余白調整 */
    .sec02,
    .sec03 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 40px;
    }
    .sec02 { padding-bottom: 0 !important; }
    .sec03 { padding-bottom: 0 !important; }

    .con02-1 {
        flex-direction: column;
        height: auto;
        gap: 0;
    }

    .button_manabiya_page,
    .button_omoshiroji_page {
        width: 90%;
        height: 180px;
        box-shadow: none;
        margin: 0 auto;
    }

    .button_manabiya_page {
        margin-bottom: 20px;
    }

    .button_manabiya_page p,
    .button_omoshiroji_page p {
        width: 90%;
        font-size: 1.6rem;
    }

    .con03-1 {
        flex-direction: column;
        align-items: center;
    }

    .con03-1 img {
        width: 100%;
        margin-bottom: 5px;
    }

    /* --------------------------
       詳細ページ固有 (manabiya.html)
    -------------------------- */
    .page1_sec01 {
        padding: 0 !important;
        margin-bottom: 40px;
    }

    .page1_con01-1 {
        height: 50vh;
        border-radius: 0;
        box-shadow: none;
    }

    .page1_con01-2 {
        width: 100%;
        border-top-right-radius: 0;
        background: rgba(0,0,0,0.7);
    }

    .page1_con01-2 p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .page1_sec02 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .page1_con02-1 p:first-of-type { display: none; }
    .page1_con02-1 p:nth-of-type(2) { display: block; font-size: 1.4rem; }

    .page1_con02-2 h1 {
        font-size: 1.3rem;
        background: #fff1ba;
        padding: 10px;
        border-radius: 10px;
    }

    .page1_con02-3 a {
        width: 100%;
        padding: 20px 0;
    }

    /* --------------------------
       アーカイブアコーディオン
    -------------------------- */
    .page1_sec03 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .schedule-dropdown {
        padding: 15px 20px;
    }

    .dropdown-text {
        font-size: 1.1rem;
    }

    .schedule-content {
        padding: 20px;
        font-size: 0.95rem;
    }

    .close-btn {
        margin-right: 20px;
        font-size: 30px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ==========================================================
   Dropdown Menu Styles (SP)
   ========================================================== */
@media (max-width: 768px) {
    /* コンテナを縦並びに */
    .dropdown-wrapper {
        margin-left: 0;
        margin: 10px 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
    }

    /* ボタンサイズ調整 */
    .dropdown-wrapper .menu_button03 {
        width: 80%;
        height: 50px;
        margin: 0 auto;
    }

    /* メニューリスト（スマホでは常に表示） */
    .dropdown-content {
        display: flex;
        position: static; /* 位置固定を解除 */
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 10px 0 0 0;
        width: 100%;
        align-items: center;
    }

    /* リンクボタンのデザイン */
    .dropdown-content a {
        width: 75%;
        background-color: rgba(255, 255, 255, 0.6) !important;
        margin: 5px 0 !important;
        font-size: 1rem;
        padding: 10px;
    }
}