/* wobias.com — 台帳の佇まい
   地は白。仕切りは 1px の罫線で、影と大きな角丸は使わない。
   アクセントは濃いティール 1 色。朱は「できないこと・確認できなかったこと・責任分界」専用で、
   装飾には使わない（`docs/decisions/decision-0004-visual-language.md`）。
   変数名は従来のまま（--teal / --coral など）で、意味だけ入れ替えている。 */

:root {
  --bg: #ffffff;
  --bg-warm: #f3f5f5;       /* 沈めた面。温かいクリームは使わない */
  --surface: #ffffff;
  --ink: #101314;
  --ink-soft: #464c4e;
  --muted: #7c8486;
  --line: #dfe3e3;
  --line-strong: #b9c0c0;
  --teal: #14524a;          /* アクセント（1 色） */
  --teal-ink: #0e3f39;
  --teal-soft: #eaefee;
  --coral: #9c3a1e;         /* 但し書き・できないこと専用 */
  --coral-soft: #f5ece8;
  --sun: #8a6a1f;
  --shadow: none;
  --shadow-sm: none;
  --radius: 2px;
  --radius-lg: 3px;
  /* 例外。製品の実アイコン画像だけに使う（decision-0004「形」の例外条項）。
     4 枚とも元 PNG は角まで不透明で角丸が焼き込まれていないため、2px にすると
     アイコン自身の地色（Flucra #fdfbf8 / ぷにづめ #f3eee5 = ほぼクリーム）が
     四隅に出てしまう。iOS のアイコン比率 22.37% に合わせて丸める。 */
  --radius-icon: 22%;
  --sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    "Noto Sans JP", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- nav ---------- */
/* サイトヘッダ限定。素の `nav` に当てると、ページ内の <nav>（例: サービス詳細の
   .jump）まで固定配置になってヘッダを覆うため、id で絞る。 */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  /* 不透明の白。半透明 + ぼかしは decision-0004 の「ぼかしの装飾面を置かない」に反するうえ、
     スクロール時に下層のテキストが透けて読みにくかった。面の分離は .scrolled の罫線で行う。 */
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
#nav.scrolled {
  border-bottom-color: var(--line);
}
.logo {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo span {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  align-items: center;
}
/* CTA ボタン（.btn）を除外する。除外しないと要素セレクタの分だけ
   `.nav-links a` が `.btn-primary` に勝ち、濃いティール地に灰色文字（= 読めない）になる。 */
.nav-links a:not(.btn) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover {
  color: var(--teal-ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 2px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  border: 0;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.btn-coral {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-coral:hover {
  background: #000;
}


/* 台帳（ヒーロー右）。飾りの数字ではなく、観測日つきの事実だけを置く。
   数値を足すときは観測日と正本の所在を必ず併記する（`specs/spec-site-content.md`）。 */
.ledger {
  border: 1px solid var(--line);
  background: var(--bg-warm);
}
.ledger-head,
.ledger-foot {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem;
}
.ledger-head {
  border-bottom: 1px solid var(--line);
}
.ledger-foot {
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.ledger dl {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 0.86rem;
}
.ledger dt,
.ledger dd {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.ledger dt {
  color: var(--ink-soft);
}
.ledger dd {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.ledger dl > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 5rem;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--teal);
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 0 0 0 0.6rem;
  border-radius: 0;
  margin-bottom: 1.4rem;
  box-shadow: none;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.03em;
  margin-bottom: 1.3rem;
}
.hero-title .hl {
  color: var(--ink);
}
.hero-title .u {
  border-bottom: 3px solid var(--teal);
  padding-bottom: 0.1em;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero-btns {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.hero-card img {
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  /* 写真ではなくイラストなので、狭い幅で端が切れないよう contain で全体を見せる。 */
  object-fit: contain;
  background: var(--teal-soft);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.stat {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 0.9rem 0.7rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal-ink);
  line-height: 1;
}
.stat span {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------- section base ---------- */
section {
  padding: 5.5rem 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.tag {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: none;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.9rem;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- products ---------- */
/* 色付きパネル（products / works / contact）は内側に余白を持たせる。
   .wrap は左右パディングを持たないため、パネル背景だと内容が縁に貼り付く。 */
.products,
.works {
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.8rem) clamp(1.4rem, 4vw, 3.2rem);
}
.products {
  background: var(--bg-warm);
}
.subhead {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2.2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.subhead:first-of-type {
  margin-top: 0;
}
.subhead .sh-note {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
/* 横長のフィーチャーカード（カード列の中で 1 枚だけ強く見せたいとき。
   #games のおしりあい、#products の Shopify・EC 支援で使用） */
.pcard.feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
/* feature カードは横並び + align-items:center なので、下マージンが残ると
   マージンボックスの中央揃えでアイコンが上にずれる。 */
.pcard.feature .pcard-emoji,
.pcard.feature .pcard-icon {
  margin-bottom: 0;
}
.pcard.feature .feature-body {
  flex: 1 1 320px;
}
.pcard.feature .feature-body p {
  margin-bottom: 0.9rem;
}
.pcard.feature .feature-cta {
  flex-shrink: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
/* 3 枚を等幅で並べる。2 列のままだと 3 枚目が半分の幅で 1 枚だけ残る。 */
.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  box-shadow: var(--shadow);
}
/* 製品の実アイコン。絵文字バッジ（.pcard-emoji）と同じ寸法で差し替える。
   実アイコンが存在する製品にだけ使う（無い製品に別画像を当てない）。 */
.pcard-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-icon);
  display: block;
  margin-bottom: 1.1rem;
  object-fit: cover;
  background: var(--bg-warm);
}
.pcard h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.pcard .role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.pcard p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}
.chip.status {
  color: var(--coral);
  border-color: var(--coral);
  background: transparent;
}

/* ---------- services / how ---------- */
.svc-grid,
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.how-grid {
  grid-template-columns: repeat(4, 1fr);
}
.svc,
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.svc-ic {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}
.svc h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.svc p,
.step p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

/* ---------- works (anonymized) ---------- */
.works {
  background: var(--teal-soft);
}
/* 絵文字バッジを撤去して子が 1 個になったので、flex をやめて素の箱にする。 */
.work-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
}
.work-row:last-child {
  margin-bottom: 0;
}
.work-row h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 800;
}
.work-row p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.work-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.why-item h4 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.why-item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.why-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.why-figure img {
  border-radius: var(--radius);
  height: 340px;
  width: 100%;
  object-fit: contain;
  background: var(--bg-warm);
}

/* ---------- contact ---------- */
.contact {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: clamp(2rem, 4vw, 3rem);
}
.contact .section-title,
.contact .logo {
  color: var(--ink);
}
.contact .section-sub {
  color: var(--ink-soft);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--ink);
}
.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.hp-trap {
  position: absolute;
  left: -9999px;
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.form-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
}
.form-status.ok {
  display: block;
  color: var(--teal-ink);
}
.form-status.err {
  display: block;
  color: var(--coral);
}

/* ---------- footer ---------- */
footer {
  padding: 3.5rem 0 2.5rem;
}
/* 列数がページごとに違う（サービス面は 3 列、ゲーム列を足すと 4 列）ため、
   固定の grid ではなく wrap する flex にして列数に依存させない。 */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid > div:first-child {
  flex: 2 1 250px;
}
.footer-col {
  flex: 1 1 150px;
}
.footer-grid p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 20rem;
  margin-top: 0.6rem;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--teal-ink);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- サービス詳細ページ（/services/ 配下） ---------- */
/* 固定 nav の下にアンカー先が潜り込まないよう、見出しに逃げ幅を持たせる。
   営業メールで /services/flucra/#insurance のようにアンカー付きで貼るため必須。 */
section[id],
article[id],
header[id] {
  scroll-margin-top: 6rem;
}

.sub-hero {
  padding: 8.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.sub-hero .wrap {
  position: relative;
  z-index: 1;
}
.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.crumb a {
  color: var(--ink-soft);
}
.crumb a:hover {
  color: var(--teal-ink);
}
.crumb span {
  margin: 0 0.4rem;
}
.sub-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
/* 「一言でいうと何か」。詳細ページの冒頭で必ず出す。 */
.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44rem;
  margin-bottom: 1.8rem;
}
.sub-hero .chips {
  margin-bottom: 1.8rem;
}

/* ページ内アンカー（業種別セクションへのジャンプ） */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.jump b {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  align-self: center;
  margin-right: 0.3rem;
}
.jump a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  transition: background 0.15s;
}
.jump a:hover {
  background: #cdeeeb;
}

/* 節タイトル（詳細ページ内の見出し） */
.block {
  padding: 3.5rem 0;
}
.block.tint {
  background: var(--bg-warm);
}
.block-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.block-sub {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

/* 課題カード（「こういう場面で困っていませんか」） */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.pain .quote {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.pain p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Before / After */
.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.4rem;
  align-items: stretch;
}
.ba-col {
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
}
.ba-col.before {
  background: var(--surface);
}
.ba-col.after {
  background: var(--teal-soft);
  border-color: transparent;
}
.ba-col h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.ba-col.after h3 {
  color: var(--teal-ink);
}
.ba-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ba-col li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding-left: 1.5rem;
  position: relative;
}
.ba-col.before li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-weight: 800;
}
.ba-col.after li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-ink);
  font-weight: 800;
}
.ba-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--coral);
  font-weight: 800;
}
/* 「できること / できないこと」を同じ強さで並べる 2 列。矢印を挟まないので
   before → after の流れではなく、対等な対比として読ませる。
   `.ba-col.before` の無地のままだと片方だけ弱く見えるので、色を当てて重みを揃える
   （できないことを弱く見せない = `specs/spec-site-content.md`）。 */
