/* 年金・給付金で生活ch 特典ページ 共通の見た目
   見る人は65歳以上・老眼・スマホ前提（2026-11-21 運用者「なるべく文字を大きく」）: 本文21px、小さい字も18px以上、行間広め、1列。
   運用者の指示で紺の背景は使わない。白・空色・若葉色の明るい配色だけにする。 */
:root {
  color-scheme: light;
  --bg: #eef8fb;
  --paper: #ffffff;
  --ink: #24404a;
  --muted: #4f6b76;
  --line: #cfe6ec;
  --accent: #157f78;
  --sky: #dff1f8;
  --leaf: #e3f5e9;
  --leaf-ink: #2f6b3f;
  --due: #b8481f;
  --font-display: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: 24px;
  padding-bottom: 56px;
  display: grid;
  gap: 22px;
}

.back { font-size: 20px; margin: 0; }

.channel {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--leaf-ink);
}

h1 {
  font-family: var(--font-display);
  font-size: 33px;
  line-height: 1.4;
  margin: 0;
  color: var(--accent);
  text-wrap: balance;
}

h2 { font-size: 25px; line-height: 1.5; margin: 0; }
h3 { font-size: 22px; line-height: 1.55; margin: 0; }

p { margin: 0; }

.lead { color: var(--muted); }
.updated { font-size: 18px; color: var(--muted); }

/* 白いカード */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.card.sky { background: var(--sky); border-color: #bfe0ec; }
.card.leaf { background: var(--leaf); border-color: #c4e6cf; }

/* トップのリンク */
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.menu a {
  display: grid;
  gap: 6px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  text-decoration: none;
  color: var(--ink);
}
.menu a:hover { border-color: var(--accent); }
.menu .title {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--accent);
  line-height: 1.4;
}
.menu .go { font-weight: 700; color: var(--accent); }

/* カレンダー */
ol.months { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.month { scroll-margin-top: 12px; }
.month-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.month-name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--accent);
  background: var(--leaf);
  border-radius: 8px;
  padding: 6px 14px;
}
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.item { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 6px; }
.item:first-child { border-top: 0; padding-top: 0; }

.tag {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 6px;
  padding: 1px 10px;
  margin-right: 6px;
}
.tag.todo { background: #fde9e0; color: var(--due); }
.tag.info { background: var(--sky); color: #1d5f7a; }
.tag.who { background: var(--leaf); color: var(--leaf-ink); }

.due { color: var(--due); font-weight: 700; }
.none { color: var(--muted); }

/* 月へのジャンプ */
.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.jump a {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  text-decoration: none;
  font-weight: 700;
}

/* 手順書 */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
ol.steps > li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
ol.steps > li > div { min-width: 0; display: grid; gap: 4px; }

ul.dots { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }

.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check li { padding-left: 1.6em; position: relative; }
.check li::before { content: "□"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.toc { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }

/* 出典 */
.src {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.src a { word-break: break-all; }

.note {
  font-size: 20px;
  color: var(--ink);
  background: var(--paper);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
}

footer { display: grid; gap: 10px; }
.card.sky .tag.info { background: #ffffff; }

/* 受け取りチェック（check.html）: 指で押しやすく、字を大きく */
.qs { display: grid; gap: 18px; }
.q h2 { display: flex; align-items: center; gap: 12px; }
.qn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: 24px; line-height: 1;
}
.hint { color: var(--muted); }
.small { font-size: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
select, .money input {
  font: inherit; font-size: 24px; color: var(--ink);
  min-height: 60px; width: 100%;
  border: 2px solid #9cc7d3; border-radius: 12px; background: #fff;
  padding: 8px 12px;
}
select:focus, .money input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 label:first-child { grid-column: 1 / -1; }
.pair { display: grid; gap: 12px; }
.pair label, label.line { display: grid; gap: 6px; font-weight: 700; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 22px; line-height: 1.45; cursor: pointer;
}
.choice input { flex: none; width: 30px; height: 30px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--leaf); font-weight: 700; }
.money { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.money input { text-align: right; }
.go-btn {
  font: inherit; font-size: 28px; font-weight: 700; color: #fff;
  background: var(--due); border: 0; border-radius: 16px;
  min-height: 76px; width: 100%; cursor: pointer;
  box-shadow: 0 6px 0 #8a3516;
}
.go-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #8a3516; }
.result { scroll-margin-top: 12px; }
.verdict { border-width: 3px; gap: 14px; }
.verdict.yes { border-color: var(--accent); background: #f2fbf6; }
.verdict.no { border-color: #b9c6cb; }
.verdict.check { border-color: #d9a400; background: #fffaea; }
.badge { font-family: var(--font-display); font-size: 28px; line-height: 1.4; font-weight: 700; color: var(--accent); }
.verdict.no .badge { color: var(--ink); }
.verdict.check .badge { color: #8a5d00; }
.what { font-weight: 700; }
.amount { font-size: 24px; }
.amount b { font-size: 44px; color: var(--due); }
.amount2 { font-size: 22px; font-weight: 700; }
.how { font-size: 18px; color: var(--muted); }
.warn { background: #fff1e8; border-radius: 10px; padding: 10px 12px; }
.ask { background: var(--sky); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.tel { font-size: 32px; font-weight: 700; }

/* カレンダーの今月の印 */
.now { font-size: 19px; font-weight: 700; color: #fff; background: var(--due); border-radius: 8px; padding: 2px 12px; }
.jump a.now-link { background: var(--due); color: #fff; border-color: var(--due); }
