/*
  販売サイトの共通スタイル（設計: handoff/elearning-design.md）
  濃紺と金のエグゼクティブ調。金は細い罫線・小さな印・数字・ボタンの縁だけに使い、広い面には使わない。
  .dark の中（ヘッダー・ヒーロー・会員の帯など）は変数を濃紺用に置き換える。
  代理店ごとの違いは designs/<key>/theme.css で :root の変数を上書きする。
  画像は theme.css が --img-* を渡したときだけ出る（--art: block で .cover を表示。無ければ無地の濃紺）。
*/
:root {
  --tabbar-h: 0px;
  --navy: #213153;
  --navy-deep: #141d33;
  --gold: #c9a55c;
  --gold-light: #e6cf97;
  --gold-ink: #7d5f27;
  --ink: #1a2033;
  --muted: #565e70;
  --paper: #faf8f3;
  --paper-deep: #f2eee4;
  --surface: #ffffff;
  --rule: #e0d9ca;
  --line: #948c7c;
  --route: #213153;
  --route-ink: #e6cf97;
  --route-soft: #ebeef4;
  --signal: #9a4d00;
  --signal-soft: #fbf1e6;
  --alert: #b42318;
  --alert-soft: #fdf0ef;
  --focus: #213153;
  --link: #213153;
  --btn-bg: var(--route);
  --btn-fg: var(--route-ink);
  --btn-line: var(--route);
  --btn-hover-bg: var(--navy-deep);
  --btn-hover-fg: var(--gold-light);
  --btn-hover-line: var(--gold);
  --quiet-fg: var(--ink);
  --quiet-line: var(--line);
  --r-control: 2px;
  --r-panel: 4px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --sans: "Avenir Next", "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* 濃紺の面: 文字・罫線・ボタンの色をまとめて置き換える */
.dark, .bundle {
  --ink: #f4f0e6;
  --muted: #b9bfcc;
  --paper: var(--navy-deep);
  --surface: var(--navy);
  --rule: rgba(230, 207, 151, .24);
  --line: rgba(244, 240, 230, .55);
  --link: var(--gold-light);
  --focus: var(--gold);
  --route-soft: rgba(230, 207, 151, .12);
  --btn-bg: transparent;
  --btn-fg: var(--gold-light);
  --btn-line: var(--gold);
  --btn-hover-bg: var(--gold);
  --btn-hover-fg: var(--navy-deep);
  --btn-hover-line: var(--gold);
  --quiet-fg: #f4f0e6;
  --quiet-line: rgba(244, 240, 230, .45);
  --gold-ink: var(--gold-light);
  background-color: var(--navy-deep);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
:lang(ja) body, body:lang(ja) { line-height: 1.85; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; letter-spacing: 0; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-top: 2.5rem; }
h3 { font-size: 1.18rem; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { line-height: 1.4; }
p { margin: 0 0 .75rem; }
a { color: var(--link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.js-only { display: none; }
.js .js-only { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: #213153; padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); font-size: .93rem; }
.lead { font-size: 1.1rem; max-width: 38em; }
.mono { font-family: var(--mono); }
.break { overflow-wrap: anywhere; word-break: break-all; }
.num, .price { font-variant-numeric: tabular-nums lining-nums; }

/* 枠 */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow-col { max-width: 780px; }
.main { padding: 32px 0 88px; min-height: 60vh; }
.main:has(> .hero), .main:has(> .members-band) { padding-top: 0; }
.main:has(> .hero) { padding-bottom: 0; }
.page-head { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 1px; background: var(--gold); }
.section-lead { color: var(--muted); max-width: 42em; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }

/* 画像（designs/<key>/theme.css の --img-* と --art があるときだけ） */
.cover { display: var(--art, none); position: relative; aspect-ratio: 3 / 2; background: var(--navy) center / cover no-repeat; border-radius: var(--r-panel); overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 51, .22); box-shadow: inset 0 0 0 1px rgba(230, 207, 151, .35); border-radius: inherit; }
.cover-1 { background-image: var(--img-build, none); }
.cover-2 { background-image: var(--img-marketing, none); }
.cover-3 { background-image: var(--img-monetize, none); }
.cover-4 { background-image: var(--img-operate, none); }
.cover-instant { background-image: var(--img-instant, none); margin-top: 1.5rem; }
.cover-foundation { background-image: var(--img-foundation, none); }

/* ヘッダー・フッター */
.top { border-bottom: 1px solid rgba(201, 165, 92, .55); }
.top-in { max-width: 1160px; margin: 0 auto; padding: .85rem 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.25rem; }
.brand { color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: .04em; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; }
.brand::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.1rem; font-size: .93rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-light); }
.nav a:hover { color: var(--gold-light); }
.nav .nav-cta { color: var(--gold-light); padding: .35rem .95rem; border: 1px solid var(--gold); border-radius: var(--r-control); }
.nav .nav-cta:hover { background: var(--gold); color: var(--navy-deep); }
.nav .lang { color: var(--muted); }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: .35rem 0; font: inherit; color: var(--ink); cursor: pointer; }
.linklike:hover { color: var(--gold-light); }
.foot { margin-top: auto; border-top: 1px solid rgba(201, 165, 92, .55); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 40px 16px 48px; }
.foot-brand { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--gold-light); text-decoration: underline; }

/* ボタン */
.button, .button-quiet, .button-danger { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.4rem; border-radius: var(--r-control); font: inherit; font-weight: 600; letter-spacing: .03em; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.35; transition: background-color .15s, color .15s, border-color .15s; }
.button { background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-line); }
.button:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-hover-line); }
.button-quiet { background: transparent; color: var(--quiet-fg); border: 1px solid var(--quiet-line); }
.button-quiet:hover { border-color: var(--gold); }
.button-danger { background: var(--surface); color: var(--alert); border: 1px solid var(--alert); }
.side-submit { display: none; }
.button-wide { width: 100%; }
.button-small { min-height: 36px; padding: .35rem .95rem; font-size: .88rem; }
.button:disabled { opacity: .55; cursor: progress; }
.small { min-height: 36px; padding: .3rem .8rem; font-size: .88rem; font-weight: 500; letter-spacing: .01em; }
.link-small { font-size: .9rem; }
.list-after { margin-top: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* お知らせ */
.alert { border-left: 3px solid var(--alert); background: var(--alert-soft); color: #5a1610; padding: .75rem 1rem; border-radius: 0 var(--r-control) var(--r-control) 0; }
.alert.ok { border-left-color: var(--navy); background: #ebeef4; color: #1a2033; }
.alert-text { color: var(--alert); }
.notice { border-left: 3px solid var(--gold); background: var(--surface); padding: .75rem 1rem; border-radius: 0 var(--r-control) var(--r-control) 0; box-shadow: inset 0 0 0 1px var(--rule); }
.test-banner { border: 2px dashed var(--signal); color: var(--signal); padding: .6rem 1rem; font-weight: 700; border-radius: var(--r-control); }
.badge { display: inline-block; font-size: .8rem; line-height: 1.6; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--muted); background: transparent; text-decoration: none; white-space: nowrap; letter-spacing: .02em; }
.badge-ok { border-color: var(--navy); background: var(--navy); color: var(--gold-light); font-weight: 600; }

/* 面と行 */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 24px; margin: 0 0 1.5rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-ok { border-top: 3px solid var(--navy); }
.hmenu { position: relative; display: flex; align-items: center; height: 36px; }
.flag { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.flag-btn { width: 36px; height: 36px; border-radius: 50%; }
.lang-panel { min-width: 160px; }
.lang-panel a { display: flex !important; align-items: center; gap: .6rem; }
.lang-panel a[aria-current="true"] { font-weight: 700; }
.hmenu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.hmenu > summary::-webkit-details-marker { display: none; }
.bell { position: relative; width: 36px; height: 36px; color: var(--ink); border-radius: 50%; }
.bell:hover { color: var(--gold-light); }
.bell-badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #a51c30; color: #fff; font-size: .68rem; font-weight: 700; line-height: 17px; text-align: center; }
.avatar { flex: none; margin: 2px; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #5f6368; color: #fff; font-weight: 500; font-size: 1rem; font-family: Arial, Helvetica, sans-serif; }
.avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ホバー・選択時は外側に丸い枠（よくあるサービスのアイコンと同じ） */
.avatar, .bell, .flag-btn { transition: box-shadow .15s; }
.avatar:hover, .avatar:focus-visible, .user-menu[open] .avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.22); outline: none; }
.bell:hover, .bell:focus-visible, .bell-menu[open] .bell, .flag-btn:hover, .flag-btn:focus-visible, .lang-menu[open] .flag-btn { background: rgba(255,255,255,.12); box-shadow: 0 0 0 4px rgba(255,255,255,.12); outline: none; }
.hmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px; background: #fff; color: #1a2033; border: 1px solid #e0d9ca; border-radius: 8px; box-shadow: 0 10px 30px rgba(20,29,51,.18); padding: .4rem 0; text-align: left; }
.hmenu-panel a, .hmenu-item { display: block; width: 100%; padding: .55rem 1rem; color: #1a2033; text-decoration: none; border: 0; background: none; font: inherit; font-size: .93rem; text-align: left; cursor: pointer; }
.hmenu-panel a:hover, .hmenu-item:hover { background: #f2eee4; color: #1a2033; }
.hmenu-panel a[aria-current="page"] { color: #a51c30; border-bottom: 0; }
.hmenu-panel form { margin: 0; border-top: 1px solid #e0d9ca; margin-top: .3rem; padding-top: .3rem; }
.bell-panel { width: min(340px, calc(100vw - 32px)); padding: 0; }
.hmenu-head { margin: 0; padding: .7rem 1rem; font-weight: 700; font-size: .9rem; border-bottom: 1px solid #e0d9ca; }
.bell-list { list-style: none; margin: 0; padding: 0; }
.bell-list li { border-bottom: 1px solid #f0ebe0; }
.bell-list li a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 1rem; }
.bell-list li.is-unread a { box-shadow: inset 3px 0 0 #a51c30; }
.bell-title { font-size: .88rem; line-height: 1.5; }
.bell-list li.is-unread .bell-title { font-weight: 700; }
.bell-date { font-size: .75rem; color: #565e70; }
.bell-empty { margin: 0; padding: 1rem; font-size: .88rem; color: #565e70; }
.bell-all { text-align: center !important; font-size: .85rem !important; color: #213153 !important; border-top: 1px solid #e0d9ca; }
.notify-list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--rule); }
.notify-item { padding: 1rem .25rem; border-bottom: 1px solid var(--rule); }
.notify-item p { margin: 0 0 .35rem; }
.notify-item.is-unread { box-shadow: inset 3px 0 0 #a51c30; padding-left: .9rem; }
.notify-title { font-weight: 700; color: var(--ink); }
.notify-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.panel-warn { border-top: 3px solid var(--signal); }
.note-band { border-top: 1px solid var(--gold); padding: 1.25rem 0 0; margin: 2rem 0 1.5rem; max-width: 46em; }
.note-band h2 { margin-top: 0; font-size: 1.25rem; }
.rows, .lines, .ticks, .offer-list, .bundle-list, .outline, .route, .steps, .tracker, .warn-list, .next-steps { list-style: none; margin: 0; padding: 0; }
.rows { border-top: 1px solid var(--rule); }
.row { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.row p { margin: 0; }
.row h3 { margin: 0 0 .25rem; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.row-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.lines li { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.ticks li { position: relative; padding: .3rem 0 .3rem 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: .75rem; height: 1px; background: var(--gold); }
.next-steps { counter-reset: s; }
.next-steps li { counter-increment: s; position: relative; padding: .35rem 0 .35rem 2.25rem; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: .4rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); font-family: var(--serif); font-size: .85rem; display: grid; place-items: center; }
.kv { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: .45rem 1.25rem; margin: 0 0 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv-tight { margin: 0; font-size: .93rem; }
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .65rem .6rem .65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); border-bottom-color: var(--line); }
details.more > summary, .faq > summary { cursor: pointer; color: var(--link); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details.more { margin: .5rem 0; }

/* 道のり（Build → Marketing → Monetize → Operate）。スマホは縦、広い画面は横 */
.dot { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; box-shadow: 0 0 0 1px var(--gold) inset, 0 0 0 5px var(--paper); position: relative; z-index: 1; }
.dot-sm { width: 26px; height: 26px; font-size: .82rem; box-shadow: 0 0 0 1px var(--gold) inset; margin-right: .55rem; }
.stage { color: var(--gold-ink); font-weight: 600; font-size: .9rem; letter-spacing: .08em; margin: 0 0 .2rem; display: flex; align-items: center; }
.route { position: relative; }
.station { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; gap: 0 1.1rem; padding-bottom: 2rem; }
.station::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: -22px; width: 2px; background: var(--gold); }
.station:last-child::before { display: none; }
.station:last-child { padding-bottom: 0; }
.station h3 { font-size: 1.3rem; }
.station-body .cover { margin-bottom: 1rem; }
.station-text { display: flex; flex-direction: column; padding-top: .45rem; }
.station-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
a.station-name { text-decoration: none; }
a.station-name:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.route-status .station:not(.is-owned) .dot { background: var(--paper); color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset, 0 0 0 5px var(--paper); }
.route-status .station:not(.is-owned)::before, .route-status .station:has(+ .station:not(.is-owned))::before { background: var(--rule); }
.route-status .station.is-done .dot { background: var(--gold); color: var(--navy-deep); }
.hero-route { display: none; }

/* ゲストのトップ */
.hero { position: relative; background: var(--navy-deep) var(--img-hero, none) center / cover no-repeat; padding: 64px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 51, .74); }
.hero-in { position: relative; }
.hero-copy { max-width: 40em; }
.hero-copy::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 1.75rem; }
.hero-title { font-size: clamp(2.2rem, 6.4vw, 3.9rem); line-height: 1.1; letter-spacing: -.005em; max-width: 15em; margin-bottom: 1.25rem; font-weight: 500; }
:lang(ja) .hero-title { line-height: 1.35; letter-spacing: .02em; }
.hero-lead { font-size: 1.15rem; color: #d9dce4; max-width: 34em; }
.hero .actions { margin: 2rem 0 1rem; }
.hero .button { background: rgba(201, 165, 92, .14); }
.hero .button:hover { background: var(--gold); }
.band { padding: 64px 0; }
.band > .wrap > h2:first-child, .band h2 { margin-top: 0; }
.band h2::before { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin-bottom: 1.1rem; }
.band-alt { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band-dark .rows { border-top-color: var(--gold); }
.band-final { position: relative; background: var(--navy-deep) var(--img-hero, none) center 70% / cover no-repeat; }
.band-final::before { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 51, .84); }
.band-final .wrap { position: relative; }
.route-full { margin-top: 2.25rem; }
.split { display: grid; gap: 32px; }
.split-art { align-items: center; }
.steps { display: grid; gap: 26px; margin-top: 1.75rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.steps h3 { margin: 0 0 .25rem; }
.step-n { flex: none; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.faq { border-bottom: 1px solid var(--rule); }
.faq:first-of-type { border-top: 1px solid var(--rule); }
.faq > summary { color: var(--ink); padding: .75rem 0; font-family: var(--serif); font-size: 1.08rem; }
.faq p { color: var(--muted); }
.final h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
.final p { max-width: 40em; }

/* 講座を探す */
.track { margin-bottom: 3.5rem; }
.track-head { margin-bottom: 1.25rem; max-width: 46em; }
.track-head h2 { margin-top: 0; }
.offer-list { border-top: 1px solid var(--navy); }
.offer { display: grid; gap: 1.1rem; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.offer h3 { font-size: 1.35rem; }
.offer-main { display: grid; gap: 1rem; min-width: 0; }
.offer-text { min-width: 0; }
.cover-thumb { aspect-ratio: 16 / 7; }
.offer-buy { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.offer-buy p { margin: 0; }
.price { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; letter-spacing: .01em; }
.bundle-list { margin-top: 1.5rem; }
.bundle { display: grid; gap: 1rem; border: 1px solid var(--gold); border-radius: var(--r-panel); padding: 24px; margin-bottom: 1rem; background-color: var(--navy); box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 5px rgba(201, 165, 92, .35); }
.bundle h3 { font-size: 1.35rem; }
.bundle .price { color: var(--gold-light); }
.plan-name { overflow-wrap: anywhere; }
.saving { color: var(--gold-ink); font-weight: 600; }

/* 登録・ログイン */
.auth { display: grid; gap: 24px; }
.auth-panel { background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--gold); border-radius: var(--r-panel); padding: 28px 20px; }
.auth-sub { font-size: 1.1rem; margin: 1.75rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.auth-sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.auth-switch { margin-top: 1.25rem; }
.auth-aside { border-radius: var(--r-panel); padding: 28px 24px; background: var(--navy-deep) var(--img-foundation, none) center / cover no-repeat; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 51, .84); }
.auth-aside > * { position: relative; }
.auth-aside h2 { margin-top: 0; font-size: 1.25rem; }
.copy-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.copy-row input { flex: 1 1 12rem; min-width: 0; }

/* フォーム */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; font-weight: 600; }
.field small, .field .muted { font-weight: 400; }
.field-label { font-weight: 600; margin: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type="text"], input[type="email"], input[type="date"], select, textarea { width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--r-control); font: inherit; font-weight: 400; color: #1a2033; background: #fff; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); }
input[readonly] { background: var(--paper-deep); }
textarea.copy-src { resize: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 22px; display: grid; gap: 1rem; }
.step legend { float: left; width: 100%; padding: 0 0 .75rem; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.step legend + * { clear: both; }
.options { display: grid; gap: .6rem; }
.option, .choice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem; border: 1px solid var(--rule); border-radius: var(--r-control); cursor: pointer; font-weight: 400; background: var(--surface); }
.option:hover { border-color: var(--line); }
.option span { display: grid; gap: .15rem; }
.check small { display: block; }
.option:has(input:checked) { border-color: var(--navy); background: var(--paper); box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px var(--navy); }
.option.is-disabled { opacity: .6; cursor: not-allowed; }
.option input, .check input, .choice input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); flex: none; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; }
.checkout { display: grid; gap: 22px; }
.summary { border-radius: var(--r-panel); padding: 24px; align-self: start; background: var(--surface); border: 1px solid var(--rule); border-top: 2px solid var(--gold); }
.summary p { margin: 0 0 .5rem; }
/* 申し込みの右の欄: 見出しが長くても値（1年間・含まれます）は折り返さず右に出す */
.summary .kv { grid-template-columns: minmax(0, 1fr) auto; }
.summary .kv dd { text-align: right; white-space: nowrap; }
.summary-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--rule); padding-top: .9rem; margin-top: .5rem !important; }
.summary .price { color: var(--navy); font-weight: 700; }

/* 支払い（送る値は読み間違えないよう、白地に濃い文字のまま） */
.tracker { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin: 0 0 1.75rem; font-size: .92rem; }
.tracker li { display: flex; align-items: center; color: var(--muted); }
.tracker .dot-sm { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.tracker .is-done .dot-sm { background: var(--navy); color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold); }
.tracker .is-current { color: var(--ink); font-weight: 700; }
.tracker .is-current .dot-sm { background: var(--signal); color: #fff; box-shadow: none; }
.pay { border-top: 3px solid var(--navy); }
.deadline { color: var(--signal); background: var(--signal-soft); padding: .65rem .85rem; border-radius: var(--r-control); display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.countdown { font-size: 1.1rem; }
.pay-facts { margin: 1rem 0; }
.pay-row { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.pay-row dt { color: var(--muted); font-size: .9rem; }
.pay-row dd { margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pay-amount .big { font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.address { background: var(--paper); border: 1px solid var(--rule); padding: .55rem .65rem; border-radius: var(--r-control); font-size: .98rem; flex: 1 1 100%; color: var(--ink); }
.pay-qr { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0; }
.qr { width: 200px; height: 200px; image-rendering: pixelated; border: 1px solid var(--rule); background: #fff; }
.pay-qr .muted { flex: 1 1 14rem; }
.warn-list li { border-left: 2px solid var(--signal); padding: .25rem 0 .25rem .85rem; margin: .5rem 0; font-size: .93rem; }

/* マイ講座（会員の帯） */
.members-band { position: relative; background: radial-gradient(120% 140% at 85% -20%, rgba(201,165,92,.16), transparent 55%), linear-gradient(160deg, #1a2742 0%, var(--navy-deep) 70%); padding: 48px 0 44px; margin-bottom: 40px; border-bottom: 1px solid rgba(201, 165, 92, .55); }
.members-band::before { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 51, .78); }
.members-band .wrap { position: relative; }
.members-band h1 { margin-bottom: 1.5rem; }
.members-band h1::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 1.25rem; }
.resume { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 22px 24px; margin-bottom: 2rem; }
.members-band .resume { background: rgba(20, 29, 51, .72); margin-bottom: 0; max-width: 820px; }
.resume-text { flex: 1 1 18rem; }
.resume-text p { margin: 0; }
.resume-lesson { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.35; margin: .15rem 0 .25rem !important; }
.meter { display: flex; align-items: center; gap: .75rem; font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.meter span { white-space: nowrap; }
progress { appearance: none; -webkit-appearance: none; width: 100%; max-width: 260px; height: 4px; border: 0; border-radius: 0; background: var(--rule); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--rule); }
progress::-webkit-progress-value { background: var(--navy); }
progress::-moz-progress-bar { background: var(--navy); }
.dark progress::-webkit-progress-value { background: var(--gold); }
.dark progress::-moz-progress-bar { background: var(--gold); }
.dash-route { margin-bottom: 1.5rem; }
.dash-route h2 { margin-top: 0; }
.course-row { display: grid; gap: .5rem; }
.empty { border-style: dashed; border-color: var(--line); }

/* 講座・講義 */
.cover-wide { aspect-ratio: auto; height: 200px; margin-bottom: 1.5rem; }
.course-head { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.course-progress { display: grid; gap: .75rem; align-content: start; }
.outline { border-top: 1px solid var(--navy); }
.outline li { display: flex; align-items: center; gap: .6rem; padding: .8rem .35rem; border-bottom: 1px solid var(--rule); }
.outline .dot-sm { margin: 0; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.outline .is-done .dot-sm { background: var(--navy); color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold); }
.outline .is-current { background: var(--paper-deep); box-shadow: inset 2px 0 0 var(--gold); }
.outline .is-current .outline-name { font-weight: 700; color: var(--ink); }
.outline-name { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
a.outline-name:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.outline-meta { font-size: .85rem; text-align: right; white-space: nowrap; }
.outline-compact li { padding: .55rem .35rem; font-size: .93rem; }
.outline-thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 3px; background: var(--paper-deep); }
.outline-compact .outline-thumb { width: 72px; }
.is-locked .outline-thumb { opacity: .55; }
.player-layout { display: grid; gap: 28px; }
.player-main { min-width: 0; }
.player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b1020; border-radius: var(--r-panel); margin-bottom: 1.25rem; box-shadow: 0 0 0 1px rgba(201, 165, 92, .45); }
.player-empty { display: grid; place-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--rule); box-shadow: none; }
.player-side { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 20px; }
.player-side h2 { margin-top: 0; font-size: 1.1rem; }
.locked-panel { border-style: dashed; border-color: var(--line); }
.lesson-nav { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* アカウント */
.side-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .93rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.toc a { text-decoration: none; word-break: keep-all; }
.toc a:hover { text-decoration: underline; }
.side-main { min-width: 0; }
.side-main > section { margin-bottom: 2.5rem; }
.side-main > section > h2 { margin-top: 0; }

/* 紹介ダッシュボード */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background-color: var(--rule); border: 1px solid var(--gold); border-radius: var(--r-panel); overflow: hidden; margin: 0 0 .9rem; }
.stats > div { background: var(--navy); padding: 16px 18px; }
.stats dt { color: var(--muted); font-size: .86rem; }
.stats dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--gold-light); }
.dash-grid { display: grid; gap: 0 24px; margin-top: 1.75rem; }
.qr-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.qr-row .muted { flex: 1 1 10rem; }

/* 領収書・規約 */
.legal-block { margin-bottom: 1.5rem; }
.receipt-amount { font-size: 1.25rem; }

@media (min-width: 760px) {
  .wrap, .top-in, .foot-in { padding-left: 28px; padding-right: 28px; }
  .main { padding-top: 48px; }
  .band { padding: 96px 0; }
  .hero { padding: 104px 0 96px; }
  .members-band { padding: 64px 0 56px; margin-bottom: 48px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps-col { grid-template-columns: 1fr; }
  .offer { grid-template-columns: minmax(0, 1fr) 240px; gap: 2.5rem; }
  .offer-main { display: flex; gap: 1.5rem; align-items: flex-start; }
  .cover-thumb { flex: none; width: 200px; aspect-ratio: 3 / 2; }
  .bundle { grid-template-columns: minmax(0, 1fr) 240px; gap: 2.5rem; padding: 32px; }
  .tracker { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
  .auth { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .auth-panel { padding: 36px 32px; }
  .auth-aside { padding: 36px 32px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .course-row { grid-template-columns: 1fr 300px; align-items: center; }
  .course-head { grid-template-columns: 1fr 300px; align-items: end; }
  .cover-wide { height: 260px; }
  .panel { padding: 28px; }
}

@media (min-width: 1000px) {
  .hero { padding: 136px 0 128px; }
  .hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
  .hero-route { display: block; background: rgba(20, 29, 51, .78); border: 1px solid rgba(201, 165, 92, .5); border-radius: var(--r-panel); padding: 32px; }
  .hero-route .dot { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 0 5px rgba(20, 29, 51, 1); }
  .route-mini .station { padding-bottom: 1.5rem; }
  /* 横の道のり: 点を左にそろえ、線は点の中心を通る */
  .route-full, .route-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
  .route-full .station, .route-status .station { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .route-full .station::before, .route-status .station::before { display: block; left: 0; right: -32px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .route-full .station:first-child::before, .route-status .station:first-child::before { left: 22px; }
  .route-full .station:last-child::before, .route-status .station:last-child::before { right: auto; width: 22px; }
  .station-body, .route-status .station-text { margin-top: 1.1rem; }
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; }
  .checkout .summary { grid-column: 2; grid-row: 1; position: sticky; top: 20px; }
  /* 広い画面では申し込みボタンを右の合計の下に置く（下のボタンは隠す）。狭い画面は下だけ */
  .side-submit { display: flex; margin: 1.2rem 0 .9rem; }
  .summary .side-submit { background: #a51c30; color: #fff; border-color: #a51c30; }
  .summary .side-submit:hover { background: #861626; color: #fff; border-color: #861626; }
  .checkout .form-submit { display: none; }
  .checkout .checkout-form { grid-column: 1; grid-row: 1; }
  .player-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .player-side { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; }
  .side-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
  .toc { flex-direction: column; position: sticky; top: 20px; align-self: start; border-bottom: 0; border-left: 1px solid var(--gold); padding: 0 0 0 1.1rem; }
  .stats { grid-template-columns: repeat(6, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .top, .foot, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .dark { background: #fff !important; color: #000; }
}

/* 申し込み画面の利用規約・特商法・プライバシー。同意の前にその場で全文を読めるよう、枠の中でスクロールする */
/* 申込: 規約3つのボタンとダイアログ。JS が無い時は .js-only が隠れ、本文へのリンク＋チェック1つのまま */
.legal-js [data-legal-plain] { display: none; }
.legal-row { display: flex; align-items: center; gap: .75rem; min-height: 48px; }
.legal-chk { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--navy); }
.legal-chk:disabled { opacity: .5; }
.legal-link { padding: .5rem 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; text-align: left; }
.legal-dlg { width: min(46rem, 100vw); height: min(40rem, 90vh); max-width: 100vw; max-height: 100vh; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--surface); color: inherit; }
.legal-dlg[open] { display: flex; flex-direction: column; }
.legal-dlg::backdrop { background: rgba(10, 16, 30, .6); }
.legal-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem .75rem 1.25rem; border-bottom: 1px solid var(--rule); }
.legal-dlg-head h3 { margin: 0; font-size: 1.1rem; }
.legal-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.legal-dlg-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; font-size: .95rem; line-height: 1.8; }
.legal-dlg-body:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.legal-dlg-body h4 { margin: 1.2rem 0 .25rem; font-size: 1rem; }
.legal-dlg-body p, .legal-dlg-body dl { margin: 0 0 .6rem; }
.legal-dlg-foot { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; padding: .75rem 1.25rem; border-top: 1px solid var(--rule); }
.legal-dlg-foot p { margin: 0; flex: 1 1 12rem; }
.legal-dlg-foot .button { flex: 0 1 14rem; }
@media (max-width: 640px) { .legal-dlg { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; } .legal-dlg-foot .button { flex: 1 1 100%; } }
/* 申込: 同意のメールの手順 */
.dc-title { margin: 0; font-size: 1.1rem; }
.dc-msg { margin: 0; font-weight: 600; }
.delivery[data-state="verified"] .dc-msg { color: var(--gold-ink); }
.delivery { display: grid; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.delivery p, .delivery h3 { margin: 0; }
.dc-field { display: grid; gap: .3rem; margin-bottom: .6rem; }
.dc-label { font-weight: 600; font-size: .9rem; }
.dc-field textarea { width: 100%; }
.link-btn { padding: .5rem 0; border: 0; background: none; color: var(--link); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.account-contact { margin-top: 2rem; }
/* 契約書面の確認（クーリング・オフは赤枠・赤字） */
.doc-body { margin: 1rem 0; padding: 1rem 1.25rem; border: 1px solid var(--rule); background: #fff; color: #111; line-height: 1.7; }
.doc-body h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.doc-red { border: 2px solid #c00; color: #c00; padding: .5rem .9rem; margin: .9rem 0; font-size: 1rem; }
.doc-red p { margin: .25rem 0; }
.doc-done { padding: .75rem 1rem; border-left: 3px solid var(--signal); background: rgba(0,0,0,.03); }
.doc-confirm { margin: 1.5rem 0 2rem; }
.lock-note { margin: .25rem 0 0; }

/* マイラーニングのクラスの行の画像 */
.cover-row { flex: none; width: 128px; aspect-ratio: 16 / 10; border-radius: 6px; }
.course-row:has(.cover-row) { grid-template-columns: auto 1fr; align-items: center; column-gap: 1.25rem; padding: 14px 16px; border-radius: 8px; }
.course-row:has(.cover-row) > .meter { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .course-row:has(.cover-row) { grid-template-columns: auto 1fr 300px; }
  .course-row:has(.cover-row) > .meter { grid-column: auto; }
}
.course-row-text { min-width: 0; }
@media (max-width: 600px) { .cover-row { width: 88px; } }

/* ヘッダー: 固定。下にスクロールすると隠れ、上に戻すと出る */
.top { position: sticky; top: 0; z-index: 40; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s; }
.top.is-hidden { transform: translateY(-100%); }
.top.is-scrolled { box-shadow: 0 6px 18px rgba(8, 12, 24, .35); }

/* 動き（動きを減らす設定の人には出さない） */
@media (prefers-reduced-motion: no-preference) {
  .hmenu[open] > .hmenu-panel { animation: menu-in .18s cubic-bezier(.2,.7,.2,1); transform-origin: top right; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
  .bell-badge:not([hidden]) { animation: badge-pop .35s cubic-bezier(.3,1.6,.5,1); }
  @keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .button, .button-quiet, .button-danger { transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
  .button:hover, .button-quiet:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 29, 51, .18); }
  .row, .panel, .outline li, .resume { transition: box-shadow .2s, transform .2s, background-color .2s; }
  .course-row:hover, .panel:hover, .resume:hover { box-shadow: 0 10px 24px rgba(20, 29, 51, .10); }
  .cover { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .course-row:hover .cover-row, a:hover > .cover { transform: scale(1.03); }
  .main { animation: page-in .45s ease both; }
  @keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ===== 上の帯の検索・アカウントの中の言語 ===== */
.top-search { display: flex; align-items: center; flex: 1 1 10rem; min-width: 0; max-width: 520px; margin: 0; border: 1px solid var(--rule); border-radius: 20px; background: rgba(255, 255, 255, .08); }
.top-search input[type="search"] { flex: 1; min-width: 0; min-height: 36px; padding: .3rem .9rem; border: 0; border-radius: 20px 0 0 20px; background: transparent; color: var(--ink); font-size: .93rem; }
.top-search input::placeholder { color: var(--muted); }
.top-search-btn { flex: none; width: 40px; height: 36px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 0 20px 20px 0; cursor: pointer; }
.top-search-btn:hover { color: var(--gold-light); }
.nav:has(.top-search) { flex: 1 1 auto; justify-content: flex-end; flex-wrap: nowrap; gap: .5rem; }
.top-in:has(.top-search) { flex-wrap: nowrap; }
.hmenu-sub { border-top: 1px solid #e0d9ca; border-bottom: 0; color: #565e70; font-weight: 600; font-size: .8rem; padding: .55rem 1rem .2rem; margin-top: .3rem; }
.user-panel a .flag { width: 18px; height: 12px; margin-right: .5rem; vertical-align: -1px; }
@media (max-width: 600px) {
  .top-in:has(.top-search) { padding: .5rem 12px; gap: .5rem; }
  .top-in:has(.top-search) .brand { font-size: 1.02rem; max-width: 7.5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .top-in:has(.top-search) .brand::before { display: none; }
}

/* ===== 講義ページ（スマホは YouTube 型: 動画を上に固定 → 題名 → 概要の箱 → タブ） ===== */
.main:has(.lp) { padding-top: 0; }
.lp { max-width: 1320px; margin: 0 auto; padding: 0 16px; display: grid; gap: 0 32px; }
.lp-main { min-width: 0; }
.lp-video { position: sticky; top: 0; z-index: 30; margin: 0 -16px; background: #000; }
.lp-video .player { margin: 0; border-radius: 0; box-shadow: none; }
.lp-video .player-empty { min-height: 200px; display: grid; place-items: center; gap: .5rem; text-align: center; background: var(--navy-deep); color: #f4f0e6; border: 0; }
.lp-body { padding: 14px 0 0; display: grid; gap: 12px; }
.lp-title { font-size: clamp(1.15rem, 3.6vw, 1.55rem); margin: 0; }
.lp-about { background: var(--paper-deep); border-radius: 10px; padding: 10px 14px; }
.lp-about > summary { list-style: none; cursor: pointer; display: grid; gap: .25rem; }
.lp-about > summary::-webkit-details-marker { display: none; }
.lp-meta { font-size: .88rem; font-weight: 600; }
.lp-meta a { color: inherit; text-decoration: none; }
.lp-short { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .93rem; }
.lp-more, .lp-less { font-size: .88rem; font-weight: 600; color: var(--muted); }
.lp-less, .lp-about[open] .lp-more, .lp-about[open] .lp-short { display: none; }
.lp-about[open] .lp-less { display: inline; }
.lp-full { padding-top: .5rem; font-size: .95rem; }
.lp-full p:last-child { margin-bottom: 0; }
.lp-mat-h { font-weight: 600; margin: .5rem 0 0; }
.js .lp-tabs { display: flex; gap: 4px; padding: 4px; background: #e9e6df; border-radius: 12px; overflow-x: auto; }
.lp-tab { flex: 1 1 0; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1rem; border: 1px solid transparent; border-radius: 9px; background: transparent; font: inherit; font-size: .98rem; font-weight: 600; color: #4a5468; cursor: pointer; }
.lp-tab:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.lp-tab:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.lp-tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 1px 3px rgba(20,30,60,.25); }
.lp-tab::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.lp-tab[data-tab="ws"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
.lp-tab[data-tab="ai"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.lp-tab[data-tab="videos"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='15' height='14' rx='2'/%3E%3Cpath d='m22 8-5 4 5 4Z'/%3E%3C/svg%3E"); }
.lp-panel { min-width: 0; }
.lp-side { display: none; }
.lp-side-h { font-weight: 700; margin: 0 0 .5rem; }
body:has(.lp) .top.is-hidden { transform: none; }
@media (max-width: 999px) {
  body:has(.lp) .top { position: static; }
  .ws-step, .ws-finish { scroll-margin-top: calc(56.25vw + 8px); }
  .lp-tab-ai { display: none !important; }
}
@media (min-width: 1000px) {
  .lp { grid-template-columns: minmax(0, 1fr) 380px; padding: 24px 28px 0; }
  .main:has(.lp) { padding-top: 0; }
  .lp-video { position: static; margin: 0; background: none; }
  .lp-video .player { border-radius: 10px; }
  .lp-side { display: block; position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; }
  .lp-tab-videos, .lp-videos-tab { display: none !important; }
}

/* ほかの動画（YouTube の「次の動画」の列: 左にサムネイル・右下に長さ、右に題名） */
.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.vlist-a { display: flex; gap: 10px; align-items: flex-start; padding: 6px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.vlist-a:hover { background: var(--paper-deep); }
.vlist .is-current .vlist-a { background: var(--route-soft); }
.vlist .is-current .vlist-name { font-weight: 700; }
.vlist .is-locked .vlist-a { opacity: .55; pointer-events: none; }
.vlist-thumb { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--navy); }
.vlist-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vlist-dur { position: absolute; right: 4px; bottom: 4px; padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .72rem; line-height: 1.5; }
.vlist-text { min-width: 0; display: grid; gap: .15rem; }
.vlist-name { font-size: .92rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vlist-meta { font-size: .8rem; color: var(--muted); }
.vlist .is-done .vlist-meta { color: var(--gold-ink); }
@media (max-width: 420px) { .vlist-thumb { width: 136px; } }

/* ===== ワークシート（ステップ式） ===== */
.ws { display: grid; gap: 10px; padding-top: 4px; }
.ws-head { display: grid; gap: 6px; }
.ws-outcome { margin: 0; font-size: .95rem; }
.ws-outcome > span:first-child { color: var(--muted); }
.ws-meter { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.ws-meter progress { flex: 1; height: 6px; }
.ws-status { margin: 0; min-height: 1.4em; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ws-status .is-error { color: var(--alert); font-weight: 600; }
.ws-ai-off { margin: 0; }
.ws-form { margin: 0; }
.ws-step { border-top: 1px solid var(--rule); }
.ws-step:last-of-type { border-bottom: 1px solid var(--rule); }
.ws-step > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: .7rem; padding: .75rem 0; }
.ws-step > summary::-webkit-details-marker { display: none; }
.ws-n { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--rule); color: var(--muted); }
.ws-step.is-done .ws-n { background: var(--navy); color: var(--gold-light); }
.ws-step[open] .ws-n { background: #a51c30; color: #fff; }
.ws-step.is-skipped .ws-n { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ws-st { min-width: 0; display: grid; gap: .1rem; padding-top: .1rem; }
.ws-st b { font-size: .98rem; line-height: 1.45; }
.ws-step:not([open]):not(.is-done) .ws-st b { color: var(--muted); font-weight: 500; }
.ws-sum { font-size: .82rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-step[open] .ws-sum { display: none; }
.ws-in { display: grid; gap: 12px; padding: 0 0 1rem 2.45rem; }
.ws-why { margin: 0; font-size: .93rem; }
.ws-ref { margin: 0; padding: .5rem .75rem; border-left: 3px solid var(--navy); background: var(--paper-deep); font-size: .93rem; }
.ws-ref-label { display: block; font-size: .8rem; color: var(--muted); }
.ws-field { display: grid; gap: .3rem; font-weight: 400; }
.ws-label { font-size: .88rem; font-weight: 600; }
.ws-field textarea { min-height: 4.5em; field-sizing: content; max-height: 24em; resize: vertical; line-height: 1.6; }
.ws-row { margin: 0; padding: .75rem .9rem; border: 1px solid var(--rule); border-radius: 8px; display: grid; gap: 10px; }
.ws-row legend { padding: 0 .3rem; font-weight: 700; font-size: .93rem; }
.ws-eg { margin: 0; font-size: .86rem; color: var(--muted); }
.ws-eg-label { display: inline-block; margin-right: .3rem; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 3px; font-size: .75rem; }
.ws-prompt { display: grid; gap: 8px; }
.ws-prompt-text { margin: 0; padding: .7rem .9rem; border: 1px dashed var(--line); border-radius: 8px; background: var(--paper-deep); font: inherit; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 16em; overflow-y: auto; }
.ws-actions, .ws-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.ws-ai-msg { margin: 0; font-size: .88rem; }
.ws-ai-msg:empty { display: none; }
.ws-ai-msg.is-error { color: var(--alert); }
.ws-ai-note { margin: 0; font-size: .8rem; }
.ws-log { display: grid; gap: 10px; }
.ws-log-list { margin: 0; padding: 0 0 0 1rem; font-size: .88rem; display: grid; gap: .3rem; }
.ws-finish { padding: 1rem 1.1rem; border: 1px solid var(--gold); border-radius: 10px; background: var(--surface); }
.ws-finish h2 { margin-top: 0; font-size: 1.15rem; }
.ws-keep { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .4rem; font-size: .93rem; }
.ws-keep b { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.js .nojs-only { display: none; }
button[aria-busy="true"] { opacity: .65; cursor: progress; }
@media (min-width: 1000px) {
  .ws-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-row legend { grid-column: 1 / -1; }
}

/* ===== ワークブック・検索 ===== */
.wb-keep > div { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.wb-row { display: grid; gap: .5rem; align-items: center; }
.wb-sheet { margin: 0; font-weight: 600; }
@media (min-width: 760px) { .wb-row { grid-template-columns: 1fr 240px auto; } }
.wb-step h2 { font-size: 1.15rem; }
.sr-form { display: flex; gap: .5rem; margin-bottom: 1rem; }
.sr-form input { flex: 1; min-width: 0; }

/* ===== アシスタント（どの画面からでも。スマホは全画面、PC は右の板。講義の「AI に聞く」タブでは中に入る） ===== */
.as { position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); color: var(--ink); }
.as-head { display: flex; align-items: center; gap: .75rem; }
.as-head h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.as-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper-deep); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.as-intro { margin: 0; font-size: .85rem; }
.as-list { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.as-list li { max-width: 92%; padding: .55rem .8rem; border-radius: 12px; font-size: .93rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-list .as-me { align-self: flex-end; background: var(--navy); color: #f4f0e6; border-bottom-right-radius: 3px; }
.as-list .as-ai { align-self: flex-start; background: var(--paper-deep); border-bottom-left-radius: 3px; }
.as-list .as-from { display: block; font-size: .75rem; font-weight: 700; opacity: .75; margin-bottom: .15rem; }
.as-list .as-err { align-self: center; color: var(--alert); background: none; font-size: .85rem; }
.as-form { display: flex; gap: .5rem; align-items: flex-end; margin: 0; }
.as-form textarea { flex: 1; min-height: 46px; max-height: 10em; field-sizing: content; resize: none; }
.as-note { margin: 0; font-size: .78rem; }
.as.is-inline { position: static; inset: auto; padding: 8px 0 0; min-height: 420px; max-height: 70vh; background: none; }
.as.is-inline .as-close { display: none; }
@media (min-width: 1000px) {
  .as:not(.is-inline) { inset: 0 0 0 auto; width: 420px; border-left: 1px solid rgba(255, 255, 255, .16); box-shadow: -14px 0 36px rgba(0, 0, 0, .45); }
  /* PC の AI は重ねずに並べる: 開いている間、ページ本体の右を AI の幅だけ空け、動画・話の一覧は残りの幅に収める */
  html.as-open body { padding-right: 420px; }
}

@media print {
  .lp-video, .lp-side, .lp-tabs, .as, .ws-actions, .ws-nav, .no-print, .top-search { display: none !important; }
}
@media (max-width: 600px) {
  .lp-body { padding-bottom: 64px; }
}


.js .ws-nav, .js .ws-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ===== 講義画面の見た目（2026-10-14 オーナー「見にくい・メリハリがない」）
   主役は動画。箱と線を減らし、余白と文字の大きさで区切る。左端は題名・概要・タブ・ワークシートで1本にそろえる ===== */
.lp-body { gap: 14px; padding-top: 14px; }
.lp-title { font-size: clamp(1.2rem, 3.8vw, 1.6rem); font-weight: 700; line-height: 1.35; }
.lp-about { background: var(--paper-deep); border: 0; border-radius: 10px; padding: 10px 14px; box-shadow: none; }
.lp-meta { color: var(--ink); }
.lp-panel[data-panel="ws"], .lp-panel[data-panel="ai"] { background: none; border: 0; padding: 0; box-shadow: none; }
.ws { gap: 6px; }
.ws-outcome { font-size: .9rem; color: var(--muted); }
.ws-outcome b { color: var(--ink); font-weight: 600; }
.ws-note { margin: 0; font-size: .8rem; color: var(--muted); }
.ws-step, .ws-step:first-of-type, .ws-step:last-of-type { border: 0; border-top: 1px solid var(--rule); margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.ws-step[open] { background: var(--paper-deep); border-top-color: transparent; margin: 4px -12px; padding: 0 12px; border-radius: 8px; }
.ws-step[open] + .ws-step { border-top-color: transparent; }
.ws-step > summary { padding: .65rem 0; }
.ws-step:not([open]) > summary { opacity: 1; }
.ws-step:not([open]).is-done .ws-st b { font-weight: 500; color: var(--muted); }
.ws-step[open] .ws-n { background: var(--navy); color: #fff; }
.ws-step[open] .ws-st b { font-size: 1.02rem; color: var(--ink); font-weight: 700; }
.ws-in { padding: 0 0 1rem 0; gap: 10px; }
.ws-why { font-size: .9rem; color: var(--muted); }
.ws-label { color: var(--ink); font-size: .85rem; font-weight: 600; }
.ws-field input, .ws-field textarea, .ws-field select { background: var(--surface); }
.ws-field textarea { min-height: 3.2em; }
.ws-input { display: flex; align-items: center; gap: .5rem; }
.ws-input input { flex: 1; min-width: 0; }
.ws-input.is-short input { flex: 0 1 10em; text-align: right; font-variant-numeric: tabular-nums; }
.ws-unit { font-size: .9rem; color: var(--muted); }
.ws-input input.is-calc { background: var(--route-soft); }
.ws-eg { margin: 0; font-size: .82rem; color: var(--muted); }
.ws-eg-label { border: 0; padding: 0; margin-right: .25rem; font-weight: 600; font-size: .78rem; }
.ws-ref { background: none; border-left: 2px solid var(--gold); padding: .1rem 0 .1rem .7rem; }
.ws-row { border: 0; padding: 0; border-radius: 0; gap: 8px; }
.ws-row + .ws-row { padding-top: 10px; border-top: 1px dashed var(--rule); }
.ws-row legend { padding: 0; font-size: .85rem; color: var(--muted); }
.ws-prompt { gap: 6px; }
.ws-prompt-text { border: 0; background: var(--surface); border-radius: 6px; font-size: .86rem; color: var(--muted); max-height: 9em; }
.js .ws-actions { align-items: center; gap: .9rem; }
.js .ws-nav { align-items: center; gap: 1.2rem; padding-top: 4px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; font-size: .9rem; color: var(--link); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.button, .button-quiet, .button-danger { border-radius: 8px; }
.ws-finish { border: 0; background: var(--paper-deep); }
.vlist-a { padding: 4px; }
.vlist-name { font-size: .9rem; }
@media (min-width: 1000px) {
  .lp { grid-template-columns: minmax(0, 1fr) 360px; max-width: 1480px; gap: 0 28px; }
  .lp-video { background: none; padding: 0; border-radius: 0; }
  .lp-video .player { border-radius: 12px; }
  .lp-side { background: none; border: 0; padding: 0; }
  .lp-side .vlist-thumb { width: 168px; }
}
.lp-side .actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .75rem; }
.lp-side .actions a { font-size: .88rem; padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; min-height: 0; }

/* 目印の縦線をやめる（オーナー: 左の縦線は AI っぽい）。面の色・太字・枠で示す */
.alert, .alert.ok, .notice { border-left: 0; border-radius: var(--r-control); }
.notice { box-shadow: inset 0 0 0 1px var(--rule); }
.bell-list li.is-unread a { box-shadow: none; background: #fbf3f4; font-weight: 600; }
.notify-item.is-unread { box-shadow: none; padding-left: inherit; background: #fbf3f4; }
.notify-item.is-unread b, .notify-item.is-unread strong { color: #a51c30; }
.option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--navy); }
.warn-list li { border-left: 0; padding-left: 0; }
.resume { border-left: 1px solid var(--rule); }
.outline .is-current { box-shadow: none; font-weight: 700; }
.doc-done { border-left: 0; border-radius: var(--r-control); }
.vlist .is-current .vlist-a { box-shadow: none; }
.vlist .is-current .vlist-a b, .vlist .is-current .vlist-a strong { font-weight: 800; }
.ws-ref { border-left: 0; padding: .5rem .75rem; background: var(--paper-deep); border-radius: 8px; }
.ws-step[open] { border-left: 0; margin: 6px -10px; padding: 0 10px; background: #f1f4f9; box-shadow: none; border-radius: 12px; }
.ws-step[open] .ws-n { background: var(--navy); color: #fff; }
.hmenu-usage { margin: 0; padding: .5rem 1rem; font-size: .85rem; color: #565e70; border-top: 1px solid #e0d9ca; }

/* ===== スマホの講義画面: YouTube のシート型（版12）
   ヘッダーは出さず、動画が一番上（左上に「←」）。下は角の丸い面で、スクロールすると動画の下にもぐる。
   概要・ワークシート・AI に聞くは、動画のすぐ下から上がるシート（JS がある時だけ。.lp.lp-sheets） ===== */
.lp-grab, .lp-back, .lp-metaline, .lp-cards, .lp-sheet-head, .lp-about-sheet, .lp-feed-h { display: none; }
@media (max-width: 999px) {
  body:has(.lp) .top { display: none; }
  .main:has(.lp) { padding: 0; }
  .lp { padding: 0; background: #000; }
  .lp-video { position: sticky; top: 0; z-index: 30; margin: 0; }
  .lp-back { display: grid; place-items: center; position: absolute; z-index: 2; left: 8px; top: calc(8px + env(safe-area-inset-top, 0px)); width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; }
  .lp-body { position: relative; z-index: 1; background: var(--paper); border-radius: 16px 16px 0 0; margin-top: -8px; padding: 16px 16px 72px; min-height: 60vh; transition: transform .2s; }
  .js .lp-tabs { display: none; }
  .js .lp-about { display: none; }
  .js .lp-metaline { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; padding: 0; border: 0; background: none; font: inherit; font-size: .85rem; color: var(--muted); text-align: left; cursor: pointer; }
  .lp-metaline b { color: var(--ink); font-weight: 600; }
  .js .lp-cards { display: grid; gap: 10px; }
  .lp-card { display: grid; gap: .2rem; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--paper-deep); font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
  .lp-card-h { font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: .5rem; }
  .lp-card-count { font-weight: 500; font-size: .82rem; color: var(--muted); }
  .lp-card-sub { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .js .lp-feed-h { display: block; font-size: 1rem; margin: 8px 0 4px; }
  /* シート */
  .lp-sheets .ws-step, .lp-sheets .ws-finish { scroll-margin-top: 64px; }
  .lp-sheets .as.is-inline { min-height: 0; max-height: none; padding-top: 0; }
}
/* 版12 補足: 下の面そのものがシート。動画の下端より上へは行かず、中身だけがスクロールする。動くのは下へ引いた時だけ */
.lp-pills { display: none; }
@media (max-width: 999px) {
  .lp-sheets .lp-body { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; top: var(--lp-vtop, 56.25vw); margin: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 16px 16px 0 0; padding-top: 22px; }
  .lp-grab { display: none; }
  .lp-sheets .lp-grab { display: flex; justify-content: center; align-items: center; position: fixed; z-index: 21; left: 0; right: 0; top: var(--lp-vtop, 56.25vw); height: 22px; touch-action: none; }
  .lp-grab span { width: 36px; height: 4px; border-radius: 2px; background: var(--rule); }
  .js .lp-pills { display: flex; gap: 8px; overflow-x: auto; position: sticky; top: -22px; z-index: 3; margin: 0 -16px; padding: 10px 16px; background: var(--paper); scrollbar-width: none; }
  .lp-pills::-webkit-scrollbar { display: none; }
  .lp-pill { flex: none; padding: .4rem .9rem; border: 0; border-radius: 8px; background: var(--paper-deep); font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink); cursor: pointer; }
  .lp-pill[aria-selected="true"] { background: var(--ink); color: var(--paper); }
}
@media (max-width: 999px) {
  /* 高さが決まったシートの中で、横にスクロールする行（タブ）が押しつぶされないように */
  .lp-sheets .lp-body { grid-auto-rows: max-content; align-content: start; }
  /* つまみの帯は不透明にし、タブはその下に貼りつく */
  .lp-sheets .lp-grab { background: var(--paper); border-radius: 16px 16px 0 0; }
  .js .lp-sheets .lp-pills { top: 0; }
  /* AI のシートでは、シートの見出しがあるので板の見出しは出さない */
  .lp-sheets .as.is-inline .as-head { display: none; }
}
/* スマホだけの部品（1行の概要・タブの丸ボタン・カード・つまみ・戻る）は PC では出さない（.js .js-only より強く） */
@media (min-width: 1000px) {
  .js .lp-metaline, .js .lp-pills, .js .lp-cards, .lp-grab, .lp-back, .lp-feed-h { display: none !important; }
}
/* 版13（iPhone で見た直し）: 一番上で下へ引いても画面が伸びない。シートが指について下がり、離すと全画面かバネで戻る。
   スマホのシート型ではページ自体は動かさない（フッターの紺の帯・右下の浮きボタンは出さない。AI はタブから） */
@media (max-width: 999px) {
  html:has(.lp-sheets), html:has(.lp-sheets) body { overflow: hidden; overscroll-behavior: none; height: 100%; }
  body:has(.lp-sheets) .foot { display: none; }
  .lp-sheets .lp-body { overscroll-behavior: none; padding-top: 22px; }
  .lp-sheets .lp-body.is-dragging, .lp-sheets .lp-grab.is-dragging { transition: none; }
  .lp-sheets .lp-body.is-settling, .lp-sheets .lp-grab.is-settling { transition: transform .22s cubic-bezier(.2,.8,.2,1); }
}
@media (max-width: 999px) {
  /* 引き下げた時、シートの上（角丸の外）は動画と同じ黒 */
  html:has(.lp-sheets), body:has(.lp-sheets), body:has(.lp-sheets) .main { background: #000; }
}
/* 版14: つまみは出さない。動画もシートと一緒に下がる */
@media (max-width: 999px) {
  .lp-sheets .lp-grab { display: none; }
  .lp-sheets .lp-body { padding-top: 14px; }
  .lp-sheets .lp-video.is-dragging { transition: none; }
  .lp-sheets .lp-video.is-settling { transition: transform .22s cubic-bezier(.2,.8,.2,1); }
  .js .lp-sheets .lp-pills { top: -14px; }
}
/* 版14 追加: シートに重み（戻りはゆっくり落ち着く）、全画面の逃げ道のボタン、?debug=1 の表示 */
.lp-fs { display: none; }
@media (max-width: 999px) {
  .lp-sheets .lp-body.is-settling, .lp-sheets .lp-video.is-settling { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .lp-fs:not([hidden]) { display: block; position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font: inherit; font-weight: 700; }
}
.lp-debug { position: fixed; z-index: 99; right: 4px; top: 4px; margin: 0; padding: 6px 8px; max-width: 70vw; background: rgba(0, 0, 0, .78); color: #7CFC9A; font: 11px/1.4 ui-monospace, Menlo, monospace; border-radius: 6px; pointer-events: none; white-space: pre-wrap; }

/* 版15: 下から上がるシートはやめ、動画の下の1枚のシートの中身をタブで切り替える。下の端は Safari の道具の帯に隠れないだけ空ける */
@media (max-width: 999px) {
  .lp-sheets .lp-about-sheet:not([hidden]) { display: block; }
  .lp-sheets .lp-panel { padding-top: 6px; }
  .lp-sheets .lp-body { padding-bottom: 28px; }
  .lp-sheets .as.is-inline { min-height: 0; max-height: none; padding-top: 0; }
  .lp-sheets .as.is-inline .as-head { display: none; }
}
/* 版15 追加: 動画は JS が少し遅れて追いつかせる（CSS の動きは付けない） */
/* will-change は引いている間だけ（付けたままだと iPhone 標準の再生ボタンが動画の絵からずれる） */
@media (max-width: 999px) { .lp-sheets .lp-video, .lp-sheets .lp-video.is-settling { transition: none; } .lp-sheets .lp-video.is-moving { will-change: transform; } }
/* 遅れて着地する動画がシートの角丸の上にかぶらないよう、シートを動画より手前に（止まっている時は重ならない） */
@media (max-width: 999px) { .lp-sheets .lp-body { z-index: 35; } }
/* 版16: 自前の全画面。動画の箱を画面いっぱいの黒い層にし、動画は今の位置から広がる（JS が位置と大きさを付ける） */
/* 版16: AI に聞く（見出しと × だけ、注意書きは小さな1行、答えの Markdown、キーボードのすぐ上の入力欄） */
.as-note { margin: 0; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-note .linklike { font-size: .74rem; }
.as-list .as-ai { white-space: normal; }
.as-md > :first-child { margin-top: 0; }
.as-md > :last-child { margin-bottom: 0; }
.as-md p { margin: 0 0 .5em; }
.as-md ul, .as-md ol { margin: 0 0 .5em; padding-left: 1.3em; }
.as-md li { margin: .15em 0; }
.as-md hr { border: 0; border-top: 1px solid var(--rule); margin: .6em 0; }
.as-md .as-h { font-weight: 700; }
.as-md code { font-family: var(--mono); font-size: .9em; background: rgba(0, 0, 0, .06); padding: 0 .25em; border-radius: 3px; }
.as-form textarea { max-height: 6.8em; overflow-y: auto; }
@media (max-width: 999px) {
  /* 全画面のチャット（講義以外の画面）: 見えている範囲いっぱい。キーボードが出たら入力欄がそのすぐ上 */

  /* 講義のシート: キーボードの分だけ下を詰める */
  .lp-sheets .lp-body { bottom: var(--tabbar-h); }
  html.kb-open .lp-sheets .lp-body { bottom: var(--kb, 0px); }
  .lp-sheets .as.is-inline { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
  .lp-sheets .as.is-inline .as-list { flex: 1; min-height: 0; overflow-y: auto; }
}
.as-md ul, .as-md ol { margin: .1em 0 .4em; }
.as-md li { margin: 0; line-height: 1.55; }
.as-md li::marker { color: var(--muted); }

/* ===== 版17: スマホのヘッダー・フッター（YouTube 型）。PC とゲストは今のまま ===== */
.msearch-open, .tabbar, .mmenu, .msearch { display: none; }
@media (max-width: 999px) {
  /* ヘッダー: ロゴと虫めがねだけ（下のフッターがある会員だけ。紹介者などは今のまま） */
  body:has(.tabbar) .top .top-search { display: none; }
  body:has(.tabbar) .top .bell-menu, body:has(.tabbar) .top .user-menu { display: none; }
  body:has(.tabbar) .msearch-open { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
  body:has(.tabbar) .top-in { flex-wrap: nowrap; }
  body:has(.tabbar) .top-in .brand { max-width: none; }
  /* 下のフッター */
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; box-sizing: border-box; height: var(--tabbar-h); padding: 0; background: var(--surface); border-top: 1px solid var(--rule); }
  html.is-app .tabbar { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .tabbar-item { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 64px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: .8rem; line-height: 1.2; color: var(--muted); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar-item[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .tabbar-ic { position: relative; display: grid; }
  .tabbar-badge { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #a51c30; color: #fff; font-size: .62rem; font-weight: 700; line-height: 16px; text-align: center; }
  .tabbar-avatar { width: 30px; height: 30px; margin: 0; font-size: .9rem; display: grid; place-items: center; }
  /* Safari: 下のアドレス欄があるので、下の余白は付けない。アプリ（standalone）: safe-area ぶんの余白 */
  html:has(.tabbar) { --tabbar-h: 64px; }
  html.is-app:has(.tabbar) { --tabbar-h: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body:has(.tabbar) { padding-bottom: var(--tabbar-h); }
  html.is-app body:has(.tabbar):not(.is-shop) .foot { display: none; }
  /* マイページのメニュー（フッターの上に出る） */
  .mmenu:not([hidden]) { display: flex; align-items: center; justify-content: center; position: fixed; z-index: 55; inset: 0; padding: 16px; background: rgba(4, 8, 20, .85); }
  .mmenu-panel { position: relative; width: min(100%, 360px); max-height: calc(100% - 32px); overflow-y: auto; background: #fff; color: #1a2033; border-radius: 22px; padding: 2.8rem 0 .5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
  .mmenu-x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #565e70; cursor: pointer; display: grid; place-items: center; }
  .mmenu-panel a, .mmenu-panel .hmenu-item { display: block; width: 100%; padding: .7rem 1.1rem; color: #1a2033; text-decoration: none; border: 0; background: none; font: inherit; text-align: left; }
  .mmenu-panel a[aria-current] { font-weight: 700; }
  .mmenu-panel form { margin: .3rem 0 0; border-top: 1px solid #e0d9ca; padding-top: .3rem; }
  /* 検索の画面 */
  .msearch:not([hidden]) { display: block; position: fixed; z-index: 70; inset: 0; background: var(--paper); padding-top: env(safe-area-inset-top, 0px); overflow-y: auto; }
  .msearch-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; margin: 0; }
  .msearch-back { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
  .msearch-bar input { flex: 1; min-width: 0; min-height: 40px; border: 0; border-radius: 20px; padding: .4rem 1rem; background: var(--paper-deep); color: var(--ink); font-size: 1rem; }
  .msearch-h { margin: 8px 16px 4px; font-size: .82rem; color: var(--muted); }
  .msearch-recent { list-style: none; margin: 0; padding: 0; }
  .msearch-recent li { display: flex; align-items: center; }
  .msearch-recent a { flex: 1; min-width: 0; padding: .8rem 16px; color: var(--ink); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .msearch-del { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
  /* 講義の画面: 下のタブは出す（ヘッダーは版18の固定） */
  body:has(.lp) { padding-bottom: 0; }
}

/* ===== 版18: 講義の画面にもスマホの新しいヘッダー（ロゴと虫めがね）。動画はそのすぐ下、その下がシート。全画面はヘッダーごと覆う ===== */
.hsearch { display: none; }
@media (max-width: 999px) {
  body:has(.lp) .top { display: block; position: fixed; z-index: 40; top: 0; left: 0; right: 0; transform: none !important; }
  .lp-sheets { padding-top: var(--lp-hdr, 0px); }
  .lp-sheets .lp-video { top: var(--lp-hdr, 0px); }
  .lp-back { display: none !important; }

  /* 検索: ヘッダーの中で右から左へ伸びる（0.28 秒）。ロゴは左へ押し出されて消える */
  .top { position: sticky; }
  .hsearch:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
  /* 帯は消さない。ロゴと右のアイコンは薄くなりながら少し左へ、検索欄は右（虫めがねの所）から伸びる。同時に動く。閉じる時は逆 */
  .hsearch-bar { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 12px; background: transparent; pointer-events: auto; }
  .hsearch-back { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; opacity: 0; transform: translateX(14px); transition: opacity .2s, transform .28s cubic-bezier(.2,.8,.2,1); }
  .hsearch.is-open .hsearch-back { opacity: 1; transform: none; }
  .hsearch-bar input { flex: 1; min-width: 0; min-height: 38px; border: 1px solid var(--rule); border-radius: 20px; padding: .35rem 1rem; background: rgba(255, 255, 255, .08); color: var(--ink); font-size: 1rem; clip-path: inset(0 0 0 100% round 20px); opacity: 0; transition: clip-path .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  .hsearch.is-open .hsearch-bar input { clip-path: inset(0 0 0 0 round 20px); opacity: 1; }
  .hsearch-bar input::placeholder { color: var(--muted); }
  .top .brand, .top .nav > * { transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  html.msearch-on .top .brand, html.msearch-on .top .nav > * { transform: translateX(-14px); opacity: 0; pointer-events: none; }
  /* 最近の検索: 欄の下に落ちてくる一覧 */
  .hsearch-drop { position: absolute; left: 0; right: 0; top: 100%; max-height: 60vh; overflow-y: auto; background: #fff; color: #1a2033; box-shadow: 0 12px 24px rgba(8, 12, 24, .18); border-radius: 0 0 14px 14px; transform: translateY(-10px); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; pointer-events: auto; }
  .hsearch.is-open .hsearch-drop { transform: none; opacity: 1; }
  .hsearch-drop.is-empty { display: none; }
  .hsearch-drop .msearch-h { margin: 10px 16px 2px; font-size: .8rem; color: #565e70; }
  .hsearch-drop .msearch-recent { list-style: none; margin: 0; padding: 0 0 6px; }
  .hsearch-drop .msearch-recent li { display: flex; align-items: center; }
  .hsearch-drop .msearch-recent a { flex: 1; min-width: 0; padding: .7rem 16px; color: #1a2033; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hsearch-drop .msearch-del { flex: none; width: 44px; height: 44px; border: 0; background: none; color: #565e70; font-size: 1.2rem; cursor: pointer; }
  /* 検索を開いている間、後ろは押せない（薄く暗くする） */
  html.msearch-on body::after { content: ""; position: fixed; inset: 0; z-index: 30; background: rgba(8, 12, 24, .25); }
}
/* 全画面はヘッダーごと覆う（ヘッダーの下に置く指定より強く） */
/* 本文の表示時のふわっと出る動きが重なりの層を作り、ヘッダーより下に置かれるため、全画面の間はヘッダーを隠す */

/* PC の横のチャット: 画面の高さちょうど・中だけスクロール（入力欄が下にはみ出さない） */
.as-list { min-height: 0; overscroll-behavior: contain; }
@media (min-width: 1000px) {
  .as:not(.is-inline) { top: 0; bottom: auto; height: 100dvh; overscroll-behavior: contain; }
}

/* 「アプリとして使う」 */
.install { margin: -.4rem 0 1.4rem; }
.install .button-quiet { min-height: 40px; padding: .4rem 1.1rem; }
.install-steps { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; max-width: 34rem; }
.install-steps li { display: flex; gap: .7rem; align-items: flex-start; background: rgba(255,255,255,.08); border-radius: 12px; padding: .7rem .9rem; font-size: .95rem; line-height: 1.6; }
.install-steps svg { flex: none; margin-top: .1rem; color: var(--gold); }


/* ===== 版48: 会員画面のアプリ型。下のタブ（クラス｜AI｜お知らせ｜マイページ）・シートのクラス選び・下からせり上がる AI ===== */
/* チャット: 紺地・白文字。自分の吹き出しは金のふち、送るボタンは金 */
.as { background: var(--navy-deep); color: #fff; }
.as-head h2 { color: inherit; }
.as-close { background: rgba(255, 255, 255, .14); color: #fff; }
.as-list .as-me { background: transparent; color: #fff; border: 1px solid var(--gold); border-bottom-right-radius: 3px; }
.as-list .as-ai { background: rgba(255, 255, 255, .1); color: #fff; }
.as-list .as-err { color: #ffb9ad; }
.as-form textarea { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .3); font-size: 1rem; }
.as-form textarea::placeholder { color: rgba(255, 255, 255, .55); }
.as-form .button { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 700; min-height: 46px; }
.as-form .button:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); }
.as-note { color: rgba(255, 255, 255, .65); }
.as-note .linklike { color: var(--gold-light); }
.as-md code { background: rgba(255, 255, 255, .14); }
.as-md hr { border-top-color: rgba(255, 255, 255, .25); }
.as-md li::marker { color: rgba(255, 255, 255, .6); }

/* シートのクラス選び */
.cls-chips { list-style: none; margin: 0 0 10px; padding: 0 0 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cls-chips::-webkit-scrollbar { display: none; }
.cls-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .95rem; border-radius: 999px; background: var(--paper-deep); color: var(--ink); font-size: .92rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.cls-chip.is-current { background: var(--navy); color: #fff; }
.cls-chip.is-buy { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.cls-buy { padding: 0 .4rem; border-radius: 4px; background: var(--gold-light); color: var(--gold-ink); font-size: .72rem; }

/* ヘッダーの検索の隣に AI のボタン（きらめきのアイコン） */
.top-ai { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.top-ai:hover { color: var(--gold-light); }
/* PC のヘッダー: アプリのダウンロードは出さず、お問い合わせへの入口を置く（スマホは下のタブにある） */
.top-chat { display: none; }
@media (min-width: 1000px) {
  .top-chat { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--ink); text-decoration: none; }
  .top-chat:hover, .top-chat[aria-current="page"] { color: var(--gold-light); }
  .a2hs-btn { display: none !important; }
}

/* スマホ: AI は下のタブの上へせり上がる。動画が再生中は動画のすぐ下（--as-top）まで、止まっている間は一番上まで */
@media (max-width: 999px) {
  .as { z-index: 60; inset: var(--as-top, 0px) 0 0 0; height: auto; border-radius: 0; padding: 12px 16px 12px; transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
  .as:not(.is-under-video) { padding-top: calc(14px + env(safe-area-inset-top, 0px)); border-radius: 0; }
  .as.is-in { transform: none; }
  /* キーボードが出ている間: 見えている範囲（visualViewport）にぴったり合わせる。上の帯は見える範囲の一番上、入力欄は一番下（キーボードのすぐ上）、間の会話だけが縮む */
  html.kb-open .as, html.as-open.is-typing .as { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  html.as-open body:has(.lp-sheets) .lp-body { pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .as { transition: none; } }
.as-list .as-md li { max-width: none; padding: 0; border-radius: 0; background: none; white-space: normal; }

/* ===== 版49: AI チャットを Claude のアプリ風に。答えは文章、自分の発言は右の控えめな吹き出し、入力は丸い箱、スキルは下から出る一覧 ===== */
.as { --as-panel: #1d2a52; --as-line: rgba(255, 255, 255, .12); gap: 0; }
.as-head { gap: 6px; padding-bottom: 6px; }
.as-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.as-iconbtn { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; cursor: pointer; min-height: 0; }
.as-iconbtn:hover { background: rgba(255, 255, 255, .12); }
.as-close.as-iconbtn { background: rgba(255, 255, 255, .14); }
.as-menuwrap { position: relative; }
.as-menu { position: absolute; right: 0; top: 42px; z-index: 6; min-width: 11rem; padding: 6px; border-radius: 14px; background: var(--as-panel); border: 1px solid var(--as-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.as-menu[hidden] { display: none; }
.as-menu button { display: block; width: 100%; padding: .7rem .9rem; border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; min-height: 0; }
.as-menu button:hover { background: rgba(255, 255, 255, .1); }

/* 空の時: 見出しとスキルの候補 */
.as-empty { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 4px 18px; overflow-y: auto; }
.as:not(.is-empty) .as-empty, .as.is-empty .as-list { display: none; }
.as-empty h3 { margin: 0; text-align: center; font-size: 1.7rem; line-height: 1.35; font-weight: 600; color: #fff; }
.as-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.as-chip { width: 100%; height: 100%; padding: .8rem .9rem; border: 1px solid var(--as-line); border-radius: 18px; background: rgba(255, 255, 255, .06); color: #fff; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.as-chip:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .25); }
.as-chip strong { font-size: .98rem; font-weight: 700; }
.as-chip small { font-size: .76rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }

/* 会話 */
.as-list { gap: 18px; padding: 8px 2px 14px; }
.as-list li { max-width: 100%; }
.as-list .as-ai { align-self: stretch; background: none; padding: 0; border-radius: 0; font-size: 1rem; line-height: 1.9; color: #f4f1ea; }
.as-list .as-ai .as-md p { margin: 0 0 .85em; }
.as-list .as-ai .as-md ul, .as-list .as-ai .as-md ol { margin: 0 0 .85em; }
.as-list .as-ai .as-md li { line-height: 1.8; margin: .2em 0; }
.as-list .as-me { max-width: 82%; padding: .55rem .95rem; border-radius: 20px 20px 6px 20px; font-size: .95rem; line-height: 1.65; }
.as-list .as-from { color: var(--gold-light); opacity: 1; }
.as-list .as-err { align-self: stretch; text-align: left; padding: .7rem .9rem; border: 1px solid rgba(255, 185, 173, .45); border-radius: 14px; }
.as-dots { display: inline-flex; gap: 5px; align-items: center; height: 1.9em; }
.as-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); opacity: .35; animation: as-dot 1.1s infinite ease-in-out; }
.as-dots i:nth-child(2) { animation-delay: .18s; }
.as-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes as-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .as-dots i { animation: none; opacity: .7; } }

/* 入力の箱 */
.as-form { display: block; margin: 0; }
.as-box { padding: 12px 12px 10px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 26px; background: rgba(255, 255, 255, .07); }
.as-box { cursor: text; }
.as-go.is-dim { opacity: .4; }
.as-box:focus-within { border-color: rgba(255, 255, 255, .4); }
.as-form textarea, .as-form textarea:focus { display: block; width: 100%; min-height: 28px; max-height: 150px; field-sizing: fixed; padding: 2px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; color: #fff; font-size: 16px; line-height: 1.55; resize: none; }
.as-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.as-plus, .as-skillbtn { height: 36px; min-height: 0; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.as-plus { width: 36px; padding: 0; border-radius: 50%; }
.as-skillbtn { padding: 0 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; max-width: 55%; }
.as-skillbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-skillbtn.is-on { border-color: var(--gold); color: var(--gold-light); }
.as-plus:hover, .as-skillbtn:hover { background: rgba(255, 255, 255, .1); }
.as-go { margin-left: auto; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.as-go:hover { background: var(--gold-light); }
.as-go:disabled { opacity: .45; cursor: default; }
.as-note { margin: 8px 0 0; text-align: center; font-size: .72rem; white-space: normal; overflow: visible; }

/* スキルを選ぶ画面（＋も札も同じ） */
.as-sheet { position: absolute; inset: 0; z-index: 8; overflow: hidden; border-radius: inherit; }
.as-sheet[hidden] { display: none; }
.as-sheet-back { position: absolute; inset: 0; background: rgba(4, 8, 20, .6); opacity: 0; transition: opacity .2s; }
.as-sheet.is-in .as-sheet-back { opacity: 1; }
.as-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; background: #121c3a; transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.as-sheet.is-in .as-sheet-panel { transform: none; }
.as-grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 0 auto 8px; flex: none; }
.as-sheet-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; flex: none; }
.as-sheet-head .as-iconbtn { position: absolute; left: 0; top: 3px; background: rgba(255, 255, 255, .12); }
.as-sheet-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.as-skills { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; background: var(--as-panel); min-height: 0; }
.as-skills li + li { border-top: 1px solid var(--as-line); }
.as-skill { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; border: 0; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; min-height: 0; }
.as-skill:hover { background: rgba(255, 255, 255, .06); }
.as-skill-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.as-skill-t strong { font-size: 1.05rem; font-weight: 600; }
.as-skill-t small { font-size: .8rem; line-height: 1.45; color: rgba(255, 255, 255, .55); }
.as-check { flex: none; color: var(--gold); display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .as-sheet-back, .as-sheet-panel { transition: none; } }
.as-list { position: relative; }

/* ===== 版50: Safari（ウェブサイトの表示）とアイコンから開いた時（アプリの表示）。html.is-app は layout の head で付く ===== */
/* ヘッダーの「アプリ」ボタン（Safari だけ。押すと追加の手順）と、手順の中央モーダル */
.a2hs-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.a2hs-btn[hidden], html.is-app .a2hs-btn { display: none; }
.app-sheet .install-steps { margin: .4rem 1rem .8rem; max-width: none; }
.app-sheet .install-steps li { background: rgba(0, 0, 0, .05); color: #1a2033; }
.app-sheet .install-steps svg { color: var(--navy); }

/* スマホとアプリの表示: 中だけスクロールする所のバーは出さない（動きはそのまま）。PC は細くして残す */
@media (max-width: 999px) { * { scrollbar-width: none; } *::-webkit-scrollbar { display: none; } }
html.is-app * { scrollbar-width: none; }
html.is-app *::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .as-list, .as-skills, .as-empty, .lp-body { scrollbar-width: thin; } }
/* キーボードが出ている間は下のタブを隠す（入力欄がキーボードのすぐ上に来る） */
html.kb-open .tabbar, html.kb-open .mmenu, html.is-typing .tabbar, html.is-typing .mmenu { display: none !important; }
/* AI のチャットが開いている間は、キーボードに関係なく下のタブを出さない（閉じる × で戻る） */

/* 拡大: アプリの表示は2回タップでも拡大しない。入力欄は16px以上（押した時に勝手に拡大されない。Safari でも） */
html.is-app { touch-action: manipulation; }
@media (max-width: 999px) { input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; } }

/* 注意書きは、空の画面（候補の下）と「…」のメニューの中だけ */
.as-empty .as-note { white-space: normal; text-align: center; margin-top: -6px; }
.as-menu-note { margin: 4px 0 0; padding: .6rem .9rem .4rem; border-top: 1px solid var(--as-line); font-size: .76rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }

/* 言語: メニューは1行（左に「言語」、右に今の設定）。押すと下から選ぶ一覧が出る */
.lang-row { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.lang-cur { display: inline-flex; align-items: center; gap: .3rem; color: #565e70; }
.lang-sheet, .app-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lang-sheet[hidden], .app-sheet[hidden] { display: none; }
.lang-back, .app-sheet .lang-back { position: absolute; inset: 0; background: rgba(4, 8, 20, .85); opacity: 0; transition: opacity .2s; }
.lang-sheet.is-in .lang-back, .app-sheet.is-in .lang-back { opacity: 1; }
.lang-panel { position: relative; width: min(100%, 360px); padding: .6rem 0 .5rem; border-radius: 22px; background: #fff; color: #1a2033; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; transform: scale(.96); transition: opacity .2s, transform .2s; }
.lang-sheet.is-in .lang-panel, .app-sheet.is-in .lang-panel { opacity: 1; transform: none; }
.lang-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; }
.lang-head .as-iconbtn { position: absolute; left: 6px; top: 2px; background: transparent; color: #565e70; }
.lang-head .as-iconbtn:hover { background: rgba(0, 0, 0, .06); }
.lang-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #1a2033; }
.lang-list { list-style: none; margin: .3rem 0 0; padding: 0; border-top: 1px solid #e0d9ca; }
.lang-list li + li { border-top: 1px solid #e0d9ca; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; color: #1a2033; font-size: 1.02rem; text-decoration: none; }
.lang-opt:hover { background: rgba(0, 0, 0, .04); }
.lang-check { visibility: hidden; color: #b8892f; }
.lang-opt[aria-current] .lang-check { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .lang-back, .lang-panel { transition: none; } }

/* 自前の全画面の間は、下のタブも案内も出さない */

/* チャットを開いている間は、キーボードの後ろに見える下地もチャットと同じ紺にする */
/* スマホだけ（PC は AI の欄と並べるので、ページの背景は変えない） */
@media (max-width: 999px) { html.as-open, html.as-open body { background: var(--navy-deep); } }

/* スマホの AI: 左から横にすべって出る。閉じるのは左上の戻る（PC は右上の ×） */
.as-back { display: none; }
@media (max-width: 999px) {
  .as-back { display: inline-flex; margin-left: -6px; }
  .as-head .as-close { display: none; }
}

/* キーボードが出ている間は、入力欄の箱をキーボード上の帯のすぐ上に（下の余白を詰める） */
@media (max-width: 999px) { html.kb-open .as { padding-bottom: 5px; } }

/* ===== 版51: クラスを探す。クラスごとに1枚のカード（普通のネットショップの一覧）。スマホは1列、広い画面は2〜3列 ===== */
.page-head:has(+ .track) { margin-bottom: 1rem; padding-bottom: .8rem; }
.page-head:has(+ .track) .section-lead { margin: .3rem 0 0; font-size: .95rem; }
.track { margin-bottom: 2rem; }
.track-head { margin-bottom: .8rem; }
.track-head h2 { font-size: 1.05rem; }
.track-head .muted { margin: .15rem 0 0; font-size: .88rem; }
.offer-list { border-top: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.offer { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--rule); border-radius: 16px; background: #fff; color: #1a2033; overflow: hidden; box-shadow: 0 1px 3px rgba(20, 29, 51, .06); }
.offer-main { display: flex; flex-direction: column; align-items: stretch; gap: 0; flex: 1; }
.offer .cover-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.offer-text { padding: 14px 16px 4px; }
.offer .stage { margin: 0 0 .15rem; font-size: .8rem; color: var(--gold-ink); }
.offer h3 { margin: 0 0 .25rem; font-size: 1.3rem; line-height: 1.35; color: #1a2033; }
.offer .offer-text > .muted { margin: 0; font-size: .92rem; line-height: 1.55; color: #565e70; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer details.more { margin: .2rem 0 0; }
.offer details.more > summary { min-height: 40px; font-size: .88rem; color: var(--navy); }
.offer .ticks li { color: #1a2033; font-size: .92rem; }
.offer-buy { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding: 6px 16px 16px; margin-top: auto; }
.offer-buy .price { font-size: 1.4rem; }
.offer .offer-buy .price { color: #1a2033; }
.offer-buy .muted { font-size: .9rem; }
.offer .offer-buy .muted { color: #565e70; }
.offer-buy .button, .offer-buy .button-quiet { min-height: 44px; }
.offer-buy .actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
@media (min-width: 760px) {
  .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .offer { display: flex; }
  .offer-main { display: flex; gap: 0; align-items: stretch; }
  .offer .cover-thumb { width: 100%; }
  .bundle { grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; padding: 22px 24px; }
}
@media (min-width: 1000px) { .offer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bundle-list { margin-top: 12px; }
.bundle { padding: 18px; margin-bottom: 12px; border-radius: 16px; }

/* ===== 版52: クラスを探すの一番上のコレクション（持っているクラスの数と、全クラスのタイル） ===== */
.coll { margin: 0 0 1.6rem; padding: 16px 16px 14px; border-radius: 16px; background: #fff; color: #1a2033; border: 1px solid var(--rule); box-shadow: 0 1px 3px rgba(20, 29, 51, .06); }
.coll-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.coll-head h2 { margin: 0; font-size: 1.15rem; color: #1a2033; }
.coll-count { font-variant-numeric: tabular-nums; margin-left: .3rem; color: #8a6420; }
.coll-left { margin: 0; font-size: .88rem; color: #565e70; }
.coll-bar { display: block; width: 100%; height: 8px; margin: .6rem 0 .2rem; border: 0; border-radius: 4px; background: #ece6d8; overflow: hidden; -webkit-appearance: none; appearance: none; }
.coll-bar::-webkit-progress-bar { background: #ece6d8; border-radius: 4px; }
.coll-bar::-webkit-progress-value { background: linear-gradient(90deg, #c9a55c, #e6cf97); border-radius: 4px; }
.coll-bar::-moz-progress-bar { background: linear-gradient(90deg, #c9a55c, #e6cf97); border-radius: 4px; }
.coll-label { margin: .9rem 0 .4rem; font-size: .78rem; color: #565e70; }
.coll-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.coll-tile { display: grid; justify-items: center; gap: 5px; text-decoration: none; color: #1a2033; -webkit-tap-highlight-color: transparent; }
.coll-mark { display: grid; place-items: center; width: 100%; max-width: 58px; aspect-ratio: 1; border-radius: 15px; font-size: 1.25rem; }
.coll-name { max-width: 100%; font-size: .7rem; line-height: 1.3; text-align: center; color: #3b4357; overflow-wrap: anywhere; }
.coll-tile.is-owned .coll-mark { background: linear-gradient(160deg, #e6cf97, #c9a55c); color: #13234a; box-shadow: 0 3px 0 #a98838, 0 6px 12px rgba(169, 136, 56, .3); }
.coll-tile.is-done .coll-mark { background: linear-gradient(160deg, #f3e2ae, #d6b25f); color: #13234a; box-shadow: 0 3px 0 #a98838, 0 0 0 3px rgba(230, 207, 151, .55), 0 0 16px rgba(214, 178, 95, .65); }
.coll-tile.is-empty .coll-mark { border: 1.5px dashed #c9c1ae; color: #c9c1ae; background: transparent; }
.coll-tile.is-empty .coll-name { color: #7b8293; }
.offer.is-flash { animation: coll-flash 1.3s ease-out; }
@keyframes coll-flash { 0% { box-shadow: 0 0 0 4px rgba(201, 165, 92, .95); } 100% { box-shadow: 0 0 0 4px rgba(201, 165, 92, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .coll-tile.is-owned .coll-mark, .coll-tile.is-done .coll-mark { animation: coll-in .5s cubic-bezier(.2, .8, .2, 1) both; }
  .coll-tiles li:nth-child(2) .coll-mark { animation-delay: .06s; } .coll-tiles li:nth-child(3) .coll-mark { animation-delay: .12s; }
  .coll-tiles li:nth-child(4) .coll-mark { animation-delay: .18s; } .coll-tiles li:nth-child(5) .coll-mark { animation-delay: .24s; }
}
@keyframes coll-in { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .offer.is-flash { animation: none; box-shadow: 0 0 0 3px #c9a55c; } }
@media (min-width: 760px) { .coll { padding: 20px 24px 18px; } .coll-tiles { grid-template-columns: repeat(5, 76px); gap: 14px; } .coll-mark { max-width: 64px; } }

/* カードの「受講中」の並び: 札は値段の右、ボタンは下の段、更新は小さく */
.offer-buy .badge { order: 1; }
.offer-own { order: 2; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.offer-own .button { flex: 1; text-align: center; }
.offer-own .link-small { flex: none; font-size: .8rem; color: #565e70; }
.bundle .offer-own .link-small { color: var(--gold-light); }

/* アプリの表示で未ログイン: SNS のアプリのようなシンプルなログイン画面（紺の全画面） */
.appgate { display: none; }
html.is-app body.is-login .appgate { display: flex; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: env(safe-area-inset-top, 0px) 28px calc(20px + env(safe-area-inset-bottom, 0px)); background: radial-gradient(120% 80% at 50% 30%, #1d2f63 0%, #13234a 55%, #0c1630 100%); color: #fff; text-align: center; overflow-y: auto; }
html.is-app body.is-login .top, html.is-app body.is-login .foot, html.is-app body.is-login .tabbar, html.is-app body.is-login .wrap.auth { display: none; }
html.is-app body.is-home { visibility: hidden; }
.appgate-icon { width: 112px; height: 112px; border-radius: 25%; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.appgate-name { margin: 6px 0 0; font-size: 1.7rem; letter-spacing: .04em; color: #fff; }
.appgate-tag { margin: 0 0 18px; color: rgba(255, 255, 255, .72); font-size: 1rem; }
.appgate-err { margin: 0; padding: .6rem .9rem; border-radius: 12px; background: rgba(255, 185, 173, .14); color: #ffd1c9; font-size: .9rem; }
.appgate-go { display: flex; align-items: center; justify-content: center; gap: .6rem; width: min(100%, 340px); min-height: 54px; border-radius: 999px; background: #c9a55c; color: #13234a; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.appgate-go svg path { fill: #13234a; }
.appgate-first { color: rgba(255, 255, 255, .72); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.appgate-legal { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; display: flex; justify-content: center; gap: 1.2rem; font-size: .75rem; }
.appgate-legal a { color: rgba(255, 255, 255, .55); text-decoration: none; }

/* スマホの AI: 右から重なって入る。元の画面（動画・シート・ヘッダー・タブ）は動かさず、レイアウトも変えない。暗くするのは上に重ねた半透明の層（opacity だけ）。左端のスワイプは指に付いてくる（--as-p: 1 = 開き切り、0 = 閉じ切り） */
@media (max-width: 999px) {
  body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: var(--as-top, 0px); z-index: 59; background: #000; opacity: 0; pointer-events: none; transition: opacity .32s; }
  html.as-open body::after { opacity: .38; }
  html.as-dragging body::after { opacity: calc(var(--as-p, 1) * .38); transition: none; }
}
@media (prefers-reduced-motion: reduce) { body::after { transition: none; } .as { transition: none; } }

/* ===== 版53: クラスの一覧（ホーム）。全クラスをタイルで。持っていれば色つき＋星、持っていなければグレー ===== */
.chome-row { margin: 0 0 1.4rem; }
.chome-label { margin: 0 0 .6rem; font-size: .95rem; color: #565e70; }
.chome-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ctile { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: #fff; color: #1a2033; text-decoration: none; border: 1px solid var(--rule); box-shadow: 0 1px 3px rgba(20, 29, 51, .06); -webkit-tap-highlight-color: transparent; }
.ctile-art { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1d2f63, #13234a) center / cover no-repeat; }
.ctile-art.cover-1 { background-image: var(--img-build, none); } .ctile-art.cover-2 { background-image: var(--img-marketing, none); } .ctile-art.cover-3 { background-image: var(--img-monetize, none); } .ctile-art.cover-4 { background-image: var(--img-operate, none); } .ctile-art.cover-instant { background-image: var(--img-instant, none); } .ctile-art.cover-foundation { background-image: var(--img-foundation, none); }
.ctile-art::after { content: ""; position: absolute; inset: 0; background: rgba(20, 29, 51, .18); }
.ctile-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.ctile-name { font-weight: 700; font-size: .98rem; line-height: 1.35; }
.ctile-stars { display: flex; gap: 2px; }
.ctile-stars svg { fill: #e3dccb; }
.ctile-stars svg.on { fill: #c9a55c; }
.ctile-count { font-size: .8rem; color: #565e70; }
.ctile.is-locked { filter: grayscale(1); opacity: .62; }
.ctile.is-done { box-shadow: 0 0 0 2px rgba(201, 165, 92, .8), 0 0 18px rgba(214, 178, 95, .55); }
.ctile-badge { position: absolute; z-index: 1; top: 8px; right: 8px; padding: .15rem .55rem; border-radius: 999px; background: #e6cf97; color: #13234a; font-size: .72rem; font-weight: 700; }
@media (min-width: 760px) { .chome-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .chome-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* クラスの一覧 <-> 講義の画面: iPhone のアプリの「次の画面へ進む／戻る」（View Transitions） */
@view-transition { navigation: auto; }
@media (max-width: 999px) and (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; animation-duration: .36s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: both; }
  html:active-view-transition-type(forward)::view-transition-old(root) { animation-name: vt-out-left; }
  html:active-view-transition-type(forward)::view-transition-new(root) { animation-name: vt-in-right; z-index: 2; }
  html:active-view-transition-type(back)::view-transition-old(root) { animation-name: vt-out-right; z-index: 2; }
  html:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-in-left; }
}
@keyframes vt-out-left { to { transform: translateX(-28%); opacity: .6; } }
@keyframes vt-in-right { from { transform: translateX(100%); } }
@keyframes vt-out-right { to { transform: translateX(100%); } }
@keyframes vt-in-left { from { transform: translateX(-28%); opacity: .6; } }

/* クラスの一覧の上: 続きの講義をその場で見られるプレイヤー（ヘッダーのすぐ下、幅いっぱい）。講義名を押すと動画の画面へ */
.chome-player { background: #fff; border-bottom: 1px solid var(--rule); }
.chome-player video.player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.chome-now { display: flex; align-items: center; gap: .6rem; padding: 10px 16px; color: #1a2033; text-decoration: none; }
.chome-now-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.chome-now-k { font-size: .72rem; color: #8a6420; font-weight: 700; }
.chome-now-t { font-size: .92rem; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chome-now-c { font-size: .76rem; color: #565e70; }
.chome-bar { display: block; width: 100%; height: 3px; border: 0; background: #ece6d8; -webkit-appearance: none; appearance: none; }
.chome-bar::-webkit-progress-bar { background: #ece6d8; }
.chome-bar::-webkit-progress-value { background: #c9a55c; }
.chome-bar::-moz-progress-bar { background: #c9a55c; }
.chome-player + .wrap, .chome-player ~ .wrap { padding-top: 16px; }
@media (min-width: 1000px) { .chome-player { max-width: 960px; margin: 16px auto 0; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; } }
.main:has(> .chome-player) { padding-top: 0; }
.chome-player video.player { margin: 0; border-radius: 0; box-shadow: none; }
@media (min-width: 1000px) { .main:has(> .chome-player) { padding-top: 24px; } }

/* ===== 版54: ホーム。ヘッダーのメダル・続きのプレイヤー・クラスのピル・選んだクラスの講義の一覧。持っているほど金色に光る ===== */
.gold-0 { --g: 0; } .gold-1 { --g: .11; } .gold-2 { --g: .22; } .gold-3 { --g: .33; } .gold-4 { --g: .44; } .gold-5 { --g: .55; } .gold-6 { --g: .66; } .gold-7 { --g: .77; } .gold-8 { --g: .88; } .gold-9 { --g: 1; }
.hwrap { max-width: 760px; margin: 0 auto; background: radial-gradient(120% 40% at 50% 0, rgba(214, 178, 95, calc(var(--g, 0) * .2)), transparent 75%); }
.chome-player { box-shadow: 0 6px 22px -8px rgba(214, 178, 95, calc(var(--g, 0) * .8)); }
.hpills-wrap { position: relative; padding: 12px 0 8px; }
.hpills { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.hpills::-webkit-scrollbar { display: none; }
.hpills li { flex: none; scroll-snap-align: center; }
.hpill { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .95rem; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: #1a2033; font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hpill small { font-size: .68rem; font-weight: 600; color: #8a6420; }
.hpill-dots { display: inline-flex; gap: 2px; }
.hpill-dots b { width: 5px; height: 5px; border-radius: 50%; background: #e3dccb; }
.hpill-dots b.on { background: #c9a55c; }
.hpill.is-owned { border-color: #c9a55c; box-shadow: 0 0 calc(4px + var(--g, 0) * 10px) rgba(214, 178, 95, calc(.18 + var(--g, 0) * .32)); }
.hpill.is-done { background: linear-gradient(160deg, #fbf1d3, #f0dca4); }
.hpill.is-locked { background: transparent; color: #8b92a3; border-color: #e0d9ca; font-weight: 500; }
.hpill.is-selected { background: #13234a; border-color: #13234a; color: #fff; }
.hpill.is-selected small { color: #e6cf97; }
.hpill.is-selected .hpill-dots b { background: rgba(255, 255, 255, .3); } .hpill.is-selected .hpill-dots b.on { background: #e6cf97; }
.hsel { padding: 4px 16px 24px; }
.hlist.is-dim { opacity: .42; }
.hbuy { margin: 0 0 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--rule); display: grid; gap: 4px; justify-items: start; }
.hbuy[hidden] { display: none; }
.hbuy-name { margin: 0; font-weight: 700; font-size: 1.05rem; color: #1a2033; }
.hbuy-price { margin: 0 0 6px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #1a2033; }
/* ヘッダーのメダルのボタン */
.medal-btn { display: inline-flex; align-items: center; gap: .3rem; height: 36px; padding: 0 .65rem 0 .5rem; border: 1px solid rgba(201, 165, 92, calc(.35 + var(--g, 0) * .6)); border-radius: 999px; background: transparent; color: var(--gold-light, #e6cf97); font: inherit; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: 0 0 calc(var(--g, 0) * 14px) rgba(214, 178, 95, calc(var(--g, 0) * .7)); }
/* メダルのモーダル */
.medal-sheet .lang-panel { width: min(100%, 380px); max-height: calc(100% - 32px); display: flex; flex-direction: column; }
.medal-body { overflow-y: auto; padding: 0 18px 16px; }
.medal-body .coll-left { margin: .1rem 0 0; }
.medal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.medal { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: #1a2033; text-decoration: none; cursor: pointer; }
.medal-disc { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 1.3rem; font-weight: 700; }
.medal-name { font-size: .68rem; line-height: 1.3; color: #3b4357; text-align: center; overflow-wrap: anywhere; }
.medal:not(.is-empty) .medal-disc { background: radial-gradient(circle at 35% 30%, #f3e2ae, #c9a55c 70%); color: #13234a; box-shadow: 0 3px 0 #a98838, 0 6px 12px rgba(169, 136, 56, .3), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.medal.is-done .medal-disc { box-shadow: 0 3px 0 #a98838, 0 0 0 3px rgba(230, 207, 151, .6), 0 0 18px rgba(214, 178, 95, .7), inset 0 0 0 3px rgba(255, 255, 255, .4); }
.medal.is-empty .medal-disc { background: #f0ece0; color: #c9c1ae; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .12); }
.medal.is-empty .medal-name { color: #7b8293; }
@media (prefers-reduced-motion: no-preference) { .medal-sheet.is-in .medal:not(.is-empty) .medal-disc { animation: coll-in .45s cubic-bezier(.2, .8, .2, 1) both; } }
.medal-sheet .ctile-stars { gap: 1px; }

/* 動画の画面のシートのクラスのピル: 全クラス。持っていれば金のふち・ほんのり光る・星、持っていなければ薄い＋鍵。選んでいるのは紺 */
.cls-chip { gap: .4rem; border: 1.5px solid transparent; }
.cls-chip small { font-size: .68rem; font-weight: 600; color: #8a6420; }
.cls-chip.is-owned { background: #fff; border-color: #c9a55c; box-shadow: 0 0 calc(4px + var(--g, 0) * 10px) rgba(214, 178, 95, calc(.18 + var(--g, 0) * .32)); }
.cls-chip.is-done { background: linear-gradient(160deg, #fbf1d3, #f0dca4); }
.cls-chip.is-locked { background: transparent; color: #8b92a3; border-color: #e0d9ca; font-weight: 500; }
.cls-chip.is-current { background: #13234a; border-color: #13234a; color: #fff; }
.cls-chip.is-current small { color: #e6cf97; }
.cls-chip.is-current .hpill-dots b { background: rgba(255, 255, 255, .3); } .cls-chip.is-current .hpill-dots b.on { background: #e6cf97; }
.lp .hbuy { margin: 0 0 12px; }
.vlist.is-dim { opacity: .42; }
.lp { background: radial-gradient(120% 22% at 50% 0, rgba(214, 178, 95, calc(var(--g, 0) * .18)), transparent 80%); }

/* /learn（クラスの一覧）はスマホでは出さない（続きの講義の画面へ移る間も隠す） */
@media (max-width: 999px) { html.js main:is(:has(.chome-grid), :has(.chome-player)):not(:has(.panel-warn, .alert)) { visibility: hidden; } }

/* クラスを探す: 2列のカード（写真・名前・星/未受講・値段・ボタン） */
.offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.offer-text { padding: 10px 12px 2px; }
.offer h3 { font-size: 1.02rem; }
.class-sub { margin: 0 0 .3rem; font-size: .8rem; color: #5b6478; }
.offer .offer-text > .muted { font-size: .84rem; -webkit-line-clamp: 2; }
.offer-buy { flex-direction: column; align-items: stretch; padding: 6px 12px 12px; gap: .4rem; }
.offer-buy .price { font-size: 1.2rem; }
.offer-buy .button { width: 100%; text-align: center; padding-left: .5rem; padding-right: .5rem; }
.offer-own { flex-direction: column; align-items: stretch; gap: .3rem; }
.offer-own .link-small { text-align: center; }
@media (min-width: 760px) { .offer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.bundle-list { grid-column: 1 / -1; }

.lang-panel a.medal { display: grid !important; gap: 4px; }
.medal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; }
.medal-disc { width: 100%; max-width: 54px; height: auto; aspect-ratio: 1; }

/* クラスを探す: 上は細い帯だけ（詳しくはメダルのモーダル）。見出し・説明も小さく */
.page-head:has(+ .coll-band) { margin-bottom: .6rem; padding-bottom: 0; border-bottom: 0; }
.page-head:has(+ .coll-band)::after { display: none; }
.page-head:has(+ .coll-band) h1 { margin: 0; font-size: 1.35rem; }
.page-head:has(+ .coll-band) .section-lead { margin: .1rem 0 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main:has(.coll-band) { padding-top: 14px; }
.coll-band { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 56px; margin: 0 0 1rem; padding: 0 14px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; color: #1a2033; font: inherit; text-align: left; cursor: pointer; }
.coll-band-t { flex: none; font-size: .9rem; font-weight: 700; }
.coll-band-t b { margin-left: .2rem; color: #8a6420; font-variant-numeric: tabular-nums; }
.coll-dots { flex: 1; display: flex; justify-content: flex-end; gap: 5px; min-width: 0; }
.coll-dots i { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1.5px dashed #c9c1ae; }
.coll-dots i.is-owned { border: 0; background: radial-gradient(circle at 35% 30%, #f3e2ae, #c9a55c 75%); }
.coll-dots i.is-done { border: 0; background: radial-gradient(circle at 35% 30%, #f9edc4, #d6b25f 75%); box-shadow: 0 0 0 2px rgba(230, 207, 151, .6); }
.coll-band svg { flex: none; color: #8b92a3; }
@media (max-width: 380px) { .coll-dots i { width: 16px; height: 16px; } .coll-dots { gap: 4px; } }
.coll-band { gap: .5rem; padding: 0 12px; }
.coll-band-t { font-size: .85rem; white-space: nowrap; }
.coll-dots { flex: none; margin-left: auto; gap: 3px; }
.coll-dots i { width: 16px; height: 16px; }
.offer-buy .badge { align-self: flex-start; }
.main:has(.coll-band) .track-head .muted { display: none; }

.cls-chips { touch-action: pan-x; overscroll-behavior-x: contain; }

/* ===== 版84: 担当者とのチャット（/support）。LINE のような会話。AI チャットと同じ入力の箱・キーボード・ヘッダーの動き ===== */
.sp { --sp-line: rgba(255, 255, 255, .12); background: var(--navy-deep); color: #fff; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; padding: 12px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.sp-head { flex: none; padding: 2px 2px 8px; border-bottom: 1px solid var(--sp-line); }
.sp-name { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.sp-hint { margin: 2px 0 0; font-size: .82rem; line-height: 1.5; color: rgba(255, 255, 255, .68); }
.sp-list { list-style: none; margin: 0; padding: 8px 2px 12px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; }
.sp-list li { max-width: 82%; padding: .55rem .9rem; border-radius: 18px; font-size: .95rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp-list .sp-me { align-self: flex-end; border: 1px solid var(--gold); background: rgba(201, 165, 92, .12); color: #fff; border-bottom-right-radius: 5px; }
.sp-list .sp-staff { align-self: flex-start; background: rgba(255, 255, 255, .1); color: #f4f1ea; border-bottom-left-radius: 5px; }
.sp-list .sp-ai { align-self: flex-start; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .28); color: #f4f1ea; border-bottom-left-radius: 5px; }
.sp-who { display: block; margin-bottom: .15rem; font-size: .75rem; font-weight: 700; color: var(--gold-light); }
.sp-tag { display: block; margin-bottom: .2rem; font-size: .72rem; color: rgba(255, 255, 255, .6); }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: .35rem 0 .1rem; padding: 0 1.3rem; border-radius: 999px; background: var(--gold); color: var(--navy-deep); font-weight: 700; text-decoration: none; white-space: normal; }
.sp-btn:hover { background: var(--gold-light); }
.sp-link { color: var(--gold-light); }
.sp-empty { align-self: center; max-width: 100%; margin: auto; padding: 0; background: none; border: 0; color: rgba(255, 255, 255, .6); font-size: .9rem; text-align: center; }
.sp-status { flex: none; margin: 0; padding: .55rem .8rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; font-size: .88rem; text-align: center; color: #f4f1ea; }
.sp-status[hidden] { display: none; }
.sp-form { flex: none; }
body:has(.sp) .foot { display: none; }
@media (max-width: 999px) {
  .sp { position: fixed; z-index: 30; left: 0; right: 0; top: var(--sp-top, 68px); bottom: var(--tabbar-h); }
  body:has(.sp) { padding-bottom: 0; }
  /* キーボードが出ている間: 見えている範囲にぴったり合わせ、ヘッダーの上まで使う（入力欄はキーボードのすぐ上） */
  html.kb-open .sp, html.sp-open.is-typing .sp { z-index: 60; top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100%); padding-bottom: 5px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
}
.sp-askai { display: none; }
@media (min-width: 1000px) {
  .main:has(.sp) { padding-top: 24px; padding-bottom: 24px; }
  /* PC: 上と入力欄は紺、メッセージの面は白。画面の高さいっぱいにして、入力欄は常に下 */
  .sp { max-width: 820px; height: calc(100dvh - var(--sp-top, 68px) - 48px); min-height: 460px; margin: 0 auto; padding: 0; gap: 0; background: #fff; color: #1a2033; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
  .sp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: var(--navy-deep); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .sp-name { font-size: 1.2rem; }
  .sp-askai { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--gold); border-radius: 999px; background: none; color: var(--gold-light); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
  .sp-askai:hover { background: rgba(201, 165, 92, .14); }
  .sp-list { padding: 24px 28px; gap: 12px; background: #fff; }
  .sp-list li { max-width: 70%; }
  .sp-list .sp-me { background: var(--navy); border-color: var(--navy); color: #fff; }
  .sp-list .sp-staff { background: #eef1f6; color: #1a2033; }
  .sp-list .sp-ai { background: #fff; border: 1px dashed #b4bccb; color: #1a2033; }
  .sp-list .sp-who { color: #7d5f27; }
  .sp-list .sp-tag { color: #565e70; }
  .sp-list .sp-link { color: var(--navy); }
  .sp-list .sp-empty { color: #565e70; }
  .sp-status { margin: 0 24px 12px; border-color: #d8dde6; color: #1a2033; }
  .sp-form { padding: 14px 24px 18px; background: var(--navy-deep); }
}
html.sp-open, html.sp-open body { background: var(--navy-deep); }

/* キーボードが出て画面が縮んでいる間は、パネルの外（キーボードの後ろ）に暗い層を見せず、チャットと同じ紺にする */
@media (max-width: 999px) {
  html.as-open.kb-open body::after, html.as-open.is-typing body::after { background: var(--navy-deep); opacity: 1; transition: none; }
}
@media (max-width: 999px) { html.kb-open body:has(.sp) .top, html.sp-open.is-typing body:has(.sp) .top { visibility: hidden; } }

/* アプリの表示: ヘッダーは常に上に固定（スクロールで隠さない）。引っぱった時の跳ね返りでヘッダーがずれないようにする */
html.is-app body:not(:has(.lp)) .top { position: sticky; top: 0; }
html.is-app .top.is-hidden { transform: none; }
html.is-app:not(:has(.lp)), html.is-app:not(:has(.lp)) body { overscroll-behavior-y: none; }

/* ===== 版87: アカウント。小さな見出し、ご契約・お申し込み履歴は1件ずつのカード、最後に設定の一覧 ===== */
.acc { padding-bottom: 1.5rem; }
.acc-head { margin: 0 0 1.2rem; }
.acc-head h1 { margin: 0; font-size: 1.3rem; }
.acc-head p { margin: .2rem 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.acc-sec { margin: 0 0 1.6rem; }
.acc-h { margin: 0 0 .6rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.acc-card { margin: 0 0 .7rem; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; color: #1a2033; box-shadow: 0 1px 3px rgba(20, 29, 51, .06); }
.acc-card.acc-warn { border-color: var(--gold); }
.acc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.acc-name { margin: 0; font-size: 1.2rem; line-height: 1.4; color: #1a2033; }
.acc-card .muted { color: #565e70; margin: .2rem 0 .6rem; font-size: .9rem; }
.acc-tag { flex: none; padding: .15rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.acc-ok { background: #e3f1e6; color: #1d6b32; }
.acc-warn.acc-tag, .acc-tag.acc-warn { background: #fbefd0; color: #7d5f27; }
.acc-mute { background: #ececec; color: #565e70; }
.acc-meta { display: grid; gap: .3rem; margin: .7rem 0 0; font-size: .92rem; }
.acc-meta div { display: flex; justify-content: space-between; gap: 1rem; }
.acc-meta dt { color: #565e70; }
.acc-meta dd { margin: 0; text-align: right; font-weight: 600; }
.acc-receipt { margin-top: .8rem; width: 100%; text-align: center; box-sizing: border-box; color: #1a2033; }
.acc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: 16px; background: #fff; overflow: hidden; }
.acc-list li + li { border-top: 1px solid #e0d9ca; }
.acc-list form { margin: 0; }
.acc-list a, .acc-list button { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; min-height: 52px; padding: .7rem 16px; box-sizing: border-box; border: 0; border-radius: 0; background: none; color: #1a2033; font: inherit; font-size: 1rem; text-align: left; text-decoration: none; cursor: pointer; }
.acc-list a:hover, .acc-list button:hover { background: rgba(0, 0, 0, .04); }
.acc-list small { display: block; margin-top: .1rem; font-size: .78rem; color: #565e70; }
.acc-list svg { flex: none; color: #8b92a3; }
.acc .button { width: 100%; box-sizing: border-box; text-align: center; }

/* アプリの表示: リンク・ボタン・画像の長押しでプレビューやメニューを出さない（文章のコピーは残す） */
html.is-app a, html.is-app button, html.is-app img, html.is-app video { -webkit-touch-callout: none; }
html.is-app .top, html.is-app .tabbar, html.is-app a, html.is-app button { -webkit-user-select: none; user-select: none; }
/* 収入・成果を保証しない旨の1行（フッター・アプリ表示のアカウント画面）と、申し込み画面の返品特約 */
.foot-note { margin: .75rem 0 0; font-size: .75rem; opacity: .75; }
.app-only { display: none; }
html.is-app .app-only { display: block; padding: 0 16px 24px; color: var(--muted, #6b7280); }
.no-refund { margin: .75rem 0; padding: .6rem .8rem; background: var(--alert-soft); border-radius: var(--r-control); font-size: .9rem; }

/* 講義の一覧（スマホのシート）: サムネイルの下端に、どこまで見たかの棒（YouTube のような赤）。完了は満タン、まだ見ていない講義は出さない */
.vlist-bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .4); }
.vlist-bar.has { display: block; }
.vlist-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: #e53935; transition: width .6s linear; }
.is-done .vlist-bar i { width: 100%; }


/* 音なしで自動再生している間の「タップで音を出す」（YouTube と同じ形） */
.lp-unmute { position: absolute; left: 12px; top: 12px; z-index: 5; display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: 0 .9rem 0 .7rem; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.lp-unmute[hidden] { display: none; }

/* パートナー用のサブドメイン（partner.<代理店サイト>）: ホームの4つのボタン */
.is-partner .msearch-open, .is-partner .top-search, .is-partner .top-ai, .is-partner .nav-cta { display: none; }
.p-back { display: inline-block; margin-bottom: 6px; color: inherit; text-decoration: none; font-size: 15px; opacity: .75; }
.p-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 18px; }
.p-sum div { background: #13234a; color: #fff; border-radius: 12px; padding: 10px 8px; min-width: 0; }
.p-sum dt { font-size: 10.5px; line-height: 1.3; opacity: .75; }
.p-sum dd { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: #e6c46a; overflow-wrap: anywhere; }
.p-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(19,35,74,.12); color: #13234a; text-decoration: none; min-height: 132px; }
.p-tile:active { background: #f3f5fa; }
.p-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #13234a; color: #e6c46a; }
.p-label { font-weight: 700; font-size: 17px; }
.p-sub { font-size: 12.5px; opacity: .7; line-height: 1.4; }
.p-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.p-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid rgba(19,35,74,.12); color: inherit; text-decoration: none; }
.p-tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.p-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid rgba(19,35,74,.15); color: #13234a; text-decoration: none; font-weight: 600; font-size: 14px; }
.p-tabs a[aria-current="page"] { background: #13234a; color: #fff; border-color: #13234a; }
.p-table-wrap { overflow-x: auto; }
.p-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.p-table th, .p-table td { padding: 9px 8px; border-bottom: 1px solid rgba(19,35,74,.1); text-align: left; white-space: nowrap; }
.p-table .num { text-align: right; }
.p-table th button { all: unset; cursor: pointer; font-weight: 700; }
.p-table th button[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; }
.p-table th button[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.p-table tr.is-empty td { opacity: .45; }
.p-table tfoot th, .p-table tfoot td { font-weight: 700; border-top: 2px solid #13234a; border-bottom: 0; }
.p-month { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.p-month a { padding: 6px 14px; font-size: 22px; color: inherit; text-decoration: none; }

/* ===== トップ（初めての人向け、2026-10-15）: 授業の1場面 → ゴールまでの道 → 始め方 → よくある不安 ===== */
.main:has(> .hero2) { padding-top: 0; padding-bottom: 0; }
.hero2 { background: #fff; }
.hero2-media { position: relative; display: block; background: #fff; max-width: 960px; margin: 0 auto; }
.hero2-media img { display: block; width: 100%; height: auto; }
.hero2-tag { position: absolute; left: 12px; bottom: 12px; background: #f0b73f; color: #13234a; font-size: .8rem; font-weight: 800; border-radius: 999px; padding: .25rem .7rem; }
.hero2-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(19, 35, 74, .88); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.hero2-playnote { position: absolute; left: 50%; top: calc(50% + 44px); transform: translateX(-50%); background: rgba(19, 35, 74, .88); color: #fff; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .2rem .8rem; white-space: nowrap; }
.hero2-play i { width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.hero2-body { text-align: center; padding-top: 8px; padding-bottom: 32px; }
.hero2-title { font-size: clamp(1.7rem, 6.2vw, 2.6rem); line-height: 1.35; margin: .4rem 0 .6rem; color: #13234a; font-weight: 700; }
.hero2-lead { font-size: 1rem; line-height: 1.8; color: #3c4560; max-width: 34em; margin: 0 auto 1.4rem; }
.hero2-cta { display: block; max-width: 420px; margin: 0 auto; background: #f0b73f; color: #13234a; font-weight: 800; font-size: 1.1rem; text-decoration: none; border-radius: 14px; padding: 1rem; box-shadow: 0 4px 0 #c88f1e; }
.hero2-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #c88f1e; }
.hero2-free { margin: .7rem 0 0; font-size: .85rem; color: #5d6680; }
.hero2-free a { color: #13234a; font-weight: 700; }
.goal { background: #13234a; color: #fff; padding: 32px 0; }
.goal-h { font-size: 1.25rem; line-height: 1.55; margin: 0 0 18px; color: #fff; text-align: center; }
.goal-h span { display: block; font-size: .85rem; color: #e6c46a; letter-spacing: .08em; margin-bottom: 4px; }
.goal-path { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; max-width: 520px; }
.goal-path li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; font-weight: 600; position: relative; }
.goal-path li + li::before { content: ""; position: absolute; left: 27px; top: -9px; height: 10px; border-left: 2px dotted rgba(230, 196, 106, .7); }
.goal-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e6c46a; color: #13234a; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.goal-end { justify-content: center; background: transparent !important; border: 1px solid rgba(230, 196, 106, .6); color: #e6c46a; }
.goal-flag { background: #e6c46a !important; color: #13234a; }
.start3 { background: #f6f8fc; padding: 32px 0 40px; }
.start3 h2 { font-size: 1.2rem; margin: 0 0 14px; color: #13234a; }
.start3-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.start3-list li { display: flex; gap: 12px; align-items: flex-start; }
.start3-list b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #13234a; color: #fff; display: grid; place-items: center; }
.start3-list p { margin: 3px 0 0; font-weight: 700; color: #13234a; }
.start3-list span { display: block; font-weight: 400; color: #5d6680; font-size: .88rem; margin-top: 2px; }
.faq3 { margin: 0; display: grid; gap: 10px; }
.faq3 div { background: #fff; border: 1px solid #e4e8f0; border-radius: 12px; padding: 12px 14px; }
.faq3 dt { font-weight: 700; color: #13234a; }
.faq3 dd { margin: 4px 0 0; color: #3c4560; font-size: .92rem; line-height: 1.7; }
@media (min-width: 760px) { .start3-list { grid-template-columns: repeat(3, 1fr); } .faq3 { grid-template-columns: repeat(3, 1fr); } }

/* ===== 紹介ページを作る（チャットの選択肢・仕上げの画面） ===== */
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pm-chips .as-chip { display: inline-block; width: auto; padding: .45rem .8rem; }
.pm-go-chat { display: inline-block; margin-top: 10px; }
.pm-open { width: 100%; }
.pm .pm-step { margin: 0 0 28px; }
.pm h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 10px; }
.pm h2 span { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #13234a; color: #fff; display: grid; place-items: center; font-size: .85rem; }
.pm-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .pm-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pm-theme { position: relative; display: grid; gap: 4px; justify-items: center; padding: 8px 4px; border: 2px solid transparent; border-radius: 12px; background: var(--paper-deep, #f1efe9); font: inherit; font-size: .8rem; font-weight: 700; color: inherit; cursor: pointer; }
.pm-theme[aria-checked="true"] { border-color: #13234a; background: #fff; }
.pm-sw { width: 44px; height: 30px; border-radius: 8px; background: var(--tb); border: 1px solid rgba(0,0,0,.12); display: grid; place-items: center; }
.pm-sw i { width: 22px; height: 8px; border-radius: 4px; background: var(--ta); }
.pm-rec { position: absolute; top: -7px; right: -4px; background: #f0b73f; color: #13234a; font-size: .62rem; border-radius: 999px; padding: 0 .4rem; }
.pm-phone { max-width: 340px; margin: 0 auto 8px; border: 8px solid #1b1f2a; border-radius: 26px; overflow: hidden; background: #fff; }
.pm-phone iframe { display: block; width: 100%; height: 560px; border: 0; }
.pm .field input, .pm .field textarea, .pm .field select { margin-top: 4px; }
.pm .field input + input { margin-top: 6px; }
.pm-go { width: 100%; }
.pm-done { margin-top: 14px; padding: 16px; border-radius: 14px; background: #fff7e0; border: 1px solid #f0d58a; }
.pm-done.is-in { animation: pm-pop .5s cubic-bezier(.2,.8,.2,1.2); }
@keyframes pm-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pm-done.is-in { animation: none; } }
.pm-done-h { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.pm-url { word-break: break-all; font-weight: 700; }
.pm-test { margin-top: 12px; }
.pm-test-h { font-weight: 700; margin: 0 0 4px; }

/* チャットに付けたファイル（送る前の一覧） */
.as-files { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.as-files li { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: .2rem .3rem .2rem .7rem; border-radius: 999px; background: var(--paper-deep, #efece4); font-size: .8rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.as-file-x { border: 0; background: none; font: inherit; font-size: 1rem; line-height: 1; padding: 0 .3rem; cursor: pointer; color: inherit; }

/* ゲストのヘッダーは1段（ロゴ・アプリ・ログイン・無料登録・言語）。ログインは人のアイコン */
.nav .nav-login { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; }
.nav .nav-login:hover, .nav .nav-login:focus-visible { background: rgba(255,255,255,.12); color: var(--ink); outline: none; }
@media (max-width: 640px) {
  .top-in:has(.nav-login) { flex-wrap: nowrap; padding: .5rem 12px; gap: .5rem; }
  .top-in:has(.nav-login) .brand { font-size: 1.05rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .top-in:has(.nav-login) .brand::before { display: none; }
  .nav:has(.nav-login) { flex-wrap: nowrap; flex-shrink: 0; gap: .15rem; }
  .nav:has(.nav-login) .nav-cta { white-space: nowrap; padding: .4rem .7rem; margin: 0 .25rem; font-size: .88rem; }
}
@media (max-width: 350px) {
  .top-in:has(.nav-login) { padding: .5rem 8px; gap: .25rem; }
  .top-in:has(.nav-login) .brand { font-size: .98rem; letter-spacing: .01em; }
  .nav:has(.nav-login) .a2hs-btn, .nav:has(.nav-login) .nav-login { width: 34px; height: 34px; }
  .nav:has(.nav-login) .nav-cta { padding: .35rem .5rem; margin: 0 .15rem; font-size: .84rem; }
}

/* パートナープログラムの案内（/partner）: 数字3つ・始め方3つ・注意は小さく */
.pp .lead { font-size: 1.05rem; }
.pp-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pp-facts li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 16px 12px; text-align: center; display: grid; gap: 6px; }
.pp-facts strong { font-size: 1.7rem; line-height: 1.1; color: var(--navy, var(--ink)); }
.pp-facts span { font-size: .82rem; line-height: 1.5; color: var(--muted); }
.pp-cta { display: block; text-align: center; }
.pp-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 14px; }
.pp-steps li { display: flex; gap: 12px; align-items: flex-start; }
.pp-steps h3 { margin: 0 0 2px; font-size: 1rem; }
.pp-steps p { margin: 0; }
.pp-notes { font-size: .85rem; line-height: 1.7; padding-left: 1.2em; margin: 0 0 1.25rem; }
@media (max-width: 380px) { .pp-facts { grid-template-columns: 1fr; } .pp-facts li { grid-template-columns: auto 1fr; text-align: left; align-items: center; } }

/* パートナーのホーム: 題名の右に次回の振り込み（白地・金の縁で、下の今期の数字と見分ける） */
.p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.p-head h1 { margin-bottom: 0; }
.p-next { display: grid; justify-items: end; gap: 2px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--gold); border-radius: var(--r-panel); text-align: right; flex-shrink: 0; }
.p-next-label { font-size: .75rem; color: var(--muted); }
.p-next strong { font-size: 1.35rem; line-height: 1.15; color: var(--ink-on-light, #13234a); }
.p-next-date { font-size: .8rem; color: var(--muted); }
.p-sum { grid-template-columns: repeat(2, 1fr) !important; }

/* パートナーの画面（スマホ向け）: 1画面1つの用事。見出し18px・本文16px・補足14px */
.pl { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-panel); padding: 18px 16px; margin: 0 0 14px; }
.pl-h { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; margin: 0 0 12px; letter-spacing: 0; }
.pl-note { font-size: .875rem; line-height: 1.7; color: var(--muted); margin: 10px 0 0; }
.pl-link { display: flex; gap: 8px; align-items: stretch; }
.pl-url { flex: 1; min-width: 0; resize: none; font-size: .875rem; line-height: 1.4; padding: 12px; border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--bg, #fff); white-space: nowrap; overflow-x: auto; overflow-y: hidden; height: 48px; }
.pl-copy { flex-shrink: 0; min-width: 96px; min-height: 48px; margin: 0; }
.pl-qr { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.pl-qr img { flex-shrink: 0; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--rule); }
.pl-qr .pl-note { margin: 0; }
.pl-id { font-size: 1.25rem; font-weight: 700; margin: 0; word-break: break-all; }
.pl-rate { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.pl-rate strong { font-size: 2.25rem; line-height: 1; }
.pl-rate span { font-size: .9375rem; color: var(--muted); }
@media (max-width: 380px) { .pl-qr { flex-direction: column; align-items: flex-start; } }

/* プリペイド: ロゴつきの押せる行 */
.pl-lead { margin: 0 0 12px; font-size: .9375rem; color: var(--ink); }
.svc { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; min-height: 72px; }
.svc a:active { background: #f3f1ea; }
.svc img { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; object-fit: contain; background: #fff; border: 1px solid var(--rule); }
.svc-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.svc-t strong { font-size: 1rem; }
.svc-t span { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.svc-go { flex-shrink: 0; color: var(--muted); }

/* 出金の画面: 入力欄が枠からはみ出さない。日付は2つ横に */
.is-partner .panel { padding: 18px 16px; }
.is-partner .panel h2 { font-family: var(--sans); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.is-partner .panel h3 { font-size: 1rem; }
.is-partner .panel input, .is-partner .panel textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.is-partner section > h2 { font-family: var(--sans); font-size: 1.125rem; letter-spacing: 0; }
.csv-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csv-dates input { min-height: 48px; font-size: 16px; }
.is-partner .page-head h1 { font-family: var(--sans); font-size: 1.75rem; letter-spacing: 0; }
.p-sum div { padding: 12px 14px; }
.p-sum dt { font-size: 12.5px; opacity: .85; }
.p-sum dd { font-size: 20px; margin-top: 6px; }

/* アプリを入れるボタン: 金の細い輪に、下向きの矢印と受け皿 */
.a2hs-btn { width: 36px; height: 36px; border: 1.5px solid var(--gold); color: var(--gold-light); background: rgba(255,255,255,.04); transition: background .15s; }
.a2hs-btn:hover, .a2hs-btn:focus-visible { background: rgba(200,164,92,.18); outline: none; }
@media (max-width: 350px) { .nav:has(.nav-login) .a2hs-btn { width: 32px; height: 32px; } }

/* お支払い明細書（印刷・PDF 保存で、明細書だけが出る） */
.stm { max-width: 760px; margin: 0 auto; padding: 16px; }
.stm-doc { background: #fff; color: #111; border: 1px solid var(--rule); border-radius: 12px; padding: 22px 18px; }
.stm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid #13234a; padding-bottom: 10px; margin-bottom: 14px; }
.stm-head h1 { font-family: var(--sans); font-size: 1.4rem; margin: 0; letter-spacing: .04em; }
.stm-no { margin: 0; font-size: .8125rem; color: #555; }
.stm-meta { display: grid; gap: 6px; margin: 0 0 16px; }
.stm-meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; font-size: .875rem; }
.stm-meta dt { color: #555; } .stm-meta dd { margin: 0; }
.stm-total { display: flex; justify-content: space-between; align-items: baseline; background: #f4f2ea; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
.stm-total strong { font-size: 1.5rem; }
.stm-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.stm-table th, .stm-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid #e5e2d8; }
.stm-table .num { text-align: right; white-space: nowrap; }
.stm-issuer { margin: 16px 0 0; font-size: .8125rem; color: #555; text-align: right; }
.stm-tools { margin: 14px 0 0; }
@media print {
  .top, .site-foot, footer, .tabbar, .stm-tools, .skip { display: none !important; }
  body { background: #fff !important; }
  .stm { padding: 0; } .stm-doc { border: 0; padding: 0; }
}

/* トップの CM（16:9） */
.hero2-cm { background: #13234a; }
.hero2-cm video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #13234a; }
.hero2-sound { position: absolute; z-index: 3; right: 10px; top: 10px; border: 0; border-radius: 999px; background: rgba(19, 35, 74, .9); color: #fff; font-weight: 700; font-size: .85rem; padding: .5rem .9rem; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.hero2-sound::before { content: ""; width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* 音を出すボタンは動画の下の帯に（吹き出しを隠さない）。.js .js-only の inline-block に負けないよう指定 */
.js .hero2-sound { display: flex; }
.hero2-sound { position: static !important; margin: 0 auto; width: 100%; max-width: 960px; justify-content: center; border-radius: 0 !important; padding: .7rem 1rem !important; background: #13234a !important; font-size: .95rem !important; }
.hero2-sound::before { flex-shrink: 0; width: 0 !important; height: 0 !important; border-left: 10px solid #f0b73f !important; border-top: 7px solid transparent !important; border-bottom: 7px solid transparent !important; }
.hero2-sound[hidden] { display: none !important; }

/* 音を出すボタン: 金のピル型で、ぴょんぴょん跳ねる（動きを減らす設定では止める） */
.hero2-sound { width: auto !important; max-width: none !important; margin: 14px auto 2px !important; border-radius: 999px !important; background: #f0b73f !important; color: #13234a !important; padding: .75rem 1.5rem !important; font-size: 1rem !important; font-weight: 800 !important; box-shadow: 0 4px 0 #c88f1e, 0 8px 18px rgba(19,35,74,.18); animation: hero2-hop 1.6s ease-in-out infinite; }
.hero2-sound::before { border-left-color: #13234a !important; }
.hero2-cm { background: #fff !important; text-align: center; }
@keyframes hero2-hop { 0%, 55%, 100% { transform: translateY(0); } 65% { transform: translateY(-8px); } 75% { transform: translateY(0); } 83% { transform: translateY(-4px); } 90% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero2-sound { animation: none; } }
/* ヘッダーの言語メニュー（国旗）は、国旗の真下に出す。下から出る言語の画面（.lang-sheet の .lang-panel）の指定を受けない */
.hmenu > .hmenu-panel.lang-panel { position: absolute; right: 0; left: auto; top: calc(100% + 8px); width: auto; min-width: 160px; opacity: 1; transform: none; border-radius: 8px; padding: .4rem 0; box-shadow: 0 10px 30px rgba(20,29,51,.18); }
/* 受講者 ID の透かし: 録画・撮影された動画から流出元が分かるように。操作の邪魔をしない */
@media (min-width: 1000px) { .lp-video { position: relative; } }
.lp-mark { position: absolute; z-index: 4; left: 2%; top: 3%; pointer-events: none; user-select: none; -webkit-user-select: none; color: rgba(255, 255, 255, .28); font-size: clamp(.6rem, 1.1vw, .75rem); font-weight: 500; white-space: nowrap; }
/* トップの PC 版: 初めての人が最初の画面で「何のサービスか」と「押すボタン」をすぐ見つけられるように。文字は大きめ、1行は短め。スマホ版は変えない */
@media (min-width: 1000px) {
  .hero2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 40px 32px 64px; }
  .hero2-media { max-width: none; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px rgba(19, 35, 74, .18); }
  .hero2-cm { overflow: visible; box-shadow: none; }
  .hero2-cm video { border-radius: 16px; box-shadow: 0 18px 48px rgba(19, 35, 74, .18); }
  .hero2-body { max-width: none; margin: 0; padding: 0; text-align: left; }
  .hero2-title { font-size: clamp(2.3rem, 3.2vw, 3rem); line-height: 1.3; margin: 0 0 1rem; }
  .hero2-lead { font-size: 1.15rem; line-height: 1.9; max-width: 26em; margin: 0 0 1.8rem; }
  .hero2-cta { margin: 0; max-width: 380px; font-size: 1.2rem; padding: 1.1rem; text-align: center; }
  .hero2-free { font-size: .95rem; }

  .goal { padding: 56px 0 64px; }
  .goal-h { font-size: 1.7rem; margin-bottom: 32px; }
  .goal-h span { font-size: .95rem; }
  .goal-path { max-width: 1160px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .goal-path li { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 20px 12px; font-size: 1.05rem; line-height: 1.5; }
  .goal-path li + li::before { left: -16px; top: 50%; width: 16px; height: 0; border-left: 0; border-top: 2px dotted rgba(230, 196, 106, .7); }
  .goal-n { width: 34px; height: 34px; font-size: 1rem; }

  .start3 { padding: 64px 0 72px; }
  .start3 h2 { font-size: 1.6rem; margin-bottom: 24px; }
  .start3-list { gap: 32px; margin-bottom: 48px; }
  .start3-list b { width: 36px; height: 36px; font-size: 1.05rem; }
  .start3-list p { font-size: 1.1rem; }
  .start3-list span { font-size: 1rem; line-height: 1.7; margin-top: 6px; }
  .faq3 { gap: 20px; }
  .faq3 div { padding: 20px 22px; }
  .faq3 dt { font-size: 1.05rem; }
  .faq3 dd { font-size: 1rem; line-height: 1.8; }

  .main:has(> .hero2) .muted, .main:has(> .hero2) .ticks li, .main:has(> .hero2) .section-lead { font-size: 1rem; line-height: 1.8; }
}
/* トップ「なぜ、初めてでもできるのか」: 勝ちパターン3枚 */
.win { background: #fff; padding: 40px 0 44px; text-align: center; }
.win-eyebrow { margin: 0 0 6px; color: #b8892f; font-weight: 800; font-size: .9rem; letter-spacing: .06em; }
.win-h { margin: 0 auto 12px; max-width: 22em; color: #13234a; font-size: clamp(1.35rem, 4.6vw, 2rem); line-height: 1.45; }
.win-lead { margin: 0 auto 24px; max-width: 34em; color: #3c4560; line-height: 1.85; }
.win-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.win-list li { background: #f6f8fc; border: 1px solid #e4e8f0; border-radius: 16px; padding: 18px 18px 20px; }
.win-tag { display: inline-block; background: #13234a; color: #e6c46a; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .2rem .75rem; }
.win-list h3 { margin: 12px 0 6px; color: #13234a; font-size: 1.15rem; line-height: 1.5; }
.win-list p { margin: 0; color: #3c4560; line-height: 1.8; }
.win-foot { margin: 22px auto 0; max-width: 34em; color: #13234a; font-weight: 700; line-height: 1.8; }
@media (min-width: 1000px) {
  .win { padding: 80px 0 88px; }
  .win-eyebrow { font-size: 1rem; }
  .win-lead { font-size: 1.1rem; margin-bottom: 40px; }
  .win-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .win-list li { padding: 26px 26px 28px; }
  .win-list h3 { font-size: 1.3rem; }
  .win-list p { font-size: 1.02rem; }
  .win-foot { font-size: 1.1rem; margin-top: 36px; }
  .hero2 { box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
}

/* 申込: 仮想通貨の種類はプルダウンでなく、支払い方法と同じ選択肢で横に並べる */
.options-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.options-inline .option { flex: 1 1 10rem; }

/* URL とコピーのアイコン（1つの枠の右端） */
.url-copy { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.url-copy-text { flex: 1; min-width: 0; padding: 6px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1a2033; font-size: .9rem; background: none; user-select: all; }
.url-copy-btn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #565e70; cursor: pointer; }
.url-copy-btn:hover { background: #eef0f4; color: #1a2033; }
.url-copy-btn .ic-done, .url-copy-btn.is-done .ic-copy { display: none; }
.url-copy-btn.is-done .ic-done { display: block; color: #1d6b32; }

/* ウェイトリストの登録者一覧 */
.wl-table-wrap { padding: 0; overflow-x: auto; }
.wl-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wl-table th, .wl-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.wl-table th { color: #565e70; font-weight: 600; font-size: .8rem; }
.wl-table tr:last-child td { border-bottom: 0; }
/* ウェイトリスト: サイトのカード（PC は右にボタン、スマホは下に全幅） */
.wl-h { display: flex; justify-content: space-between; }
.acc-card.wl-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; }
.wl-site { min-width: 0; }
.wl-name { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 1.05rem; line-height: 1.4; color: #1a2033; }
.wl-url { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: #565e70; }
a.wl-url:hover { color: #1a2033; }
.acc .wl-btn { width: auto; min-height: 40px; padding: .45rem 1.1rem; font-size: .9rem; }
.wl-card form { margin: 0; }
.wl-how { margin: 0 0 .6rem; }
@media (max-width: 520px) {
  .acc-card.wl-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .acc .wl-btn { width: 100%; }
  .url-copy-text { font-size: .8rem; }
}
/* 登録完了メールの編集 */
.wl-form { display: grid; gap: 14px; padding: 18px; }
.wl-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #565e70; }
.wl-form input, .wl-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: #1a2033; font: inherit; font-weight: 400; }
.wl-form textarea { resize: vertical; line-height: 1.6; }
.wl-form .wl-btn { justify-self: end; }
.wl-ok { margin: 0 0 .6rem; color: #1d6b32; font-size: .9rem; }
.wl-err { margin: 0 0 .6rem; color: #a51c30; font-size: .9rem; }
@media (max-width: 520px) { .wl-table th, .wl-table td { padding: 10px 8px; font-size: .78rem; } .wl-table td.mono { font-size: .76rem; } }

/* modern（Team of One）: 濃紺と金のエグゼクティブ調。色は同梱の style.css のまま。ここでは写真（同じフォルダの webp）を渡す */
:root {
  --art: block;
  --img-hero: url("/assets/hero.webp");
  --img-dashboard: url("/assets/dashboard.webp");
  --img-foundation: url("/assets/foundation.webp");
  --img-instant: url("/assets/instant.webp");
  --img-build: url("/assets/stage-build.webp");
  --img-marketing: url("/assets/stage-marketing.webp");
  --img-monetize: url("/assets/stage-monetize.webp");
  --img-operate: url("/assets/stage-operate.webp");
}
