/* Dougaku LP
   色はアプリの Assets.xcassets/Colors と視聴画面(WatchVideo)に合わせている */
:root {
  --coral: #FF594D;
  --coral-dark: #FF291A;
  --coral-soft: #FFF0EE;
  --ink: #333333;
  --gray: #8E8E93;
  --line: #EBEDF0;
  --bg: #F9F9FF;
  --green: #2CCA00;
  --vocab: #FF9500;
  --night: #1B1B1B;
  --night-row: #333333;

  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --latin: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--jp);
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1A73E8; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ── 見出しの上に置く英語の一行(字幕の行と同じ見せ方) ── */
.line {
  font-family: var(--latin);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
.line b { position: relative; font-weight: 500; color: var(--coral); white-space: nowrap; }
.line b::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; border-radius: 2px;
  width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.3, .7, .2, 1) .25s;
}
.line.is-in b::after { transform: scaleX(1); }
.line--dark { color: #fff; }
.line--dark b { color: var(--vocab); }

.head { text-align: center; }
.head h2, .count h2, .lang h2, .faq h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .01em;
}
.hero__lead span, .head__lead span, .head h2 span, .lang h2 span, .wall__note span, .plan li span span { display: inline-block; }
p, li, summary { word-break: auto-phrase; }
.head__lead {
  max-width: 34em; margin: 18px auto 0;
  font-size: clamp(15px, 1.5vw, 17px);
  color: #5B5B60;
}

.sec { padding-block: clamp(72px, 10vw, 128px); }

