/* =====================================================================
   ツクリモット（TSUKURIMOTTO） - スマホ特化型レイアウト
   中央のモバイルカラム（アプリ風）＋ PC用サイドパネル
   ===================================================================== */

:root {
    /* === グラデーション === */
    --primary: linear-gradient(135deg, #22B8B0 0%, #16928C 100%);
    --accent:  linear-gradient(135deg, #F3A04A 0%, #FFD7AE 100%);
    --success: linear-gradient(135deg, #8BE3DD 0%, #22B8B0 100%);
    --warning: linear-gradient(135deg, #F3A04A 0%, #FFD7AE 100%);

    /* === プライマリ（ティール） === */
    --primary-light: #8BE3DD;   /* Primary Light */
    --primary-solid: #22B8B0;   /* Primary */
    --primary-dark:  #16928C;   /* Primary Dark */
    --primary-deep:  #0E7B76;   /* 明るい地の上の小さな文字用に追加した最暗ステップ */
    --primary-start: #16928C;   /* 明るい地の上に載る文字（大きめ） */
    --primary-end:   #0E7B76;   /* 明るい地の上に載る文字（小さめ） */
    --primary-text:  linear-gradient(135deg, #16928C 0%, #0E7B76 100%); /* 文字グラデ用 */
    --on-primary:    #ffffff;   /* ティール塗りの上に載る文字色 */

    /* === アクセント（オレンジ） === */
    --accent-orange: #F3A04A;   /* Accent Orange */
    --accent-light:  #FFD7AE;   /* Accent Light */

    /* === ブランド原色（ロゴと同値・装飾用） === */
    --brand-teal:   #22B8B0;
    --brand-orange: #F3A04A;

    /* === ソリッドカラー === */
    --dark:              #233536;   /* Text Main */
    --text:              #233536;   /* Text Main */
    --muted:             #617274;   /* Text Sub */
    --light:             #ffffff;
    --gray-50:           #F7FCFC;   /* Background */
    --gray-100:          #EAF7F6;   /* Surface */
    --gray-200:          #CFE6E4;   /* Border / Line */
    --gray-300:          #CFE6E4;   /* Border / Line */
    --color-line:        #06C755;
    --color-line-hover:  #059c44;
    --color-check:       #16928C;
    --color-highlight:   #FFD7AE;
    --color-hero-accent: #8BE3DD;
    --footer-bg:         #233536;
    --footer-link:       #8BE3DD;

    /* === シャドウ === */
    --shadow-sm: 0 2px 10px rgba(35, 80, 78, 0.07);
    --shadow-md: 0 10px 30px rgba(35, 80, 78, 0.11);
    --shadow-lg: 0 20px 50px rgba(35, 80, 78, 0.16);
    --shadow-shell: 0 30px 80px rgba(35, 80, 78, 0.20);

    /* === 角丸（四角は直角に） === */
    --radius:    0;
    --radius-sm: 0;
    --radius-lg: 0;

    --transition:      all 0.3s ease;
    --transition-slow: all 0.4s ease;

    /* === レイアウト === */
    --shell-width:  500px;  /* モバイルカラム幅（固定） */
    --header-height: 4rem;    /* 64px */
    /* スマホ枠の左右余白（PC時にメニューを枠内へクリップするための基準） */
    --frame-gutter: max(0px, calc((100% - var(--shell-width)) / 2));
    --side-menu-width: 20rem; /* 320px - スライドメニュー幅 */

    --font-family: 'Noto Sans JP', sans-serif;
    --line-height-base: 1.75;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text);
    background: linear-gradient(160deg, #EAF7F6 0%, #F7FCFC 45%, #EAF7F6 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* スクロールバー */
::-webkit-scrollbar { width: 0.5rem; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
}

img { max-width: 100%; display: block; }

/* =====================================================================
   モバイルカラム（アプリシェル）
   ===================================================================== */
.app-shell {
    position: relative;
    width: 100%;
    max-width: var(--shell-width);
    margin: 0 auto;
    background: var(--light);
    min-height: 100vh;
    box-shadow: var(--shadow-shell);
    padding-top: var(--header-height);
    overflow: hidden;
    z-index: 2;
}

/* =====================================================================
   固定ヘッダー（モバイルカラム幅に一致）
   ===================================================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-width);
    height: var(--header-height);
    background: #EAF7F6;                 /* Surface */
    color: var(--text);
    border-bottom: 1px solid #CFE6E4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(35, 80, 78, 0.10);
}

.app-header__brand {
    display: flex;
    align-items: center;
    background: transparent;             /* 淡い地なので白フチは外す */
    padding: 0.4rem 0.2rem;
    border-radius: 0;
    box-shadow: none;
}

.app-header__brand img {
    height: 1.9rem;
    width: auto;
}

/* ハンバーガー */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(35, 53, 54, 0.08);
    border: none;
    border-radius: 0;
    cursor: pointer;
    gap: 5px;
    transition: var(--transition);
}

.hamburger-btn:hover { background: rgba(35, 53, 54, 0.14); }

.hamburger-line {
    display: block;
    width: 1.35rem;
    height: 0.14rem;
    background: var(--text);
    border-radius: 0;
    transition: var(--transition);
}

.hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   PC用サイドパネル（余白に配置・大画面のみ）
   ===================================================================== */
.side-panel {
    position: fixed;
    top: 0;
    height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    padding: 3rem;
}

/* 左：ブランド */
.side-left {
    left: 0;
    width: calc((100% - var(--shell-width)) / 2);
    max-width: 30rem;
    align-items: flex-start;
    padding-left: clamp(2rem, 5vw, 5rem);
}

.side-left__logo {
    height: 3rem;
    margin-bottom: 1.75rem;
}

.side-left__title {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    font-weight: 900;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.side-left__title .accent {
    background: var(--primary-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.side-left__desc {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 22rem;
}

.side-left__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-line);
    color: var(--light);
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 0;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(6, 199, 85, 0.32);
    transition: var(--transition);
}

.side-left__cta:hover {
    background: var(--color-line-hover);
    transform: translateY(-2px);
    color: var(--light);
}

/* 右：ナビ＋SNS */
.side-right {
    right: 0;
    width: calc((100% - var(--shell-width)) / 2);
    max-width: 24rem;
    align-items: flex-end;
    text-align: right;
    padding-right: clamp(2rem, 5vw, 5rem);
}

.side-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-bottom: 2.5rem;
}

.side-nav a {
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.side-nav__en {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--dark);
    transition: var(--transition);
}

.side-nav__jp {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 0.1rem;
}

.side-nav a:hover .side-nav__en,
.side-nav a.active .side-nav__en {
    background: var(--primary-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateX(-4px);
}

.side-social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.side-social a {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.side-social a:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--light);
}

.side-social a.is-line { background: var(--color-line); }
.side-social a.is-instagram { background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%); color: #fff; }

/* =====================================================================
   ヒーロー（カラム内）
   ===================================================================== */
.hero {
    position: relative;
    color: var(--text);
    overflow: hidden;
}

.hero__img {
    width: 100%;
    /* デバイスの高さ（固定ヘッダー分を除いた画面いっぱい） */
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    /* 背の高い画面で高くなりすぎないよう上限を設定 */
    max-height: 55rem;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;   /* 上部にタイトル・下部に本文/ボタン */
    padding: 1.75rem 1.5rem 2.25rem;
    /* 画像をしっかり見せるため、上下だけ淡いクリームで起こし中央は透明に */
    background:
        linear-gradient(180deg, rgba(247, 252, 252, 0.94) 0%, rgba(247, 252, 252, 0) 34%),
        linear-gradient(0deg, rgba(247, 252, 252, 0.96) 0%, rgba(247, 252, 252, 0) 38%);
}

.hero__subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    background: rgba(34, 184, 176, 0.14);
    backdrop-filter: blur(4px);
    border-left: 3px solid var(--primary-solid);
    color: var(--primary-end);
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    margin-bottom: 0.9rem;
}

.hero__title {
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.4;
    color: var(--dark);
}

.hero__body {
    font-size: 0.85rem;
    line-height: 1.9;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =====================================================================
   ボタン
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    padding: 0.95rem 1.6rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 10px 24px rgba(22, 146, 140, 0.32);
}

.btn-primary:hover { transform: translateY(-2px); color: var(--on-primary); filter: brightness(1.06); box-shadow: var(--shadow-lg); }

.btn-outline-white {
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-end);
    border: 1.5px solid rgba(22, 146, 140, 0.40);
}

.btn-outline-white:hover { background: rgba(255, 255, 255, 0.92); color: var(--primary-end); }

.btn-gradient {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 10px 24px rgba(22, 146, 140, 0.32);
}

.btn-gradient:hover { transform: translateY(-2px); color: var(--on-primary); filter: brightness(1.06); }

.btn-instagram {
    background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
    color: var(--light);
    box-shadow: 0 10px 24px rgba(188, 24, 136, 0.26);
}

.btn-instagram:hover { transform: translateY(-2px); color: var(--light); filter: brightness(1.06); }

.btn-line {
    background: var(--color-line);
    color: var(--light);
    box-shadow: 0 10px 24px rgba(6, 199, 85, 0.28);
}

.btn-line:hover { background: var(--color-line-hover); color: var(--light); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* =====================================================================
   セクション共通
   ===================================================================== */
.section {
    padding: 3rem 1.5rem;
}

.section-alt {
    background: var(--gray-100);
}

/* セクション見出し（JP大 ── EN小） */
.sec-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.sec-head__jp {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--dark);
    white-space: nowrap;
}

.sec-head__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-start), rgba(34, 184, 176, 0.25));
    border-radius: 0;
}

