/* 南日本新聞 上荒田販売センター 共通スタイル
   レイアウト方針：新聞の紙面（題字・罫線・明朝）を土台に、お手続きは大きく押しやすく */
:root {
  --ink: #1a1a1a;
  --paper: #f7f3ec;
  --paper-deep: #ede6d6;
  --white: #fffdf8;
  --red: #a8261c;
  --red-deep: #7d1a13;
  --line-green: #06c755;    /* LINEのボタン色 */
  --line-green-deep: #05a648;
  --soft-red: #f2dfd6;       /* 淡い紅（配達一時休止のボタン） */
  --soft-red-deep: #ebcfc3;
  --rule: #1a1a1a;
  --muted: #6b6457;
  --line: #cfc5b2;
  --ok: #2f5d3a;
  --warn-bg: #fbeee0;
  --mincho: 'Shippori Mincho', 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  /* 日本語の改行：build.py が文節の切れ目に <wbr> を入れているので、そこでだけ折り返す。
     入りきらない長い語は、はみ出さないよう途中でも折り返す */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
p, li, dd, td { text-wrap: pretty; }
h1, h2, h3, .page-title, .qa-title, .biz-title { text-wrap: balance; }
/* 画面の動きで書き換わる文字（<wbr> が入らない）はふつうの折り返し */
.confirm dd, #t-warn, .confirm .alert, .calc, [data-minapos], [data-dl-out], .notice-date, .notice-count { word-break: normal; }
.nw { white-space: nowrap; }
a { color: inherit; }
[hidden] { display: none !important; }
.form, .confirm, .done { scroll-margin-top: 80px; }
img { max-width: 100%; }
/* 紙のエンボス（凹凸）の柄は、スマホでちらつくため 2026-10-08 にやめた（背景は生成りの単色） */

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(16px, 5vw); }

