/* カフェ ユメツム（デモ）入金の消し込み */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・実際のお仕事では）は、これまでの LP のデモと同じクラス名と作り */
:root {
  --c-base: #FAF6F0;
  --c-surface: #FFFFFF;
  --c-soft: #F3ECE2;
  --c-main: #6B4A34;
  --c-accent: #A8532F;
  --c-accent-hover: #8C4426;
  --c-text: #3B2F28;
  --c-sub: #6E625A;
  --c-line: #E6DCCF;
  --c-ok: #2F6B45;
  --c-ok-bg: #EAF3EC;
  --c-fee: #5C4300;
  --c-fee-bg: #FFF3D6;
  --c-check: #A33A2A;
  --c-check-bg: #FFF7F5;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", var(--font-body);

  --pad-x: 16px;
  --gap-sec: 48px;
  --pad-card: 16px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  /* 日本語の文を語のまとまりで折り返す（対応しない端末はふつうの折り返し） */
  word-break: auto-phrase;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.inline-link { display: inline-block; padding: 13px 0; font-weight: 700; line-height: 1.6; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
[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;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }
.nw { white-space: nowrap; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }
.sec__title, .hero h1, .pay__title { scroll-margin-top: 24px; }
p, li, dd { text-wrap: pretty; }
.kana { letter-spacing: .02em; }

/* ---------- 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; }
@media (min-width: 768px) { .tl-bar { padding: 8px 32px; } }

/* ---------- ボタン ---------- */
/* 行動ボタン：テラコッタの面に白の文字（5.32:1。hover 7.07:1） */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 28px;
  background: var(--c-accent); color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-main:hover, .btn-main:active { background: var(--c-accent-hover); color: #FFFFFF; }
.btn-main svg { color: #FFFFFF; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: 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; text-align: center;
}
.btn-sub:hover { background: var(--c-soft); }
.btn-sub svg { width: 20px; height: 20px; }
/* 押せない時：面 淡い茶・枠 罫線・文字 補足（5.03:1）。すぐ下に理由を書く */
.btn-main[aria-disabled="true"], .btn-sub[aria-disabled="true"] {
  background: var(--c-soft); border: 2px solid var(--c-line); color: var(--c-sub); cursor: not-allowed;
}
.btn-main[aria-disabled="true"] svg { color: var(--c-sub); }
.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: 15px; 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); position: relative; z-index: 20; }
.hd__in { display: flex; align-items: center; min-height: 56px; }
.hd__logo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 0;
  color: var(--c-main); text-decoration: none;
}
.hd__mark { width: 28px; height: 28px; }
.hd__name { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; }
.hd__demo {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}

/* ---------- ブロック ---------- */
.sec { padding: var(--gap-sec) 0; }
.sec.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.sec--band { background: var(--c-soft); }
.sec__en { color: var(--c-sub); font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.sec__title { margin-top: 8px; font-family: var(--font-head); color: var(--c-main); font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.sec__lead { margin-top: 8px; color: var(--c-sub); font-size: 15px; line-height: 1.8; max-width: 40em; }
.sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 24px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; color: var(--c-text); }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-top: 4px solid var(--c-main); border-radius: var(--radius); padding: var(--pad-card); }

/* ---------- ファーストビュー ---------- */
.hero { padding: 24px 0 48px; }
.hero__art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; margin: 0 auto 24px; }
.hero__tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 12px;
  border: 1px solid var(--c-sub); border-radius: 14px; background: #FFFFFF; color: var(--c-text);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.hero__kind { margin-bottom: 8px; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.4; }
.h1 { font-family: var(--font-head); color: var(--c-main); font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.hero__lead { margin-top: 12px; font-size: 16px; line-height: 1.8; max-width: 40em; }
.hero__link { margin-top: 4px; }
.hero__link .inline-link { font-size: 15px; }
.hero__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.7; }
.hero__note svg { margin-top: .3em; width: 16px; height: 16px; color: var(--c-main); }
.hero__today { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }

