/*
 * SALLY141 Learning - front.css
 * front_app 配下の画面に対する上書きスタイル。
 * prototype.css を読み込んだ後で当ファイルを読み、配色とコンポーネント仕上げを
 * 2026 向けエディトリアル基調に差し替える。
 * /prototype/* には影響させない。
 */

:root {
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-alt: #F4F4F5;
    --text: #0A0A0A;
    --text-muted: #52525B;
    --text-dim: #A1A1AA;
    --border: #E5E5E5;
    --border-strong: #D4D4D8;
    --accent: #8B1538;
    --accent-hover: #6B1028;
    --accent-soft: rgba(139, 21, 56, 0.08);
    --line: #06C755;
    --success-bg: #DCFCE7;
    --success-fg: #15803D;
    --info-bg: #EFF6FF;
    --info-fg: #1D4ED8;
    --warn-bg: #FEF3C7;
    --warn-fg: #B45309;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.08);
}

body {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Inter', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-feature-settings: "palt" 1;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

/* ─────────────────────────── ヘッダー ─────────────────────────── */
.front-header {
    background: var(--surface) !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    padding: 14px 24px !important;
}
.front-header .logo {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    line-height: 1.05 !important;
    gap: 3px !important;
    text-decoration: none !important;
    padding: 0 !important;
    border: 0 !important;
}
.front-header .logo .logo-main {
    color: var(--text) !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    letter-spacing: 1.4px !important;
    display: block !important;
}
.front-header .logo .logo-sub {
    color: var(--accent) !important;
    font-size: 9.5px !important;
    font-weight: 500 !important;
    letter-spacing: 2.8px !important;
    text-transform: none !important;
    margin: 0 !important;
    display: block !important;
}
@media (max-width: 480px) {
    .front-header .logo .logo-main { font-size: 15px !important; }
    .front-header .logo .logo-sub  { font-size: 9px !important; letter-spacing: 2px !important; }
}
.front-header nav a {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0 !important;
    border-bottom: 2px solid transparent !important;
}
.front-header nav a:hover { color: var(--text) !important; }
.front-header nav a.active {
    color: var(--text) !important;
    border-bottom-color: var(--accent) !important;
}
.front-header .user-menu a { color: var(--text) !important; }
.front-header .header-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-muted) !important;
    transition: background .15s ease, color .15s ease;
}
.front-header .header-search-btn:hover {
    background: var(--surface-alt);
    color: var(--text) !important;
}
.front-header .avatar {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    font-weight: 700;
    border: 1px solid transparent;
}

/* ゲストヘッダー (LP/未ログイン用): ナビは細く、CTA を強調 */
.front-header .guest-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.front-header .guest-nav a {
    font-size: 13px !important;
    font-weight: 500;
    color: var(--text-muted) !important;
    border-bottom: 0 !important;
    padding: 6px 0 !important;
    transition: color .15s ease;
}
.front-header .guest-nav a:hover { color: var(--text) !important; }
.front-header .guest-nav a.active {
    color: var(--accent) !important;
    border-bottom: 0 !important;
}
.front-header .user-menu-guest {
    display: flex;
    align-items: center;
    gap: 14px;
}
.front-header .header-login-link {
    font-size: 13px !important;
    font-weight: 500;
    color: var(--text-muted) !important;
    transition: color .15s ease;
}
.front-header .header-login-link:hover { color: var(--text) !important; }
.front-header .header-cta-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 9px 18px !important;
    background: linear-gradient(135deg, var(--accent) 0%, #C2417F 100%) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.22);
    transition: transform .15s ease, box-shadow .15s ease;
}
.front-header .header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 21, 56, 0.32);
}

/* ボトムナビ ゲスト用 CTA ボタン */
.bottom-nav .bottom-nav-cta {
    color: var(--accent) !important;
    font-weight: 700 !important;
}
.bottom-nav .bottom-nav-cta i {
    color: var(--accent) !important;
}

/* レスポンシブ: ゲストの中央ナビは小さい画面で隠す */
@media (max-width: 720px) {
    .front-header .guest-nav { display: none; }
    .front-header .header-login-link { display: none; }
    .front-header .header-cta-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

/* ─────────────────────────── ボトムナビ ─────────────────────────── */
.bottom-nav {
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.03) !important;
}
.bottom-nav ul li a {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    gap: 2px !important;
}
.bottom-nav ul li a.active { color: var(--accent) !important; }

