/* ============================================================
   Kokeko LP — Sunrise トーン
   カラートークンは ios/Kokeko/DesignSystem/Theme.swift と同値。

   多言語方針:
   - フォントはラテン優先→和文フォールバック。欧文グリフはラテン側、
     和文グリフは和文側が自動的に受け持つので、1スタックで両言語に効く。
   - 文字サイズ・行間・字送りは html[lang] で切り替える。
     和文は 13px/1.75 で自然だが、欧文は同値だと小さくスカスカに見えるため。
   ============================================================ */

:root {
  /* KK.C */
  --canvas: #FCF3EA;
  --canvas-deep: #EFE7DC;
  --surface: #FFFFFF;
  --primary: #FF7B57;
  --primary-light: #FF8A66;
  --primary-soft: #FFB68F;
  --primary-ink: #9A5238;
  --ink: #3E2F28;
  --ink-body: #4A3A33;
  --ink-sub: #5A4A3E;
  --muted: #8A7A6E;
  --muted-light: #A0907F;
  --border: #F0E2D6;
  --border-strong: #DBCFBF;
  --divider: #F2E6DA;
  --fill-soft: #F2E8DD;
  --sunrise-top: #FFEDE2;
  --sunrise-bottom: #FFE1D3;
  --sunrise-border: #FBD8C5;
  --pro-top: #FFE6D0;
  --pro-bottom: #FFD9BE;
  --night-1: #2E2320;
  --night-2: #6B3A2E;
  --night-3: #FF8A66;

  /* KK.F — ラテン優先。和文フォントは CJK のみを受け持つ */
  --font-body: "Nunito", "M PLUS Rounded 1c", sans-serif;
  --font-display: "Baloo 2", "Zen Maru Gothic", var(--font-body);

  /* 見出しウェイト。Baloo 2 は 800 が上限、Zen Maru Gothic は 800 要求で 900 が選ばれる */
  --fw-display: 800;

  /* KK.R / KK.S */
  --r-card: 20px;
  --r-card-small: 16px;
  --r-control: 14px;
  --gutter: 20px;

  /* kkCardShadow 相当 */
  --card-shadow: 0 4px 12px rgba(180, 140, 110, 0.10);
  --card-shadow-strong: 0 8px 28px rgba(180, 140, 110, 0.16);

  /* ---- 和文のタイポメトリクス（既定） ---- */
  --lh-body: 1.75;
  --lh-heading: 1.35;
  --ls-display: 0.01em;
  --ls-body: 0;

  --fs-100: 11px;  /* 注記・キャプション */
  --fs-200: 12px;  /* アイブロウ・フッター */
  --fs-300: 13px;  /* 本文（カード・表・FAQ） */
  --fs-400: 15px;  /* リード文 */
  --fs-500: 16px;  /* カード見出し */
  --fs-600: 17px;  /* ステップ見出し */

  /* 欧文で必要になる行長の上限。和文では緩めに効かせる */
  --measure-lead: 44em;
  --measure-card: 44em;
}

/* ---- 欧文のタイポメトリクス ---- */
html[lang="en"] {
  --lh-body: 1.62;
  --lh-heading: 1.15;
  --ls-display: -0.02em;
  --ls-body: 0;

  --fs-100: 12px;
  --fs-200: 13px;
  --fs-300: 15px;
  --fs-400: 17px;
  --fs-500: 17px;
  --fs-600: 19px;

  --measure-lead: 34em;
  --measure-card: 34em;
}

/* 和文は約物のアキを詰めた方が締まる */
html[lang="ja"] body {
  font-feature-settings: "palt" 1;
  word-break: normal;
  line-break: strict;
}

/* 欧文は長い固有名詞や URL が箱を割らないように */
html[lang="en"] body {
  overflow-wrap: break-word;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-body);
  background: var(--canvas);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--ink); line-height: var(--lh-heading); }

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

/* 言語をまたいで再利用する折り返し制御 */
.nowrap { white-space: nowrap; }

/* ---------- スクロール登場 ---------- */

