﻿/* ==========================================================
   CSS Table of Contents (目次)
   ========================================================== */
/*
   1. Global Settings (全体設定)
      - Reset (リセット)
      - Base Style (基本スタイル)
   2. Layout: Header & Footer
      - Header
      - Navigation (メニューバー)
      - Footer
   3. Home Page Specific Styles (トップページ固有スタイル)
      - Section 01: Hero (メインビジュアル/通知エリア)
      - Section 02: Action Buttons (行動ボタン)
      - Section 03: Flyer (チラシ)
   4. Utility & Components (ユーティリティとコンポーネント)
      - Image Modal (画像拡大モーダル)
      - Scroll Animation (スクロールアニメーション)
   5. Detail Page Style (manabiya.html 詳細ページ用スタイル)
   6. Archive Accordion Style (アーカイブアコーディオン)
   7. Responsive Design (レスポンシブデザイン: スマホ対応)
*/


/* ==========================================================
   1. Global Settings (全体設定)
   ========================================================== */

/* --- Reset (リセット) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Klee One", cursive;
    color: #202020;
}

/* --- Base Style (基本スタイル) --- */
/* 固定ヘッダーの分、コンテンツ全体を下にずらす */
body {
    padding-top: 60px;
}


/* ==========================================================
   2. Layout: Header & Footer
   ========================================================== */