/* ───────── ヒーロー ───────── */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(90% 70% at 85% 0%, #FF8A6B 0%, rgba(255, 138, 107, 0) 60%),
    linear-gradient(160deg, #FF594D 0%, #FF4A3D 100%);
  overflow: hidden;
}
.hero__mark {
  position: absolute; width: 980px; height: 814px; left: -330px; bottom: -330px;
  color: #fff; opacity: .1; transform: rotate(-14deg); pointer-events: none;
}

.nav { position: relative; display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 28px; }
.brand__name { font-family: var(--latin); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.nav__links { display: none; margin-left: auto; gap: 28px; font-size: 14px; font-weight: 600; }
.nav__links a { opacity: .92; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav__cta {
  margin-left: auto;
  padding: 9px 18px; border-radius: 999px;
  background: #fff; color: var(--coral-dark);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}

.hero__body {
  position: relative;
  display: grid; gap: 48px;
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero h1 {
  font-size: clamp(38px, 10.4vw, 76px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .005em;
}
[data-learn="ko"] .hero h1 { font-size: clamp(34px, 9.3vw, 72px); }
/* 学ぶ言語の切り替え(英語版と韓国語版は別ページ) */
.learn { display: inline-flex; margin-bottom: clamp(18px, 2.4vw, 28px); padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); }
.learn a { padding: 7px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.learn a[aria-current] { background: #fff; color: var(--coral-dark); }
.learn a:not([aria-current]):hover { background: rgba(255, 255, 255, .18); }
.hero__lead {
  margin-top: 22px; max-width: 26em;
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 500;
  color: rgba(255, 255, 255, .95);
}

.get { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.get__badge img { height: 60px; width: auto; }
.get__badge { transition: transform .15s ease; }
.get__badge:hover { transform: translateY(-2px); }
.get__qr { display: none; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.get__qr img { width: 72px; height: 72px; padding: 6px; background: #fff; border-radius: 12px; }

.hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 700; }
.hero__rating small { font-size: 12px; font-weight: 500; opacity: .85; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; color: #fff; }
.stars .half { clip-path: inset(0 50% 0 0); margin-right: -8px; }

/* ── スマホの枠と視聴画面 ── */
.hero__demo { position: relative; justify-self: center; width: min(100%, 320px); }
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 660;
  padding: 10px;
  border-radius: 52px;
  background: #0B0B0C;
  box-shadow:
    0 0 0 1.5px #3a3a3d inset,
    0 40px 80px -24px rgba(120, 12, 0, .55),
    0 18px 36px -18px rgba(0, 0, 0, .4);
}
.phone__island {
  position: absolute; z-index: 5; top: 21px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 26px; border-radius: 20px; background: #000;
}
.watch {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding-top: 58px;
  border-radius: 42px; overflow: hidden;
  background: var(--night); color: #fff;
}
/* YouTubeの埋め込みプレイヤーは200×200px以上が必要なので、16:9に足りない分は上下の黒帯で補う */
.watch__video { position: relative; flex: none; aspect-ratio: 16 / 9; min-height: 200px; overflow: hidden; background: #000; }
.watch__poster, .watch__tap { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 枠を2倍の大きさで作って半分に縮めて見せる。YouTubeの題名やロゴは枠の大きさに関係なく同じ文字サイズで出るので、
   こうすると半分の大きさになる(高精細な画面に合う画質も選ばれる)。3倍以上は文字が読めなくなるのでやらない */
.watch__video iframe { position: absolute; top: 0; left: 0; width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: 0 0; }
.watch__poster { object-fit: contain; transition: opacity .3s ease; pointer-events: none; }
.watch__video.is-live .watch__poster { opacity: 0; }
.watch__tap { cursor: pointer; }

.watch__list { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 8px 10px 0; }
.watch__list::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 44px; pointer-events: none;
  background: linear-gradient(rgba(27, 27, 27, 0), var(--night));
}
.watch__rows { display: flex; flex-direction: column; gap: 3px; transition: transform .32s cubic-bezier(.3, .7, .2, 1); will-change: transform; }
.row { padding: 11px 12px; border-radius: 9px; cursor: pointer; transition: background-color .2s ease; }
.row.is-active { background: var(--night-row); }
.row--tail { cursor: default; }
.row__en { display: flex; flex-wrap: wrap; column-gap: .3em; row-gap: 3px; font-family: var(--latin); font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.tok { position: relative; opacity: .5; transition: opacity .2s ease; }
.tok--vocab { color: var(--vocab); opacity: .6; }
.row.is-active .tok { opacity: 1; }
.tok::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; border-radius: 1px;
  width: calc(var(--p, 0) * 100%); background: currentColor;
}
button.tok { font: inherit; line-height: inherit; }
/* 韓国語: 単語の上にカタカナの読みを添える */
.tok--rd { display: inline-flex; flex-direction: column; align-items: center; }
.tok__rd { font-family: var(--jp); font-size: 8.5px; font-style: normal; font-weight: 500; line-height: 1.5; letter-spacing: 0; white-space: nowrap; opacity: .8; }
[data-learn="ko"] .row__en { align-items: flex-end; column-gap: .34em; row-gap: 4px; font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", var(--latin); font-size: 16px; }
button.tok::before { content: ""; position: absolute; inset: -8px -3px; }
.row__ja { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .33); transition: color .2s ease; }
.row.is-active .row__ja { color: rgba(255, 255, 255, .75); }

.watch__bar { flex: none; padding: 6px 18px 16px; }
.seek { position: relative; height: 16px; cursor: pointer; }
.seek::before { content: ""; position: absolute; inset: 6px 0; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.seek__fill { position: absolute; inset: 6px auto 6px 0; width: 0; border-radius: 2px; background: var(--vocab); }
.seek__fill::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; }
.watch__buttons { position: relative; display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 6px; }
.watch__buttons button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.watch__buttons button:active { background: rgba(255, 255, 255, .12); }
.watch__buttons svg { width: 22px; height: 22px; }
.watch__play svg { width: 28px; height: 28px; }
/* 音のボタンは映像に重ねない(YouTubeのロゴや題名を隠さないため) */
.watch__sound { position: absolute; left: -6px; opacity: .8; }
.watch__sound[aria-pressed="true"] { opacity: 1; color: var(--vocab); }
.watch__speed { position: absolute; right: -6px; font-family: var(--latin); font-size: 13px; font-weight: 600; width: 48px !important; }

/* 単語をタップしたときのカード */
.pop { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; }
.pop[hidden] { display: none; }
.pop__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade .2s ease both; }
.pop__card {
  position: relative; width: 100%;
  padding: 22px 20px 24px; border-radius: 22px 22px 42px 42px;
  background: #fff; color: var(--ink);
  animation: rise .28s cubic-bezier(.2, .8, .2, 1) both;
}
.pop__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #F1F1F4; color: #77777C; }
.pop__close svg { width: 14px; height: 14px; }
.pop__term { padding-right: 36px; font-family: var(--latin); font-size: 23px; font-weight: 700; line-height: 1.25; }
.pop__meaning { margin-top: 6px; font-size: 15px; font-weight: 500; color: #55555A; }
.pop__save {
  display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%;
  margin-top: 18px; padding: 12px; border-radius: 12px;
  background: var(--coral); color: #fff; font-size: 14px; font-weight: 700;
}
.pop__save svg { width: 18px; height: 18px; }
.pop__save[aria-pressed="true"] { background: var(--coral-soft); color: var(--coral-dark); --bm-fill: currentColor; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }

/* ───────── 動画の壁 ───────── */
.sec--wall { padding-bottom: clamp(64px, 8vw, 104px); overflow-x: clip; }
.wall { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 14px; transform: rotate(-2deg) scale(1.04); }
.wall__row { display: flex; overflow: hidden; }
.wall__track { display: flex; flex: none; gap: 14px; padding-right: 14px; animation: slide 60s linear infinite; }
.wall__row--rev .wall__track { animation-direction: reverse; }
.wall__track img { width: clamp(180px, 22vw, 288px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--line); }
@keyframes slide { to { transform: translateX(-100%); } }
.wall__note { margin-top: clamp(44px, 6vw, 68px); text-align: center; font-size: 14px; font-weight: 600; color: #5B5B60; }

/* ───────── 学び方 ───────── */
.sec--how { background: var(--bg); }
.how { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.how__item { padding: 14px 14px 30px; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(40, 40, 80, .25); }
.how__item h3 { margin: 24px 14px 0; font-size: 21px; font-weight: 800; line-height: 1.4; }
.how__item > p { margin: 10px 14px 0; font-size: 15px; color: #5B5B60; word-break: normal; }
.how__ui { display: grid; align-content: center; min-height: 268px; padding: 22px 18px; border-radius: 18px; }
.how__ui--dark { background: var(--night); }
.how__ui--coral { background: var(--coral); }
.how__ui--plain { background: #F1F2F8; }

.ui-row { padding: 14px 16px; border-radius: 12px; background: var(--night-row); color: #fff; }
.ui-row__en { font-family: var(--latin); font-size: 19px; font-weight: 500; line-height: 1.35; }
.ui-row__en b { font-weight: 500; color: var(--vocab); }
.ui-row + .ui-row { margin-top: 6px; }
.ui-row--dim { background: transparent; opacity: .5; }
.ui-score__en[lang="ko"], .ui-quiz [lang="ko"] { font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", var(--latin); }
.ui-row__ja { margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.ui-pop { position: relative; margin: 14px 4px 0 28px; padding: 16px 18px; border-radius: 16px; background: #fff; }
.ui-pop::before { content: ""; position: absolute; left: 96px; bottom: 100%; border: 8px solid transparent; border-bottom-color: #fff; border-top: 0; }
.ui-pop__term { font-family: var(--latin); font-size: 19px; font-weight: 700; line-height: 1.3; }
.ui-pop__meaning { margin-top: 3px; font-size: 14px; font-weight: 500; color: #55555A; }
.ui-pop__save { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-dark); font-size: 12px; font-weight: 700; --bm-fill: currentColor; }
.ui-pop__save svg { width: 15px; height: 15px; }

.ui-score { position: relative; padding: 20px 20px 22px; border-radius: 16px; background: #fff; }
.ui-score__label { font-size: 12px; font-weight: 700; color: var(--gray); }
.ui-score__num { font-family: var(--latin); font-size: 58px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--coral); }
.ui-score__num small { margin-left: 3px; font-family: var(--jp); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.ui-score__bars { display: grid; gap: 7px; margin-top: 12px; }
.ui-score__bars div { display: grid; grid-template-columns: 3.4em 1fr 2em; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.ui-score__bars dt { color: #5B5B60; }
.ui-score__bars dd:not(.n) { height: 7px; border-radius: 4px; background: #F1F1F4; overflow: hidden; }
.ui-score__bars i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--coral); }
.ui-score__bars .n { font-family: var(--latin); text-align: right; }
.ui-score__en { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--latin); font-size: 16px; font-weight: 500; line-height: 1.4; color: #1E9C00; }
.ui-score__en b { font-weight: 600; color: var(--vocab); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ui-score__mic { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--coral); color: #fff; box-shadow: 0 0 0 7px var(--coral-soft); }
.ui-score__mic svg { width: 24px; height: 24px; }

.ui-quiz__q { font-size: 12px; font-weight: 600; color: var(--gray); }
.ui-quiz__word { margin-top: 2px; font-family: var(--latin); font-size: 28px; font-weight: 700; line-height: 1.25; }
.ui-quiz__ctx { margin-top: 2px; font-family: var(--latin); font-size: 13px; color: #77777C; }
.ui-quiz ul { display: grid; gap: 8px; margin-top: 16px; }
.ui-quiz li { position: relative; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1.5px 0 #DDDFE8; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.5; }
.ui-quiz li.ok { background: #E3FBD9; color: #1E9C00; box-shadow: 0 0 0 2px var(--green); }
.ui-quiz li svg { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; }

/* ───────── セリフの数 ───────── */
.sec--count { background: var(--night); color: #fff; }
.count { display: grid; gap: 48px; align-items: end; }
.count h2 em { font-style: normal; color: var(--vocab); white-space: nowrap; }
.count .head__lead { margin-inline: 0; color: rgba(255, 255, 255, .72); }
.count__note { margin-top: 18px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .42); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: clamp(6px, 1.4vw, 14px); height: clamp(240px, 34vw, 340px); }
.bars li { display: grid; grid-template-rows: 1fr auto; justify-items: center; height: 100%; position: relative; }
.bars i { align-self: end; width: 100%; height: calc(var(--h) * (100% - 34px)); border-radius: 10px 10px 4px 4px; background: #3A3A3C; transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.bars li:nth-child(2) i { transition-delay: .06s; } .bars li:nth-child(3) i { transition-delay: .12s; }
.bars li:nth-child(4) i { transition-delay: .18s; } .bars li:nth-child(5) i { transition-delay: .24s; }
.bars li:nth-child(6) i { transition-delay: .30s; } .bars li:nth-child(7) i { transition-delay: .36s; }
.bars.is-in i { transform: none; }
.bars .last i { background: var(--vocab); }
.bars span { position: absolute; left: 50%; bottom: calc(var(--h) * (100% - 62px) + 34px); transform: translateX(-50%); font-family: var(--latin); font-size: clamp(11px, 1.3vw, 14px); font-weight: 600; color: rgba(255, 255, 255, .5); white-space: nowrap; opacity: 0; transition: opacity .4s ease .6s; }
.bars.is-in span { opacity: 1; }
.bars .last span { font-size: clamp(17px, 2.4vw, 26px); font-weight: 800; color: var(--vocab); }
.bars .last small { font-family: var(--jp); font-size: .6em; margin-left: 1px; }
.bars b { margin-top: 10px; font-size: 11px; font-weight: 600; line-height: 2; color: rgba(255, 255, 255, .45); white-space: nowrap; }

/* ───────── 言語 ───────── */
.lang { display: grid; gap: 36px; align-items: center; }
.lang .head__lead { margin-inline: 0; }
.lang__rows { display: grid; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 12px 24px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5; transition: transform .15s ease; }
.more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.more:hover { transform: translateY(-2px); }
.ui-row--card { padding: 22px 24px; border-radius: 18px; background: var(--night); }
.ui-row--card .ui-row__en { font-size: clamp(20px, 2.4vw, 26px); }
.ui-row--card .ui-row__ja { margin-top: 10px; font-size: 14.5px; }
.ui-row__ko { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .32em; font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", var(--latin); }
.rb { display: inline-flex; flex-direction: column; align-items: center; }
.rb i { font-family: var(--jp); font-size: .44em; font-style: normal; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .6); white-space: nowrap; }

/* ───────── 料金 ───────── */
.sec--price { background: var(--bg); }
.plans { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 64px); max-width: 860px; }
.plan { position: relative; padding: 34px 30px 36px; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 20px 40px -28px rgba(40, 40, 80, .25); }
.plan h3 { font-size: 16px; font-weight: 800; }
.plan__price { margin-top: 6px; font-family: var(--latin); font-size: 52px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.plan__price small { font-family: var(--jp); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.plan__sub { margin-top: 4px; font-size: 13px; font-weight: 600; opacity: .9; }
.plan ul { display: grid; gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; font-weight: 600; line-height: 1.6; }
.plan li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--coral); }
.plan--premium { background: var(--coral); color: #fff; box-shadow: 0 30px 60px -30px rgba(255, 60, 40, .7); }
.plan--premium ul { border-top-color: rgba(255, 255, 255, .28); }
.plan--premium li svg { color: #fff; }
.plan__tag { position: absolute; top: 30px; right: 26px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--coral-dark); font-size: 12.5px; font-weight: 800; line-height: 1.5; }
.plans__note { max-width: 860px; margin: 24px auto 0; font-size: 12px; line-height: 1.8; color: var(--gray); }

/* ───────── よくある質問 ───────── */
.faq { max-width: calc(820px + var(--gutter) * 2); }
.faq h2 { text-align: center; }
.faq__list { margin-top: clamp(32px, 5vw, 52px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 4px; font-size: 16.5px; font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2.5px; margin-top: -1px; border-radius: 2px; background: var(--coral); transition: transform .25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 24px 4px; font-size: 15px; color: #5B5B60; }

/* ───────── 最後 ───────── */
.final { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #FF594D 0%, #FF4A3D 100%); }
.final__mark { position: absolute; width: 760px; height: 631px; right: -220px; top: -200px; color: #fff; opacity: .1; transform: rotate(12deg); pointer-events: none; }
.final__body { position: relative; display: grid; justify-items: center; gap: 12px; padding-block: clamp(64px, 9vw, 112px); text-align: center; }
.final h2 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; line-height: 1.25; }
.final .get { justify-content: center; margin-top: 30px; }

/* ───────── フッター ───────── */
.foot { background: var(--night); color: rgba(255, 255, 255, .6); }
.foot__body { display: grid; gap: 22px; padding-block: 44px calc(44px + env(safe-area-inset-bottom)); }
.brand--foot { color: #fff; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { font-size: 11.5px; line-height: 1.9; }

/* ───────── スマホの下部固定ボタン ───────── */
.dock {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 16px 36px -10px rgba(0, 0, 0, .35);
  transform: translateY(160%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.dock.is-on { transform: none; }
.dock img { width: 40px; height: 40px; border-radius: 10px; }
.dock__text { display: grid; font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--gray); }
.dock__text b { font-family: var(--latin); font-size: 15px; font-weight: 800; color: var(--ink); }
.dock__btn { margin-left: auto; padding: 8px 22px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 14px; font-weight: 800; }

/* ───────── 広い画面 ───────── */
@media (min-width: 720px) {
  .how { grid-template-columns: repeat(3, 1fr); }
  .how__item h3 { font-size: 19px; }
  .plans { grid-template-columns: 1fr 1.12fr; align-items: stretch; margin-inline: auto; }
  .lang { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .count { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .foot__body { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
  .foot__links { justify-content: flex-end; }
  .foot__legal { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .nav__links { display: flex; }
  .nav__cta { margin-left: 0; }
  .hero__body { grid-template-columns: 1fr auto; align-items: center; gap: 56px; }
  .hero__demo { width: 336px; margin-right: clamp(0px, 5vw, 72px); }
  .get__qr { display: flex; }
  .dock { display: none; }
  .how__item h3 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__track { animation: none; }
  .line b::after, .bars i, .bars span, .watch__rows { transition: none; }
  .pop__card, .pop__scrim { animation: none; }
}
