/* よいまちの紹介ページ（/lp）。夜の飲み屋街。暗い夜空に赤ちょうちんが灯る、ひと続きの縦長ページ（夜の世界に寄せた単一テーマ） */
:root {
  color-scheme: dark;
  --night: #15122b; --night2: #1c1838; --panel: #221e42; --line: #3b3569;
  --text: #f4efe6; --muted: #b5adcf; --red: #ff4d5e; --amber: #ffb547; --paper: #fbf3e2; --ink: #2a1d1a; --mint: #3fe0a9;
  --display: 'Dela Gothic One', 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --round: 'Zen Maru Gothic', 'Zen Kaku Gothic New', 'Hiragino Maru Gothic ProN', sans-serif;
  --body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, .lead, p { word-break: auto-phrase; }
.nw { white-space: nowrap; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.8 var(--body); }
a { color: var(--amber); }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font: 400 clamp(26px, 4.4vw, 40px)/1.35 var(--display); }
.kicker { font: 700 14px/1 var(--round); letter-spacing: .12em; color: var(--amber); margin: 0 0 12px; }
section { padding-block: clamp(56px, 9vw, 96px); }

/* ヘッダー */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 400 22px/1 var(--display); }
.logo svg { width: 40px; height: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer;
  padding: 14px 26px; font: 900 16px/1.2 var(--round); text-decoration: none; background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(255,77,94,.18); }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* はじめ：のれんの下に、ともるんが灯る */
