/* ══════════════════════════════════════════════════════════════
   SkyCode ランディングページ

   色はすべてアプリから借りています。新しく決めた色はありません。
     インディゴ #4f46e5 → バイオレット #7c3aed … ヘッダーのグラデーション
     グリーン   #22c55e → #16a34a            … ▶実行! ボタン
     シアン     #00d2ff                      … シミュレーターの計器と軌跡
     地         #f2f5f9                      … アプリの下地 #2c3a4b を明るい側へ

   配分は 地・文字72% / インディゴ20% / シアン6% / グリーン2%。
   にぎやかさは画像が持っているので、ページ側は静かにしています。

   明るいページに、ヒーローだけ暗い帯。載せる画像がどれも暗いので、
   暗い帯の中に置くと縁が消えて、画面そのものが埋まって見えます。
   ══════════════════════════════════════════════════════════════ */

:root {
  --brand:      #4f46e5;
  --brand-2:    #7c3aed;
  --brand-bg:   #eceafc;
  --cta:        #22c55e;
  --cta-deep:   #16a34a;
  --accent:     #00d2ff;
  --accent-ink: #0b7c96;
  --accent-bg:  #e2f4f9;

  --ground:     #f2f5f9;
  --surface:    #ffffff;
  --surface-2:  #e9edf4;
  --line:       #d7dee9;

  --ink:        #141822;
  --ink-2:      #48515f;
  --ink-3:      #77808f;

  --warn:       #b45309;
  --warn-bg:    #fcf1de;

  --dark:       #141b28;
  --dark-2:     #0d131d;
  --dark-ink:   #eef2f8;
  --dark-ink-2: #a8b4c6;

  --r:   16px;
  --r-l: 22px;

  --jp: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic",
        "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--jp);
  /* 本文を大きめに。子どもにも、老眼の親にも効きます */
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

ruby rt { font-size: .5em; font-weight: 500; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

section { padding: clamp(56px, 9vw, 96px) 0; }

h2 {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.45;
  margin: 0 0 14px; text-wrap: balance;
}

.sub { font-size: 17px; color: var(--ink-2); margin: 0 0 34px; max-width: 60ch; }
.sub strong { color: var(--ink); font-weight: 700; }

p { margin: 0 0 12px; }

/* 見出しの上に置く小さな札。番号ではなく中身を書く */
.tag {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-bg);
  padding: 4px 14px; border-radius: 99em; margin-bottom: 14px;
}

/* ─────────────── ボタン ─────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 40px; border-radius: 99em;
  font-size: 19px; font-weight: 800; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, var(--cta) 0%, var(--cta-deep) 100%);
  box-shadow: 0 4px 16px rgba(22, 163, 74, .34);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(22, 163, 74, .42); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 15px 30px; border-radius: 99em;
  font-size: 16px; font-weight: 700; text-decoration: none;
  color: var(--dark-ink); box-shadow: inset 0 0 0 2px rgba(238, 242, 248, .45);
  transition: background .15s ease;
}
.btn-ghost:hover { background: rgba(238, 242, 248, .12); }

:where(.btn, .btn-ghost):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 15px; color: var(--dark-ink-2); margin: 14px 0 0; }

/* ─────────────── 01 ヒーロー ─────────────── */

.hero {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 0 0 clamp(48px, 7vw, 76px);
  /* 明るい地との境目はぼかさず、はっきり切る */
  border-bottom: 3px solid var(--brand);
}

.bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  background: linear-gradient(90deg, rgba(79, 70, 229, .34) 0%, rgba(124, 58, 237, .34) 100%);
}
.bar .wrap { display: flex; align-items: center; gap: 12px; }
.bar svg { flex: 0 0 auto; }
.bar b { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.bar span { font-size: 10px; letter-spacing: .22em; color: var(--dark-ink-2); display: block; line-height: 1.4; }

.hero-grid {
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: clamp(36px, 6vw, 64px);
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }

h1 {
  font-size: clamp(31px, 6vw, 50px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.4;
  margin: 0 0 20px; text-wrap: balance;
}

.hero-lead {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--dark-ink); margin: 0 0 8px; font-weight: 700;
}
.hero-lead em { font-style: normal; color: var(--accent); }

.hero-sub { font-size: 16px; color: var(--dark-ink-2); margin: 0 0 26px; }

.screen {
  border-radius: var(--r-l); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  background: var(--dark-2);
  aspect-ratio: 16 / 9;
}
.screen { position: relative; }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; }

/* 自動再生が止められたときに出る再生ボタン。
   再生できているあいだは .playing が付いて隠れます。
   ヒーローと 02 の2か所で使うので、[data-video] を持つ箱すべてに効かせます */
