:root {
  color-scheme: light;
  --ink: #20232a;
  --muted: #65707c;
  --line: #e3ddd5;
  --paper: #f7f4ef;
  --white: #ffffff;
  --accent: #9f5b45;
  --accent-dark: #6e3f32;
  --sage: #667764;
  --danger: #9a2f2f;
  --ok: #256f55;
  --shadow: 0 10px 30px rgba(53, 43, 35, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1120px, calc(100% - 36px));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: grid;
  gap: 2px;
  line-height: 1.2;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: var(--ink);
}

.brand span,
.meta,
.small-note,
.admin-table small {
  color: var(--muted);
  font-size: 12px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 14px;
  font-size: 12px;
  font-weight: 700;
}

.header-nav a {
  padding: 7px 0;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a:focus {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.app-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.booking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-copy,
.summary-panel,
.panel,
.admin-login {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.16;
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

p {
  margin: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
}

.summary-panel {
  padding: 18px;
  display: grid;
  gap: 13px;
  align-content: start;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line span:first-child {
  color: var(--muted);
}

.summary-line strong {
  text-align: right;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.step-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.step-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-head p {
  margin-top: 6px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fffdfb;
  text-align: left;
  display: grid;
  gap: 8px;
  align-content: start;
}

.choice-card:hover,
.choice-card:focus {
  border-color: var(--accent);
  outline: none;
}

.choice-card.is-selected {
  border-color: var(--accent);
  background: #fbf0ea;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.choice-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: #3d463f;
  font-size: 11px;
  font-weight: 700;
}

.calendar {
  display: grid;
  gap: 14px;
}

.day-block {
  border: 1px solid var(--line);
  background: #fffdfb;
  padding: 14px;
}

.day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.slot-button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 800;
  font-size: 12px;
}

.slot-button:not(:disabled):hover,
.slot-button:not(:disabled):focus {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.slot-button.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.slot-button:disabled {
  color: #a09a93;
  background: #f0ebe5;
  cursor: not-allowed;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 12px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 0;
  font-size: 14px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
}

.button.secondary {
  background: var(--white);
  color: var(--accent-dark);
}

.button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.button:disabled {
  border-color: #cfc8bf;
  background: #d9d2ca;
  color: #756f68;
  cursor: not-allowed;
}

.alert {
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid #d9b6a8;
  background: #fff5f0;
  color: #743521;
  font-size: 13px;
  font-weight: 700;
}

.done-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #b6d5c7;
  background: #effaf5;
}

.reservation-no {
  font-size: 20px;
  font-weight: 900;
  color: var(--ok);
}

.admin-login {
  max-width: 520px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: var(--white);
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  background: #f3ede6;
  font-size: 12px;
}

.loading-view {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .header-inner,
  .app-shell {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    align-items: start;
    padding: 10px 0;
    display: grid;
  }

  .header-nav {
    justify-content: start;
  }

  .booking-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .summary-panel,
  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.two,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-head {
    display: grid;
  }
}
