/* ============================================
   enrollment.css - 入会案内ページ専用スタイル
   ============================================
   
   目次 (Table of Contents)
   --------------------------------------------
   00. フォント・変数
   01. ベーススタイル
   02. enrollment-1st: 入会フロー（3ステップ）
   03. enrollment-2nd: コース情報（週2日/フリー）
   04. enrollment-3rd: 通塾パターン例
   05. enrollment-4th: クラス情報（時間割）
   06. メディアクエリ（768px以下）
   07. メディアクエリ（600px以下）
   08. メディアクエリ（480px以下）
   
   ※ FAQスタイルはbase.cssで定義
   
   ============================================ */


/* ============================================
   00. フォント・変数
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif+JP:wght@400;700&display=swap');

/* 
   TODO: カラー変数化の提案
   :root {
     --color-primary: #0056b3;
     --color-accent-blue: #3498db;
     --color-accent-orange: #F97316;
     --color-text-dark: #333;
     --color-text-muted: #5a6a7a;
     --color-bg-blue: #e8f4fc;
     --color-bg-orange: #fff5e6;
   }
*/


/* ============================================
   01. ベーススタイル
   ============================================ */
body {
    background-image: none;
    background-color: rgb(255, 255, 255);
}

/* 強調テキスト（マーカー風背景） */
.enrollment b,
.enrollment strong,
.faq-section b,
.faq-section strong {
    color: #0056b3;
    font-weight: 700;
    background: linear-gradient(transparent 60%, rgba(6, 158, 252, 0.2) 60%);
}

.enrollment {
    text-align: center;
    padding: 2rem 1rem 0 1rem; /* 左右対称に修正 */
    margin-bottom: 15vh;  /* フォールバック（レガシーブラウザ用） */
    margin-bottom: 15dvh; /* モダンブラウザ（動的ビューポート） */
    border: 0;
    border-radius: 0;
}

.enrollment header {
    padding-bottom: 1vh;  /* フォールバック */
    padding-bottom: 1dvh; /* モダンブラウザ */
}

.enrollment header h1 {
    position: relative;
    display: inline-block;
}

/* section-headerを使用している場合はホバーエフェクトを無効化 */
.enrollment .section-header h1::after {
    display: none;
}

.enrollment:hover header:not(.section-header) h1::after {
    width: 100%;
    left: 0;
    opacity: 1;
}

.enrollment h2 {
    margin: 0;
    text-decoration: none;
    font-weight: bold;
    color: rgba(51, 51, 51, 1);
}

.enrollment p {
    line-height: 1.6;
    text-align: center;
}

.inner-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../images/thumbs/campaign.webp");
}


/* ============================================
   01-b. ステップセクション用 PC/モバイル切り替え
   ============================================ */

/* PC表示時：PC版を表示、モバイル版を非表示 */
.step-content .pc-only {
    display: block;
}
.step-content .mobile-only {
    display: none;
}

/* モバイル表示時：PC版を非表示、モバイル版を表示（768px以下で適用） */
/* ※ メディアクエリセクションで定義 */


/* ============================================
   02. enrollment-1st: 入会フロー（3ステップ）
   ============================================ */

.enrollment-1st {
    background-color: rgba(255, 255, 255, 1);
    padding: 4vh 2vw 0 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- ステップカードコンテナ --- */
.steps-container {
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* --- ステップカード --- */
.step-card {
    width: 100%;
    background: #fff;
    border-radius: 12px; /* 16px → 12px で統一 */
    padding: 32px 40px;
    position: relative;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease; /* all → box-shadow のみ */
}

.step-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    /* translateY削除 - 浮き上がりは過剰 */
}

/* --- ステップヘッダー（番号+イラスト横並び） --- */
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0; /* #eee → 濃く */
    margin-bottom: 20px;
}

/* --- ステップタイトル行（番号+タイトル横並び） --- */
.step-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-title-row h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-left: 20px;
}

/* --- ステップラベル（STEP 1） --- */
.step-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    position: relative;
    padding-bottom: 10px;
}

.step-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(6, 158, 252, 0.7) 0%, rgba(6, 158, 252, 0.2) 100%);
    border-radius: 2px;
}

.step-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #777;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    font-family: 'Noto Serif JP', serif;
    line-height: 1;
}

/* --- ステップカード内のイメージ --- */
.step-header .step-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-header .step-image img {
    width: 110px;
    height: auto;
}

/* --- ステップカード内のコンテンツ --- */
.step-content {
    text-align: left;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(6, 158, 252, 0.25);
    display: inline-block;
}

.step-content p {
    text-align: left;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content ul {
    text-align: left;
    list-style: none; /* デフォルトマーカー削除 */
    padding-left: 0;
    margin: 10px 0;
    color: #555;
    line-height: 1.8;
}

.step-content ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* カスタムチェックマーク */
.step-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #069efc;
    font-weight: bold;
}

/* --- 矢印コネクター --- */
.step-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0; /* 12px → 16px で余白確保 */
    color: #b0b8c0; /* #ccc → やや濃く */
}

.step-connector svg {
    width: 20px; /* 18px → 20px */
    height: 32px; /* 28px → 32px */
}

/* --- ステップカード レスポンシブ（768px） --- */
@media (max-width: 768px) {
    .steps-container {
        padding: 20px 0;
    }

    .step-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .step-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .step-title-row {
        gap: 16px;
    }

    .step-title-row h3 {
        font-size: 1.05rem;
        padding-left: 16px;
    }

    .step-label {
        padding-bottom: 6px;
    }

    .step-num {
        font-size: 2rem;
    }

    .step-header .step-image img {
        width: 90px;
    }

    .step-content h3 {
        font-size: 1.05rem;
    }

    .step-content p,
    .step-content ul li {
        font-size: 0.85rem;
    }

    .step-connector {
        padding: 14px 0; /* 10px → 14px */
    }

    .step-connector svg {
        width: 16px; /* 14px → 16px */
        height: 26px; /* 22px → 26px */
    }
}