/* --- Header --- */
header {
    width: 100%;
    height: 60px;
    background-color: #b5f3f2;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* 画面の上部に固定 */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

/* サイトタイトルリンクの装飾解除 */
.sitetitle-link {
    text-decoration: none;
    color: inherit;
    width: auto;
    /* 💡 リンク要素自体の改行を禁止 */
    white-space: nowrap;
}

/* マウスオーバー時にカーソルをポインターに変更 */
.sitetitle-link:hover {
    cursor: pointer;
}

.sitetitle p {
    font-family: "M PLUS 1", sans-serif;
    font-weight: 600;
    font-size: 2rem;
    /* 💡 テキストの改行を禁止 */
    white-space: nowrap;
}

/* --- Navigation (メニューバー) --- */
.menubar {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    position: relative;
}

.menubar a {
    margin-left: 20px;
    text-decoration: none;
    color: inherit;
    background-color: #fff1ba;
    height: 40px;
    width: auto;
    transition: background-color 0.3s ease;
    padding: 0;
    border-radius: 50px;
}

/* メニューボタンの共通スタイル */
.menu_button01,
.menu_button02 {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    height: 100%;
    z-index: 1;
    position: relative;
    transform-origin: center;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
}

/* --- TOPボタンの個別スタイル --- */
.menu_button_top {
    /* menu_button01/02 と同じ基本スタイルを継承 */
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    height: 100%;
    z-index: 1;
    position: relative;
    transform-origin: center;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50px;

    /* TOPボタン専用のカラー: 青（headerの色）に寄せる */
    background-color: #90dcdc;
}

.menu_button_top p {
    margin: 0 30px;
    font-family: "M PLUS 1", sans-serif;
    font-weight: 600;
    font-size: 18px;
}

/* TOPボタンのホバー効果 */
.menubar a:not(.disabled):hover .menu_button_top {
    background-color: #b5f3f2;
    transform: scale(0.98);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* リンクが有効な場合のホバー効果 */
.menubar a:not(.disabled):hover {
    background-color: #fffcf2;
    cursor: pointer;
}

.menubar a:not(.disabled):hover .menu_button01,
.menubar a:not(.disabled):hover .menu_button02 {
    transform: scale(0.98);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.menu_button01 p,
.menu_button02 p {
    margin: 0 30px;
    font-family: "M PLUS 1", sans-serif;
    font-weight: 600;
    font-size: 18px;
}

/* Coming soon オーバーレイと無効化 */
.disabled {
    pointer-events: none;
    cursor: default;
}

.menu_button02-overlay {
    position: absolute;
    z-index: 2;
    background-color: #0000006f;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 20px;
    /* ★追加: テキストを水平方向の中央に寄せる */
    text-align: center;
}

.menu_button02-overlay p {
    color: #ffffff;
    /* ★追加: p要素の幅を親（オーバーレイ）の幅いっぱいに広げる */
    width: 100%;
}

/* --- ハンバーガーボタン (スマホ用) --- */
.hamburger-btn {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 20;
    display: none;
    /* PC版では非表示 */
    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);
}

/* --- Footer --- */
footer {
    background-color: #b5f3f2;
    text-align: center;
    padding: 10px 0;
}

/* ==========================================================
   3. Home Page Specific Styles (トップページ固有スタイル)
   ========================================================== */

/* --- Section 01: Hero (メインビジュアル/通知エリア) --- */
.sec01 {
    height: calc(80vh + 100px);
    position: relative;
    overflow: hidden;
}

/* 動画コンテナ */
.con01-1 {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.video01 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* キャッチコピーオーバーレイ */
.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 20px;
}

.content-overlay p {
    font-family: "M PLUS 1", sans-serif;
    font-weight: 500;
    font-size: 2em;
    color: white;
}

/* 通知エリア (con01-2 / con01-3) */
.con01-2 {
    padding: 10px 0;
    background-color: #b5f3f2;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 冗長な margin/padding を削除済 */
.con01-3 {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.con01-3 p,
.con01-3 a {
    font-family: "M PLUS 1", sans-serif;
    font-weight: 500;
    /* ★修正: サイズを 1.4rem に調整 */
    font-size: 1.4rem;
    background-color: #ffff;
    width: auto;
    padding: 10px 40px;
    border-radius: 50px;
}

.con01-3 p {
    margin-right: 20px;
}

.con01-3 p:nth-of-type(2) {
    display: none;
}

/* 申し込みボタンのスタイルと光アニメーション */
@keyframes shine {
    0% {
        transform: translate(-100%, -100%) rotate(-30deg);
    }

    20% {
        transform: translate(100%, 100%) rotate(-30deg);
    }

    20.1% {
        transform: translate(-100%, -100%) rotate(-30deg);
    }

    40% {
        transform: translate(100%, 100%) rotate(-30deg);
    }

    40.01% {
        transform: translate(-100%, -100%) rotate(-30deg);
    }

    100% {
        transform: translate(-100%, -100%) rotate(-30deg);
    }
}

.con01-3 a,
.page1_con02-3 a {
    text-decoration: none;
    color: #ffff;
    background-color: #e85959;
    transition: background-color 0.3s ease;
    border-radius: 50px;
    transform-origin: center;
    transition: all 0.2s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.con01-3 a::after,
.page1_con02-3 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation-delay: 2s;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-name: shine;
    animation-timing-function: linear;
    z-index: 2;
    transform: translate(-100%, -100%) rotate(-30deg);
}

.con01-3 a:hover,
.page1_con02-3 a:hover {
    background-color: #ab1010;
    cursor: pointer;
    transform: scale(0.98);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* --- Section 02: Action Buttons (行動ボタン) --- */
.sec02 {
    padding: 0 170px;
    padding-top: 60px;
    width: 100%;
}

/* ボタンコンテナ (Flexboxの親) */
.con02-1 {
    display: flex;
    width: 100%;
    height: 200px;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* 個別ボタンの共通スタイル */
.button_manabiya_page,
.button_omoshiroji_page {
    flex-grow: 1;
    height: 200px;
    overflow: hidden;
    position: relative;
    pointer-events: all;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-out;
    border-radius: 50px;
    cursor: pointer;
}

.button_manabiya_page:hover,
.button_omoshiroji_page:not(.disabled):hover {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 無効化ボタンのホバースタイル上書き */
.disabled.button_omoshiroji_page {
    transform: none;
    /* ホバーでスケールしない */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    /* シャドウも変化しない */
    cursor: default;
}

/* 画像 */
.button_manabiya_page img,
.button_omoshiroji_page img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 50px;
}

/* テキスト */
.button_manabiya_page p,
.button_omoshiroji_page p {
    font-family: "M PLUS 1", sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin: 0;
    width: 80%;
    text-align: center;
    background-color: #00000056;
}

/* Coming soon オーバーレイ */
.button_omoshiroji_page-overlay {
    position: absolute;
    z-index: 3;
    background-color: #0000006f;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    pointer-events: none;
}

/* --- Section 03: Flyer (チラシ) --- */
.sec03 {
    padding: 60px 170px;
}

.con03-1 {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.con03-1 img {
    height: auto;
    width: 48%;
}

.clickable-img {
    cursor: zoom-in;
}


/* ==========================================================
   4. Utility & Components (ユーティリティとコンポーネント)
   ========================================================== */

/* --- Image Modal (画像拡大モーダル) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    text-align: right;
}

.modal-content {
    width: auto;
    height: 90%;
    margin: auto 50%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.close-btn {
    position: absolute;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
    margin-right: 100px;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }

    to {
        transform: scale(1)
    }
}

/* --- Scroll Animation (スクロールアニメーション) --- */

/* アニメーションのキーフレーム定義（その場でのフェードイン） */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 初期状態 */
.scroll-fade-target {
    opacity: 0;
    transition: opacity 0.5s;
}

/* アニメーション実行時 */
.animate-active {
    animation: fadeIn 0.8s ease-out forwards;
}

/* con01-3 の初期状態と実行時（JS制御） */
#con01-3-target {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

#con01-3-target.animate-active-delayed {
    animation: fadeIn 0.8s ease-out forwards;
}


/* ==========================================================
   5. Detail Page Style (manabiya.html 詳細ページ用スタイル)
   ========================================================== */

/* --- Section 01: Slideshow Area Style --- */

.page1_sec01 {
    padding: 50px;
}

.page1_con01-1 {
    /* スライドショーとテキストを重ねるための基準点 */
    position: relative;
    width: 100%;
    height: 80vh;
    /* スライドショーの高さを設定 */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    /* 角丸を追加 */
}

.page1_slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* 初期状態では非表示 */
    transition: opacity 1.5s ease-in-out;
    /* フェード切り替えアニメーション */
}

/* JavaScriptで現在のスライドに付与するクラス */
.slide-img.active {
    opacity: 1;
}

/* テキストコンテナ (スライドショーの上に重ねる) */
.page1_con01-2 {
    position: absolute;
    bottom: 0;
    /* 左下に合わせて配置 */
    left: 0;
    z-index: 5;
    /* スライドショーより手前に表示 */
    padding: 20px;
    width: auto;
    /* テキストエリアの幅 */
    background-color: rgba(0, 0, 0, 0.6);
    /* 半透明の黒背景 */
    border-top-right-radius: 50px;
}

.page1_con01-2 p {
    font-family: "M PLUS 1", sans-serif;
    font-size: 1.6rem;
    color: white;
    /* テキストを白色に */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page1_sec02 {
    padding: 0 170px 40px 170px;
}

.page1_con02-1 {
    text-align: center;
    background-color: #b5f3f2;
    border-radius: 50px;
    margin-bottom: 20px;
    padding: 10px 0;
}

.page1_con02-1 p {
    font-family: "M PLUS 1", sans-serif;
    font-size: 2rem;
    font-weight: 600;
}

/* PC版では2つ目のpタグ（スマホ用改行版）は非表示 */
.page1_con02-1 p:nth-of-type(2) {
    display: none;
}

hr {
    margin: 20px 0;
    height: 3px;
    /* 線の太さ */
    background-color: #ccc;
    /* 線の色（薄い灰色） */
    border: none;
    /* デフォルトの枠線を削除 */
}

.page1_con02-2 h1 {
    font-family: "M PLUS 1", sans-serif;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 500;
}

.page1_con02-2 p {
    font-size: 1.2rem;
}

.page1_con02-3 {
    margin: 20px;
    text-align: center;
    width: auto;
    height: auto;
    overflow: hidden;
}

.page1_con02-3 a {
    font-family: "M PLUS 1", sans-serif;
    font-weight: 500;
    font-size: 1.8rem;
    padding: 0 100px;
    height: auto;
    width: auto;
    /* ★追加: 光アニメーションのために必要なプロパティ */
    position: relative;
}

/* ==========================================================
   6. Archive Accordion Style (アーカイブアコーディオン)
   ========================================================== */

.page1_sec03 {
    padding: 0 170px 20px 170px;
}

.archive-title h2 {
    font-family: "M PLUS 1", sans-serif;
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 10px;
}

/* アコーディオンのコンテナ */
.schedule-container {
    margin-bottom: 20px;
    border-radius: 20px;
    /* overflow: hidden;  ←★削除: これがstickyの邪魔をしていました */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: transparent;
    /* 背景色を透過または設定 */
}

/* クリックするバーの部分 */
.schedule-dropdown {
    background-color: #fff1ba;
    /* サイトのテーマカラー（薄い黄色） */
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;

    /* ★スクロール追従設定 */
    position: sticky;
    top: 60px;
    /* ヘッダーの高さ分空ける */
    z-index: 5;

    /* ★追加: overflow:hiddenを消したため、ここで角丸を指定 */
    border-radius: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-dropdown:hover {
    background-color: #ffe680;
}

/* バーがアクティブ（開いている）時 */
.schedule-dropdown.active {
    background-color: #b5f3f2;
    /* テーマカラー（薄い青）に変化 */

    /* ★追加: 開いている時は下の角を直角にする */
    border-radius: 20px 20px 0 0;
}

.dropdown-text {
    font-family: "M PLUS 1", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
}

/* 矢印アイコン */
.dropdown-icon {
    width: 12px;
    height: 12px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
    transform: rotate(135deg);
    /* 下向き矢印 */
    transition: transform 0.3s ease;
}

/* 開いている時の矢印の向き */
.schedule-dropdown.active .dropdown-icon {
    transform: rotate(-45deg);
    /* 上向き矢印 */
}

/* 開閉する中身 */
.schedule {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-top: none;

    /* ★追加: 中身の下部分に角丸をつける */
    border-radius: 0 0 20px 20px;
}

.schedule-content {
    padding: 30px 40px;
    line-height: 1.8;
}

.line1 {
    margin: 30px 0;
    border-top: 1px dashed #ccc;
    background: none;
    height: 0;
}

/* ==========================================================
   7. Responsive Design (レスポンシブデザイン: スマホ対応)
   ========================================================== */

@media (max-width: 768px) {
    
    /* --- 1. 全体のレイアウト調整 --- */
    
    /* ★修正: 根幹の要素をリセットし、不要なマージンを削除 */
    html, body {
        margin: 0;
        padding: 0;
    }
    
    /* body全体の余白調整 */
    body {
        padding-top: 60px;
        overflow-x: hidden; /* 横スクロール防止 */
    }

    /* ヘッダーの配置を戻し、ハンバーガーボタンを表示 */
    header {
        justify-content: space-between;
        padding: 0 20px;
    }
    
    /* ハンバーガーボタンをスマホでのみ表示 */
    .hamburger-btn {
        display: block;
    }

    footer {
        font-size: 0.6rem;
    }

    .sitetitle p {
        font-size: 1.4rem; /* タイトルを少し小さく */
    }
    
    /* --- 2. メニューバーをスマホ全画面に対応 (ハンバーガーメニュー本体) --- */
    
    .menubar {
        /* PC版のflex-endを上書きし、全画面を覆う */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: #b5f3f2;
        z-index: 15;
        
        /* 初期状態: 画面外に隠す */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        
        /* メニューの並びを縦並びにする */
        flex-direction: column; 
        padding-top: 80px;
        align-items: center;
        justify-content: flex-start;
    }

    /* JSで .menubar.active が付与されたら表示 */
    .menubar.active {
        transform: translateX(0);
    }
    
    /* メニュー内のリンクを縦に配置 */
    .menubar a {
        width: 80%;
        margin: 10px 0;
        background-color: #fff1ba;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        height: 50px;
    }

    /* TOPボタンのスマホスタイル (ハンバーガーメニュー内で適用) */
    .menu_button_top,
    .menu_button01,
    .menu_button02 {
        border-radius: 50px;
    }
    
    /* リンク内のテキスト */
    .menu_button_top p,
    .menu_button01 p,
    .menu_button02 p {
        font-size: 1.2rem;
        margin: 0;
    }

    /* --- 3. セクションとコンテンツの調整 (index.html) --- */
    
    /* sec01: 高さを自動調整 */
    .sec01 {
        height: auto;
        padding: 0 !important; /* 余白なし */
        position: relative;
    }

    /* 動画コンテナを「16:9」の比率で固定する */
    .con01-1 {
        width: 100%;
        height: 0; /* 高さはpaddingで確保するため0にする */
        padding-top: 56.25%; /* 16:9 の比率 (9 ÷ 16 = 0.5625) */
        position: relative;
        overflow: hidden;
    }
    
    /* 動画をコンテナいっぱいに表示 */
    .video01 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 枠いっぱいに表示 */
        
        /* ★追加: 動画の基準位置を「中央の上」に固定 */
        /* これで上が見切れなくなります */
        object-position: center top; 
    }

    /* キャッチコピーの調整 */
    .content-overlay {
        font-size: 0.8rem;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 2;
        background: linear-gradient(transparent, rgba(0,0,0,0.7)); 
        padding: 10px;
    }
    
    /* --- 以下、変更なし --- */

    /* トップページのセクションは左右の余白をなくす（全画面幅） */
    .sec02,
    .sec03 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* 詳細ページは文章が読みやすいように左右に余白を残す */
    .page1_sec02,
    .page1_sec03 {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    /* sec02（行動ボタン）の上の余白を詰める */
    .sec02 {
        padding-top: 40px !important; 
        padding-bottom: 0 !important;
    }
    
    /* 最後のセクションの下部余白を削除 */
    .sec03,
    .page1_sec03 {
        padding-bottom: 0 !important;
    }

    /* メインビジュアル下の通知エリア */
    .con01-2 {
        height: auto; 
        padding: 20px 10px;
    }
    
    /* 通知エリアのテキスト調整 */
    .con01-3 {
        flex-direction: column;
        gap: 15px;
    }
    
    .con01-3 p {
        margin-right: 0;
        font-size: 1rem;
        text-align: center;
    }
    
    .con01-3 a {
        width: 90%;
        margin: 0 auto;
        text-align: center;
        font-size: 1.2rem;
    }

    .con01-3 p:first-of-type {
        display: none;
    }

    .con01-3 p:nth-of-type(2) {
        display: block;
    }

    /* 大きなボタンエリア (sec02) */
    .con02-1 {
        flex-direction: column;
        height: auto;
        gap: 0; /* 隙間なし */
    }
    
    .button_manabiya_page,
    .button_omoshiroji_page {
        width: 90%;
        height: 180px;
        box-shadow: none; /* 影なし */
    }
    
    .button_manabiya_page p,
    .button_omoshiroji_page p {
        width: 90%;
        font-size: 1.6rem;
    }

    .button_manabiya_page {
        margin-bottom: 20px;
    }

    /* チラシ画像 (sec03) */
    .con03-1 {
        flex-direction: column;
        gap: 0;
    }
    
    .con03-1 img {
        width: 100%;
        margin-bottom: 5px;
    }

    /* --- 4. 詳細ページ (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;
        padding: 20px;
        background-color: rgba(0, 0, 0, 0.7); /* 背景を少し濃くして文字を見やすく */
    }

    .page1_con01-2 p {
        font-size: 0.95rem; /* 文字サイズ調整 */
        line-height: 1.8;
    }

    .page1_sec02 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .page1_sec02 p {
        font-size: 1rem;
    }

    /* 第3フェーズの青い帯 */
    .page1_con02-1 {
        padding: 15px 10px;
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .page1_con02-1 p {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    /* テキスト切り替えロジック */
    .page1_con02-1 p:first-of-type {
        display: none;
    }

    .page1_con02-1 p:nth-of-type(2) {
        display: block;
    }

    /* 本文の調整 */
    .page1_con02-2 {
        text-align: left;
    }

    .page1_con02-2 h1 {
        font-size: 1.3rem;
        margin-top: 40px;
        margin-bottom: 20px;
        background-color: #fff1ba; /* 見出しに背景色 */
        padding: 10px;
        border-radius: 10px;
    }
    
    .page1_con02-2 p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    /* 申し込みボタン */
    .page1_con02-3 {
        margin-top: 40px;
    }
    
    .page1_con02-3 a {
        padding: 20px 0;
        width: 100%;
        display: block; /* 幅いっぱいに */
        font-size: 1.3rem;
        font-weight: bold;
    }
    
    /* Google Map */
    iframe {
        height: 300px; /* 高さを少し抑える */
        margin: 20px 0;
        border-radius: 10px;
    }
    
    /* 区切り線 */
    hr {
        margin: 40px 0;
    }

    /* --- 5. アーカイブアコーディオンの調整 --- */

    .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;
    }
}