/* ---------- 2つの一覧（details） ---------- */
.data { padding-top: 0; }
.list { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); min-width: 0; }
.list + .list, .list + .data__grid { margin-top: 12px; }
.data__grid .list + .list { margin-top: 0; }
.data__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.list__summary {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0;
  min-height: 56px; padding: 8px 48px 8px 16px; position: relative; border-radius: var(--radius);
  cursor: pointer; list-style: none; line-height: 1.5;
}
.list__summary::-webkit-details-marker { display: none; }
.list__summary:hover { background: var(--c-soft); }
.list__title { font-size: 16px; font-weight: 700; color: var(--c-text); }
.list__meta { margin-left: auto; color: var(--c-sub); font-size: 14px; font-weight: 700; }
.list__chev { position: absolute; right: 16px; top: 50%; margin-top: -10px; color: var(--c-main); transition: transform .15s; }
.list[open] > .list__summary { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--c-line); }
.list[open] .list__chev { transform: rotate(180deg); }
.list__body { padding: 0 0 12px; }
.list__note { margin: 12px 16px 0; color: var(--c-sub); font-size: 14px; line-height: 1.7; max-width: 40em; }

/* 表：768px〜 は表、〜767px は行ごとのカード */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; font-weight: 400; }
.tbl tbody th { font-weight: 400; }