/* JS有効時（htmlに.jsが付く）だけ初期非表示にする。無効環境ではそのまま見える。 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sun, .ticker-track { animation: none !important; }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  padding: 14px 34px;
  font-size: var(--fs-500);
  box-shadow: 0 8px 22px rgba(255, 123, 87, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(255, 123, 87, 0.45); }

.btn-note { font-size: var(--fs-100); font-weight: 500; opacity: 0.85; }

.btn-ghost {
  padding: 14px 28px;
  font-size: var(--fs-400);
  color: var(--primary-ink);
  border: 1.5px solid var(--sunrise-border);
  background: rgba(255, 255, 255, 0.6);
}

.btn-small {
  background: var(--ink);
  color: var(--canvas);
  padding: 8px 20px;
  font-size: var(--fs-200);
  white-space: nowrap;
}

.btn-large { padding: 18px 44px; font-size: calc(var(--fs-500) + 2px); }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* 背景は全幅、中身は1080pxに揃える */
  padding: 14px max(var(--gutter), calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

/* アプリアイコンのベクター版。角丸は SVG 側で描いているので、
   影は要素の矩形ではなく塗りの形に沿う drop-shadow を使う。 */
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  filter: drop-shadow(0 2px 5px rgba(210, 120, 85, 0.28));
}

.header-nav { display: flex; gap: 22px; font-size: var(--fs-200); font-weight: 700; color: var(--ink-sub); }
.header-nav a:hover { color: var(--primary); }

.header-end { display: flex; align-items: center; gap: 12px; }

@media (max-width: 640px) { .header-nav { display: none; } }

/* ---------- 言語切替 ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--sunrise-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-100);
  font-weight: 700;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.lang-switch a:hover { color: var(--primary-ink); }
.lang-switch a[aria-current="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

@media (max-width: 420px) { .lang-switch { display: none; } }

/* ---------- ヒーロー ---------- */

.hero { position: relative; overflow: hidden; }

.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sunrise-top), var(--canvas) 75%);
  z-index: -1;
}

.sun {
  position: absolute;
  top: 60px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 143, 0.55), rgba(255, 182, 143, 0) 70%);
  animation: sun-breathe 7s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  filter: blur(2px);
}
.cloud-a { width: 220px; height: 46px; top: 110px; left: -40px; }
.cloud-b { width: 160px; height: 36px; top: 240px; right: 18%; }

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
}

.hero-eyebrow {
  display: inline-block;
  max-width: 100%;
  font-size: var(--fs-200);
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary-ink);
  background: var(--sunrise-bottom);
  border: 1px solid var(--sunrise-border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
/* マーカー帯。インライン要素の絶対配置はフォントの content box が基準で、
   その基準はスタック先頭の利用可能フォント＝Baloo 2 が決める（和文ページでも同じ）。
   Baloo 2 は descent が 0.52em と深いため、box 下端からではなく
   ベースラインから逆算して置かないと文字の下に外れて棒線に見える。 */
.hero-title em::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  bottom: calc(0.52em - 0.14em); /* 帯の下端をベースラインの 0.14em 下に */
  height: 0.34em;
  background: var(--primary-soft);
  opacity: 0.45;
  border-radius: 999px;
  z-index: -1;
}

/* 和文の句読点は字面の右に約 0.6em の余白を持つ。em の箱がそこまで広がると
   マーカー帯だけが飛び出して棒に見えるので、句点の分を詰めて箱を字面に合わせる。
   色は em の内側のままなので、句点もハイライト色で残る。 */
.hero-title em .trail-punct { margin-right: -0.58em; }

.hero-sub {
  font-size: var(--fs-400);
  color: var(--ink-sub);
  max-width: var(--measure-lead);
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 電話モック ---------- */

.phone {
  justify-self: center;
  width: 260px;
  border-radius: 44px;
  padding: 10px;
  background: var(--ink);
  box-shadow: var(--card-shadow-strong), 0 30px 60px rgba(62, 47, 40, 0.25);
  transform: rotate(3deg);
}

.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night-1), var(--night-2) 55%, var(--night-3));
}

.phone-screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- ティッカー ---------- */

.ticker {
  border-top: 1px solid var(--sunrise-border);
  border-bottom: 1px solid var(--sunrise-border);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker-track span {
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--primary-ink);
  white-space: nowrap;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- セクション共通 ---------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px var(--gutter);
  text-align: center;
}

