/* Reservation UI bundle 2026-08-08 */
:root {
  --paper: #f4efe6;
  --paper-deep: #e9dfd1;
  --card: rgba(255, 252, 244, .88);
  --ink: #12110f;
  --muted: rgba(18, 17, 15, .62);
  --line: rgba(18, 17, 15, .16);
  --soft-line: rgba(18, 17, 15, .09);
  --accent: #ad111d;
  --accent-dark: #7d0c13;
  --success: #315f49;
  --shadow: 0 28px 80px rgba(48, 38, 25, .10);
  --radius: 3px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

:root[data-brand="toon"] {
  --paper: #f7efe4;
  --paper-deep: #eddfd0;
  --card: rgba(255, 251, 245, .92);
  --ink: #29231f;
  --muted: #6f6258;
  --line: rgba(115, 65, 38, .20);
  --soft-line: rgba(115, 65, 38, .10);
  --accent: #92552f;
  --accent-dark: #734126;
  --success: #536d57;
  --shadow: 0 24px 70px rgba(73, 46, 29, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 84% 6%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 30rem),
    radial-gradient(ellipse at 8% 72%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 28rem),
    linear-gradient(180deg, #faf6ef 0%, var(--paper) 50%, var(--paper-deep) 100%);
  font-family: var(--sans);
  line-height: 1.72;
  overflow-x: hidden;
}

:root[data-brand="toon"] body {
  background:
    radial-gradient(circle at 82% 4%, rgba(169, 111, 69, .10), transparent 30rem),
    radial-gradient(circle at 8% 62%, rgba(229, 187, 135, .15), transparent 28rem),
    linear-gradient(180deg, #fcf8f1 0%, #f6eee3 56%, #f1e5d8 100%);
}

.paper-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(18, 17, 15, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 17, 15, .014) 1px, transparent 1px),
    radial-gradient(circle at 1px 1px, rgba(18, 17, 15, .045) 1px, transparent 0);
  background-size: 88px 88px, 88px 88px, 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%); opacity: 0; pointer-events: none; padding: 9px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }

.booking-header {
  position: relative;
  z-index: 10;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 13px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand-link { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.header-logo { display: block; width: clamp(126px, 14vw, 184px); max-height: 46px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
:root[data-brand="toon"] .header-logo { width: 52px; max-height: 52px; }
.header-context { display: grid; justify-items: end; color: var(--muted); font-size: .72rem; line-height: 1.4; letter-spacing: .12em; }
.header-context strong { color: var(--ink); font: 800 .66rem/1.4 var(--sans); letter-spacing: .2em; }

.booking-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding-bottom: clamp(72px, 9vw, 126px); }
.brand-intro { min-height: 470px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding: clamp(58px, 8vw, 108px) 0 clamp(50px, 7vw, 90px); }
.intro-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font: 900 .72rem/1.5 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(2.8rem, 5.5vw, 5.15rem); line-height: 1.08; }
h1 span { display: block; }
h2 { margin-bottom: 14px; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.18; }
.intro-lead { max-width: 42rem; margin-bottom: 30px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.intro-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.intro-notes span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; }
.intro-notes b { color: var(--accent); font: 800 .64rem/1 var(--sans); letter-spacing: .08em; }
.intro-notes i { font-style: normal; }

.brand-stage { position: relative; min-height: 320px; display: grid; place-items: center; isolation: isolate; }
.brand-stage::before, .brand-stage::after { content: ""; position: absolute; pointer-events: none; }
.brand-stage::before { inset: 5% 8%; border: 1px solid var(--line); transform: rotate(-2deg); }
.brand-stage::after { inset: 11% 3% 0 15%; background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 10%, transparent), transparent 68%); filter: blur(16px); z-index: -1; }
.hero-logo { width: min(100%, 470px); max-height: 280px; object-fit: contain; mix-blend-mode: multiply; filter: contrast(1.04); }
.brand-mark { position: absolute; right: 2%; bottom: 2%; width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; opacity: .78; }
.stage-caption { position: absolute; left: 0; bottom: 9%; color: var(--muted); font: 800 .6rem/1 var(--sans); letter-spacing: .22em; writing-mode: vertical-rl; }
:root[data-brand="toon"] .brand-stage::before { border-radius: 48% 52% 45% 55% / 58% 44% 56% 42%; transform: rotate(4deg); background: rgba(255,255,255,.16); }
:root[data-brand="toon"] .hero-logo { width: min(100%, 390px); }
:root[data-brand="toon"] .brand-mark { width: 72px; height: 72px; opacity: .5; }

