:root {
    /* ==========================================================================
       Global Settings (CSS Variables) / 共通設定（CSS変数）
       A place to manage colors and sizes with names used across the entire site.
       サイト全体で使う「色」や「サイズ」に名前をつけて管理する場所です。
       Changing a value here updates the look everywhere.
       ここを書き換えるだけで、一箇所で全ての見た目を変更できます。
       ========================================================================== */

    /* Color Settings (Modern Contrast Theme) / カラー設定 (モダンコントラスト) */
    --color-primary: #fa6666;
    /* Primary color (Reddish Coral) / メインカラー（落ち着いた赤） */
    --color-accent: #84a8fb;
    /* Accent color (Vibrant Blue) / アクセントカラー（鮮やかなブルー） */
    --color-text: #6d6d6d;
    /* Base text color (Soft Gray) / 基本の文字色（少し柔らかいグレー） */
    --color-text-light: #666666;
    /* Subtle text color / 補足などの薄い文字色 */
    --color-border: #ffaeb0;
    /* Border color (Secondary pink) / 線の色（サブカラーと合わせたピンク） */
    --clr-primary-light: #FFF0F6;
    /* Very light pink (for backgrounds) / 非常に薄いピンク（背景用） */
    --color-doll-soft: #f2d5d9;
    /* Soft dusty pink (for gradients) / 柔らかいくすみピンク（グラデーション用） */

    --color-accent-gold: #FFD700;
    /* Accent: Gold / アクセント：ゴールド */
    --color-line: #06C755;
    /* LINE Brand Color / LINEブランドカラー */

    /* Background Colors / 背景色 */
    --color-bg-base: #fffafb;
    /* Base background (Very faint pink) / 全体のベース背景色（ごく薄いピンク） */
    --color-bg-white: #ffffff;
    /* Pure white background / 純粋な白 */
    --color-bg-muted: #f9f9f9;
    /* Muted background (Light gray) / 落ち着いた背景色（薄いグレー） */
    --color-bg-accent-green: #FBFCEE;
    /* Accent background (Pale yellow-green) / アクセント背景色（ごく薄い黄緑） */
    --color-bg-accent-pink: #fff0f6;
    /* Accent background (Light pink) / アクセント背景色（薄いピンク） */

    /* Specific Pink Tones / 演出用のピンク */
    --color-pink-vivid: #ff42a4;
    /* Vivid pink for highlights / ハイライト用の鮮やかなピンク */
    --color-pink-deep: #FF1493;
    /* Deep pink for buttons and badges / ボタンやバッジ用の濃いピンク */
    --color-pink-hot: #FF69B4;
    /* Hot pink for gradients / グラデーション用の明るいピンク */
    --color-pink-soft: #ffc0cb;
    /* Soft pink for subtle marks / 控えめなマーカー用の薄いピンク */

    /* Neutral Colors / 汎用色 */
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-muted: #ddd;
    --color-gray-medium: #9e9e9e;

    /* Semantic Variable Aliases / 意味的な別名 */
    --color-shadow-black: rgba(0, 0, 0, 0.1);
    --color-shadow-black-soft: rgba(0, 0, 0, 0.05);
    --color-shadow-pink: rgba(255, 182, 193, 0.6);
    --color-shadow-pink-soft: rgba(255, 182, 193, 0.2);
    --color-shadow-vivid: rgba(255, 20, 147, 0.4);
    --color-shadow-vivid-soft: rgba(255, 20, 147, 0.1);

    /* フォント設定 */
    --font-family-base: "Noto Sans JP", sans-serif;
    --font-family-heading: "Mochiiy Pop One", sans-serif;

    /* 
       The clamp() function: Automatically adjusts size based on screen width.
       魔法の関数 clamp(): 画面幅に合わせてサイズを自動調整
       Format: clamp(Minimum, Preferred, Maximum)
       形式: clamp(最小値, 推奨値, 最大値)
       - Minimum: Won't go smaller than this / 最小値: これより小さくならない
       - Preferred: Calculated value based on screen width (vw) / 推奨値: 画面幅(vw)に応じて変化する計算値
       - Maximum: Won't go larger than this / 最大値: これより大きくならない
    */

    /* Responsive Font Sizes (Intrinsic Design) / レスポンシブ用フォントサイズ（Intrinsic Design） */
    --fs-xs: clamp(0.75rem, 0.4vw + 0.65rem, 0.85rem);
    /* Very small / 極小文字 */
    --fs-sm: clamp(0.875rem, 0.5vw + 0.75rem, 0.95rem);
    /* Small / 小さめ文字 */
    --fs-base: clamp(1rem, 0.6vw + 0.85rem, 1.125rem);
    /* Base / 基本の大きさ */
    --fs-md: clamp(1.2rem, 1vw + 1.1rem, 1.4rem);
    /* Medium / 中見出し */
    --fs-lg: clamp(1.35rem, 1.5vw + 1.15rem, 1.875rem);
    /* Large / 大見出し */
    --fs-xl: clamp(1.25rem, 4vw + 0.8rem, 2.125rem);
    /* Extra Large / 特大見出し - 最小値を引き下げ */
    --fs-2xl: clamp(1.8rem, 6vw + 1.2rem, 3.5rem);
    /* Main Visual / メインビジュアル用 - 最小値を引き下げ */

    /* レスポンシブ用余白（Fluid Spacing） */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 1rem);
    --space-md: clamp(1.25rem, 2vw, 1.75rem);
    --space-lg: clamp(2rem, 3vw, 3rem);
    --space-xl: clamp(3rem, 5vw, 5rem);
    --space-2xl: clamp(4rem, 8vw, 8rem);

    /* レイアウトの細かな設定 */
    --page-max-width: 800px;
    /* ページの最大横幅 */
    --container-padding: clamp(24px, 6vw, 48px);
    /* 左右の余白 */
    --border-radius: 16px;
    /* 角丸の半径 */
}

/* Base Styles (Reset) / 基本スタイル (Reset)
   Resets unnecessary browser defaults like margins.
   ブラウザが元々持っている余計な余白などを一度リセットします。
   ========================================================================== */
*,
::before,
::after {
    box-sizing: border-box;
    /* 余白を指定したときに要素の幅が広がらないようにします */
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: var(--color-bg-base);
    /* PCでは中央、スマホでは左端から表示されるように調整 */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    line-height: 1.7;
    /* Line height / 行間（文字の上下の隙間） */
    -webkit-font-smoothing: antialiased;
    /* Better text rendering / 文字をきれいに見せます */
    overflow-x: hidden;
    /* Prevent horizontal jitter / 横スクロール（ガタつき）を防止 */
    position: relative;
}

strong {
    font-weight: 700;
    /* 太字もパキッとしすぎないように調整 */
}