.ba.pair {
  grid-template-columns: 1fr 1fr;
}
.ba.pair .ba-col.before {
  background: var(--coral-soft);
  border-color: transparent;
}
.ba.pair .ba-col.before h3 {
  color: var(--coral);
}
.ba.pair .ba-col.before li::before {
  color: var(--coral);
}

/* 選択肢を並べる表（3 列以上。2 列の「項目 / 値」は .factsheet を使う） */
.dtable {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dtable th,
.dtable td {
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
  color: var(--ink-soft);
}
.dtable thead th {
  background: var(--bg-warm);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.dtable tbody tr:last-child th,
.dtable tbody tr:last-child td {
  border-bottom: 0;
}
.dtable tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 26%;
}
/* 横スクロールで逃がす。表を潰して読めなくしない。 */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .dtable {
  min-width: 34rem;
}

/* 業種別ユースケース */
.uc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.uc:last-of-type {
  margin-bottom: 0;
}
.uc-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.uc-head h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
}
.uc-head p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.uc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.uc-body h4 {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 0.6rem;
}
.uc-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.uc-body li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}
.uc-body li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.uc-body .col-after h4 {
  color: var(--teal-ink);
}

/* 仕組み（番号付きの縦リスト） */
.mech {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mech-row {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}
.mech-num {
  flex-shrink: 0;
  width: 1.8rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  padding-top: 0.15rem;
}
.mech-row h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.mech-row p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 48rem;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
}
.faq summary {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "＋";
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "－";
}
.faq details p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.8rem;
}