.sec-head__en {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-start);
    white-space: nowrap;
}

.sec-lead {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1.75rem;
}

/* 小さめのラベル（上に置く緑/紫のミニ見出し） */
.sec-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary-start);
    margin-bottom: 0.5rem;
}

/* =====================================================================
   About
   ===================================================================== */
.about__title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 1rem;
}

.about__text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.95;
    margin-bottom: 1.5rem;
}

.about__img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.check-list li i {
    color: var(--color-check);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* =====================================================================
   Features
   ===================================================================== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-card__icon {
    flex-shrink: 0;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.feature-card__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.feature-card__body p {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.8;
}

/* =====================================================================
   Courses
   ===================================================================== */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 注目コース（Minecraft） */
.course-card--feature {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--light), var(--light)), var(--success);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.course-card__media {
    position: relative;
    aspect-ratio: 3 / 2;   /* コース画像(600x400)を切らずに全面表示 */
    overflow: hidden;
}

.course-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card__media img { transform: scale(1.06); }

/* Minecraft: メイン＋サブ画像グリッド */
.course-card__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.35rem;
    background: var(--gray-100);
}

.course-card__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.course-card__gallery .g-main {
    grid-column: 1 / 3;
    height: 9.5rem;
}

.course-card__gallery .g-sub { height: 6rem; }