/* ===== 題字（マストヘッド） ===== */
.masthead { border-bottom: 4px double var(--rule); padding-block: 16px 14px; background: var(--paper); }
.masthead-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 14px;
}
.masthead-top .edition { font-family: var(--mincho); }
.masthead-main { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.logo-block { text-decoration: none; display: block; }
.logo-block .kanji-small { font-family: var(--mincho); font-size: 13px; letter-spacing: 0.3em; color: var(--red); font-weight: 700; margin-bottom: 4px; }
.logo-block .kanji-main { font-family: var(--mincho); font-size: clamp(26px, 5vw, 44px); font-weight: 900; letter-spacing: 0.05em; line-height: 1; }
.logo-block .romaji { font-family: var(--serif); font-size: 10px; letter-spacing: 0.3em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.contact-block { text-align: right; font-family: var(--mincho); }
.contact-block .tel-label { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.contact-block .tel-number { font-size: clamp(20px, 3vw, 26px); font-weight: 700; letter-spacing: 0.05em; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-block .hours { font-family: var(--sans); font-size: 11px; color: var(--muted); }

/* ===== ナビ ===== */
.gnav { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.gnav ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; padding-block: 8px; }
.gnav a {
  display: block; font-family: var(--mincho); font-size: 14px; text-decoration: none;
  padding: 4px 16px; border-right: 1px solid var(--line); letter-spacing: 0.1em; white-space: nowrap;
}
.gnav li:last-child a { border-right: none; }
.gnav a:hover { color: var(--red); }
.gnav a[aria-current="page"] { color: var(--red); font-weight: 700; }
.gnav a.nav-key { color: var(--red); font-weight: 700; }

/* ===== 掲示板（休刊日・古紙回収日）：新聞の「囲み記事」風 ===== */
.board { background: var(--paper-deep); color: var(--ink); border-bottom: 1px solid var(--rule); padding-block: 14px; }
.board .wrap { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0; align-items: stretch; border: 3px double var(--rule); background: var(--paper); padding: 0; max-width: calc(1200px - 2 * max(16px, 5vw)); }
@media (max-width: 1200px) { .board .wrap { margin-inline: max(16px, 5vw); } }
.board-title {
  font-family: var(--mincho); font-weight: 900; font-size: 15px; letter-spacing: 0.3em;
  writing-mode: vertical-rl; padding: 12px 10px; background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.notice { display: flex; align-items: center; gap: 18px; padding: 14px 24px; min-width: 0; color: var(--ink); }
.notice + .notice { border-left: 1px solid var(--rule); }
a.notice:hover { background: var(--white); }
.notice-label { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.15em; color: var(--muted); }
.notice-label .tag { display: inline-block; border: 1px solid var(--red); color: var(--red); padding: 0 8px; margin-right: 6px; letter-spacing: 0.15em; }
.notice-date { font-family: var(--mincho); font-weight: 900; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.notice-date small { font-size: 0.5em; font-weight: 700; margin-left: 2px; }
.notice-sub { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 26em; }
.notice-count {
  margin-left: auto; flex-shrink: 0; text-align: center; font-family: var(--mincho);
  border: 1px solid var(--red); color: var(--red); padding: 6px 12px; font-size: 12px; line-height: 1.3;
}
.notice-count b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.notice-count.today { background: var(--red); color: var(--white); }

/* ===== よく使うお手続き ===== */
.quick { padding-block: 36px; border-bottom: 1px solid var(--rule); }
.quick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.quick-head h2 { font-family: var(--mincho); font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; letter-spacing: 0.08em; }
.quick-head p { font-size: 13px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.qa {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--white);
  border: 1px solid var(--rule); padding: 18px 20px; position: relative; transition: background .2s, color .2s;
  min-width: 0;
}
.qa:hover { background: var(--paper-deep); }
.qa .qa-title { font-family: var(--mincho); font-weight: 900; font-size: 19px; letter-spacing: 0.05em; padding-right: 24px; }
.qa .qa-desc { font-size: 13px; color: var(--muted); }
.qa::after { content: '→'; position: absolute; right: 16px; top: 16px; font-family: var(--mincho); font-size: 20px; color: var(--red); }
.qa.primary { grid-row: span 2; background: var(--soft-red); color: var(--ink); border: 2px solid var(--red); justify-content: center; padding: 28px; }
.qa.primary:hover { background: var(--soft-red-deep); }
.qa.primary .qa-title { font-size: clamp(24px, 3vw, 32px); color: var(--red-deep); }
.qa.primary .qa-desc { color: #5a4a44; font-size: 14px; }
.qa.primary::after { color: var(--red); font-size: 28px; top: auto; bottom: 22px; right: 24px; }
.qa .qa-eyebrow { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.3em; }

/* ===== トップ：ヒーロー ===== */
.hero { padding-block: 64px 70px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.eyebrow { font-family: var(--mincho); font-size: 13px; letter-spacing: 0.4em; color: var(--red); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--red); }
.hero-headline { font-family: var(--mincho); font-size: clamp(34px, 5.2vw, 60px); font-weight: 900; line-height: 1.25; letter-spacing: 0.02em; margin-bottom: 26px; text-wrap: balance; }
.hero-headline .red, .red { color: var(--red); }
.hero-lead { font-family: var(--serif); font-size: 16px; line-height: 2; max-width: 30em; }
.hero-right { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.vertical-text {
  writing-mode: vertical-rl; font-family: var(--mincho); font-size: 22px; line-height: 2; letter-spacing: 0.15em;
  height: 100%; padding: 30px 16px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
}
.vertical-text .vt-meta { font-size: 11px; color: var(--red); letter-spacing: 0.3em; margin-top: 2em; }

/* ===== 配達区域・取扱い紙 ===== */
.stats { background: var(--ink); color: var(--paper); padding-block: 52px; }
.stats-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.stat-block { padding: 6px 40px; display: grid; gap: 14px; align-content: start; }
.stat-block + .stat-block { border-left: 1px solid rgba(247,243,236,.25); }
.stat-label { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.3em; color: rgba(247,243,236,.7); }
.stat-towns { list-style: none; display: flex; font-family: var(--mincho); font-weight: 900; }
.stat-towns li { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; padding-inline: 0.6em; white-space: nowrap; }
.stat-towns li:first-child { padding-left: 0; }
.stat-towns li + li { border-left: 1px solid rgba(247,243,236,.35); }
.stat-papers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mincho); font-weight: 700; }
.stat-papers li { font-size: 15px; border: 1px solid rgba(247,243,236,.4); padding: 2px 12px; }
.stat-papers li.main { font-size: clamp(26px, 3vw, 36px); font-weight: 900; width: 100%; border: none; padding: 0; }
.stat-sub { font-size: 13px; color: rgba(247,243,236,.7); letter-spacing: 0.05em; }
.stat-sub a { color: #f2c5bf; text-decoration: none; }
.stat-sub a:hover { text-decoration: underline; }

.viewer-note { margin: -8px 0 22px; padding: 12px 14px; background: var(--white); border-left: 3px solid var(--red); font-size: 13px; line-height: 1.8; }
.viewer-note a { font-family: var(--mincho); font-weight: 700; color: var(--red); }
.viewer-note a::after { content: ' ↗'; }

/* ===== セクション共通 ===== */
.section { padding-block: 80px; }
.section.alt { background: var(--paper-deep); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-eyebrow { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.5em; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: var(--mincho); font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: 0.08em; }
.section-title::before, .section-title::after { content: '—'; margin: 0 16px; color: var(--red); }

.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.biz-card { background: var(--paper); padding: 44px 32px; }
.biz-kicker { font-family: var(--mincho); font-size: 13px; color: var(--red); letter-spacing: 0.3em; margin-bottom: 16px; }
.biz-title { font-family: var(--mincho); font-size: 25px; font-weight: 900; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.biz-desc { font-family: var(--serif); font-size: 14px; line-height: 2; margin-bottom: 22px; }
.biz-link, .text-link { font-family: var(--mincho); font-size: 14px; letter-spacing: 0.15em; color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 2px; }

.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article { background: var(--paper); padding: 28px 26px; border-top: 3px solid var(--ink); }
.article-tag { display: inline-block; font-family: var(--mincho); font-size: 11px; letter-spacing: 0.3em; color: var(--paper); background: var(--red); padding: 3px 10px; margin-bottom: 14px; }
.article-date { font-family: var(--mincho); font-size: 11px; color: var(--muted); letter-spacing: 0.15em; margin-bottom: 8px; }
.article h3 { font-family: var(--mincho); font-size: 20px; font-weight: 900; line-height: 1.5; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dotted var(--rule); }
.article p { font-family: var(--serif); font-size: 13px; line-height: 1.9; }
.article p.article-link { margin-top: 12px; font-family: var(--sans); font-size: 13px; }

.message-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--mincho); font-size: 100px; color: var(--red); line-height: 0.6; margin-bottom: 20px; opacity: 0.4; }
.message-text { font-family: var(--mincho); font-size: clamp(19px, 2.4vw, 27px); font-weight: 500; line-height: 2.2; letter-spacing: 0.06em; margin-bottom: 36px; }
.message-text .red { font-weight: 700; }
.signature { display: inline-flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.signature .role { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.signature .name { font-family: var(--mincho); font-size: 18px; font-weight: 700; letter-spacing: 0.15em; }

/* ===== 下層ページ：見出し ===== */
.page-head { padding-block: 44px 34px; border-bottom: 1px solid var(--rule); }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--red); }
.page-kicker { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.4em; color: var(--red); margin-bottom: 8px; }
.page-title { font-family: var(--mincho); font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; letter-spacing: 0.06em; line-height: 1.3; text-wrap: balance; }
.page-lead { font-family: var(--serif); font-size: 15px; line-height: 2; margin-top: 14px; max-width: 40em; }

.page-body { padding-block: 44px 80px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.cols > * { min-width: 0; }
.aside { position: sticky; top: 72px; display: grid; gap: 16px; }

.h2 { font-family: var(--mincho); font-size: 22px; font-weight: 900; letter-spacing: 0.06em; padding-bottom: 10px; border-bottom: 2px solid var(--rule); margin-bottom: 18px; }
.h2 .num { color: var(--red); margin-right: 8px; }
.prose { font-family: var(--serif); font-size: 15px; line-height: 2; max-width: 40em; }
.prose p + p { margin-top: 1em; }
/* プライバシーポリシー */
.policy { max-width: 46em; }
.policy h2 { font-family: var(--mincho); font-size: 19px; font-weight: 900; letter-spacing: 0.05em; margin: 2.2em 0 0.6em; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.policy ul { list-style: none; display: grid; gap: 6px; margin: 0.6em 0 0; }
.policy li { position: relative; padding-left: 1.2em; }
.policy li::before { content: '・'; position: absolute; left: 0; color: var(--red); }
.policy-contact { background: var(--white); border: 1px solid var(--rule); padding: 14px 18px; margin-top: 0.8em; }
.policy-date { margin-top: 2.4em; font-size: 13px; color: var(--muted); text-align: right; }
.block + .block { margin-top: 48px; }

.memo { background: var(--white); border: 1px solid var(--rule); padding: 20px 22px; }
.memo h3 { font-family: var(--mincho); font-size: 16px; font-weight: 900; margin-bottom: 10px; letter-spacing: 0.05em; }
.memo ul { list-style: none; display: grid; gap: 10px; font-size: 14px; }
.memo li { padding-left: 1.1em; position: relative; }
.memo li::before { content: '■'; position: absolute; left: 0; color: var(--red); font-size: 0.7em; top: 0.35em; }
.memo.red-top { border-top: 4px solid var(--red); }
.tel-box { text-align: center; }
.tel-box .big { font-family: var(--mincho); font-size: 28px; font-weight: 900; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; display: block; text-decoration: none; }
.tel-box .small { font-size: 12px; color: var(--muted); }

.steps { padding-left: 1.4em; display: grid; gap: 8px; }
.steps li::marker { font-family: var(--mincho); font-weight: 900; color: var(--red); }
.notes { list-style: none; display: grid; gap: 10px; max-width: 46em; }
.notes li { position: relative; padding-left: 1.3em; font-size: 15px; line-height: 1.9; }
.notes li::before { content: '◆'; position: absolute; left: 0; color: var(--red); font-size: 0.8em; top: 0.2em; }
.viewer-box { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); padding: 18px 22px; margin-bottom: 30px; display: grid; gap: 8px; font-size: 14px; }
.viewer-k { font-family: var(--mincho); font-weight: 900; font-size: 18px; }
.viewer-cond { font-size: 13px; color: var(--red-deep); background: var(--soft-red); padding: 8px 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.photo { margin-bottom: 24px; border: 1px solid var(--rule); background: var(--white); padding: 8px; }
.photo img { display: block; width: 100%; height: auto; max-height: 400px; object-fit: cover; object-position: 50% 45%; }
.photo figcaption { font-family: var(--mincho); font-size: 12px; color: var(--muted); padding-top: 6px; }
.placeholder { border: 2px dashed var(--red); background: var(--warn-bg); padding: 16px 18px; font-size: 13px; color: var(--red-deep); }

/* 表 */
.table-wrap { overflow-x: auto; }
table.paper { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
table.paper th, table.paper td { border: 1px solid var(--rule); padding: 12px 16px; text-align: left; vertical-align: top; }
table.paper th { background: var(--paper-deep); font-family: var(--mincho); font-weight: 700; white-space: nowrap; }
table.paper td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mincho); font-weight: 700; font-size: 17px; white-space: nowrap; }

.pay-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.pay { background: var(--white); border: 1px solid var(--rule); padding: 20px 22px; }
.pay h3 { font-family: var(--mincho); font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.pay p { font-size: 14px; }
.pay dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin-top: 8px; }
.pay dt { color: var(--muted); }


/* お支払方法：手数料無料の案内 */
.pay-lead { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--red); padding: 22px 24px; margin-bottom: 18px; display: grid; gap: 8px; }
.pay-lead-t { font-family: var(--mincho); font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; line-height: 1.6; }
.pay-lead-t b { color: var(--red); font-weight: 900; background: linear-gradient(transparent 62%, var(--soft-red) 62%); }
.pay-lead p:last-child { font-size: 14px; }
.pay-free { position: relative; border-color: var(--red); }
.pay-free .free { display: inline-block; background: var(--red); color: var(--white); font-family: var(--mincho); font-weight: 700; font-size: 12px; letter-spacing: 0.15em; padding: 2px 10px; margin-bottom: 8px; }
.pay-wide { grid-column: 1 / -1; }
.banks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.banks li { font-size: 13px; border: 1px solid var(--line); background: var(--paper); padding: 1px 10px; }
.pay-howto { margin-top: 10px; padding-top: 10px; border-top: 1px dotted var(--rule); font-size: 14px; }
.pay-howto span { display: block; font-size: 12px; color: var(--muted); }
.pay-plain { margin-top: 16px; background: transparent; border-style: dashed; }
.pay-plain h3 { font-size: 16px; }
.sp-only { display: none; }
@media (max-width: 760px) { .sp-only { display: inline; } .pay .btn.primary { font-size: 15px; letter-spacing: 0.04em; padding-inline: 12px; } }

/* ===== 折込チラシのページ ===== */
.ad-ways { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: stretch; }
.ad-plus { align-self: center; font-family: var(--mincho); font-weight: 900; font-size: 34px; color: var(--red); line-height: 1; }
.ad-tag { display: inline-block; border: 1px solid var(--red); color: var(--red); font-family: var(--mincho); font-weight: 700; font-size: 13px; letter-spacing: 0.15em; padding: 1px 10px; margin-bottom: 8px; }
.ad-big { font-family: var(--mincho); font-weight: 700; margin: 4px 0 8px; }
.ad-big b { font-size: 34px; font-weight: 900; color: var(--red); font-variant-numeric: tabular-nums; margin-right: 2px; }
.ad-big span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.ad-tables { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
table.paper caption { caption-side: top; text-align: left; font-family: var(--mincho); font-weight: 700; font-size: 14px; padding-bottom: 6px; }
table.paper tr.sum td { background: var(--paper-deep); font-weight: 700; }
.estimator { margin-top: 20px; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); padding: 18px 22px; display: grid; gap: 14px; }
.estimator h3 { font-family: var(--mincho); font-size: 17px; font-weight: 900; }
.estimator .choices { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.estimator select, .estimator input[type="date"] { max-width: 320px; }
.est-result { gap: 8px 20px; }
table.minapos td b { color: var(--red); }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }

/* ===== フォーム ===== */
.form { display: grid; gap: 26px; }
.fieldset { border: none; display: grid; gap: 22px; }
.legend { font-family: var(--mincho); font-weight: 900; font-size: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); width: 100%; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 1px 7px; letter-spacing: 0.1em; }
.req { background: var(--red); color: var(--white); }
.opt { border: 1px solid var(--muted); color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--muted); padding: 12px 14px; width: 100%; border-radius: 0;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(168,38,28,.35); border-color: var(--red); }
.addr { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 10px; }
.date-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.date-pair .field > label { font-size: 14px; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice > span {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--muted); background: var(--white);
  padding: 12px 14px; font-size: 15px; min-height: 100%;
}
.choice > span::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 50%; flex-shrink: 0; }
.choice input[type="checkbox"] + span::before { border-radius: 2px; }
.choice input:checked + span { border-color: var(--red); background: #fbf0ee; box-shadow: inset 0 0 0 1px var(--red); }
.choice input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px var(--white); }
.choice input:focus-visible + span { outline: 3px solid rgba(168,38,28,.35); }
.choice .sub { display: block; font-size: 12px; color: var(--muted); }
.choice.wide { grid-column: 1 / -1; }

.calc {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--paper-deep);
  border-left: 4px solid var(--ink); padding: 12px 16px; font-size: 14px;
}
.calc b { font-family: var(--mincho); font-size: 22px; font-variant-numeric: tabular-nums; }
.alert { background: var(--warn-bg); border-left: 4px solid var(--red); padding: 12px 16px; font-size: 14px; color: var(--red-deep); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font: inherit; font-family: var(--mincho); font-weight: 700; font-size: 17px; letter-spacing: 0.1em;
  padding: 14px 32px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer;
  text-decoration: none; display: inline-block; text-align: center;
}
.btn.primary { background: var(--red); border-color: var(--red); color: var(--white); min-width: 240px; }
.btn.primary:hover { background: var(--red-deep); }
.btn:hover { background: var(--paper-deep); }
.privacy-note { font-size: 12px; color: var(--muted); }

.confirm { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--ink); padding: 26px; display: grid; gap: 18px; }
.confirm h2 { font-family: var(--mincho); font-size: 22px; font-weight: 900; }
.confirm dl { display: grid; grid-template-columns: minmax(8em, auto) minmax(0, 1fr); border-top: 1px solid var(--line); }
.confirm dt, .confirm dd { padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.confirm dt { color: var(--muted); font-size: 13px; }
.confirm dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.done { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--ok); padding: 30px 26px; display: grid; gap: 12px; }
.done h2 { font-family: var(--mincho); font-size: 24px; font-weight: 900; color: var(--ok); }
.demo-note { font-size: 12px; color: var(--muted); border-top: 1px dotted var(--line); padding-top: 10px; }

/* ===== フッター ===== */
.cta { background: var(--ink); color: var(--paper); padding-block: 60px; }
.cta-inner { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.cta-card { border: 1px solid rgba(247,243,236,.3); padding: 36px 32px; text-decoration: none; color: var(--paper); display: block; position: relative; transition: background .3s, border-color .3s; }
.cta-card:hover { background: var(--red); border-color: var(--red); }
.cta-card .label { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.4em; color: #e07a6f; margin-bottom: 12px; }
.cta-card:hover .label { color: var(--paper); }
.cta-card h3 { font-family: var(--mincho); font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.cta-card p { font-family: var(--serif); font-size: 13px; line-height: 1.9; color: rgba(247,243,236,.8); padding-right: 30px; }
.cta-card .arrow { position: absolute; bottom: 28px; right: 28px; font-family: var(--mincho); font-size: 24px; }

.site-footer { background: var(--paper); padding-block: 48px 90px; border-top: 4px double var(--rule); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.footer-brand .kanji { font-family: var(--mincho); font-size: 21px; font-weight: 900; margin-bottom: 12px; }
.footer-brand p { font-family: var(--serif); font-size: 13px; line-height: 1.9; color: var(--muted); }
.footer-col h4 { font-family: var(--mincho); font-size: 13px; letter-spacing: 0.3em; color: var(--red); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.footer-col ul { list-style: none; }
.footer-col li { font-size: 13px; margin-bottom: 8px; font-family: var(--serif); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--red); }
.copyright { text-align: center; font-family: var(--mincho); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); margin-top: 22px; }


/* ===== ご連絡（LINE・フォーム優先） ===== */
.hd-btns { display: flex; gap: 8px; justify-content: flex-end; margin-block: 6px 6px; flex-wrap: wrap; }
.hd-btn { font-family: var(--mincho); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-decoration: none; padding: 7px 16px; border: 1px solid var(--ink); background: var(--white); color: var(--ink); white-space: nowrap; }
.hd-btn:hover { background: var(--paper-deep); }
.hd-btn.line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.hd-btn.line:hover { background: var(--line-green-deep); }
.contact-box p { font-size: 14px; }
.contact-box h3 { margin-bottom: 6px; }
.line-btn { display: block; text-align: center; margin-block: 12px 10px; background: var(--line-green); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; padding: 12px; letter-spacing: 0.05em; }
.line-btn:hover { background: var(--line-green-deep); }
.contact-box .small { font-size: 12px; color: var(--muted); }
.footer-brand a { color: var(--ink); }

/* スマホ下部の固定ボタン */
.sp-bar { display: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .aside { position: static; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .qa.primary { grid-column: 1 / -1; grid-row: auto; }
  .business-grid, .community-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .masthead-top .date, .masthead-top .edition:last-child { display: none; }
  .contact-block { text-align: left; }
  .gnav ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-inline: 8px; }
  .gnav a { font-size: 13px; padding: 4px 12px; }
  .board .wrap { grid-template-columns: 1fr; }
  .board .wrap { margin-inline: 16px; }
  .board-title { writing-mode: horizontal-tb; padding: 6px 14px; justify-content: flex-start; font-size: 13px; }
  .notice { padding: 12px 14px; }
  .notice + .notice { border-left: none; border-top: 1px solid var(--rule); }
  .hero { padding-block: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-right { height: 300px; }
  .vertical-text { font-size: 18px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-block { padding: 18px 0; }
  .stat-block + .stat-block { border-left: none; border-top: 1px solid rgba(247,243,236,.25); }
  .business-grid, .community-grid, .cta-inner, .pay-list, .ad-tables, .ad-ways { grid-template-columns: 1fr; }
  .ad-plus { justify-self: center; font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding-block: 56px; }
  .section-title::before, .section-title::after { margin: 0 8px; }
  .addr, .date-pair { grid-template-columns: 1fr; }
  .btn.primary { width: 100%; }
  .confirm dl { grid-template-columns: 1fr; }
  .confirm dt { border-bottom: none; padding-bottom: 0; }
  .sp-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--ink); border-top: 1px solid var(--ink);
  }
  .sp-bar a { text-align: center; padding: 12px 6px; font-family: var(--mincho); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--paper); }
  .sp-bar a.key { background: var(--red); }
  .sp-bar a.line { background: var(--line-green); }
  .hd-btns { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-left > * { animation: fadeUp .7s ease-out backwards; }
.hero-left > *:nth-child(2) { animation-delay: .15s; }
.hero-left > *:nth-child(3) { animation-delay: .3s; }
