:root {
  color-scheme: light;
  --navy: #0b2942;
  --navy-soft: #23486a;
  --blue: #2f5b8c;
  --blue-pale: #e8f1fa;
  --green: #1f6b55;
  --leaf: #7db36a;
  --green-pale: #eaf4ee;
  --line: #e3e8ec;
  --ink: #1f2a33;
  --muted: #52616d;
  --paper: #f6f9fb;
  --body-font: "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --heading-font: "Zen Maru Gothic", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #fff; color: var(--ink); font: 16px/1.8 var(--body-font); }
img { display: block; max-width: 100%; }
.wrap { width: min(1020px, calc(100% - 48px)); margin-inline: auto; }
.brand { background: #fff; border-bottom: 1px solid var(--line); }
.brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand-home { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; min-width: 0; }
.brand-home img { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.brand-home strong { color: var(--navy); display: block; font: 700 1rem/1.4 var(--heading-font); letter-spacing: .055em; }
.brand-home small { display: block; color: var(--blue); font-size: .68rem; line-height: 1.5; letter-spacing: .24em; }
.brand-site { color: var(--blue); text-underline-offset: 4px; font-size: .84rem; white-space: nowrap; }

.hero { position: relative; isolation: isolate; overflow: clip; background: #fff; border-bottom: 1px solid #eef3ef; }
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.hero::before {
  inset: -44% 43% -62% -32%;
  border-radius: 44% 56% 53% 47%;
  transform: rotate(-12deg);
  background: radial-gradient(ellipse at 65% 35%, #e8f1fa 0, #f7fbfd 51%, transparent 73%);
}
.hero::after {
  width: min(64vw,680px);
  height: 124%;
  right: -18%;
  bottom: -65%;
  border-radius: 54% 46% 30% 70%;
  transform: rotate(-12deg);
  background: radial-gradient(ellipse at 45% 30%, #d9edd3, #eaf4ee 40%, transparent 72%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); align-items: center; gap: clamp(22px, 5vw, 78px); padding-block: clamp(32px, 5vw, 62px); }
.hero-text { min-width: 0; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--green); font-weight: 700; font-size: .87rem; letter-spacing: .12em; margin: 0 0 11px; }
.hero-kicker::before { content: ""; width: 31px; height: 1px; background: var(--green); }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 4.5vw, 3.45rem); line-height: 1.28; letter-spacing: .055em; }
.hero-meta { color: var(--muted); margin: 13px 0 0; font-size: .94rem; }
.hero-meta strong { color: var(--green); }
.hero-photo { margin: 0; position: relative; isolation: isolate; }
.hero-photo::before {
  content: ""; position: absolute; inset: 7px -9px -8px 9px; z-index: -1;
  border: 1px solid #c7dfcb; border-radius: 42% 26% 35% 24% / 26% 36% 25% 28%; background: #eaf4ee;
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.94; object-fit: cover; object-position: 50% 45%; border-radius: 42% 26% 35% 24% / 26% 36% 25% 28%; }

main.wrap { padding-block: clamp(24px, 4vw, 50px); }
h1, h2, h3 { color: var(--navy); font-family: var(--heading-font); line-height: 1.35; margin: 0 0 13px; }
main > h1 { font-size: clamp(1.55rem, 5vw, 2.4rem); letter-spacing: .06em; }
h2 { font-size: 1.25rem; letter-spacing: .075em; }
p { margin: 0 0 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, .85fr); gap: 19px; align-items: start; }
.panel, .summary { background: #fff; border: 1px solid var(--line); border-radius: 23px; padding: clamp(15px, 3vw, 28px); }
.booking-calendar { box-shadow: 0 12px 36px #0b29420b; }
.time-panel { background: linear-gradient(155deg, #f8fbf9, #eef6f0); border-color: #e0ebe3; scroll-margin-block-start: 12px; }
.time-panel h2, .booking-calendar h2 { display: flex; align-items: center; gap: 9px; }
.time-panel h2::before, .booking-calendar h2::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--leaf); }
.admin { margin-block: 14px; }
.month { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; text-align: center; gap: 4px; color: var(--navy); margin-block: 5px 12px; }
.month .quiet { padding-inline: 6px; white-space: nowrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.weekday { color: var(--muted); font-size: .8rem; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.weekday:nth-child(1) { color: #996358; }
.weekday:nth-child(7) { color: var(--blue); }
.day {
  min-height: 44px; width: min(100%, 49px); justify-self: center; border-radius: 99px; text-decoration: none;
  display: grid; justify-items: center; align-content: center; line-height: 1.12; font-variant-numeric: tabular-nums;
}
.closed { color: #62717a; }
.available { color: var(--green); background: var(--green-pale); font-weight: 750; }
.available:hover, .selected { color: #fff; background: var(--green); }
i { background: currentColor; width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin: 3px 0 0; }
.calendar-key { color: var(--green); font-size: .84rem; margin: 10px 0 0; }
.slots, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.slots a, .slots button { width: 100%; background: #fff; border-color: #b7cdc2; color: var(--navy); }
.slots a:hover, .slots button:hover { background: var(--green); border-color: var(--green); color: #fff; }
.summary { margin: 14px 0 18px; max-width: 630px; background: var(--paper); }
.summary div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 8px; border-bottom: 1px solid var(--line); padding-block: 8px; }
.summary div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: .87rem; }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.fields { display: grid; gap: 12px; max-width: 630px; margin-block: 12px; }
label { display: block; font-weight: 700; }
small { color: var(--muted); font-weight: 500; }
input, textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 4px; padding: 8px 11px; border: 1px solid #a9b9c1; border-radius: 11px; font: inherit; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
button, .button, .quiet { min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 99px; background: var(--navy); color: #fff; display: inline-block; text-align: center; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
button:hover, .button:hover { background: var(--navy-soft); }
.quiet { background: #fff; color: var(--blue); border-color: #bdccd6; }
.quiet:hover { background: var(--blue-pale); }
.danger, .danger:hover { background: #a03734; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.back, details { display: block; margin-top: 14px; }
a { color: var(--blue); }
.callout { color: var(--green); background: var(--green-pale); border-radius: 12px; padding: 10px; margin-block: 12px; }
.inline { display: inline-block; margin: 4px 5px; }
.records { list-style: none; padding-left: 0; overflow-wrap: anywhere; }
.records li { border-top: 1px solid var(--line); padding: 10px 0; }
footer { border-top: 1px solid var(--line); padding-block: 16px; font-size: .8rem; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .brand-inner { min-height: 63px; }
  .brand-home img { width: 36px; height: 36px; }
  .brand-home strong { font-size: .91rem; letter-spacing: .02em; }
  .brand-home small { font-size: .59rem; }
  .brand-site { font-size: .74rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-block: 23px 19px; }
  .hero-kicker { margin-bottom: 5px; font-size: .76rem; }
  .hero-meta { font-size: .86rem; margin-top: 6px; }
  .hero-photo { max-width: 420px; margin-right: 8px; }
  .hero-photo img { aspect-ratio: 3.1; object-position: center 48%; }
  .hero::before { inset: -50% 13% -50% -75%; }
  .hero::after { width: 95vw; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .summary div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
}

@media (max-width: 350px) {
  .wrap { width: calc(100% - 24px); }
  .brand-inner { gap: 8px; }
  .brand-site { font-size: .67rem; }
  .month .quiet { font-size: .8rem; }
}