.section-tinted {
  max-width: none;
  background: var(--fill-soft);
}
.section-tinted > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  margin-bottom: 48px;
}

/* ---------- コアループ ---------- */

.loop {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
  text-align: left;
}

@media (max-width: 780px) { .loop { grid-template-columns: 1fr; } }

.loop-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px 24px 24px;
  box-shadow: var(--card-shadow);
  counter-increment: step;
}

.loop-step::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 14px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 10px rgba(255, 123, 87, 0.4);
}

.loop-time {
  display: inline-block;
  font-size: var(--fs-100);
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary-ink);
  background: var(--sunrise-bottom);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.loop-step h3 { font-size: var(--fs-600); text-wrap: balance; margin-bottom: 8px; }
.loop-step p { font-size: var(--fs-300); color: var(--ink-sub); max-width: var(--measure-card); }

/* ---------- 特徴 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  text-align: left;
}

/* 欧文はカード内の文字量が増えるので下限を広げ、4列を維持しやすくする */
html[lang="en"] .features { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-strong); }

/* 囲みを外して線だけにする。
   角丸バッジ＋グラデ＋均一ストロークの組み合わせは量産テンプレの型で、
   中身が何であれ「どこかで見た画面」に見えてしまう。線の太さを場所ごとに
   変え、直線と真円を避けたのも同じ理由（SVG 側で作り分けてある）。 */
.feature-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--primary);
}
.feature-icon svg { width: 40px; height: 40px; overflow: visible; }
.feature-card h3 { font-size: var(--fs-500); text-wrap: balance; margin-bottom: 6px; }
.feature-card p { font-size: var(--fs-300); color: var(--ink-sub); }

/* ---------- Pro ---------- */

.pricing {
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pro-top), var(--pro-bottom));
  border: 1px solid var(--sunrise-border);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow-strong);
  overflow: hidden;
}

/* 欧文はラベルが横に伸びるので比較表の器を広げる */
html[lang="en"] .pricing { max-width: 540px; }

.pricing-head { padding: 34px 28px 24px; }

.pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-200);
  line-height: 1.5;
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 14px;
}

.pricing-price {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 48px;
  letter-spacing: var(--ls-display);
  color: var(--ink);
  line-height: 1.1;
}
.pricing-price small { font-size: var(--fs-500); font-weight: 700; color: var(--muted-light); }

.pricing-trial { font-size: var(--fs-300); font-weight: 700; color: var(--primary-ink); margin-top: 6px; }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--fs-300);
}

.compare th, .compare td { padding: 13px 16px; }
.compare thead { background: var(--divider); font-size: var(--fs-200); }
.compare tbody tr + tr { border-top: 1px solid var(--divider); }
.compare td:first-child { text-align: left; color: var(--ink-body); width: 38%; }
.compare td:nth-child(2) { color: var(--muted-light); }
.compare .compare-pro { font-weight: 700; color: var(--primary-ink); }

/* ---------- FAQ ---------- */

.faq { max-width: 640px; margin: 0 auto; text-align: left; display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card-small);
  padding: 18px 22px;
  box-shadow: var(--card-shadow);
}

.faq summary {
  font-weight: 700;
  font-size: var(--fs-400);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { font-size: var(--fs-300); color: var(--ink-sub); margin-top: 10px; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: 110px var(--gutter) 120px;
  overflow: hidden;
}

.cta-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(255, 138, 102, 0.5), transparent),
    linear-gradient(180deg, var(--canvas), var(--sunrise-bottom));
}

.cta-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  max-width: 16em;
  margin: 0 auto 14px;
}

.cta-sub {
  font-size: var(--fs-400);
  color: var(--ink-sub);
  max-width: var(--measure-lead);
  margin: 0 auto 32px;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--ink);
  color: var(--canvas-deep);
  text-align: center;
  padding: 44px var(--gutter);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-500);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: var(--fs-200);
  margin-bottom: 18px;
}
.site-footer nav a:hover { color: var(--primary-soft); }

.footer-copy { font-size: var(--fs-100); opacity: 0.55; }

