/* ランディングページ専用スタイル。
   トークンは style.css の :root から必要な分だけ複製している（style.css 自体は
   リンクしない。2000行超の画面別コンポーネント定義を巻き込まないため）。
   方針・コピーの根拠は lp-plan.md / lp-copy.md 参照。 */

:root {
  --bg-top: #fff5fa;
  --bg-mid: #ffe6f1;
  --bg-bottom: #f0dcff;
  --primary: #f4608f;
  --primary-light: #ff92b6;
  --primary-dark: #c93a6b;
  --primary-soft: #ffe3ee;
  --secondary: #9059d8;
  --secondary-dark: #6c3bad;
  --secondary-soft: #f0e6fd;
  --text: #3a2a44;
  --text-muted: #8d7b98;
  --card-bg: #fffdff;
  --border-soft: #f3e0ec;
  --gold: #ffcf4d;
  --gold-dark: #d69a13;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(90, 40, 90, 0.06), 0 3px 8px rgba(90, 40, 90, 0.05);
  --shadow: 0 2px 3px rgba(90, 40, 90, 0.05), 0 14px 30px rgba(90, 40, 90, 0.12);
  --shadow-lg: 0 6px 14px rgba(90, 40, 90, 0.1), 0 26px 50px rgba(90, 40, 90, 0.16);
  --font-heading: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", sans-serif;

  /* LP固有：ヒーローの夜店・提灯を思わせる暖色（画像を使わずCSSだけで表現する） */
  --night-deep: #241b4a;
  --night-mid: #3d2a63;
  --lantern: #ff8a4c;
  --lantern-light: #ffb877;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text);
  background: radial-gradient(140% 100% at 50% -12%, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
}

/* height:auto が無いと、CSSで幅を変えたときにHTMLのheight属性が残って画像が潰れる
   （ヒーローのキャラが横に縮んでいた。2026-08-29 修正） */
img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border-soft); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; margin: 0; text-wrap: balance; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
}

/* ===== CTAボタン ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border: none;
  border-radius: 999px;
  padding: 16px 34px;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 58, 107, 0.35); }
.cta-btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.cta-btn .arrow { transition: transform .15s ease; }
.cta-btn:hover .arrow { transform: translateX(3px); }

.cta-micro {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
/* 文の途中（「遊べま／す。」）で折り返さず、文の切れ目で改行させる。
   広い画面では1行のままにしたいので <br> ではなく inline-block を使う */
.cta-micro span { display: inline-block; }

/* ===== ① ヒーロー ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--night-mid) 0%, var(--night-deep) 62%, #171029 100%);
  color: #fff;
  padding: 44px 0 48px;
  border-top: none;
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; position: relative; z-index: 1; }

/* 提灯の光を、画像を使わずCSSのグラデーションと擬似要素だけで表現する */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(220px 220px at 18% 22%, rgba(255, 138, 76, 0.35), transparent 70%),
    radial-gradient(260px 260px at 84% 14%, rgba(255, 184, 119, 0.28), transparent 70%),
    radial-gradient(300px 300px at 50% 100%, rgba(144, 89, 216, 0.30), transparent 70%);
}

/* ヒーローではキャラの大きな絵を使わない（2026-08-29）。
   このクラスは他の節で流用する可能性があるので定義だけ残す */