/* ─────────────────────────── ヒーロー ─────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0A0A0A 0%, #1C1C1C 100%) !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-lg) !important;
    padding: 72px 40px !important;
    position: relative;
    overflow: hidden;
    margin: 24px 20px !important;
}
.hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.35), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-size: 40px !important;
    font-weight: 800 !important;
    letter-spacing: -0.6px !important;
    line-height: 1.22 !important;
    margin-bottom: 16px !important;
    color: #FFFFFF !important;
}
.hero p {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ─────────────────────────── ボタン ─────────────────────────── */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .1s ease, background .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--accent) !important;
    color: #FFFFFF !important;
    border-color: var(--accent) !important;
}
.btn-primary:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.btn-outline {
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--border-strong) !important;
}
.btn-outline:hover { background: var(--surface) !important; border-color: var(--text) !important; }
/* 暗い背景 (ヒーロー等) の上では反転 */
.hero .btn-outline,
.on-dark .btn-outline {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}
.hero .btn-outline:hover,
.on-dark .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}
.btn-line {
    background: var(--line) !important;
    color: #FFFFFF !important;
    border-color: var(--line) !important;
}
.btn-line:hover { background: #05A344 !important; border-color: #05A344 !important; }
.btn-lg { padding: 14px 28px !important; font-size: 15px !important; }

/* ─────────────────────────── セクション / タイトル ─────────────────────────── */
main > .section,
main > section.hero + .section { padding: 48px 20px !important; }
.section-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    color: var(--text) !important;
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 16px;
}
.section-title .more {
    color: var(--accent) !important;
    font-size: 13px !important;
    font-weight: 600;
    margin-left: auto;
}
.section-title .more:hover { color: var(--accent-hover) !important; }

/* ─────────────────────────── カード ─────────────────────────── */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    color: var(--text) !important;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border-strong) !important;
}
.card-img {
    background: var(--surface-alt) !important;
    color: var(--text-dim) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    aspect-ratio: 16 / 9;
}
.card-img.card-img-916 { aspect-ratio: 9 / 16; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .duration {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(10, 10, 10, 0.85) !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.card-body { padding: 14px 16px !important; }
.card-body > div:first-child { font-weight: 600 !important; }

/* ロックオーバーレイ */
.lock-overlay {
    background: rgba(10, 10, 10, 0.55) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(3px);
    font-weight: 600;
}
.lock-overlay .lock-text { font-size: 11px; letter-spacing: 0.5px; }
.card-locked .card-img img { filter: brightness(0.75); }

/* ─────────────────────────── バッジ ─────────────────────────── */
.badge {
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    font-size: 10px !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.badge-free {
    background: var(--success-bg) !important;
    color: var(--success-fg) !important;
}
.badge-premium {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
}
.level-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.level-beginner    { background: var(--info-bg) !important;    color: var(--info-fg) !important; }
.level-intermediate{ background: var(--warn-bg) !important;    color: var(--warn-fg) !important; }
.level-advanced    { background: var(--accent-soft) !important; color: var(--accent) !important; }

/* ─────────────────────────── カテゴリーカード ─────────────────────────── */
.category-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 28px 18px !important;
    text-align: center;
    transition: transform .15s, border-color .15s, color .15s;
    color: var(--text) !important;
    box-shadow: none !important;
    display: block;
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 14px;
    font-size: 0 !important;
}
.category-name { font-weight: 700 !important; font-size: 14px !important; }
.category-count {
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    font-weight: 500;
}

/* ─────────────────────────── モーダル ─────────────────────────── */
.modal-backdrop {
    background: rgba(10, 10, 10, 0.55) !important;
    backdrop-filter: blur(6px);
}
.modal-content {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
}
.modal-icon {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.modal-header h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
    color: var(--text) !important;
}
.price { color: var(--accent) !important; font-weight: 800 !important; }
.feature-list li {
    padding: 6px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-list li::before {
    content: "" !important;
}
.modal-close {
    color: var(--text-muted) !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
}

/* ─────────────────────────── カルーセル ─────────────────────────── */
.carousel-row {
    gap: 16px !important;
    padding-bottom: 10px !important;
    scroll-snap-type: x mandatory;
}
.carousel-row::-webkit-scrollbar { height: 6px; }
.carousel-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.carousel-row > .card { scroll-snap-align: start; }
.carousel-row > .tile { scroll-snap-align: start; }

/* ─────────────────────────── Prime/Netflix 風タイル ─────────────────────────── */
/* デフォルトはサムネのみ表示、ホバーで情報がフェードイン */
.tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-alt);
    color: inherit;
    text-decoration: none;
    display: block;
    transition: box-shadow .2s ease, outline-color .2s ease;
    outline: 2px solid transparent;
    outline-offset: 0;
}
.tile:hover {
    outline-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.tile-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface-alt);
    overflow: hidden;
}
.tile-thumb.tile-thumb-916 { aspect-ratio: 9 / 16; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-thumb .tile-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
}

