:root {
  --paper: #fbfaf7;
  --cream: #f3eee6;
  --linen: #e7ddd0;
  --stone: #b8b2aa;
  --clay: #9d725d;
  --sage: #69786d;
  --ink: #272521;
  --muted: #6e6961;
  --line: rgba(39, 37, 33, 0.14);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(39, 37, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

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

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

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px clamp(22px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(20, 18, 15, 0.42), rgba(20, 18, 15, 0));
}

.brand {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 0.78rem;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(to top, rgba(24, 22, 19, 0.78) 0%, rgba(24, 22, 19, 0.28) 42%, rgba(24, 22, 19, 0.08) 100%),
    linear-gradient(to right, rgba(24, 22, 19, 0.45), rgba(24, 22, 19, 0.02) 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 84px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 7.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-title-sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  text-transform: uppercase;
}

.hero-copy {
  max-width: 660px;
  margin: 34px 0 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--clay);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.calendar-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.guide-item {
  min-height: 76px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.guide-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  margin-top: 8px;
  border-radius: 999px;
}

.guide-dot.confirmed {
  background: var(--clay);
}

.guide-dot.tentative {
  background: var(--sage);
}

.guide-item strong {
  display: block;
  line-height: 1.35;
}

.guide-item span:not(.guide-dot) {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.calendar-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.custom-calendar {
  background: var(--white);
}

.calendar-toolbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 12px clamp(12px, 2.6vw, 22px);
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar strong {
  text-align: center;
  font-size: clamp(1.12rem, 3vw, 1.7rem);
}

.calendar-nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.calendar-weekdays span {
  padding: 10px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-cell {
  min-height: 122px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.empty {
  background: rgba(243, 238, 230, 0.38);
}

.calendar-cell.today .calendar-day {
  color: var(--white);
  background: var(--sage);
}

.calendar-day {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.calendar-events {
  display: grid;
  align-content: start;
  gap: 6px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-left: 4px solid;
  padding: 7px 7px 7px 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
}

.calendar-event.confirmed {
  border-color: var(--clay);
  background: rgba(157, 114, 93, 0.1);
}

.calendar-event.tentative {
  border-color: var(--sage);
  background: rgba(105, 120, 109, 0.11);
}

.event-status {
  font-weight: 800;
}

.event-time {
  color: var(--muted);
}

.calendar-detail {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(39, 37, 33, 0.18);
  font-size: 0.9rem;
}

.calendar-detail[hidden] {
  display: none;
}

.calendar-detail .detail-date {
  color: var(--muted);
}

.calendar-detail strong {
  color: var(--ink);
}

.reserve {
  width: min(980px, calc(100% - 36px));
}

.reservation-form {
  border-top: 1px solid var(--ink);
}

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

.form-grid {
  padding: 30px 0;
}

.form-section {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-section h3,
.form-section legend {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
}

label span,
legend {
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(105, 120, 109, 0.15);
}

small {
  color: var(--muted);
  font-size: 0.78rem;
}

.choice-row,
.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.choice-row label,
.choice-grid label,
.agree {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 13px;
  background: var(--white);
}

.choice-row input,
.choice-grid input,
.agree input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--sage);
}

.full-label {
  margin-top: 30px;
}

.agree {
  margin-top: 22px;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--sage);
  font-weight: 700;
}

.hidden-field {
  display: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.94);
    border-bottom: 1px solid var(--line);
    padding: 18px clamp(18px, 4vw, 34px);
  }

  .nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-bottom: 44px;
  }

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

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

  .calendar-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    padding-top: 158px;
  }

  .hero-actions,
  .form-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .choice-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .reserve {
    width: min(100% - 28px, 980px);
  }

  .calendar-panel {
    margin-inline: -8px;
  }

  .calendar-cell {
    min-height: 82px;
    gap: 5px;
    padding: 6px 3px;
  }

  .calendar-day {
    width: 23px;
    height: 23px;
    font-size: 0.8rem;
  }

  .calendar-event {
    border-left-width: 3px;
    padding: 4px 3px;
    font-size: 0.66rem;
  }

  .event-time {
    font-size: 0.62rem;
  }

  .calendar-detail {
    font-size: 0.9rem;
  }
}