/* --- ステップカード レスポンシブ（480px） --- */
@media (max-width: 480px) {
    .enrollment-1st {
        padding: 4vh 4vw 0 4vw;
    }

    .step-card {
        padding: 20px 16px;
    }

    .step-header {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .step-title-row {
        gap: 12px;
    }

    .step-title-row h3 {
        font-size: 0.95rem;
        padding-left: 12px;
        border-left-width: 2px;
    }

    .step-label {
        padding-bottom: 5px;
    }

    .step-num {
        font-size: 1.7rem;
    }

    .step-header .step-image img {
        width: 80px; /* 75px → 80px でバランス改善 */
    }

    .step-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .step-content p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .step-content ul {
        padding-left: 1.2em; /* 1.4em → 1.2em でモバイル最適化 */
    }
}


/* ============================================
   03. enrollment-2nd: コース情報（週2日/フリー）
   ============================================ */

/* --- イントロ部分 --- */
.enrollment-2nd .course-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.enrollment-2nd .course-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a3f5f;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.enrollment-2nd .course-intro-sub {
    font-size: 0.95rem;
    color: #5a6a7a;
    line-height: 1.8;
}

.enrollment-2nd .course-intro .faq-link {
    color: #3498db;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.enrollment-2nd .course-intro .faq-link:hover {
    color: #1a5f8f;
}

/* --- カードコンテナ --- */
.enrollment-2nd .pc-only .course-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 1rem .3rem;
    perspective: 1000px;
}

/* --- カード共通 --- */
.enrollment-2nd .pc-only .course-cards .course-card {
    position: relative;
    width: 340px;
    min-height: 420px;
    border-radius: 20px;
    padding: 0;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 簡略化 */
}

.enrollment-2nd .pc-only .course-cards .course-card:hover {
    transform: scale(1.01); /* translateY(-12px) scale(1.02) → scale(1.01)のみ */
}

/* --- 週2日コース（Blue） --- */
.enrollment-2nd .pc-only .course-cards .standard-course {
    background: linear-gradient(145deg, #e8f4fc 0%, #d0e8f8 100%);
    border: 2px solid rgba(100, 160, 210, 0.3);
    box-shadow: 
        0 10px 30px rgba(100, 160, 210, 0.2),
        0 2px 10px rgba(100, 160, 210, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.enrollment-2nd .pc-only .course-cards .standard-course:hover {
    box-shadow: 
        0 20px 50px rgba(100, 160, 210, 0.35),
        0 5px 20px rgba(100, 160, 210, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* --- フリーコース（Orange） --- */
.enrollment-2nd .pc-only .course-cards .premium-course {
    background: linear-gradient(145deg, #fff5e6 0%, #ffe8c8 100%);
    border: 2px solid rgba(255, 160, 50, 0.35);
    box-shadow: 
        0 10px 30px rgba(255, 160, 50, 0.2),
        0 2px 10px rgba(255, 160, 50, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.enrollment-2nd .pc-only .course-cards .premium-course:hover {
    box-shadow: 
        0 20px 50px rgba(255, 160, 50, 0.35),
        0 5px 20px rgba(255, 160, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* --- 人気No.1リボン --- */
.enrollment-2nd .ribbon-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 10;
}

.enrollment-2nd .ribbon-badge span {
    display: block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(238, 90, 90, 0.4);
    /* animation削除 - 継続的なpulseは過剰 */
}

/* キーフレームは残すが使用しない */
@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- カードヘッダー --- */
.enrollment-2nd .pc-only .course-card .course-header {
    padding: 1.8rem 1.5rem 1rem;
    text-align: center;
}

.enrollment-2nd .pc-only .course-card .course-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 0.6rem;
}

.enrollment-2nd .pc-only .standard-course .course-label {
    background: rgba(100, 160, 210, 0.2);
    color: #4a8bc2;
}

.enrollment-2nd .pc-only .premium-course .course-label {
    background: rgba(255, 160, 50, 0.25);
    color: #c87a20;
}

.enrollment-2nd .pc-only .course-card .course-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.3rem 0 0.8rem;
    letter-spacing: 0.02em;
}

.enrollment-2nd .pc-only .standard-course .course-header h3 {
    color: #2c5f8a;
}

.enrollment-2nd .pc-only .premium-course .course-header h3 {
    color: #b86e1d;
}

/* --- 価格バッジ --- */
.enrollment-2nd .pc-only .price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 8px 20px;
    border-radius: 25px;
    margin-top: 0.3rem;
}

.enrollment-2nd .pc-only .standard-course .price-badge {
    background: linear-gradient(135deg, #4a9fd4 0%, #3a8ac4 100%);
    box-shadow: 0 4px 12px rgba(74, 159, 212, 0.35);
}

.enrollment-2nd .pc-only .premium-course .price-badge {
    background: linear-gradient(135deg, #f5a623 0%, #e09015 100%);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.enrollment-2nd .pc-only .price-badge .price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.enrollment-2nd .pc-only .price-badge .price-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* --- 社会的証明：8割以上の方が選択 --- */
.enrollment-2nd .pc-only .popular-reason {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c87a20;
    text-align: center;
    margin-top: 0.3rem;
    letter-spacing: 0.03em;
}

/* --- フレーミング効果：価格差表示 --- */
.enrollment-2nd .pc-only .price-diff {
    font-size: 0.8rem;
    font-weight: 600;
    color: #d48820;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* --- 週2日コースの控えめなフッター --- */
.enrollment-2nd .pc-only .course-card .course-note.subtle {
    font-size: 0.75rem;
    color: #8a9aaa;
    font-weight: 400;
}

/* --- カード区切り線 --- */
.enrollment-2nd .pc-only .course-divider {
    height: 1px;
    margin: 0 1.5rem;
}

.enrollment-2nd .pc-only .standard-course .course-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(100, 160, 210, 0.4) 50%, transparent 100%);
}

.enrollment-2nd .pc-only .premium-course .course-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 160, 50, 0.5) 50%, transparent 100%);
}

/* --- カードボディ --- */
.enrollment-2nd .pc-only .course-card .course-body {
    padding: 1.2rem 1.5rem 0.8rem;
}

/* --- ポイントグループ --- */
.enrollment-2nd .pc-only .course-card .point-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    text-align: left;
}

.enrollment-2nd .pc-only .course-card .point-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.enrollment-2nd .pc-only .standard-course .point-icon {
    background: rgba(74, 139, 194, 0.15);
    color: #4a8bc2;
}

.enrollment-2nd .pc-only .premium-course .point-icon {
    background: rgba(200, 122, 32, 0.15);
    color: #c87a20;
}

.enrollment-2nd .pc-only .course-card .point-icon svg {
    width: 18px;
    height: 18px;
}

.enrollment-2nd .pc-only .course-card .point-content {
    flex: 1;
}

.enrollment-2nd .pc-only .course-card .point-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.4;
}

.enrollment-2nd .pc-only .standard-course .point-title {
    color: #2c5f8a;
}

.enrollment-2nd .pc-only .premium-course .point-title {
    color: #8b5a1b;
}

.enrollment-2nd .pc-only .premium-course .point-title a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.enrollment-2nd .pc-only .course-card .point-desc {
    font-size: 0.85rem;
    color: #5a6a7a;
    margin: 0;
    line-height: 1.5;
}

/* --- カードフッター --- */
.enrollment-2nd .pc-only .course-card .course-footer-card {
    padding: 0.8rem 1.5rem 1.2rem;
    text-align: center;
}

.enrollment-2nd .pc-only .course-card .course-note {
    font-size: 0.8rem;
    color: #6a7a8a;
    font-weight: 500;
}

.enrollment-2nd .pc-only .course-card .course-note.highlight {
    color: #c87a20;
    font-weight: 700;
}

/* --- CTA誘導コネクター --- */
.enrollment-2nd .cta-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0 .5rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enrollment-2nd .cta-connector .connector-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.5) 100%);
    border-radius: 1px;
}