/* ==========================================================================
   法務ページ（/terms /privacy /sctl /contact）
   ビルドステップが無いので各HTMLに同じシェルを書く。共有はこのCSSだけ。
   ========================================================================== */

/* LPのヘッダーはスクロール連動のナビを持つが、法務ページは戻る導線だけで足りる */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(var(--gutter), calc((100% - 760px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px var(--gutter) 72px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 28px;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: var(--ink);
}

.legal .updated {
  margin-top: 8px;
  font-size: var(--fs-200);
  color: var(--muted);
}

.legal .intro {
  margin-top: 24px;
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  color: var(--ink-body);
}

.legal h2 {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: var(--fs-600);
  line-height: var(--lh-heading);
  color: var(--ink);
}

.legal h3 {
  margin-top: 22px;
  font-size: var(--fs-500);
  font-weight: 700;
  color: var(--ink);
}

.legal p,
.legal li {
  margin-top: 12px;
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--ink-body);
}

.legal ul,
.legal ol {
  margin-top: 6px;
  padding-left: 1.35em;
}

.legal li { margin-top: 8px; }
.legal li::marker { color: var(--primary-soft); }

.legal a {
  color: var(--primary-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--primary); }

.legal strong { font-weight: 700; color: var(--ink); }

/* 読み飛ばされたくない要点（端末内処理・通信の秘密など） */
.legal .callout {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--sunrise-border);
  border-radius: var(--r-card-small);
  background: linear-gradient(180deg, var(--sunrise-top), var(--sunrise-bottom));
}

.legal .callout p { margin-top: 8px; }
.legal .callout p:first-child { margin-top: 0; }

/* 特商法の定義リスト。狭い画面では縦積みにする */
.legal .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}

.legal .row .k {
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--ink);
}

.legal .row > div:not(.k) {
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--ink-body);
}

/* 外部送信規律の一覧表 */
.legal-table-wrap { margin-top: 16px; overflow-x: auto; }

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-300);
}

.legal th,
.legal td {
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  text-align: left;
  vertical-align: top;
  line-height: var(--lh-body);
  color: var(--ink-body);
}

.legal th {
  background: var(--fill-soft);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.legal .back {
  display: inline-block;
  margin-top: 44px;
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--primary-ink);
  text-decoration: none;
}
.legal .back:hover { color: var(--primary); }

/* ---------- お問い合わせフォーム ---------- */

.cform {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

/* display を指定した要素は hidden 属性が効かない（UAの [hidden]{display:none} に
   クラスセレクタが勝つ）。送信後にフォームを隠せなくなるので明示する。 */
.cform[hidden] { display: none; }

.cform label { display: grid; gap: 6px; }

.cform label > span {
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--ink);
}

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: var(--lh-body);
  color: var(--ink-body);
}

.cform textarea { resize: vertical; }

.cform input:focus-visible,
.cform select:focus-visible,
.cform textarea:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 1px;
  border-color: var(--primary-soft);
}

.cform .req { color: var(--primary); margin-left: 4px; }

.cform-note {
  font-size: var(--fs-100);
  color: var(--muted);
  line-height: var(--lh-body);
}

.cform-msg {
  margin: 0;
  padding: 11px 14px;
  border-radius: var(--r-control);
  font-size: var(--fs-300);
}

.cform-msg.err {
  border: 1px solid var(--sunrise-border);
  background: var(--sunrise-top);
  color: var(--primary-ink);
}

.cform button { justify-self: start; }
.cform button[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 640px) {
  .legal h1 { font-size: 23px; }
  .legal .row { grid-template-columns: 1fr; gap: 4px; }
  .legal .row .k { color: var(--muted); }
}

/* ---------- 404 ---------- */

.notfound { text-align: center; padding-top: 72px; }

.notfound-code {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 64px;
  line-height: 1;
  color: var(--primary-soft);
  letter-spacing: 0.02em;
}

.notfound h1 { margin-top: 12px; }
.notfound .intro { margin-left: auto; margin-right: auto; }

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 32px;
  font-size: var(--fs-300);
}

.notfound-links a {
  color: var(--primary-ink);
  text-decoration: none;
  font-weight: 700;
}
.notfound-links a:hover { color: var(--primary); }
