/* 項目409 アンケートご回答特典 3つの整理・診断ツール 共通スタイル
 * 書体: 明朝体（見出し・数値）× ゴシック体（本文・入力・UI）
 * 配色: 生成り紙面 70% / 墨・深緑 25% / くすみ金 5%
 * モーション参照:
 *   // Motion Prompt #056 · MIT License (c) 2026 Shohei Ohtaki · https://showheyohtaki.github.io/motion-prompt/#056
 *   // Motion Prompt #068 · MIT License (c) 2026 Shohei Ohtaki · https://showheyohtaki.github.io/motion-prompt/#068
 *   // Motion Prompt #086 · MIT License (c) 2026 Shohei Ohtaki · https://showheyohtaki.github.io/motion-prompt/#086
 */

:root {
  --paper: #f8f5ee;
  --sheet: #fffdf9;
  --tint: #f1ece1;
  --tint-strong: #e8e1d2;
  --ink: #1e1d1a;
  --ink-sub: #4d4840;
  --ink-muted: #5c564c;
  --rule: #dcd4c4;
  --rule-strong: #c4b9a3;
  --primary: #224d43;
  --primary-hover: #193b33;
  --primary-soft: #e7f0ed;
  --gold: #9a7218;
  --gold-line: #c49b3e;
  --gold-soft: #f6eedb;
  --warn: #a4372c;
  --warn-soft: #fbeee9;
  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", Georgia, serif;
  --sans: "Noto Sans JP", "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --max-w: 760px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-anchor: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(154, 114, 24, 0.045) 0.75px, transparent 0.75px),
    radial-gradient(rgba(30, 29, 26, 0.025) 0.75px, transparent 0.75px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.03em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: normal;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-line);
  outline-offset: 2px;
}

.nw {
  display: inline-block;
  white-space: nowrap;
}

/* 助詞縮小（大見出し用） */
.j {
  font-size: 0.76em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* トップナビゲーション */
.site-nav {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px 5px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  display: inline-block;
  transform: rotate(45deg);
}

.nav-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--tint-strong);
}

/* Motion Prompt #086: 下線アニメーション (0.3s easeOutCubic) */
.nav-link {
  position: relative;
  display: block;
  padding: 9px 4px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-sub);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--primary);
  font-weight: 700;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ページコンテナ（紙の1枚シート構造：箱の中に箱を作らない） */
.page-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.sheet {
  background: var(--sheet);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--rule);
  padding: 32px 20px 40px;
  box-shadow: 0 1px 0 rgba(30, 29, 26, 0.04), 0 18px 40px rgba(30, 29, 26, 0.05);
}

/* ページヘッダー（エディトリアル組版） */
.doc-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}

.doc-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-line);
  flex-shrink: 0;
}

.doc-title {
  font-family: var(--serif);
  font-size: clamp(24px, 6.4vw, 34px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.doc-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-sub);
  margin-bottom: 20px;
}

.privacy-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--tint);
  border-left: 3px solid var(--primary);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.privacy-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  padding: 1px 8px;
  margin-top: 2px;
}