/* ページ末尾の CTA 帯 */
.cta-band {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: left;
}
.cta-band h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.cta-band p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
.cta-band .btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--line-strong);
}
.cta-band .btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.cta-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* サービス一覧ハブのカード */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
/* 4 枚のときは 2×2。3 列のままだと 4 枚目が 1/3 幅で 1 枚だけ残る。 */
.hub-grid.four {
  grid-template-columns: repeat(2, 1fr);
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: background 0.15s, border-color 0.15s;
}
.hub-card:hover {
  box-shadow: var(--shadow);
}
.hub-card h2 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.hub-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.hub-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.hub-card .more {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-ink);
}

/* トップのカードから詳細ページへ送る導線 */
.pcard .more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--teal-ink);
}
.pcard .more:hover {
  color: var(--teal);
}

@media (max-width: 920px) {
  .pain-grid,
  .hub-grid,
  .hub-grid.four,
  .uc-body {
    grid-template-columns: 1fr;
  }
  .ba,
  .ba.pair {
    grid-template-columns: 1fr;
  }
  .ba-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ---------- ゲーム詳細ページ（/games/ 配下） ---------- */
/* タイトルの横に実アイコンを大きく置く。実アイコンが無い製品には使わない
   （`docs/rules/rule-content.md`）。 */
.game-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.game-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-icon);
  object-fit: cover;
  background: var(--bg-warm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.game-head h1 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.game-head .tagline {
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* 基本情報テーブル */
.factsheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.factsheet th,
.factsheet td {
  text-align: left;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
}
.factsheet tr:last-child th,
.factsheet tr:last-child td {
  border-bottom: 0;
}
.factsheet th {
  width: 30%;
  color: var(--muted);
  font-weight: 700;
  background: var(--bg-warm);
}
.factsheet td {
  color: var(--ink-soft);
}

/* 開発状況の注記 */
.status-note {
  background: var(--coral-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.status-note b {
  color: var(--coral);
}

/* キービジュアル（サブヒーロー直下の 1 枚） */
.keyvisual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-warm);
}
.keyvisual img {
  width: 100%;
  height: auto;
  display: block;
}

/* スクリーンショット / 図解のギャラリー。
   実際のゲーム画面かどうかは figcaption で必ず区別できるようにする
   （`docs/rules/rule-content.md` の事実性）。 */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.shots.two {
  grid-template-columns: repeat(2, 1fr);
}
.shot {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-warm);
}
.shot figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.shot figcaption b {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
/* 「開発中の画面」「図解」など、実機の完成画面と誤読させない注記 */
.shots-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .shots,
  .shots.two {
    grid-template-columns: 1fr;
  }
}

/* ゲーム一覧カード */
.game-card {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  transition: background 0.15s, border-color 0.15s;
}
.game-card:hover {
  box-shadow: var(--shadow);
}
.game-card:last-of-type {
  margin-bottom: 0;
}
.game-card img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-icon);
  object-fit: cover;
  background: var(--bg-warm);
  flex-shrink: 0;
}
.game-card .game-card-body {
  flex: 1 1 300px;
}
.game-card h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.game-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.game-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.game-card .more {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-ink);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .game-icon {
    width: 72px;
    height: 72px;
  }
  .factsheet th {
    width: 38%;
  }
}