/* ホバーで出る情報オーバーレイ */
.tile-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.78) 55%, rgba(0,0,0,0.0) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    z-index: 2;
}
.tile:hover .tile-info,
.tile:focus-visible .tile-info {
    opacity: 1;
    transform: translateY(0);
}
.tile-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    margin-bottom: 6px;
}
.tile-meta .badge { font-size: 9px !important; padding: 2px 6px !important; }
.tile-desc {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 常時表示するインジケーター類 */
.tile-rank {
    position: absolute; top: 8px; left: 8px;
    background: var(--accent); color: #fff;
    border-radius: 6px; padding: 2px 8px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
}
.tile-lock {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    z-index: 1;
}
.tile-lock svg { width: 14px; height: 14px; }
.tile-progress {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.tile-progress > .fill { height: 100%; background: var(--accent); }
.tile-stars {
    position: absolute; left: 8px; right: 8px; bottom: 8px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    color: var(--accent);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 1;
}
.tile-stars .stars-time { color: rgba(255, 255, 255, 0.65); font-size: 10px; font-weight: 600; }
.tile-duration {
    position: absolute; right: 8px; bottom: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    z-index: 1;
    transition: opacity .15s ease;
}
/* ホバー時は下に出る tile-info に統合表示するため、底辺に重なる小要素は隠す */
.tile-stars, .tile-progress { transition: opacity .15s ease; }
.tile:hover .tile-stars,
.tile:hover .tile-duration { opacity: 0; }

/* ロック中はサムネを少し暗く */
.tile.tile-locked .tile-thumb img,
.tile.tile-locked .tile-thumb .tile-empty {
    filter: brightness(0.65) saturate(0.85);
}

/* タッチデバイスではホバーがないので情報を常時表示 (簡易版) */
@media (hover: none) {
    .tile-info {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    }
    .tile-desc { display: none; }
}

/* ─────────────────────────── Lucide アイコン 共通 ─────────────────────────── */
.lucide, svg.lucide {
    display: inline-block;
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    vertical-align: -4px;
}
.front-header nav a .lucide { width: 16px; height: 16px; }
.bottom-nav ul li a .lucide { width: 22px; height: 22px; stroke-width: 1.75; margin-bottom: 2px; }
.category-icon .lucide { width: 26px; height: 26px; stroke-width: 1.75; }
.modal-icon .lucide { width: 28px; height: 28px; stroke-width: 1.75; }
.lock-overlay .lucide { width: 28px; height: 28px; display: block; margin-bottom: 4px; }
.btn .lucide { width: 16px; height: 16px; stroke-width: 2; }
.btn-lg .lucide { width: 18px; height: 18px; }
.feature-list li .lucide { width: 16px; height: 16px; color: var(--success-fg); flex-shrink: 0; }

/* 旧 prototype の PROTOTYPE バッジ / screen-info / page-nav が万一残っていても非表示 */
.proto-badge, .screen-info, .page-nav { display: none !important; }

/* ─────────────────────────── ページ共通コンテナ ─────────────────────────── */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.page-head h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    margin: 0;
}
.page-head .lead {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
}

/* ─────────────────────────── ブレッドクラム ─────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ─────────────────────────── フィルタチップ ─────────────────────────── */
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
    margin-bottom: 24px;
    scroll-snap-type: x mandatory;
    border-bottom: 1px solid var(--border);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .1s;
    scroll-snap-align: start;
    text-decoration: none;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip.active {
    background: var(--accent);
    color: #FFFFFF !important;
    border-color: var(--accent);
}

/* ─────────────────────────── 検索ボックス ─────────────────────────── */
.search-box {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ─────────────────────────── フォーム ─────────────────────────── */
.form-card {
    max-width: 440px;
    margin: 32px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow);
}
.form-card h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 8px;
    text-align: center;
}
.form-card .lead {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group .help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-group .err { font-size: 12px; color: #B91C1C; margin-top: 4px; }

/* ─────────────────────────── プログレスバー ─────────────────────────── */
.progress-bar {
    height: 6px;
    background: var(--surface-alt);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar .fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width .3s ease;
}

/* ─────────────────────────── 詳細ヘッダー ─────────────────────────── */
.detail-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.detail-hero h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    margin-bottom: 12px;
}
.detail-hero .meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.detail-hero .meta .item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.detail-hero .desc {
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

/* ─────────────────────────── 動画プレーヤー ─────────────────────────── */
.video-frame {
    background: #000;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 20px;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ─────────────────────────── 空状態 ─────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.empty-state p { color: var(--text-muted); font-size: 13px; }

/* ─────────────────────────── タグ ─────────────────────────── */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.tag {
    background: var(--surface-alt);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid var(--border);
}

/* ─────────────────────────── ページネーション ─────────────────────────── */
.pagination {
    margin-top: 40px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--surface);
    color: var(--text-muted);
}
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .active span {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

/* ─────────────────────────── 法令ページ (利用規約 / プラポリ / 特商法) ─────────────────────────── */
.legal-doc {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
}
.legal-doc h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
    margin-bottom: 8px;
}
.legal-doc .updated-at {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.legal-doc h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
    line-height: 1.4;
}
.legal-doc h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-top: 20px;
    margin-bottom: 6px;
}
.legal-doc p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 10px;
}
.legal-doc ul, .legal-doc ol {
    font-size: 13.5px;
    line-height: 1.85;
    padding-left: 22px;
    margin-bottom: 10px;
}
.legal-doc ul li, .legal-doc ol li {
    margin-bottom: 4px;
}
.legal-doc dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 20px;
    font-size: 13.5px;
    margin-bottom: 10px;
}
.legal-doc dt {
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.legal-doc dd {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.legal-doc .note {
    background: var(--surface-alt);
    border-left: 3px solid var(--border-strong);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 4px;
    margin: 16px 0;
}
@media (max-width: 640px) {
    .legal-doc { padding: 28px 20px; }
    .legal-doc h1 { font-size: 22px; }
    .legal-doc dl { grid-template-columns: 1fr; gap: 2px; }
    .legal-doc dt { padding-bottom: 0; border-bottom: 0; }
    .legal-doc dd { padding-top: 4px; padding-bottom: 14px; }
}

/* ─────────────────────────── サイトフッター ─────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 36px 20px 80px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 12px;
}
.site-footer .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.site-footer .brand-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.site-footer .brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 3px;
}
.site-footer .brand .logo-main {
    color: var(--text);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.2px;
}
.site-footer .brand .logo-sub {
    color: var(--accent);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
}
.site-footer nav.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.site-footer nav.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}
.site-footer nav.legal-links a:hover { color: var(--text); }
.site-footer .copy {
    color: var(--text-dim);
    font-size: 11px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ─────────────────────────── アラート ─────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}
.alert-success { background: var(--success-bg); color: var(--success-fg); border-color: transparent; }
.alert-error   { background: #FEE2E2; color: #B91C1C; border-color: transparent; }
.alert-info    { background: var(--info-bg); color: var(--info-fg); border-color: transparent; }

/* ─────────────────────────── 料金プラン (横並び 2 カード) ─────────────────────────── */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    align-items: stretch;
}
.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px 30px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.plan-card-recommended {
    border-color: var(--accent);
    border-width: 2px;
    box-shadow: 0 12px 32px rgba(139, 21, 56, 0.12);
}
.plan-card-student {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 237, 230, 0.4) 100%);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.plan-badge-recommended {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}
.plan-badge-student {
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.plan-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 4px;
}
.plan-name-jp {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.plan-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}
.plan-price span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0;
    margin-left: 4px;
}
.plan-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 18px;
}
.plan-feature-list {
    list-style: none;
    padding: 22px 0;
    margin: 0 0 24px;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    flex: 1;
}
.plan-feature-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-feature-list li svg {
    color: var(--accent);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* レスポンシブ: モバイルで縦積み */
@media (max-width: 720px) {
    .plan-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .plan-card { padding: 32px 22px 26px; }
    .plan-price { font-size: 42px; }
}

/* ─────────────────────────── レスポンシブ ─────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 48px 24px !important; margin: 16px !important; }
    .hero h1 { font-size: 28px !important; }
    .section-title { font-size: 18px !important; }
}

/* ============================================================
   LP (Landing Page) 専用スタイル — 美容系パステル基調
   優しいパステルカラー + ゴシック太字 + 水彩風のグラデブロブ
   読みやすさ最優先・ふわっと柔らかい印象
   ============================================================ */
:root {
    --lp-cream: #FFF9F4;
    --lp-blush: #FFEDE6;
    --lp-pink: #FFD9DC;
    --lp-soft-pink: #FFEBEE;
    --lp-coral: #FF8B95;
    --lp-mint: #E8F2EA;
    --lp-sky: #E5F0F8;
    --lp-text-dark: #3A3A3A;
    --lp-text-mid: #6B6B6B;
    --lp-text-light: #9A9A9A;
    --lp-line-soft: #F4E0DC;
    --lp-burgundy: #8B1538;
}

/* LP 用のフォント・色のリセット (front.css 共通の灰色ベースを上書き) */
.lp-page {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    color: var(--lp-text-dark);
    background: var(--lp-cream);
    letter-spacing: 0.04em;
    line-height: 1.85;
}
.lp-page h1, .lp-page h2, .lp-page h3, .lp-page h4 {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--lp-text-dark);
    font-feature-settings: "palt" 1;
}

