/* UNICORZ site
   構成・文字の扱いは Refero Styles「Dala」を参照（大きな細身の見出しと強い字詰め、細い本文、
   枠・影・カードなし、左右非対称の2カラム、粒子の星座だけが画像）。色は Dala から離れ、
   生成り色の紙に藍の墨色、UNICORZ の3本のリボン（ローズ・ベリー・ラベンダー）をやさしく使う。
   日本語の可読性のため、本文は300（Dalaは200）、行間は1.5より広く取る。 */

:root {
  --bg: #f8f5f0;             /* 生成り */
  --ink: #26243a;            /* 本文・見出し（藍の墨色） */
  --ink-2: #5c586d;          /* 補足の本文 */
  --ink-3: #6f6a7e;          /* 注記・ラベル */
  --action: #5b48c2;         /* 塗りのボタンだけ（名刺の藍紫に近い色） */
  --action-hover: #4b39ad;
  --ai-text: #5b48c2;        /* AIに任せられること */
  --accent: #a8456f;         /* ラベル・リンク・根拠番号・確認待ち（ベリー） */
  --accent-soft: rgba(168, 69, 111, 0.45);
  --saved: #2a7468;
  --error: #b3413b;
  /* リボンの色（装飾だけに使う。文字には使わない） */
  --rose: #e9868a;
  --berry: #d1709f;
  --lavender: #9c86d8;
  --hair: rgba(38, 36, 58, 0.12);
  --toggle-bg: rgba(248, 245, 240, 0.9);
  --note-bg: rgba(168, 69, 111, 0.06);
  --glow: none;

  --font: "Jost Variable", "Noto Sans JP Variable", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --wrap: min(1280px, calc(100% - 48px));
  --radius: 24px;
  --header-h: 72px;
  color-scheme: light;
}
@media (max-width: 40em) { :root { --wrap: calc(100% - 32px); --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
canvas { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3, .statement, .subheading { word-break: auto-phrase; text-wrap: balance; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- 文字の階層（Dalaの尺度を日本語向けに調整） ---------- */
.display .ribbon {
  background: linear-gradient(90deg, var(--rose), var(--berry), var(--lavender)) no-repeat 0 92% / 100% 0.1em;
  padding-bottom: 0.04em;
}
.display {
  font-size: clamp(2.4rem, 5.8vw, 5.8rem);    /* 文字の列（約58%）に2行で収まる大きさ */
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.heading-lg {
  font-size: clamp(2.1rem, 5.3vw, 4.875rem);  /* 78px */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.heading { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.035em; }
.heading-sm { font-size: clamp(1.6rem, 2.9vw, 2.625rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.04em; }
.subheading { font-size: clamp(1.35rem, 2.4vw, 2.25rem); font-weight: 400; line-height: 1.4; letter-spacing: -0.02em; }
.heading-2xs { font-size: 1.5rem; font-weight: 400; line-height: 1.4; letter-spacing: -0.02em; }
.body { font-size: 1.125rem; font-weight: 400; line-height: 1.85; color: var(--ink); }
.muted { color: var(--ink-2); }
.caption { font-size: 1rem; font-weight: 400; line-height: 1.6; color: var(--ink-3); }
.label, .caption-label {
  font-size: 1rem; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.caption-label { color: var(--ink-3); }
.narrow { max-width: 40em; }

/* 確認待ち（事業側の確認前の内容） */
.pending {
  display: inline;
  color: var(--accent);
  font-size: 0.85em; font-weight: 500;
  text-decoration: underline dashed var(--accent-soft);
  text-underline-offset: 0.3em;
}
.pending::before { content: "［"; }
.pending::after { content: "］"; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.9rem 1.6rem;
  border: 0; border-radius: 22.5px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4em;
  min-height: 44px; padding: 0 0.25rem;
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: 1rem; font-weight: 400; letter-spacing: 0.02em;
}
.btn-ghost:hover { color: var(--accent); text-decoration: none; }

/* ---------- 背景の粒子（ページ全体に固定） ---------- */
.particle-field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
/* 本文は粒子より手前に置く（負の重なり順を使わない） */
.page { position: relative; z-index: 1; }
.motion-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--toggle-bg); color: var(--ink-2);
  font-size: 0.8125rem; font-weight: 500; cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); }
.motion-toggle::before { content: "▶ "; color: var(--action); }
.motion-toggle[aria-pressed="false"]::before { content: "❚❚ "; font-size: 0.7em; vertical-align: 0.1em; }
@media (max-width: 40em) {
  /* スマホでは本文にかからないよう記号だけの小さな丸にする（ボタンの名前は読み上げで伝わる） */
  .motion-toggle { width: 40px; padding: 0; font-size: 0; box-shadow: 0 0 0 1px var(--hair); }
  .motion-toggle::before { font-size: 0.8rem; }
  .motion-toggle[aria-pressed="false"]::before { font-size: 0.6rem; }
}

/* ---------- 公開前の表示・ヘッダー ---------- */
.preview-bar {
  position: relative; z-index: 51;
  background: var(--bg); /* 粒子が文字に重ならないように */
  padding: 10px 24px 0;
  text-align: center;
  font-size: 0.875rem; line-height: 1.6; color: var(--accent);
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  padding: 0 max(24px, calc((100% - 1280px) / 2));
  /* 本文が透けて重ならないよう、不透明な背景にする */
  background: var(--bg);
}
@media (max-width: 40em) { .site-header { padding: 0 16px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: "Jost Variable", var(--font); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.28em; }
/* 名刺と同じロゴ（角が字高より上へ出るため、見た目の字高は高さの約7割） */
.brand-logo { display: block; height: 18px; width: auto; }
.brand-foot { margin: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--ink-3); font-size: 1rem; font-weight: 600; letter-spacing: 0.025em;
}
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-toggle {
  display: none; min-height: 40px; padding: 0 4px;
  background: none; border: 0;
  color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer;
}
@media (max-width: 55em) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px max(16px, calc((100% - 1280px) / 2)) 28px; background: var(--bg);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 10px 0; font-size: 1.125rem; color: var(--ink); }
  .site-nav .nav-cta { margin-top: 12px; }
}

/* ---------- 文字の列と粒子の枠（参照：Dala の左右交互の構成） ----------
   粒子は .scene-slot の中にだけ形をつくる。文字の列とは重ならない。 */
.scene {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.scene-left { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.scene-text { display: grid; gap: 22px; align-content: center; }
.scene-text > .body { max-width: 32.5em; }
.scene-slot { min-height: min(78vh, 720px); }
main > section.scene:not(.hero), .stack > .scene { min-height: min(86vh, 820px); }
@media (max-width: 56.25em) {
  .scene, .scene-left { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .scene-slot { order: -1; min-height: 28vh; }
  main > section.scene:not(.hero), .stack > .scene { min-height: 0; }
}

/* ---------- ヒーロー ---------- */
.hero {
  width: var(--wrap); margin: 0 auto;
  min-height: calc(100svh - var(--header-h) - 30px);
  align-items: stretch;
}
.hero-text { align-content: end; gap: 36px; padding: 12vh 0 clamp(56px, 9vh, 110px); }
.hero-side { display: grid; gap: 18px; max-width: 30em; }
.hero .scene-slot { min-height: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }
@media (max-width: 56.25em) {
  .hero { min-height: 0; }
  .hero .scene-slot { min-height: 34vh; }
  .hero-text { padding: 8px 0 64px; }
}

/* ---------- セクションの骨格（左右非対称の2カラム） ---------- */
main > section:not(.hero) { width: var(--wrap); margin: 0 auto; padding: clamp(96px, 14vw, 200px) 0 0; }
.split {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 96px); align-items: end;
}
.split-side { display: grid; gap: 18px; max-width: 32.5em; }
.split-tight { align-items: start; grid-template-columns: 1fr 1fr; }
.split-tight > div { display: grid; gap: 14px; align-content: start; }
.stack > * + * { margin-top: clamp(60px, 8vw, 120px); }
@media (max-width: 56.25em) {
  .split, .split-tight { grid-template-columns: 1fr; }
}

.lines { display: grid; gap: 10px; }
.lines li { position: relative; padding-left: 1.4em; font-weight: 400; line-height: 1.8; }
.lines li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

/* 見出しのかたまり */
.section-head { display: grid; gap: 22px; max-width: 52rem; }
.lines-lg { gap: 18px; }
.lines-lg li { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.6; }

/* 詳しく見る（文字の多い説明は閉じておく） */
.more { border-top: 1px solid var(--hair); }
.more + .more { border-top: 0; }
.more summary {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; cursor: pointer; list-style: none;
  color: var(--ink-2); font-size: 1rem; font-weight: 500;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; color: var(--accent); font-size: 1.2rem; width: 1em; }
.more[open] summary::before { content: "−"; }
.more summary:hover { color: var(--ink); }
.more-body { padding: 8px 0 32px; display: grid; gap: 14px; }
.more-body .lines li, .more-body.lines li { font-size: 1rem; color: var(--ink-2); }
.more-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
@media (max-width: 47.5em) { .more-grid { grid-template-columns: 1fr; } }

/* 行の並び（任せられること／人に残ること） */
.rows { display: grid; gap: clamp(36px, 5vw, 64px); }
.rows li { display: grid; grid-template-columns: minmax(8em, 0.25fr) 1fr; gap: 12px 40px; align-items: baseline; }
.rows .gap-live { grid-column: 2; color: var(--ai-text); }
@media (max-width: 40em) { .rows li { grid-template-columns: 1fr; } .rows .gap-live { grid-column: 1; } }
.statement { font-size: clamp(1.9rem, 4.2vw, 3.6rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.04em; max-width: 18em; }

/* 支援の段階 */
.phases { display: grid; gap: clamp(48px, 6vw, 80px); }
.phases li { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: baseline; }
.phases .num, .steps .num { font-family: var(--mono); font-size: 1rem; color: var(--ink-3); }
.phases h3 { grid-column: 2; grid-row: 1 / span 2; }
.phases .body { grid-column: 3; color: var(--ink-2); }
.phases .leaves { grid-column: 3; display: grid; gap: 2px; font-size: 1rem; }
@media (max-width: 56.25em) {
  .phases li { grid-template-columns: 3.5rem 1fr; }
  .phases h3, .phases .body, .phases .leaves { grid-column: 2; grid-row: auto; }
}

.pairs { display: grid; gap: clamp(40px, 5vw, 64px); }
.pairs > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 10px 48px; align-items: baseline; }
.pairs dd { color: var(--ink-2); padding-left: 1.6em; position: relative; }
.pairs dd::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 400; }
@media (max-width: 56.25em) { .pairs > div { grid-template-columns: 1fr; } }

.methods { display: grid; gap: 28px; }
.methods .body { color: var(--ink-2); margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px); }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .body { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 56.25em) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35em) { .steps { grid-template-columns: 1fr; } }

/* ---------- 体験 ---------- */
.experience > * + * { margin-top: clamp(48px, 6vw, 88px); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.composer > * { min-width: 0; }
.slot { min-width: 0; max-width: 100%; }
.composer-sentence {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.2em;
  font-size: clamp(1.6rem, 3.6vw, 3.25rem); font-weight: 400; line-height: 1.5; letter-spacing: -0.03em;
}
@media (max-width: 40em) { .composer-sentence { font-size: 1.375rem; } }
.glue { color: var(--ink-3); }
.slot select {
  appearance: none; -webkit-appearance: none;
  field-sizing: content;
  max-width: 100%;
  text-overflow: ellipsis;
  padding: 0 1.05em 0.05em 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a8456f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.1em center / 0.5em auto;
  border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0;
  color: var(--ink); font: inherit; letter-spacing: inherit;
  cursor: pointer;
}
.slot select:hover { border-bottom-color: var(--ink); }
.slot select:focus-visible { outline: none; border-bottom: 2px solid var(--accent); }
.slot select option { background: var(--bg); color: var(--ink); font-size: 1rem; letter-spacing: 0; }
.slot select:disabled { opacity: 0.5; cursor: not-allowed; }

.composer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.format { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; }
.format legend { float: left; padding: 0; margin-right: 8px; }
.format-options { display: flex; gap: 20px; }
.format-options label { position: relative; cursor: pointer; color: var(--ink-3); font-size: 1rem; font-weight: 400; padding: 6px 0; }
.format-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.format-options input:checked + span { color: var(--ink); }
.format-options input:checked + span::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 0.15em;
  border-radius: 50%; background: var(--action);
}
.format-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.format-options label:hover { color: var(--ink); }
.run-row { display: flex; align-items: center; gap: 20px; }
.btn-run { min-width: 12em; }

.ai-status { display: inline-flex; align-items: center; gap: 10px; }
.ai-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.ai-status[data-mode="live"] .dot { background: var(--action); }
.ai-status[data-mode="live"] { color: var(--ink-2); }
.ai-status[data-mode="mock"] .dot { background: var(--accent); }
.noscript { color: var(--ink-2); }

.inputs-sel { display: grid; gap: 4px; margin-bottom: 18px; font-size: 0.9375rem; }
.inputs-sel div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; }
.inputs-sel dt { color: var(--ink-3); }
.inputs-sel dd { color: var(--ink); }
.kb { display: grid; gap: 2px; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-3); }
.kb li { display: grid; grid-template-columns: 2.6em 1fr; gap: 6px; padding: 3px 0; transition: color .25s; }
.kb .kid { font-family: var(--mono); font-size: 0.75rem; }
.kb li.lit { color: var(--ink); }
.kb li.lit .kid { color: var(--accent); }

