/* 閉店ナビ 共通スタイル
   シャッターの横縞ヘッダーと黄色い貼り紙をブランドの記号として使う */
:root {
  --bg: #F1F3F6;
  --surface: #FFFFFF;
  --ink: #151922;
  --muted: #555D6B;
  --line: #D8DCE3;
  --tape: #F2C230;
  --tape-ink: #1C1A12;
  --closing: #A64B06;
  --bankrupt: #0D5D70;
  --link: #6B3FA0;
  --ok: #2F7D4F;
  --warn: #8A5D00;
  --shutter: #E3E7ED;
  --shutter-line: #CDD3DC;
  --f-display: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111419;
    --surface: #1A1E25;
    --ink: #E7EAEF;
    --muted: #A2AAB6;
    --line: #2C323C;
    --tape: #E2B32A;
    --tape-ink: #16140C;
    --closing: #F2A23A;
    --bankrupt: #62B9CC;
    --link: #B794E0;
    --ok: #6CC08D;
    --warn: #E0B44A;
    --shutter: #1C2129;
    --shutter-line: #262C36;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.8;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--bankrupt); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.45; }
p { margin: 0; }
ul, ol { margin: 0; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.sub { font-size: .82rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ヘッダー */
.masthead {
  background: repeating-linear-gradient(180deg, var(--shutter) 0 9px, var(--shutter-line) 9px 10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  padding-block: 26px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
}
.brand { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.logo {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: .02em;
  margin: 0;
}
.logo .pref {
  display: inline-block;
  background: var(--tape);
  color: var(--tape-ink);
  padding: .05em .35em;
  margin-left: .25em;
  font-size: .6em;
  vertical-align: .2em;
}
.stamp { font-size: .8rem; color: var(--muted); }
.stamp b { color: var(--ink); font-weight: 500; font-family: var(--f-mono); }
.status {
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid var(--ink);
  padding: 4px 12px;
  background: var(--surface);
}
.sitenav { background: var(--surface); border-bottom: 1px solid var(--line); }
.sitenav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.sitenav a {
  padding: 11px 12px;
  white-space: nowrap;
  text-decoration: none;
  font-size: .9rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.sitenav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* 本文 */
main.page { display: flex; flex-direction: column; gap: 40px; padding-block: 24px 56px; }
main.page > section, main.page > article { display: flex; flex-direction: column; gap: 14px; }
main.page article > section { display: flex; flex-direction: column; gap: 12px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .8rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pagehead, .hero { display: flex; flex-direction: column; gap: 10px; max-width: 48em; }
.pagehead h1, .detail h1 { font-size: clamp(1.4rem, 3.8vw, 1.9rem); }
.pagehead p, .hero p, .lead-p { color: var(--muted); }
.hero h1 { font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.5; }
.h2 { font-size: 1.2rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h3 { font-size: 1.02rem; }
.count { font-size: .82rem; color: var(--muted); font-weight: 400; }
.more { font-size: .9rem; }
.empty { color: var(--muted); font-size: .9rem; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); }
.fix { font-size: .85rem; color: var(--muted); }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { opacity: .88; }

/* 数字 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; }
.stat .n { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.25; }
.stat .l { font-size: .8rem; color: var(--muted); }
.stat.c .n { color: var(--closing); }
.stat.b .n { color: var(--bankrupt); }
.stat.k .n { color: var(--link); }

/* ラベル */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--f-body);
}
.chip.closing { color: var(--closing); }
.chip.bankrupt { color: var(--bankrupt); }
.chip.link { color: var(--link); }
.chip.ok { color: var(--ok); }
.chip.pending { color: var(--muted); border-style: dashed; }
.chip.pause { color: var(--warn); }
.chip.done { color: var(--muted); }
.chip.tape { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); }

/* 閉店リスト */
.rows { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 8.6em minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.row:last-child { border-bottom: 0; }
.row .when { display: flex; flex-direction: column; line-height: 1.4; }
.row .date { font-family: var(--f-mono); font-weight: 500; }
.row .what { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .name { font-weight: 700; text-decoration: none; }
.row .name:hover { text-decoration: underline; }
.row .meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.left { font-size: .78rem; color: var(--muted); }

/* 倒産テーブル */
.tbl { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 780px; font-size: .86rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; letter-spacing: .08em; color: var(--muted); font-weight: 500; background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
td.co { font-weight: 500; }
td a { color: var(--muted); font-size: .8rem; }
td .chip.link { font-size: .7rem; }

/* カード */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 1.05rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.hubcard { text-decoration: none; }
.hubcard:hover { border-color: var(--ink); }
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.steps li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 10px; }
.steps .d { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: 2px; }
.steps.big { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; gap: 0; }
.steps.big li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.steps.big li:last-child { border-bottom: 0; }

/* 店舗ページ */
.detail { gap: 22px; }
.countdown { display: flex; align-items: baseline; gap: 10px; }
.countdown .big { font-family: var(--f-display); font-size: 2.6rem; color: var(--closing); line-height: 1; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); }
.grid2 > section { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid2 > section + section { border-left: 1px solid var(--line); }
.kv { margin: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; font-size: .9rem; }
.checks li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.box { background: var(--surface); border: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }

/* 市区町村 */
.areas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.area { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.area h3 { font-size: .95rem; margin-bottom: 6px; }
.area ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.area li { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }

/* メールアドレス（★表記→閲覧時に組み立て） */
.mail { font-family: var(--f-mono); overflow-wrap: anywhere; }
.mail-hint { font-family: var(--f-body); font-size: .8em; color: var(--muted); margin-left: .3em; }
.copy {
  margin-left: 8px;
  font: inherit;
  font-family: var(--f-body);
  font-size: .75rem;
  padding: 2px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  vertical-align: .1em;
}
.copy:hover { border-color: var(--ink); }
.copy:focus-visible { outline: 2px solid var(--bankrupt); outline-offset: 2px; }

/* お問い合わせフォーム */
.form { gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.req, .opt { font-size: .7rem; font-weight: 500; padding: 0 6px; margin-left: 6px; border: 1px solid currentColor; border-radius: 2px; vertical-align: .1em; }
.req { color: var(--closing); }
.opt { color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bankrupt); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-actions .btn:disabled { opacity: .5; cursor: wait; }
.form-status { font-size: .9rem; }
.form-status.ok { color: var(--ok); }
.form-status.ng { color: var(--closing); }

/* 文章ページ */
.kv.wide { grid-template-columns: 10em minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); padding: 16px 20px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.big-mail { font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 820px) { .contact-cards { grid-template-columns: 1fr; } }
.prose section { display: flex; flex-direction: column; gap: 8px; }
.prose ul { padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }

/* 準備中ページ・404で使う部品 */
.lead { display: flex; flex-direction: column; gap: 14px; max-width: 46em; }
.lead h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.5; }
.lead p { color: var(--muted); }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 36px; font-size: .82rem; color: var(--muted); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 32px; }
.foot-logo { font-family: var(--f-display); color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.foot-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.foot-org { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards3, .areas-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .grid2 > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 4px; }
  .row .when { flex-direction: row; gap: 10px; align-items: baseline; }
  .row .tags { justify-content: flex-start; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 10px; }
}