/* ========== セクション共通 ========== */
.lp-section {
    padding: 120px 24px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.lp-section-inner {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.lp-section.lp-section-narrow .lp-section-inner { max-width: 780px; }
.lp-section-bg-cream { background: var(--lp-cream); }
.lp-section-bg-blush { background: var(--lp-blush); }
.lp-section-bg-soft-pink { background: var(--lp-soft-pink); }

/* 水彩風のグラデブロブ (各セクションの背景装飾) */
.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.lp-blob-pink { background: var(--lp-pink); }
.lp-blob-blush { background: var(--lp-blush); }
.lp-blob-mint { background: var(--lp-mint); }
.lp-blob-sky { background: var(--lp-sky); }

/* ========== HERO (動画背景 + パステルオーバーレイ + 桜) ========== */
.lp-hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #FFF9F4 0%, #FFEDE6 50%, #FFE5E0 100%);
}
/* 背景動画 (autoplay muted loop) */
.lp-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: lp-ken-burns 30s ease-in-out infinite alternate;
}
@keyframes lp-ken-burns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}
/* 動画の上に乗せるパステルティント (テキスト可読性 + ブランド感) */
.lp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(255, 248, 244, 0.55) 0%,
            rgba(255, 237, 230, 0.5) 40%,
            rgba(255, 217, 220, 0.55) 100%);
    z-index: 1;
}
.lp-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 880px;
    margin: 0 auto;
    padding: 100px 24px;
    text-align: center;
}
/* 桜と sparkle は overlay と text の間に */
.lp-hero .lp-petal { z-index: 2; }