.hero { position: relative; overflow: hidden; padding-block: 24px 72px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 40%, rgba(255,181,71,.16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.hero h1 { font: 400 clamp(36px, 7vw, 68px)/1.2 var(--display); }
.hero h1 em { font-style: normal; color: var(--amber); text-shadow: 0 0 24px rgba(255,181,71,.45); }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 32em; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; justify-self: center; width: min(380px, 80vw); }
.hero-art svg { width: 100%; height: auto; display: block; animation: sway 5s ease-in-out infinite; transform-origin: 50% 0; }
.sign-on { position: absolute; right: -4%; bottom: 8%; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px;
  padding: 6px 14px; font: 900 18px/1.3 var(--round); transform: rotate(6deg); }
.sign-on b { color: #1a9c6e; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art svg { animation: none; } }

/* 街の灯（今夜の様子の見本） */
.street { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--night2); border: 1px solid var(--line); font: 700 13px/1.4 var(--round); color: var(--muted); }
.lamp i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lamp.on i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.lamp.mid i { background: var(--amber); }
.lamp.on { color: var(--text); }

/* 悩み */
.wave { background: var(--night2); }
.wave-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wave p { color: var(--muted); }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* しくみ */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.way { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.way svg { width: 120px; height: 120px; }
.way h3 { font: 900 20px/1.4 var(--round); }
.way p { margin: 0; color: var(--muted); font-size: 15px; }
.way .tag { justify-self: start; font: 700 12px/1 var(--round); color: var(--ink); background: var(--amber); padding: 5px 10px; border-radius: 999px; }

/* 決まりごと */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.rules li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.rules li::before { content: ''; width: 18px; height: 22px; margin-top: 4px; border-radius: 9px; background: var(--red); box-shadow: 0 0 8px rgba(255,77,94,.6), inset 0 -4px 0 rgba(0,0,0,.18); }
.rules strong { display: block; font: 900 16px/1.5 var(--round); }
.rules span { color: var(--muted); font-size: 15px; }

/* お客さん */
.guest { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.guest svg { width: 150px; height: 150px; }
.guest h2 { color: var(--ink); }
.guest p { margin: 10px 0 0; }

/* 料金 */
.price { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 32px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.plan.main { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 40px rgba(255,77,94,.15); }
.plan h3 { font: 900 16px/1.4 var(--round); color: var(--muted); }
.plan .yen { font: 400 clamp(30px, 5vw, 40px)/1.2 var(--display); margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.plan .yen small { font: 700 14px/1 var(--body); color: var(--muted); margin-left: 4px; }
.plan p { margin: 0; color: var(--muted); font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* 先行登録 */
.join { background: var(--night2); }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.join-art svg { width: min(260px, 60vw); height: auto; }
form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font: 700 14px/1.4 var(--round); min-width: 0; }
label small { font: 400 12px/1.4 var(--body); color: var(--muted); }
input, select, textarea { width: 100%; font: 400 16px/1.5 var(--body); color: var(--text); background: var(--night); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
textarea { resize: vertical; min-height: 84px; }
.req { color: var(--red); margin-left: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.done { display: grid; gap: 8px; justify-items: center; text-align: center; background: var(--panel); border: 1px solid var(--mint); border-radius: 20px; padding: 32px; }
.done svg { width: 140px; height: 140px; }
.done h3 { font: 900 22px/1.4 var(--round); }
.done p { margin: 0; color: var(--muted); }
.formnote { margin: 0; color: var(--muted); font-size: 13px; }
.formnote.warn { color: var(--amber); }

/* よくある質問 */
.faq { display: grid; gap: 10px; margin-top: 28px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
summary { cursor: pointer; font: 900 16px/1.5 var(--round); }
details p { margin: 10px 0 0; color: var(--muted); }

footer { padding-block: 40px 56px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

@media (max-width: 820px) {
  .hero-grid, .wave-grid, .join-grid, .price { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(260px, 64vw); }
  .ways { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .guest { grid-template-columns: 1fr; justify-items: start; }
  .guest svg { width: 110px; height: 110px; }
  .join-art { display: none; }
}
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } .top .btn { display: none; } }

/* インラインの style を使わない（サイトの CSP）ための小さなクラス */
.kicker-ink { color: #c26a00; }
.muted { color: var(--muted); }
.errors { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(255,77,94,.12); border: 1px solid var(--red); color: var(--text); font-size: 14px; }
.errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.top-nav { display: flex; gap: 14px; align-items: center; font: 700 14px/1 var(--round); }
.top-nav a:not(.btn) { color: var(--muted); text-decoration: none; }

/* お店の画面の見本（はじめの画面） */
.hero-art { display: grid; gap: 0; justify-items: center; }
.hero-chara { width: min(170px, 40vw); margin-top: -24px; justify-self: end; margin-right: -8px; }
.hero-chara svg { width: 100%; height: auto; display: block; animation: sway 5s ease-in-out infinite; transform-origin: 50% 0; }
.match-mock { width: min(400px, 100%); background: var(--paper); color: var(--ink); border-radius: 20px; padding: 18px 20px; box-shadow: 0 0 0 4px rgba(255,181,71,.25), 0 20px 50px rgba(0,0,0,.45); transform: rotate(-2deg); display: grid; gap: 10px; }
.mm-head { margin: 0; font: 900 13px/1 var(--round); letter-spacing: .08em; color: #c26a00; }
.mm-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.mm-name { margin: 0; font: 900 22px/1.3 var(--round); }
.mm-name small { font: 700 13px/1 var(--body); color: #6b5d58; margin-left: 4px; }
.mm-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #5a4d48; }
.mm-score { margin: 0; display: grid; justify-items: center; width: 92px; height: 92px; align-content: center; border-radius: 50%; border: 4px solid var(--red); font: 400 30px/1 var(--display); color: var(--red); }
.mm-score small { font-size: 14px; }
.mm-score span { font: 700 10px/1.2 var(--round); color: #5a4d48; margin-top: 4px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mm-chips li { font: 700 12px/1 var(--round); padding: 6px 10px; border-radius: 999px; background: rgba(255,77,94,.12); color: #b3263a; }
.mm-chips li::before { content: '♥ '; }
.mm-btn { margin: 4px 0 0; justify-self: start; background: var(--red); color: #fff; border-radius: 999px; padding: 8px 16px; font: 900 14px/1 var(--round); }
@media (prefers-reduced-motion: reduce) { .hero-chara svg { animation: none; } }

/* これまで／よいまち */
.compare { display: grid; gap: 14px; margin: 0; }
.compare div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.compare dt { font: 900 14px/1 var(--round); color: var(--muted); margin-bottom: 8px; }
.compare dd { margin: 0; }
.compare .is-new { border-color: var(--red); box-shadow: 0 0 30px rgba(255,77,94,.15); }
.compare .is-new dt { color: var(--red); }

/* 出会いの流れ（順番そのものが意味を持つので番号を付ける） */
.flow { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow li { counter-increment: step; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.flow li::before { content: counter(step); position: absolute; top: 14px; left: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: 400 16px/1 var(--display); }
.flow svg { width: 96px; height: 96px; justify-self: center; }
.flow h3 { font: 900 17px/1.45 var(--round); margin: 0; }
.flow p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.scout { margin-top: 20px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 32px; align-items: center; padding: 22px 24px; border-radius: 18px; border: 1px dashed var(--amber); }
.scout h3 { font: 900 18px/1.4 var(--round); }
.scout p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.scout .scout-note { margin: 0; font-size: 13px; color: var(--amber); }
.also-sec .way svg { width: 96px; height: 96px; }

@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .hero-art { order: 0; width: 100%; }
  .scout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .match-mock { transform: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