[data-video] { position: relative; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0;
  cursor: pointer; font-size: 30px; color: #fff;
  background: rgba(20, 27, 40, .72);
  box-shadow: 0 0 0 3px rgba(238, 242, 248, .5), 0 6px 20px rgba(0, 0, 0, .45);
  display: grid; place-items: center;
  transition: transform .12s ease, background .12s ease;
}
.play span { transform: translateX(3px); }
.play:hover { background: rgba(20, 27, 40, .88); transform: scale(1.06); }
.play:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* .screen だけに掛けるとヒーローにしか効かず、02 の再生ボタンが出たままになります */
[data-video].playing .play { display: none; }

/* ─────────────── スマホの人への帯 ─────────────── */

.pc-hint { display: none; }
@media (max-width: 820px) {
  .pc-hint {
    display: block;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 18px 20px; margin-top: 26px;
  }
  .pc-hint p { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
  .pc-hint strong { color: var(--ink); }
  .pc-hint button {
    font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    width: 100%; padding: 13px; border-radius: 99em;
    color: var(--brand); background: none; border: 2px solid currentColor;
  }
  .pc-hint button:active { background: var(--brand-bg); }
}

/* ─────────────── 02 ─────────────── */

/* 区切りは背景色の交互だけで付けています。
   .alt が白（--surface）、無印が薄い灰（--ground）。

   途中に節を1つ足すと、そこから先が全部ひっくり返ります。
   足したり並べ替えたりしたら、必ず下の順で見直すこと。
   隣り合う節が同じ色になると、境目が消えて1つの節に見えます。

     02 白 → 03 灰 → 04 白 → 04b 灰 → 05 白 → 06 灰 → 07 白 → 08 暗
*/
.alt { background: var(--surface); }

.shot {
  border-radius: var(--r-l); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(20, 27, 40, .13);
}

.shot-fig { margin: 0; }
.shot-video { background: var(--dark-2); aspect-ratio: 16 / 9; }
.shot-video video, .shot-video img { width: 100%; height: 100%; object-fit: cover; }
.shot-fig figcaption {
  font-size: 14.5px; color: var(--ink-3); margin-top: 12px; text-align: center;
}
.shot-fig figcaption strong { color: var(--ink-2); font-weight: 700; }

.points {
  display: grid; gap: 22px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.point h3 {
  font-size: 18px; font-weight: 800; margin: 0 0 6px; line-height: 1.5;
  display: flex; align-items: baseline; gap: 8px;
}
.point h3 i { font-style: normal; color: var(--accent-ink); }
.point p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* コース一覧は横に長い絵なので、狭い画面では潰れて字が読めない。
   読めない絵を置くくらいなら出さない */
.wide-only { margin-top: 26px; }
@media (max-width: 700px) { .wide-only { display: none; } }

/* ─────────────── 03 ─────────────── */

.pair {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .pair { grid-template-columns: 1fr auto 1fr; } }

.pair-arrow {
  font-size: 26px; color: var(--accent-ink); text-align: center;
  font-weight: 700; line-height: 1;
}
.pair figure { margin: 0; }
.pair figcaption {
  font-size: 14px; color: var(--ink-3); margin-top: 10px; text-align: center;
}
.pair .box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; display: grid; place-items: center;
  min-height: 190px;
}

.feats {
  display: grid; gap: 24px; margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; display: flex; flex-direction: column;
}
.feat-img {
  background: var(--surface-2); border-radius: 12px; padding: 14px;
  display: grid; place-items: center; margin-bottom: 16px; min-height: 150px;
}
.feat-img img { max-height: 190px; width: auto; border-radius: 6px; }
.feat h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; line-height: 1.5; }
.feat p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ─────────────── 04 安心 ─────────────── */

.safe {
  display: grid; gap: 2px; margin-top: 30px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--line);
  /* 4つなので 2×2 にする。3列にすると4つ目だけが余って空きマスができる */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.safe > div {
  background: var(--surface); padding: 24px;
  display: flex; gap: 18px; align-items: flex-start;
}
.safe h3 {
  font-size: 17px; font-weight: 800; margin: 0 0 6px; line-height: 1.5;
  color: var(--brand);
}
.safe p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* 4つの約束それぞれに1つずつ絵を付けます。
   線の太さも大きさも揃え、形だけで見分けられるようにしています。

   打ち消しの斜線は入れていません。
   この大きさ（38px）で描ける線は3〜4本までで、
   斜線を重ねると記号のほうが読めなくなります。
   実際に試したところ、封筒と広告が同じ形に見えるところまで潰れました。
   「しません」は見出しがはっきり言っているので、絵は記号だけで足ります。 */
.safe-ico {
  flex: 0 0 auto;
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--brand-bg); color: var(--brand);
  display: grid; place-items: center;
}
.safe-ico svg { width: 38px; height: 38px; display: block; }