/* ---------- Shopify 購入シグナル リスト（/services/shopify/signals/） ---------- */
/* 買い手は「説明」より「実際に数が出ること」で判断する商材なので、
   件数ピッカーをページの中核に置く（issue #25）。埋め込むのは件数計算用の
   フラグ配列だけで、社名・ドメイン・連絡先は含めない。 */
.picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.pk-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.6rem;
  background: var(--teal-soft);
  border-bottom: 1px solid var(--line);
}
.pk-n {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--teal-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pk-n-unit {
  font-weight: 800;
  color: var(--teal-ink);
  margin-left: 0.2rem;
}
.pk-head p {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.pk-body {
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 1.2rem;
}
.pk-g > b {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}
.pk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pk-chip {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.35rem 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pk-chip:hover {
  border-color: var(--teal);
  color: var(--teal-ink);
}
.pk-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}
.pk-num {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.pk-num input[type="range"] {
  flex: 1 1 11rem;
  accent-color: var(--teal);
}
.pk-num output {
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  min-width: 6rem;
}
.pk-foot {
  padding: 0.9rem 1.6rem;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.pk-limited {
  color: var(--coral);
  font-weight: 700;
}

/* 注記。断定を避ける但し書きを本文と同じ強さで置くための箱。
   `.callout.warn` は「読み飛ばされると困る」ものだけに使う。 */
.callout {
  background: var(--bg-warm);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}
.callout.warn {
  background: var(--coral-soft);
  border-left-color: var(--coral);
}
.callout.warn b {
  color: var(--coral);
}

/* 納品イメージ・サンプル診断書に付ける「値はダミーです」のラベル。
   実在の事業者名を出さない代わりに置いているので、外さない。 */
.mock-tag,
.paper-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 2px;
  padding: 0.2rem 0.7rem;
}
.mock-tag {
  margin-bottom: 0.5rem;
}
.dtable td.num,
.dtable th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* 日付・ドメイン・列名など、値であることを見た目で示す */
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
.dtable .ng {
  color: var(--coral);
  font-weight: 700;
}
.dtable .ok {
  color: var(--teal-ink);
  font-weight: 700;
}

/* サンプル診断書（1 社ぶんの完成形をそのまま見せる） */
.paper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.paper-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.4rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.paper-body {
  padding: 1.6rem 1.8rem;
}
.paper-body h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.paper-body h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
  margin: 1.6rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.paper-body h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 1.1rem 0 0.4rem;
}
.paper-body p,
.paper-body li {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.paper-body ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.6rem 0;
}
.paper-meta {
  list-style: none;
  padding-left: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.paper-body .big {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.paper-body .table-scroll {
  margin: 0.8rem 0;
}
.paper-note {
  background: var(--bg-warm);
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0.8rem 0;
}
.paper-note.limit {
  background: var(--coral-soft);
  border-left-color: var(--coral);
}

/* 「これがあると、初回の連絡がこう書ける」— 商品価値の要点なので囲って出す */
.punch {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
}
.punch b {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--teal-ink);
  margin-bottom: 0.6rem;
}
.punch q {
  display: block;
  font-size: 1rem;
  line-height: 1.85;
  quotes: "「" "」";
}
.punch .src {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* 長い資料（診断書・定義表・内訳）は既定で畳む。読ませたい順に前へ出し、
   証拠として要る内容は消さずに「詳しく見る」の下に置く。 */
.fold {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 1.2rem;
  margin-top: 1.4rem;
}
.fold > summary {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--teal-ink);
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::before {
  content: "＋";
  font-weight: 800;
}
.fold[open] > summary::before {
  content: "－";
}
.fold[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.fold > *:last-child {
  margin-bottom: 1.2rem;
}
.fold .paper {
  box-shadow: none;
}

/* 事実を並べる箇条書き（カードにするほどでもないもの） */
.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 46rem;
}
.plain-list li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  padding-left: 1.1rem;
  position: relative;
}
.plain-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}
.plain-list b {
  color: var(--ink);
}

/* ピッカーから引き継いだ条件の表示 */
.picked {
  font-size: 0.84rem;
  color: var(--ink-soft);
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}

/* フォームの複数選択（カテゴリ / 購入シグナル） */
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.5rem;
}
.opt {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.opt:hover {
  border-color: var(--teal);
}
.opt input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--teal);
}
.opt span span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font: inherit;
  background: var(--bg);
}
.field .field-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
/* チェックボックス群は fieldset + legend で括る（読み上げで項目名が付くように） */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}
fieldset.field > .group-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  padding: 0;
}

