/*
 * Kaisell 紹介ページ v2（specs/landing_redesign_plan_20261016.md と 5人のレビュー review/expert_review_*_landing_20261016.md）
 * JavaScript なし・外部の読み込みなし。style 属性・<style>・data: の画像は CSP で止まるので使わない（SECL-07）
 * 色は白文字との比が 4.5:1 以上になるもの（UXL-03・ENGL-02）
 */
:root {
  color-scheme: light dark;
  --brand: #1d4ed8;
  --hero-bg: linear-gradient(160deg, #1d4ed8 0%, #3730a3 100%);
  --on-hero: #ffffff;
  --on-hero-2: #e0e7ff;
  --link: #0064d2;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --ink: #111114;
  --ink-2: #3c3c43;
  --ink-3: #5a5a60;
  --line: #e3e6ee;
  --pos: #1f7a35;
  --neg: #c8102e;
  --trust-bg: #0b1020;
  --trust-ink: #c9d1e0;
  --pro: linear-gradient(135deg, #2f7cf6, #5b4ef0);
  --shadow-card: 0 1px 2px rgb(15 23 42 / 5%), 0 8px 24px rgb(15 23 42 / 6%);
  --shadow-shot: 0 24px 48px -20px rgb(15 23 42 / 45%), 0 0 0 1px rgb(15 23 42 / 6%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --hero-bg: linear-gradient(160deg, #1e3a8a 0%, #312e81 100%);
    --on-hero-2: #c7d2fe;
    --link: #8ab4ff;
    --bg: #0b1020;
    --bg-alt: #11182b;
    --surface: #151b2e;
    --ink: #f2f4f8;
    --ink-2: #c9d1e0;
    --ink-3: #a1a1aa;
    --line: #263049;
    --pos: #4ade80;
    --neg: #ff8095;
    --trust-bg: #050812;
    --shadow-card: 0 0 0 1px #263049;
    --shadow-shot: 0 24px 48px -20px rgb(0 0 0 / 70%), 0 0 0 1px #263049;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--link);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 8px;
}
.on-hero a:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 6px #1e3a8a;
}
.nw {
  display: inline-block;
}
.num {
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.small {
  font-size: 13px;
  line-height: 1.6;
}
.muted {
  color: var(--ink-3);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: #fff;
  color: #1d4ed8;
  padding: 8px 12px;
  border-radius: 8px;
}

/* 見出し */
h1,
h2,
h3 {
  text-wrap: balance;
}
h2 {
  font-size: clamp(24px, 3vw + 12px, 36px);
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 6px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin: 0 0 6px;
}
.section-lead {
  color: var(--ink-2);
  max-width: 36em;
  margin: 0 0 28px;
}

/* App Store の公式バッジ（Apple の配布物をそのまま使う。色・形を変えない・アニメーションしない。ASCL-02） */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
}
.badge img {
  display: block;
  height: 54px;
  width: auto;
}
.mid-cta .badge,
.final .badge {
  justify-content: center;
}

/* ボタン（公式バッジに似せない：Apple のロゴ・黒地を使わない） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.btn-light {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 45%);
}
.btn-brand {
  background: var(--brand);
  color: #fff;
}

/* ヘッダーとヒーロー（青の帯） */
.hero-band {
  background: var(--hero-bg);
  color: var(--on-hero);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.brand img {
  border-radius: 7px;
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}
.hero {
  display: grid;
  gap: 32px;
  padding: 24px 0 0;
}
.hero h1 {
  font-size: clamp(30px, 6.4vw + 8px, 54px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.hero .lead {
  color: var(--on-hero-2);
  font-size: 17px;
  max-width: 32em;
  margin: 0 0 20px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  font-size: 14px;
  font-weight: 700;
}
.cta-note {
  color: var(--on-hero-2);
  font-size: 14px;
  margin: 10px 0 16px;
}
.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--on-hero-2);
}
.trust-inline li::before {
  content: '✓ ';
  font-weight: 700;
  color: #fff;
}
.hero-shot {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto -120px;
  width: min(300px, 78vw);
}
.shot {
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow-shot);
  background: #fff;
}
.hero-after {
  padding-top: 160px;
}

@media (min-width: 900px) {
  .wrap {
    padding: 0 32px;
  }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 48px 0 0;
  }
  .hero-shot {
    margin: 0 0 -160px auto;
    width: 320px;
  }
  .hero-after {
    padding-top: 260px;
  }
}

/* セクション */
.sec {
  padding: 64px 0;
}
.sec.alt {
  background: var(--bg-alt);
}
@media (min-width: 900px) {
  .sec {
    padding: 104px 0;
  }
}

/* 計算の例 */
.calc {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  max-width: 560px;
}
.calc-title {
  font-weight: 700;
  margin: 0 0 12px;
}
.calc dl {
  margin: 0;
}
.calc dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.calc dt {
  color: var(--ink-2);
}
.calc dd {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}
.calc .hl dd {
  font-size: 40px;
  line-height: 1.1;
  color: var(--brand);
}
.calc .neg {
  color: var(--neg);
}
.calc-note {
  margin: 14px 0 0;
}
@media (prefers-color-scheme: dark) {
  .calc .hl dd {
    color: #8ab4ff;
  }
}
.example-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .example-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.defs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.defs li {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
}
.defs b {
  display: block;
}

/* 機能の紹介（説明と切り抜きを左右に） */
.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
}
.feature + .feature {
  border-top: 1px solid var(--line);
}
.feature p {
  color: var(--ink-2);
  margin: 0;
  max-width: 34em;
}
.feature .shot {
  width: min(360px, 100%);
  border-radius: 20px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .feature.rev .feature-text {
    order: 2;
  }
}
.tag-pro {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pro);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.mid-cta {
  text-align: center;
  padding-top: 24px;
}

/* 3ステップ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* 記録は運営者に送らない（暗い帯） */
.trust {
  background: var(--trust-bg);
  color: #fff;
}
.trust h2 {
  color: #fff;
}
.trust .section-lead,
.trust p {
  color: var(--trust-ink);
}
.trust .eyebrow {
  color: #a5b4fc;
}
.trust-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-grid div {
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  padding: 24px;
}
.trust-grid h3 {
  color: #fff;
}
.trust-grid p {
  margin: 0;
}

/* 料金 */
.plans {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.plan h3 {
  font-size: 22px;
}
.plan .price {
  font-weight: 700;
  margin: 0 0 12px;
}
.plan ul {
  margin: 0 0 12px;
  padding-inline-start: 1.2em;
  color: var(--ink-2);
}
.plan p {
  margin: 0;
  color: var(--ink-2);
}
.plan-free {
  outline: 2px solid var(--brand);
}
.plan-pro h3::after {
  content: 'Pro';
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pro);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.plans-note {
  margin: 16px 0 0;
  color: var(--ink-2);
}

/* よくある質問 */
.faq {
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--brand);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

/* 最後の呼びかけ */
.final {
  text-align: center;
  padding: 72px 0;
}
.final h2 {
  color: #fff;
}
.final p {
  color: var(--on-hero-2);
}

/* フッター */
footer {
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--ink-3);
}
footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
footer p {
  margin: 0 0 8px;
}
/* 言語の一覧（scripts/build-site-langs.mjs が書く）。いま見ている言語は太字 */
footer .langs a[aria-current='page'] {
  font-weight: 700;
  text-decoration: none;
}

/* 動き：ヒーローが1回だけ。繰り返しの動きは無し。設定で減らせる（UXL-18） */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .btn {
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease;
  }
  .btn:hover {
    transform: translateY(-1px);
  }
  .btn:active {
    transform: translateY(1px) scale(0.99);
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