/* 桜の花びら (Hero に複数枚浮かせる) */
.lp-petal {
    position: absolute;
    width: 18px;
    height: 18px;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, #FFC4D0 0%, #FFD9DC 60%, transparent 100%);
    border-radius: 80% 0 80% 80%;
    transform: rotate(45deg);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation-name: lp-fall;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.lp-petal:nth-child(1)  { left: 5%;  width: 22px; height: 22px; animation-duration: 14s; animation-delay: 0s; }
.lp-petal:nth-child(2)  { left: 15%; width: 14px; height: 14px; animation-duration: 18s; animation-delay: 2s; }
.lp-petal:nth-child(3)  { left: 28%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: 4s; }
.lp-petal:nth-child(4)  { left: 42%; width: 16px; height: 16px; animation-duration: 22s; animation-delay: 1s; }
.lp-petal:nth-child(5)  { left: 58%; width: 24px; height: 24px; animation-duration: 15s; animation-delay: 3s; }
.lp-petal:nth-child(6)  { left: 72%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: 6s; }
.lp-petal:nth-child(7)  { left: 84%; width: 20px; height: 20px; animation-duration: 17s; animation-delay: 0s; }
.lp-petal:nth-child(8)  { left: 92%; width: 16px; height: 16px; animation-duration: 21s; animation-delay: 5s; }
@keyframes lp-fall {
    0%   { transform: translateY(-40px) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.85; }
    100% { transform: translateY(110vh) rotate(540deg); opacity: 0.7; }
}
.lp-hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--lp-burgundy);
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
}
.lp-hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--lp-text-dark);
    margin: 0 0 36px !important;
    letter-spacing: 0.05em;
}
.lp-hero h1 em {
    font-style: normal;
    color: var(--lp-coral);
    position: relative;
    display: inline-block;
}
.lp-hero h1 em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 8px;
    background: rgba(255, 139, 149, 0.25);
    border-radius: 4px;
    z-index: -1;
}
.lp-hero-lead {
    font-size: 17px;
    line-height: 2.1;
    color: var(--lp-text-mid);
    max-width: 580px;
    margin: 0 auto 48px;
    font-weight: 500;
}
.lp-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 999px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    border: 0;
    cursor: pointer;
}
.lp-btn-primary {
    background: linear-gradient(135deg, var(--lp-burgundy) 0%, #C2417F 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(139, 21, 56, 0.25);
}
.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 21, 56, 0.35);
}
.lp-btn-outline {
    background: rgba(255, 255, 255, 0.85);
    color: var(--lp-text-dark);
    border: 1.5px solid var(--lp-line-soft);
    backdrop-filter: blur(8px);
}
.lp-btn-outline:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.lp-hero-meta {
    margin-top: 36px;
    font-size: 12px;
    color: var(--lp-text-light);
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ========== セクション見出し共通 ========== */
.lp-eyebrow {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(90deg, var(--lp-pink) 0%, var(--lp-sky) 100%);
    border-radius: 999px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--lp-burgundy);
    margin-bottom: 28px;
    text-transform: uppercase;
}
.lp-section-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.5;
    color: var(--lp-text-dark);
    margin: 0 0 20px;
    letter-spacing: 0.04em;
}
.lp-section-title em {
    font-style: normal;
    color: var(--lp-coral);
    position: relative;
    display: inline-block;
}
.lp-section-title em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 6px;
    background: rgba(255, 139, 149, 0.25);
    border-radius: 3px;
    z-index: -1;
}
.lp-section-lead {
    font-size: 16px;
    line-height: 2.1;
    color: var(--lp-text-mid);
    max-width: 640px;
    margin: 0 auto 70px;
    font-weight: 500;
}
.lp-section-head {
    text-align: center;
    margin-bottom: 60px;
}

/* ========== POINT マーカー ========== */
.lp-point-marker {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 28px;
    background: linear-gradient(90deg, #FFE5E0 0%, #FFEFE5 50%, #E5F0F8 100%);
    border-radius: 999px;
    margin-bottom: 24px;
}
.lp-point-label {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--lp-burgundy);
}
.lp-point-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--lp-burgundy);
    line-height: 1;
}

/* ========== 1. 3 つの未来 (グリッド) ========== */
.lp-futures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.lp-future-card {
    background: #fff;
    padding: 48px 32px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(255, 139, 149, 0.08);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}
.lp-future-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(255, 139, 149, 0.15);
}
.lp-future-card::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: var(--lp-blush);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}
.lp-future-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-pink) 0%, var(--lp-sky) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-burgundy);
    position: relative;
    z-index: 1;
}
.lp-future-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.lp-future-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--lp-text-dark);
    margin: 0 0 16px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.lp-future-text {
    font-size: 14px;
    line-height: 2;
    color: var(--lp-text-mid);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ========== 2. プログラム特徴 (POINT 縦並び) ========== */
.lp-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}
.lp-feature:last-child { margin-bottom: 0; }
.lp-feature.lp-feature-reverse > .lp-feature-photo { order: 2; }
.lp-feature-photo {
    aspect-ratio: 4/5;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 48px rgba(255, 139, 149, 0.18);
    background-color: var(--lp-blush);
    background-position: center;
    background-size: cover;
}
.lp-feature-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.lp-feature-photo::before {
    content: "";
    position: absolute;
    bottom: -20px; right: -20px;
    width: 80px; height: 80px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 1;
}
/* photo にラッピングする場合、フォールバックグラデの上に Pexels 写真を重ねる */
.lp-feature-photo[data-fallback] {
    background-image:
        linear-gradient(135deg, rgba(255, 139, 149, 0.15), rgba(255, 217, 220, 0.15)),
        var(--lp-feature-img),
        linear-gradient(135deg, var(--lp-pink) 0%, var(--lp-blush) 50%, var(--lp-sky) 100%);
    background-size: cover, cover, cover;
    background-position: center;
}
.lp-feature-title {
    font-size: 30px;
    font-weight: 900;
    color: var(--lp-text-dark);
    line-height: 1.55;
    margin: 24px 0 24px;
    letter-spacing: 0.04em;
}
.lp-feature-text {
    font-size: 15px;
    line-height: 2.1;
    color: var(--lp-text-mid);
    font-weight: 500;
}

