/* ========================================================
   出店者ページ（アプリ設計.md §5.0 方向宣言）
   レジスター: 主=精密 副=親愛。生成りの地・藍は主ボタン/リンク/現在地だけ。
   モーションなし・祝いの色（茜）なし・結果で色を変えない。
   ======================================================== */
:root {
  --bg: #F6F2EA;
  --surface: #FFFCF6;
  --text: #2E2A24;
  --sub: #6B6255;
  --line: #DDD4C4;
  --accent: #1F5B7A;
  --accent-ink: #FFFFFF;
  --warn: #8A6510;
  --warn-bg: #F5ECD6;
  --ok: #3F6B45;
  --danger: #B33A2B;
  --r-input: 8px;
  --r-card: 12px;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --num: "IBM Plex Sans", "BIZ UDPGothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.8;
}
p, li, dd { text-wrap: pretty; word-break: auto-phrase; }
h1, h2, h3 { line-height: 1.5; text-wrap: balance; word-break: auto-phrase; }
h1 { font-size: 24px; margin: 0 0 12px; }
h2 { font-size: 19px; margin: 32px 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--sub); font-size: 15px; }
.small { font-size: 15px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-name { display: block; max-width: 640px; margin: 0 auto; padding: 12px 16px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 96px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin: 0 0 24px; }
.card > :last-child { margin-bottom: 0; }

/* 全体のお知らせ帯（events.notice） */
.band { background: var(--warn-bg); border-left: 4px solid var(--warn); color: var(--text); padding: 12px 16px; border-radius: 8px; margin: 0 0 24px; }

/* 状態の1行（シグネチャー） */
.state { font-family: var(--num); font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; margin: 0 0 24px; font-size: 16px; }
.state .sep { color: var(--sub); margin: 0 6px; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.facts dt { color: var(--sub); font-size: 15px; padding-top: 2px; }
dl.facts dd { margin: 0; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  padding: 10px 16px; border-radius: var(--r-input); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--sub); cursor: not-allowed; }
.btn + .btn, .btn + p, p + .btn { margin-top: 12px; }
.linkbtn { background: none; border: 0; padding: 12px 0; min-height: 48px; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.row-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.row-links a { display: inline-flex; align-items: center; min-height: 48px; }

/* 入力欄 */
.field { margin: 0 0 24px; }
.field > .label { display: block; font-weight: 700; margin: 0 0 4px; }
.req { font-size: 13px; font-weight: 700; color: var(--sub); border: 1px solid var(--sub); border-radius: 4px; padding: 0 4px; margin-left: 8px; vertical-align: 2px; }
.help { color: var(--sub); font-size: 15px; margin: 0 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text);
  background: #FFFFFF; border: 1px solid #B9AE9C; border-radius: var(--r-input);
}
textarea { min-height: 128px; resize: vertical; }
.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-input); background: #FFFFFF; margin: 0 0 8px; cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--accent); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .choice { border-color: var(--danger); }
.err { color: var(--danger); font-size: 15px; margin: 6px 0 0; font-weight: 700; }

.counter { text-align: right; font-size: 14px; color: var(--sub); font-family: var(--num); font-variant-numeric: tabular-nums; }

.progress { font-family: var(--num); color: var(--sub); font-size: 15px; margin: 0 0 4px; }
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bottombar .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 12px; }
.bottombar .btn { margin: 0; }
.bottombar .btn.secondary { flex: 0 0 35%; }

/* 差分（前 → 後） */
.diff { list-style: none; padding: 0; margin: 0; }
.diff li { border-top: 1px solid var(--line); padding: 12px 0; }
.diff li:first-child { border-top: 0; }
.diff .k { font-weight: 700; }
.diff .v { display: grid; grid-template-columns: 2.5em 1fr; gap: 0 8px; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .v .t { color: var(--sub); }
.changed { background: var(--warn-bg); border-radius: 4px; padding: 0 4px; }

details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 700; list-style-position: inside; }
details > div { padding: 0 0 12px; }
.kv { margin: 0 0 8px; }
.kv .k { color: var(--sub); font-size: 15px; display: block; }
.kv .v { white-space: pre-wrap; overflow-wrap: anywhere; }