/* セクション区切り */
.section-rule {
  margin: 32px 0 24px;
  border: 0;
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.section-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.section-desc {
  font-size: 14.5px;
  color: var(--ink-sub);
  margin-bottom: 18px;
  line-height: 1.75;
}

/* トップハブ：目次型エディトリアル・リスト（均等カード乱立を避ける） */
.hub-hero {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-item {
  border-bottom: 1px solid var(--rule);
}

.hub-item:last-child {
  border-bottom: 0;
}

.hub-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 26px 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.hub-link:hover {
  background: rgba(241, 236, 225, 0.55);
}

.hub-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.02em;
  padding-top: 2px;
}

.hub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.hub-cat {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.hub-time {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.hub-name {
  font-family: var(--serif);
  font-size: clamp(19px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 8px;
}

.hub-summary {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-sub);
  margin-bottom: 12px;
}

.hub-cta-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

.hub-note-block {
  margin-top: 24px;
  padding: 20px;
  background: var(--tint);
  border-top: 1px solid var(--rule);
}

.hub-note-block h2 {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hub-note-block ul {
  padding-left: 1.25em;
  font-size: 14.5px;
  color: var(--ink-sub);
}

.hub-note-block li {
  margin-bottom: 4px;
}

/* フォーム入力群（落ち着いた帳票スタイル） */
.field-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.field-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.field-hint {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.65;
}

.input-row {
  display: flex;
  align-items: stretch;
  max-width: 320px;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 77, 67, 0.12);
}

.input-row input[type="text"],
.input-row input[type="number"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

.input-row input:focus {
  outline: none;
}

.input-unit {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--tint);
  border-left: 1px solid var(--rule);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-sub);
  white-space: nowrap;
}

/* 補助メモ（押し付けない参考計算） */
.ref-calc {
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--tint);
  font-size: 13.5px;
  color: var(--ink-sub);
  line-height: 1.65;
}

.ref-calc strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.field-error {
  font-size: 14px;
  font-weight: 700;
  color: var(--warn);
  min-height: 1.4em;
}

/* ボタン */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  flex: 1 1 220px;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--sheet);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-sub);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  background: var(--tint);
  color: var(--ink);
}

.btn-inline {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13.5px;
}

/* ステップ進行インジケーター（Motion Prompt #068 準拠） */
.progress-wrap {
  margin-bottom: 24px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
}

.progress-label {
  font-weight: 700;
  color: var(--primary);
}

.progress-count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-sub);
  font-weight: 700;
}

.progress-track {
  height: 5px;
  background: var(--tint-strong);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 選択肢ボタン（診断系） */
.question-cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}

.question-text {
  font-family: var(--serif);
  font-size: clamp(19px, 5vw, 23px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 10px;
}

.question-sub {
  font-size: 14.5px;
  color: var(--ink-sub);
  margin-bottom: 20px;
  line-height: 1.7;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  background: var(--sheet);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1.65;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.choice-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.choice-btn.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 700;
}

.choice-key {
  flex: 0 0 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-sub);
  margin-top: 1px;
}

.choice-btn.is-selected .choice-key {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 結果エリア（帳票・誌面風：大きな数字と罫線整理） */
.result-panel {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 100px;
}

.scroll-anchor {
  scroll-margin-top: 100px;
}

.demo-banner {
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  font-size: 14px;
  font-weight: 700;
  color: var(--warn);
}

.demo-banner[hidden] {
  display: none;
}

.metric-band.is-single {
  grid-template-columns: 1fr;
}

.metric-band.is-single .metric-cell {
  border-right: 0;
}

.metric-band[hidden],
.metric-cell[hidden] {
  display: none;
}

.result-panel[hidden] {
  display: none;
}

.result-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}

.result-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 5.8vw, 29px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 12px;
}

.result-summary-text {
  font-size: 15.5px;
  color: var(--ink-sub);
  line-height: 1.85;
  margin-bottom: 22px;
}

/* 数値ハイライト帯（対比レイアウト：左に主役、右に補足） */
.metric-band {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.metric-cell {
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
}

.metric-cell:last-child {
  border-bottom: 0;
}

.metric-cell.is-focus {
  background: var(--primary-soft);
}

.metric-cell.is-warn {
  background: var(--warn-soft);
}

.metric-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-sub);
  margin-bottom: 4px;
}

.metric-value {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  color: var(--ink);
}

.metric-cell.is-focus .metric-value {
  color: var(--primary);
}

.metric-cell.is-warn .metric-value {
  color: var(--warn);
}