.booking-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.booking-guide { position: sticky; top: 24px; padding: 30px 0; }
.booking-guide h2 { margin-bottom: 28px; font-size: 1.8rem; }
.booking-guide ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.booking-guide li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.booking-guide li > b { color: var(--accent); font: 800 .65rem/1 var(--sans); }
.booking-guide li span { display: grid; }
.booking-guide li strong { font-size: .88rem; }
.booking-guide li small { color: var(--muted); font-size: .72rem; }
.privacy-note { margin-top: 22px; color: var(--muted); font-size: .72rem; line-height: 1.7; }

.booking-card, .panel {
  scroll-margin-top: 20px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.booking-card { min-height: 650px; }
.booking-card-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 34px; }
.booking-card-head h2 { margin: 0; }
.secure-note { margin: 4px 0 0; color: var(--muted); font: 800 .6rem/1.4 var(--sans); letter-spacing: .16em; white-space: nowrap; }
.secure-note span { color: var(--success); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 44px; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 7px; padding-bottom: 13px; border-bottom: 2px solid var(--soft-line); color: color-mix(in srgb, var(--muted) 64%, transparent); font-size: .76rem; }
.steps li b { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .65rem; }
.steps li.active { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.steps li.active b { border-color: var(--accent); background: var(--accent); color: #fff; }
.steps li.complete { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--muted); }
.steps li.complete b { border-color: var(--accent); color: var(--accent); }

form { display: grid; gap: 26px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, label > span:first-child, label:not(.service-option):not(.check) { color: var(--ink); font-size: .92rem; font-weight: 700; }
legend { margin-bottom: 4px; }
.field-help { margin: 0; color: var(--muted); font-size: .76rem; }
.service-options { display: grid; gap: 10px; margin-top: 18px; }
.loading-line { color: var(--muted); }
.service-option { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .72); background: rgba(255,255,255,.32); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.service-option:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); transform: translateY(-1px); }
.service-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, white); box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 9%, transparent); }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-check { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px #fff; }
.service-option:has(input:checked) .service-check { border-color: var(--accent); background: var(--accent); }
.service-copy { display: grid; min-width: 0; }
.service-copy strong { font-size: .94rem; }
.service-copy small { margin-top: 3px; color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.55; }
.service-duration { display: grid; justify-items: end; color: var(--accent); font: 800 1.25rem/1 var(--sans); }
.service-duration small { margin-top: 4px; color: var(--muted); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; }

.date-field { display: grid; min-width: 0; width: 100%; gap: 8px; }
.date-field small { color: var(--muted); font-size: .72rem; font-weight: 400; }
input[type="date"], input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input:not([type]) {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .55); background: rgba(255,255,255,.72); color: var(--ink); font-size: 1rem;
}
input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
input:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 13%, transparent); }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: calc(var(--radius) * .65); background: transparent; color: var(--ink); font: 700 .86rem/1.2 var(--sans); letter-spacing: .035em; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 13px 30px rgba(18,17,15,.14); }
:root[data-brand="toon"] .button.primary { border-color: var(--accent-dark); background: var(--accent-dark); box-shadow: 0 13px 30px rgba(115,65,38,.18); }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.55); }
.button.text { min-height: 0; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--muted); background: transparent; font-size: .75rem; }
.button.wide { width: 100%; justify-content: space-between; padding-inline: 20px; }
.button.centered { justify-self: center; }
.button.danger { border-color: #9a3b34; color: #8b302a; }
.button:disabled { opacity: .52; cursor: wait; transform: none; }

.notice { padding: 14px 16px; margin-bottom: 20px; border-radius: calc(var(--radius) * .55); }
.notice.error { border: 1px solid rgba(154,59,52,.35); background: rgba(255,237,234,.8); color: #7b2017; }
.section-title-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.section-title-row h2 { margin: 0; }
.selection-summary { margin: 10px 0 22px; color: var(--muted); font-size: .84rem; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.slot { display: grid; justify-items: center; gap: 3px; min-height: 67px; padding: 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .55); background: rgba(255,255,255,.62); color: var(--ink); cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.slot strong { font-size: 1rem; }
.slot span { color: var(--success); font-size: .62rem; }
.slot:hover, .slot.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, white); transform: translateY(-1px); }
.empty-state { grid-column: 1 / -1; display: grid; gap: 5px; padding: 30px; border: 1px dashed var(--line); text-align: center; }
.empty-state span { color: var(--muted); font-size: .78rem; }

.selected-slot { display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: calc(var(--radius) * .5); background: color-mix(in srgb, var(--accent) 5%, white); }
.selected-slot span { grid-column: 1 / -1; color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.selected-slot strong { font-size: .92rem; }
.selected-slot b { font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid em { margin-left: 5px; color: var(--accent); font-size: .66rem; font-style: normal; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .76rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }

.success { max-width: 620px; margin: 0 auto; padding: 22px 0; text-align: center; }
.success-symbol { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 22px; border: 1px solid var(--success); border-radius: 50%; color: var(--success); font-size: 1.4rem; }
.success h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.success-copy { color: var(--muted); }
.success-actions, .manage-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.booking-footer { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 24px; padding: 24px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.booking-footer img { display: block; width: 126px; max-height: 42px; object-fit: contain; object-position: left; mix-blend-mode: multiply; }
:root[data-brand="toon"] .booking-footer img { width: 48px; max-height: 48px; }
.booking-footer p { margin: 0; }

/* Management and admin screens */
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px,5vw,72px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.brand span, .header-note { display: block; color: var(--muted); font: 800 .58rem/1.3 var(--sans); letter-spacing: .18em; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 80px; }
.shell.narrow { width: min(720px, calc(100% - 32px)); }
.hero { margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.hero.compact h1 { margin-bottom: 0; }
.reservation-summary { margin: 0; }
.reservation-summary div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.reservation-summary dt { color: var(--muted); }
.reservation-summary dd { margin: 0; font-weight: 700; }
.tabs { display: flex; gap: 4px; overflow: auto; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 12px 16px; border: 0; background: none; white-space: nowrap; cursor: pointer; }
.tabs button.active { border-bottom: 3px solid var(--accent); font-weight: 700; }
.reservation-list { display: grid; gap: 12px; }
.reservation-card { display: flex; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: rgba(255,255,255,.5); }
.reservation-card h2 { margin: 4px 0; font-size: 1.5rem; }
.reservation-card p { margin: 4px 0; }
.badges span { display: inline-block; padding: 2px 8px; background: var(--paper-deep); margin-right: 5px; font-size: .68rem; }
.badges .bad { background: #fee0db; color: #8a1d10; }
.sync-error { max-width: 600px; color: var(--accent); font-size: .72rem; }
.admin-login { max-width: 440px; }
dialog { width: min(680px, calc(100% - 24px)); padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
dialog::backdrop { background: rgba(15,12,9,.55); }
.dialog-close { float: right; border: 0; background: none; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .brand-intro { grid-template-columns: 1fr; min-height: 0; }
  .brand-stage { min-height: 240px; }
  .hero-logo { max-height: 220px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-guide { position: static; display: none; }
}

@media (max-width: 640px) {
  .booking-header { min-height: 66px; padding: 11px 17px; }
  .header-logo { width: 126px; max-height: 39px; }
  :root[data-brand="toon"] .header-logo { width: 44px; max-height: 44px; }
  .header-context span { display: none; }
  .booking-shell { width: min(100% - 24px, 1180px); }
  .brand-intro { gap: 22px; padding: 44px 0 38px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .intro-notes { display: grid; gap: 7px; }
  .brand-stage { min-height: 190px; }
  .brand-stage::before { inset: 1% 5%; }
  .hero-logo { max-height: 170px; }
  .brand-mark { width: 58px; height: 58px; }
  .stage-caption { display: none; }
  .booking-card, .panel { padding: 22px 18px 28px; }
  .booking-card-head { margin-bottom: 24px; }
  .secure-note { display: none; }
  .steps { margin-bottom: 30px; }
  .steps li { display: grid; grid-template-columns: 1fr; justify-items: center; padding-bottom: 9px; }
  .steps li span { display: none; }
  .service-option { grid-template-columns: 22px 1fr auto; gap: 10px; padding: 14px 12px; }
  .service-copy small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-title-row { display: grid; }
  .section-title-row .button { justify-self: start; }
  .selected-slot { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .success-actions .button { width: 100%; }
  .booking-footer { display: grid; justify-items: center; text-align: center; }
  .reservation-card { display: block; }
  .reservation-summary div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
