/* お弁当のユキワタリ亭（デモ）配達できる？いつ届く？確認ページ */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・実際のお仕事では）は、これまでの LP のデモと同じクラス名と作り */
:root {
  --c-base: #FBF8F1;
  --c-surface: #FFFFFF;
  --c-soft: #FBEFD0;
  --c-main: #2F5A2E;
  --c-accent: #F4A48C;
  --c-accent-hover: #F7BAA6;
  --c-text: #2A231D;
  --c-sub: #5E5448;
  --c-line: #DED6C8;
  --c-zone-a: #DCEAD2;
  --c-zone-b: #FBE3A6;
  --c-zone-c: #F6D3C6;
  --c-zone-x: #E4E2DD;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: 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 { padding: 15px 0; font-weight: 700; }
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 { scroll-margin-top: 24px; }
p, li, dd { text-wrap: pretty; }

/* ---------- 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; } }

/* ---------- ボタン ---------- */
/* 行動ボタン：淡い紅の面に墨の文字。面とご飯の比が低いので笹の 2px の枠を付ける */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 2px solid var(--c-main); border-radius: 28px;
  background: var(--c-accent); color: var(--c-text); 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: var(--c-text); }
.btn-main svg { color: var(--c-text); }
.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; }
.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: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; 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--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-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__intro { margin-top: 8px; font-size: 15px; line-height: 1.8; max-width: 40em; }
.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__act { margin-top: 24px; }
.hero__btn { width: 100%; }

/* ---------- 確認の帯（配達できるか・いつ届く） ---------- */
.check { padding: var(--gap-sec) 0; }
.check .sec { padding: 0; }
.check__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.check__when { margin-top: 24px; }
.check__res { min-width: 0; }
.check__area, .check__when { min-width: 0; }
.field { margin-top: 24px; }
.sec__lead + .field { margin-top: 24px; }
.field__label { display: block; padding: 0; margin-bottom: 8px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
.field__hint { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.7; max-width: 40em; }
.sel-wrap { position: relative; }
.sel {
  display: block; width: 100%; min-height: 48px; padding: 0 44px 0 12px; margin: 0;
  border: 0; border-radius: 8px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-sub);
  color: var(--c-text); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.3;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sel:hover { box-shadow: inset 0 0 0 2px var(--c-main); }
.sel__icon { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--c-main); pointer-events: none; }

/* 模式図：SVG の絵の上に HTML のボタン12個を重ねる */
.map__caption { margin-top: 24px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.map { position: relative; aspect-ratio: 4 / 3; max-width: 560px; margin: 8px auto 0; }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map__tile { fill: none; stroke: var(--c-sub); stroke-width: 1.5; }
.map__tile.is-sel { stroke: var(--c-main); stroke-width: 4; }
.map__grid { position: absolute; inset: 0; }
.map__btn {
  position: absolute; left: calc(var(--c) * 25% + 1%); top: calc(var(--r) * 33.3333% + 1.3333%); width: 23%; height: 30.6667%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 2px 0; margin: 0; border: 0; border-radius: 10px; background: transparent; color: var(--c-text);
}
.map__btn:focus-visible { outline: 3px solid var(--c-main); outline-offset: -3px; }
.map__btn[aria-pressed="true"]:focus-visible { box-shadow: inset 0 0 0 5px #FFFFFF; }
.map__name {
  display: block; padding: 2px 4px; border-radius: 6px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--c-sub);
  font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.map__btn:hover .map__name { box-shadow: inset 0 0 0 2px var(--c-main); }
.map__zone {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-text); font-size: 13px; font-weight: 700; line-height: 1;
}
.map__zone svg { color: var(--c-text); }
.map__check {
  position: absolute; top: 3px; left: 3px; display: none; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; color: var(--c-main);
}
.map__btn[aria-pressed="true"] .map__check { display: flex; }
.map__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; color: var(--c-text); font-size: 14px; line-height: 1.6; }
.map__legend li { display: inline-flex; align-items: center; gap: 6px; }
.map__legend-star { color: var(--c-main); }

