/* 焼き菓子とケーキ ミツカド舎（デモ）AI 活用の診断の納品物の見本 */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・実際のお仕事では）は、ほかのデモと同じクラス名と作り。色は決め直した */
/* お菓子屋さんに綴じて納める「診断の報告書」。粉糖の生成りの用紙、章は二重罫と大きな章番号、主役はカシス、外へ出す行動だけ杏色 */
:root {
  --c-base: #F8F5F0;
  --c-surface: #FFFFFF;
  --c-soft: #F0EAE4;
  --c-main: #4B2142;
  --c-text: #2A2024;
  --c-sub: #5A5056;
  --c-auto: #206070;
  --c-auto-bg: #E0F0F0;
  --c-change: #806000;
  --c-change-bg: #F8F0D0;
  --c-accent: #F0A050;
  --c-accent-hover: #E09040;
  --c-line: #D8CFC6;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --pad-x: 16px;
  --gap-sec: 64px;
  --f-body: 16px;
  --f-note: 14px;
  --f-h1: 26px;
  --f-h2: 22px;
  --f-chno: 40px;
  --f-h3: 18px;
  --f-big: 28px;
  --f-cell: 16px;
  --f-tag: 14px;
  --f-input: 16px;
  --f-btn: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-base); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--f-body); line-height: 1.8; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, select, input, textarea { font: inherit; letter-spacing: inherit; }
button { color: inherit; cursor: pointer; }
.wrap { max-width: 1184px; margin: 0 auto; padding: 0 var(--pad-x); }
.nw { white-space: nowrap; }
svg { flex: none; }
p, li { text-wrap: pretty; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }

/* ---------- TENKA LAB バー（作品例・デモ 共通） ---------- */
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px 16px; background: #1B2A41; color: #FFFFFF;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
.tl-bar__text { margin: 0; }
.tl-bar strong { font-weight: 700; }
.tl-bar__back { flex: none; position: relative; color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tl-bar__back:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.tl-bar__back::before { content: ""; position: absolute; inset: -15px -8px; }
.tl-bar__back::after { content: "→"; margin-left: 4px; }
.tl-bar__back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 64px; padding: 0 4px;
  border: 0; background: none; color: var(--c-main); font-size: var(--f-body); font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-thickness: 2px; }

