/* BATHMARK 試験運用版 — 共通スタイル（デザインD「スレート」：白／黒を切り替え） */
:root {
  --bg: #EEF0F5; --surface: #FFFFFF; --surface-2: #F5F6FA;
  --ink: #171C26; --ink-2: #5B6475; --ink-3: #6E7787; --line: #E3E6EE;
  --accent: #5B3FF0; --accent-soft: rgba(91,63,240,.10); --on-accent: #FFFFFF;
  --own: #5B3FF0; --own-soft: rgba(91,63,240,.08);
  --peer: #9AA1B0; --bar-off: #E1E3EC;
  --up: #15803D; --up-soft: rgba(21,128,61,.10); --down: #C2410C;
  --notice: #FFF4DC; --notice-ink: #6B4B12;
  --danger: #C2410C; --danger-soft: #FDE8DF;
  --f: "M PLUS 1", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --fn: "Outfit", "M PLUS 1", sans-serif;
  --r: 22px;
  --g1: #FF4D2E; --g2: #FF9F1C; --g3: #7C4DFF; --g4: #1FB6FF;
  --w1: #FF4D2E; --w2: #FF6B26; --w3: #FF8E1F; --w4: #F2577A; --w5: #B04BEA; --w6: #7C4DFF; --w7: #4A7DFF; --w8: #1FB6FF;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12171E; --surface: #1C232D; --surface-2: #222B37;
  --ink: #FFFFFF; --ink-2: #C9D3DE; --ink-3: #A9B5C3; --line: #334050;
  --accent: #5CCBFA; --accent-soft: rgba(92,203,250,.18); --on-accent: #06202C;
  --own: #5CCBFA; --own-soft: rgba(92,203,250,.10);
  --peer: #A3B1C2; --bar-off: #3D4A5B;
  --up: #5FD39A; --up-soft: rgba(95,211,154,.14); --down: #FF8A80;
  --notice: #3A2F14; --notice-ink: #F6DFA6;
  --danger: #FF8A80; --danger-soft: #3B2222;
  --g1: #FF6A4D; --g2: #FFB547; --g3: #9D7BFF; --g4: #5CCBFA;
  --w1: #FF6A4D; --w2: #FF8A4B; --w3: #FFB547; --w4: #FF7A9A; --w5: #C78BFF; --w6: #9D7BFF; --w7: #74A6FF; --w8: #5CCBFA;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 15px; line-height: 1.6; -webkit-text-size-adjust: 100%; transition: background .2s; }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.num { font-family: var(--fn); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ヘッダー */
.top { background: var(--bg); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.brand .bm { display: flex; align-items: center; gap: 8px; }
.wordmark { display: inline-flex; font-family: "League Gothic", "Arial Narrow", sans-serif; font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; }
.wordmark span:nth-child(1) { color: var(--w1); }
.wordmark span:nth-child(2) { color: var(--w2); }
.wordmark span:nth-child(3) { color: var(--w3); }
.wordmark span:nth-child(4) { color: var(--w4); }
.wordmark span:nth-child(5) { color: var(--w5); }
.wordmark span:nth-child(6) { color: var(--w6); }
.wordmark span:nth-child(7) { color: var(--w7); }
.wordmark span:nth-child(8) { color: var(--w8); }
.auth .wordmark { font-size: 84px; margin-bottom: 6px; }
@media (max-width: 719px) { .wordmark { font-size: 36px; } }
.brand .fac { margin-top: 7px; font-weight: 600; font-size: 14px; letter-spacing: .03em; color: var(--ink-2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.top select { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 6px 10px; font-weight: 700; font-size: 15px; max-width: 56vw; }
.top .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.demo-tag { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }

/* メニュー：PCは上、スマホは画面下 */
.tabs { max-width: 1120px; margin: 0 auto; display: flex; gap: 6px; padding: 0 16px 12px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; padding: 8px 14px; font-size: 14px; border-radius: 12px; white-space: nowrap; }
.tabs a svg { width: 18px; height: 18px; }
.tabs a.on { background: var(--surface); color: var(--accent); font-weight: 700; border: 1px solid var(--line); }
@media (max-width: 719px) {
  .tabs { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; padding: 0; gap: 0; height: 66px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
  .tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; padding: 0; font-size: 10px; border-radius: 22px; }
  .tabs a svg { width: 22px; height: 22px; }
  .tabs a.on { background: transparent; border: 0; }
  main { padding-bottom: 110px !important; }
  footer { padding-bottom: 100px !important; }
}

main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 64px; }
h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: .01em; }
h2 { font-size: 15px; margin: 0 0 12px; }
.lead { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; }
.grid { display: grid; gap: 12px; }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.kpi .lbl { font-size: 12px; color: var(--ink-2); }
.kpi .val { font-family: var(--fn); font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .val small { font-family: var(--f); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.kpi .sub { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.kpi.own { border-color: var(--accent); }
.up { color: var(--up); } .down { color: var(--down); }
.chip-up { font-family: var(--fn); font-weight: 600; font-size: 13px; color: var(--up); background: var(--up-soft); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.chip-down { font-family: var(--fn); font-weight: 600; font-size: 13px; color: var(--down); background: var(--danger-soft); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }

.notice { background: var(--notice); color: var(--notice-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.notice a { color: inherit; font-weight: 700; }
.error { background: var(--danger-soft); color: var(--danger); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.ok { background: var(--accent-soft); color: var(--accent); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 10px 0; font-weight: 500; }

/* フォーム */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; font-weight: 500; }
label.f > span em { color: var(--down); font-style: normal; margin-left: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select.in {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font-size: 16px; color: var(--ink);
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input.code { font-size: 26px; letter-spacing: .4em; text-align: center; font-family: var(--fn); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chk { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; font-size: 14px; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; cursor: pointer; font-size: 13px; color: var(--ink-2); border-radius: 11px; }
.seg button.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=date] { width: auto; padding: 8px 12px; font-size: 15px; background: var(--surface); }

/* 入力画面 */
.counter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.counter:last-of-type { border-bottom: 0; }
.counter .name { font-weight: 700; }
.counter .name small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.counter input { width: 136px; text-align: right; font-family: var(--fn); font-size: 24px; font-weight: 600; }
.total-bar { display: flex; justify-content: space-between; align-items: baseline; background: var(--accent-soft); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.total-bar b { font-family: var(--fn); font-size: 30px; font-weight: 600; }

/* 表 */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 12px; color: var(--ink-2); font-weight: 500; }
td.r, th.r { text-align: right; font-family: var(--fn); font-variant-numeric: tabular-nums; }
tr.self td { background: var(--own-soft); font-weight: 700; }
tr.self td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); margin-right: 3px; border: 1px solid var(--line); }
.pill.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.warn { background: var(--notice); color: var(--notice-ink); border-color: transparent; }

/* グラフ */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.dash { height: 0; border-top: 2px dashed var(--peer); background: none; }

/* 速報（ホーム） */
.dateline { margin: 0 0 12px; font-weight: 400; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dateline .d { font-family: var(--fn); font-weight: 600; font-size: 22px; }
.dateline .w { font-size: 14px; color: var(--ink-2); }
.home { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .span2 { grid-column: span 2; }
  .home .span3 { grid-column: span 3; }
}
.home .card { margin: 0; }
.pair { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.big { font-family: var(--fn); font-weight: 600; font-size: 52px; line-height: 1.05; letter-spacing: -.01em; }
.big small { font-family: var(--f); font-size: 14px; font-weight: 500; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.lbl { font-size: 12px; color: var(--ink-2); }
.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge svg { width: 100%; max-width: 190px; height: auto; display: block; }
.rank { font-family: var(--fn); font-weight: 600; font-size: 46px; line-height: 1; color: var(--accent); }
.rank small { font-family: var(--f); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.mrow { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mrow:last-child { border-bottom: 0; }
.mrow b { font-family: var(--fn); font-size: 19px; font-weight: 600; }
.mrow .avg { font-size: 12px; color: var(--ink-2); margin-left: 6px; }

/* ログイン */
.auth { max-width: 420px; margin: 6vh auto 0; }
.auth .logo { text-align: center; margin-bottom: 18px; }
.auth .logo b { font-family: var(--fn); font-size: 26px; letter-spacing: .24em; color: var(--ink); }
.auth .logo div { color: var(--ink-2); font-size: 13px; }

.rank-big { font-family: var(--fn); font-size: 40px; font-weight: 600; line-height: 1; color: var(--accent); }
.rank-big small { font-family: var(--f); font-size: 15px; color: var(--ink-2); font-weight: 500; }
.split { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.split .card { margin-bottom: 0; }
.cmp-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row b { font-family: var(--fn); font-variant-numeric: tabular-nums; }
.loading { color: var(--ink-3); padding: 40px 0; text-align: center; }
footer { text-align: center; color: var(--ink-3); font-size: 12px; padding: 0 16px 32px; }
.sr { display: contents; }
.bars svg { max-height: 170px; }
@media (min-width: 900px) { .home { align-items: start; } }

/* 温浴ニュース */
.news-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-of-type { border-bottom: 0; }
.news-item h3 { font-size: 15px; margin: 6px 0 4px; line-height: 1.5; }
.news-item p { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.news-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.news-cat { font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.news-cat.cat-経営 { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.news-cat.cat-衛生 { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.news-cat.cat-新店 { background: var(--up-soft); color: var(--up); border-color: transparent; }
.news-cat.cat-料金 { background: var(--notice); color: var(--notice-ink); border-color: transparent; }
.news-new { font-family: var(--fn); font-weight: 700; font-size: 11px; color: var(--on-accent); background: var(--accent); border-radius: 6px; padding: 1px 6px; }
.news .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }

@media (min-width: 900px) { .home .stretch { align-self: stretch; } }

/* ---- ナビの短い名前（スマホだけ） ---- */
.tabs .ts { display: none; }
@media (max-width: 719px) { .tabs .tl { display: none; } .tabs .ts { display: inline; } }

/* ---- 市場マップ・ギャップ ---- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 12px; }
.kpis .card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.big.sm { font-size: 34px; }
.mapgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
.mapgrid .card { margin: 0; }
@media (min-width: 900px) { .mapgrid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.tilemap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; max-width: 560px; }
.tile { aspect-ratio: 1; border: 0; border-radius: 6px; font-size: 10.5px; line-height: 1.05; padding: 0; display: grid; place-items: center; cursor: pointer;
        color: var(--ink); background: var(--bar-off); font-family: inherit; min-width: 0; overflow: hidden; }
.tile.l1 { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.tile.l2 { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.tile.l3 { background: color-mix(in srgb, var(--accent) 50%, var(--surface)); }
.tile.l4 { background: color-mix(in srgb, var(--accent) 72%, var(--surface)); color: var(--on-accent); }
.tile.l5 { background: var(--accent); color: var(--on-accent); }
.tile.mine { box-shadow: inset 0 0 0 2px var(--ink-2); }
.tile.sel { outline: 3px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; font-weight: 700; }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.scale { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); margin-top: 10px; }
.scale i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; }
.scale i.l1 { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.scale i.l2 { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.scale i.l3 { background: color-mix(in srgb, var(--accent) 50%, var(--surface)); }
.scale i.l4 { background: color-mix(in srgb, var(--accent) 72%, var(--surface)); }
.scale i.l5 { background: var(--accent); }
.scale .mine-key { margin-left: 10px; padding-left: 20px; position: relative; }
.scale .mine-key::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--ink-2); }
.pref-name { font-size: 24px; margin: 4px 0 14px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.stats div { display: flex; flex-direction: column; min-width: 0; }
.stats span { font-size: 12px; color: var(--ink-2); }
.stats b { font-family: var(--fn); font-size: 24px; font-weight: 600; }
.stats b small { font-family: var(--f); font-size: 12px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.src a { color: var(--accent); }
@media (max-width: 420px) { .tile { font-size: 8.5px; border-radius: 4px; } .tilemap { gap: 2px; } }
@media (min-width: 720px) { .tabs { overflow-x: auto; scrollbar-width: none; } }
@media (max-width: 719px) { .tabs a { min-width: 0; } }
@media (max-width: 599px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis .card { padding: 14px; }
  .big.sm { font-size: 26px; }
  .hide-sp { display: none; }
}

  /* backdrop-filter は下のナビ（fixed）の位置を壊すので使わない */

/* ---- 湯温（熱湯〜水風呂） ---- */
:root { --t-hot: #E8412A; --t-warm: #F07A12; --t-mild: #D9A400; --t-cool: #3B8BEB; --t-cold: #1AA3E0; --rain: #3B8BEB; }
:root[data-theme="dark"] { --t-hot: #FF6A4D; --t-warm: #FF9A3D; --t-mild: #FFCC47; --t-cool: #74A6FF; --t-cold: #5CCBFA; --rain: #74A6FF; }
.yuon { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
        color: var(--yc); background: color-mix(in srgb, var(--yc) 14%, transparent); }
.yuon b { font-family: var(--fn); font-size: 15px; }
.yuon.sm { padding: 2px 8px; font-size: 11px; } .yuon.sm b { font-size: 13px; }
.yuon.t-hot { --yc: var(--t-hot); } .yuon.t-warm { --yc: var(--t-warm); } .yuon.t-mild { --yc: var(--t-mild); }
.yuon.t-cool { --yc: var(--t-cool); } .yuon.t-cold { --yc: var(--t-cold); }
:root:not([data-theme="dark"]) .yuon.t-mild { color: #8A6A00; }

/* ---- 天気 ---- */
.wx.sun { color: var(--t-warm); } .wx.cloud { color: var(--ink-2); } .wx.rain { color: var(--rain); } .wx.snow { color: var(--t-cold); }
.wx-off { opacity: .55; }
.wxchip { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-left: 6px; }
.wxmemo { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.wxmemo p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.wxline { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.legend .raindot { width: 8px !important; height: 8px !important; border-radius: 50%; background: var(--rain); }
.chart svg svg.wx { width: 16px; height: 16px; max-height: none; }

/* ---- 客層の帯（男性・女性・小人） ---- */
:root { --mx-m: #4A7DFF; --mx-f: #B04BEA; --mx-c: #FF8E1F; }
:root[data-theme="dark"] { --mx-m: #74A6FF; --mx-f: #C78BFF; --mx-c: #FFB547; }
.mix { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bar-off); margin: 4px 0 8px; gap: 2px; }
.mix i { display: block; height: 100%; }
.mix .m, .mix-key .m { background: var(--mx-m); } .mix .f, .mix-key .f { background: var(--mx-f); } .mix .c, .mix-key .c { background: var(--mx-c); }
.mix-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; }
.mix-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mrow > span:first-child small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.wxcell { white-space: nowrap; } .wxcell svg { vertical-align: -3px; margin-right: 3px; }

/* ---- 試作：湯船に湯が満ちる入館数 ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > *:not(.tub) { position: relative; z-index: 1; }
.tub { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tub.t-hot { --yc: var(--t-hot); } .tub.t-warm { --yc: var(--t-warm); } .tub.t-mild { --yc: var(--t-mild); }
.tub.t-cool { --yc: var(--t-cool); } .tub.t-cold { --yc: var(--t-cold); }
.tub .water { position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--yc) 30%, transparent), color-mix(in srgb, var(--yc) 12%, transparent));
  transition: height 1.8s cubic-bezier(.22, .8, .24, 1); }
.tub svg { position: absolute; left: 0; bottom: 100%; width: 200%; height: 26px; margin-bottom: -1px; }
.tub .w1 path { fill: color-mix(in srgb, var(--yc) 12%, transparent); }
.tub .w2 path { fill: color-mix(in srgb, var(--yc) 18%, transparent); }
.tub .w1 { animation: tub-wave 7s linear infinite; }
.tub .w2 { animation: tub-wave 11s linear infinite reverse; opacity: .9; }
@keyframes tub-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tub .water::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--yc) 60%, transparent), transparent); opacity: .6; }
@media (prefers-reduced-motion: reduce) { .tub svg { animation: none; } .tub .water { transition: none; } }

/* ---- 試作：その日の湯温で、画面の奥がうっすら色づく ---- */
body::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
  background: radial-gradient(42% 38% at 12% 8%, var(--glow-a, transparent), transparent 70%), radial-gradient(48% 42% at 92% 88%, var(--glow-b, transparent), transparent 70%); }
:root[data-glow] body::before { opacity: 1; }
:root[data-glow="t-hot"]  { --glow-a: rgba(255, 77, 46, .16);  --glow-b: rgba(255, 142, 31, .12); }
:root[data-glow="t-warm"] { --glow-a: rgba(255, 142, 31, .15); --glow-b: rgba(242, 87, 122, .10); }
:root[data-glow="t-mild"] { --glow-a: rgba(242, 87, 122, .10); --glow-b: rgba(124, 77, 255, .10); }
:root[data-glow="t-cool"] { --glow-a: rgba(74, 125, 255, .14);  --glow-b: rgba(124, 77, 255, .10); }
:root[data-glow="t-cold"] { --glow-a: rgba(31, 182, 255, .16);  --glow-b: rgba(74, 125, 255, .12); }
:root[data-theme="dark"][data-glow="t-hot"]  { --glow-a: rgba(255, 106, 77, .22); --glow-b: rgba(255, 181, 71, .14); }
:root[data-theme="dark"][data-glow="t-warm"] { --glow-a: rgba(255, 154, 61, .20); --glow-b: rgba(255, 122, 154, .12); }
:root[data-theme="dark"][data-glow="t-cool"] { --glow-a: rgba(116, 166, 255, .18); --glow-b: rgba(157, 123, 255, .12); }
:root[data-theme="dark"][data-glow="t-cold"] { --glow-a: rgba(92, 203, 250, .20); --glow-b: rgba(116, 166, 255, .14); }

/* ---- 入力のそろい具合・アプリと通知 ---- */
.instat { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.instat b { font-family: var(--fn); color: var(--ink); }
.instat.ok { color: var(--up); background: var(--up-soft); border-color: transparent; }
.sub-h { font-size: 14px; margin: 14px 0 6px; }
.steps { margin: 4px 0 0; padding-left: 1.4em; font-size: 13.5px; line-height: 1.8; }

/* ---- 速報：ひとこと結論（器の湯の高さ＝平均の何%） ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.daynav { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; }
.daynav .icon-btn { font-size: 22px; line-height: 1; font-family: var(--fn); }
.daynav .icon-btn:disabled { opacity: .35; cursor: default; }
.daypick { position: relative; font-weight: 700; font-size: 17px; padding: 6px 10px; border-radius: 12px; cursor: pointer; }
.daypick:hover { background: var(--surface); }
.daypick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; }
.daypick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.daynav .seg { margin-left: auto; }
.seg.sm button { padding: 6px 12px; }
.hero { padding-top: 20px; }
.hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.verdict-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 6px 0; }
.vnum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-family: var(--fn); font-weight: 600; line-height: .95; }
.vnum .pre { font-family: var(--f); font-size: 14px; font-weight: 500; color: var(--ink-2); flex-basis: 100%; margin-bottom: 8px; line-height: 1.4; }
.vnum .count { font-size: 96px; letter-spacing: -.03em; }
.vnum small { font-size: 30px; color: var(--ink-2); font-weight: 500; }
.say { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 14px 0 0; }
.say b, .why b { font-family: var(--fn); }
.why { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.facts > span { display: inline-flex; align-items: baseline; gap: 4px; }
.facts i { font-style: normal; font-size: 12px; }
.facts b, .facts b.big, .facts b.rank { font-family: var(--fn); font-size: 20px; font-weight: 600; line-height: 1; color: var(--ink); }
.facts em { font-style: normal; font-size: 12px; }
/* 器（湯船）：線＝平均、湯の高さ＝平均の何% */
.vessel { --yc: var(--accent); position: relative; flex: 0 0 auto; width: 132px; height: 128px; border-radius: 14px 14px 40px 40px;
  background: var(--surface-2); border: 1.5px solid var(--line); overflow: hidden; }
.vessel.v-hot { --yc: var(--t-hot); } .vessel.v-warm { --yc: var(--t-warm); } .vessel.v-even { --yc: var(--accent); }
.vessel.v-cool { --yc: var(--t-cool); } .vessel.v-cold { --yc: var(--t-cold); }
.vessel .water { position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(to top, var(--yc), color-mix(in srgb, var(--yc) 62%, var(--surface)));
  transition: height 1.6s cubic-bezier(.22, .8, .24, 1); }
.vessel svg { position: absolute; left: 0; bottom: calc(100% - 1px); width: 300%; height: 10px; }
.vessel .w1 path { fill: color-mix(in srgb, var(--yc) 62%, var(--surface)); }
.vessel .w2 path { fill: color-mix(in srgb, var(--yc) 40%, transparent); }
.vessel .w1 { animation: tub-wave 2.4s linear infinite; }
.vessel .w2 { animation: tub-wave 3.4s linear infinite reverse; }
.vessel.still svg { animation-play-state: paused; }
.vessel .avgline { position: absolute; left: 0; right: 0; bottom: 55%; border-top: 2px dashed var(--ink); opacity: .55; }
.vessel .avgline span { position: absolute; left: 8px; top: -19px; font-size: 10.5px; font-weight: 700; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .vessel svg { animation: none; } .vessel .water { transition: none; } }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.card-h h2 { margin: 0; }
details.more { grid-column: 1 / -1; }
details.more > summary { list-style: none; cursor: pointer; display: block; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
details.more > summary:hover { border-color: var(--accent); }
details.more > summary::-webkit-details-marker { display: none; }
.more-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.more-tiles .mt { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.more-tiles i { font-style: normal; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.more-tiles b { font-family: var(--fn); font-size: 24px; font-weight: 600; line-height: 1.1; }
.more-tiles b small { font-size: 13px; color: var(--ink-2); margin-left: 2px; }
.more-tiles span { font-size: 11.5px; color: var(--ink-2); }
.more-tiles .spark { width: 100%; height: 34px; display: block; }
.more-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; min-height: 52px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; }
.more-cta small { font-weight: 500; font-size: 12.5px; opacity: .85; }
.more-cta .o::after { content: " ▾"; } .more-cta .c::after { content: " ▴"; }
.more-cta .c, details.more[open] .more-cta .o, details.more[open] .more-cta small, details.more[open] .more-tiles { display: none; }
details.more[open] .more-cta { display: flex; background: transparent; color: var(--accent); border: 1px solid var(--line); margin-top: 0; }
details.more[open] .more-cta .c { display: inline; }
@media (max-width: 719px) {
  .more-tiles { gap: 8px; }
  .more-tiles .mt { padding: 8px 10px; }
  .more-tiles b { font-size: 20px; }
}
details.more > .home { margin-top: 12px; }
.home .notice.span3 { grid-column: 1 / -1; }
@media (max-width: 719px) {
  .vnum .count { font-size: 76px; }
  .vessel { width: 104px; height: 116px; }
  .say { font-size: 16.5px; }
  .daypick { font-size: 16px; padding: 6px 4px; }
}

/* ---- くらべる：順位／シェア／マップの切り替え ---- */
.subnav { display: flex; width: 100%; max-width: 420px; margin: 0 0 14px; flex-wrap: nowrap; }
.subnav a { flex: 1; text-align: center; text-decoration: none; padding: 9px 12px; font-size: 14px; color: var(--ink-2); border-radius: 11px; }
.subnav a.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ---- 日報が止まった施設：ロック・契約解除 ---- */
.pill.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; font-weight: 700; }
.lockcard { display: flex; gap: 16px; align-items: flex-start; border: 1.5px solid var(--danger); background: color-mix(in srgb, var(--danger-soft) 55%, var(--surface)); }
.lockcard h2 { font-size: 18px; margin: 2px 0 8px; }
.lockcard p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; }
.lockcard .btn { margin-top: 4px; }
.lock-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--danger); color: #fff; }
.lock-ic svg { width: 26px; height: 26px; }
.lockcard.ended { border-color: var(--line); background: var(--surface); }
.lockcard.ended .lock-ic { background: var(--ink-3); }
.warnline a { font-weight: 700; margin-left: 4px; }
b.down { color: var(--danger); }
@media (max-width: 719px) { .lockcard { flex-direction: column; gap: 10px; } }

/* ---- はじめての方へ（トップページ） ---- */
.lp { max-width: 1040px; margin: 0 auto; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 18px; }
.lp-top .wordmark { font-size: 34px; }
.lp-top nav { display: flex; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
@media (max-width: 420px) { .lp-top .wordmark { font-size: 28px; } .lp-top nav { gap: 8px; } }
.lp-top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.lp-hero { display: grid; gap: 22px; align-items: center; padding: 18px 0 30px; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 40px 0 50px; } }
.lp-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.lp-copy h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.3; margin: 14px 0 14px; letter-spacing: -.01em; }
.lp-copy h1 em { font-style: normal; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-copy p { font-size: 16px; color: var(--ink-2); line-height: 1.8; margin: 0 0 18px; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-cta.center { justify-content: center; margin-top: 18px; }
.lp-cta .btn { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.lp-sample { margin: 0; box-shadow: 0 18px 50px rgba(20, 24, 40, .10); }
.lp-sample .vnum .count { font-size: 80px; }
.lp-sec { padding: 26px 0; border-top: 1px solid var(--line); }
.lp-sec h2 { font-size: 22px; margin: 0 0 16px; }
.lp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.lp-f { margin: 0; }
.lp-f svg { width: 28px; height: 28px; color: var(--accent); }
.lp-f h3 { font-size: 16px; margin: 8px 0 6px; }
.lp-f p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.lp-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lp-rules li { padding: 14px 16px 14px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.lp-rules li::before { content: "✓"; position: absolute; left: 16px; top: 13px; font-weight: 700; color: var(--up); }
.lp-rules b { color: var(--ink); }
.lp-rule p { font-size: 15px; line-height: 1.9; color: var(--ink-2); margin: 0; }
.lp-rule b { color: var(--ink); }
.lp-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.lp-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.lp-steps li::before { content: counter(s); font-family: var(--fn); font-weight: 600; font-size: 28px; color: var(--accent); line-height: 1; }
.lp-steps span { font-size: 13.5px; color: var(--ink-2); }
.lp-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 26px 0 10px; border-top: 1px solid var(--line); font-size: 13px; }
.lp-foot span { color: var(--ink-3); }
.legal { max-width: 760px; margin: 0 auto; }
.legal .card h3 { font-size: 15px; margin: 22px 0 8px; }
.legal .card h3:first-of-type { margin-top: 18px; }
.legal .card p, .legal .card li { font-size: 14px; line-height: 1.85; }
.legal .card ol, .legal .card ul { padding-left: 1.4em; margin: 0 0 6px; }
.chk.agree { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.6; }
.chk.agree small { color: var(--ink-2); }
footer a { color: var(--ink-3); }

/* ---- 施設の確認（営業許可証） ---- */
.verifycard { border: 1.5px solid var(--accent); }
.verifycard h2 { font-size: 17px; margin: 0 0 8px; }
.verifycard p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; }
.verifycard .reason { background: var(--notice); color: var(--notice-ink); padding: 10px 12px; border-radius: 12px; }
.verifycard.v-submitted { border-color: var(--line); }
.verifycard.v-rejected { border-color: var(--danger); }
.btn.upl { cursor: pointer; }
.review { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .review { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.review h3 { margin: 0 0 8px; font-size: 18px; }
.rv-img { min-height: 180px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.rv-img img { display: block; width: 100%; height: auto; }
.rv-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.rv-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rv-form { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }

/* ---- 入館予測 ---- */
.fc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fc { background: var(--surface-2); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.fc-h b { font-size: 14px; color: var(--ink); }
.fc-wx { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-weight: 700; }
.fc-n .num { font-family: var(--fn); font-size: 40px; font-weight: 600; line-height: 1.05; }
.fc-n small { font-size: 14px; color: var(--ink-2); margin-left: 3px; }
.fc-r { font-size: 12.5px; color: var(--ink-2); }
.fc-why { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.fc-acc { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 719px) { .fc-n .num { font-size: 32px; } .fc { padding: 12px; } }

/* ---- お問い合わせ ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea.in { width: 100%; font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); resize: vertical; }
.inq { padding: 12px 0; border-bottom: 1px solid var(--line); }
.inq:last-of-type { border-bottom: 0; }
.inq.adm { padding: 16px; border-bottom: 1px solid var(--line); }
.inq.adm.done { opacity: .7; }
.inq-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inq-b { margin: 6px 0; font-size: 14px; white-space: pre-wrap; }
.inq-r { font-size: 14px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 6px 0; white-space: pre-wrap; }
.inq .rp { margin: 8px 0; }

/* ---- アイコン（艶のある「湯気のB」）を文字ロゴの横に ---- */
.appicon { width: 34px; height: 34px; border-radius: 9px; vertical-align: middle; margin-right: 8px; box-shadow: 0 2px 8px rgba(124, 77, 255, .25); }
.brandrow { display: inline-flex; align-items: center; }
.brandrow .appicon { width: 40px; height: 40px; border-radius: 10px; }
.auth .logo .appicon.lg { display: block; width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 10px; box-shadow: 0 6px 20px rgba(124, 77, 255, .3); }
.bm { display: inline-flex; align-items: center; }
@media (max-width: 420px) { .brandrow .appicon { width: 32px; height: 32px; border-radius: 8px; margin-right: 6px; } .appicon { width: 30px; height: 30px; } }

/* ---- 画面上部：施設が主役、BATHMARK はアイコンで小さく ---- */
.top-in { gap: 10px; }
.brand { flex-direction: row; align-items: center; gap: 6px; flex: 0 0 auto; }
.brand .appicon { width: 34px; height: 34px; margin: 0; }
.facbox { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; padding-left: 10px; border-left: 1px solid var(--line); }
.faclogo { width: 60px; height: 60px; border-radius: 14px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); flex: 0 0 auto; }
.faclogo.lg { width: 72px; height: 72px; border-radius: 16px; }
.faclogo.empty { display: grid; place-items: center; font-size: 11px; color: var(--ink-3); text-align: center; line-height: 1.3; }
.facname { min-width: 0; display: flex; align-items: center; }
.facname .fac { margin: 0; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.facname select { font-size: 18px; font-weight: 700; padding: 6px 30px 6px 10px; max-width: 60vw; }
@media (max-width: 719px) { .facname .fac { font-size: 19px; } .facname select { font-size: 16px; } .faclogo { width: 48px; height: 48px; border-radius: 12px; } .facbox { gap: 10px; } }
.logorow { display: flex; gap: 14px; align-items: flex-start; }
/* 「◯◯さま専用データ」ラベル */
.ownlabel { margin-top: 12px; text-align: right; font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }
.home .ownlabel { margin-top: 10px; }
main > .ownlabel { margin: 4px 0 12px; }
.tbl-wrap.wm { position: relative; }
.tbl-wrap.wm::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--wm-l); background-repeat: repeat; z-index: 2; }
:root[data-theme="dark"] .tbl-wrap.wm::after { background-image: var(--wm-d); }

/* 根拠資料・通報（0013） */
.evcard { border: 1.5px solid var(--danger); }
.evcard.ev-sent { border-color: var(--line); }
.evcard h2 { font-size: 17px; margin: 0 0 6px; }
.evcard p { margin: 0 0 10px; font-size: 14px; line-height: 1.75; }
.evcard .reason { background: var(--notice); color: var(--notice-ink); padding: 10px 12px; border-radius: 12px; }
.evdue { color: var(--danger); }
.evgrid { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.evdates { list-style: none; margin: 4px 0 0; padding: 0; font-weight: 700; font-size: 15px; line-height: 1.8; }
.evcard .evcode, .evcode { font-size: 34px; font-weight: 800; letter-spacing: .18em; margin: 0 !important; font-variant-numeric: tabular-nums; }
.review .evcode.sm, .evcode.sm { font-size: 18px; letter-spacing: .12em; }
.evcanvas { display: block; width: 100%; height: auto; border-radius: 12px; margin: 8px 0; touch-action: none; cursor: crosshair; border: 1px solid var(--line); }
.evtools { display: flex; gap: 8px; margin-bottom: 10px; }
.evvals { width: 100%; font-size: 13px; margin: 8px 0; border-collapse: collapse; }
.evvals th, .evvals td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.evvals .r { text-align: right; }
.okmark { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.complaint summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.complaint .stack { display: grid; gap: 12px; margin-top: 8px; }
.complaint label { display: grid; gap: 4px; font-size: 13px; }
.complaint select, .complaint textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.complaint .radios { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.complaint .radios legend { font-size: 13px; margin-bottom: 4px; }
.complaint .radio { display: flex; gap: 8px; align-items: center; }
.ok-msg { background: var(--accent-soft); color: var(--accent); padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.flaglist { display: block; color: var(--danger); line-height: 1.5; margin-top: 2px; }
@media (max-width: 520px) { .evgrid { grid-template-columns: 1fr; } }

/* メンバーと端末（0014） */
.members { display: grid; gap: 10px; }
.member { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mhead { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; word-break: break-all; }
.devs { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.devs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.invite { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.joincard { border: 1.5px solid var(--accent); }
.joincard h2 { font-size: 16px; margin: 0 0 6px; }
.joinrow { display: flex; gap: 10px; }
.joinrow .in { flex: 1; font-size: 20px; letter-spacing: .15em; max-width: 220px; }

/* 登録されていない端末の画面 */
.devblock { max-width: 620px; margin: 8px auto; border: 1.5px solid var(--danger); padding: 26px 24px; }
.devblock-ic { font-size: 34px; line-height: 1; margin-bottom: 10px; }
.devblock h1 { font-size: 21px; margin: 0 0 10px; }
.devblock h2 { font-size: 16px; margin: 20px 0 8px; }
.devblock p { font-size: 14.5px; line-height: 1.8; margin: 0 0 10px; }
.devblock ol { margin: 0 0 12px; padding-left: 1.4em; font-size: 14.5px; line-height: 1.9; }
.devblock ol li { margin-bottom: 4px; }
.devblock .devs { max-width: 420px; }
.devblock-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ホームページ最初の演出：夜の露天風呂と湯気 */
.night { position: relative; width: 100vw; left: 50%; margin-left: -50vw; margin-top: -20px; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #05070d; color: #fff; isolation: isolate; }
.night-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.night.no-gl { background: radial-gradient(120% 70% at 70% 60%, #3a2a1c 0%, transparent 45%), linear-gradient(#05070d, #0d1a2a 60%, #061018); }
.night-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(3, 5, 10, .55), transparent 22%, transparent 70%, rgba(3, 5, 10, .5)); }
.night-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; max-width: 1120px; margin: 0 auto; padding: 18px 20px; opacity: 0; transition: opacity 1.4s ease 1.2s; }
.night.done .night-top { opacity: 1; }
.night-top nav a:not(.btn) { color: rgba(255, 255, 255, .85); }
.night-lines { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; padding: 0 24px; }
.nl { grid-area: 1 / 1; margin: 0; text-align: center; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900;
  font-size: clamp(24px, 4.6vw, 46px); line-height: 1.75; letter-spacing: .14em; color: #fff;
  text-shadow: 0 0 18px rgba(0, 0, 0, .45), 0 0 46px rgba(0, 0, 0, .35);
  opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity 1.1s ease, filter 1.3s ease, transform 1.6s ease; }
.nl.on { opacity: 1; filter: blur(0); transform: none; }
.night-final { position: absolute; z-index: 2; left: 0; right: 0; bottom: 16%; max-width: 1120px; margin: 0 auto; padding: 0 24px; text-align: center;
  opacity: 0; transform: translateY(16px); transition: opacity 1.6s ease 2.2s, transform 1.8s ease 2.2s; pointer-events: none; }
.night.done .night-final { opacity: 1; transform: none; pointer-events: auto; }
.night-final h1 { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; font-size: clamp(28px, 4.8vw, 52px); line-height: 1.55; letter-spacing: .08em; margin: 16px 0 14px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55); }
.night-final p { font-size: clamp(14px, 1.8vw, 17px); line-height: 1.9; color: rgba(255, 255, 255, .88); margin: 0 0 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.night-final .lp-cta { justify-content: center; }
.night-badge { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.night-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .55) !important; background: rgba(255, 255, 255, .06) !important; }
.night-skip { position: absolute; z-index: 3; right: 18px; bottom: 18px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 12px; cursor: pointer; backdrop-filter: blur(6px); transition: opacity .6s; }
.night.done .night-skip { opacity: 0; pointer-events: none; }
.night-down { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); background: none; border: 0; color: rgba(255, 255, 255, .7); font-size: 30px; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity 1s ease 3.5s; animation: nightbob 2.4s ease-in-out infinite; }
.night.done .night-down { opacity: 1; }
@keyframes nightbob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 640px) { .night-final { bottom: 11%; } .night-final h1 { font-size: 25px; letter-spacing: .03em; } .nl { font-size: 23px; letter-spacing: .08em; } .pc { display: none; } .night-top { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .nl, .night-final, .night-top { transition: none; } .night-down { animation: none; } }
.lp-copy .lp-h { font-size: clamp(26px, 4.4vw, 40px); line-height: 1.35; margin: 14px 0 14px; }
.lp-copy .lp-h em { font-style: normal; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 器を檜（ひのき）の湯船に（立体の湯船。手前は低い縁だけで湯が見える）2026-10-17 */
.hero-main { justify-content: space-between; align-items: center; gap: clamp(20px, 5vw, 64px); }
.vessel.tub3d { width: clamp(300px, 34vw, 400px); height: auto; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28)); }
.vessel.tub3d svg { position: static; width: 100%; height: auto; aspect-ratio: 340 / 232; display: block; overflow: visible; animation: none; }
.tub-cap { margin-top: 4px; text-align: center; font-size: 11px; color: var(--ink-3); }
@media (max-width: 719px) { .hero-main { justify-content: space-between; } .vessel.tub3d { width: 168px; } .tub-cap { font-size: 10px; } }
.night-veil { transition: background 2s ease; }
.night.done .night-veil { background: radial-gradient(70% 45% at 50% 64%, rgba(3, 5, 10, .42), transparent 70%), linear-gradient(rgba(3, 5, 10, .55), transparent 22%, transparent 70%, rgba(3, 5, 10, .5)); }
.lp-sample .vnum { flex-wrap: wrap; }
.lp-sample .vnum .count { font-size: 76px; }
.lp-sample .vessel.tub3d { width: 260px; height: auto; flex-shrink: 1; min-width: 0; }
.lp-sample .hero-main { gap: 16px; justify-content: space-between; }
@media (max-width: 719px) { .lp-sample .vnum .count { font-size: 64px; } .lp-sample .vessel.tub3d { width: 150px; } }

.night-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; display: block; }
.night-cv { z-index: 1; }
.night-veil { z-index: 1; }
.night.no-gl .night-img { filter: brightness(.75); }


/* 試作：最初の3つの文を縦書き（?tate=1） */
.night .nl { writing-mode: vertical-rl; text-orientation: mixed; text-align: start; line-height: 1.9; letter-spacing: .18em; font-size: clamp(26px, 4.2vh, 44px); max-height: 78vh; transform: translateX(10px); }
.night .nl.on { transform: none; }

/* 速報の一番上のカード：PCでは「左＝数字と結論の文／右＝湯船」の2列にして、空白をなくす（2026-10-17）
   ?layout=b：数字を湯船の中に大きく／?layout=c：中央にそろえて縦に並べる（見比べ用） */
@media (min-width: 720px) {
  .hero:has(.hero-main) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 46%); column-gap: 40px;
    grid-template-areas: "sp tub" "num tub" "say tub" "why tub" "facts tub" "sp2 tub" "lab lab"; grid-template-rows: 1fr auto auto auto auto 1fr auto; align-items: start; }
  .hero > .facts { border-top: 1px solid var(--line); margin-top: 18px; }
  .hero .hero-main { display: contents; }
  .hero .verdict { grid-area: num; }
  .hero .vessel.tub3d { grid-area: tub; align-self: center; justify-self: end; width: 100%; max-width: 440px; margin: 6px 0; }
  .hero > .say { grid-area: say; margin-top: 18px; }
  .hero > .why { grid-area: why; }
  .hero > .facts { grid-area: facts; }
  .hero > .ownlabel { grid-area: lab; }
  .hero .vnum .count { font-size: 120px; }
  .hero[data-layout="b"]:has(.hero-main) { grid-template-columns: minmax(300px, 52%) minmax(0, 1fr); grid-template-areas: "tub sp" "tub say" "tub why" "tub facts" "tub sp2" "lab lab"; grid-template-rows: 1fr auto auto auto 1fr auto; }
  .hero[data-layout="b"] .verdict { display: none; }
  .hero[data-layout="b"] .vessel.tub3d { justify-self: start; max-width: 520px; }
  .hero[data-layout="b"] > .say { align-self: end; font-size: 21px; margin-top: 0; }
  .hero[data-layout="b"] > .why { align-self: start; }
  .hero[data-layout="c"]:has(.hero-main) { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "num" "tub" "say" "why" "facts" "lab"; text-align: center; }
  .hero[data-layout="c"] .vnum { justify-content: center; }
  .hero[data-layout="c"] .vessel.tub3d { justify-self: center; max-width: 480px; margin: 14px 0 4px; }
  .hero[data-layout="c"] .facts { justify-content: center; }
}
.tub-num { position: absolute; left: 11%; right: 11%; top: 10%; bottom: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); pointer-events: none; }
.tub-num .pre { font-size: 13px; font-weight: 600; opacity: .95; }
.tub-num b { font-family: var(--fn); font-weight: 600; font-size: clamp(64px, 8vw, 104px); line-height: 1; letter-spacing: -.03em; }
@media (max-width: 719px) { .hero .tub-num { display: none; } }
.tub-num small { font-size: 28px; font-weight: 600; margin-left: 2px; }
.tub-num { flex-direction: row; flex-wrap: wrap; align-content: center; align-items: baseline; }
.tub-num .pre { flex-basis: 100%; text-align: center; margin-bottom: 4px; }
.vessel.tub3d { position: relative; }

/* 湯船の絵（ChatGPTで作成）と、その上に重ねる数字 */
.vessel.tubimg { filter: none; }
.tubpic { position: relative; container-type: inline-size; }
.tubpic img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 52%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 62% 70% at 50% 52%, #000 72%, transparent 100%); }
.tubimg .tub-num { position: absolute; left: 16%; right: 16%; top: 43%; bottom: 13%; display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; justify-content: center;
  color: #fff; text-shadow: 0 2px 14px rgba(60, 30, 5, .45), 0 1px 2px rgba(0, 0, 0, .25); pointer-events: none; }
.tubimg .tub-num .pre { flex-basis: 100%; text-align: center; font-weight: 800; font-size: max(10px, 3.4cqw); margin-bottom: 1.2cqw; letter-spacing: .04em; }
.tubimg .tub-num b { font-family: var(--fn); font-weight: 800; font-size: 15cqw; line-height: .95; letter-spacing: -.02em; }
.tubimg .tub-num small { font-family: var(--fn); font-weight: 800; font-size: 5.2cqw; margin-left: .6cqw; }
.tubimg .tub-cap { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.tubimg .tub-cap::before, .tubimg .tub-cap::after { content: ""; height: 1px; width: 56px; background: var(--line); }
@media (max-width: 719px) { .tubimg .tub-cap { font-size: 10px; gap: 6px; } .tubimg .tub-cap::before, .tubimg .tub-cap::after { width: 14px; } }
.lp-sample .hero-main { display: block; }
.lp-sample .vessel.tub3d.tubimg { width: 100%; max-width: none; margin: 8px 0 4px; }
@media (max-width: 719px) { .hero .tubimg .tub-num { display: none; } }
@media (max-aspect-ratio: 1/1) { .night-img { object-position: 86% center; } }
@media (max-width: 640px) { .night .nl { font-size: min(5.6vw, 3vh); letter-spacing: .14em; line-height: 1.85; } }