/* Animated Background / アニメーション背景
   Creates a dynamic mesh gradient background.
   動的なメッシュ状のグラデーション背景を作成します。
   ========================================================================== */
body::before {
    content: "";
    /* 空っぽの要素を画面全体に敷きます */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* 文字の背面に配置 */
    /* 複数の円形グラデーションを重ねています */
    background-image:
        radial-gradient(at 10% 20%, #fff0f5 0px, transparent 50%),
        radial-gradient(at 90% 10%, #ffe4e1 0px, transparent 50%),
        radial-gradient(at 50% 50%, var(--color-white) 0px, transparent 50%),
        radial-gradient(at 80% 90%, #fce4ec 0px, transparent 50%),
        radial-gradient(at 20% 80%, #e1f5fe 0px, transparent 30%),
        radial-gradient(at 60% 80%, #f7cabd 0px, transparent 40%),
        radial-gradient(at 0% 100%, #f3e5f5 0px, transparent 50%);
    background-size: 200% 200%;
    /* アニメーションさせるために少し大きめに背景を設定 */
    animation: mesh-bg 30s ease infinite alternate;
    /* 背景をゆらゆら動かす */
    will-change: transform;
}

/* 背景が動く仕組み */
@keyframes mesh-bg {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

@keyframes bg-scroll {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

/* Page Frame / ページ全体の枠組み
   Limits the width on PC and centers it, while showing full width on mobile.
   PCでは幅を制限して中央に寄せ、スマホでは横幅いっぱいに表示します。
   ========================================================================== */
.page-frame {
    width: 100%;
    max-width: var(--page-max-width);
    /* デフォルトでは800px（:rootで設定） */
    background-color: transparent;
    box-shadow: 0 0 40px var(--color-shadow-black-soft);
    position: relative;
    z-index: 10;
    min-height: 100vh;
}


/* Header / ヘッダー
   A menu section fixed at the top of the screen.
   画面の一番上に固定されるメニュー部分です。
   ========================================================================== */
.header {
    min-height: clamp(60px, 8vh, 80px);
    /* 画面の高さに合わせてサイズを調整 */
    padding: clamp(0.5rem, 1vh, 1rem) var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* ロゴとメニューボタンを両端に配置 */
    position: fixed;
    /* 画面上部に固定 */
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--page-max-width);
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
    background-color: color-mix(in srgb, var(--color-bg-white), transparent 10%);
    /* Translucent white / 少し透ける白 */
    backdrop-filter: blur(5px);
    /* Premium blur effect / 背景をぼかして高級感を出す */
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid color-mix(in srgb, var(--color-border), transparent 70%);
}

/* スクロール時にヘッダーを隠すための設定 */
.header--hidden {
    transform: translateY(-100%);
}

.header__logo {
    font-family: var(--font-family-heading);
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem);
    color: var(--color-primary);
    font-weight: 700;
    /* 700から500へ */
}

/* ハンバーガーメニュー（スマホ用の三本線ボタン） */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* Removed media query that hid hamburger and showed sidebars */
/*
@media (min-width: 1200px) {
    .hamburger-btn {
        display: none;
    }
}
*/

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Utility Classes / 便利クラス (Utility)
   Reusable settings for various elements.
   使い回しができる便利な設定です。
   ========================================================================== */

/* 上下の要素に同じ間隔を空ける（フローレイアウト） */
.flow>*+* {
    margin-top: var(--space-md);
}

/* セクション全体の余白設定 */
.section {
    padding: var(--space-xl) clamp(12px, 4vw, var(--container-padding));
    /* 狭い画面での余白を最適化 */
}

.section--bg-white {
    background-color: var(--color-bg-white);
}

/* Headings & Decoration / 見出しと装飾
   ========================================================================== */

/* セクションのメインタイトル */
.section-title {
    font-family: var(--font-family-heading);
    font-size: calc(var(--fs-lg) * 0.9);
    color: var(--color-primary);
    text-align: center;
    line-height: 1.3;
    font-weight: 700;
    /* ぷっくり感を出すために太めに */
    letter-spacing: 0.1em;
    display: block;
}

/* 強調したい文字 */
.highlight {
    color: var(--color-primary);
    font-weight: 700;
}

/* Button Base Settings / ボタンの基本設定
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: 0.3s;
    line-height: 1.3;
}


/* Main Visual (Hero Section) / メインビジュアル (Hero Section)
   The first section at the very top that users see.
   ページを開いて最初に目に入る一番上のセクションです。
   ========================================================================== */
.mv {
    position: relative;
    padding: 160px var(--container-padding) var(--space-2xl);
    background-color: var(--color-bg-base);
    background-image: url('img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    /* 1. 全体を中央寄せにします */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 2. 画像の上に薄いピンクのオーバーレイをかけて、文字を読みやすくします */
.mv::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-bg-base), transparent 25%);
    /* 絶妙な透け感の背景色 */
    z-index: 1;
}

.mv__content {
    position: relative;
    z-index: 2;
    /* オーバーレイより上に表示 */
}

.mv__title {
    font-size: calc(var(--fs-xl) * 1.1);
    /* サイズを少し大きく */
    line-height: 1.5;
    /* CTAボックスの心地よい行間に統一 */
    font-family: var(--font-family-heading);
    font-weight: 700;
    /* CTAボックスと同じ力強い太さに統一 */
    letter-spacing: 0.05em;
    /* タイトルをメインカラー単色に設定 */
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .mv {
        padding-top: calc(var(--space-lg) + 60px);
        /* Mobile: Match bottom spacing + header height */
    }
}




/* Curriculum / Products / カリキュラム・サービス紹介セクション
   各ステップや商品紹介の枠組みを設定します。
   ========================================================================== */
.product-section {
    border-top: 1px solid var(--color-border);
    /* 上部の区切り線 */
    padding-top: var(--space-lg);
    /* セクションごとの余白 */
    text-align: center;
    position: relative;
    /* ラベルを「線の真上」に配置するための基準 */
    margin-top: 3rem;
    /* ラベルがはみ出す分のスペースを確保 */
}

.product-section__img-wrapper {
    width: 100%;
    margin-inline: auto;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding-inline: clamp(1rem, 5vw, 3rem);
    /* テキスト（.product-desc）の幅に合わせるための余白 */
}

.product-section__img {
    aspect-ratio: 4 / 3;
    /* 横4：縦3 の比率を画像自体に適用 */
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    /* 枠ではなく画像自体に角丸を適用 */
}

/* ステップ数やカテゴリーを表示するアイコン風のラベル */
.icon-label {
    position: absolute;
    /* 親要素に対して自由な位置に配置 */
    top: 0;
    /* 親要素の一番上に合わせる */
    left: 50%;
    /* 左から50%の位置へ */
    transform: translate(-50%, -50%);
    /* 自身の幅・高さの半分だけ戻して「線の中心」に配置 */
    background: var(--color-primary);
    /* メインカラーの背景 */
    color: var(--color-white);
    /* 文字色は白 */
    padding: 0.2rem 1.2rem;
    border-radius: 50px;
    /* より丸みのあるモダンな形に */
    font-weight: 700;
    font-size: var(--fs-xs);
    z-index: 1;
    /* 線よりも手前に表示 */
}

/* ステップ内の説明テキスト */
.product-desc {
    padding-left: clamp(1rem, 5vw, 3rem);
    /* 左右の余白を多めに設定 */
    padding-right: clamp(1rem, 5vw, 3rem);
    text-align: left;
    /* テキストのみを左寄せに設定 */
    font-size: var(--fs-base);
    line-height: 1.8;
}

/* Curriculum Detail List / カリキュラム詳細リスト
   Intrinsic Web Design: Automatically adjust layout using grid.
   メディアクエリに頼らず、要素の幅に合わせて自動で折り返すグリッドレイアウトです。
   ========================================================================== */
.curriculum-list {
    display: grid;
    /* コンテンツ量に応じた自動レイアウト（Intrinsic Web Design） */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--space-xs) var(--space-md);
    list-style: none;
    padding: var(--space-xs) clamp(1rem, 5vw, 3rem);
    /* 余白を上部も含めて少し狭く調整 */
    text-align: left;
    margin-top: var(--space-xs);
    /* テキストとの間隔を狭く修正 */
    /* 親要素の Container Query に対応するため、必要ならここで設定 */
}

.curriculum-list__item {
    font-size: var(--fs-xs);
    line-height: 1.6;
    position: relative;
    padding-left: 1.25em;
    color: var(--color-text-light);
}

/* List bullet / リストのバレット（点）を装飾 */
.curriculum-list__item::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8em;
    top: 0.1em;
}

/* Curriculum Support Message / カリキュラム補足メッセージ
   A soft emphasis message at the bottom of the section.
   ========================================================================== */
.curriculum-note {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    font-weight: 700;
    padding: var(--space-sm);
    background-color: var(--color-bg-accent-pink);
    border-radius: 8px;
    margin-inline: var(--container-padding);
    margin-top: var(--space-sm);
    /* リストとの間隔をさらに狭く設定 */
}

/* Sidebars (Decorative for Desktop) */
/* Sidebars (Decorative for Desktop) */
.left-sidebar,
.right-sidebar {
    position: fixed;
    top: 80%;
    /* Default hidden on mobile */
    display: none;
    /* Reset transform if needed */
    transform: none;
}


/* PC Sidebar (Decoration & Navigation) / PC用サイドバー（装飾・ナビゲーション）
   Visible on the sides when the screen is wide (1100px or more).
   画面幅が広いとき（1100px以上）に左右に表示されるエリアです。
   ========================================================================== */
@media (min-width: 1100px) {

    /* PCではスマホ用のハンバーガーボタンとヘッダーを隠します */
    .hamburger-btn,
    .header {
        display: none;
    }

    /* PCレイアウト専用の設定 */
    :root {
        --page-max-width: 540px;
        /* 本体の横幅をあえて狭くして、雑誌のような読ませるデザインに */
    }

    /* 左右のサイドバーを表示 */
    .left-sidebar,
    .right-sidebar {
        display: block;
        position: fixed;
        width: 220px;
        z-index: 5;
    }

    /* 左側：ロゴとメニュー */
    .left-sidebar {
        top: 180px;
        left: calc(50% - 550px);
        /* 画面中央から左に550pxの位置 */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        /* サブコピーとナビゲーションの間隔を 1.0rem に戻しました */
    }

    /* 右側：お知らせやQRコード */
    .right-sidebar {
        top: 180px;
        right: calc(50% - 550px);
        /* 画面中央から右に550pxの位置 */
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    /* サイドバーのロゴ */
    .sidebar-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        /* ロゴとサブコピーの間隔を広げて強調 (0.5rem -> 1.25rem) */
        width: 100%;
    }

    .sidebar-logo {
        font-family: var(--font-family-heading);
        font-size: 2rem;
        font-weight: 700;
        color: var(--color-primary);
        line-height: 1.2;
    }

    .sidebar-sub {
        font-size: var(--fs-xs);
        font-weight: 700;
        color: var(--color-text);
        line-height: 1.4;
    }

    /* サイドバーのリンク */
    .sidebar-nav-list {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
    }

    .sidebar-nav-list a {
        text-decoration: none;
        color: var(--color-primary);
        font-family: var(--font-family-heading);
        font-weight: 700;
        font-size: var(--fs-sm);
        transition: color 0.3s;
        display: block;
        letter-spacing: 0.1em;
    }

    .sidebar-nav-list a:hover {
        color: var(--color-primary);
        /* ホバー（マウスを乗せたとき）にピンクにする */
        transform: scale(1.05);
        /* 少し大きくする */
    }

    .info-card {
        background: white;
        padding: 1.5rem 1rem;
        /* 少し縦にゆとりを追加 */
        border-radius: 8px;
        /* 他のボタンと共通の丸みに修正 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        text-align: center;
        width: 100%;
    }
}


.info-header {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
}

.info-text {
    font-size: var(--fs-xs);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.qr-img {
    width: 100%;
    max-width: 100px;
    /* Size reduced / サイズを少し小さく調整 */
    height: auto;
    margin-bottom: 0.5rem;
    filter: grayscale(1) opacity(0.5);
    /* Make it gray and soft / グレーにして印象を和らげる */
    transition: filter 0.3s;
}

.qr-img:hover {
    filter: grayscale(0) opacity(1);
    /* Restore color on hover / ホバー時は元の色（黒）を表示 */
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* 間隔を少し調整 */
    background-color: var(--color-line);
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 12px 10px 18px;
    /* 左側の余白を少し多めにしてアイコンとのバランスをとる */
    border-radius: 8px;
    /* 他のボタンと共通の丸みに修正 */
    font-weight: 700;
    font-size: var(--fs-sm);
    text-align: center;
    margin-top: 15px;
    transition: opacity 0.3s, transform 0.2s;
    position: relative;
    width: 100%;
    /* 横幅いっぱい */
}

/* 丸いアイコン部分 */
.sidebar-cta__icon {
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 中の三角アイコン */
.sidebar-cta__icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 5px solid var(--color-line);
    margin-top: 2px;
}

.sidebar-cta:hover {
    opacity: 0.8;
}

/* Mobile Full-Screen Menu / スマホ用全画面メニュー
   A menu that appears when the hamburger button is clicked.
   ハンバーガーボタンを押したときに出てくるメニューです。
   ========================================================================== */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* 最初は画面の右側に隠しておきます */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    /* 透ける白 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* スルーっと出てくるアニメーション */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* メニューが開いているとき（JavaScriptで active クラスがつきます） */
.nav-menu.active {
    right: 0;
    /* 画面内に表示 */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 201;
    padding: 10px;
    line-height: 1;
}


.nav-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.nav-link {
    text-decoration: none;
    color: var(--color-primary);
    font-size: var(--fs-lg);
    font-family: var(--font-family-heading);
    font-weight: 700;
    transition: 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.text-center {
    text-align: center;
}

.purchase-area {
    text-align: center;
    margin-top: 0;
    /* 重なり位置を固定するためリセット */
    transform: translateY(10px);
    /* Reduced from 35px to align tighter with bottom padding */
    /* デフォルト：ページ途中のCTA向けの被せ幅 */
    /* Center button */
    position: relative;
    z-index: 3;
    /* タイトルより前面、あるいは同等にする */
}

/* フッターCTA専用の調整（より深い重なり） */
.cta-box--footer .purchase-area {
    transform: translateY(50px);
}



/* Instructor Section / 講師紹介セクション（旧レイアウト用）
   ========================================================================== */
.instructor-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* なつこ先生（メイン講師）専用の調整 / Specific styling for Natsuko-sensei */
.instructor-profile--large {
    gap: var(--space-sm); /* 画像とボディの間隔を狭く (md -> sm) */
}

.instructor-profile--large .instructor-name {
    font-size: var(--fs-base); /* 名前を少し小さく (md -> base) */
}

.instructor-profile--large .instructor-body {
    gap: 0.75rem; /* 名前とメッセージの間隔を少し広げる (1px -> 0.75rem) */
}

/* 講師写真の共通設定は末尾に一括定義 */

.instructor-profile .u-text-center {
    text-align: center;
}

.highlight--large {
    font-size: 1.25em;
    font-weight: 800;
}

/* Instructor Grid Section / 講師紹介グリッド（新レイアウト用）
   Intrinsic Web Design: 3-column grid that collapses to 1-column on small screens.
   ========================================================================== */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    align-items: start;
}

.instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-bg-white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--color-shadow-black-soft);
    height: 100%;
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

/* 講師写真の共通設定（末尾を参照） */

.instructor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-name {
    font-family: var(--font-family-heading);
    font-size: var(--fs-md);
    color: var(--color-primary);
    margin-bottom: 0; /* 余白をグループ側の gap で制御するためリセット */
    font-weight: 700;
}

/* 名前とメッセージの間隔を極限まで密接に制御 */
.instructor-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.instructor-body .message-content {
    margin-top: 0; /* 2404行目の margin-top: 2rem を上書き */
}

.instructor-body .instructor-name {
    margin-top: 0; /* 974行目の margin-top: 0.5rem を上書き */
    margin-bottom: 0;
}

.instructor-title {
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.instructor-bio {
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--color-text);
    text-align: left; /* テキスト自体は左寄せ */
    width: fit-content; /* 中身の幅に合わせる */
    margin-inline: auto; /* ブロック自体を中央に配置 */
}

.instructor-bio p {
    margin: 0;
}

.instructor-book {
    text-align: center;
    margin-top: var(--space-sm);
    display: flex;
    justify-content: center;
    gap: 12px; /* 2枚の画像の間隔 */
    flex-wrap: wrap; /* スマホで縦に並ぶように */
}

.instructor-book img {
    width: auto;
    height: 160px; /* 高さを一定にして揃える */
    max-width: 120px; /* 幅も一定の枠に収める */
    object-fit: contain;
    border-radius: 4px;
    /* シャドウの広がりを抑え、少し濃くする (ぼかしを小さく) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.instructor-book a:hover img {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.45);
}

.message-content {
    max-width: 700px;
    margin-inline: auto;
}

.instructor-name {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 0.5rem;
    font-size: var(--fs-md);
    font-family: var(--font-family-heading);
}

/* Slider (Carousel) / スライドショー (Slider)
   A mechanism to show multiple elements by scrolling horizontally.
   横にスクロールして複数の要素を見せる仕組みです。
   ========================================================================== */
.slider-container {
    position: relative;
    /* 位置の基準にします */
    margin: 0 calc(var(--container-padding) * -1);
    /* 左右の余白をはみ出させて、スライダーを横いっぱいに見せます */
}

.slider {
    display: flex !important;
    gap: 24px !important;
    overflow-x: auto !important;
    /* 横方向にスクロールできるようにします */
    padding: var(--space-md) 0 !important;
    padding-inline: 10% !important;
    /* 左右に少し隙間を作って、次のカードが少し見えるようにします */
    scroll-snap-type: x mandatory !important;
    /* スクロールしたときにピタッと止まるようにします */
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    /* スクロールバーは隠します */
}

/* 各スライドの横幅設定 */
.slider__item {
    flex: 0 0 calc(85% - 24px) !important;
    /* スマホでは次のカードが少し見えるように設定 */
    scroll-snap-align: center !important;
    display: flex;
    /* 1. 中のカードを縦に引き伸ばすためにFlexboxを適用 */
    flex-direction: column;
}

@media (min-width: 769px) {
    .slider__item {
        flex: 0 0 400px !important;
        /* PCでは固定幅で見やすく */
    }
}

/* Card Component / カード部品 (Card)
   White box with shadow used in sliders and lists.
   スライダーやリスト内で使う、影付きの白いボックスです。
   ========================================================================== */
.card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--color-shadow-black-soft);
    height: 100%;
    /* 2. 親要素(.slider__item)の高さに合わせて100%に伸ばします */
    padding: 5px;
    /* 3. 全辺に5pxのパディングを追加してサイズを微増 */
}

/* カード内のテキストエリア */
.card__content {
    padding: var(--space-lg);
    /* 2. 上下左右にしっかり余白をとり、ゆったりと豪華に見せます */
    flex-grow: 1;
    /* 3. 文字が少なくても下の余白を埋めて、カードの高さを統一します */
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    text-align: left;
}

.card__title {
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-align: center; /* タイトルを中央揃えに設定 */
}

.card__title small {
    font-size: 0.85em; /* カッコ内の文字を小さく設定 */
    font-weight: 500; /* 太字を解除（中細） */
    display: block; /* 改行を確実にするためブロック要素化 */
    margin-top: 0.2rem;
}

/* Slider Navigation Buttons (PC) / スライダーの丸いボタン（PC用） */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: var(--color-bg-white);
    color: var(--color-primary);
    display: none;
    /* Hidden on mobile / スマホでは隠します */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 20;
    box-shadow: 0 4px 10px var(--color-shadow-pink-soft);
}

.slider-btn--prev {
    left: 10px;
}

.slider-btn--next {
    right: 10px;
}

@media (min-width: 769px) {
    .slider-btn {
        display: flex;
    }
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    /* White arrow on hover */
    transform: translateY(-50%) scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-sm);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.accordion {
    max-width: 650px;
    margin: var(--space-m) auto;
}

/* Accordion (FAQ, etc.) / アコーディオン (FAQなど)
   A mechanism where content expands or collapses when clicked.
   クリックすると中身が開閉する仕組みです。
   ========================================================================== */
.accordion__item {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg-white);
    overflow: hidden;
}