/* 区分のカード */
.zones__title { margin-top: 32px; }
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.zone-card { min-width: 0; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.zone-card--current { box-shadow: 0 0 0 2px var(--c-main); border-color: var(--c-main); }
.zone-card__band { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1.3; }
.zone-card--a .zone-card__band { background: var(--c-zone-a); }
.zone-card--b .zone-card__band { background: var(--c-zone-b); }
.zone-card--c .zone-card__band { background: var(--c-zone-c); }
.zone-card--x .zone-card__band { background: var(--c-zone-x); }
.zone-card dl { padding: 8px 12px 12px; }
.zone-card dl > div + div { margin-top: 6px; }
.zone-card dt { color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.zone-card dd { color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1.5; }
.zones__note { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; max-width: 40em; }

/* 地区の結果のカード */
.zres__empty, .wres__msg { color: var(--c-text); font-size: 15px; line-height: 1.7; }
.zres__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zres__name { color: var(--c-text); font-size: 20px; font-weight: 700; line-height: 1.3; }
.zres__badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--c-sub); color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1;
}
.zres__badge--a { background: var(--c-zone-a); }
.zres__badge--b { background: var(--c-zone-b); }
.zres__badge--c { background: var(--c-zone-c); }
.zres__ok { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--c-text); font-size: 17px; font-weight: 700; line-height: 1.4; }
.zres__ok svg { color: var(--c-main); }
.zres__list { margin-top: 12px; border-top: 1px solid var(--c-line); }
.zres__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.zres__row dt { color: var(--c-sub); font-size: 14px; line-height: 1.5; }
.zres__row dd { color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.5; text-align: right; }
.zres__shop { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.zres__to-when { margin-top: 16px; }
.zres__to-when .btn-sub { width: 100%; }

/* 案内の箱（締め後・定休日・区域外・あと◯個） */
.notice { background: #FFFFFF; border: 2px dashed var(--c-main); border-radius: 12px; padding: 16px; }
.notice__head { display: flex; align-items: flex-start; gap: 8px; }
.notice__head svg { margin-top: .2em; color: var(--c-main); }
.notice__title { color: var(--c-text); font-size: 17px; font-weight: 700; line-height: 1.5; }
.notice__text { margin-top: 8px; color: var(--c-text); font-size: 15px; line-height: 1.7; }
.notice__h3 { margin-top: 16px; font-size: 16px; }
.notice__list { margin-top: 8px; }
.notice__list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.notice__list li + li { margin-top: 8px; }
.notice__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-main); }

