/* ==========================================================================
   ヒャクギリ — 黒ベースのみ（白モードなし）・ポップ
   色: ロゴの濃い緑 #009245 / ライム #8cc63f を主役に、黄色は「PR」と「イメージ」の札だけ
   角丸: カード 22 / 入力 14 / ボタン・タグはまるく
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --bg-2: #0f1311;
  --surface: #161b18;
  --surface-2: #1e2521;
  --surface-3: #29312c;
  --ink: #f3f6f1;
  --ink-2: #cfd8d1;
  --muted: #98a59e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .17);
  --lime: #8cc63f;
  --lime-hi: #a5dc5c;
  --lime-deep: #4f7d1b;
  --green: #009245;
  --green-hi: #14b35d;
  --sun: #ffd23f;
  --ink-on-color: #0b0d0c;
  --danger: #ff7a70;
  --warn: #ffbd59;
  --accent: var(--lime);
  --accent-ink: var(--ink-on-color);
  --accent-soft: rgba(140, 198, 63, .12);
  --accent-soft-2: rgba(140, 198, 63, .24);
  --warn-soft: rgba(255, 189, 89, .14);
  --danger-soft: rgba(255, 122, 112, .14);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, .8);
  --r-card: 22px;
  --r-ctl: 14px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.75; font-size: 15px;
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 800; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink-on-color); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.right { text-align: right; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: none; }
.container-narrow { max-width: 780px; }
.narrow-form { max-width: 480px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--lime); color: var(--ink-on-color); padding: 8px 14px; z-index: 50; border-radius: 0 0 12px 0; font-weight: 700; }
.skip:focus { left: 0; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ---------- 帯（DEV / テスト公開） ---------- */
.test-banner { background: var(--warn-soft); color: var(--ink-2); font-size: .8rem; text-align: center; padding: 6px 16px; }
.test-banner strong { color: var(--sun); }
.dev-banner { background: #1b1f2a; color: #d9deea; }
.dev-banner strong { color: var(--sun); letter-spacing: .04em; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 12, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-logo { height: 30px; width: auto; }
.brand-sub { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .06em; border-left: 1px solid var(--line-strong); padding-left: 12px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: 999px; font-size: .92rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--lime); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 12px; width: 42px; height: 42px; place-items: center; }
.mobile-nav[hidden] { display: none; }
.mobile-nav:not([hidden]) { display: block; border-top: 1px solid var(--line); background: var(--bg-2); }
.mobile-nav a { display: block; padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
@media (max-width: 1440px) { .brand-sub { display: none; } }
@media (max-width: 1080px) { .nav a { padding: 8px 9px; font-size: .88rem; } }
@media (max-width: 900px) { .nav { display: none; } .menu-btn { display: grid; } .header-actions .btn-ghost { display: none; } }
@media (max-width: 600px) { .hide-sm { display: none !important; } .brand-logo { height: 24px; } :root { --header-h: 60px; } }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; padding: 11px 20px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; border: 2px solid transparent; transition: transform .1s ease, background .15s, border-color .15s, box-shadow .1s; }
.btn-primary { background: var(--lime); color: var(--ink-on-color); box-shadow: 0 4px 0 var(--lime-deep); }
.btn-primary:hover { background: var(--lime-hi); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lime-deep); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-ghost:active, .btn-soft:active, .btn-outline:active { transform: translateY(1px); }
.btn-outline { background: transparent; border-color: var(--lime); color: var(--lime); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-soft { background: var(--accent-soft-2); color: var(--lime); }
.btn-soft:hover { background: rgba(140, 198, 63, .32); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-sm.btn-primary { box-shadow: 0 3px 0 var(--lime-deep); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 9px 10px; display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: .92rem; width: 100%; border-radius: 10px; }
.linklike:hover { background: var(--accent-soft); color: var(--lime); }
.danger { color: var(--danger) !important; }

/* ---------- チップ・バッジ ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .8rem; line-height: 1.45; white-space: nowrap; font-weight: 600; }
.chip-accent { background: var(--accent-soft-2); color: var(--lime); font-weight: 700; }
.chip-outline { background: transparent; border: 1px solid var(--line-strong); }
.chip-link { transition: background .15s, color .15s, border-color .15s; }
.chip-link:hover { background: var(--lime); color: var(--ink-on-color); border-color: var(--lime); }
.chip-link:hover .muted { color: var(--ink-on-color); }
.chip .icon { width: .95em; height: .95em; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; line-height: 1.45; }
.badge-pr { background: var(--sun); color: #1a1400; letter-spacing: .06em; }
.badge-own { background: rgba(255, 255, 255, .1); color: var(--ink); border: 1px solid var(--line-strong); }
.own-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .84rem; color: var(--ink-2); }
.own-note .icon { width: 16px; height: 16px; color: var(--lime); flex: none; }
.badge-verified { background: var(--lime); color: var(--ink-on-color); }
.badge-booking { background: var(--green-hi); color: var(--ink-on-color); }
.count { color: var(--lime); font-variant-numeric: tabular-nums; }

/* ---------- セクション ---------- */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.7rem; font-weight: 900; }
.section-head h2::after { content: ""; display: block; width: 52px; height: 6px; border-radius: 6px; background: var(--lime); margin-top: 8px; transform: skewX(-24deg); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.section-head p a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.section-head .more { color: var(--lime); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; font-size: .92rem; }
@media (max-width: 720px) { .section { padding: 44px 0; } .section-head h2 { font-size: 1.35rem; } }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 150px; text-align: center; isolation: isolate;
  background: radial-gradient(120% 90% at 50% -10%, #0b6a39 0%, #07401f 38%, #0b0d0c 78%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.4px, transparent 1.6px); background-size: 18px 18px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-kicker { color: var(--lime); font-weight: 800; font-size: .95rem; letter-spacing: .06em; }
.hero-logo { margin: 18px 0 30px; }
.hero-logo img { width: min(760px, 88vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45)); }
.hero-search { width: min(720px, 100%); }
.hero-tabs { display: inline-flex; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.hero-tabs button { background: none; border: 0; color: var(--ink-2); font-weight: 800; padding: 7px 18px; border-radius: 999px; font-size: .9rem; }
.hero-tabs button.on { background: var(--lime); color: var(--ink-on-color); }
.hero-bar { display: flex; gap: 8px; background: rgba(255, 255, 255, .07); border: 2px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px; }
.hero-bar:focus-within { border-color: var(--lime); }
.hero-pane { flex: 1; min-width: 0; }
.hero-pane .input { border: 0; background: transparent; min-height: 50px; font-size: 1.02rem; padding: 0 18px; box-shadow: none; }
.hero-pane select.input { background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; }
.hero-pane .input:focus { box-shadow: none; }
.hero-pane:not(.on) { display: none; }
.hero-bar .btn { padding: 0 26px; min-height: 50px; font-size: 1.02rem; }
.near-btn { margin-top: 14px; }
.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.hero-quick .chip { background: rgba(0, 0, 0, .3); border: 1px solid var(--line-strong); }
.hero-mascots { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; display: flex; justify-content: center; align-items: flex-end; gap: 8px; pointer-events: none; }
.hero-mascots .mascot { width: 150px; height: auto; margin-bottom: -14px; }
.hero-mascots .m-left { transform: rotate(-6deg); }
.hero-mascots .m-right { transform: rotate(5deg); }
.murmur { color: var(--muted); font-weight: 800; letter-spacing: .1em; font-size: .9rem; margin-bottom: 70px; }
@media (max-width: 700px) {
  .hero { padding: 36px 0 118px; }
  .hero-logo { margin: 12px 0 22px; }
  .hero-bar { flex-wrap: wrap; border-radius: 22px; }
  .hero-pane { flex-basis: 100%; }
  .hero-bar .btn { flex: 1; }
  .hero-mascots { height: 118px; }
  .hero-mascots .mascot { width: 108px; }
  .murmur { font-size: .78rem; margin-bottom: 52px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mascots .m-left { animation: bob 3.2s ease-in-out infinite; }
  .hero-mascots .m-right { animation: bob 3.2s ease-in-out .8s infinite; }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
}
.ticker { background: var(--lime); color: var(--ink-on-color); }
.ticker-inner { display: flex; justify-content: center; gap: 10px 40px; flex-wrap: wrap; padding: 14px 16px; font-weight: 800; font-size: .92rem; }
.ticker b { font-size: 1.5rem; margin-right: 6px; font-weight: 900; }

/* ---------- 区グリッド ---------- */
.ward-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ward-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.ward-group h3 { font-size: .82rem; color: var(--lime); margin-bottom: 8px; font-weight: 800; letter-spacing: .06em; }
.ward-group ul { display: flex; flex-direction: column; gap: 2px; }
.ward-group a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 12px; font-weight: 700; transition: background .15s, color .15s; }
.ward-group a:hover, .ward-group a[aria-current="page"] { background: var(--lime); color: var(--ink-on-color); }
.ward-group a .n { color: var(--muted); font-size: .78rem; font-weight: 600; }
.ward-group a:hover .n { color: var(--ink-on-color); }
.ward-group a .n.zero { opacity: .45; }
@media (max-width: 1000px) { .ward-groups { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ward-groups { grid-template-columns: 1fr 1fr; gap: 10px; } .ward-group { padding: 12px; } }
.station-strip, .filter-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0 18px; }
.station-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

/* ---------- 目的タイル（ポップ） ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
.bento a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; border-radius: var(--r-card); overflow: hidden;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease; }
.bento a:hover { transform: translate(-2px, -3px); box-shadow: 5px 6px 0 rgba(0, 0, 0, .55); }
.bento a .icon { width: 2.2em; height: 2.2em; margin-bottom: auto; stroke-width: 1.8; }
.bento a h3 { font-size: 1.12rem; font-weight: 900; }
.bento a p { font-size: .82rem; margin-top: 2px; opacity: .85; }
.bento a .n { position: absolute; top: 14px; right: 14px; font-size: .76rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.bento a:nth-child(8n+1) { background: var(--lime); color: var(--ink-on-color); }
.bento a:nth-child(8n+2) { background: var(--surface); border-color: var(--line-strong); }
.bento a:nth-child(8n+3) { background: var(--green); color: #fff; }
.bento a:nth-child(8n+4) { background: var(--surface-2); }
.bento a:nth-child(8n+5) { background: var(--sun); color: #1a1400; }
.bento a:nth-child(8n+6) { background: var(--surface); border-color: var(--lime); }
.bento a:nth-child(8n+7) { background: #13361f; }
.bento a:nth-child(8n+8) { background: var(--surface-2); border-color: var(--line-strong); }
.bento a:nth-child(8n+2) .n, .bento a:nth-child(8n+4) .n, .bento a:nth-child(8n+6) .n, .bento a:nth-child(8n+7) .n, .bento a:nth-child(8n+8) .n { background: var(--accent-soft-2); color: var(--lime); }
.bento a:nth-child(8n+2) .icon, .bento a:nth-child(8n+4) .icon, .bento a:nth-child(8n+6) .icon, .bento a:nth-child(8n+7) .icon, .bento a:nth-child(8n+8) .icon { color: var(--lime); }
.bento .b-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento .b-a h3 { font-size: 1.6rem; }
.bento .b-c { grid-column: 4; grid-row: 1 / 3; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 128px; gap: 10px; }
  .bento .b-a { grid-column: 1 / 3; grid-row: auto; }
  .bento .b-a h3 { font-size: 1.25rem; }
  .bento .b-c { grid-column: auto; grid-row: auto; }
}
.tile-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--lime); }
.tile > .icon { width: 1.8em; height: 1.8em; color: var(--lime); }
.tile h2 { font-size: 1.04rem; font-weight: 800; }
.tile p { font-size: .84rem; color: var(--muted); }
.tile .n { font-size: .82rem; color: var(--lime); font-weight: 800; }
@media (max-width: 700px) { .tile-list { grid-template-columns: 1fr; } }

/* ---------- 機種（横スクロール） ---------- */
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.scroller > * { scroll-snap-align: start; flex: none; }
.machine-tile { width: 214px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); padding: 16px; transition: border-color .15s, transform .15s; }
.machine-tile:hover { border-color: var(--lime); transform: translateY(-2px); }
.machine-tile .maker { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.machine-tile h3 { font-size: 1.05rem; margin: 2px 0 6px; font-weight: 900; }
.machine-tile p { font-size: .8rem; color: var(--ink-2); line-height: 1.55; }
.machine-tile .n { margin-top: 10px; font-size: .82rem; color: var(--lime); font-weight: 800; }

/* ---------- 施設カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--lime); box-shadow: 0 12px 30px -14px rgba(140, 198, 63, .45); }
.card-media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.card-media.is-ph img { filter: saturate(.92); }
.ph-sticker { position: absolute; right: 10px; bottom: 10px; background: var(--sun); color: #1a1400; font-weight: 900; font-size: .72rem; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 6px; border: 2px solid #0b0d0c; box-shadow: 2px 2px 0 #0b0d0c; transform: rotate(-5deg); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1rem; line-height: 1.35; font-weight: 800; }
.card-meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .dist { color: var(--lime); font-weight: 800; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 4px; }
.card-tags .chip { font-size: .72rem; padding: 2px 9px; }
.card .price, .row-card .price { font-size: .88rem; font-weight: 800; color: var(--ink); }

.results { display: flex; flex-direction: column; gap: 12px; }
.row-card { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; transition: border-color .15s, box-shadow .15s; }
.row-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.row-card .card-media { aspect-ratio: 4 / 3; border-radius: 14px; }
.row-card .main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-card .main h3 { font-size: 1.12rem; font-weight: 900; }
.row-card .main h3 a:hover { color: var(--lime); }
.row-card .desc { font-size: .88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-card .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 160px; }
.row-card .side .price { text-align: right; }
.row-card .side .price strong { font-size: 1.12rem; display: block; color: var(--lime); }
.row-card.own { border: 2px solid var(--lime); background: linear-gradient(160deg, rgba(140, 198, 63, .08), var(--surface) 55%); }
.row-card.sponsored { border: 2px solid var(--sun); background: linear-gradient(160deg, rgba(255, 210, 63, .08), var(--surface) 55%); }
.row-card.compact { grid-template-columns: 1fr auto; padding: 12px 16px; }
.row-card.compact .side { justify-content: center; }
@media (max-width: 760px) { .row-card { grid-template-columns: 1fr; gap: 10px; } .row-card .side { flex-direction: row; align-items: center; min-width: 0; } }

/* ---------- 帯（ネット予約など） ---------- */
.band { position: relative; background: var(--lime); color: var(--ink-on-color); border-radius: 28px; padding: 36px 40px 36px 190px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.band h2 { font-size: 1.6rem; font-weight: 900; }
.band p { margin-top: 8px; max-width: 50ch; font-weight: 600; }
.band .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: relative; z-index: 1; }
.band .btn-primary { background: var(--ink-on-color); color: var(--lime); box-shadow: 0 4px 0 #000; }
.band .btn-primary:hover { background: #1d241f; }
.band-mascot { position: absolute; left: 22px; bottom: -8px; width: 150px; height: auto; }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 26px 22px 110px; } .band .actions { justify-content: flex-start; } .band-mascot { left: auto; right: 10px; width: 112px; } }

/* ---------- 2分割の案内 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.split h3 { font-size: 1.2rem; font-weight: 900; }
.split p { color: var(--ink-2); font-size: .95rem; }
.split .btn { align-self: flex-start; margin-top: 8px; }
.split ul { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: var(--ink-2); }
.split li { display: flex; gap: 8px; align-items: flex-start; }
.split li .icon { color: var(--lime); margin-top: .3em; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > div { padding: 20px; } }

/* ---------- フッター ---------- */
.site-footer { background: #070908; border-top: 1px solid var(--line); margin-top: 56px; padding: 44px 0 28px; font-size: .88rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer .brand-logo { height: 36px; }
.site-footer .about { margin: 14px 0 10px; max-width: 40ch; }
.site-footer h2 { color: var(--ink); font-size: .9rem; margin-bottom: 8px; font-weight: 800; }
.site-footer ul { display: flex; flex-direction: column; gap: 4px; }
.site-footer a:hover { color: var(--lime); }
.site-footer .legal { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.site-footer .legal .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- パンくず・見出し ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: .8rem; color: var(--muted); padding: 16px 0 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--lime); }
.crumbs li + li::before { content: "›"; margin: 0 6px; opacity: .6; }
.page-title { padding: 12px 0 22px; }
.page-title h1 { font-size: 1.75rem; font-weight: 900; }
.page-title p { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.page-title .kicker { margin: 0 0 4px; }
@media (max-width: 600px) { .page-title h1 { font-size: 1.35rem; } }
.purpose-photo { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--r-card); margin: 0 0 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats.mini { margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 1.7rem; font-weight: 900; line-height: 1.2; color: var(--ink); }
.stat .d { font-size: .78rem; color: var(--lime); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- 地図 ---------- */
.map { height: 340px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line-strong); margin-bottom: 16px; background: var(--surface-2); }
.map-lg { height: 480px; }
@media (max-width: 700px) { .map { height: 270px; } .map-lg { height: 380px; } }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.92) saturate(.6); }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-popup-content a, .gm-popup a { color: var(--lime); font-weight: 800; }
.leaflet-control-attribution { background: rgba(11, 13, 12, .75) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }
.pin { width: 28px; height: 28px; border-radius: 999px 999px 999px 0; transform: rotate(-45deg); background: var(--lime); border: 3px solid #0b0d0c; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.pin.pr { background: var(--sun); }
.pin.own { background: var(--green-hi); border-color: #fff; }
.pin.hl { background: #fff; border-color: var(--lime); width: 36px; height: 36px; }
.gm-popup { font-family: var(--font); color: #111; font-size: .85rem; line-height: 1.5; }
.gm-popup a { color: #2f6a00; }
.map-note { font-size: .78rem; color: var(--muted); margin: -8px 0 16px; }

/* ---------- 検索 ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filter-rail { position: sticky; top: calc(var(--header-h) + 12px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.rail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rail-head h2 { font-size: 1rem; font-weight: 900; }
.rail-head .clear { color: var(--lime); font-size: .82rem; font-weight: 800; }
.rail-head .close-rail { display: none; }
.filter-group { padding: 12px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.group-label { display: block; font-size: .84rem; color: var(--muted); font-weight: 800; margin-bottom: 6px; }
fieldset.filter-group { border: 0; border-top: 1px solid var(--line); padding: 12px 0; margin: 0; }
fieldset.filter-group legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
fieldset.filter-group legend + * { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; display: inline-flex; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: .8rem; font-weight: 700; }
.chip-check:hover span { border-color: var(--lime); color: var(--lime); }
.chip-check input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink-on-color); }
.chip-check input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head .count { font-size: .95rem; color: var(--ink-2); }
.results-head .count strong { font-size: 1.5rem; color: var(--lime); font-weight: 900; }
.results-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results-head form.inline { display: inline-flex; }
.results-head select { min-height: 40px; padding: 6px 34px 6px 12px; width: auto; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.view-toggle a { padding: 8px 14px; display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; font-weight: 800; background: var(--surface); }
.view-toggle a.on { background: var(--lime); color: var(--ink-on-color); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters .chip .icon { width: .9em; height: .9em; }
.filter-open-btn { display: none; }
.apply-bar { display: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; font-weight: 800; }
.pagination a:hover { border-color: var(--lime); color: var(--lime); }
.pagination .on { background: var(--lime); color: var(--ink-on-color); border-color: var(--lime); }
.pagination .gap { border: 0; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: var(--r-card); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; }
.empty a { color: var(--lime); font-weight: 800; }
@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filter-rail { display: none; }
  .filter-rail:target, .filter-rail.open { display: block; position: fixed; inset: 0; z-index: 40; border-radius: 0; max-height: none; overflow: auto; padding-bottom: 90px; top: 0; }
  .rail-head .close-rail { display: inline; }
  .filter-rail .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); }
  .filter-open-btn { display: inline-flex; }
}
@media (max-width: 600px) { .results-head { flex-direction: column; align-items: stretch; } .results-head select { flex: 1; min-width: 0; } }

/* ---------- 施設詳細 ---------- */
.shop-head { padding: 14px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.shop-head .kicker { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shop-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 900; }
.shop-head .sub { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.shop-head .sub span { display: inline-flex; align-items: center; gap: 5px; }
.gallery { display: grid; gap: 8px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 7; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery > a:first-child { grid-row: 1 / 3; }
.gallery-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gallery-2 > a:first-child, .gallery-1 > a:first-child { grid-row: auto; }
.gallery-3 { grid-template-columns: 2fr 1fr; }
.gallery-4 > a:last-child { grid-column: 2 / 4; }
.gallery .more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font-weight: 900; }
@media (max-width: 760px) {
  .gallery, .gallery-3, .gallery-4, .gallery-5 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .gallery > a:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .gallery > a:nth-child(n+2) { aspect-ratio: 4 / 3; }
  .gallery > a:nth-child(n+4) { display: none; }
  .gallery-4 > a:last-child { grid-column: auto; }
}
.gallery-ph { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 7; background: var(--surface-2); }
.gallery-ph > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-ph .ph-sticker { right: auto; left: 16px; bottom: auto; top: 16px; font-size: .85rem; padding: 4px 12px; }
.ph-cta { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; max-width: 470px; background: rgba(11, 13, 12, .86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--lime); border-radius: 20px; padding: 12px 16px 12px 8px; }
.ph-cta b { display: block; font-size: 1.02rem; font-weight: 900; color: var(--lime); }
.ph-cta p { font-size: .84rem; color: var(--ink-2); margin: 2px 0 8px; }
@media (max-width: 760px) { .gallery-ph { aspect-ratio: auto; } .gallery-ph > img { aspect-ratio: 16 / 9; height: auto; } .ph-cta { position: static; border-radius: 0 0 var(--r-card) var(--r-card); max-width: none; border-width: 0; border-top: 2px solid var(--lime); } }
.shop-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; margin-top: 28px; align-items: start; }
.shop-main { display: flex; flex-direction: column; gap: 38px; min-width: 0; }
.shop-main h2 { font-size: 1.25rem; font-weight: 900; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.shop-main h2::before { content: ""; width: 10px; height: 22px; border-radius: 4px; background: var(--lime); transform: skewX(-18deg); }
.shop-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.cta-box { background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.cta-box .price-line { font-size: .9rem; color: var(--ink-2); }
.cta-box .price-line strong { display: block; font-size: 1.4rem; color: var(--lime); font-weight: 900; }
.cta-box hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.owner-box { background: var(--surface-2); border-radius: 18px; padding: 14px 16px; font-size: .86rem; color: var(--ink-2); }
.owner-box a { color: var(--lime); font-weight: 800; }
.pr-box { background: var(--surface); border: 2px solid var(--sun); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pr-head { font-size: .82rem; color: var(--ink-2); display: flex; gap: 8px; align-items: center; font-weight: 700; }
.pr-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; }
.pr-item:hover { background: var(--surface-2); }
.pr-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; }
.pr-item b { display: block; font-size: .9rem; }
.pr-item small { color: var(--muted); }
.info-table { display: grid; grid-template-columns: 130px 1fr; margin: 0; }
.info-table dt, .info-table dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-table dt { color: var(--muted); font-size: .88rem; font-weight: 700; }
.info-table dd { font-size: .95rem; }
.info-table dd a { color: var(--lime); }
.hours-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .82rem; }
.hours-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; }
.hours-grid b { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; }
.hours-grid .today { border-color: var(--lime); background: var(--accent-soft); }
.hours-text { font-size: 1.05rem; font-weight: 700; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.price-card .name { font-size: .85rem; color: var(--muted); font-weight: 700; }
.price-card .amt { font-size: 1.45rem; font-weight: 900; margin: 4px 0; }
.price-card .amt small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.price-card p { font-size: .82rem; color: var(--ink-2); }
.price-card.hl { border: 2px solid var(--lime); background: var(--accent-soft); }
.price-card.hl .amt { color: var(--lime); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .92rem; font-weight: 700; }
.spec .icon { color: var(--lime); width: 1.3em; height: 1.3em; }
.spec.off { opacity: .42; font-weight: 500; }
.spec.off .icon { color: var(--muted); }
.review-box { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.review-box > .icon { width: 1.7em; height: 1.7em; color: var(--sun); }
.review-box p { flex: 1; font-size: .9rem; color: var(--ink-2); }
.source-note { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.source-note a { color: var(--lime); }
.note { margin-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
@media (max-width: 960px) { .shop-layout { grid-template-columns: 1fr; } .shop-aside { position: static; } .spec-grid, .price-cards { grid-template-columns: 1fr 1fr; } .hours-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .info-table { grid-template-columns: 1fr; } .info-table dt { padding-bottom: 0; border-bottom: 0; } .info-table dd { padding-top: 2px; } .review-box { flex-wrap: wrap; } }

/* ---------- 文章 ---------- */
.prose { max-width: 72ch; color: var(--ink-2); font-size: .97rem; }
.prose h2 { font-size: 1.25rem; color: var(--ink); margin: 28px 0 10px; font-weight: 900; }
.prose p + p { margin-top: 10px; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose ol, .prose ul { padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

/* ---------- マスコット ---------- */
.mascot { width: 160px; height: auto; }
.mascot-sm { width: 96px; }
.done { text-align: center; padding: 40px 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done h1 { font-size: 1.6rem; font-weight: 900; }
.done p { color: var(--ink-2); }

/* ---------- 手順・選択肢 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; margin-bottom: 28px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 20px 20px; position: relative; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -14px; left: 18px; width: 32px; height: 32px; border-radius: 999px; background: var(--lime); color: var(--ink-on-color); display: grid; place-items: center; font-weight: 900; font-size: .95rem; box-shadow: 0 3px 0 var(--lime-deep); }
.step h3 { font-size: 1.02rem; margin: 6px 0 6px; font-weight: 900; }
.step p { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.choice a { display: block; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); padding: 18px; transition: border-color .15s; }
.choice a:hover { border-color: var(--line-strong); }
.choice a.on { border-color: var(--lime); background: var(--accent-soft); }
.choice h2 { font-size: 1rem; display: flex; align-items: center; gap: 8px; font-weight: 900; }
.choice h2 .icon { color: var(--lime); }
.choice p { font-size: .86rem; color: var(--ink-2); margin-top: 6px; }
.choice .tag { display: inline-block; margin-top: 8px; font-size: .76rem; color: var(--lime); font-weight: 800; }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; } }
.callout { background: var(--accent-soft); border-left: 4px solid var(--lime); border-radius: 0 14px 14px 0; padding: 14px 16px; font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.callout a { color: var(--lime); font-weight: 800; }
.callout.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; font-weight: 900; }
.panel.slim { padding: 12px 16px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head .actions, .dash-title .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flash { max-width: 1200px; margin: 14px auto 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); font-size: .92rem; width: calc(100% - 32px); }
.flash-warn { background: var(--warn-soft); border-color: transparent; }

/* ---------- フォーム ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .group-label { font-size: .86rem; font-weight: 800; color: var(--ink-2); }
.field .help { font-size: .8rem; color: var(--muted); }
.field .help a { color: var(--lime); }
.field .error, .agree .error, .error-text { font-size: .82rem; color: var(--danger); }
.field.has-error .input { border-color: var(--danger); }
.req { font-size: .7rem; color: var(--ink-on-color); background: var(--lime); font-weight: 800; margin-left: 6px; padding: 1px 6px; border-radius: 999px; }
.input, select.input, textarea.input { width: 100%; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); outline: none; min-height: 46px; }
.input::placeholder { color: rgba(152, 165, 158, .55); opacity: 1; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.input:disabled { opacity: .6; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--surface-2); color: var(--ink); }
textarea.input { min-height: 120px; resize: vertical; }
input[type="file"].input { padding: 10px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 40px; }
.input-sm { min-height: 34px; padding: 6px 10px; font-size: .84rem; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid.one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-weight: 900; font-size: 1.08rem; padding: 0; margin-bottom: 12px; }
.form-page fieldset { margin-bottom: 26px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { margin: 6px 0 18px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.search-row { display: flex; gap: 8px; }
.search-row .input-icon { flex: 1; }
.checks { display: grid; gap: 0 16px; }
.checks.cols-1 { grid-template-columns: 1fr; }
.checks.cols-2 { grid-template-columns: 1fr 1fr; }
.checks.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .checks.cols-3, .checks.cols-2 { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; width: fit-content; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 15px; font-size: .88rem; font-weight: 700; background: var(--surface-2); }
.seg label + label span { border-left: 1px solid var(--line-strong); }
.seg input:checked + span { background: var(--lime); color: var(--ink-on-color); }
.seg input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: -3px; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-grid label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.week-grid .input { padding: 8px; font-size: .85rem; }
@media (max-width: 760px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
.price-rows { display: flex; flex-direction: column; gap: 6px; }
.price-row { display: grid; grid-template-columns: 1.3fr 1fr .7fr 2fr auto; gap: 6px; align-items: center; }
.price-row.head { font-size: .78rem; color: var(--muted); }
.price-row .check { padding: 0 6px; }
@media (max-width: 760px) { .price-row { grid-template-columns: 1fr 1fr; } .price-row.head { display: none; } }
.sticky-actions { position: sticky; bottom: 0; background: rgba(22, 27, 24, .94); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.upload { display: flex; flex-direction: column; gap: 8px; }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }

/* ---------- 管理画面 ---------- */
.dash { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; padding-top: 20px; padding-bottom: 40px; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 12px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px; }
.dash-nav .who { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: .85rem; }
.dash-nav .who strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
.dash-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; font-size: .92rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.dash-nav a:hover, .dash-nav a.on { background: var(--accent-soft); color: var(--lime); }
.dash-nav .n { margin-left: auto; font-size: .74rem; background: var(--lime); color: var(--ink-on-color); padding: 1px 8px; border-radius: 999px; font-weight: 800; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-main > h1, .dash-title h1 { font-size: 1.45rem; font-weight: 900; }
.dash-title { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: auto; margin-top: 8px; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .025); }
.table a { color: var(--lime); }
.table td.actions { white-space: nowrap; }
.table td.actions .btn + .btn, .table td.actions form { margin-left: 6px; display: inline-block; }
.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.status.ok { background: var(--accent-soft-2); color: var(--lime); }
.status.wait { background: var(--warn-soft); color: var(--warn); }
.status.off { background: var(--surface-2); color: var(--muted); }
.status.ng { background: var(--danger-soft); color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 700; }
.tabs a.on { color: var(--lime); border-bottom-color: var(--lime); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; }
.toolbar .input { width: auto; min-width: 200px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .col { background: var(--surface); border-radius: 18px; padding: 10px; }
.kanban .col h3 { font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; padding: 0 4px; }
.kanban .item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: .86rem; margin-bottom: 8px; }
.kanban .item-head { display: flex; justify-content: space-between; gap: 8px; }
.kanban .item b { display: block; }
.kanban .item a:hover { color: var(--lime); }
.kanban .score { flex: none; min-width: 26px; height: 22px; border-radius: 999px; background: var(--accent-soft-2); color: var(--lime); font-size: .75rem; font-weight: 900; display: grid; place-items: center; }
.kanban .stage-form { margin-top: 6px; }
.kanban .note { color: var(--ink-2); margin: 4px 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.photo-item { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-item .main-badge { position: absolute; top: 8px; left: 8px; }
.photo-actions { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.row-btns { display: flex; gap: 4px; flex-wrap: wrap; }
.mail-item summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mail-body { white-space: pre-wrap; font-family: inherit; font-size: .88rem; background: var(--surface-2); padding: 12px; border-radius: 12px; margin-top: 10px; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .dash-nav .who { width: 100%; border: 0; margin: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(5, 240px); }
}

/* ---------- 進捗 ---------- */
.progress { display: flex; counter-reset: p; }
.progress li { flex: 1; position: relative; text-align: center; font-size: .8rem; color: var(--muted); padding-top: 26px; }
.progress li::before { counter-increment: p; content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: .72rem; font-weight: 800; z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; border-top: 1px solid var(--line-strong); }
.progress li:last-child::after { display: none; }
.progress li.done::before { background: var(--lime); border-color: var(--lime); color: var(--ink-on-color); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.hero-kicker { word-break: keep-all; overflow-wrap: anywhere; }
.bento .tile-mascot { position: absolute; right: 8px; bottom: -6px; width: 150px; height: auto; transform: rotate(-4deg); pointer-events: none; }
@media (max-width: 760px) { .bento .tile-mascot { width: 96px; right: 4px; } }

/* ---------- ヒャクギリ・ラボ（読み物） ---------- */
.lab-hero { background: radial-gradient(120% 140% at 100% 0%, rgba(140, 198, 63, .18), transparent 55%), var(--bg-2); border-bottom: 1px solid var(--line); padding: 18px 0 34px; }
.lab-hero.has-photo { background: linear-gradient(90deg, var(--bg-2) 0%, rgba(15, 19, 17, .92) 38%, rgba(15, 19, 17, .35) 72%, rgba(15, 19, 17, .1) 100%), var(--hero) center 40% / cover no-repeat, var(--bg-2); padding: 18px 0 70px; }
.lab-hero.has-photo .lab-hero-inner { min-height: 260px; }
@media (max-width: 700px) { .lab-hero.has-photo { background: linear-gradient(180deg, rgba(15, 19, 17, .55) 0%, rgba(15, 19, 17, .9) 55%, var(--bg-2) 100%), var(--hero) center top / cover no-repeat, var(--bg-2); padding: 18px 0 30px; } .lab-hero.has-photo .lab-hero-inner { min-height: 0; padding-top: 90px; } }
.lab-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.lab-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; letter-spacing: .02em; margin-top: 6px; }
.lab-lead { color: var(--ink-2); margin-top: 12px; max-width: 60ch; font-weight: 600; }
.lab-hero-mascot { width: 200px; transform: rotate(4deg); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 700px) { .lab-hero-inner { grid-template-columns: 1fr; } .lab-hero-mascot { width: 120px; justify-self: end; margin-top: -20px; } }

.lab-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 10px; margin-top: 26px; }
.lab-cats a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; transition: border-color .15s, transform .15s; }
.lab-cats a:hover { border-color: var(--lime); transform: translateY(-2px); }
.lab-cats a .icon { width: 22px; height: 22px; color: var(--lime); flex: none; }
.lab-cats a b { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.4; }
.lab-cats a .num { font-size: .78rem; color: var(--muted); font-weight: 700; }
.lab-cats.compact { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.lab-cats.compact a { padding: 5px 13px; border-radius: 999px; font-size: .85rem; }
.lab-cats.compact a.on { background: var(--lime); color: var(--ink-on-color); border-color: var(--lime); }

.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .lab-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lab-grid { grid-template-columns: 1fr; } .lab-cats { grid-template-columns: 1fr 1fr; gap: 8px; } .lab-cats a { padding: 10px; gap: 8px; } .lab-cats a b { font-size: .84rem; } }
.lab-card { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; min-width: 0; overflow: hidden; }
.lab-card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.lab-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lab-card:hover .lab-card-img img { transform: scale(1.04); }
.lab-card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 16px; }
.lab-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.lab-card h3 { font-size: 1.04rem; font-weight: 900; line-height: 1.5; }
.lab-card p { color: var(--muted); font-size: .86rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lab-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-weight: 800; font-size: .8rem; letter-spacing: .04em; }
.lab-cat .icon { width: 16px; height: 16px; }
.lab-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 700; margin-top: auto; }
.lab-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lab-meta .icon { width: 14px; height: 14px; }

.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding-bottom: 40px; }
@media (max-width: 1000px) { .lab-layout { grid-template-columns: minmax(0, 1fr); } .lab-aside .lab-toc { display: none; } }
.lab-toc-sp { display: none; margin: 4px 0 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; }
.lab-toc-sp summary { cursor: pointer; padding: 12px 0; font-weight: 800; color: var(--lime); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lab-toc-sp summary::-webkit-details-marker { display: none; }
.lab-toc-sp summary::after { content: "開く"; font-size: .76rem; color: var(--muted); font-weight: 700; }
.lab-toc-sp[open] summary::after { content: "閉じる"; }
.lab-toc-sp ol { margin: 0 0 14px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 1000px) { .lab-toc-sp { display: block; } }
.lab-head { padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lab-photo { margin: 18px 0 6px; }
.lab-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; background: var(--surface-2); }
.lab-photo figcaption { margin-top: 6px; font-size: .74rem; color: var(--muted); text-align: right; }
@media (max-width: 600px) { .lab-photo { margin: 14px -16px 4px; } .lab-photo img { border-radius: 0; } .lab-photo figcaption { padding: 0 16px; } }
.lab-head h1 { font-size: clamp(1.45rem, 3.4vw, 2.1rem); font-weight: 900; line-height: 1.45; margin: 8px 0 12px; }
.lab-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.lab-metrics .muted { margin-right: 4px; }
.lab-body { max-width: 74ch; font-size: 1rem; line-height: 1.95; }
.lab-body h2 { font-size: 1.32rem; margin: 40px 0 12px; padding-left: 14px; border-left: 6px solid var(--lime); scroll-margin-top: calc(var(--header-h) + 12px); }
.lab-body h3 { font-size: 1.08rem; color: var(--ink); margin: 26px 0 8px; font-weight: 900; scroll-margin-top: calc(var(--header-h) + 12px); }
.lab-summary { margin: 22px 0 8px; padding: 4px 20px 18px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); color: var(--ink); font-weight: 600; }
.lab-body .lab-summary h2 { margin-top: 16px; border-left: 0; padding-left: 0; font-size: 1.05rem; color: var(--lime); }
.lab-summary ul { margin-bottom: 0; }
.lab-body strong { color: var(--ink); background: linear-gradient(transparent 62%, rgba(140, 198, 63, .32) 62%); }
.lab-body hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 28px 0; }
.lab-body li { line-height: 1.8; }
.table-scroll { overflow-x: auto; margin: 14px 0; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.table-scroll th, .table-scroll td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.table-scroll th { background: var(--surface-2); color: var(--ink); font-weight: 800; white-space: nowrap; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.point { margin: 16px 0; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); color: var(--ink); }
.point p + p { margin-top: 6px; }

.lab-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 1000px) { .lab-aside { position: static; } }
.lab-toc, .lab-related { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; }
.lab-toc b, .lab-related b { display: block; font-size: .85rem; margin-bottom: 8px; color: var(--lime); letter-spacing: .06em; }
.lab-toc ol { margin: 0; padding-left: 1.3em; list-style: decimal; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.lab-toc a:hover { color: var(--lime); }
.lab-related a { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 700; line-height: 1.5; }
.lab-related a:not(:has(img)) { grid-template-columns: 1fr; }
.lab-related img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.lab-related a:hover { color: var(--lime); }
.lab-note { margin-top: 24px; font-size: .8rem; color: var(--muted); max-width: 74ch; }
.lab-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.lab-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: .9rem; line-height: 1.5; }
.lab-pager a small { color: var(--muted); font-weight: 700; }
.lab-pager a.next { text-align: right; grid-column: 2; }
.lab-pager a:hover { border-color: var(--lime); }
@media (max-width: 600px) { .lab-pager { grid-template-columns: 1fr; } .lab-pager a.next { grid-column: 1; } }

/* 記事の最後の「この練習に必要な環境」 */
.needs { margin-top: 44px; padding: 26px; border-radius: 26px; background: linear-gradient(160deg, rgba(140, 198, 63, .14), rgba(0, 146, 69, .08) 60%, transparent), var(--surface); border: 1px solid var(--accent-soft-2); }
.needs h2 { font-size: 1.32rem; font-weight: 900; }
.needs-lead { color: var(--ink-2); margin-top: 6px; }
.needs-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.needs-list li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.needs-list li > .icon { width: 26px; height: 26px; color: var(--lime); flex: none; margin-top: 2px; }
.needs-list b { display: block; font-size: .92rem; line-height: 1.5; }
.needs-list span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.needs-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.needs-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line-strong); }
.needs-card h3 { font-size: 1.05rem; font-weight: 900; }
.needs-card p { font-size: .86rem; color: var(--ink-2); }
.needs-card .btn { align-self: flex-start; }
.needs-card.for-studio { border-color: rgba(255, 210, 63, .4); }
.needs-who { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; color: var(--lime); letter-spacing: .06em; }
.for-studio .needs-who { color: var(--sun); }
.needs-who .icon { width: 15px; height: 15px; }
.needs-shop { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface-2); }
.needs-shop img { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; }
.needs-shop b { display: block; margin-top: 2px; }
.needs-shop small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.needs-links { display: flex; flex-wrap: wrap; gap: 8px; }
.needs-card .needs-own { font-size: .76rem; color: var(--muted); margin: -2px 0 0; }
@media (max-width: 760px) { .needs { padding: 18px; } .needs-list, .needs-cta { grid-template-columns: 1fr; } }

/* 施設向けの導入案内 */
.parts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .parts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .parts-grid { grid-template-columns: 1fr; } }
.part { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.part > .icon { width: 34px; height: 34px; color: var(--ink-on-color); background: var(--lime); border-radius: 12px; padding: 6px; }
.part h3 { font-size: 1.02rem; font-weight: 900; margin: 12px 0 6px; }
.part p { font-size: .86rem; color: var(--ink-2); }
.model-case { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.model-case img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.model-case > div { display: flex; flex-direction: column; gap: 6px; padding: 26px; justify-content: center; }
.model-case b { font-size: 1.3rem; font-weight: 900; }
.model-case span { color: var(--ink-2); font-size: .9rem; }
.model-case .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 760px) { .model-case { grid-template-columns: 1fr; } .model-case img { min-height: 180px; aspect-ratio: 16 / 9; } }
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 800; list-style: none; display: flex; gap: 10px; }
.faq summary::before { content: "Q"; color: var(--lime); font-weight: 900; }
.faq summary::-webkit-details-marker { display: none; }
.faq .a { padding: 0 0 16px 22px; color: var(--ink-2); font-size: .92rem; }

/* ---------- 運営：アクセス解析（ワイヤーフレームの画面構成） ---------- */
.an-body { background: var(--bg); }
.an-app { display: grid; grid-template-columns: 68px 248px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "rail side center right" "rail foot foot foot"; height: 100vh; height: 100dvh; }
.an-rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; background: #070908; border-right: 1px solid var(--line); }
.an-rail-logo { margin-bottom: 10px; }
.an-rail-logo img { width: 34px; height: 34px; border-radius: 10px; }
.an-rail-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); transition: background .15s, color .15s; }
.an-rail-btn .icon { width: 22px; height: 22px; }
.an-rail-btn:hover { background: var(--surface-2); color: var(--ink); }
.an-rail-btn.on { background: var(--lime); color: var(--ink-on-color); }
.an-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--sun); color: #1a1400; font-size: .64rem; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.an-me { margin-top: auto; position: relative; }
.an-me summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--lime), var(--green)); color: var(--ink-on-color); font-weight: 900; }
.an-me summary::-webkit-details-marker { display: none; }
.an-me-menu { position: absolute; left: 52px; bottom: 0; z-index: 30; width: 240px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.an-me-menu small { color: var(--muted); word-break: break-all; margin-bottom: 8px; }

.an-side { grid-area: side; display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); border-right: 1px solid var(--line); }
.an-site { position: relative; padding: 14px 12px 10px; border-bottom: 1px solid var(--line); }
.an-site summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); }
.an-site summary::-webkit-details-marker { display: none; }
.an-site summary img { border-radius: 8px; flex: none; }
.an-site summary > span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.an-site summary b { font-size: .95rem; }
.an-site summary small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-site summary .icon { color: var(--muted); transition: transform .15s; }
.an-site[open] summary .icon { transform: rotate(180deg); }
.an-site-menu { position: absolute; left: 12px; right: 12px; top: calc(100% - 4px); z-index: 30; padding: 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.an-site-menu a, .an-site-cur { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; }
.an-site-menu a:hover { background: var(--surface-3); }
.an-site-cur { color: var(--lime); font-weight: 800; }
.an-site-note { padding: 6px 10px 4px; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.an-list { flex: 1; overflow-y: auto; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.an-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .15s; }
.an-item:hover { background: var(--surface); }
.an-item.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--lime); }
.an-dot { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.an-dot .icon { width: 18px; height: 18px; }
.an-item.on .an-dot { background: var(--lime); color: var(--ink-on-color); }
.an-dot.ok { box-shadow: 0 0 0 2px var(--green-hi); }
.an-dot.warn { box-shadow: 0 0 0 2px var(--warn); }
.an-dot.error { box-shadow: 0 0 0 2px var(--danger); }
.an-item-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.an-item-t b { font-size: .9rem; }
.an-item-t small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.an-center { grid-area: center; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.an-tabs { display: flex; align-items: center; gap: 4px; padding: 14px 28px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.an-tab { padding: 10px 16px; font-weight: 800; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.an-tab:hover { color: var(--ink); }
.an-tab.on { color: var(--ink); border-color: var(--lime); }
.an-range { margin-left: auto; color: var(--muted); font-size: .8rem; padding: 0 0 8px; }
.an-main { flex: 1; overflow-y: auto; padding: 22px 28px 40px; }
.an-title h1 { font-size: 1.7rem; font-weight: 900; }
.an-title p { color: var(--muted); margin-top: 4px; }
.an-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.an-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.an-card-img { height: 86px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); border-bottom: 1px solid var(--line); padding: 10px 0 0; }
.an-spark { width: 100%; height: 100%; display: block; }
.an-card-v { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 0; }
.an-card-v b { font-size: 1.9rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.an-card-v > span:not(.an-delta) { color: var(--muted); font-size: .85rem; }
.an-card-l { padding: 2px 16px 14px; font-weight: 800; font-size: .88rem; display: flex; flex-direction: column; }
.an-card-l small { color: var(--muted); font-weight: 600; font-size: .74rem; }
.an-delta { margin-left: auto; font-size: .78rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.an-delta.up { background: var(--accent-soft-2); color: var(--lime); }
.an-delta.down { background: var(--danger-soft); color: var(--danger); }
.an-live-big { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0; }
.an-live-big b { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.an-cols { height: 100%; display: flex; align-items: flex-end; gap: 3px; padding: 0 12px 8px; }
.an-cols span { flex: 1; background: var(--lime); border-radius: 3px 3px 0 0; min-height: 3px; }
.an-cols span.zero { background: var(--surface-3); }
.an-summary { margin-top: 26px; }
.an-summary h2 { font-size: 1.15rem; font-weight: 900; }
.an-summary p { color: var(--ink-2); margin-top: 6px; max-width: 80ch; }
.an-summary a { color: var(--lime); text-decoration: underline; }
.an-highlight { margin-top: 18px; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: linear-gradient(100deg, rgba(140, 198, 63, .2), rgba(255, 210, 63, .08)); border: 1px solid var(--accent-soft-2); }
.an-avatar-img { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); object-fit: contain; padding: 4px; flex: none; }
.an-highlight > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.an-highlight b { font-weight: 900; }
.an-highlight span { color: var(--ink-2); font-size: .86rem; }
.an-highlight .btn { flex: none; }
.an-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.an-panel { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; min-width: 0; }
.an-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.an-panel-head h2 { font-size: 1rem; font-weight: 900; }
.an-panel-head p { color: var(--muted); font-size: .78rem; margin-top: 2px; }
.an-link { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-weight: 800; font-size: .8rem; white-space: nowrap; }
.an-link .icon { width: 15px; height: 15px; }
.an-empty { color: var(--muted); font-size: .86rem; padding: 6px 0; }
.an-table-wrap { overflow-x: auto; }
.an-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.an-table th { text-align: left; color: var(--muted); font-weight: 700; font-size: .74rem; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.an-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.an-table tr:last-child td { border-bottom: 0; }
.an-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-table .nowrap { white-space: nowrap; }
.an-page { min-width: 0; max-width: 0; width: 100%; }
.an-page a { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-page a:hover { color: var(--lime); }
.an-page small { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.an-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.an-bar-label { font-weight: 700; font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-label small { color: var(--muted); font-weight: 600; margin-left: 6px; font-size: .74rem; }
.an-bar-val { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.an-bar-val b { color: var(--ink); font-variant-numeric: tabular-nums; }
.an-bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.an-bar span { display: block; height: 100%; border-radius: 999px; }
.an-donut { width: 100%; max-width: 160px; height: auto; display: block; margin: 0 auto; }
.an-donut-v { fill: var(--ink); font-size: 22px; font-weight: 900; }
.an-donut-l { fill: var(--muted); font-size: 10px; font-weight: 700; }
.an-donut-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.an-checks { list-style: none; margin: 0; padding: 0; }
.an-checks li { display: grid; grid-template-columns: 56px 220px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.an-checks li:last-child { border-bottom: 0; }
.an-checks span:last-child { color: var(--ink-2); }
.an-pill { display: inline-grid; place-items: center; padding: 2px 0; border-radius: 999px; font-size: .72rem; font-weight: 900; }
.an-pill.ok { background: rgba(20, 179, 93, .18); color: var(--green-hi); }
.an-pill.warn { background: var(--warn-soft); color: var(--warn); }
.an-pill.error { background: var(--danger-soft); color: var(--danger); }

.an-right { grid-area: right; overflow-y: auto; padding: 22px 20px; background: var(--bg-2); border-left: 1px solid var(--line); }
.an-r-head h2 { font-size: 1.05rem; font-weight: 900; }
.an-r-head p { color: var(--muted); font-size: .78rem; }
.an-r-live { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 12px; }
.an-r-live b { font-size: 2.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.an-r-live > span:last-child { color: var(--muted); font-weight: 700; }
.an-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(140, 198, 63, .6); animation: an-pulse 1.8s infinite; align-self: center; }
.an-pulse.off { background: var(--surface-3); animation: none; }
@keyframes an-pulse { 0% { box-shadow: 0 0 0 0 rgba(140, 198, 63, .55); } 70% { box-shadow: 0 0 0 12px rgba(140, 198, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); } }
.an-r-box { list-style: none; margin: 0; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.an-r-box li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.an-r-box li:last-child { border-bottom: 0; }
.an-r-page { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-r-page small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.an-r-box b { font-variant-numeric: tabular-nums; color: var(--lime); }
.an-r-title { font-size: 1rem; font-weight: 900; margin: 26px 0 10px; }
.an-r-img { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.an-r-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.an-r-list li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; font-size: .86rem; }
.an-r-list b { font-variant-numeric: tabular-nums; }
.an-r-list small { color: var(--muted); min-width: 3ch; text-align: right; }
.an-sw { width: 12px; height: 12px; border-radius: 4px; }

.an-foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 28px; border-top: 1px solid var(--line); background: #070908; color: var(--muted); font-size: .78rem; flex-wrap: wrap; }
.an-foot-links { display: flex; gap: 18px; }
.an-foot-links a:hover { color: var(--lime); }

@media (max-width: 1280px) {
  .an-app { grid-template-columns: 68px 228px minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "rail side center" "rail side right" "rail side foot"; height: auto; min-height: 100vh; }
  .an-rail, .an-side { position: sticky; top: 0; height: 100vh; align-self: start; }
  .an-main { overflow: visible; }
  .an-right { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 22px 28px; }
  .an-right > .an-r-head, .an-right > .an-r-live, .an-right > .an-r-box { grid-column: 1; }
  .an-right > .an-r-title { grid-column: 2; grid-row: 1; margin-top: 0; }
  .an-right > .an-r-img { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; }
  .an-right > .an-r-list { grid-column: 2; grid-row: 4; }
}
@media (max-width: 1000px) { .an-cards { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .an-grid2 { grid-template-columns: 1fr; } .an-checks li { grid-template-columns: 52px 1fr; } .an-checks span:last-child { grid-column: 2; } }
@media (max-width: 760px) {
  .an-app { display: flex; flex-direction: column; min-height: 100vh; }
  .an-rail { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; justify-content: space-between; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 2px; }
  .an-rail-logo { margin: 0 4px 0 0; }
  .an-rail-btn { width: 40px; height: 40px; }
  .an-me { margin: 0; }
  .an-me-menu { left: auto; right: 0; bottom: auto; top: 48px; }
  .an-side { position: static; height: auto; border-right: 0; align-self: stretch; min-width: 0; }
  .an-rail { align-self: stretch; }
  .an-center, .an-right, .an-foot { min-width: 0; }
  .an-site { padding: 10px 16px 8px; border-bottom: 0; }
  .an-site-menu { left: 16px; right: 16px; }
  .an-list { flex-direction: row; overflow-x: auto; padding: 4px 16px 10px; gap: 6px; scrollbar-width: none; }
  .an-list::-webkit-scrollbar { display: none; }
  .an-item { flex: none; padding: 6px 12px 6px 6px; background: var(--surface); border-radius: 999px; gap: 8px; }
  .an-item.on { box-shadow: inset 0 0 0 1.5px var(--lime); }
  .an-dot { width: 30px; height: 30px; }
  .an-tabs { padding: 4px 16px 0; }
  .an-tab { padding: 10px 12px; }
  .an-range { width: 100%; margin: 0; order: 9; }
  .an-main { padding: 18px 16px 28px; }
  .an-title h1 { font-size: 1.4rem; }
  .an-cards { grid-template-columns: 1fr; }
  .an-card { display: grid; grid-template-columns: 1fr 120px; grid-template-areas: "v img" "l img"; }
  .an-card-img { grid-area: img; height: auto; min-height: 76px; border-bottom: 0; border-left: 1px solid var(--line); }
  .an-card-v { grid-area: v; }
  .an-card-l { grid-area: l; }
  .an-highlight { flex-wrap: wrap; }
  .an-highlight .btn { width: 100%; justify-content: center; }
  .an-panel { padding: 14px; }
  .an-donut-row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .an-page a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
  .an-right { display: block; padding: 20px 16px; }
  .an-right > .an-r-img { display: block; }
  .an-r-img .an-donut { max-width: 140px; }
  .an-foot { padding: 14px 16px 22px; flex-direction: column; align-items: flex-start; }
  .an-foot-links { flex-wrap: wrap; gap: 8px 16px; }
}

/* ---------- 運営：オーナー招待 ---------- */
.invite-table td { vertical-align: top; }
.invite-table .rank { font-weight: 900; color: var(--lime); font-size: 1.05rem; }
.invite-shop .chips { margin-top: 6px; }
.invite-shop .chip { font-size: .72rem; padding: 2px 8px; }
.invite-shop .icon { width: 13px; height: 13px; vertical-align: -2px; }
.invite-table .score { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft-2); color: var(--lime); font-weight: 900; }
.note-form { display: flex; gap: 6px; min-width: 170px; }
.note-form .btn { padding-inline: 10px; }
.invite-table td:last-child .btn { white-space: nowrap; }
.note-form .input { flex: 1; min-width: 0; }
.invite-chain { margin: -6px 0 14px; }
.invite-chain a { color: var(--lime); text-decoration: underline; }
.invite-fresh { border: 2px solid var(--lime); }
.copy-area { align-items: flex-start; }
.copy-area textarea { flex: 1; font-size: .86rem; line-height: 1.7; }
.invite-next { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.invite-template summary { cursor: pointer; }
.invite-template textarea { width: 100%; margin-top: 12px; font-size: .88rem; line-height: 1.7; }
@media (max-width: 900px) { .note-form { min-width: 200px; } .copy-area { flex-direction: column; } .copy-area textarea { width: 100%; } }
.invite-table select { min-width: 118px; }
.invite-shop { min-width: 220px; }
.invite-fresh { min-width: 0; overflow: hidden; }
.invite-fresh .copy-row .input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .invite-fresh .copy-row { flex-wrap: wrap; } .invite-fresh .copy-row .btn { width: 100%; justify-content: center; } }

/* ---------- コーチマッチング（事前登録） ---------- */
.band.coach { background: linear-gradient(120deg, var(--green), #0a5a33 70%); color: #fff; }
.band.coach::after { background: rgba(255, 255, 255, .1); }
.band.coach .chip-outline { border-color: rgba(255, 255, 255, .45); color: #fff; margin-bottom: 8px; }
.band.coach .btn-primary { background: var(--lime); color: var(--ink-on-color); box-shadow: 0 4px 0 #0b3d22; }
.band.coach .btn-primary:hover { background: var(--lime-hi); }
.band.coach .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.prereg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 10px 0 40px; }
@media (max-width: 900px) { .prereg-grid { grid-template-columns: 1fr; } }
.prereg-card { padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 12px); }
.prereg-card.for-studio { border-color: rgba(255, 210, 63, .4); }
.prereg-card h2 { font-size: 1.25rem; font-weight: 900; margin: 6px 0 6px; }
.prereg-card .form-page { margin-top: 14px; }
.prereg-card .form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .prereg-card .form-grid { grid-template-columns: 1fr; } .prereg-card { padding: 16px; } }
.prereg-form.has-errors { outline: 2px solid var(--danger); outline-offset: 10px; border-radius: 16px; }
.coach-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