.accordion__header {
    padding: var(--space-md);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: flex-start; /* 左寄せに変更 */
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    background-color: var(--clr-primary-light);
    text-align: left; /* 左寄せに変更 */
}

/* Remove default triangle on some browsers / デフォルトの三角アイコンを削除 */
.accordion__header::-webkit-details-marker {
    display: none;
}

.accordion__title {
    flex-grow: 1;
    font-weight: 400;
    color: var(--color-text);
    text-align: left; /* 念のため左寄せを明示 */
}

#faq .accordion__title {
    color: var(--color-primary);
    font-weight: 700;
}

/* 閉じているときは「＋」、開いているときは「－」を表示 */
.accordion__header::after {
    content: "＋";
}

[open] .accordion__header::after {
    content: "－";
}

.accordion__content {
    padding: 1.5rem var(--space-md) 2.5rem;
}

/* Timeline / タイムライン
   A design that connects daily flows with vertical lines.
   一日の流れなどを縦線でつなげて見せるデザインです。
   ========================================================================== */
.timeline-lead-text {
    font-size: var(--fs-sm);
    color: var(--color-text);
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--space-md);
}

/* アコーディオンヘッダー内の受講生画像（スクエア） */
.accordion__header-photo {
    display: block;
    width: 140px;
    height: 140px;
    /* 固定サイズ */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem auto;
    /* 上下の余白 */
    box-shadow: 0 8px 20px var(--color-shadow-black-soft);
}

