/*
Theme Name: Music Studio
Description: 音楽スタジオ向け 予約・決済・スマートロック連携テーマ
Version: 1.0.0
Requires PHP: 7.4
Text Domain: music-studio
*/

:root {
	--navy-950: #0a1429;
	--navy-900: #0f1d3a;
	--navy-800: #162a52;
	--navy-700: #1f3a6e;
	--navy-600: #2b4d8f;
	--navy-200: #c5d1e8;
	--navy-100: #e3e9f4;
	--navy-50: #f4f6fb;
	--ink: #172036;
	--muted: #5b6784;
	--line: #d8dfee;
	--day: #8a6a1f;
	--day-bg: #f6efdc;
	--night: #24569a;
	--night-bg: #e1ebf8;
	--ok: #1b7a46;
	--warn: #8a5a00;
	--danger: #b3261e;
	--focus: #6f9be0;
	--accent: #f0b34a;
	--accent-hover: #f7c670;
	--radius: 6px;
	--font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
	color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-600); }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.prewrap { white-space: pre-wrap; }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Header / Footer ---------- */
.site-header { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a:not(.btn) { color: #d6def0; text-decoration: none; font-size: .9rem; padding: 10px 2px; }
.site-nav a:not(.btn):hover { color: #fff; text-decoration: underline; }
.site-footer { background: var(--navy-950); color: #b7c3dc; padding: 40px 0; font-size: .9rem; margin-top: 64px; }
.site-footer p { margin: 0 0 .3em; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 1rem; }
.site-footer__copy { margin-top: 1.2em !important; font-size: .8rem; color: #8493b3; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--radius);
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-800); color: #fff; }
.site-header .btn--primary { background: #fff; color: var(--navy-900); }
.site-header .btn--primary:hover { background: var(--navy-100); }
.btn--ghost { background: #fff; color: var(--navy-800); border-color: var(--navy-200); }
.btn--ghost:hover { background: var(--navy-50); color: var(--navy-900); }
.btn--danger { background: #fff; color: var(--danger); border-color: #e3b6b2; }
.btn--danger:hover { background: #fdf1f0; }
.btn--sm { min-height: 44px; padding: 6px 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn--xl { min-height: 72px; font-size: 1.3rem; width: 100%; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 4px 6px; color: var(--navy-600); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; min-height: 32px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--navy-950); color: #fff; min-height: 520px; }
.hero__text { padding: 64px 40px 56px max(16px, calc((100vw - 960px) / 2 + 16px)); display: flex; flex-direction: column; justify-content: center; }
.hero__tagline { color: #9fb3dc; font-size: .9rem; margin: 0 0 .9em; }
.hero__title { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.25; margin: 0 0 .7em; font-weight: 600; }
.hero__catch { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #fff; margin: 0 0 .6em; font-weight: 600; }
.hero__lead { color: #c9d4ea; max-width: 26em; margin-bottom: 1.8em; }
.hero__actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .btn--primary { background: #fff; color: var(--navy-900); }
.hero .btn--primary:hover { background: var(--navy-100); }
.hero__more { color: #c9d4ea; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding: 4px 0; }
.hero__more:hover { color: #fff; border-bottom-color: #fff; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.2); }
.hero__facts div { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.15); }
.hero__facts div:last-child { border-right: 0; margin-right: 0; }
.hero__facts dt { font-size: .75rem; color: #9fb3dc; }
.hero__facts dd { margin: 0; font-weight: 700; }
.hero__photo { margin: 0; position: relative; min-height: 260px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; }

/* ---------- Sections ---------- */
.section { padding: 64px 0 8px; }
.section--tint { background: var(--navy-50); padding-bottom: 48px; margin-top: 56px; }
.section__title { font-family: var(--serif); font-size: 1.5rem; color: var(--navy-900); font-weight: 600; padding-bottom: .5em; border-bottom: 1px solid var(--navy-200); margin-bottom: 1em; }
.section__note { color: var(--muted); }
.section__cta { margin-top: 28px; }
.content-area { padding: 40px 16px 0; }
.page__title, .entry__title { font-family: var(--serif); font-size: 1.7rem; color: var(--navy-900); margin-bottom: 1em; }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; text-align: center; }
.price-table th, .price-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.price-table tr > :last-child { border-right: 0; }
.price-table thead th { background: var(--navy-100); font-size: .9rem; }
.price-table thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.price-table thead th.is-day { background: var(--day-bg); color: #4b3a0e; }
.price-table thead th.is-night { background: var(--night-bg); color: #163a6b; }
.price-table tbody th { background: var(--navy-50); font-size: 1.05rem; width: 22%; }
.price-table td { font-size: 1.15rem; font-weight: 700; }
.price-table td small { font-size: .7rem; font-weight: 400; color: var(--muted); margin-left: 2px; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.tag--wd { background: var(--navy-900); }
.tag--hd { background: #b3261e; }

.panel { border-left: 3px solid var(--navy-700); background: var(--navy-50); padding: 16px 20px; margin: 24px 0; }
.section--tint .panel { background: #fff; }
.panel__title { font-size: 1rem; color: var(--navy-900); margin: 0 0 .6em; }
.panel__price { font-size: 1.1rem; }
.panel__price strong { font-size: 2rem; font-variant-numeric: tabular-nums; }
.panel__price small { color: var(--muted); }
.notes { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--navy-200); }
.steps li { display: grid; grid-template-columns: 2.4em 11em 1fr; gap: 0 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--navy-200); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); color: var(--navy-600); font-variant-numeric: tabular-nums; font-weight: 700; }
.steps strong { color: var(--navy-900); }
.steps span { color: var(--muted); font-size: .92rem; }
.equip { columns: 2; column-gap: 32px; padding-left: 1.1em; margin: 0 0 8px; }
.equip li { break-inside: avoid; margin-bottom: .3em; }
.link-arrow { display: inline-block; margin-top: 8px; }

/* ---------- Booking ---------- */
.booking { max-width: 720px; }
.step { margin: 0 0 32px; padding-bottom: 8px; }
.step[hidden] { display: none; }
.step__title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--navy-900); border-bottom: 2px solid var(--navy-900); padding-bottom: 8px; margin-bottom: 16px; }
.step__title > span:first-child { background: var(--navy-900); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; flex: none; }
.hint { color: var(--muted); font-size: .92rem; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal__title { font-weight: 700; font-size: 1.15rem; }
.cal__nav { width: 48px; height: 48px; border: 1px solid var(--navy-200); background: #fff; border-radius: var(--radius); font-size: 1.5rem; color: var(--navy-800); cursor: pointer; }
.cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .8rem; font-weight: 700; padding: 6px 0; color: var(--muted); }
.cal__dow.is-sun { color: #b3261e; } .cal__dow.is-sat { color: var(--night); }
.cal__day {
	min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: var(--ink);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 4px 0; cursor: pointer;
}
.cal__num { font-weight: 700; line-height: 1.2; }
.cal__mark { font-size: .95rem; line-height: 1.2; font-weight: 700; min-height: 1.2em; }
.cal__day.is-ok { border-color: var(--navy-200); }
.cal__day.is-ok .cal__mark { color: var(--ok); }
.cal__day.is-few .cal__mark { color: var(--warn); }
.cal__day.is-none, .cal__day.is-closed, .cal__day.is-past, .cal__day.is-far, .cal__day.is-loading { background: #f4f5f8; color: #8c95aa; cursor: not-allowed; }
.cal__day.is-none .cal__mark { color: #8c95aa; }
.cal__day.is-hd .cal__num { color: #b3261e; }
.cal__day.is-none.is-hd .cal__num, .cal__day.is-closed.is-hd .cal__num, .cal__day.is-past.is-hd .cal__num { color: #b78a87; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--navy-200); }
.cal__day.is-selected { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.cal__day.is-selected .cal__mark, .cal__day.is-selected .cal__num { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.legend b { display: inline-block; min-width: 1.4em; color: var(--ink); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 12px; }
.slot { min-height: 60px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left-width: 4px; }
.slot__time { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.slot__sub { font-size: .72rem; color: var(--muted); }
.slot[disabled] { background: #f1f2f6; color: #8c95aa; cursor: not-allowed; border-left-color: #cdd2de; }
.slot.is-selected { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.slot.is-selected .slot__sub { color: #c5d1e8; }
.selected-range { background: var(--navy-50); border: 1px solid var(--navy-200); border-radius: var(--radius); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

.people { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.people__label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--navy-200); border-radius: var(--radius); overflow: hidden; }
.stepper__btn { width: 56px; height: 52px; border: 0; background: var(--navy-50); font-size: 1.4rem; cursor: pointer; color: var(--navy-800); }
.stepper__btn[disabled] { opacity: .35; cursor: not-allowed; }
.stepper__val { min-width: 84px; text-align: center; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper__val small { font-size: .8rem; font-weight: 400; margin-left: 2px; }

.quote { border: 1px solid var(--navy-200); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.quote__total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quote__total span { color: var(--muted); font-size: .9rem; }
.quote__total strong { font-size: 2.1rem; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.2; }
.quote__total small { color: var(--muted); }
.quote__lines { list-style: none; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.quote__lines li { display: flex; justify-content: space-between; padding: 2px 0; }
.quote__tag { margin: 10px 0 0; background: var(--day-bg); color: #4b3a0e; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }

.summary { display: grid; gap: 4px; background: var(--navy-50); border: 1px solid var(--navy-200); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.summary div { display: flex; gap: 12px; }
.summary span { color: var(--muted); min-width: 3.5em; font-size: .9rem; }
.notice-box { border: 1px solid var(--navy-200); background: var(--navy-50); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.notice-box--ok { border-color: #a9d3b8; background: #eef8f1; }
.notice-box--warn { border-color: #e6cf9a; background: #fbf5e4; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { flex: 1; min-height: 48px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.is-active { color: var(--navy-900); border-bottom-color: var(--navy-800); }

.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form textarea {
	width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aab6d0; border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--navy-600); outline: 3px solid var(--focus); outline-offset: 0; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; cursor: pointer; }
.form .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--navy-800); }
.form-err { color: var(--danger); font-size: .9rem; font-weight: 700; min-height: 1.4em; margin: 0 0 8px; }
.policy { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 8px; font-size: .9rem; }
.policy summary { cursor: pointer; font-weight: 700; min-height: 32px; }

/* ---------- 予約カード / マイページ ---------- */
.res-card { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; overflow: hidden; }
.res-card div { display: flex; border-bottom: 1px solid var(--line); }
.res-card div:last-child { border-bottom: 0; }
.res-card dt { background: var(--navy-50); width: 6em; padding: 10px 14px; font-size: .88rem; color: var(--muted); flex: none; }
.res-card dd { margin: 0; padding: 10px 14px; }
.res-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; max-width: 720px; }
.res-item.is-cancelled { opacity: .65; }
.res-item__head { margin-bottom: 8px; }
.res-item__links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge--confirmed { background: #e4f4ea; color: var(--ok); }
.badge--cancelled { background: #eceef3; color: var(--muted); }

/* ---------- 解錠ページ ---------- */
.unlock-body { background: var(--navy-900); min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 16px; }
.unlock { background: #fff; border-radius: 10px; padding: 28px 22px; width: 100%; max-width: 420px; text-align: center; }
.unlock__brand { color: var(--muted); font-size: .85rem; letter-spacing: .1em; }
.unlock h1 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy-900); }
.unlock__time strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.unlock__msg { padding: 12px; border-radius: var(--radius); margin: 14px 0; }
.unlock__msg--ok { background: #eef8f1; color: var(--ok); border: 1px solid #a9d3b8; display: grid; gap: 2px; }
.unlock__msg--ok strong { font-size: 1.15rem; }
.unlock__msg--ok span { font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 700; }
.unlock__msg--ok small { color: var(--muted); }
.unlock__msg--err { background: #fdf1f0; color: var(--danger); border: 1px solid #e3b6b2; font-weight: 700; }
.unlock__who { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }
.unlock__login { text-align: left; margin-top: 16px; }
.unlock__form { display: grid; gap: 12px; margin: 20px 0 8px; }
.unlock__note { font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	body { font-size: 16px; }
	.cal__day { min-height: 52px; }
	.res-card dt { width: 5em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- XREA 広告の表示位置 ----------
 * 広告(#vdbanner)は XREA のスクリプトが body 先頭に挿入する。
 * 非表示にはせず、表示を保ったまま最下部へ移動する（無料プランの掲載条件を満たすため）。 */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
body > #vdbanner { order: 99; margin: 24px auto 16px !important; }
body.unlock-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }

@media (max-width: 800px) {
	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__photo { order: -1; min-height: 0; height: 230px; }
	.hero__text { padding: 32px 16px 40px; }
	.hero__facts { grid-template-columns: repeat(3, auto); }
	.hero__facts div { padding-right: 14px; margin-right: 14px; }
	.steps li { grid-template-columns: 2.2em 1fr; }
	.steps li span { grid-column: 2; }
	.equip { columns: 1; }
}

/* flex の子が内容の最小幅まで広がらないように（スマホで横にはみ出る対策） */
body > * { min-width: 0; max-width: 100%; }
body { overflow-x: hidden; }

/* スマホ：料金表を横スクロールさせず画面内に収める */
@media (max-width: 600px) {
	.price-table { min-width: 0; table-layout: fixed; }
	.price-table th, .price-table td { padding: 10px 2px; }
	.price-table tbody th { width: 20%; font-size: .9rem; padding: 10px 4px; }
	.price-table thead th { font-size: .8rem; }
	.price-table thead th small { font-size: .65rem; }
	.price-table td { font-size: 1rem; }
	.price-table td small { display: block; margin: 0; font-size: .62rem; }
	.tag { padding: 1px 6px; font-size: .68rem; }
}


/* ---------- Google マップ ---------- */
.map-embed { margin: 20px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-50); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- 決済ロゴ ----------
 * 各ロゴ素材は余白の大きさが違うため、ブランドごとに表示高さを調整している。
 * 枠は共通：高さ44px の白いタイル。Apple Pay / Google Pay の公式マークは枠を持つので枠なし。 */
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.pay-logos li { background: #fff; border: 1px solid var(--line); border-radius: 6px; height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pay-logos img { display: block; width: auto; max-width: none; height: 28px; flex: none; }
.pay-logos img[src$="visa.svg"] { height: 20px; }
.pay-logos img[src$="mastercard.svg"] { height: 36px; }
.pay-logos img[src$="jcb.svg"] { height: 32px; }
.pay-logos img[src$="amex.svg"] { height: 32px; }
.pay-logos img[src$="paypay.png"] { height: 26px; }
.pay-logos .pay-logos__mark { background: transparent; border: 0; padding: 0; overflow: visible; }
.pay-logos .pay-logos__mark img { height: 44px; }
.pay-logos img[src$="googlepay.svg"] { height: 40px; }
.pay-logos__text { font-weight: 700; font-size: .9rem; color: var(--ink); }
.pay-methods { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 24px; }
.pay-methods__label { margin: 0; font-size: .9rem; font-weight: 700; color: var(--navy-900); }
.pay-methods--center { justify-content: center; margin: 12px 0; }
.site-footer__pay { margin: 14px 0 4px; }
.site-footer__pay .pay-logos li { height: 38px; padding: 0 10px; }
.site-footer__pay .pay-logos img { height: 24px; }
.site-footer__pay .pay-logos img[src$="visa.svg"] { height: 17px; }
.site-footer__pay .pay-logos img[src$="mastercard.svg"] { height: 30px; }
.site-footer__pay .pay-logos img[src$="jcb.svg"], .site-footer__pay .pay-logos img[src$="amex.svg"] { height: 27px; }
.site-footer__pay .pay-logos img[src$="paypay.png"] { height: 22px; }
.site-footer__pay .pay-logos .pay-logos__mark { padding: 0; }
.site-footer__pay .pay-logos .pay-logos__mark img { height: 38px; }
.site-footer__pay .pay-logos img[src$="googlepay.svg"] { height: 34px; }

/* ---------- 解錠ページ：有効時間・連打防止 ---------- */
.unlock__window { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; overflow: hidden; }
.unlock__window div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.unlock__window div:last-child { border-bottom: 0; }
.unlock__window dt { font-size: .75rem; color: var(--muted); }
.unlock__window dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.unlock__window dd.is-open { color: var(--ok); }
.unlock__window dd.is-closed { color: var(--danger); }
.unlock__window small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.unlock__window small span { font-weight: 700; color: var(--ink); margin-left: .3em; }
.unlock__wait { margin: 8px 0 0; font-size: .85rem; color: var(--warn); }
.unlock__form .btn[disabled] { opacity: .55; }
.unlock__form .btn[data-cooldown] { font-size: 1.05rem; }

.verify-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.quote__cancel { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--warn); background: #fbf5e4; font-size: .88rem; line-height: 1.6; }

/* ---------- ヘッダーのボタン（予約一覧・マイページ・予約する）：スマホでも常に表示 ---------- */
.site-nav a.site-nav__text { color: #d6def0; text-decoration: none; font-size: .9rem; padding: 10px 2px; }
.site-nav a.site-nav__text:hover { color: #fff; text-decoration: underline; }
.site-header .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-header .btn--outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.site-nav { gap: 6px 12px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.is-verified { color: var(--ok); font-weight: 700; }
.is-unverified { color: var(--danger); font-weight: 700; }
.login-form { max-width: 420px; margin-top: 16px; }
@media (max-width: 600px) {
	.site-header__inner { min-height: 56px; gap: 8px; }
	.brand { font-size: .95rem; }
	.site-nav { gap: 6px; flex-wrap: nowrap; }
	.site-nav a.site-nav__text { display: none; }
	.site-nav .btn--sm { display: inline-flex; min-height: 40px; padding: 6px 10px; font-size: .82rem; white-space: nowrap; }
}
@media (max-width: 600px) {
	.brand { white-space: nowrap; font-size: .9rem; }
	.site-nav { gap: 4px; }
	.site-nav .btn--sm { padding: 6px 8px; font-size: .78rem; min-height: 38px; }
}

/* ---------- 時間選択：空き時間・タイムライン・枠一覧 ---------- */
.avail { background: var(--navy-50); border: 1px solid var(--navy-200); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.avail__title { margin: 0 0 8px; font-weight: 700; color: var(--navy-900); }
.avail__list { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.avail__list li { background: #fff; border: 1px solid var(--navy-600); color: var(--navy-900); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.avail__list li::before { content: "○ "; color: var(--ok); }
.avail__none { margin: 0; color: var(--danger); font-weight: 700; }

.tl { margin: 0 0 14px; }
.tl__bar { display: flex; height: 22px; border: 1px solid var(--navy-200); border-radius: 4px; overflow: hidden; background: #fff; }
.tl__seg { flex: 1; border-right: 1px solid rgba(255,255,255,.7); }
.tl__seg:last-child { border-right: 0; }
.tl__seg.is-free, .tl__legend i.is-free { background: #bcd0f0; }
.tl__seg.is-busy, .tl__legend i.is-busy { background: repeating-linear-gradient(45deg, #dfe3ec 0 4px, #c3c9d8 4px 6px); }
.tl__seg.is-sel, .tl__legend i.is-sel { background: var(--navy-800); }
.tl__ticks { display: flex; margin-top: 2px; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__ticks span { flex: 1; text-align: left; min-height: 1em; }
.tl__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 6px 0 0; padding: 0; font-size: .78rem; color: var(--muted); }
.tl__legend i { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--navy-200); border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.slots__group { font-size: .9rem; margin: 14px 0 8px; padding: 2px 0 2px 10px; border-left: 4px solid; color: var(--ink); }
.slots__group.is-day { border-left-color: #c9a64e; }
.slots__group.is-night { border-left-color: #4f86c9; }
.slot { min-height: 72px; gap: 0; border-left-width: 1px !important; }
.slot.is-free { border-color: var(--navy-600); background: #fff; }
.slot.is-busy { background: repeating-linear-gradient(45deg, #f1f2f6 0 6px, #e6e8ef 6px 8px); border-color: var(--line); }
.slot__time { font-size: 1.05rem; line-height: 1.2; }
.slot__to { font-size: .78rem; color: var(--muted); line-height: 1.2; font-variant-numeric: tabular-nums; }
.slot.is-free .slot__sub { color: var(--ok); font-weight: 700; margin-top: 2px; }
.slot.is-busy .slot__sub { color: #6b7488; margin-top: 2px; }
.slot.is-selected { background: var(--navy-800); border-color: var(--navy-800); }
.slot.is-selected .slot__to, .slot.is-selected .slot__sub { color: #dfe7f7; }

.quote__pp { margin: 6px 0 0; font-size: .95rem; color: var(--ink); }
.quote__pp strong { font-variant-numeric: tabular-nums; }
.quote__pp small { margin-left: .4em; color: var(--muted); font-size: .8rem; }

/* ---------- クーポン ---------- */
.coupon { margin: 0 0 14px; }
.coupon__label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.coupon__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.coupon__row input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #aab6d0; border-radius: var(--radius); font: inherit; text-transform: uppercase; letter-spacing: .06em; background: #fff; }
.coupon__row input:focus { border-color: var(--navy-600); outline: 3px solid var(--focus); outline-offset: 0; }
.coupon__msg { margin: 6px 0 0; font-size: .9rem; font-weight: 700; }
.coupon__msg.is-ok { color: var(--ok); }
.coupon__msg.is-err { color: var(--danger); }
.quote__lines li.is-coupon { color: var(--ok); font-weight: 700; }

.unlock__msg--warn { background: #fbf5e4; color: #6b4a00; border: 1px solid #e6cf9a; font-weight: 700; }

/* ---------- 時間枠：アイコン表示・ホバー（マウスのときだけ）---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.slot { position: relative; }
.slot__icon { line-height: 0; }
.slot .slot__icon { position: absolute; top: 6px; right: 6px; }
.slot.is-day .slot__icon, .slot-legend .slot__icon.is-day { color: #9a6f00; }
.slot.is-night .slot__icon, .slot-legend .slot__icon.is-night { color: #2f62a8; }
.slot.is-busy .slot__icon { opacity: .4; }
.slot.is-selected.is-day .slot__icon { color: #ffe08a; }
.slot.is-selected.is-night .slot__icon { color: #bcd0f0; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .82rem; color: var(--muted); }
.slot-legend li { display: inline-flex; align-items: center; gap: 6px; }
.slot-note { margin: 0 0 8px; color: var(--warn); font-weight: 700; font-size: .9rem; }

/* ホバーは、マウスなどポインターが使える端末だけ。タップ操作では効かせない。
 * 選択中（濃い紺の塗り）と区別できるよう、淡い青＋太い枠線＋影にしている。 */
@media (hover: hover) and (pointer: fine) {
	.slot.is-free:not(.is-selected):hover,
	.cal__day.is-ok:not(.is-selected):hover,
	.cal__day.is-few:not(.is-selected):hover {
		background: #dbe8ff;
		border-color: var(--navy-700);
		box-shadow: 0 0 0 2px var(--navy-700), 0 3px 8px rgba(15, 29, 58, .18);
		cursor: pointer;
		position: relative;
		z-index: 1;
	}
	.cal__nav:hover:not([disabled]), .stepper__btn:hover:not([disabled]) { background: #dbe8ff; box-shadow: 0 0 0 2px var(--navy-700); cursor: pointer; }
}
/* 昼夜アイコンは時刻の上に置く（時刻と詰まらないように） */
.slots .slot { min-height: 88px; padding-top: 6px; }
.slots .slot .slot__icon { position: static; margin-bottom: 2px; }

.pay-rule { margin: 0 0 20px; padding: 8px 12px; border-left: 3px solid var(--navy-700); background: var(--navy-50); font-weight: 700; color: var(--navy-900); font-size: .92rem; }
.pay-rule.center { text-align: center; border-left: 0; background: none; padding: 0; margin: 10px 0 0; }

/* ---------- 住所・確認コード ---------- */
.addr { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 4px; margin: 0 0 16px; }
.addr legend { font-weight: 700; font-size: .92rem; padding: 0 6px; }
.addr__status { margin: 4px 0 0; font-size: .82rem; }
.form select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #aab6d0; border-radius: var(--radius); font: inherit; background: #fff; color: var(--ink); }
.form select:focus { border-color: var(--navy-600); outline: 3px solid var(--focus); outline-offset: 0; }
.form .code-input { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; max-width: 14rem; }

.form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.addr__purpose { margin: 0 0 12px; padding: 8px 10px; background: var(--navy-50); border-left: 3px solid var(--navy-700); font-size: .85rem; line-height: 1.6; }

/* ---------- 予約一覧：1件あたりの高さを抑えた表示 ---------- */
.res-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 12px; max-width: 720px; }
.res-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 0 0 6px; max-width: 720px; background: #fff; }
.res-row.is-cancelled { opacity: .6; background: var(--navy-50); }
.res-row__main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; line-height: 1.5; }
.res-row__when { font-size: 1rem; font-variant-numeric: tabular-nums; }
.res-row__meta { margin-left: auto; font-size: .88rem; color: var(--muted); }
.res-row__memo { margin-top: 2px; font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-row__memo::before { content: "メモ："; font-weight: 700; }
.res-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.res-row__actions .muted { font-size: .8rem; }
.res-row .badge { font-size: .75rem; padding: 0 8px; }
.btn--xs { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
.field__help { margin: 4px 0 0; font-size: .82rem; }

/* 見出し（電話番号など）が折り返さないように */
.res-card dt { width: 7em; white-space: nowrap; }
@media (max-width: 600px) { .res-card dt { width: 6.6em; } }

.unlock__warn { margin: 14px 0 6px; padding: 10px 12px; background: #fbf5e4; border: 1px solid #e6cf9a; border-left: 4px solid #b07d12; border-radius: var(--radius); color: #5a3d00; text-align: left; font-size: .95rem; }
.unlock__warn strong { font-weight: 700; }

/* パスワード欄の「表示／非表示」ボタン */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px !important; }
.pw-eye { position: absolute; top: 0; right: 0; width: 48px; height: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted, #5b6478); cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }
.pw-eye:focus-visible { outline: 2px solid var(--navy-700); outline-offset: -2px; }
@media (hover:hover) and (pointer:fine) { .pw-eye:hover { color: var(--navy-900, #14213d); } }

/* ---------- トップページ：ボタン・料金タブ・ステップ・バナー ---------- */
.btn--accent { background: var(--accent); color: var(--navy-950); border-color: var(--accent); font-weight: 700; }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
@media (hover:hover) and (pointer:fine) {
	.btn--accent:hover { color: var(--navy-950); background: var(--accent-hover); border-color: var(--accent-hover); }
	.btn--outline-light:hover { color: #fff; background: rgba(255,255,255,.12); border-color: #fff; }
}
.hero__actions .btn { text-decoration: none; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 4px 24px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-head .section__note { margin: 0; }
.pay-head .pay-methods { margin: 0; }

.ptabs { margin: 12px 0 20px; }
.ptabs__list { display: flex; gap: 0; border-bottom: 2px solid var(--navy-200); }
.ptabs__tab { flex: 1; max-width: 220px; min-height: 48px; padding: 8px 16px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.ptabs__tab.is-active { color: var(--navy-900); border-bottom-color: var(--navy-800); background: var(--navy-50); }
.ptabs__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover:hover) and (pointer:fine) { .ptabs__tab:hover { color: var(--navy-900); } }
.ptabs__panel { padding-top: 16px; }
.ptabs__print { display: none; font-weight: 700; margin: 0 0 6px; }
.ptabs__panel[hidden] { display: none; }
html:not(.js) .ptabs__print { display: block; }
html:not(.js) .ptabs__list { display: none; }
.ptabs .price-table { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; table-layout: fixed; }
.ptabs .price-table tbody th { width: 34%; text-align: left; padding-left: 16px; font-size: 1rem; }
.ptabs .price-table td { font-size: 1.35rem; }
.ptabs .price-table td strong { font-weight: 700; }
.ptabs .price-table td small { font-size: .75rem; display: inline; margin-left: 2px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 0; }
.steps li { display: block; padding: 18px 16px; background: #fff; border: 1px solid var(--navy-200); border-radius: var(--radius); }
.steps li::before { display: block; margin-bottom: 6px; font-size: .8rem; }
.steps__icon { display: block; color: var(--navy-700); margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { display: block; }
.banner { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin: 0 0 28px; background: var(--navy-900); color: #fff; border-radius: var(--radius); border-left: 5px solid var(--accent); }
.banner__icon { color: var(--accent); flex: none; line-height: 0; }
.banner strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.banner p { margin: 0; color: #c9d4ea; font-size: .92rem; }
.banner .btn { flex: none; text-decoration: none; }
@media (max-width: 800px) {
	.steps { grid-template-columns: 1fr 1fr; gap: 10px; }
	.steps li { padding: 14px 12px; }
	.steps li span { font-size: .85rem; }
	.banner { flex-direction: column; align-items: flex-start; gap: 12px; }
	.banner .btn { align-self: stretch; text-align: center; }
	.hero__actions .btn { flex: 1 1 auto; text-align: center; }
	.ptabs__tab { max-width: none; }
}

/* ---------- UI見直し ---------- */
.booking-guide { margin: 0 0 20px; color: var(--ink); }
.booking-guide span { display: block; margin-top: 2px; font-size: .85rem; color: var(--muted); }
/* 予約できる日を、はっきり */
.cal__day.is-ok, .cal__day.is-few { background: #fff; border: 2px solid var(--navy-600); }
.cal__day.is-ok .cal__num, .cal__day.is-few .cal__num { color: var(--navy-950); }
.cal__day.is-ok.is-hd .cal__num, .cal__day.is-few.is-hd .cal__num { color: #b3261e; }
.cal__day.is-selected { border-color: var(--navy-800); }
.cal__day.is-closed, .cal__day.is-past, .cal__day.is-far { color: #98a1b5; }
@media (hover:hover) and (pointer:fine) { .cal__day.is-ok:hover, .cal__day.is-few:hover { background: var(--navy-50); } }
.legend { font-size: .9rem; color: var(--ink); gap: 6px 18px; }
/* トップ：数値が折り返さない／スマホで決済ロゴが1行に収まる */
.hero__facts dd { white-space: nowrap; }
@media (max-width: 800px) {
	.pay-head .pay-logos { gap: 6px; }
	.pay-head .pay-logos li { height: 36px; padding: 0 7px; }
	.pay-head .pay-logos img { height: 22px; }
	.pay-head .pay-logos img[src$="visa.svg"] { height: 15px; }
	.pay-head .pay-logos img[src$="mastercard.svg"] { height: 28px; }
	.pay-head .pay-logos img[src$="jcb.svg"], .pay-head .pay-logos img[src$="amex.svg"] { height: 24px; }
	.pay-head .pay-logos img[src$="paypay.png"] { height: 20px; }
	.pay-head .pay-logos .pay-logos__mark img { height: 36px; }
	.pay-head .pay-logos img[src$="googlepay.svg"] { height: 32px; }
}
@media (min-width: 801px) { .steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.hero__facts dt { white-space: nowrap; }
@media (min-width: 801px) { .hero__facts div { padding-right: 18px; margin-right: 18px; } .hero__text { padding-right: 24px; } }

/* ヘッダーのログイン／マイページのアイコン */
.site-nav__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; text-decoration: none; flex: none; }
.site-nav__icon.is-in { background: rgba(255,255,255,.14); border-color: #fff; }
.site-nav__icon:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover:hover) and (pointer:fine) { .site-nav__icon:hover { background: rgba(255,255,255,.2); border-color: #fff; } }
.site-nav a.site-nav__icon { padding: 0; color: #fff; }
.site-nav a.site-nav__icon:hover { text-decoration: none; }

/* マイページ：保存したカード */
.cards { margin: 28px 0; }
.cards__title { font-size: 1.05rem; margin: 0 0 8px; }
.cards__list { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line, #d8dfee); border-radius: var(--radius); }
.cards__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; }
.cards__list li + li { border-top: 1px solid var(--line, #d8dfee); }
.cards__list form { margin: 0; }