/* ========== 3. 料金 ========== */
.lp-pricing {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    padding: 56px 40px;
    border-radius: 28px;
    box-shadow: 0 16px 48px rgba(255, 139, 149, 0.12);
    position: relative;
    overflow: hidden;
}
.lp-pricing::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: linear-gradient(135deg, var(--lp-pink), var(--lp-blush));
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}
.lp-pricing-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--lp-burgundy);
    margin-bottom: 14px;
    position: relative;
}
.lp-pricing-price {
    font-size: 64px;
    font-weight: 900;
    color: var(--lp-burgundy);
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
}
.lp-pricing-price small {
    font-size: 14px;
    color: var(--lp-text-mid);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-left: 6px;
}
.lp-pricing-list {
    list-style: none;
    padding: 30px 0;
    margin: 28px 0;
    border-top: 1px dashed var(--lp-line-soft);
    border-bottom: 1px dashed var(--lp-line-soft);
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--lp-text-dark);
    position: relative;
}
.lp-pricing-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lp-pricing-list li svg {
    color: var(--lp-coral);
    flex-shrink: 0;
}
.lp-pricing-note {
    font-size: 12px;
    color: var(--lp-text-light);
    margin-top: 16px;
    line-height: 1.7;
    position: relative;
}

/* ========== 4. 受講生の声 ========== */
.lp-voices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.lp-voice-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(255, 139, 149, 0.1);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.lp-voice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(255, 139, 149, 0.18);
}
.lp-voice-mark {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 56px;
    line-height: 1;
    color: var(--lp-pink);
    pointer-events: none;
}
.lp-voice-quote {
    font-size: 18px;
    font-weight: 700;
    color: var(--lp-text-dark);
    line-height: 1.7;
    margin: 12px 0 20px;
    letter-spacing: 0.04em;
    padding-right: 40px;
}
.lp-voice-body {
    font-size: 13px;
    line-height: 2;
    color: var(--lp-text-mid);
    margin-bottom: 24px;
    font-weight: 500;
}
.lp-voice-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px dashed var(--lp-line-soft);
}
.lp-voice-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lp-pink), var(--lp-blush));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.lp-voice-meta {
    font-size: 12px;
    line-height: 1.6;
    color: var(--lp-text-mid);
    font-weight: 500;
}
.lp-voice-meta strong {
    color: var(--lp-text-dark);
    font-weight: 700;
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.lp-voice-disclaimer {
    font-size: 11px;
    color: var(--lp-text-light);
    text-align: center;
    margin-top: 36px;
    letter-spacing: 0.04em;
}

/* ========== 5. FAQ ========== */
.lp-faq {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 12px 36px;
    box-shadow: 0 8px 24px rgba(255, 139, 149, 0.08);
}
.lp-faq details {
    border-bottom: 1px dashed var(--lp-line-soft);
    padding: 22px 0;
}
.lp-faq details:last-child { border-bottom: 0; }
.lp-faq summary {
    font-size: 16px;
    font-weight: 700;
    color: var(--lp-text-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    line-height: 1.5;
    letter-spacing: 0.04em;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: "+";
    font-size: 26px;
    font-weight: 400;
    color: var(--lp-coral);
    transition: transform .25s ease;
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--lp-blush);
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq-body {
    font-size: 14px;
    line-height: 2.1;
    color: var(--lp-text-mid);
    padding-top: 16px;
    padding-right: 40px;
    font-weight: 500;
}

/* ========== 6. 最終 CTA (グラデーション背景) ========== */
.lp-final {
    background: linear-gradient(135deg, #FFEDE6 0%, #FFD9DC 50%, #FFE5E0 100%);
    padding: 120px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-final::before {
    content: "";
    position: absolute;
    top: -100px; left: 10%;
    width: 360px; height: 360px;
    background: var(--lp-sky);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}
.lp-final::after {
    content: "";
    position: absolute;
    bottom: -150px; right: 5%;
    width: 400px; height: 400px;
    background: var(--lp-pink);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}
.lp-final-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.lp-final h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.55;
    color: var(--lp-text-dark);
    margin: 0 0 24px;
    letter-spacing: 0.04em;
}
.lp-final h2 em {
    font-style: normal;
    color: var(--lp-burgundy);
}
.lp-final-lead {
    font-size: 16px;
    line-height: 2.1;
    color: var(--lp-text-mid);
    margin-bottom: 40px;
    font-weight: 500;
}

/* ========== コンテンツプレビュー ========== */
.lp-preview-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.lp-preview-row.lp-preview-row-courses {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ========== Inside the Studio (動画プレビュー: iPhone モック) ========== */
.lp-studio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.lp-studio-text { padding-right: 20px; }
.lp-studio .lp-feature-title { margin-top: 24px; }
.lp-studio-bullets {
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
}
.lp-studio-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.85;
    color: var(--lp-text-mid);
    font-weight: 500;
}
.lp-studio-bullets li i {
    color: var(--lp-coral);
    flex-shrink: 0;
    margin-top: 4px;
}

/* iPhone モック */
.lp-phone-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.lp-phone-wrap::before {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    background: radial-gradient(circle, var(--lp-pink) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}
.lp-phone {
    position: relative;
    z-index: 1;
    width: 280px;
    aspect-ratio: 9/19;
    border-radius: 38px;
    background: #1a1a1a;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(58, 58, 58, 0.25);
    transform: rotate(-3deg);
    transition: transform .4s ease;
}
.lp-phone:hover { transform: rotate(0deg) translateY(-4px); }
.lp-phone-screen {
    width: 100%; height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: var(--lp-pink);
    position: relative;
}
.lp-phone-notch {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 26px;
    background: #1a1a1a;
    border-radius: 999px;
    z-index: 3;
}
.lp-phone-content {
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.4)),
        url('https://images.pexels.com/photos/3993440/pexels-photo-3993440.jpeg?auto=compress&w=600'),
        linear-gradient(135deg, var(--lp-pink), var(--lp-coral));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.lp-phone-play {
    width: 64px; height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-burgundy);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: lp-pulse 2.4s ease-in-out infinite;
}
.lp-phone-play svg {
    width: 26px; height: 26px;
    margin-left: 4px;
    fill: currentColor;
}
@keyframes lp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 139, 149, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25); }
    50%      { box-shadow: 0 0 0 18px rgba(255, 139, 149, 0), 0 8px 24px rgba(0, 0, 0, 0.25); }
}

