:root {
  --navy: #1a2238;
  --gold: #d4b45a;
  --deep-gold: #80641c;
  --paper: #f6f5f2;
  --line: #e4e1da;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section-space: clamp(48px, 7vw, 96px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1rem/1.9 "Noto Sans JP", "Hiragino Sans", sans-serif;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h2 { margin: .25rem 0 1.75rem; font: 600 clamp(1.625rem, 3.6vw, 2.5rem)/1.4 var(--serif); }
h3 { font-size: 1rem; font-weight: 500; }
.wrap { max-width: 1248px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.navy { background: var(--navy); color: white; }
.white { background: white; }
.accent { color: var(--deep-gold); }
.eyebrow {
  color: var(--deep-gold);
  font: 600 1.125rem/1.5 var(--latin);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px var(--gutter);
  color: white;
  transition: background .3s ease;
}
.site-header.is-scrolled { background: rgb(26 34 56 / .95); }
.wordmark { font: 600 clamp(1.375rem, 5vw, 1.875rem)/1 var(--latin); letter-spacing: .02em; }
.wordmark span, .hero h1 span { color: var(--gold); }
.button {
  display: inline-block;
  padding: 14px clamp(12px, 4vw, 40px);
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: white; }
.button--header { background: white; padding: 11px clamp(8px, 2vw, 22px); font-size: .875rem; }
.button--header:hover { background: var(--gold); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.navy .button:focus-visible, .hero .button:focus-visible, .site-header .button:focus-visible, .booking-bar .button:focus-visible { outline-color: white; }

.hero {
  display: grid;
  align-items: center;
  min-height: min(100svh, 860px);
  background: linear-gradient(90deg, rgb(26 34 56 / .84), rgb(26 34 56 / .54) 58%, rgb(26 34 56 / .16)), url("hero.webp") center / cover no-repeat, var(--navy);
  color: white;
}
.hero-inner { width: 100%; padding-block: clamp(110px, 12vw, 160px) clamp(48px, 8vw, 96px); }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.hero-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 { margin-top: 16px; font: 600 clamp(1.5rem, 8.5vw, 6rem)/1.25 var(--serif); }
.hero h1 span { white-space: nowrap; }
.hero-description { margin-top: clamp(24px, 6vw, 64px); font-size: clamp(1rem, 2vw, 1.25rem); }
.mobile-booking { display: none; }

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 24px;
  padding-block: clamp(36px, 6vw, 64px);
}
.highlights dt { color: var(--gold); letter-spacing: .08em; }
.highlights dd { font-size: .875rem; }
.highlights strong { display: block; font: 600 clamp(1.35rem, 3vw, 2.125rem)/1.55 var(--serif); }
.salary-grid, .work-grid, .benefits-grid { display: grid; }
.salary-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card { padding: clamp(20px, 4vw, 28px); background: white; }
.salary { margin: 4px 0 8px; font: 600 clamp(1.9rem, 5vw, 2.5rem)/1.3 var(--serif); }
.salary-model > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; }
.salary-model > div + div { border-top: 1px solid var(--line); }
.salary-model dd { color: var(--deep-gold); font-weight: 500; }
.section-description, .location p { max-width: 45rem; }
.section-description { margin-bottom: 28px; }
.work-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 12px; }
.work-grid li { border: 1px solid #d9d5cb; padding: 20px; font-weight: 500; }
.location { padding: clamp(24px, 5vw, 56px); }
.location h3 { margin-bottom: 16px; font: 600 clamp(1.875rem, 4.5vw, 3.25rem)/1.3 var(--serif); }
.location .location-label { display: inline-block; margin-top: 24px; padding: 8px 20px; background: var(--gold); color: var(--navy); font-weight: 500; }
.requirements { border-top: 2px solid var(--navy); }
.requirements > div { display: grid; grid-template-columns: minmax(8em, 17%) 1fr; gap: 4px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.requirements dt { color: var(--deep-gold); font-weight: 500; }
.benefits-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.benefits-grid li { padding: 16px 20px; background: white; font-weight: 500; }
.benefits-toggle {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--navy);
  background: white;
  color: var(--navy);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.booking { text-align: center; }
.booking h2 { margin-bottom: 12px; }
.booking p { margin-bottom: 28px; }
footer { padding: 24px 20px 100px; text-align: center; font-size: .8125rem; }
.booking-bar {
  position: fixed;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  justify-content: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgb(26 34 56 / .95);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .3s ease, visibility .3s;
}
.booking-bar.is-visible { visibility: visible; transform: translateY(0); }
.booking-bar a { flex: 0 1 420px; }

@media (max-width: 767px) {
  .hero { background-position: 58% center; }
  .hero h1 { font-size: clamp(1.125rem, 8.15vw, 4.1rem); }
  .hero-description br { display: none; }
  .hero-description { max-width: 32em; }
  .mobile-booking { display: block; margin-top: 24px; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .requirements > div { grid-template-columns: 1fr; }
  .benefits-grid.is-collapsed li:nth-child(n+4) { display: none; }
  .benefits-toggle:not([hidden]) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .booking-bar { transition: none; }
}