.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.history li:first-child { border-top: 0; }
/* 変更の記録の承認状況（「更新」の印と同じ形の赤いラベル。理由は下に小さめの赤字） */
.history .flag, dl.facts .flag { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--danger); border: 1px solid var(--danger); border-radius: 4px; padding: 0 6px; vertical-align: 1px; line-height: 1.6; }
.history .flagnote, dl.facts .flagnote { display: block; color: var(--danger); font-size: 14px; margin-top: 2px; }
/* 変更の申請（運営の確認後に反映する項目の印・確認待ちの一覧） */
.badge { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--warn); border: 1px solid var(--warn); border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
/* 数の自由記入（チラシの枚数）: 短い欄の横に単位 */
.countwrap { display: flex; align-items: center; gap: 8px; }
.countwrap input.count { width: 8em; flex: none; text-align: right; }
/* ホームの確定事項 */
dl.facts.confirmed { margin: 0 0 12px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { overflow-wrap: anywhere; }

.doclist { list-style: none; padding: 0; margin: 0; }
.doclist li { border-top: 1px solid var(--line); }
.doclist li:first-child { border-top: 0; }
.doclist .item { padding: 6px 0 10px; }
/* 押せるのは題名の文字の上だけ。スマホで押しやすいよう文字の上下に余白（高さ44px程度）を持たせる */
.doclist .item > .t { display: inline-block; padding: 9px 0; min-height: 44px; font-weight: 700; }
.doclist a.t { text-decoration: underline; text-underline-offset: 3px; }
.doclist button.toggle { background: none; border: 0; margin: 0; font: inherit; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.doclist button.toggle::before { content: '▶'; display: inline-block; width: 1.2em; font-size: 13px; color: var(--sub); }
.doclist button.toggle[aria-expanded="true"]::before { content: '▼'; }
.doclist .item > .body { margin: 4px 0 0; }
.doclist .item > .body > .pre { margin: 0; }
.doclist .item > .body > .m { margin: 4px 0 0; }
.doclist .d { display: block; color: var(--text); font-size: 15px; }
.doclist .m { display: block; color: var(--sub); font-size: 14px; font-family: var(--num); }

.msg { border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; background: var(--surface); border: 1px solid var(--line); }
.msg.error { border-color: var(--danger); color: var(--danger); font-weight: 700; }
.msg.warn { background: var(--warn-bg); border-color: var(--warn); }
.ok-mark { color: var(--ok); font-weight: 700; }

.contact h2 { margin-top: 0; }
.contact ul { list-style: none; padding: 0; margin: 0; }
.contact li { margin: 0 0 16px; }
.contact li:last-child { margin: 0; }
/* 運営の管理画面 */
.admin-tabs, .admin-subtabs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; }
.admin-tabs a, .admin-subtabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.admin-tabs a.cur, .admin-subtabs a.cur { font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 3px solid var(--accent); }
ul.cards { list-style: none; padding: 0; margin: 0; }
ul.cards > li.card h2 { font-size: 18px; overflow-wrap: anywhere; }
ul.cards > li.card h2 .muted { margin-left: 6px; font-weight: 400; }
.kicker { font-size: 14px; color: var(--sub); margin: 0 0 4px; }
.btnrow { display: flex; gap: 12px; }
.btnrow .btn + .btn { margin-top: 0; }
.decide textarea { margin-top: 12px; }
.addr { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.state-tag { margin: 0 0 4px; }
.state-tag .badge { margin-left: 0; }
/* 「運営からのお知らせ」カードの中の区画（ご相談・お知らせ） */
.contact-in { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.contact-in h3 { margin: 0 0 8px; }

/* 余白の小道具（CSP で style 属性が使えないため） */
.mt0 { margin-top: 0 !important; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .blk { display: block; } .pad12 { padding: 12px 0; } .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
fieldset.fs { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
textarea.short { min-height: 96px; }
/* 見出しと値を縦に積む（狭い画面で説明文が細切れにならないように） */
dl.facts.stack { grid-template-columns: 1fr; gap: 0; }
dl.facts.stack dt { padding-top: 12px; }
dl.facts.stack dt:first-child { padding-top: 0; }

/* 宿泊施設の写真（小さめの一覧・押すと大きく） */
.photos ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photos .cap { display: block; font-size: 13px; color: var(--sub); text-align: center; margin-top: 2px; }
.lightbox { border: 0; border-radius: 8px; padding: 12px; max-width: min(96vw, 1200px); background: var(--surface); }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { display: block; max-width: 100%; max-height: 75vh; height: auto; margin: 0 auto 12px; }

/* 見出しに屋号が入る（長い屋号でも横にはみ出さない） */
h1 { overflow-wrap: anywhere; }


/* 準備中・更新の印 */
.doclist .prep { padding: 12px 0; }
.doclist .prep .t { font-weight: 700; color: var(--sub); text-decoration: none; }
.doclist .tag { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; vertical-align: 2px; }
.doclist .upd { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--danger); border: 1px solid var(--danger); border-radius: 4px; padding: 0 6px; vertical-align: 2px; text-decoration: none; }


/* 出店者一覧（運営。2026-10-05） */
.vfilter { display: grid; gap: 8px; margin: 0 0 12px; }
.vfilter input[type=search], .vfilter select { width: 100%; min-height: 44px; }
.vchecks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.vchecks label.inline { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.vlist .card { padding: 0; }
.vlist .vrow { display: grid; gap: 4px; padding: 12px 16px; color: inherit; text-decoration: none; }
.vlist .vrow:hover .vhead strong { text-decoration: underline; }
.vlist .vflags:empty { display: none; }
.vlist .vmeta { font-size: 0.875rem; overflow-wrap: anywhere; }
.vlist .flag { display: inline-block; margin-right: 6px; font-size: 13px; font-weight: 700; color: var(--danger); border: 1px solid var(--danger); border-radius: 4px; padding: 0 6px; line-height: 1.6; }