/* ---------- ヘッダー ---------- */
.hd { background: #FFFFFF; border-bottom: 1px solid var(--c-line); }
.hd__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-top: 4px; padding-bottom: 8px; }
.hd__logo { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; min-width: 0; color: var(--c-main); }
.hd__mark { width: 28px; height: 28px; color: var(--c-main); }
.hd__names { display: flex; flex-direction: column; }
.hd__name { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.hd__sub { color: var(--c-sub); font-size: 14px; line-height: 1.4; }
.hd__demo {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 14px;
  background: var(--c-soft); color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1.4;
}

/* ---------- イントロ ---------- */
.intro { padding: 32px 0 24px; }
.h1 { color: var(--c-main); font-size: var(--f-h1); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.notice {
  margin-top: 16px; max-width: 44em; padding: 16px 16px 16px 20px; border-radius: 8px;
  background: var(--c-soft); box-shadow: inset 4px 0 0 var(--c-main); color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.7;
}
.intro__lead { margin-top: 16px; max-width: 36em; }
.intro__note { margin-top: 8px; max-width: 36em; color: var(--c-sub); font-size: var(--f-note); line-height: 1.6; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: var(--f-note); line-height: 1.6; }
.facts > div { display: flex; gap: 4px; }
.facts dt { flex: none; color: var(--c-sub); }

/* ---------- 表紙の帯 ---------- */
.cover { padding: 16px; background: var(--c-soft); border-radius: 12px; }
.cover__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cover__grid .stat:last-child { grid-column: 1 / -1; }
.stat { min-width: 0; padding: 16px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 8px; }
.stat__lab { color: var(--c-sub); font-size: 14px; line-height: 1.5; }
.stat__num { margin-top: 4px; font-size: var(--f-big); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.stat__num.is-main { color: var(--c-main); }
.stat__u { font-size: .6em; letter-spacing: 0; }
/* 表紙の帯の数：時給 3,000 の 212,100円 でも 360px・1025px のカードに収まるよう、画面の幅で小さくする */
.cover .stat__num { font-size: min(var(--f-big), 7.4vw); letter-spacing: 0; }
.stat__sub { margin-top: 6px; color: var(--c-sub); font-size: 14px; line-height: 1.5; }
.cover__reset { margin-top: 12px; }
.cover__reset .btn-sub { width: 100%; }

/* ---------- 目次 ---------- */
.toc-sec { padding-top: 32px; }
.toc { display: grid; gap: 8px; }
.toc__a {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--c-main); border-radius: 24px;
  background: #FFFFFF; color: var(--c-main); font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none;
}
.toc__a:hover { background: var(--c-soft); }
.toc__no { flex: none; font-size: 14px; }
.toc__more { margin-top: 4px; }

/* ---------- 章（二重罫＋大きな章番号） ---------- */
.sec { padding: var(--gap-sec) 0 0; }
.chapter { position: relative; border-top: 4px solid var(--c-main); padding-top: 29px; }
.chapter::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--c-main); }
.chapter__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.chapter__no { color: var(--c-main); font-size: var(--f-chno); font-weight: 700; line-height: 1; }
.chapter__h { min-width: 0; color: var(--c-main); font-size: var(--f-h2); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.chapter__meta { display: none; margin-left: auto; color: var(--c-sub); font-size: 14px; line-height: 1.5; }
.chapter__body { min-width: 0; margin-top: 24px; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px; }
.lead { max-width: 36em; }
.strong-line { margin-top: 16px; max-width: 40em; color: var(--c-main); font-weight: 700; line-height: 1.7; }
.h3 { color: var(--c-main); font-size: var(--f-h3); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.h3--gap { margin-top: 32px; }
.note { margin-top: 16px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.6; }
.note--tight { margin-top: 8px; }
.back { margin-top: 16px; }
.num { text-align: right; }

/* ---------- 時給 ---------- */
.wage { margin-top: 24px; }
.wage__lab { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; }
.wage__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.wage__box { position: relative; display: block; width: 160px; }
.wage__in {
  display: block; width: 160px; height: 44px; padding: 0 40px 0 12px; border: 1px solid var(--c-sub); border-radius: 6px;
  background: #FFFFFF; color: var(--c-text); font-size: var(--f-input); line-height: 1.5; text-align: right;
}
.wage__unit { position: absolute; right: 14px; top: 10px; color: var(--c-sub); font-size: 14px; pointer-events: none; }
.wage__err { margin-top: 8px; max-width: 36em; color: var(--c-main); font-size: 14px; font-weight: 700; line-height: 1.6; }
.chip--wage { width: 88px; padding: 0 8px; }

/* ---------- 凡例・札 ---------- */
.legend { display: grid; gap: 8px; margin-top: 8px; font-size: var(--f-note); line-height: 1.6; }
.legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 14px;
  font-size: var(--f-tag); font-weight: 700; line-height: 1.3; white-space: nowrap; color: var(--c-text); letter-spacing: 0;
}
.tag svg { width: 16px; height: 16px; }
.tag--ai { background: var(--c-main); color: #FFFFFF; }
.tag--sheet { background: var(--c-auto-bg); border: 2px solid var(--c-auto); }
.tag--sheet svg { color: var(--c-auto); }
.tag--change { background: var(--c-change-bg); border: 2px dashed var(--c-change); }
.tag--change svg { color: var(--c-change); }
.tag--keep { background: #FFFFFF; border: 2px dotted var(--c-sub); }
.tag--keep svg { color: var(--c-sub); }
.tag--first { background: var(--c-main); color: #FFFFFF; }

/* ---------- 並べ替え・絞り込み ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 16px; margin: 0;
  border: 2px solid var(--c-main); border-radius: 22px; background: #FFFFFF; color: var(--c-main);
  font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.chip:hover { background: var(--c-soft); }
.chip__chk { display: none; width: 16px; height: 16px; }
.chip[aria-pressed="true"] { background: var(--c-main); color: #FFFFFF; }
.chip[aria-pressed="true"] .chip__chk { display: block; }
.chip[aria-pressed="true"]:focus-visible { outline-color: var(--c-main); box-shadow: inset 0 0 0 2px #FFFFFF; }
.chips-set { margin-top: 24px; }
.chips-set__lab { margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--c-sub); }
.chips-set__lab:first-child { margin-top: 0; }
.order { margin-top: 16px; color: var(--c-sub); font-size: 14px; line-height: 1.5; }
.count { margin-top: 4px; font-size: 16px; font-weight: 700; }
.count__of { color: var(--c-sub); font-size: 14px; font-weight: 400; }

/* ---------- 横棒 ---------- */
.bar { display: inline-block; flex: none; height: 12px; border-radius: 6px; background: var(--c-soft); overflow: hidden; vertical-align: middle; }
.bar__fill { display: block; height: 12px; border-radius: 6px; }
.bar__fill--ai { background: var(--c-main); }
.bar__fill--sheet { background: var(--c-auto); }
.bar__fill--change { background: var(--c-change); }
.bar__fill--keep { background: var(--c-sub); }
.hbar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }

/* ---------- 表（1025px 以上） ---------- */
.only-table { display: none; margin-top: 16px; }
.task-table, .rv-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--f-cell); line-height: 1.6; }
.task-table th, .task-table td, .rv-table th, .rv-table td { padding: 12px 8px; border-bottom: 1px solid var(--c-line); vertical-align: top; text-align: left; }
.task-table thead th, .rv-table thead th { background: var(--c-soft); border-bottom: 2px solid var(--c-main); font-size: 14px; font-weight: 700; line-height: 1.4; vertical-align: bottom; }
.task-table tbody tr, .rv-table tbody tr { height: 64px; }
.task-table tbody th, .rv-table tbody th { font-weight: 700; }
.task-table .num { text-align: right; }
.task-table thead th:nth-child(1) { width: 56px; }
.task-table thead th:nth-child(3) { width: 88px; }
.task-table thead th:nth-child(4) { width: 72px; }
.task-table thead th:nth-child(5) { width: 64px; }
.task-table thead th:nth-child(6) { width: 160px; }
.task-table thead th:nth-child(7) { width: 104px; }
.task-table thead th:nth-child(8) { width: 208px; }
.task-table tbody td:nth-child(3) { white-space: nowrap; letter-spacing: 0; }
.task__name { display: block; font-weight: 700; }
.task__why { display: block; margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.task-table tfoot .total th, .task-table tfoot .total td { border-top: 2px solid var(--c-main); font-weight: 700; }
.task-table tfoot .total-all td { color: var(--c-sub); font-size: 14px; text-align: right; }
.rv-table thead th:nth-child(2), .rv-table thead th:nth-child(3) { width: 240px; }
.rv-table thead th:nth-child(4) { width: 120px; }
.rv-table thead th:nth-child(5) { width: 160px; }
.rv-table tr.is-fix th, .rv-table tr.is-fix td, .card.is-fix { background: var(--c-change-bg); }
.judge-cell { font-weight: 700; }

/* ---------- カード（1024px 以下） ---------- */
.cards { display: grid; gap: 12px; margin-top: 16px; }
.card { min-width: 0; padding: 16px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 8px; }
.card__h { color: var(--c-main); font-size: var(--f-h3); font-weight: 700; line-height: 1.4; }
.card__tag { margin-top: 8px; }
.card__meta { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.card__val { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 16px; font-weight: 700; }
.card__val .bar { max-width: 100%; }
.card__why { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.card__line { margin-top: 4px; font-size: 16px; line-height: 1.6; }
.card__k { color: var(--c-sub); font-size: 14px; font-weight: 700; }
.card__judge { margin-top: 8px; font-weight: 700; }
.card-total { margin-top: 12px; padding: 12px 16px; border: 2px solid var(--c-main); border-radius: 8px; background: #FFFFFF; }
.card-total__main { font-weight: 700; }

/* ---------- 提案書 ---------- */
.sum-box { margin-top: 24px; padding: 16px; background: var(--c-soft); border-radius: 8px; }
.sum-box__line { font-weight: 700; line-height: 1.5; }
.sum-box__num { display: inline-block; color: var(--c-main); font-size: var(--f-big); line-height: 1.2; }
.proposals { display: grid; gap: 16px; margin-top: 24px; }
.proposal { min-width: 0; padding: 24px; background: #FFFFFF; border: 1px solid var(--c-line); border-top: 4px solid var(--c-main); border-radius: 8px; }
.proposal--sheet { border-top-color: var(--c-auto); }
.proposal--change { border-top-color: var(--c-change); }
.proposal--keep { border-top-color: var(--c-sub); }
.proposal__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proposal__no { font-weight: 700; }
.proposal__h { margin-top: 12px; color: var(--c-text); font-size: var(--f-h3); font-weight: 700; line-height: 1.4; }
.proposal__lab { margin-top: 16px; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.5; }
.proposal__p { margin-top: 4px; line-height: 1.7; }
.proposal__big { margin-top: 4px; color: var(--c-main); font-size: var(--f-big); font-weight: 700; line-height: 1.2; }
.proposal__sub { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.dots { margin-top: 8px; }
.dots li { position: relative; padding-left: 18px; line-height: 1.7; }
.dots li + li { margin-top: 4px; }
.dots li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-main); }
.dots--tight { margin-top: 4px; }

/* ---------- 使い方ルール ---------- */
.decided { margin-top: 16px; font-size: 16px; font-weight: 700; }
.decided__all { margin-left: 8px; color: var(--c-sub); font-size: 14px; }
.rule-sheet { max-width: 800px; margin: 16px auto 0; padding: 24px 16px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 0; }
.rule-sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.rule-sheet__h { color: var(--c-main); font-size: var(--f-h3); font-weight: 700; line-height: 1.4; }
.rule-sheet__size, .rule-sheet__date { color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.rule-sheet__date { margin-top: 4px; }
.rules { margin-top: 16px; max-width: 40em; }
.rule { padding: 16px 0; border-top: 1px solid var(--c-line); }
.rule__h { font-weight: 700; line-height: 1.6; }
.rule__p { margin-top: 4px; font-size: 16px; line-height: 1.8; }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 8px 0 0; font-weight: 700; cursor: pointer; position: relative; }
.chk__in { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; left: 0; top: 10px; }
.chk__box { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--c-main); border-radius: 4px; background: #FFFFFF; color: #FFFFFF; }
.chk__box svg { visibility: hidden; }
.chk__in:checked + .chk__box { background: var(--c-main); }
.chk__in:checked + .chk__box svg { visibility: visible; }
.chk__in:focus-visible + .chk__box { outline: 3px solid var(--c-main); outline-offset: 2px; }

/* ---------- ふりかえりの判断 ---------- */
.judge { display: grid; gap: 8px; margin-top: 8px; }
.judge__box { display: flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 16px; background: #FFFFFF; border: 2px solid var(--c-line); border-radius: 8px; font-weight: 700; }
.judge__box.is-on { border-color: var(--c-main); background: var(--c-soft); color: var(--c-main); }
.judge__why { margin-top: 16px; max-width: 40em; }

/* ---------- ボタン ---------- */
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 0 16px; margin: 0; border: 2px solid var(--c-main); border-radius: 22px;
  background: #FFFFFF; color: var(--c-main); font-family: var(--font-body);
  font-size: var(--f-btn); font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-align: center; white-space: nowrap;
}
.btn-sub:hover, .btn-sub:active { background: var(--c-soft); }
.btn-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border: 2px solid var(--c-text); border-radius: 24px; background: var(--c-accent); color: var(--c-text);
  font-size: var(--f-btn); font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.btn-act:hover, .btn-act:active { background: var(--c-accent-hover); }
.btn-row { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.btn-row .btn-act { width: 100%; }
.out-lead { margin-top: 0; max-width: 44em; }
.inline-link {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none;
  color: var(--c-main); font-size: 16px; font-weight: 700; line-height: 1.3; text-align: left; text-decoration: underline; text-underline-offset: 3px;
}
.inline-link:hover { text-decoration-thickness: 2px; }

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec--lab { margin-top: var(--gap-sec); padding-bottom: var(--gap-sec); border-top: 1px dashed var(--c-sub); }
.lab-tag {
  display: inline-flex; align-items: center; gap: .3em; height: 24px; padding: 0 8px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1;
}
.lab-title { margin-top: 12px; font-size: var(--f-h2); font-weight: 700; line-height: 1.4; color: var(--c-main); letter-spacing: .04em; }
.lab-lead { margin-top: 16px; max-width: 36em; font-size: var(--f-body); }
.work-3 { display: grid; gap: 16px; margin-top: 32px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; min-width: 0; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; color: var(--c-text); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.work-3 ul, .work-check ul { margin-top: 8px; }
.work-3 ul li, .work-check li { position: relative; padding-left: 18px; font-size: var(--f-body); line-height: 1.7; }
.work-3 ul li::before, .work-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-main); }
.work-check { margin-top: 16px; padding: 16px; background: #FFFFFF; border: 1px dashed var(--c-sub); border-radius: 12px; }
.work-check h3 { color: var(--c-text); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.work-check__note { margin-top: 12px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { padding: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-main); color: #FFFFFF; font-size: 16px; line-height: 1.8; padding: 48px 0; text-align: center; }
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
/* 面は杏・字は墨（7.40）。フッターの面と 6.17 で形が見える */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; min-height: 52px;
  margin: 0 auto; border: 2px solid var(--c-text); border-radius: 24px; background: var(--c-accent); color: var(--c-text);
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-hover); color: var(--c-text); }
.copy { font-size: 13px; }
.print-root { display: none; }

@media (max-width: 374px) {
  .btn-sub, .chip { padding: 0 12px; }
  .chip--wage { padding: 0 8px; }
}

/* ---------- 769px 以上 ---------- */
@media (min-width: 769px) {
  :root { --pad-x: 32px; --gap-sec: 96px; --f-h1: 30px; --f-h2: 24px; --f-chno: 48px; --f-big: 32px; --f-cell: 15px; }
  .tl-bar { padding: 8px 32px; }
  .intro { padding: 48px 0 32px; }
  .chapter__body { padding: 32px; }
  .cover { padding: 24px; }
  .cover__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cover__grid .stat:last-child { grid-column: auto; }
  .cover .stat__num { font-size: var(--f-big); }
  .cover__reset { display: flex; justify-content: flex-end; }
  .cover__reset .btn-sub { width: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-row { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .btn-row .btn-act { width: auto; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-3 > li { padding: 24px 20px; }
  .rule-sheet { padding: 48px 56px; }
  .rule { display: flex; gap: 16px; align-items: flex-start; }
  .rule__text { flex: 1; min-width: 0; }
  .chk { margin-top: 0; flex: none; }
  .judge { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 1025px 以上：表の形 ---------- */
@media (min-width: 1025px) {
  :root { --f-body: 17px; --f-h1: 34px; --f-h2: 26px; --f-chno: 56px; --f-h3: 20px; --f-big: 36px; }
  .only-table { display: block; }
  .only-cards { display: none; }
  .chapter__meta { display: block; }
  .cover__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cover .stat__num { font-size: min(var(--f-big), 2.8vw); }
  .toc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proposals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .chips-set { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 16px; }
  .chips-set__lab { margin: 0; }
  .chips-set__note { grid-column: 2; margin-top: -4px; }
}

/* ---------- 印刷（A4 縦） ---------- */
@page { size: A4 portrait; margin: 12mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #FFFFFF; font-size: 9pt; line-height: 1.45; letter-spacing: 0; }
  .tl-bar, .hd, main, .site-footer { display: none !important; }
  .print-root { display: block; }
  .pr-title { font-size: 14pt; font-weight: 700; }
  .pr-sum { margin: 4pt 0 6pt; font-weight: 700; }
  .pr-h { display: flex; align-items: baseline; gap: 6pt; margin-top: 8pt; padding-top: 3pt; border-top: 2pt solid #4B2142; color: #4B2142; font-size: 12pt; font-weight: 700; break-after: avoid; }
  .pr-h__no { font-size: 14pt; }
  .pr-break { break-before: page; }
  .pr-rules { break-after: page; font-size: 10pt; line-height: 1.6; }
  .pr-table { width: 100%; margin-top: 4pt; border-collapse: collapse; table-layout: fixed; }
  .pr-table thead { display: table-header-group; }
  .pr-table tr { break-inside: avoid; }
  .pr-table th, .pr-table td { padding: 2pt 3pt; border: .5pt solid #5A5056; text-align: left; vertical-align: top; font-size: 9pt; }
  .pr-table th { font-weight: 700; }
  .pr-table .num { text-align: right; white-space: nowrap; }
  .pr-tasks th:nth-child(1) { width: 7%; }
  .pr-tasks th:nth-child(2) { width: 22%; }
  .pr-tasks th:nth-child(3) { width: 31%; }
  .pr-tasks th:nth-child(4) { width: 9%; }
  .pr-tasks th:nth-child(5) { width: 7%; }
  .pr-tasks th:nth-child(6) { width: 6%; }
  .pr-tasks th:nth-child(7) { width: 8%; }
  .pr-tasks th:nth-child(8) { width: 10%; }
  .pr-name { display: block; font-weight: 700; }
  .pr-way { display: block; }
  .pr-total td { font-weight: 700; }
  .pr-prop { margin-top: 6pt; padding: 4pt 0; border-top: .5pt solid #5A5056; break-inside: avoid; }
  .pr-prop__h { font-weight: 700; font-size: 10pt; }
  .pr-rule-list { margin-top: 6pt; }
  .pr-rule { display: flex; gap: 8pt; padding: 4pt 0; border-top: .5pt solid #5A5056; break-inside: avoid; }
  .pr-rule > div { flex: 1; }
  .pr-rule__h { font-weight: 700; }
  .pr-rule__chk { flex: none; width: 28mm; font-weight: 700; }
  .pr-foot { margin-top: 8pt; color: #5A5056; }
}