.course-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--warning);
    color: var(--text);
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.course-card__body { padding: 1.3rem 1.3rem 0; }

.badge-new {
    display: inline-block;
    background: var(--success);
    color: var(--text);
    padding: 0.3rem 0.9rem;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.course-card__body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.course-card__body p {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.course-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}

.course-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--text);
}

.course-features li::before {
    content: '✓';
    color: var(--color-check);
    font-weight: bold;
    flex-shrink: 0;
}

.course-price {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    padding: 1.1rem 1.3rem;
    text-align: right;
    border-top: 1px solid var(--gray-200);
}

.course-price__main {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.course-price__amount {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--primary-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-price__unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.course-price__note {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

/* =====================================================================
   Gallery（教室の特徴）
   ===================================================================== */
.gallery-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.gallery-item img {
    width: 100%;
    height: 11rem;
    object-fit: cover;
}

.gallery-item__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.9rem;
}

/* 右下の「詳細を見る」ボタン */
.gallery-item__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-end);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item__btn i { font-size: 0.7rem; }

.gallery-item:hover .gallery-item__btn {
    background: var(--light);
    color: var(--primary-start);
}

/* =====================================================================
   Teacher
   ===================================================================== */
.teacher-section { background: var(--primary-deep); color: var(--light); }

.teacher-section .sec-head__jp { color: var(--light); }
.teacher-section .sec-head__en { color: var(--accent-light); }
.teacher-section .sec-head__line { background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1)); }