/* いまの時刻（デモ） */
.now { min-width: 0; padding: 0; border: 0; margin-top: 24px; }
.sec__lead + .now { margin-top: 24px; }
.now__note { margin: -2px 0 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.now__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.now-opt { position: relative; display: flex; min-width: 0; cursor: pointer; }
.now-opt__face {
  display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-height: 72px; padding: 8px 12px;
  border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-sub); color: var(--c-text);
}
.now-opt__day { font-size: 14px; font-weight: 700; line-height: 1.3; }
.now-opt__time { font-size: 20px; font-weight: 700; line-height: 1.1; }
.now-opt__tag { margin-top: 2px; color: var(--c-sub); font-size: 12px; line-height: 1.3; }
.now-opt:hover .now-opt__input:not(:checked) + .now-opt__face { box-shadow: inset 0 0 0 2px var(--c-main); background: var(--c-soft); }
.now-opt__input:checked + .now-opt__face { box-shadow: inset 0 0 0 2px var(--c-main); background: var(--c-main); color: #FFFFFF; }
.now-opt__input:checked + .now-opt__face .now-opt__tag { color: #FFFFFF; }
.now-opt__input:focus-visible + .now-opt__face { outline: 3px solid var(--c-main); outline-offset: 3px; }

/* 個数 */
.qty { margin-top: 24px; }
.qty__row { display: flex; align-items: center; gap: 8px; }
.qty__minus, .qty__plus {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--c-main); border-radius: 24px; background: #FFFFFF; color: var(--c-main);
}
.qty__minus:hover, .qty__plus:hover { background: var(--c-soft); }
.qty__minus[aria-disabled="true"], .qty__plus[aria-disabled="true"] { border-color: var(--c-sub); color: var(--c-sub); background: #FFFFFF; cursor: default; }
.qty__out { display: inline-flex; align-items: baseline; justify-content: center; width: 96px; height: 48px; line-height: 48px; color: var(--c-text); font-size: 24px; font-weight: 700; }
.qty__quick-label { margin-top: 12px; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.4; }
.qty__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qty__quick button {
  min-width: 64px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--c-main); border-radius: 22px;
  background: #FFFFFF; color: var(--c-main); font-size: 15px; font-weight: 700; line-height: 1.2;
}
.qty__quick button:hover, .qty__quick button[aria-pressed="true"] { background: var(--c-soft); }
.qty__quick button[aria-pressed="true"] { border-width: 2px; }

/* お弁当 */
.bento { min-width: 0; padding: 0; border: 0; margin-top: 24px; }
.bento__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.bento-opt { position: relative; display: flex; min-width: 0; cursor: pointer; }
.bento-opt__face {
  display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px;
  border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-sub); color: var(--c-text); line-height: 1.4;
}
.bento-opt__dot { width: 20px; height: 20px; }
.bento-opt__dot .o { fill: #FFFFFF; stroke: var(--c-sub); stroke-width: 2; }
.bento-opt__dot .i { fill: #FFFFFF; visibility: hidden; }
.bento-opt__name { font-size: 15px; font-weight: 700; }
.bento-opt__price { margin-left: auto; font-size: 15px; }
.bento-opt:hover .bento-opt__input:not(:checked) + .bento-opt__face { box-shadow: inset 0 0 0 2px var(--c-main); background: var(--c-soft); }
.bento-opt__input:checked + .bento-opt__face { box-shadow: inset 0 0 0 2px var(--c-main); background: var(--c-main); color: #FFFFFF; }
.bento-opt__input:checked + .bento-opt__face .bento-opt__dot .o { fill: var(--c-main); stroke: #FFFFFF; }
.bento-opt__input:checked + .bento-opt__face .bento-opt__dot .i { visibility: visible; }
.bento-opt__input:focus-visible + .bento-opt__face { outline: 3px solid var(--c-main); outline-offset: 3px; }

/* いつ届くの結果 */
.wres__title + * { margin-top: 4px; }
.wres__title--money { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.wres__now { color: var(--c-sub); font-size: 14px; line-height: 1.7; }
#wres-day { margin-top: 12px; }
#wres-day > * + * { margin-top: 12px; }
#wres-money { margin-top: 12px; }
.when-day { background: var(--c-base); border: 1px solid var(--c-line); border-radius: 8px; padding: 16px; }
.when-day > * + * { margin-top: 4px; }
.when-day__label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
.when-day__badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-main); color: var(--c-main); font-size: 13px; font-weight: 700; line-height: 1;
}
.when-day__value { color: var(--c-main); font-size: 28px; font-weight: 700; line-height: 1.2; }
.when-day__cut { color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.6; }
.wres__sub, .wres__note { color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.wres > .wres__note { margin-top: 16px; }

/* 配達料と合計の表 */
.sum { width: 100%; border-collapse: collapse; }
.sum th, .sum td { padding: 8px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.sum th { text-align: left; font-weight: 400; }
.sum td { padding-left: 12px; text-align: right; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.5; }
.sum__item { display: block; color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.5; }
.sum__sub { display: block; color: var(--c-sub); font-size: 13px; line-height: 1.5; }
.sum__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--c-main); }
.sum__total-label { color: var(--c-text); font-size: 15px; font-weight: 700; line-height: 1.4; }
.sum__total-value { color: var(--c-main); font-size: 26px; font-weight: 700; line-height: 1.2; }
.sum__yen { font-size: 18px; }
.sum__note { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }

/* ---------- ご注文の前に ---------- */
.before__card { max-width: 720px; }
.before__card p { font-size: 16px; line-height: 1.8; }
.before__card p + p { margin-top: 12px; }

/* ---------- 実際のお仕事では（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-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: var(--c-base); 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; }
/* 面は紅・文字は墨（白い文字は紅の上で 4.5 に届かないため）。枠は白 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: 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: 12px; }

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

/* 枠を描く色を強制する表示（ハイコントラスト）では box-shadow が消えるので、本物の枠を出す */
@media (forced-colors: active) {
  .now-opt__face, .bento-opt__face, .sel, .map__name, .map__zone, .zres__badge, .when-day__badge { border: 2px solid CanvasText; }
  .now-opt__input:checked + .now-opt__face, .bento-opt__input:checked + .bento-opt__face { border-color: Highlight; }
  .map__btn[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
}

/* ---------- 360〜374px：模式図の地区名だけ 12px ---------- */
@media (max-width: 374px) {
  .map__name { font-size: 12px; }
}

/* ---------- 768px 以上 ---------- */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --gap-sec: 80px; --pad-card: 24px; }
  .hd__in { min-height: 64px; }
  .hd__name { font-size: 18px; }
  .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; }
  .hero__btn { width: auto; min-width: 240px; }
  .sec__title { font-size: 26px; }
  .sec__lead { font-size: 16px; }
  .sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 32px; }
  .sec__lead + .field, .sec__lead + .now { margin-top: 32px; }
  h3 { font-size: 19px; }
  .check__when { margin-top: 32px; }
  .map__name { font-size: 14px; }
  .map__zone { font-size: 14px; }
  .zones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice { padding: 20px; }
  .notice__title { font-size: 18px; }
  .zres__name { font-size: 22px; }
  .zres__ok { font-size: 18px; }
  .when-day__value { font-size: 30px; }
  .sum__total-value { font-size: 28px; }
  .zres__to-when .btn-sub { width: auto; }
  .btn { width: 280px; }
}

/* ---------- 1024px 以上：左に条件・右に結果 ---------- */
@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; }
  .check__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; row-gap: 48px; align-items: start; }
  .check__area { grid-column: 1; grid-row: 1; }
  #area-result { grid-column: 2; grid-row: 1; }
  .check__when { grid-column: 1; grid-row: 2; margin-top: 0; }
  #when-result { grid-column: 2; grid-row: 2; }
  /* 結果のカードの上端を、左の h2 の上端にそろえる（英字の札の高さ 18px ＋ 間 8px） */
  .check__res { padding-top: 26px; }
  /* 左の列が半分になるので、区分のカードは 2×2 に戻す */
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zres__to-when { display: none; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 印刷（崩れない程度） ---------- */
@media print {
  .tl-bar__back, .hero__art, .hero__act, .btn, .lab-more, .zres__to-when { display: none !important; }
  body { background: none; color: #2A231D; }
  .sec--band, .site-footer, .tl-bar { background: none !important; color: #2A231D !important; }
  .card, .work-3 > li, .zone-card { break-inside: avoid; }
}