/* Specific adjustment for student_hh: Add light gray background as requested */
img[src*="student_hh"] {
    background-color: #f7f7f7;
    /* 淡いグレー / Light gray */
    object-position: top center;
    /* 上部（頭）が見えるように調整 */
}

.timeline {
    position: relative;
    padding-left: 2.2rem;
    margin-top: 1rem;
}

/* 縦線 */
.timeline::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

.timeline__item {
    position: relative;
    /* 丸印の基準位置にします */
    margin-bottom: 2.5rem;
    /* 各項目間の余白 */
}

/* 各項目の左にある丸印 */
.timeline__item::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    background-color: var(--color-bg-white);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline__time {
    display: block;
    font-weight: 800;
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-family-heading);
}

/* CTA (Call to Action) Styles */
.cta-box {
    background-color: var(--color-bg-accent-green);
    background-image:
        linear-gradient(color-mix(in srgb, var(--color-accent), transparent 50%) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--color-accent), transparent 50%) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: clamp(40px, 6vh, 60px) var(--space-md);
    /* 上下のパディングを維持 / Maintain equal padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 700px;
    /* Flexboxで中央配置と正確な間隔を管理 / Precise centering and gaps via Flexbox */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    /* 基本の間隔を16pxに統一 / Unified 16px base gaps */
    min-height: auto;
}