.teacher-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    padding: 2.25rem 1.5rem 1.75rem;
}

.teacher-card__img {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-lg);
}

.teacher-card__name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.teacher-card__role {
    font-size: 0.76rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.teacher-card__motto {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.teacher-card__summary {
    font-size: 0.85rem;
    line-height: 1.9;
    opacity: 0.95;
    margin-bottom: 1.25rem;
}

.teacher-card__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.teacher-card__tags span {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.20);
    color: var(--light);
    padding: 0.35rem 0.75rem;
}

/* 入会金0円・回数自由の告知（コース一覧の冒頭） */
.course-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-solid);
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}

.course-notice__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.95rem;
}

.course-notice strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.course-notice span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--muted);
}

/* =====================================================================
   Contact
   ===================================================================== */
.contact-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-card__img {
    width: 100%;
    aspect-ratio: 3 / 2;   /* LINE画像(600x400)を切らずに全面表示 */
    object-fit: cover;
}

.contact-card__body { padding: 1.5rem; }

.contact-card__body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.contact-card__body p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.contact-card .check-list { margin-bottom: 1.5rem; }

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* SNS導線（運営SONAREAMのInstagram） */
.contact-sns {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--gray-200);
}

.contact-card__body .contact-sns p {
    font-size: 0.8rem;
    line-height: 1.85;
    margin-bottom: 0.9rem;
}

.contact-sns__note {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.7rem;
    text-align: center;
}

/* =====================================================================
   Footer
   ===================================================================== */
.app-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.app-footer h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.9rem;
}

.app-footer p {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.app-footer a { color: var(--footer-link); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; color: var(--light); }

.app-footer__social {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 0 1.2rem;
}

.app-footer__social a {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--light);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
}

.app-footer__social a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--light);
    text-decoration: none;
    transform: translateY(-2px);
}

/* =====================================================================
   スライドメニュー（ハンバーガー）— SONAREAM準拠：スマホ枠内にクリップ
   ===================================================================== */
/* オーバーレイ：スマホ枠内だけを暗くする */
.slide-menu-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--frame-gutter);
    right: var(--frame-gutter);
    background: rgba(35, 53, 54, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 998;
}

.slide-menu-overlay.active { opacity: 1; visibility: visible; }

/* クリップ枠：スマホ枠の内側だけにメニューを収める（余白へのはみ出しを隠す） */
.menu-frame {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--frame-gutter);
    right: var(--frame-gutter);
    overflow: hidden;          /* 枠外（左右余白）へのはみ出しを隠す */
    pointer-events: none;      /* 空き領域のクリックは背面へ通す */
    z-index: 999;
}

.slide-menu {
    position: absolute;        /* .menu-frame を基準に配置 */
    top: 0;
    bottom: 0;
    right: calc(-1 * var(--side-menu-width) - 20px);  /* 枠の右外へ隠す */
    width: var(--side-menu-width);
    background: var(--light);
    box-shadow: -8px 0 40px rgba(35, 53, 54, 0.25);
    pointer-events: auto;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.slide-menu.active {
    right: 0;                  /* 枠（スマホ本体）の右端にぴったり収まる */
}

/* ヘッダーは常に前面（z-index 1000）。メニューはその下に潜り込むので上部に余白 */
.slide-menu-content {
    flex: 1;
    padding: calc(var(--header-height) + 1.25rem) 1.25rem 1.25rem;
}

.slide-menu-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.slide-menu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    transition: var(--transition);
}