.result { min-width: 0; max-width: 64rem; display: grid; gap: 8px; }
.runs { margin-bottom: 20px; display: grid; gap: 6px; }
.runs-list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.run-tab { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-3); font-size: 0.875rem; text-align: left; }
.run-tab[aria-pressed="true"] { color: var(--ink); }
.run-tab[aria-pressed="true"]::before { content: "● "; color: var(--action); }

.doc { position: relative; min-height: 280px; }
.doc-empty { display: grid; gap: 8px; align-content: center; min-height: 280px; color: var(--ink-3); }
.doc-empty .heading-2xs { color: var(--ink); }
.doc.stale .doc-body { opacity: 0.45; }
.doc.stale::before {
  content: attr(data-stale); display: block; margin-bottom: 16px;
  color: var(--accent); font-size: 0.8125rem; font-weight: 600;
}

.doc-kind { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.doc-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.doc-kind[data-kind="saved"]::before { background: var(--saved); }
.doc-kind[data-kind="mock"]::before, .doc-kind[data-kind="draft"]::before { background: var(--accent); }
.doc-title { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 400; line-height: 1.3; letter-spacing: -0.035em; }
.doc-summary { margin-top: 18px; color: var(--ink-2); max-width: 38em; }
.doc-section { margin-top: clamp(40px, 5vw, 64px); }
.doc-h { margin-bottom: 18px; }
.doc-honest { margin-top: 8px; }

.tasks-head, .task { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }
.tasks-head { margin-bottom: 8px; }
.task { padding: 14px 0; font-size: 1rem; line-height: 1.7; animation: rise .5s ease both; }
.task .ai { color: var(--ai-text); }
.task .human { color: var(--accent); }
.task .cell-label { display: none; }
@media (max-width: 40em) {
  .tasks-head { display: none; }
  .task { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .task .cell-label { display: inline; margin-right: 8px; color: var(--ink-3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
}

.steps-out { display: grid; gap: 18px; counter-reset: step; }
.step-out { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 4px 12px; animation: rise .5s ease both; }
.step-out::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-3); padding-top: 0.45em; }
.step-out .txt { font-size: 1.1875rem; font-weight: 400; line-height: 1.7; }
.step-out .refs { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ref {
  background: none; border: 0; padding: 2px 0; cursor: pointer;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--accent);
  text-decoration: underline dotted var(--accent-soft); text-underline-offset: 0.3em;
}
.ref:hover, .ref[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.ref-quote { grid-column: 2; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.7; padding-left: 14px; box-shadow: inset 2px 0 0 var(--accent); }

.list-out { display: grid; gap: 10px; }
.list-out li { position: relative; padding-left: 1.4em; line-height: 1.75; animation: rise .5s ease both; }
.list-out li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.list-out.cautions li::before { content: "!"; color: var(--accent); font-weight: 600; }

.caret {
  display: inline-block; width: 0.5em; height: 1em; margin-left: 3px; vertical-align: -0.12em;
  background: var(--action); animation: blink 1s steps(2) infinite;
}

.result-meta { display: grid; gap: 6px; margin-top: 16px; font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); }
.result-meta strong { color: var(--ink); font-weight: 500; }
.meta-actions { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.run-log { margin-top: 18px; display: grid; gap: 2px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.run-log li { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; }
.run-log .t { text-align: right; opacity: 0.8; }
.run-log li.ok { color: var(--ink-2); }
.run-log li.warn { color: var(--accent); }

.notice { margin-top: 28px; display: grid; gap: 8px; color: var(--ink-2); }
.notice strong { color: var(--accent); font-weight: 600; font-size: 1.125rem; }

.how { color: var(--ink-2); }
.how summary { cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 400; padding: 8px 0; }
.how summary::marker { color: var(--accent); }
.how-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 28px; }
.how-body > div { display: grid; gap: 14px; align-content: start; }
.how-body .lines li { font-size: 1rem; }
@media (max-width: 47.5em) { .how-body { grid-template-columns: 1fr; } }

/* ---------- 相談フォーム（線と余白だけ） ---------- */
.contact-form { display: grid; gap: 36px; max-width: 64rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 47.5em) { .fields { grid-template-columns: 1fr; } }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.opt, .req { margin-left: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); }
.req { color: var(--accent); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0;
  color: var(--ink); font-size: 1.125rem; font-weight: 400;
}
.field select option { background: var(--bg); }
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field-err { font-size: 0.875rem; color: var(--error); }
.field-err:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.field-check input { width: 20px; height: 20px; accent-color: var(--action); }
.field-check label { font-size: 1rem; color: var(--ink); }
.field-check .field-err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form > .btn { justify-self: start; min-width: 12em; }
.contact-form .notice { margin: 0; color: var(--accent); }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--saved); }
.form-status[data-state="error"] { color: var(--error); }