@media (max-width: 767px) {
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl thead {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .tbl tbody tr { display: grid; column-gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { padding: 0; min-width: 0; }
  /* 取引先と名義 */
  .tbl--partners tr { grid-template-columns: minmax(0, 1fr); }
  .tbl--partners .c-name { font-size: 15px; font-weight: 700; }
  .tbl--partners .c-reg::before { content: "登録："; color: var(--c-sub); font-size: 14px; }
  .tbl--partners .c-alias::before { content: "別の名義："; color: var(--c-sub); font-size: 14px; }
  .tbl--partners .c-alias .nw + .nw { margin-left: 8px; }
  .tbl--partners .c-term { color: var(--c-sub); font-size: 14px; }
  /* 請求・未入金 */
  .tbl--inv tr, .tbl--open tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id amt" "p p" "due due" "st st"; }
  .tbl--inv .c-id, .tbl--open .c-id { grid-area: id; color: var(--c-sub); font-size: 13px; align-self: center; }
  .tbl--inv .c-amt, .tbl--open .c-amt { grid-area: amt; font-size: 16px; font-weight: 700; text-align: right; }
  .tbl--inv .c-p, .tbl--open .c-p { grid-area: p; font-size: 15px; }
  .tbl--inv .c-due, .tbl--open .c-due { grid-area: due; color: var(--c-sub); font-size: 14px; }
  .tbl--inv .c-due::before, .tbl--open .c-due::before { content: "期日 "; }
  .tbl--open .c-state { grid-area: st; }
  /* 通帳の入金 */
  .tbl--dep tr { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "id day day" "name name amt"; }
  .tbl--dep .c-id { grid-area: id; color: var(--c-sub); font-size: 13px; }
  .tbl--dep .c-id::before { content: "入金 "; }
  .tbl--dep .c-day { grid-area: day; color: var(--c-sub); font-size: 13px; margin-left: -12px; }
  .tbl--dep .c-day::before { content: "・"; }
  .tbl--dep .c-name { grid-area: name; font-size: 16px; font-weight: 700; }
  .tbl--dep .c-amt { grid-area: amt; font-size: 16px; font-weight: 700; text-align: right; }
}
@media (min-width: 768px) {
  .tbl { table-layout: fixed; }
  .tbl thead th { height: 40px; padding: 8px 12px; background: var(--c-soft); color: var(--c-sub); font-size: 13px; font-weight: 700; line-height: 1.4; }
  .tbl tbody th, .tbl tbody td { height: 44px; padding: 8px 12px; border-top: 1px solid var(--c-line); vertical-align: middle; }
  .tbl .c-amt { text-align: right; padding-left: 4px; }
  .tbl--partners .c-term { width: 30%; }
  .tbl--partners .c-reg, .tbl--partners .c-alias { width: 22%; }
  .tbl--partners .c-alias .nw + .nw { margin-left: 8px; }
  .tbl--inv .c-id { width: 112px; }
  .tbl--inv .c-amt { width: 96px; }
  .tbl--inv .c-due { width: 128px; }
  .tbl--dep .c-id { width: 76px; }
  .tbl--dep .c-day { width: 128px; }
  .tbl--dep .c-amt { width: 96px; }
  .tbl--dep tbody .c-name { font-weight: 700; }
  .tbl--inv tbody .c-amt, .tbl--dep tbody .c-amt { font-weight: 700; }
}

/* ---------- 突き合わせる（主役） ---------- */
.match__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.match__act, .match__sum { min-width: 0; }
.match__run { width: 100%; margin-top: 24px; }
.sec__lead + .match__run { margin-top: 24px; }
.match__runnote { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.match__reset { margin-top: 16px; }
.match__empty {
  padding: 24px 16px; background: #FFFFFF; border: 2px dotted var(--c-line); border-radius: var(--radius);
  color: var(--c-sub); font-size: 15px; line-height: 1.7;
}

/* まとめのタイル */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { min-width: 0; min-height: 88px; padding: 12px 10px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); }
.tile .status { padding: 0 8px; }
.tile--open { grid-column: 1 / -1; padding: 12px 16px; }
.tile__num { margin-top: 8px; color: var(--c-main); font-size: 28px; font-weight: 700; line-height: 1.1; }
.tile__unit { font-size: 16px; margin-left: 2px; }
.tile--open .tile__unit { font-size: 18px; margin-left: 0; }
.tile__label { color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
.tile__num--yen { font-size: 26px; }
.tile__sub { margin-top: 6px; color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.tile__link { font-size: 14px; padding: 13px 0; margin-bottom: -8px; }

/* 判定の札：面の色＋文字の色＋アイコン＋言葉 */
.status {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.status svg { width: 16px; height: 16px; }
.status--exact { background: var(--c-ok-bg); color: var(--c-ok); }
.status--fee { background: var(--c-fee-bg); color: var(--c-fee); }
.status--bundle { background: var(--c-soft); color: var(--c-main); }
.status--check { background: var(--c-check-bg); color: var(--c-check); }
.status--manual { background: #FFFFFF; color: var(--c-ok); box-shadow: inset 0 0 0 1.5px var(--c-ok); }
.alias-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px;
  background: #FFFFFF; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-sub);
  font-size: 13px; font-weight: 400; line-height: 1; white-space: nowrap;
}

/* ---------- 結果の一覧 ---------- */
.result__empty, .open__empty {
  padding: 24px 16px; background: #FFFFFF; border: 2px dotted var(--c-line); border-radius: var(--radius);
  color: var(--c-sub); font-size: 15px; line-height: 1.7;
}
.result__note, .open__note { margin-top: 16px; color: var(--c-sub); font-size: 14px; line-height: 1.7; max-width: 40em; }
.sec__lead ~ .pays { margin-top: 24px; }
.pays { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.pay { min-width: 0; padding: 16px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); }
.pay--check { box-shadow: inset 4px 0 0 var(--c-check); padding-left: 20px; }
.pay__title { display: block; font-size: inherit; letter-spacing: 0; }
.pay__meta { display: block; color: var(--c-sub); font-size: 13px; font-weight: 400; line-height: 1.4; }
.pay__row { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; margin-top: 4px; }
.pay__name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.pay__amt { margin-left: auto; font-size: 18px; font-weight: 700; line-height: 1.2; }
.pay__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.pay__label { margin-top: 12px; color: var(--c-sub); font-size: 13px; line-height: 1.4; }
.pay__invs { margin-top: 4px; border-top: 1px solid var(--c-line); }
.pay__inv { padding: 8px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; line-height: 1.6; }
.pay__inv-top { display: block; }
.pay__inv-id { color: var(--c-sub); font-size: 13px; margin-right: 4px; }
.pay__inv-bot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; }
.pay__inv-sub { color: var(--c-sub); font-size: 13px; }
.pay__inv-amt { margin-left: auto; font-size: 14px; font-weight: 700; }
.pay__diff { margin-top: 8px; line-height: 1.5; }
.pay__diff-label { color: var(--c-sub); font-size: 13px; }
.pay__diff-val { font-size: 15px; font-weight: 700; }
.pay__diff-val--fee { color: var(--c-fee); }
.pay__reason { margin-top: 12px; font-size: 15px; line-height: 1.7; }
.pay__none { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }

/* 候補（radio） */
.cands { margin-top: 12px; padding: 0; border: 0; min-width: 0; }
.cands__title { padding: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.cand { display: block; margin-top: 8px; cursor: pointer; }
.cand__face {
  display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 12px;
  background: #FFFFFF; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--c-sub);
}
.cand:hover .cand__face { background: var(--c-soft); }
.cand__dot {
  flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%;
  background: #FFFFFF; box-shadow: inset 0 0 0 2px var(--c-main);
}
.cand__input:checked + .cand__face { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c-main); }
.cand__input:checked + .cand__face .cand__dot::after {
  content: ""; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-main);
}
.cand__input:focus-visible + .cand__face { outline: 3px solid var(--c-main); outline-offset: 2px; }
.cand__body { display: flex; flex-direction: column; min-width: 0; }
.cand__l1 { font-size: 15px; line-height: 1.5; }
.cand__id { margin-right: 8px; }
.cand__l2 { font-size: 15px; line-height: 1.5; }
.cand__amt { font-weight: 700; }
.cand__sep { color: var(--c-sub); font-size: 13px; }
.cand__diff { color: var(--c-sub); font-size: 13px; }
.cands__go { margin-top: 12px; }
.cands__why { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }

/* ---------- 未入金の一覧 ---------- */
.open__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.open__total-count { font-size: 15px; }
.open__total-yen { color: var(--c-main); font-size: 22px; font-weight: 700; }
.open__total + .tbl { margin-top: 12px; }
.tbl--open { max-width: 880px; }
.tbl--open .c-state { color: var(--c-sub); font-size: 14px; font-weight: 700; }
.open-row--late { background: var(--c-check-bg); }
.open-row--late .c-state { color: var(--c-check); }
.tbl--open .c-state svg { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
@media (max-width: 767px) {
  .tbl--open tbody tr { margin-top: 8px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: var(--radius); }
  .tbl--open tbody tr:last-child { border-bottom: 1px solid var(--c-line); }
  .tbl--open tbody tr.open-row--late { background: var(--c-check-bg); }
}
@media (min-width: 768px) {
  .tbl--open { background: #FFFFFF; border: 1px solid var(--c-line); }
  .tbl--open .c-id { width: 128px; }
  .tbl--open .c-amt { width: 112px; }
  .tbl--open .c-due { width: 128px; }
  .tbl--open .c-state { width: 216px; white-space: nowrap; }
  .tbl--open tbody .c-amt { font-weight: 700; }
}

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec--lab { 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-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--c-main); letter-spacing: .04em; }
.lab-lead { margin-top: 12px; max-width: 40em; }
.work-3 { display: grid; gap: 16px; margin-top: 24px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; font-size: 17px; }
.work-3 ul, .work-check ul { margin-top: 8px; }
.work-3 ul li, .work-check li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.work-3 ul li + li, .work-check li + li { margin-top: 4px; }
.work-3 ul li::before, .work-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; 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 { font-size: 16px; }
.work-check__note { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { font-size: 14px; padding: 0; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-main); color: #FFFFFF; font-size: 15px; line-height: 1.8;
  padding: 48px 16px; text-align: center;
}
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
/* 面はテラコッタ・文字は白。茶の面との差が小さいので白 2px の枠を付ける */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-height: 52px;
  margin: 0 auto; border: 2px solid #FFFFFF; border-radius: 26px; background: var(--c-accent); color: #FFFFFF;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-hover); color: #FFFFFF; }
.copy { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .list__chev { transition: none; }
}

/* 枠を描く色を強制する表示（ハイコントラスト）では box-shadow が消えるので、本物の枠を出す */
@media (forced-colors: active) {
  .cand__face, .cand__dot, .status, .alias-tag { border: 2px solid CanvasText; }
  .cand__input:checked + .cand__face { border-color: Highlight; }
  .cand__input:checked + .cand__face .cand__dot::after { background: Highlight; }
  .pay--check { border-left: 4px solid CanvasText; }
}

/* ---------- 768px 以上 ---------- */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --gap-sec: 80px; --pad-card: 24px; }
  .hd__in { min-height: 64px; }
  .hd__name { font-size: 20px; }
  .hero { padding: 64px 0 80px; }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; }
  .hero__art { grid-column: 2; grid-row: 1; height: 160px; aspect-ratio: auto; margin: 0; }
  .hero__text { grid-column: 1; grid-row: 1; min-width: 0; }
  .hero__kind { font-size: 15px; }
  .h1 { font-size: 34px; }
  .hero__lead { font-size: 17px; }
  .data { padding-top: 0; }
  .sec__title { font-size: 26px; }
  .lab-title { font-size: 26px; }
  .sec__lead { font-size: 16px; }
  .sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 32px; }
  .sec__lead + .match__run { margin-top: 32px; }
  .sec__lead ~ .pays { margin-top: 32px; }
  h3 { font-size: 19px; }
  .match__run { width: 320px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 12px; }
  .tile__num { font-size: 30px; }
  .tile__num--yen { font-size: 28px; }
  .pay__inv { font-size: 15px; }
  .pay { padding: 16px 20px; }
  .pay--check { padding-left: 24px; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn { width: 280px; }
}

/* ---------- 1024px 以上：3か所を2列に ---------- */
@media (min-width: 1024px) {
  .hd__in { min-height: 72px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .hero__art { height: 200px; }
  .h1 { font-size: 38px; }
  .data__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .list + .data__grid { margin-top: 24px; }
  /* 左右の列が半分になるので、表の文字を 14px（番号は 13px）にし、期日・入金日の列を 120px にする */
  .tbl--inv, .tbl--dep { font-size: 14px; }
  .tbl--inv tbody .c-id, .tbl--dep tbody .c-id { font-size: 13px; }
  .tbl--inv .c-id { width: 104px; }
  .tbl--inv .c-due { width: 120px; }
  .tbl--dep .c-id { width: 80px; }
  .tbl--dep .c-day { width: 120px; }
  .tbl--inv th, .tbl--inv td, .tbl--dep th, .tbl--dep td { padding-left: 8px; padding-right: 8px; }
  .tbl--inv .c-amt, .tbl--dep .c-amt { padding-left: 4px; }
  .match__grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  /* まとめの上端を、左の h2 の上端にそろえる（英字の札 18px ＋ 間 8px） */
  .match__sum { padding-top: 26px; }
  .match__run { width: 100%; }
  .pays { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- 印刷（崩れない程度） ---------- */
@media print {
  .tl-bar__back, .hero__art, .btn, .lab-more, .match__run, .match__reset, .cands__go { display: none !important; }
  body { background: none; color: #3B2F28; }
  .sec--band, .site-footer, .tl-bar { background: none !important; color: #3B2F28 !important; }
  .pay, .work-3 > li, .tile { break-inside: avoid; }
}