.slide-menu-nav a::after {
    content: '›';
    color: var(--primary-start);
    font-size: 1.1rem;
}

.slide-menu-nav a:hover {
    background: var(--primary);
    color: var(--on-primary);
}

.slide-menu-nav a:hover::after { color: var(--on-primary); }

.slide-menu-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.25rem 0;
}

.slide-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.slide-menu-buttons .btn { font-size: 0.85rem; padding: 0.85rem 1rem; }

.slide-menu-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
    text-align: center;
}

.slide-menu-footer p { margin: 0; font-size: 0.7rem; color: var(--muted); }
.slide-menu-footer a { color: var(--primary-start); text-decoration: none; }

/* =====================================================================
   スクロールアニメーション
   ===================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards paused;
}

.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.16s; }
.animate-delay-3 { animation-delay: 0.24s; }
.animate-delay-4 { animation-delay: 0.32s; }
.animate-delay-5 { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll { opacity: 1; animation: none; }
    html { scroll-behavior: auto; }
}

/* =====================================================================
   レスポンシブ：PC用サイドパネルの表示
   十分な余白がある大画面のみ表示（カラム440px + 左右パネル）
   ===================================================================== */
@media (min-width: 75rem) {   /* 1200px以上：余白にサイドパネルを表示 */
    .side-panel { display: flex; }
}

/* カラムが画面いっぱいになる幅（500px以下）では浮遊感の影を消す */
@media (max-width: 31.25rem) {   /* 500px */
    .app-shell { box-shadow: none; }
}

/* =====================================================================
   詳細モーダル（ボトムシート）— SONAREAM準拠
   ===================================================================== */
.modal {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--frame-gutter);      /* スマホ枠内にクリップ */
    right: var(--frame-gutter);
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0.75rem;             /* モーダル本体の左右に余白 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(35, 53, 54, 0.65);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--shell-width);
    max-height: 90vh;
    max-height: 90dvh;
    background: var(--light);
    box-shadow: 0 -10px 50px rgba(35, 53, 54, 0.35);
    border-radius: 1.25rem 1.25rem 0 0;   /* 上部の角（TOP-LEFT / TOP-RIGHT）を丸める */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.active .modal-dialog {
    transform: translateY(0);
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 3;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.08);
}

/* --- モーダル中身 --- */
.modal-media {
    width: 100%;
    aspect-ratio: 3 / 2;   /* コース画像(600x400)を切らずに全面表示 */
    overflow: hidden;
    background: var(--gray-100);
}

.modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-content {
    padding: 1.5rem 1.4rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.modal-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--primary-start);
    margin-bottom: 0.4rem;
    text-align: center;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.modal-tag {
    background: var(--primary);
    color: var(--on-primary);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.modal-desc p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.modal-features li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid var(--gray-200);
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-check);
    font-weight: bold;
    font-size: 1rem;
}

.modal-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    margin-bottom: 0.3rem;
}

.modal-price .price-amount {
    font-size: 1.9rem;
    font-weight: 900;
    background: var(--primary-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-price .price-suffix {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 600;
}

.modal-price .price-unit {
    margin-left: 0.6rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.modal-note {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
    text-align: right;
    margin-bottom: 1.25rem;
}

.modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    background: var(--color-line);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(6, 199, 85, 0.28);
    transition: var(--transition);
}

.modal-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    color: #fff;
}

/* --- 「詳細を見る +」ボタン（カードにJSで追加） --- */
.card-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 1.3rem;
    padding: 0.8rem 1.2rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 0;
    background: transparent;
    color: var(--primary-end);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
}

.card-detail-btn i { font-size: 0.75rem; }

.card-detail-btn:hover {
    border-color: var(--primary-start);
    background: var(--gray-100);
    color: var(--primary-end);
}

.card-detail-btn:focus-visible {
    outline: 3px solid var(--primary-start);
    outline-offset: 3px;
}

/* 講師（濃い背景）用の白アウトライン変種 */
.card-detail-btn--light {
    margin: 1.5rem 0 0;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.card-detail-btn--light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}