.enrollment-2nd .cta-connector .connector-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3498db;
    padding: 8px 20px;
    background: rgba(52, 152, 219, 0.08);
    border-radius: 20px;
}

.enrollment-2nd .cta-connector .connector-arrow {
    color: #3498db;
    animation: bounce-down 1.5s ease-in-out infinite;
}

.enrollment-2nd .cta-connector .connector-arrow svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.enrollment-2nd .course-footer {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

/* --- CTA強化版ボタン（専門家設計） --- */
.enrollment-2nd .course-footer .cta-button-enhanced {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;  /* タップ領域確保（WCAG準拠） */
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 18px 44px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(249, 115, 22, 0.4),
        0 8px 30px rgba(234, 88, 12, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* animation削除 - 常時pulseは過剰 */
}

/* シャイン効果 */
.enrollment-2nd .course-footer .cta-button-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.enrollment-2nd .course-footer .cta-button-enhanced:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(249, 115, 22, 0.5),
        0 12px 40px rgba(234, 88, 12, 0.3);
    animation: none;
}

.enrollment-2nd .course-footer .cta-button-enhanced:hover::before {
    left: 100%;
}

.enrollment-2nd .course-footer .cta-button-enhanced i,
.enrollment-2nd .course-footer .cta-button-enhanced svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.enrollment-2nd .course-footer .cta-button-enhanced .cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.enrollment-2nd .course-footer .cta-button-enhanced:hover .cta-arrow {
    transform: translateX(4px);
}

/* サブテキスト */
.enrollment-2nd .course-footer .cta-subtext {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* パルスアニメーション */
@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(249, 115, 22, 0.4),
            0 8px 30px rgba(234, 88, 12, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 20px rgba(249, 115, 22, 0.5),
            0 12px 40px rgba(234, 88, 12, 0.3);
    }
}

/* 旧ボタンスタイル（後方互換） */
.enrollment-2nd .course-footer .cta-button {
    background: linear-gradient(to right, rgba(106, 193, 255, 1), rgba(75, 163, 242, 1));
    box-shadow: 0 4px 12px rgba(75, 163, 242, 0.35);
    border-radius: 10px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.enrollment-2nd .course-footer .cta-button:hover {
    background: linear-gradient(to right, rgba(59, 146, 225, 1), rgba(0, 132, 255, 1));
}

.enrollment-2nd .mobile-only {
    display: none;
}


/* ============================================
   04. enrollment-3rd: 通塾パターン例
   ============================================ */

.student-patterns {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafe 50%, #fff8f5 100%);
    padding: 4rem 2rem;
    position: relative;
    margin-bottom: 0;
}

.student-patterns::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 159, 212, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 166, 35, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.student-patterns header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.student-patterns header h1 {
    font-size: 2rem;
    color: #2a3f5f;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.student-patterns .sub-header {
    font-size: 1rem;
    color: #5a6a7a;
    margin: 0;
}

/* --- PC版・モバイル版表示制御 --- */
.patterns-pc {
    display: block;
}

.patterns-mobile {
    display: none;
}

/* --- パターンカードコンテナ --- */
.patterns-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- パターンカード共通 --- */
.pattern-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pattern-card:hover {
    transform: translateY(-6px);
}

/* --- 週2回コース（青系） --- */
.pattern-card.weekly-course {
    background: linear-gradient(145deg, #e8f4fc 0%, #d0e8f8 100%);
    border: 1px solid rgba(100, 160, 210, 0.25);
    box-shadow: 0 4px 20px rgba(100, 160, 210, 0.15);
}

.pattern-card.weekly-course:hover {
    box-shadow: 0 12px 35px rgba(100, 160, 210, 0.25);
}

.pattern-card.weekly-course .pattern-icon {
    background: rgba(74, 139, 194, 0.15);
    color: #4a8bc2;
}

.pattern-card.weekly-course .pattern-header h3 {
    color: #2c5f8a;
}

.pattern-card.weekly-course .schedule-info {
    background: rgba(74, 139, 194, 0.1);
    color: #2c5f8a;
}

.pattern-card.weekly-course .progress-fill {
    background: linear-gradient(90deg, #6ac1ff, #4a9fd4);
}

/* --- フリーコース（オレンジ系） --- */
.pattern-card.free-course {
    background: linear-gradient(145deg, #fff5e6 0%, #ffe8c8 100%);
    border: 1px solid rgba(255, 160, 50, 0.25);
    box-shadow: 0 4px 20px rgba(255, 160, 50, 0.15);
}

.pattern-card.free-course:hover {
    box-shadow: 0 12px 35px rgba(255, 160, 50, 0.25);
}

.pattern-card.free-course .pattern-icon {
    background: rgba(200, 122, 32, 0.15);
    color: #c87a20;
}

.pattern-card.free-course .pattern-header h3 {
    color: #8b5a1b;
}

.pattern-card.free-course .schedule-info {
    background: rgba(200, 122, 32, 0.1);
    color: #8b5a1b;
}

.pattern-card.free-course .progress-fill {
    background: linear-gradient(90deg, #ffb347, #f5a623);
}

/* --- 兄弟コース（紫系） --- */
.pattern-card.sibling-course {
    background: linear-gradient(145deg, #f3eeff 0%, #e8dff8 100%);
    border: 1px solid rgba(150, 100, 200, 0.25);
    box-shadow: 0 4px 20px rgba(150, 100, 200, 0.15);
}

.pattern-card.sibling-course:hover {
    box-shadow: 0 12px 35px rgba(150, 100, 200, 0.25);
}

.pattern-card.sibling-course .pattern-icon {
    background: rgba(130, 80, 180, 0.15);
    color: #8250b4;
}

.pattern-card.sibling-course .pattern-header h3 {
    color: #5a3d7a;
}

.pattern-card.sibling-course .schedule-info {
    background: rgba(130, 80, 180, 0.1);
    color: #5a3d7a;
}

.pattern-card.sibling-course .progress-fill {
    background: linear-gradient(90deg, #b794f4, #9f7aea);
}

/* --- パターンヘッダー --- */
.pattern-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pattern-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-icon svg {
    width: 24px;
    height: 24px;
}

.pattern-title-area {
    flex: 1;
}

.pattern-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.student-info {
    font-size: 0.85rem;
    color: #6a7a8a;
    margin: 0;
}

/* --- パターンボディ --- */
.pattern-body {
    padding: 1.2rem 1.5rem 1.5rem;
}

.schedule-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.schedule-info svg {
    width: 16px;
    height: 16px;
}

/* --- プログレス情報 --- */
.progress-info {
    margin-bottom: 1rem;
}

.progress-info p {
    font-size: 0.9rem;
    color: #4a5a6a;
    margin: 0 0 0.5rem;
    text-align: left;
    line-height: 1.5;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- 兄弟プログレス --- */
.sibling-progress {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sibling-item {
    margin-bottom: 0.75rem;
}

.sibling-item:last-child {
    margin-bottom: 0;
}

.sibling-item strong {
    display: block;
    font-size: 0.85rem;
    color: #4a5a6a;
    margin-bottom: 0.3rem;
    background: none; /* .enrollment strongのマーカー背景を除去 */
}

/* --- バッジ --- */
.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.achievement-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.35rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.achievement-badges .badge svg {
    width: 14px;
    height: 14px;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #ff6b9d, #ff8fa3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3);
}

.discount-badge svg {
    width: 16px;
    height: 16px;
}

/* --- 保護者コメント --- */
.parent-comment {
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid currentColor;
    padding: 0.8rem 1rem;
    margin: 0;
    font-style: italic;
    font-size: 0.9rem;
    color: #5a6a7a;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.weekly-course .parent-comment {
    border-color: #4a8bc2;
}

.free-course .parent-comment {
    border-color: #c87a20;
}

.sibling-course .parent-comment {
    border-color: #8250b4;
}

/* --- モバイル版Swiper --- */
.patterns-swiper {
    padding-bottom: 50px;
}

.patterns-swiper .swiper-slide {
    height: auto;
}

.patterns-swiper .pattern-card {
    height: 100%;
    margin: 0;
}

.patterns-mobile .swipe-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #ffffff; /* #8a9aaa → より濃くしてコントラスト改善 */
    font-size: 0.8rem;
}

.patterns-mobile .swipe-indicator svg {
    width: 18px;
    height: 18px;
    animation: swipe-hint 1.5s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.patterns-mobile .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
}

.patterns-mobile .swiper-pagination-bullet-active {
    background: #3498db;
    width: 20px;
    border-radius: 4px;
}


/* ============================================
   05. enrollment-4th: クラス情報（時間割）
   ============================================ */

.enrollment-4th {
    margin-bottom: 5dvh;
}

/* fadeInキーフレームはbase.cssで定義 */


/* ============================================
   06. メディアクエリ（1023px以下）
   ============================================ */
@media screen and (max-width: 1023px) {
    .enrollment-1st {
        background-color: rgba(255, 255, 255, 1);
        margin: 0;
    }

    .enrollment-2nd .pc-only .course-cards {
        gap: 5dvw;
    }

    .enrollment h2,
    .enrollment h3,
    .enrollment p {
        padding: 0 2dvw;
    }
}


/* ============================================
   07. メディアクエリ（768px以下）
   ============================================ */
@media screen and (max-width: 768px) {
    /* --- ステップセクション用 PC/モバイル切り替え --- */
    .step-content .pc-only {
        display: none;
    }
    .step-content .mobile-only {
        display: block;
    }

    .enrollment {
        margin-bottom: 5dvh;
    }

    .enrollment header {
        padding-bottom: 1vh;
    }

    .enrollment-2nd .pc-only {
        display: none;
    }

    .enrollment-2nd .mobile-only {
        display: block;
        overflow: hidden;
        padding: 0 1rem;
    }
    
    /* --- モバイル版イントロ --- */
    .enrollment-2nd .mobile-only .course-intro {
        max-width: 100%;
        margin: 0 auto 1.5rem;
        padding: 0 0.5rem;
    }
    
    .enrollment-2nd .mobile-only .course-intro h2 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #2a3f5f;
        margin-bottom: 0.5rem;
    }
    
    .enrollment-2nd .mobile-only .course-intro-sub {
        font-size: 0.9rem;
        color: #5a6a7a;
        line-height: 1.7;
    }
    
    .enrollment-2nd .mobile-only .faq-link {
        color: #3498db;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    
    /* --- Swiperコンテナ --- */
    .swiper-container-wrapper {
        position: relative;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    .enrollment-2nd .mobile-only .course-swiper {
        width: 100%;
        max-width: 360px;
        padding: 1.5rem 0 3.5rem;
        margin: 0 auto;
        overflow: visible;
    }
    
    .swiper-slide-inner {
        width: 100%;
        height: 100%;
        padding: 15px 0;
    }
    
    .enrollment-2nd .mobile-only .swiper-slide {
        display: flex;
        justify-content: center;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    /* --- モバイル版カード共通 --- */
    .enrollment-2nd .mobile-only .course-card {
        position: relative;
        width: 90vw;
        max-width: 300px;
        min-height: 420px;
        border-radius: 16px; /* 20px → 16px で統一 */
        padding: 0;
        margin: 0 auto;
        overflow: visible;
        touch-action: pan-y;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    
    /* --- 週2日コース（Blue）モバイル --- */
    .enrollment-2nd .mobile-only .course-card.standard-course {
        background: linear-gradient(145deg, #e8f4fc 0%, #d0e8f8 100%);
        border: 2px solid rgba(100, 160, 210, 0.3);
        box-shadow: 
            0 8px 25px rgba(100, 160, 210, 0.2),
            0 2px 8px rgba(100, 160, 210, 0.1);
    }
    
    /* --- フリーコース（Orange）モバイル --- */
    .enrollment-2nd .mobile-only .course-card.premium-course {
        background: linear-gradient(145deg, #fff5e6 0%, #ffe8c8 100%);
        border: 2px solid rgba(255, 160, 50, 0.35);
        box-shadow: 
            0 8px 25px rgba(255, 160, 50, 0.2),
            0 2px 8px rgba(255, 160, 50, 0.1);
    }
    
    /* --- カードヘッダー モバイル --- */
    .enrollment-2nd .mobile-only .course-card .course-header {
        padding: 1.5rem 1.2rem 0.8rem;
        text-align: center;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-label {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 3px 10px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
    }
    
    .enrollment-2nd .mobile-only .standard-course .course-label {
        background: rgba(100, 160, 210, 0.2);
        color: #4a8bc2;
    }
    
    .enrollment-2nd .mobile-only .premium-course .course-label {
        background: rgba(255, 160, 50, 0.25);
        color: #c87a20;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-header h3 {
        font-size: 1.4rem;
        font-weight: 800;
        margin: 0.2rem 0 0.6rem;
        letter-spacing: 0.02em;
    }
    
    .enrollment-2nd .mobile-only .standard-course .course-header h3 {
        color: #2c5f8a;
    }
    
    .enrollment-2nd .mobile-only .premium-course .course-header h3 {
        color: #b86e1d;
    }
    
    /* --- 価格バッジ モバイル --- */
    .enrollment-2nd .mobile-only .price-badge {
        display: inline-flex;
        align-items: baseline;
        gap: 2px;
        padding: 6px 16px;
        border-radius: 20px;
        margin-top: 0.2rem;
    }
    
    .enrollment-2nd .mobile-only .standard-course .price-badge {
        background: linear-gradient(135deg, #4a9fd4 0%, #3a8ac4 100%);
        box-shadow: 0 3px 10px rgba(74, 159, 212, 0.3);
    }
    
    .enrollment-2nd .mobile-only .premium-course .price-badge {
        background: linear-gradient(135deg, #f5a623 0%, #e09015 100%);
        box-shadow: 0 3px 10px rgba(245, 166, 35, 0.35);
    }
    
    .enrollment-2nd .mobile-only .price-badge .price-amount {
        font-size: 1.2rem;
        font-weight: 800;
        color: #fff;
    }
    
    .enrollment-2nd .mobile-only .price-badge .price-unit {
        font-size: 0.8rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* --- 人気理由 モバイル --- */
    .enrollment-2nd .mobile-only .popular-reason {
        font-size: 0.7rem;
        font-weight: 600;
        color: #c87a20;
        text-align: center;
        margin-top: 0.3rem;
    }
    
    .enrollment-2nd .mobile-only .price-diff {
        font-size: 0.75rem;
        font-weight: 600;
        color: #d48820;
        text-align: center;
        margin-top: 0.4rem;
        padding: 0.25rem 0.6rem;
        background: rgba(245, 166, 35, 0.1);
        border-radius: 4px;
        display: inline-block;
    }
    
    /* --- カード区切り線 モバイル --- */
    .enrollment-2nd .mobile-only .course-divider {
        height: 1px;
        margin: 0 1.2rem;
    }
    
    .enrollment-2nd .mobile-only .standard-course .course-divider {
        background: linear-gradient(90deg, transparent 0%, rgba(100, 160, 210, 0.4) 50%, transparent 100%);
    }
    
    .enrollment-2nd .mobile-only .premium-course .course-divider {
        background: linear-gradient(90deg, transparent 0%, rgba(255, 160, 50, 0.5) 50%, transparent 100%);
    }
    
    /* --- カードボディ モバイル --- */
    .enrollment-2nd .mobile-only .course-card .course-body {
        padding: 1rem 1.2rem 0.6rem;
    }
    
    /* --- ポイントグループ モバイル --- */
    .enrollment-2nd .mobile-only .course-card .point-group {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 0.8rem;
        text-align: left;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-icon {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    
    .enrollment-2nd .mobile-only .standard-course .point-icon {
        background: rgba(74, 139, 194, 0.15);
        color: #4a8bc2;
    }
    
    .enrollment-2nd .mobile-only .premium-course .point-icon {
        background: rgba(200, 122, 32, 0.15);
        color: #c87a20;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-content {
        flex: 1;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-title {
        font-size: 0.9rem;
        font-weight: 700;
        margin: 0 0 2px;
        line-height: 1.4;
    }
    
    .enrollment-2nd .mobile-only .standard-course .point-title {
        color: #2c5f8a;
    }
    
    .enrollment-2nd .mobile-only .premium-course .point-title {
        color: #8b5a1b;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-desc {
        font-size: 0.8rem;
        color: #5a6a7a;
        margin: 0;
        line-height: 1.5;
    }
    
    /* --- カードフッター モバイル --- */
    .enrollment-2nd .mobile-only .course-card .course-footer-card {
        padding: 0.6rem 1.2rem 1rem;
        text-align: center;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-note {
        font-size: 0.75rem;
        color: #6a7a8a;
        font-weight: 500;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-note.highlight {
        color: #c87a20;
        font-weight: 700;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-note.subtle {
        font-size: 0.7rem;
        color: #8a9aaa;
        font-weight: 400;
    }
    
    /* --- リボンバッジ モバイル（カード内に収める） --- */
    .enrollment-2nd .mobile-only .ribbon-badge {
        position: absolute;
        top: 12px; /* より内側に */
        right: 12px; /* より内側に（隣カードからの見切れ防止） */
        z-index: 10;
    }
    
    .enrollment-2nd .mobile-only .ribbon-badge span {
        display: block;
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
        color: #fff;
        font-size: 0.7rem; /* さらに小さく */
        font-weight: 700;
        padding: 4px 10px; /* コンパクトに */
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(238, 90, 90, 0.4);
        white-space: nowrap; /* 改行防止 */
    }
    
    /* --- Swiperエフェクト --- */
    .enrollment-2nd .mobile-only .swiper-slide {
        opacity: 0.5;
        transform: scale(0.9);
    }
    
    .enrollment-2nd .mobile-only .swiper-slide-active {
        opacity: 1;
        transform: scale(1);
    }
    
    .enrollment-2nd .mobile-only .swiper-slide-active .course-card {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    }
    
    /* --- スワイプインジケーター --- */
    .enrollment-2nd .mobile-only .swipe-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 0.5rem;
        color: #8a9aaa;
        font-size: 0.75rem;
    }
    
    .enrollment-2nd .mobile-only .swipe-indicator svg {
        width: 16px;
        height: 16px;
        animation: swipe-hint 1.5s ease-in-out infinite;
    }
    
    /* --- ページネーション --- */
    .enrollment-2nd .mobile-only .swiper-pagination {
        bottom: 20px !important;
    }
    
    .enrollment-2nd .mobile-only .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #ccc;
        opacity: 1;
    }
    
    .enrollment-2nd .mobile-only .swiper-pagination-bullet-active {
        background: #3498db;
        width: 20px;
        border-radius: 4px;
    }
    
    /* --- CTAボタン モバイル調整 --- */
    .enrollment-2nd .course-footer {
        text-align: center;
        margin-top: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    /* CTA強化版（スマホ） */
    .enrollment-2nd .course-footer .cta-button-enhanced {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
        color: white;
        font-size: 1.05rem;
        font-weight: 700;
        padding: 16px 32px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 
            0 4px 15px rgba(249, 115, 22, 0.4),
            0 8px 30px rgba(234, 88, 12, 0.2);
        animation: cta-pulse 2.5s ease-in-out infinite;
    }
    
    .enrollment-2nd .course-footer .cta-button-enhanced i,
    .enrollment-2nd .course-footer .cta-button-enhanced svg {
        width: 20px;
        height: 20px;
    }
    
    .enrollment-2nd .course-footer .cta-button-enhanced .cta-arrow {
        width: 16px;
        height: 16px;
    }
    
    .enrollment-2nd .course-footer .cta-subtext {
        margin-top: 10px;
        font-size: 0.8rem;
        color: #64748b;
    }
    
    .enrollment-2nd .course-footer .course-btn.unified-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        font-size: 1rem;
        color: white;
        background: linear-gradient(135deg, #4a9fd4 0%, #3a8ac4 100%);
        border-radius: 30px;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(74, 159, 212, 0.35);
        transition: all 0.3s ease;
    }
    
    .enrollment-2nd .course-footer .course-btn.unified-btn:hover {
        background: linear-gradient(135deg, #3a8ac4 0%, #2a7ab4 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(74, 159, 212, 0.45);
    }
    
    .enrollment-2nd .course-footer .course-btn.unified-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .swiper-3d .swiper-slide-shadow,
    .swiper-3d .swiper-slide-shadow-bottom,
    .swiper-3d .swiper-slide-shadow-left,
    .swiper-3d .swiper-slide-shadow-right,
    .swiper-3d .swiper-slide-shadow-top {
        width: 0;
    }

    /* --- 通塾パターンセクション モバイル対応 --- */
    .student-patterns {
        padding: 3rem 1rem;
    }
    
    .student-patterns header h1 {
        font-size: 1.5rem;
    }
    
    .student-patterns .sub-header {
        font-size: 0.9rem;
    }
    
    .patterns-pc {
        display: none;
    }
    
    .patterns-mobile {
        display: block;
    }
    
    .patterns-swiper {
        max-width: 100%;
        padding: 0 0 50px;
    }
    
    .patterns-mobile .pattern-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .pattern-header {
        padding: 1rem 1.2rem;
        gap: 0.8rem;
    }
    
    .pattern-icon {
        width: 40px;
        height: 40px;
    }
    
    .pattern-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .pattern-header h3 {
        font-size: 1rem;
    }
    
    .student-info {
        font-size: 0.8rem;
    }
    
    .pattern-body {
        padding: 1rem 1.2rem 1.2rem;
        background: white;
        margin: 1rem;
        border-radius: 1rem;
    }
    
    .schedule-info {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .progress-info p {
        font-size: 0.8rem;
    }
    
    .sibling-item strong {
        font-size: 0.8rem;
    }
    
    .achievement-badges .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .discount-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .parent-comment {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}


/* ============================================
   08. メディアクエリ（600px以下）
   ============================================ */
@media screen and (max-width: 600px) {
    /* 600px以下の微調整 */
    .enrollment-2nd .mobile-only .course-intro h2 {
        font-size: 1.2rem;
    }
    
    .enrollment-2nd .mobile-only .course-swiper {
        max-width: 320px;
    }
    
    .enrollment-2nd .mobile-only .course-card {
        max-width: 280px;
        min-height: 400px;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-header h3 {
        font-size: 1.3rem;
    }
    
    .enrollment-2nd .mobile-only .price-badge .price-amount {
        font-size: 1.1rem;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-title {
        font-size: 0.85rem;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-desc {
        font-size: 0.75rem;
    }
}


/* ============================================
   09. メディアクエリ（480px以下）
   ============================================ */
@media screen and (max-width: 480px) {
    .enrollment {
        margin-bottom: 2dvh;
    }
    
    /* 480px以下の微調整 */
    .enrollment-2nd .mobile-only .course-intro {
        padding: 0;
    }
    
    .enrollment-2nd .mobile-only .course-intro h2 {
        font-size: 1.15rem;
    }
    
    .enrollment-2nd .mobile-only .course-intro-sub {
        font-size: 0.85rem;
    }
    
    .enrollment-2nd .mobile-only .course-swiper {
        max-width: 100%;
        padding: 1rem 0 3rem;
    }
    
    .enrollment-2nd .mobile-only .course-card {
        width: 88vw;
        max-width: 300px;
        min-height: 380px;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-header {
        padding: 1.2rem 1rem 0.6rem;
    }
    
    .enrollment-2nd .mobile-only .course-card .course-body {
        padding: 0.8rem 1rem 0.4rem;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-group {
        margin-bottom: 0.7rem;
        gap: 8px;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-icon {
        width: 28px;
        height: 28px;
    }
    
    .enrollment-2nd .mobile-only .course-card .point-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .enrollment-2nd .course-footer .course-btn.unified-btn {
        font-size: 0.95rem;
        padding: 12px 24px;
    }
    
    .enrollment-2nd .mobile-only .ribbon-badge span {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* --- 通塾パターンセクション 480px微調整 --- */
    .student-patterns {
        padding: 2.5rem 0.8rem;
    }
    
    .student-patterns header h1 {
        font-size: 1.3rem;
    }
    
    .patterns-mobile .pattern-card {
        max-width: 100%;
        width: 88vw;
    }
    
    .pattern-header {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
    }
    
    .pattern-icon {
        width: 36px;
        height: 36px;
    }
    
    .pattern-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .pattern-header h3 {
        font-size: 0.95rem;
    }
    
    .pattern-body {
        padding: 0.8rem 1rem 1rem;
    }
    
    .schedule-info {
        font-size: 0.75rem;
    }
    
    .progress-info p {
        font-size: 0.75rem;
    }
    
    .parent-comment {
        font-size: 0.8rem;
    }
}


/* ============================================
   10. 高度専門家推奨改善スタイル（2026年1月追加）
   ============================================
   
   改善内容:
   - 10-a: コース選択事前告知（心理的ハードル低減）
   - 10-b: 保護者コメント視覚強化（社会的証明強化）
   - 10-c: クラスガイダンスボックス（選択支援）
   - 10-d: 即日スタートバッジ（行動トリガー強化）
   - 10-e: インタースティシャルCTA（スクロール疲れ対策）
   
   ============================================ */


/* --- 10-a: コース選択事前告知 --- */
.course-selection-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(6, 158, 252, 0.08), rgba(249, 115, 22, 0.08));
    border: 1px dashed rgba(100, 130, 160, 0.3);
    padding: 14px 24px;
    border-radius: 12px;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.course-selection-note svg {
    width: 20px;
    height: 20px;
    color: #3498db;
    flex-shrink: 0;
}

.course-selection-note span {
    font-size: 0.9rem;
    color: #5a6a7a;
    line-height: 1.5;
}

.course-selection-note strong {
    color: #2c5f8a;
    font-weight: 700;
}


/* --- 10-b: 保護者コメント視覚強化 --- */
.pattern-card .parent-comment {
    position: relative;
    background: #fff;
    border-left: 4px solid;
    padding: 1rem 1.2rem 1rem 1.8rem;
    margin-top: 1rem;
    border-radius: 0 10px 10px 0;
    font-style: normal;
    color: #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.weekly-course .parent-comment {
    border-left-color: #4a9fd4;
    background: linear-gradient(90deg, rgba(74, 159, 212, 0.05) 0%, #fff 100%);
}

.free-course .parent-comment {
    border-left-color: #f5a623;
    background: linear-gradient(90deg, rgba(245, 166, 35, 0.05) 0%, #fff 100%);
}

.sibling-course .parent-comment {
    border-left-color: #9b7ed9;
    background: linear-gradient(90deg, rgba(155, 126, 217, 0.05) 0%, #fff 100%);
}

/* 引用マーク */
.pattern-card .parent-comment::before {
    content: '"';
    font-size: 2.5rem;
    color: rgba(0, 0, 0, 0.08);
    position: absolute;
    top: -5px;
    left: 6px;
    font-family: Georgia, serif;
    line-height: 1;
}


/* --- 10-c: クラスガイダンスボックス --- */
/* ※ base.cssに移動しました */


/* --- 10-d: Step内の強調メッセージ --- */
.step-note-highlight {
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.12) 100%);
    border-left: 3px solid #10b981;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #047857;
}

.step-note-highlight b {
    color: #047857;
    background: none;
}

@media (max-width: 768px) {
    .step-note-highlight {
        margin-top: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}


/* --- 10-e: Step 3カード内ピル型CTAボタン --- */
.step-card-with-cta {
    position: relative;
}

.step-card-cta {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 24px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    white-space: nowrap;
}

.step-card-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.step-card-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    color: #fff;
}

.step-card-cta:active {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .step-card-cta {
        padding: 9px 14px;
        font-size: 0.8rem;
        bottom: 12px;
        right: 12px;
    }
    
    .step-card-cta svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .step-card-cta {
        padding: 8px 12px;
        font-size: 0.75rem;
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .step-card-cta svg {
        width: 14px;
        height: 14px;
    }
}


/* --- 10-f: フローセクションCTA（未使用・予備） ---
.flow-section-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 3rem;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.03) 100%);
}
*/


/* --- 10-g: 即日スタートバッジ（未使用・予備） --- */
.instant-start-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 25px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: badge-glow 3s ease-in-out infinite;
}

.instant-start-badge svg {
    width: 18px;
    height: 18px;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    }
}

@media (max-width: 480px) {
    .instant-start-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
        gap: 6px;
    }
    
    .instant-start-badge svg {
        width: 16px;
        height: 16px;
    }
}


/* --- 10-e: セクション間ミニCTA（スクロール疲れ対策） --- */
.section-mini-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 2rem 1rem;
    margin: 2rem 0;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.03) 0%, rgba(249, 115, 22, 0.08) 100%);
    border-radius: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.section-mini-cta .mini-cta-text {
    font-size: 0.95rem;
    color: #5a6a7a;
    margin: 0;
}

.section-mini-cta .mini-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;  /* タップ領域確保（WCAG準拠） */
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
    transition: all 0.3s ease;
}

.section-mini-cta .mini-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.section-mini-cta .mini-cta-button svg {
    width: 18px;
    height: 18px;
}


/* --- 10-f: 週2日コースラベル改善 --- */
.enrollment-2nd .pc-only .standard-course .course-label,
.enrollment-2nd .mobile-only .standard-course .course-label {
    letter-spacing: 0.08em;
}


/* --- 10-g: CTA強化マイクロコピー --- */
.cta-micro-copy {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.cta-micro-copy .micro-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #64748b;
}

.cta-micro-copy .micro-item svg {
    width: 14px;
    height: 14px;
    color: #10b981;
}

@media (max-width: 480px) {
    .cta-micro-copy {
        flex-direction: column;
        gap: 6px;
    }
    
    .cta-micro-copy .micro-item {
        font-size: 0.75rem;
    }
}

/* ====================================================
   11. シャイニングアニメーション（入会案内ページ）
   ====================================================
   美術的効果：コースカードのプレミアム感演出
   心理学効果：選択肢への注目、品質認知の向上
   ==================================================== */

/* --- コースカード シャイニング効果 --- */
.enrollment-2nd .course-card {
    position: relative;
    overflow: hidden;
}

.enrollment-2nd .course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: cardShine 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* 各カードで異なるタイミング */
.enrollment-2nd .course-card:nth-child(1)::after {
    animation-delay: 0s;
}

.enrollment-2nd .course-card:nth-child(2)::after {
    animation-delay: 2s;
}

.enrollment-2nd .course-card:nth-child(3)::after {
    animation-delay: 4s;
}

/* ホバー時は一時停止 */
.enrollment-2nd .course-card:hover::after {
    animation-play-state: paused;
    opacity: 0;
}

/* --- CTA強化版ボタン シャイニング（オレンジ専用） --- */
.enrollment-2nd .cta-button-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: buttonShine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.enrollment-2nd .cta-button-enhanced:hover::before {
    animation: buttonShineHover 0.5s ease-out forwards;
}

/* --- 通塾パターンカード シャイニング --- */
.pattern-card {
    position: relative;
    overflow: hidden;
}

.pattern-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: cardShine 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.pattern-card:nth-child(1)::after {
    animation-delay: 0s;
}

.pattern-card:nth-child(2)::after {
    animation-delay: 1.5s;
}

.pattern-card:nth-child(3)::after {
    animation-delay: 3s;
}

/* キーフレーム（cardShine, buttonShine, buttonShineHover）はbase.cssで定義 */

/* --- モバイルでの最適化 --- */
@media screen and (max-width: 768px) {
    .enrollment-2nd .course-card::after,
    .pattern-card::after {
        animation-duration: 7s;
    }
    
    .enrollment-2nd .cta-button-enhanced::before {
        animation-duration: 4s;
    }
}

/* --- アクセシビリティ --- */
@media (prefers-reduced-motion: reduce) {
    .enrollment-2nd .course-card::after,
    .enrollment-2nd .cta-button-enhanced::before,
    .pattern-card::after {
        animation: none;
        display: none;
    }
}

/* --- フォーカス状態（キーボードアクセシビリティ） --- */
.course-card:focus-within {
    outline: 3px solid #4dabf7;
    outline-offset: 2px;
    box-shadow: 0 8px 30px rgba(0, 86, 179, 0.2);
}

.cta-button-enhanced:focus,
.course-btn:focus,
.mini-cta-button:focus {
    outline: 3px solid #4dabf7;
    outline-offset: 2px;
}

.faq-question:focus {
    outline: 3px solid #4dabf7;
    outline-offset: 2px;
}

.pattern-card:focus-within {
    outline: 3px solid #4dabf7;
    outline-offset: 2px;
}