.cta-box__title {
    font-size: clamp(0.9rem, 4vw + 0.3rem, 1.35rem);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin: 0;
    z-index: 3;
    position: relative;
}

.cta-box__decorative-text {
    font-size: clamp(4rem, 20vw, 8.5rem);
    font-family: var(--font-family-heading);
    font-weight: 900;
    line-height: 1.1;
    /* 欠けを防ぐため行高を十分に確保 / Safe line-height to prevent clipping */
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink-soft), var(--color-accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.22;
    z-index: 1;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    margin: clamp(-3.8rem, -8vw, -2.8rem) 0;
    /* 行高を広げた分、負のマージンを大きくして重なりを維持 / Increased negative margins for overlap */
    display: block;
    height: fit-content;
}

/* モバイル・デスクトップ共通で重なりを維持するためのフロー設定 / Flow-based overlap for all devices */

.cta-box__text {
    font-size: var(--fs-sm);
    color: var(--color-text);
    z-index: 3;
    max-width: 480px;
    line-height: 1.5;
    margin: 0;
    position: relative;
}

.purchase-area {
    z-index: 4;
    /* ボタンが最前面 / Buttons in front */
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
    padding-bottom: 0;
    /* 余計な空間を排除し、全体のバランスに合わせる / Remove extra space for symmetry */
}

.btn--line {
    background-color: var(--color-line);
    color: var(--color-white);
    padding: 1.25rem 4.5rem 1.25rem 2.5rem;
    /* Increased right padding for icon */
    font-size: var(--fs-base);
    font-weight: 800;
    border-radius: 8px;
    /* Squared off per user request */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px var(--color-shadow-black-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    width: auto;
    min-width: 280px;
}

.btn--line__icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn--line__icon::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--color-line);
    margin-top: 4px;
    /* Slight offset for visual centering */
}

.btn--line:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--color-shadow-black-soft);
}

.btn--line small {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 2px;
}

/* LINEセクション（フッター直前）の余白調整 */
#line {
    padding: var(--space-xl) 1rem;
    /* 上下は標準(space-xl)、左右は16px(1rem) */
}

/* フッターCTA専用の調整 */
.cta-box--footer {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--clr-primary-light) 100%);
    border: 2px solid var(--color-primary);
    box-shadow: 0 15px 35px var(--color-shadow-vivid-soft);
    max-width: 800px;
    padding-top: clamp(20px, 4vh, 30px);
    /* Further reduced top padding */
    padding-bottom: clamp(24px, 5vh, 40px);
    /* Further reduced bottom padding */
    /* Padding is inherited from .cta-box, ensuring consistency */
    gap: 8px;
    /* Reduced gap to bring text and button closer */
}

.cta-box--footer .purchase-area {
    transform: translateY(0);
    /* Reset from previous value to remove extra gap */
}

.cta-box--footer .cta-box__decorative-text {
    margin: clamp(-3.8rem, -6vw, -1.2rem) 0;
}



/* Footer (General) */
.footer {
    background-color: var(--color-primary);
    padding: var(--space-md) 0;
}

.copyright {
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--color-white);
}



/* 2番目のセクション（Integrated Problem）をお悩みらしく落ち着いたグレーに */
#problem {
    background-color: #f2f2f2;
    /* Darker gray for worry atmosphere / お悩みの雰囲気に合わせた少し濃いグレー */
    position: relative;
    padding-bottom: 4rem;
    /* Space for the triangular divider / 三角形の間隔 */
}

