/* やりくりポケット 共通スタイル（A案「ノート」）
   紺 #1F3A5F ／ 黄 #F2B705（黄の上は紺の文字。白文字は使わない）／ 差し色オレンジ #F27210（線・印だけ。文字には使わない） */

:root {
  --navy: #1F3A5F;
  --navy-dark: #152A45;
  --yellow: #F2B705;
  --yellow-soft: #FFF6D6;
  --orange: #F27210;
  --ink: #1E2833;
  --muted: #55606D;
  --line: #DDE2E8;
  --paper: #FFFFFF;
  --bg-soft: #F6F7F9;
  --danger: #A3261B;
  --radius: 12px;
  --wrap: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: anywhere;
  line-break: strict;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 8px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.logo-mark {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 4px 4px 9px 9px;
  background: var(--yellow);
  flex: none;
}
.logo-mark::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.header-nav { display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; }
.header-nav a {
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 4px;
  font-weight: 600;
}
.header-nav a:hover { text-decoration: underline; }

/* ---------- 本文 ---------- */
main { display: block; padding-bottom: 48px; }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.45;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}
h1 { font-size: 26px; margin: 0 0 12px; }
h2 { font-size: 20px; margin: 44px 0 14px; }
h3 { font-size: 17px; margin: 28px 0 8px; }
p { margin: 0 0 1em; }

.marker {
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 2px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0 18px;
}
.breadcrumb a { color: var(--muted); }

.page-head { padding: 8px 0 4px; }
.lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  border-left: 4px solid var(--orange);
  padding-left: 8px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* ---------- トップ ---------- */
.hero {
  padding: 36px 0 28px;
  background: linear-gradient(to bottom, var(--paper) 0, var(--paper) 70%, #FBFAF4 100%);
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 28px; margin-bottom: 14px; }
.hero p { color: var(--ink); max-width: 40em; }
.hero .note-small { font-size: 14px; color: var(--muted); margin: 0; }

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.tool-card {
  display: block;
  position: relative;
  padding: 18px 44px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.tool-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(31, 58, 95, .08);
  color: var(--ink);
}
.tool-card::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--navy);
  border-right: 2px solid var(--navy);
  transform: translateY(-50%) rotate(45deg);
}
.tool-card .num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.tool-card .num::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 2px;
}
.tool-card .name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 4px;
}
.tool-card .desc {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.points li {
  position: relative;
  padding-left: 22px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--navy);
}

/* ---------- 本の紹介枠 ---------- */
.book-box {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--paper);
  margin: 20px 0;
}
.book-box img {
  width: 96px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.book-box .book-title {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin: 0 0 4px;
  font-size: 16px;
}
.book-box .book-sub { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.book-box .book-text { font-size: 14px; margin: 0 0 12px; line-height: 1.75; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pr-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  border: 1px solid #B5BDC7;
  border-radius: 4px;
  padding: 4px 6px;
}
.book-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }

/* ---------- 章への案内（ツールページ） ---------- */
.chapter-box {
  border-left: 4px solid var(--navy);
  background: var(--bg-soft);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  font-size: 15px;
}
.chapter-box p:last-child { margin-bottom: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #E0A800; border-color: #E0A800; color: var(--navy); }
.btn-ghost { background: var(--paper); color: var(--navy); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--navy); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: 14px; border-width: 1px; }
.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 4px;
  min-height: 0;
  font-weight: 600;
}
.btn-text:hover { background: none; color: var(--ink); }
.btn[aria-disabled="true"] {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

/* ---------- 使い方 ---------- */
.howto {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.howto li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 10px 38px;
}
.howto li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

/* ---------- フォーム ---------- */
.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 8px;
  margin: 18px 0;
  background: var(--paper);
}
.tool-panel > h2:first-child { margin-top: 0; }
.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.field { margin-bottom: 18px; }
.field > label, .field > .label, fieldset > legend {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.5;
}
.hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
  margin-top: 2px;
}
.field-row { display: grid; gap: 0 14px; }

