/* StepCut の紹介ページ。色はアプリ(src/renderer/src/styles.css)の --bg / --panel / --line / --accent に合わせ、暗い地で固定する。
   決定は docs/decisions/20261112-landing-page.md */
:root {
  color-scheme: dark;
  --bg: #1e1f22;
  --panel: #2b2d31;
  --panel-2: #313338;
  --line: #3f4147;
  --text: #e3e5e8;
  --muted: #9a9ca3;
  --accent: #4f8cff;
  --deep: #17181b;
  --accent-ink: #0d1a33;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --accent-pale: #9cc0ff;
  --clip: #3b5ea8;
  --f-display: "Sora", "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --f-body: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, sans-serif;
}

/* 英語のページ(/)は欧文の IBM Plex Sans を読み込む。和文の書体は日本語のページ(/ja/)だけ */
:root:lang(en) {
  --f-display: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: 68px;
}

/* ---------- 共通部品 ---------- */
.nav {
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  width: 112px;
  height: 34px;
}

.nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* 言語の切り替え。狭い画面でナビの一覧が隠れても出す */
.nav .lang {
  font-size: 14.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 12px;
}

.nav ul a:hover,
.nav .lang:hover,
.foot a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 16px var(--f-body);
  border-radius: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn.pri {
  background: linear-gradient(180deg, #7aa9ff, #4f8cff);
  color: var(--accent-ink);
  box-shadow:
    0 8px 28px -8px rgba(79, 140, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn.pri:hover {
  background: linear-gradient(180deg, #8db5ff, #639aff);
}

.btn.sec {
  background: var(--panel);
  border-color: var(--line);
}

.btn.sec:hover {
  background: var(--panel-2);
}

.btn.sm {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: none;
}

.pill {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-pale);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.4);
  border-radius: 99px;
  padding: 3px 13px;
}

.meta {
  font-size: 13.5px;
  color: var(--muted);
}

.sec-t {
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 700;
  margin-bottom: 10px;
}

.sec-l {
  color: var(--muted);
  margin-bottom: 30px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* 動画・画像の枠。中身は scripts/make-lp-media.cjs が StepCut で作る */
.frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.frame video,
.frame img {
  width: 100%;
}

.frame-cap {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ---------- ヒーロー ---------- */
.hero {
  padding-block: 72px 60px;
  background: radial-gradient(50% 380px at 78% 0, rgba(79, 140, 255, 0.13), transparent 70%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 52px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  margin: 18px 0;
}

.hero h1 span {
  display: inline-block;
}

.hero .lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 30em;
}

/* ---------- 機能を絞っています ---------- */
.pairs {
  margin: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.pairs > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 8px 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.pairs .hd {
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.pairs p:first-child {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--line);
}

.ease {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.ease .card {
  display: flex;
  flex-direction: column;
}

.ease h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.ease p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

/* 段の図(映像と読み上げの長さ、録画の切り分け) */
.lanes {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin-top: auto;
  background: var(--deep);
  border-radius: 10px;
  padding: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.lanes div {
  display: flex;
  gap: 3px;
  height: 32px;
}

.lanes i {
  font: 700 12px var(--f-display);
  border-radius: 5px;
  display: grid;
  place-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.lanes .v {
  background: var(--clip);
  color: #fff;
}

.lanes .h {
  font: 12.5px var(--f-body);
  color: var(--accent-pale);
  border: 1px dashed var(--accent);
  background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(79, 140, 255, 0.16) 6px 12px);
}

.lanes .a {
  background: var(--panel-2);
  padding: 0 6px;
}

.lanes .a svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-pale);
}

.lanes .r {
  background: #4a4d55;
}

.lanes .x {
  font: 11.5px var(--f-body);
  color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--panel-2) 0 5px, transparent 5px 10px);
  border: 1px dashed var(--line);
}

/* ---------- 使い方: アプリのタイムラインと同じ「段」の形 ---------- */
.flow {
  display: grid;
  grid-template-columns: 3fr 4fr 5fr 3fr;
  gap: 4px;
  margin-top: 28px;
}

.flow div {
  background: var(--panel);
  padding: 20px 20px 22px;
  border-top: 4px solid var(--clip);
  min-width: 0;
}

.flow div:first-child {
  border-radius: 10px 0 0 10px;
}

.flow div:last-child {
  border-radius: 0 10px 10px 0;
}

.flow small {
  font: 700 12px var(--f-display);
  color: var(--accent);
  letter-spacing: 0.1em;
}

.flow h3 {
  font-size: 17px;
  margin: 4px 0 6px;
}

.flow p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- できること ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--accent-pale);
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 10px;
}

/* ---------- 付けられるもの: 1 種類ずつの小さな動画 ---------- */
.kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
  margin-bottom: 20px;
}