/* ========== スパークル (キラキラ装飾) ========== */
.lp-sparkle {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 1;
    color: var(--lp-coral);
    opacity: 0.7;
    animation: lp-twinkle 3s ease-in-out infinite;
}
.lp-sparkle::before {
    content: "✦";
    font-size: 14px;
    line-height: 1;
}
.lp-sparkle:nth-child(odd) { color: var(--lp-burgundy); }
@keyframes lp-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.15); }
}

/* ========== スクロールリビール ========== */
.lp-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
    will-change: opacity, transform;
}
.lp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.lp-reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.lp-reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.lp-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.lp-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.24s; }
.lp-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.36s; }

/* ========== レスポンシブ ========== */
@media (max-width: 900px) {
    .lp-section { padding: 80px 20px; }
    .lp-hero { padding: 70px 20px 90px; }
    .lp-hero h1 { font-size: 32px; }
    .lp-hero-lead { font-size: 15px; }
    .lp-section-title { font-size: 26px; }
    .lp-futures { grid-template-columns: 1fr; gap: 20px; }
    .lp-future-card { padding: 36px 24px; }
    .lp-feature {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 70px;
    }
    .lp-feature.lp-feature-reverse > .lp-feature-photo { order: 0; }
    .lp-feature-title { font-size: 22px; }
    .lp-pricing { padding: 40px 28px; }
    .lp-pricing-price { font-size: 52px; }
    .lp-voices { grid-template-columns: 1fr; gap: 20px; }
    .lp-voice-quote { font-size: 17px; padding-right: 24px; }
    .lp-faq { padding: 8px 24px; }
    .lp-faq summary { font-size: 15px; }
    .lp-final { padding: 80px 20px; }
    .lp-final h2 { font-size: 28px; }
    .lp-hero { min-height: 600px; }
    .lp-hero-inner { padding: 70px 20px; }
    .lp-studio {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .lp-phone { width: 240px; transform: rotate(0); }
    .lp-phone-wrap::before { width: 280px; height: 280px; }
}

/* ============================================
   スタイル一覧専用のタイトグリッド
   完成写真メインで枚数を稼ぎたいので、grid-4 より
   詰めて表示する。auto-fill+minmax で画面幅に応じて
   2〜7 列を自動切替。
   ============================================ */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
/* スマホは 3 列固定 (画面幅問わず 3 タイル横並び) */
@media (max-width: 600px) {
    .style-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    /* 小さいタイル内ではホバー情報の余白も縮める */
    .style-grid .tile-info { padding: 8px 8px 7px; }
    .style-grid .tile-title { font-size: 11px; line-height: 1.3; -webkit-line-clamp: 2; }
    .style-grid .tile-meta { font-size: 9px; gap: 4px; margin-bottom: 0; }
    .style-grid .tile-desc { display: none; }
}

/* ============================================
   モバイル最適化 (≤768 / ≤600 / ≤480 / ≤380)
   prototype.css の grid 切替を補強し、
   LP・会員エリアの細かいタイポ・余白・タップ領域を整える。
   ============================================ */

/* タブレット (~768px) */
@media (max-width: 768px) {
    .page { padding: 24px 16px 64px; }
    .page-head { gap: 12px; margin-bottom: 20px; }
    .page-head h1 { font-size: 24px; }
    .page-head .lead { font-size: 13px; }
    .section-title { font-size: 18px !important; }
    .front-header { padding: 12px 16px !important; }
    /* タップ領域確保 (基本 40px) */
    .btn { min-height: 40px; padding: 10px 18px !important; }
    .btn-lg { min-height: 48px; padding: 14px 24px !important; font-size: 14px !important; }
}

/* 中間〜小さい画面 (~600px) */
@media (max-width: 600px) {
    .page { padding: 20px 14px 64px; }
    .page-head h1 { font-size: 22px; }
    .detail-hero { padding: 18px 16px !important; }
    .filter-bar { padding-bottom: 8px; margin-bottom: 18px; }
    .filter-chip { padding: 7px 12px; font-size: 12px; }
    .plan-grid { grid-template-columns: 1fr; gap: 16px; }
    main > .section,
    main > section.hero + .section { padding: 32px 14px !important; }
    /* カードホバーの過剰な浮き上がりを抑制 (タッチデバイスでは効かないが念のため) */
    .card:hover { transform: none; box-shadow: var(--shadow) !important; }
}

/* スマホ (~480px) — LP のスマホ最終調整 */
@media (max-width: 480px) {
    /* LP */
    .lp-section { padding: 56px 16px; }
    .lp-section-inner { padding: 0; }
    .lp-hero { min-height: 540px; padding: 0; }
    .lp-hero-inner { padding: 56px 16px; }
    .lp-hero-tag { font-size: 12px; padding: 6px 16px; margin-bottom: 24px; letter-spacing: 0.15em; }
    .lp-hero h1 { font-size: 26px !important; line-height: 1.4; }
    .lp-hero-lead { font-size: 14px; }
    .lp-hero-cta { flex-direction: column; gap: 12px; align-items: stretch; }
    .lp-hero-cta .lp-btn { width: 100%; justify-content: center; }
    .lp-hero-meta { font-size: 11px; margin-top: 18px; }
    .lp-section-title { font-size: 22px !important; line-height: 1.5; }
    .lp-section-lead { font-size: 14px; }
    .lp-eyebrow { font-size: 11px; letter-spacing: 0.16em; }
    .lp-future-card { padding: 28px 20px; }
    .lp-future-title { font-size: 17px; }
    .lp-future-text { font-size: 13px; }
    .lp-feature-title { font-size: 19px; }
    .lp-feature-text { font-size: 13px; }
    .lp-pricing { padding: 32px 20px; }
    .lp-pricing-name { font-size: 18px; }
    .lp-pricing-price { font-size: 42px; }
    .lp-pricing-list li { font-size: 13px; }
    .lp-voice-card { padding: 28px 22px; }
    .lp-voice-quote { font-size: 15px; padding-right: 0; }
    .lp-voice-body { font-size: 13px; }
    .lp-voice-author { gap: 10px; }
    .lp-voice-avatar { width: 42px; height: 42px; }
    .lp-voice-meta { font-size: 11px; }
    .lp-faq summary { font-size: 14px; padding: 14px 0; }
    .lp-faq-body { font-size: 13px; }
    .lp-final { padding: 56px 16px; }
    .lp-final h2 { font-size: 22px; line-height: 1.5; }
    .lp-final-lead { font-size: 13px; }
    .lp-phone { width: 210px; }
    .lp-phone-wrap::before { width: 240px; height: 240px; }
    /* lp-preview-row は横スクロールに */
    .lp-preview-row { grid-auto-flow: column; grid-auto-columns: 75%; overflow-x: auto; gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .lp-preview-row::-webkit-scrollbar { display: none; }
    /* タップ領域 44px (モバイル推奨) */
    .lp-btn { min-height: 44px; }
    .btn { min-height: 44px; }
    .btn-lg { min-height: 48px; }
    /* 会員側の細かい要素 */
    .legal-doc { padding: 22px 16px; }
    .breadcrumb { font-size: 12px; }
    .breadcrumb .current { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .page { padding: 16px 12px 80px; }
    .page-head h1 { font-size: 20px; }
    .page-head .lead { font-size: 12px; }
    .detail-hero h1 { font-size: 19px; }
}

/* ミニフォン (~380px) — iPhone SE 系 */
@media (max-width: 380px) {
    .page { padding: 14px 10px 80px; }
    .page-head h1 { font-size: 18px; }
    .lp-section { padding: 48px 14px; }
    .lp-hero-inner { padding: 48px 14px; }
    .lp-hero h1 { font-size: 23px !important; }
    .lp-section-title { font-size: 20px !important; }
    .lp-pricing-price { font-size: 36px; }
    .lp-final h2 { font-size: 20px; }
    .lp-phone { width: 190px; }
    .front-header { padding: 10px 12px !important; }
    .front-header .header-cta-btn { padding: 7px 12px !important; font-size: 11px !important; }
}