/* Triangular Section Divider / 三角形のセクション区切り */
#problem::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    height: 40px;
    transform: translateX(-50%);
    /* Precisely centered triangular shape / 中央に配置された三角形 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 50,10 100,0' fill='%23f2f2f2'/%3E%3Cpolyline points='0,0 50,10 100,0' fill='none' stroke='%23ffaeb0' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
}


/* 
   POINTS (features) セクションを可愛いドット柄に
   お悩みを解決する前向きなセクションとして演出します。
*/
#features {
    background-color: transparent;
    background-image: none;
}

/* Mid-page CTA: 透明（または白）で清潔に */
#mid-cta,
.section--cta-transparent {
    background-color: transparent;
    background-image: none;
}




/* Solution Section Space & Typography */
/* Solution Section / 解決策セクション
   User Request: Set blurred background image
   ユーザー要望: ぼかしを入れた背景画像を設定 */
#solution {
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-white);
    /* Fallback color */
    z-index: 1;
}

#solution::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('img/Popularity.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(0.5px);
    /* ぼかし効果（極限まで弱めに調整） */
    transform: scale(1.05);
    /* ぼかし最小化に伴いスケールも微調整 */
    opacity: 0.3;
    /* 画像をより鮮明に見せるための透明度 */
    z-index: -1;
}

/* 文字の視認性をさらに高めるためのオーバーレイ */
#solution::after {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-bg-white), transparent 80%);
    z-index: -1;
}

#solution .container {
    position: relative;
    z-index: 2;
}

#solution .section-title {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    -webkit-text-fill-color: initial;
}

.solution-content {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    text-align: center;
    /* 左寄せを解除し、全サイズでセンター配置に変更 */
    margin-top: var(--space-md);
}

@media (min-width: 768px) {
    .solution-content {
        max-width: 700px;
        margin-inline: auto;
    }
}

.solution-text {
    font-size: var(--fs-base);
    line-height: 2.2;
    /* Breathable line height */
    color: var(--color-text);
    letter-spacing: 0.05em;
}

.solution-text strong {
    font-weight: 800;
    /* Force extra bold */
    color: var(--color-text);
    /* Ensure clear contrast */
}

/* Obsolete highlight rule removed or repurposed if needed later */

/* Features Section */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    position: relative;
    /* overflow: hidden; */
    /* はみ出しを許可するためにコメントアウト */
    box-shadow: 0 4px 20px var(--color-shadow-black-soft);
}

.feature-card__number {
    position: absolute;
    top: -25px;
    /* さらに外側へ */
    left: -15px;
    /* さらに外側へ */
    font-size: clamp(4.5rem, 15vw, 5.5rem);
    /* スマホでもしっかり大きく表示 */
    font-family: var(--font-family-heading);
    font-weight: 900;
    color: var(--color-primary);
    /* より濃いプライマリーカラーに変更 */
    line-height: 1;
    z-index: 10;
    /* カードの縁よりも手前に */
    opacity: 0.15;
    /* 存在感が出るよう少し濃度を調整 */
}

.feature-card__content {
    position: relative;
    z-index: 1;
}

.feature-card__title {
    font-family: var(--font-family-heading);
    font-size: calc(var(--fs-md) * 0.85);
    /* Slightly smaller requested */
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
    /* Increased for better readability with smaller font */
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
    display: inline-block;
    font-weight: 700;
}

.feature-card p {
    margin-top: 1em;
    line-height: 1.8;
}

.feature-card__img-wrapper {
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-block: var(--space-md);
    background-color: var(--color-bg-light);
    /* 画像読み込み前のプレースホルダ色 */
    box-shadow: 0 0px 25px rgba(255, 174, 176, 0.4);
    /* オレンジピンクのぼかし（グロー効果）を追加 */
}

.feature-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        max-width: 600px;
        margin-inline: auto;
    }

    .feature-card {
        padding: var(--space-lg);
    }

    .feature-card__title {
        min-height: auto;
        display: inline-block;
    }
}



/* Bilingual Section Header / 英語・日本語のペア見出し
   Displays a large English title with a Japanese subtitle.
   大きな英語タイトルの下に日本語のサブタイトルを表示します。
   ========================================================================== */
.section-head {
    text-align: center;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.section-head__en {
    font-family: var(--font-family-heading);
    /* 最小値を2remから1.5remに下げ、vwを増やしてスマホでの縮小を促進 */
    font-size: clamp(1.5rem, 6vw + 0.5rem, 3rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    /* Single Primary Color / プライマリーカラーの単色 */
    color: var(--color-primary);
    letter-spacing: 0.05em;
    filter: drop-shadow(2px 2px 0px color-mix(in srgb, var(--color-pink-hot), transparent 70%));
    word-break: break-word;
    max-width: 100%;
}

/* New Japanese Header Style for "WORRIES" replacement */
.section-head__worries-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3em;
    flex-wrap: wrap;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    /* User request: slightly increase bottom margin */
}

.worries-sub {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: var(--color-gray-medium);
    /* Gray color for "こんな" and "ありませんか？" */
}

.worries-main {
    font-family: var(--font-family-heading);
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    /* Slightly larger matching WORRIES size */
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    filter: drop-shadow(2px 2px 0px color-mix(in srgb, var(--color-pink-hot), transparent 70%));
}

.section-head__ja {
    font-family: var(--font-family-base);
    font-size: var(--fs-md);
    font-weight: 700;
    /* 700に引き上げ */
    color: var(--color-text);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    line-height: 1.1;
    /* 行間をさらに狭く調整 */
}

@media (max-width: 480px) {
    .section-head__ja {
        letter-spacing: 0.02em;
        /* スマホでは講師セクション同様に文字間を引き締める */
    }
}


/* Chat Layout for Problems (New) / お悩みセクション：吹き出し（チャット）デザイン
   A conversational UI using avatars and speech bubbles.
   アバターと吹き出しを使った対話形式のUIです。
   ========================================================================== */
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    /* 中央寄せ */
    display: flex;
    flex-direction: column;
    /* 縦並び */
    gap: 1.5rem;
    /* 吹き出し同士の間隔 */
}

/* チャットの1行分（アバター＋吹き出し） */
.chat-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* 右側に配置する場合（反転） */
.chat-item--right {
    flex-direction: row-reverse;
}

/* アバター（アイコン）画像のスタイル */
.chat-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-white);
    background-color: var(--color-white);
    box-shadow: 0 4px 10px var(--color-shadow-black-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Maintain aspect ratio / 画像の比率を維持して埋め込む */
    transform: scale(1.8);
    /* Zoom in to focus on face / 顔が大きく見えるように拡大 */
    transform-origin: center 25%;
    /* Focus on upper part / 上の方（顔）を中心に拡大 */
}


