:root {
  --blue: #3b5bdb;
  --blue-dark: #2b44b0;
  --blue-soft: #e7ecfd;
  --bg: #f4f6fb;
  --ink: #1e2233;
  --muted: #6c7389;
  --line: #dde2ee;
  --white: #fff;
  --few: #e8890c;
  --full: #c0c5d2;
  --font: "Outfit", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1080px;
  --pad: clamp(16px, 4vw, 32px);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid rgba(59, 91, 219, .45); outline-offset: 2px; }

/* ---------- ヘッダー ---------- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); background: var(--white); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; letter-spacing: .14em; }
.logo i { width: 26px; height: 26px; background: radial-gradient(circle at 35% 35%, #ffd76a 0 30%, transparent 31%), var(--blue); border-radius: 8px; }
.logo small { font-size: .74rem; font-weight: 400; letter-spacing: .04em; color: var(--muted); }
.header-tel { display: flex; align-items: baseline; gap: 10px; font-size: .76rem; color: var(--muted); }
.header-tel b { font-size: 1.15rem; font-weight: 600; color: var(--ink); }

/* ---------- 見出し・手順 ---------- */
main { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 48px) var(--pad) 64px; }
.intro h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.4; }
.intro p { color: var(--muted); }

.steps { display: flex; gap: 8px; margin: 24px 0; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: .88rem; font-weight: 700; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.steps span { display: grid; place-items: center; flex: 0 0 26px; height: 26px; font-size: .8rem; color: var(--muted); background: var(--bg); border-radius: 50%; }
.steps li[aria-current="step"] { color: var(--white); background: var(--blue); border-color: var(--blue); }
.steps li[aria-current="step"] span { color: var(--blue); background: var(--white); }
.steps li.done { color: var(--blue); border-color: var(--blue-soft); background: var(--blue-soft); }
.steps li.done span { color: var(--white); background: var(--blue); }

/* ---------- レイアウト ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.panel, .summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: clamp(20px, 3.4vw, 34px); }
.panel section { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel h2 { margin-bottom: 18px; font-size: 1.15rem; font-weight: 700; outline: none; }
.hint { font-size: .84rem; color: var(--muted); }

/* ---------- メニュー ---------- */
.menus { display: grid; gap: 12px; }
.menu { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background .2s; }
.menu:hover { border-color: #b9c4ee; }
.menu:has(input:checked) { background: #f7f9ff; border-color: var(--blue); }
.menu:has(input:focus-visible) { outline: 3px solid rgba(59, 91, 219, .45); outline-offset: 2px; }
.menu input { position: absolute; opacity: 0; }
.menu-body b { display: block; font-size: 1.02rem; }
.menu-body small { display: block; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.menu-meta { text-align: right; white-space: nowrap; }
.menu-meta span { display: block; font-size: .78rem; color: var(--muted); }
.menu-meta b { font-size: 1.15rem; font-weight: 600; }

/* 人の形を丸と半円で描く */
.menu-icon { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 56px; height: 56px; padding-bottom: 8px; background: var(--blue-soft); border-radius: 12px; overflow: hidden; }
.menu-icon i { position: relative; width: 13px; height: 16px; background: var(--blue); border-radius: 8px 8px 0 0; }
.menu-icon i::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); width: 10px; height: 10px; background: var(--blue); border-radius: 50%; transform: translateX(-50%); }
.menu-icon i:nth-child(2) { height: 22px; background: #ffb84d; }
.menu-icon i:nth-child(2)::before { background: #ffb84d; }
.menu-icon.kids i:nth-child(2) { height: 11px; width: 10px; }
.menu-icon.kids i:nth-child(2)::before { width: 8px; height: 8px; }
.menu-icon.solo i { width: 22px; height: 20px; border-radius: 12px 12px 0 0; }
.menu-icon.solo i::before { width: 14px; height: 14px; }
.menu-icon.card { align-items: center; padding: 0; }
.menu-icon.card i { width: 26px; height: 34px; background: var(--white); border: 2px solid var(--blue); border-radius: 3px; }
.menu-icon.card i::before { left: 50%; bottom: auto; top: 6px; width: 9px; height: 9px; }
.menu-icon.card i::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 9px; background: var(--blue); border-radius: 8px 8px 0 0; transform: translateX(-50%); }

/* ---------- カレンダー ---------- */
.when { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head p { font-size: 1.1rem; font-weight: 700; }
.cal-head button { width: 38px; height: 38px; font-size: 1.3rem; line-height: 1; background: var(--white); border: 1px solid var(--line); border-radius: 50%; }
.cal-head button:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); }
.cal-head button:disabled { opacity: .35; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { margin-bottom: 4px; font-size: .76rem; text-align: center; color: var(--muted); }
.cal-week span:first-child { color: #d9534f; }
.cal-week span:last-child { color: var(--blue); }

.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; aspect-ratio: 1; min-height: 44px; padding: 0; font-size: .92rem; line-height: 1.25; background: var(--white); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s; }
.day small { font-size: .76rem; font-weight: 700; color: var(--blue); }
.day.few small { color: var(--few); }
.day:hover:not(:disabled) { border-color: var(--blue); }
.day:disabled { color: var(--full); background: var(--bg); border-color: transparent; }
.day:disabled small { font-weight: 400; color: var(--full); }
.day[aria-pressed="true"] { color: var(--white); background: var(--blue); border-color: var(--blue); }
.day[aria-pressed="true"] small { color: var(--white); }

.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: .76rem; color: var(--muted); }
.cal-legend b { margin-right: 4px; }
.cal-legend .ok { color: var(--blue); }
.cal-legend .few { color: var(--few); }

.slots-title { margin-bottom: 12px; font-size: .92rem; font-weight: 700; }
.slots-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { min-height: 46px; font-size: .98rem; font-weight: 600; background: var(--white); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, background .15s; }
.slot:hover:not(:disabled) { border-color: var(--blue); }
.slot:disabled { color: var(--full); background: var(--bg); border-color: transparent; text-decoration: line-through; }
.slot[aria-pressed="true"] { color: var(--white); background: var(--blue); border-color: var(--blue); }

/* ---------- 入力 ---------- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: block; font-size: .88rem; font-weight: 700; }
.fields .wide { grid-column: 1 / -1; }
.fields em { margin-left: 6px; padding: 1px 8px; font-size: .7rem; font-style: normal; color: var(--white); background: var(--blue); border-radius: 999px; }
.fields input, .fields select, .fields textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font-weight: 400; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.fields textarea { resize: vertical; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 91, 219, .18); }
.fields .invalid { border-color: #d9534f; background: #fff6f5; }
.error { margin-top: 14px; padding: 10px 14px; font-size: .88rem; color: #b3312d; background: #fdecea; border-radius: 10px; }

/* ---------- 確認・完了 ---------- */
.confirm { margin-bottom: 16px; border-top: 1px solid var(--line); }
.confirm div { display: flex; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.confirm dt { flex: 0 0 7em; font-size: .86rem; color: var(--muted); }
.confirm dd { font-weight: 700; overflow-wrap: anywhere; }

.done { padding: 20px 0; text-align: center; }
.done-mark { position: relative; width: 72px; height: 72px; margin: 0 auto 18px; background: var(--blue); border-radius: 50%; animation: pop .45s cubic-bezier(.3, 1.5, .5, 1); }
.done-mark::after { content: ""; position: absolute; left: 25px; top: 17px; width: 18px; height: 30px; border: solid var(--white); border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes pop { from { transform: scale(0); } }
.done h2 { margin-bottom: 8px; font-size: 1.4rem; }
.done b { font-size: 1.2rem; letter-spacing: .08em; color: var(--blue); }
.done .hint { margin: 12px 0 22px; }

.actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.btn { min-height: 52px; padding: 10px 34px; font-size: 1rem; font-weight: 700; border: 2px solid var(--blue); border-radius: 999px; transition: background .2s, color .2s, opacity .2s; }
.btn-main { color: var(--white); background: var(--blue); }
.btn-main:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-main:disabled { opacity: .4; }
.btn-ghost { color: var(--blue); background: var(--white); }
.btn-ghost:hover { background: var(--blue-soft); }

/* ---------- ご予約内容 ---------- */
.summary { position: sticky; top: 20px; padding: 24px; }
.summary h2 { margin-bottom: 12px; font-size: 1rem; }
.summary dl div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary dt { font-size: .76rem; color: var(--muted); }
.summary dd { font-weight: 700; }
.summary-price { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0; }
.summary-price span { font-size: .8rem; color: var(--muted); }
.summary-price b { font-size: 1.6rem; font-weight: 600; color: var(--blue); }
.summary-notes { padding: 12px 14px; font-size: .78rem; color: var(--muted); background: var(--bg); border-radius: 10px; }

.footer { padding: 24px var(--pad); font-size: .8rem; text-align: center; color: var(--muted); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; padding: 16px 20px; }
  .summary h2, .summary-notes { display: none; }
  .summary dl { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 12px; }
  .summary dl div { padding: 0; border: 0; }
  .summary-price { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
  .summary-price b { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  .header-tel { display: none; }
  .steps li { justify-content: center; padding: 8px; font-size: 0; gap: 0; }
  .steps li[aria-current="step"] { flex: 2.4; gap: 8px; font-size: .84rem; }
  .menu { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; }
  .menu-icon { width: 48px; height: 48px; }
  .menu-meta { grid-column: 2; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  .when, .fields { grid-template-columns: 1fr; }
  .slots-list { grid-template-columns: repeat(3, 1fr); }
  .summary dl { grid-template-columns: 1fr 1fr; }
  .summary dl div:last-child { grid-column: 1 / -1; }
  .actions .btn { flex: 1; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