/* ---------- メールでの相談 ---------- */
.mail-contact { display: grid; gap: 14px; max-width: 52rem; }
.mail-address { font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.mail-address a { color: var(--ink); background: linear-gradient(90deg, var(--rose), var(--berry), var(--lavender)) no-repeat 0 100% / 100% 0.08em; padding-bottom: 0.08em; }
.mail-address a:hover { color: var(--action); text-decoration: none; }
.mail-actions { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.mail-hint { display: grid; gap: 10px; margin-top: 28px; }
.mail-hint .lines li { font-size: 1rem; }
.foot-links { display: flex; gap: 20px; }

/* ---------- 文書ページ（プライバシーポリシー） ---------- */
.site-nav.site-nav-simple { position: static; display: flex; padding: 0; background: none; }
.doc-page { width: min(46rem, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0; display: grid; gap: 28px; }
.doc-page h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.3; }
.doc-page h2 { font-size: 1.25rem; font-weight: 500; margin-top: 20px; }
.doc-page p, .doc-page li { font-size: 1rem; line-height: 1.9; color: var(--ink-2); }
.doc-page ol, .doc-page ul { display: grid; gap: 6px; padding-left: 1.4em; list-style: disc; }
.doc-page ol { list-style: decimal; }
.draft-note { padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--note-bg); color: var(--ink); }

/* ---------- フッター ---------- */
.site-footer {
  width: var(--wrap); margin: clamp(120px, 16vw, 220px) auto 0; padding: 0 0 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px;
}


/* 昼：リボンの背後に、ごく淡いラベンダーとローズのもや（奥行き） */
html:not([data-theme="night"]) body {
  background:
    radial-gradient(ellipse 42% 60% at 78% 45%, rgba(156, 134, 216, 0.14), rgba(248, 245, 240, 0) 70%),
    radial-gradient(ellipse 30% 40% at 70% 70%, rgba(233, 134, 138, 0.08), rgba(248, 245, 240, 0) 70%),
    var(--bg);
  background-attachment: fixed;
}

/* ---------- 夜の配色（html[data-theme="night"]） ----------
   Dala の暗い舞台に近い迫力を出しつつ、真っ黒ではなく深い藍色、粒子はやわらかい発光色にする。 */
html[data-theme="night"] {
  --bg: #16142a;
  --ink: #f5f0e8;
  --ink-2: #cfc9dc;
  --ink-3: #a39db5;
  --action: #6c57dd;
  --action-hover: #7c69e8;
  --ai-text: #b9a8ff;
  --accent: #f2a7c3;
  --accent-soft: rgba(242, 167, 195, 0.5);
  --saved: #7fd6c2;
  --error: #ff9a9a;
  --rose: #ff9aa3;
  --berry: #f58fc0;
  --lavender: #b8a4ff;
  --hair: rgba(245, 240, 232, 0.14);
  --toggle-bg: rgba(22, 20, 42, 0.85);
  --note-bg: rgba(242, 167, 195, 0.08);
  color-scheme: dark;
}
/* 粒子の後ろにかすかな光のもや（参照元の、形のまわりの霞） */
html[data-theme="night"] body {
  background:
    radial-gradient(ellipse 60% 55% at 72% 42%, rgba(120, 100, 220, 0.16), rgba(22, 20, 42, 0) 70%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme="night"] .slot select option,
html[data-theme="night"] .field select option { background: #16142a; color: #f5f0e8; }

/* ---------- 動き ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
/* 見出しを1行ずつ、下からせり上げる（参照：Dala の見出しの出方）。
   文字は最初から表示しておき、画面に入った合図が届いたときだけ動かす（合図が届かない環境でも必ず読める） */
.line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line-inner { display: inline-block; }
.lines-in .line-inner { animation: line-up 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms)); }
@keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }

/* 動きの有無は、端末の「動きを減らす」設定を既定に、訪問者のボタン操作で切り替える（html.motion-off） */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition: none !important; }

@media (forced-colors: active) {
  .btn-primary { border: 2px solid ButtonText; }
  .kb li.lit { outline: 2px solid Highlight; }
}

/* 404 */
.notfound { min-height: 80vh; display: grid; align-items: center; }
.notfound section { width: var(--wrap); margin: 0 auto; display: grid; gap: 24px; }

/* 3つのすごさ */
.wow { display: grid; gap: 26px; margin-top: 8px; }
.wow li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 2px 14px; align-items: baseline; }
.wow .num { grid-row: span 2; font-family: var(--mono); font-size: 1rem; color: var(--accent); }
.wow .body { color: var(--ink-2); }

/* その先（3つの時期） */
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-3 .num { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }

/* 文言 v2（docs/copy-v2.md）で足した部品 */
/* 冒頭の見出しは1行が長い（「今までやりたかったけど、」12字）ため、文字の列を広げ、1行に収まる大きさにする */
@media (min-width: 56.3em) { .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); } }
/* rem を含め、スマホの文字サイズ設定でも大きくなるようにする（1行に収まらないときは折り返す） */
.hero .display { font-size: clamp(1.75rem, 3vw + 1rem, 4.9rem); }
.hero-sub { margin-top: -12px; color: var(--ink); }
.wow .heading-sm { line-height: 1.35; }
.wow { gap: clamp(32px, 4vw, 48px); }
.ai-note { margin-top: 14px; color: var(--ink-2); }
.people-note { max-width: 40em; color: var(--ink-2); }
/* 作業の例（固定の表）。スマホは1行ずつ縦に積む */
.example-table table { width: 100%; border-collapse: collapse; }
.example-table th, .example-table td { padding: 18px 16px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); font-size: 1.0625rem; line-height: 1.7; }
.example-table thead th { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); padding-top: 0; }
.example-table tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.example-table td:last-child { color: var(--ink-2); }
@media (max-width: 40em) {
  .example-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .example-table tr { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .example-table th, .example-table td { display: block; width: auto; padding: 0; border: 0; }
  .example-table tbody th { width: auto; font-size: 1.125rem; }
  .example-table td::before { display: block; font-size: 1rem; font-weight: 600; color: var(--accent); }
  .example-table td:nth-of-type(1)::before { content: "AIができること"; }
  .example-table td:nth-of-type(2)::before { content: "人が担うこと"; }
}
.biz-info { display: grid; gap: 10px; max-width: 40rem; margin: 0; }
.biz-info > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.biz-info dd { margin: 0; }
@media (max-width: 56.25em) { .steps-3 { grid-template-columns: minmax(0, 1fr); } }