.chat-avatar svg {
    width: 100% !important;
    height: 100% !important;
    padding: 10%;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 吹き出し本体のデザイン */
.chat-bubble {
    background: var(--color-bg-white);
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    /* 角丸 */
    position: relative;
    /* しっぽの位置基準 */
    box-shadow: 0 4px 15px var(--color-shadow-black-soft);
    /* ふんわりした影 */
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    font-size: var(--fs-base);
    max-width: 85%;
}

/* 左側の吹き出し：左上の角だけ尖らせる（必要なら） */
.chat-item--left .chat-bubble {
    border-top-left-radius: 0;
}

/* 右側の吹き出し：右上の角だけ尖らせる */
.chat-item--right .chat-bubble {
    border-top-right-radius: 0;
    background: var(--color-bg-white);
    /* 左右で色を変える場合はここを変更 */
}

/* 吹き出しの「しっぽ」（三角形の部分） */
.chat-item--left .chat-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    /* 左側に飛び出させる */
    width: 20px;
    height: 20px;
    background: var(--color-bg-white);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    /* 左上を直角とした三角形に切り抜き */
}

/* 右側のしっぽ */
.chat-item--right .chat-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    right: -10px;
    /* 右側に飛び出させる */
    width: 20px;
    height: 20px;
    background: var(--color-bg-white);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    /* Right-angle triangle / 右上を直角とした三角形に切り抜き */
}


/* Instructor Title Background: Pastel Mesh Gradient / 講師紹介タイトルの背景：パステルメッシュグラデーション
   Creates a soft, organic shape with multi-colored mesh gradients.
   複数の色を混ぜた柔らかいオーガニックな形のグラデーション。
   ========================================================================== */
#instructor .section-title {
    position: relative;
    display: inline-block;
    padding: 3rem clamp(0.5rem, 5vw, 2rem);
    /* 狭い画面（360px以下）での折り返しをさらに軽減 */
    /* 背景（グラデーション）を表示するための余白 */
    z-index: 1;
    background: transparent;
    -webkit-text-fill-color: initial;
    color: var(--color-text);
}

/* グラデーション背景を作る擬似要素 */
#instructor .section-title::before {
    content: "";
    position: absolute;
    inset: 0;
    /* 上下左右いっぱいに広げる */
    z-index: -1;
    /* 文字の後ろに配置 */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* 不規則な楕円形（オーガニックシェイプ） */
    background:
        radial-gradient(circle at 10% 20%, rgba(224, 187, 228, 0.6) 0%, transparent 50%),
        /* 紫 */
        radial-gradient(circle at 90% 10%, rgba(255, 183, 197, 0.6) 0%, transparent 50%),
        /* ピンク */
        radial-gradient(circle at 50% 80%, rgba(255, 250, 205, 0.8) 0%, transparent 50%);
    /* 黄色 */
    filter: blur(20px);
    /* 全体をぼかしてメッシュ状にする */
    opacity: 0.8;
}

/* ==========================================================================
   Floating Banner / フローティングバナー
   Revised Layout / レイアウト構成:
   - 全体幅: メインコンテンツの90-95%
   - カラム構成: 左 30% / 右 70%
   - 右カラム分割: 上段 75% (画像) / 下段 25% (CTAエリア)
   ========================================================================== */
/* バナー本体の設定 */
.floating-banner {
    position: fixed !important;
    /* 画面に固定 */
    bottom: clamp(1rem, 2vh, 2rem) !important;
    /* 下端からの距離 */
    left: 50% !important;
    /* 中央配置の基準 */
    transform: translateX(-50%) translateY(120%) !important;
    /* 初期状態は画面外 */
    width: min(92%, calc(var(--page-max-width) * 0.95)) !important;
    /* コンテナに合わせた幅調整 */
    height: clamp(120px, 15vh, 160px) !important;

    /* バナーの高さ */
    /* 360px以下の極小画面では要素を収めるためにさらに高さを出す（さらに極限までコンパクトに再調整） */
    @media (max-width: 360px) {
        height: min(120px, 15vh) !important;
    }

    background: var(--color-bg-white) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px var(--color-shadow-vivid-soft),
    0 4px 12px var(--color-shadow-black-soft) !important;
    display: flex !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    /* 重なり順を最前面に */
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s !important;
    opacity: 0 !important;
    border: 1px solid var(--color-shadow-vivid-soft) !important;
}

/* スクロール等の条件を満たした時に表示するためのクラス */
.floating-banner.is-visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}

/* Left Column (30%) - 狭い画面では幅を少し抑える */
.floating-banner__left {
    flex: 0 0 clamp(80px, 28%, 120px) !important;

    @media (max-width: 360px) {
        flex: 0 0 75px !important;
        /* 極小画面ではさらにスリムに */
    }

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.5rem !important;
    background: var(--color-bg-accent-pink) !important;
    /* Slightly stronger pink */
    border-right: 1px solid var(--color-shadow-vivid-soft) !important;
}

.fb-label {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    margin-bottom: 0.5rem !important;
    white-space: nowrap !important;
}

.fb-tagline {
    color: var(--color-primary) !important;
    font-size: clamp(11px, 1.2vw, 13px) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Right Column (70%) - 残りの幅をすべて使用 */
.floating-banner__right {
    flex: 1 !important;
    display: grid !important;
    grid-template-rows: 2.5fr 1.5fr !important;
    /* 標準状態の比率を維持 */
    height: 100% !important;

    /* 360px以下では比率を変えて下のピンクエリアを広げる（少し抑えめに再調整） */
    @media (max-width: 360px) {
        grid-template-rows: 2fr 2fr !important;
    }
}

.fb-visual {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.fb-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 70% !important;
}

/* CTA Area (Bottom part of right column) */
.fb-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(90deg, var(--color-border), var(--color-primary)) !important;
    padding: 0 clamp(0.40rem, 2vw, 1rem) !important;
    /* 横幅に合わせてパディングを縮小 */
    color: var(--color-white) !important;
    overflow: hidden !important;

    @media (max-width: 360px) {
        flex-direction: column !important;
        /* 縦に積む */
        justify-content: center !important;
        align-items: flex-end !important;
        /* 右寄せに変更 */
        gap: 2px !important;
        /* テキストとボタンをさらに近づける */
        padding: 4px clamp(0.40rem, 2vw, 1rem) 8px !important;
        /* 下側のパディングをさらに増やして窮屈感を解消 */
    }
}

.fb-cta-text {
    font-size: clamp(11px, 1.5vw, 14px) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;

    @media (max-width: 360px) {
        align-self: flex-start !important;
        /* スマホではテキストを左寄せ */
    }
}