.hero-figure {
  width: min(44vw, 210px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

/* ファーストビューの下部に置く、判断材料の3点。
   装飾で埋めず、保護者が最初に気にすることを短く出す */
.hero-proof {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.hero-proof li {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
}
.hero-proof li::before { content: "✓ "; color: var(--lantern-light); }

/* 誰に向けたページかを、見出しより先に短く名乗る */
.hero-target {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lantern-light);
  border: 1px solid rgba(255, 184, 119, 0.45);
  border-radius: 999px;
  padding: 5px 14px;
}

.hero h1 {
  /* ⚠️ 下限は 22px。24px にすると 320px 幅で「わり算でつまずいたまま、」が
     入りきらず、<br> で切ったはずの句の途中でさらに折り返す */
  font-size: clamp(22px, 6.6vw, 32px);
  line-height: 1.45;
  color: #fff;
}
.hero h1 .accent { color: var(--lantern-light); }

.hero-sub {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  /* ⚠️ ch は「0」の幅が基準で、全角より かなり狭い。日本語に ch を使うと
     思ったより早く折り返す（34ch でも実質18文字で折り返していた）。em を使う */
  max-width: 22em;
}
/* 文の途中で折り返さず、文の切れ目で改行させる（広い画面では1行のまま） */
.hero-sub span { display: inline-block; }

/* ヒーローで唯一アプリ名を出す行。悩み（見出し）と解決の距離をここで縮める */
.hero-mechanism {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  max-width: 24em;
}
/* nowrap が無いと「20／日後」のように日付の途中で折れる */
.hero-mechanism b { color: var(--lantern-light); font-weight: 800; white-space: nowrap; }

.hero .cta-btn { margin-top: 6px; }
.hero .cta-micro { color: rgba(255, 255, 255, 0.7); }

/* ===== ② これは何か ===== */
.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ⚠️ display:flex なので、li の直下に置いたものは全部それぞれ別の flex アイテムに
   なる（地の文は匿名アイテム、<a> や <strong> は個別のアイテムとして blockify される）。
   そうなると文が列に割れて、折り返した瞬間に読めなくなる。
   バッジ以外の中身は必ず1つの <span> にまとめて入れること。
   バッジ自体が無いリストは .fact-list--plain を併記する。
   （2026-08-29：<strong> と <a> で2回同じ壊れ方をしたので明記） */
.fact-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.7;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}
.fact-list .k {
  flex: none;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
/* .k のバッジが無い箇条書き（作り手の節）用。
   .fact-list li は display:flex なので、バッジ無しの li に使うと
   地の文と <strong> がそれぞれ独立した列になって、文が縦に割れて読めなくなる */
.fact-list--plain li { display: block; }

.fact-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ②-2 はじめかたの手順 =====
   1〜3は「登録なしの一本道」、4だけを破線＋控えめな色で「あとから」に見せる。
   分岐に見せないことが要点（迷わせないための図なので）。 */
.start-flow {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.start-step {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
/* 手順どうしを縦線でつなぐ。左padding(16px)＋番号の半径(16px)－線の半幅(1px)で
   番号の中心に合わせ、カードの隙間にちょうど収まる高さにする */
.start-step + .start-step { margin-top: 22px; }
.start-step + .start-step::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 31px;
  width: 2px;
  height: 22px;
  background: var(--primary-soft);
}

.start-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.start-body { min-width: 0; }
.start-body h3 {
  font-size: 15.5px;
  line-height: 1.5;
  margin: 4px 0 0;
}
.start-body p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* 「ここまで登録なし」の区切り線 */
.start-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-dark);
}
.start-divider::before,
.start-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.start-divider span { flex: none; }

/* 4段目。破線で「必須ではない・あとで良い」ことを形で示す */
.start-later {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1.5px dashed var(--secondary);
  border-radius: var(--radius-sm);
  background: var(--secondary-soft);
}
.start-later-tag {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: var(--secondary);
  border-radius: 999px;
  padding: 5px 10px;
  margin-top: 4px;
  white-space: nowrap;
}
.start-later .start-body h3 { color: var(--secondary-dark); }
.start-later .start-body p { color: var(--text); }

.cta-row { margin: 26px 0 0; }

/* ===== ③ なぜ続くのか ===== */
.loop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin: 20px 0 26px;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-dark);
}
.loop span.step {
  background: var(--secondary-soft);
  border-radius: 999px;
  padding: 7px 14px;
}
.loop span.arrow { color: var(--text-muted); font-weight: 400; }