/* ---------- 読み手で分ける入口（/services/shopify/ のハブ） ---------- */
/* 同じ領域で客が 2 種類いるとき、並列のカードではなく「あなたはどちら側か」を
   先に選ばせる（`docs/decisions/decision-0003-site-ia.md`）。 */
.lanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}
.lane {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, border-color 0.15s;
}
.lane:hover {
  box-shadow: var(--shadow);
}
/* 「あなたはどちら側か」。ここが lane の主役なので、見出しより先に読ませる。 */
.lane-who {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.lane h2 {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}
.lane p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.lane .more {
  margin-top: auto;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--teal-ink);
}

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

/* ---------- 運用の画面イメージ（/services/flucra/） ---------- */
/* 実データではないので、必ず `.screen-tag` を付けて区別する
   （`docs/specs/spec-site-content.md`）。項目は実装の承認キュー画面に合わせている。 */
.screens {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
  align-items: start;
}
.screen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.screen-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 2px;
  padding: 0.15rem 0.6rem;
  margin-left: auto;
}
.screen-body {
  padding: 1.1rem 1.2rem;
}
.screen-cap {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

/* 承認待ちカード（Review Queue） */
.appr {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: var(--bg);
}
.appr + .appr {
  margin-top: 0.8rem;
}
.appr-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
.appr-head b {
  font-size: 0.98rem;
}
.appr-pri {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 2px;
  padding: 0.15rem 0.6rem;
}
.appr-desc {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.appr-out {
  margin-top: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem;
  color: var(--ink-soft);
  white-space: pre-wrap;
}
.appr-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.appr-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.appr-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 0.4rem 1.1rem;
  border: 1px solid transparent;
}
.appr-btn.ok {
  background: var(--teal);
  color: #fff;
}
.appr-btn.ng {
  background: var(--surface);
  color: var(--coral);
  border-color: var(--coral);
}

/* 承認リクエストが届くところ（チャット風） */
.thread {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bubble {
  max-width: 92%;
  font-size: 0.84rem;
  line-height: 1.7;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: var(--bg-warm);
  color: var(--ink-soft);
}
.bubble.me {
  align-self: flex-end;
  background: var(--teal-soft);
  color: var(--ink);
}
.bubble b {
  display: block;
  color: var(--ink);
}
.bubble .who {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

/* 記録（トレース）の一覧 */
.trace {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.trace th,
.trace td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.trace thead th {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.trace tbody tr:last-child td {
  border-bottom: 0;
}
.trace .allow {
  color: var(--teal-ink);
  font-weight: 700;
}
.trace .deny {
  color: var(--coral);
  font-weight: 700;
}

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

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */
/* ナビのテキストリンクは 5 本まで（`docs/specs/spec-site-content.md`）。
   まず間隔と文字サイズで吸収し、それでも足りない幅では畳む。
   `.nav-opt` は「6 本目がどうしても要るとき」用の待機機構で、常用しない。
   通常は HTML 側に付与が 0 件なのが正しい状態（未使用 = デッドコードではない）。 */
@media (max-width: 1080px) {
  .nav-links {
    gap: 1.1rem;
  }
  /* CTA も一緒に縮める。テキストリンクだけ縮めると CTA が相対的に太る。 */
  .nav-links a:not(.btn),
  .nav-links .btn {
    font-size: 0.88rem;
  }
}
@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .card-grid,
  .card-grid.three,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 880px) {
  .nav-links li.nav-opt {
    display: none;
  }
}
/* ナビを畳む幅。日本語のテキスト 5 本 + ロゴ + CTA が 1 行に収まらなくなる境界は
   概算で 705–710px（`docs/specs/spec-site-content.md` に算出根拠。**ブラウザ実測ではない**）。
   730px はそこに約 20px の余裕を足した値で、タブレット縦（768px / 820px）ではナビを残す。
   従来はここが 560px だったため、561px から境界までの帯でナビが溢れ、
   `body { overflow-x: hidden }` に切られて右端が欠けていた。
   ナビを丸ごと隠すと「お問い合わせ」CTA まで消えて導線が切れるので、
   テキストリンクだけ畳んで CTA ボタンは残す。 */
@media (max-width: 730px) {
  .nav-links {
    gap: 0.6rem;
  }
  .nav-links li:not(.nav-cta) {
    display: none;
  }
  .nav-links .btn {
    padding: 0.55rem 1.05rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 560px) {
  .how-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