.fb-cta-btn {
    background: var(--color-white) !important;
    color: var(--color-primary) !important;
    padding: 1px clamp(6px, 1.5vw, 12px) !important;
    /* ボタン内の余白を微調整 */
    border-radius: 20px !important;
    font-size: clamp(9px, 3.5vw, 11px) !important;
    /* 極小画面で文字サイズをわずかに縮小 */
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    @media (max-width: 360px) {
        align-self: flex-end !important;
        /* スマホではボタンを右寄せ */
    }
}

.floating-banner__close {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    color: var(--color-primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0 2px 0 !important;
    /* ×印が少し上に寄って見えるため、下側にわずかなパディングを追加 */
    line-height: 1 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    z-index: 10 !important;
}

/* ==========================================================================
   Additional Utility Classes / 追加のユーティリティクラス
   サイト全体で使える細かな調整用のクラスです。
   ========================================================================== */
.section--no-padding {
    padding: 0 !important;
    /* 余白なし */
}

.u-mt-xs {
    margin-top: 0.5rem !important;
    /* 上に少し余白 */
}

.u-mt-lg {
    margin-top: 3rem !important;
    /* 上に大きな余白 */
}

.u-pb-sm {
    padding-bottom: var(--space-sm) !important;
    /* 下の余白を小さくする */
}

.u-mb-md {
    margin-bottom: 1.5rem !important;
    /* 下に中くらいの余白 */
}

.u-mb-lg {
    margin-bottom: 2rem !important;
    /* 下に大きな余白 */
}

.u-mb-xl {
    margin-bottom: 3rem !important;
    /* 下にさらに大きな余白 */
}

.u-text-left {
    text-align: left !important;
    /* 左寄せ */
}

.u-text-emphasized {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--color-primary);
    /* メインカラーで強調 */
    line-height: 1.5;
    /* CTAボックスの心地よい行間に統一 */
    letter-spacing: 0.05em;
    /* エレガントな文字間に調整 */
}

/* マーカー風の装飾（ピンク） */
.u-marker-pink {
    /* 数字の濃度(0.15)に合わせた薄いピンク色 */
    background: linear-gradient(transparent 60%, color-mix(in srgb, var(--color-pink-deep), transparent 85%) 60%);
    color: var(--color-text);
    /* 薄い方のグレー（#6d6d6d）に統一 */
    font-weight: 700;
    /* 他の見出しに合わせて太さを微調整 */
    padding: 0 0.1em;
}

/* カリキュラム部分の見出しスタイル */
.product-copy {
    color: var(--color-text);
    font-weight: 700;
    font-size: var(--fs-md);
    font-family: var(--font-family-base);
    margin-bottom: 0;
    /* 画像との余白を画像側の margin-top で一括管理するため 0 に設定 */
    display: inline-block;
    /* アンダーラインを文字幅に合わせる */
    background: linear-gradient(transparent 70%, color-mix(in srgb, var(--color-primary), transparent 85%) 70%);
    /* オレンジピンクのマーカー風アンダーライン */
    padding: 0 0.5em;
}

.u-color-primary {
    color: var(--color-primary) !important;
    /* 文字色をメインカラーに */
}

.u-color-text {
    color: var(--color-text) !important;
    /* 文字色を基本のグレーに */
}

.u-fw-bold {
    font-weight: 800 !important;
    /* 文字を太く */
}

/* スマホで文字サイズを抑えて1行に収めやすくするクラス */
@media (max-width: 480px) {
    .u-fs-shrink-mobile {
        font-size: clamp(0.85rem, 3.8vw, 1.0rem) !important;
        letter-spacing: -0.01em !important;
        /* 文字間をさらに詰めて1行に収める */
    }
}

.u-fs-sm {
    font-size: 0.9em !important;
    /* 文字を少し小さく */
}


/* Component Level Overrides / コンポーネント別の微調整 */
.mv__tagline-top {
    font-size: 0.65em;
    /* 約2pt分小さく調整 */
    display: block;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    /* 1.2remに縮小 */
    font-weight: 700;
}

.mv__tagline-bottom {
    font-size: 0.65em;
    /* 約2pt分小さく調整 */
    display: block;
    margin-top: 1.2rem;
    /* 下の余白とバランスを揃えるため1.2remへ */
    margin-bottom: 2.5rem;
    /* 下の余白を増やしてバランスを調整 */
    font-weight: 700;
}

.section-title--base-font {
    font-family: var(--font-family-base) !important;
    /* 基本フォントを強制適用 */
}

.solution-content {
    max-width: 600px;
    margin: 0 auto;
    /* 解決策セクションを中央寄せ */
}

.instructor-img-wrapper {
    aspect-ratio: 1/1;
    border-radius: 50%;
    /* 丸い形 */
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    overflow: hidden;
    /* はみ出した部分を隠す（トリミング） */
}

.instructor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像の比率を維持 */
    object-position: center 55%;
    /* 位置合わせ：肩まで見えるように下げる */
    transform: scale(1.35);
    /* ズーム */
    transform-origin: center 35%;
    /* ズームの基準も合わせる */
}

.message-content {
    max-width: 650px;
    margin-top: 2rem;
}

.card__img {
    aspect-ratio: 1/1;
    /* カード内の画像を正方形に */
    width: 90%;
    /* 一回り小さく調整 */
    height: auto;
    object-fit: cover;
    display: block;
    margin: 15px auto 0;
    /* 上に余白を作り、中央寄せにする */
    border-radius: var(--border-radius);
    /* ボックス（16px）と同じ丸みに合わせる */
}

.footer-cta-title {
    font-family: var(--font-family-base) !important;
    font-size: clamp(1.2rem, 4vw, 2.0rem) !important;
    line-height: 1.3 !important;
    /* 行間を狭く調整 */
    font-weight: 700 !important;
    /* 他の見出しに合わせて500へ */
    transform: translateY(-40px) !important;
    /* 背景文字（Ready?）の上端により深く被せるように調整 */
    position: relative !important;
    /* 重なり順のため */
    z-index: 2 !important;
}

.footer-cta-text {
    margin-bottom: 0 !important;
    transform: translateY(0);
    /* 重なりにならないよう位置をリセット */
    color: var(--color-text-light) !important;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Future Voices (Features Section) / 特徴セクションの受講生の声
   ========================================================================== */
.future-voices {
    background-color: var(--color-bg-white);
    border: 3px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-md) var(--space-lg);
    /* 横のpaddingを少し多めに */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px var(--color-shadow-pink-soft);
}


/* スマホでは1列、PCでは2列にするGridレイアウトの方が綺麗かもしれない */
.future-voices-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
    /* 黒丸を消す */
}

@media (min-width: 768px) {
    .future-voices-list {
        grid-template-columns: 1fr 1fr;
        /* PCでは2列 */
        gap: 1rem 2rem;
    }
}

.future-voices-list li {
    font-size: var(--fs-base);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.future-voices-list li::before {
    content: "♡";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: 700;
}