.input-yen {
  position: relative;
  display: flex;
  align-items: center;
}
.input-yen input[type="text"] { padding-right: 48px; }
.input-yen.unit-wide input[type="text"] { padding-right: 64px; }
.input-yen .unit {
  position: absolute;
  right: 14px;
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

input[type="text"], input[type="number"], input[type="month"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #AEB7C2;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
}
input[inputmode="numeric"] { font-variant-numeric: tabular-nums; text-align: right; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, .55);
}
input::placeholder, textarea::placeholder { color: #8A94A0; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }

.choices { display: grid; gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.55;
  font-size: 15px;
  background: var(--paper);
}
.choice:hover { border-color: #AEB7C2; }
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}
.choice:has(input:checked) { border-color: var(--navy); background: var(--yellow-soft); }
.choice small { display: block; color: var(--muted); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid #AEB7C2;
  border-radius: 999px;
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--navy); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding: 8px 0;
  margin-top: 4px;
}
.save-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ---------- 結果 ---------- */
.result {
  background: var(--yellow-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin: 18px 0;
}
.result h2 { margin-top: 0; font-size: 18px; }
.result-main { margin: 0 0 6px; }
.result-label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
.result-value {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.result-value .yen { font-size: 18px; margin-left: 2px; font-weight: 700; }
.result-sub { font-size: 15px; margin: 0 0 4px; }
.result-sub strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.result-empty { color: var(--muted); font-size: 15px; margin: 0; }
.result-msg { font-size: 15px; margin: 12px 0 0; }
.warn {
  border-left: 4px solid var(--danger);
  background: #FFF;
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  color: var(--danger);
  font-size: 14px;
  margin: 12px 0 0;
  line-height: 1.7;
}

.stat-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.stat {
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.stat .num-l { white-space: nowrap; }
.stat .result-label { font-size: 13px; }
.stat .num-l {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.stat .num-l .yen { font-size: 14px; margin-left: 1px; }

/* 3つの型の比較 */
.type-cards { display: grid; gap: 12px; margin-top: 4px; }
.type-card {
  background: var(--paper);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #EADFB8;
}
.type-card h3 {
  margin: 0 0 2px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}
.type-card .type-desc { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.pay-table th, .pay-table td { padding: 6px 4px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pay-table th:first-child, .pay-table td:first-child { text-align: left; }
.pay-table thead th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.pay-table td strong { color: var(--navy); font-size: 17px; }

/* プロンプト */
.prompt-out {
  width: 100%;
  min-height: 320px;
  font-size: 14px;
  line-height: 1.75;
  font-family: var(--font);
  white-space: pre-wrap;
  background: var(--paper);
  border: 1.5px solid #AEB7C2;
  border-radius: 10px;
  padding: 14px;
  color: var(--ink);
  resize: vertical;
}
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.copy-status { font-size: 14px; color: var(--navy); font-weight: 700; min-height: 1.5em; }

.caution {
  border: 1px solid #E6C35C;
  background: var(--paper);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.75;
  margin: 12px 0;
}
.caution strong { color: var(--navy); }

/* サブスクの行 */
.rows { display: grid; gap: 10px; margin-bottom: 12px; }
.sub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: end;
  padding: 12px 12px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}
.sub-row .name-cell, .sub-row .row-foot { grid-column: 1 / -1; }
.sub-row label.small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.4;
}
.sub-row .check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 48px;
  padding: 0 4px;
  cursor: pointer;
  white-space: nowrap;
}
.sub-row .check input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; flex: none; }
.row-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.row-year { font-size: 13px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; line-height: 1.5; }
.row-foot .del { font-size: 13px; margin-left: auto; }

/* 結果の読み方など */
.read-list { padding-left: 1.3em; margin: 0 0 1em; }
.read-list li { margin-bottom: 6px; }

.formula {
  font-size: 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 1em;
  line-height: 1.8;
}

/* 広告枠：中身が入るまでは表示しない */
.ad-slot { margin: 32px 0; min-height: 0; }
.ad-slot:empty { display: none; }

.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.related a:hover { border-color: var(--navy); }

/* 文章ページ（運営者情報など） */
.prose h2 { font-size: 18px; margin-top: 36px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose dl { margin: 0; }
.prose dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.prose dd { margin: 2px 0 0; }
.updated { font-size: 13px; color: var(--muted); }

.prose dd .dd-list { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.prose dd .dd-list li { margin-bottom: 2px; }
.more-link { margin: 12px 0 0; font-weight: 600; font-size: 15px; }

/* ---------- トップのツール一覧の小見出し ---------- */
.tool-group-title { font-size: 16px; margin: 22px 0 10px; }
.tool-group-title:first-of-type { margin-top: 8px; }

/* ---------- 週の食費の枠・献立会議の質問文 ---------- */
.week-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.week-table th, .week-table td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: right; }
.week-table th:first-child, .week-table td:first-child { text-align: left; }
.week-table thead th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.week-table td strong { color: var(--navy); font-size: 17px; }
.day-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.day-field { display: grid; grid-template-columns: 3.2em 1fr; align-items: center; gap: 8px; }
.day-field label { font-weight: 700; color: var(--navy); font-size: 15px; }
.fill-note { margin: -8px 0 18px; }
.field textarea { line-height: 1.6; resize: vertical; }
.btn-inline { display: inline; font-size: 13px; padding: 4px 2px; margin-left: 6px; color: var(--navy); }

/* ---------- 読みもの（記事） ---------- */
.article-meta { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.article-meta .sep { margin: 0 6px; color: var(--line); }
.answer-box {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--yellow-soft);
  padding: 14px 16px;
  margin: 4px 0 8px;
}
.answer-box .answer-title {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.06em;
  border-left: 4px solid var(--orange);
  padding-left: 8px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.answer-box p:last-child { margin-bottom: 0; }
.article-body h2 { font-size: 20px; margin-top: 40px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.article-body h3 { font-size: 17px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; }
.table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-wrap td.nw { white-space: nowrap; }
.table-wrap thead th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.template {
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 1.2em;
}
.tool-cta {
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 8px 0 1.4em;
  background: var(--paper);
}
.tool-cta p { margin: 0; }
.tool-cta .tool-cta-label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.tool-cta .tool-cta-name { font-weight: 700; color: var(--navy); font-size: 16px; margin: 2px 0 4px; }
.tool-cta .tool-cta-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.article-note { font-size: 13px; color: var(--muted); margin: 28px 0 0; line-height: 1.75; }
.article-list { margin-top: 8px; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0 36px;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand { font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.footer-links { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-small { font-size: 12px; margin: 0; line-height: 1.7; }

/* ---------- PC幅 ---------- */
@media (min-width: 720px) {
  h1 { font-size: 30px; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 34px; }
  .tool-list { grid-template-columns: 1fr 1fr; }
  .tool-list li:first-child { grid-column: 1 / -1; }
  .article-list li:first-child { grid-column: auto; }
  .field-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .tool-panel { padding: 26px 26px 10px; }
  .result { padding: 24px 26px; }
  .book-box { grid-template-columns: 120px 1fr; gap: 22px; padding: 22px; }
  .book-box img { width: 120px; }
  .sub-row { grid-template-columns: 1.6fr 1fr auto; }
  .sub-row .name-cell { grid-column: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { display: block; padding: 12px 14px; }
  .tool-list-even li:first-child { grid-column: auto; }
  .day-grid { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .ad-slot, .form-actions, .book-box { display: none; }
}