@media (max-width: 420px) {
  .safe > div { gap: 14px; padding: 20px; }
  .safe-ico { width: 52px; height: 52px; border-radius: 14px; }
  .safe-ico svg { width: 33px; height: 33px; }
}

/* ─────────────── 04b 作っている人 ─────────────── */

.maker {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 28px; margin-top: 26px;
  /* 左の細い帯だけブランド色。文章の塊であることを示す印 */
  border-left: 4px solid var(--brand);
}
.maker p { font-size: 16px; color: var(--ink-2); margin: 0 0 14px; }
.maker p:last-child { margin-bottom: 0; }
.maker strong { color: var(--ink); font-weight: 700; }

/* ─────────────── 05 表 ─────────────── */

.t-wrap { overflow-x: auto; margin-top: 26px; }
table {
  width: 100%; border-collapse: collapse; font-size: 16px;
  background: var(--surface); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
td:first-child { font-weight: 700; white-space: nowrap; }
td .no { color: var(--warn); font-weight: 700; }

/* ─────────────── 06 手順 ─────────────── */

.steps { counter-reset: s; display: grid; gap: 18px; margin-top: 30px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 22px;
}
.step::before {
  counter-increment: s; content: counter(s);
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: 15px; font-weight: 700;
}
.step h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; line-height: 1.5; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }

.buy { margin-top: 26px; }
.buy a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 99em;
  font-size: 16px; font-weight: 700; text-decoration: none;
  color: var(--brand); box-shadow: inset 0 0 0 2px currentColor;
}
.buy a:hover { background: var(--brand-bg); }
.buy small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ─────────────── 07 FAQ ─────────────── */

.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0;
  font-size: 17px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; position: absolute; right: 4px; top: 18px;
  color: var(--brand); font-weight: 700;
}
.faq details[open] summary::after { content: "－"; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq p { font-size: 15.5px; color: var(--ink-2); margin: 0 0 18px; padding-right: 34px; }

/* ─────────────── 08 締め ─────────────── */

.last {
  background: var(--dark); color: var(--dark-ink); text-align: center;
  border-top: 3px solid var(--brand);
}
.last h2 { color: var(--dark-ink); }
.last .cta-row { justify-content: center; }

footer {
  background: var(--dark-2); color: var(--dark-ink-2);
  font-size: 14px; padding: 30px 0;
}
footer .wrap { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--dark-ink-2); }
footer span { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: baseline; }
footer time { color: var(--ink-3); font-size: 13px; }

/* ─────────────── 動きを減らす設定 ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* インラインの style="" は CSP の style-src 'self' に弾かれるので、
   ここに逃がしています。属性に直接書かないこと。 */
.pair .box--flush { padding: 0; overflow: hidden; }
.last .sub--center { color: var(--dark-ink-2); margin-inline: auto; }

/* ─────────────── 規約・ポリシーのページ ───────────────
   本文が長いので、行間と1行の長さを読み物向けに広げます。
   トップページのセクション見出し（h2）とは役割が違うため、
   .legal の中だけ別の見た目にしています。 */

.bar-solo { background: var(--dark); padding: 14px 0; }
.bar-home { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dark-ink); }
.bar-home b { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.bar-home span {
  font-size: 10px; letter-spacing: .22em; color: var(--dark-ink-2);
  display: block; line-height: 1.4;
}

.legal { padding: clamp(36px, 6vw, 64px) 0 80px; }
.legal-title { font-size: clamp(26px, 4vw, 34px); margin: 0 0 18px; letter-spacing: -.01em; }
.legal-lead {
  font-size: 16px; color: var(--ink-2); line-height: 1.95;
  margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.legal-lead strong { color: var(--ink); font-weight: 700; }

.legal h2 {
  font-size: 18px; font-weight: 800; text-align: left;
  margin: 38px 0 12px; padding-left: 12px;
  border-left: 4px solid var(--brand);
}
.legal p { line-height: 1.95; color: var(--ink-2); margin: 0 0 14px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--brand); }

.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { line-height: 1.9; color: var(--ink-2); margin-bottom: 6px; }

.legal code {
  font-family: var(--mono); font-size: 14px;
  background: var(--surface-2); padding: 1px 6px; border-radius: 5px;
}

.legal-table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  font-size: 15px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.legal-table th, .legal-table td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.legal-table th { background: var(--surface-2); font-weight: 700; color: var(--ink); }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td { color: var(--ink-2); }

.legal-note { font-size: 14px; color: var(--ink-3); }

.legal-warn {
  background: var(--warn-bg); border-left: 4px solid var(--warn);
  padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-2);
}
.legal-warn strong { color: var(--warn); }

.legal-date { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