.card-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}
.card-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-soft);
  background: var(--card-bg);
}
.card-strip img.r-R { border-color: #90c4f2; }
.card-strip img.r-SR { border-color: #cf8fe0; box-shadow: 0 0 10px rgba(171, 71, 188, 0.35); }
.card-strip img.r-UR { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 207, 77, 0.5); }

.statement {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 800;
}
.statement .muted { color: var(--text-muted); font-weight: 500; }

/* ===== ④ 信頼ブロック ===== */
.trust {
  background: linear-gradient(160deg, #fff9f2, #fff2e0);
  border: 1px solid #f4dcb8;
}
/* 節の頭に置く導入文。信頼ブロック以外（#review など）でも使うので、
   .section-lead を正の名前にして .trust-lead は既存マークアップ用に残している */
.trust-lead,
.section-lead {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
}
.trust-core {
  background: #fff;
  border: 2px solid var(--lantern);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin: 0 0 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.trust-core p {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
  color: var(--primary-dark);
}
.trust-core p + p { margin-top: 6px; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.7;
}
.check-list li::before {
  content: "○";
  flex: none;
  color: var(--gold-dark);
  font-weight: 800;
}

/* ===== ⑤ 家族 ===== */
.family-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.family-box p { margin: 0; font-size: 15px; line-height: 1.8; }
.family-note {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ===== ⑥ 作り手 ===== */
.maker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.maker-figure { width: 132px; }
.maker p { margin: 0; font-size: 15px; line-height: 1.85; text-align: left; }
.maker ul.fact-list { width: 100%; }
.maker .fact-list li { font-size: 14px; }

/* ===== ⑦ 料金 ===== */
.price-intro {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.8;
}
.price-intro strong { color: var(--primary-dark); }

/* 無料登録の価値（データが消えなくなる）。有料の話より前に置く。
   ここを読まずに登録せず使い続けると、長く遊んだあとに全部消える事故が起きる。 */
.price-freenote {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--secondary-soft);
  border: 1.5px solid #e4d5f7;
  font-size: 13.5px;
  line-height: 1.9;
}
.price-freenote strong { color: var(--secondary-dark); }

.price-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}
.price-table th, .price-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border-soft); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-table thead th { background: var(--secondary-soft); font-weight: 800; color: var(--secondary-dark); }
.price-table th[scope="row"] { text-align: left; font-weight: 700; color: var(--text); }
.price-table td.yes { color: var(--primary-dark); font-weight: 800; }
.price-table td.plan-price { font-weight: 800; font-size: 15px; }
.table-scroll { overflow-x: auto; }

.price-annual {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.8;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.price-annual strong { color: var(--primary-dark); font-size: 16px; }

.price-lock {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-muted);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 12px;
}

/* ===== ⑧ FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 16px;
  font-weight: 700;
  font-size: 14.5px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: -2px; }
.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ===== ⑨ ラストCTA ===== */
.closing {
  background: linear-gradient(160deg, var(--secondary-soft), var(--bg-bottom));
  text-align: center;
}
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing-figure { width: 150px; }
.closing h2 { font-size: clamp(20px, 5vw, 24px); line-height: 1.5; }

/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 24px 20px 40px;
  font-size: 12px;
  color: var(--text-muted);
}
footer a { color: inherit; }

@media (min-width: 720px) {
  .wrap { max-width: 720px; }
  section { padding: 76px 0; }
  .hero { padding: 64px 0 68px; }
}

/* ===== 法定表示ページ（tokusho.html） =====
   売り込みのページではないので、LPの装飾は持ち込まず、読みやすさだけを優先する。 */
.legal-page {
  background: var(--bg-top);
}
.legal-head {
  padding: 28px 0 8px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.legal-back:hover { color: var(--primary); }
.legal-head h1 {
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.5;
  margin: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  line-height: 1.9;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }
.legal-table th {
  width: 30%;
  min-width: 8em;
  font-weight: 800;
  color: var(--secondary-dark);
  background: var(--secondary-soft);
}
.legal-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.8;
}
.legal-updated {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* 狭い画面では2列だと項目名が潰れるので、縦積みにする */
@media (max-width: 520px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td { display: block; width: auto; }
  .legal-table th {
    border-bottom: none;
    padding-bottom: 6px;
  }
  .legal-table td { padding-top: 6px; }
}