.metric-sub {
  font-size: 13.5px;
  color: var(--ink-sub);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* 積み上げ比率バー */
.ratio-block {
  margin-bottom: 24px;
}

.ratio-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.ratio-bar {
  display: flex;
  height: 16px;
  background: var(--tint-strong);
  overflow: hidden;
}

.ratio-seg-keep {
  background: var(--primary);
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ratio-seg-rest {
  background: var(--gold-line);
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ratio-seg-short {
  background: var(--warn);
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ratio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-sub);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  display: inline-block;
  flex-shrink: 0;
}

/* 整理リスト・表 */
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  font-size: 15px;
}

.ledger-table th,
.ledger-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.ledger-table th {
  text-align: left;
  font-weight: 700;
  color: var(--ink-sub);
  width: 54%;
}

.ledger-table td {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ledger-sub {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-sub);
  white-space: nowrap;
}

.ledger-table tr.is-total th,
.ledger-table tr.is-total td {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--tint);
  color: var(--ink);
}

/* 箇条書きポイント */
.point-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.point-section h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.point-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.caution-box {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink);
}

.caution-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

/* 固定費見直し候補アイテム */
.candidate-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--rule);
}

.candidate-item {
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
}

.candidate-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 6px;
}

.candidate-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.candidate-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.candidate-detail {
  font-size: 14px;
  color: var(--ink-sub);
  margin-bottom: 6px;
}

.candidate-tip {
  font-size: 14.5px;
  color: var(--ink);
  padding-left: 12px;
  border-left: 2px solid var(--gold-line);
}

/* タイプ診断：2軸バランス＆4象限マップ */
.axis-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 24px;
}

.axis-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-sub);
  margin-bottom: 6px;
}

.axis-track {
  position: relative;
  height: 10px;
  background: var(--tint-strong);
}

.axis-center {
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--rule-strong);
  transform: translateX(-50%);
}

.axis-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.quad-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 14px;
}

.quad-cell {
  padding: 14px 12px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}

.quad-cell.is-current {
  background: var(--primary-soft);
}

.quad-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.quad-cell.is-current .quad-tag {
  color: var(--primary);
}

.quad-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 4px;
}

.quad-short {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-sub);
}

/* コピー用テキストフォールバック */
.copy-fallback {
  margin-top: 14px;
}

.copy-fallback[hidden] {
  display: none;
}

.copy-fallback textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

/* ツール間回遊フットナビ */
.next-tools {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.next-tools-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-sub);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.next-tools-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.next-tool-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  background: var(--tint);
  border-left: 3px solid var(--gold-line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s ease;
}

.next-tool-link:hover {
  background: var(--tint-strong);
}

.next-tool-arrow {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* 控えめなフッター */
.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 40px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.site-footer p + p {
  margin-top: 6px;
}

/* トースト通知（Motion Prompt #056 準拠） */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 13px 16px 16px;
  background: #23221f;
  color: #fff;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  overflow: hidden;
}

.toast.is-open {
  transform: translateX(0);
  opacity: 1;
}

.toast-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold-line);
  transform-origin: left center;
  transform: scaleX(0);
}

.toast.is-open .toast-bar {
  animation: toastLife 2.4s linear forwards;
}

@keyframes toastLife {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (min-width: 520px) {
  .quad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ledger-sub {
    display: inline;
    margin-left: 4px;
    font-size: 13.5px;
  }
}

@media (min-width: 640px) {
  .site-nav-inner {
    padding: 0 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
  }

  .brand-mark {
    padding: 0;
    font-size: 15px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 0;
  }

  .nav-link {
    padding: 15px 10px;
    font-size: 14px;
  }

  .page-shell {
    padding: 40px 24px 72px;
  }

  .result-panel,
  .scroll-anchor {
    scroll-margin-top: 72px;
  }

  .sheet {
    padding: 44px 48px 52px;
  }

  .hub-link {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    padding: 30px 14px;
  }

  .hub-num {
    font-size: 34px;
  }

  .metric-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-cell {
    border-bottom: 0;
    border-right: 1px solid var(--rule);
    padding: 20px 18px;
  }

  .metric-cell:last-child {
    border-right: 0;
  }

  .next-tools-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