.kinds .frame {
  border-radius: 10px;
  box-shadow: none;
}

.kinds figcaption {
  font-weight: 600;
  margin-top: 8px;
}

.kinds figcaption small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* 読み上げ: テロップと同じ動画に、音が出ている印を重ねる(動画は音声なしで載せるため) */
.kinds .frame {
  position: relative;
}

.sound {
  position: absolute;
  right: 4%;
  top: 14%;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--accent);
}

.sound i {
  width: 3px;
  height: 16px;
  border-radius: 9px;
  background: var(--accent-ink);
  transform-origin: center;
  animation: sound 0.9s ease-in-out infinite;
}

.sound i:nth-child(2) {
  animation-delay: -0.6s;
}

.sound i:nth-child(3) {
  animation-delay: -0.3s;
}

.sound i:nth-child(4) {
  animation-delay: -0.75s;
}

.sound i:nth-child(5) {
  animation-delay: -0.15s;
}

@keyframes sound {
  0%,
  100% {
    transform: scaleY(0.35);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ---------- 使いみち: 例ごとに、できた動画と編集画面 ---------- */
.use {
  padding-block: 34px;
}

.use-t {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 32px;
  align-items: end;
}

.use-t h3 {
  font-size: clamp(22px, 2.6vw, 29px);
  margin-bottom: 8px;
}

.use-t p {
  color: var(--muted);
  max-width: 38em;
}

.use-t .tags {
  margin: 0;
  justify-content: flex-end;
}

.use-m {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.use-m figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- 事実の帯 ---------- */
.factsec {
  padding-block: 20px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.facts div {
  padding: 24px 24px 24px 0;
}

.facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.facts h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.facts p {
  font-size: 14.5px;
  color: var(--muted);
}

.beta {
  font: 600 11.5px var(--f-body);
  color: var(--accent-pale);
  border: 1px solid rgba(79, 140, 255, 0.5);
  border-radius: 99px;
  padding: 0 8px;
  vertical-align: 0.15em;
}

/* ---------- FAQ・ダウンロード ---------- */
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 46em;
}

.dl {
  text-align: center;
  background: radial-gradient(50% 100% at 50% 100%, rgba(79, 140, 255, 0.18), transparent 70%);
}

.dl .mark {
  width: 60px;
  height: 60px;
  margin-inline: auto;
  filter: drop-shadow(0 0 22px rgba(79, 140, 255, 0.5));
}

.dl h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin: 10px 0 8px;
}

.dl .cta {
  justify-content: center;
  margin: 24px 0 14px;
}

.dl .all {
  color: var(--accent-pale);
  font-size: 14.5px;
}

.dl .note {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 44em;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.foot .wrap {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 26px;
}

.foot .sp {
  margin-left: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.notfound h1 {
  font-size: 26px;
}

.notfound p a {
  color: var(--accent-pale);
  text-decoration: underline;
}

@media (max-width: 820px) {
  section {
    padding-block: 50px;
  }

  .nav ul {
    display: none;
  }

  .nav .lang {
    margin-left: auto;
  }

  .hero .wrap,
  .flow,
  .ease,
  .pairs > div,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .wrap {
    gap: 36px;
  }

  .pairs .hd {
    display: none;
  }

  .flow div:first-child,
  .flow div:last-child {
    border-radius: 0;
  }

  .use-t,
  .use-m {
    grid-template-columns: minmax(0, 1fr);
  }

  .kinds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .use-t .tags {
    justify-content: flex-start;
  }

  .facts div {
    padding: 18px 0;
  }

  .facts div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sound i {
    animation: none;
  }
}
