:root {
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --ink: #1a2330;
  --muted: #5f6b78;
  --line: rgba(26, 35, 48, 0.12);
  --navy: #16324f;
  --sea: #1f6f8b;
  --moss: #2f6b4f;
  --moss-soft: rgba(47, 107, 79, 0.12);
  --sand: #d8c3a5;
  --white: #fffcf7;
  --shadow: 0 16px 40px rgba(22, 50, 79, 0.08);
  --max: 1080px;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Sora", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbf8f3 0%, var(--paper) 45%, var(--paper-2) 100%);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 243, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
}

.brand {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand em {
  font-style: normal;
  color: var(--sea);
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-sea {
  background: var(--sea);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.menu-toggle { display: none; min-width: 44px; }
.nav-mobile-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Hero: full-bleed wallpaper carousel */
.hero {
  position: relative;
  min-height: calc(100dvh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #1a2330;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  display: flex;
  align-items: flex-end;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide.is-active .hero-inner {
  animation: hero-in 0.75s ease both;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(251, 248, 243, 0.22) 0%, rgba(251, 248, 243, 0.72) 48%, rgba(246, 243, 238, 0.92) 100%),
    var(--hero-img) center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.hero-slide.is-active .hero-visual {
  transform: scale(1);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7.5rem;
  max-width: 640px;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-brand em {
  font-style: normal;
  color: var(--sea);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 550;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  color: var(--ink);
}

.hero-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
}

.hero-footer {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.85);
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.hero-nav:hover {
  background: var(--white);
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(22, 50, 79, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 22px;
  background: var(--sea);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 4rem 0; }

.section-head {
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-head p { margin: 0; color: var(--muted); }

.rail {
  border-top: 1px solid var(--line);
}

.rail-item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.rail-item strong {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
}

.rail-item p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
}

.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.sheet h2, .sheet h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.steps { display: grid; gap: 1rem; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; }
.step::before {
  counter-increment: s;
  content: counter(s);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--moss-soft);
  color: var(--moss);
  font-weight: 800;
  font-size: 0.85rem;
}
.step h3 { margin: 0 0 0.2rem; font-size: 1rem; font-family: var(--body); font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.band {
  margin: 0.5rem 0 3.5rem;
  padding: 1.7rem 1.5rem;
  border-radius: 4px;
  background: var(--navy);
  color: #f4f7fa;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.band h2 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}

.band p { margin: 0; opacity: 0.85; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.page-hero { padding: 3rem 0 1.2rem; }
.page-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 38rem; }

.form { display: grid; gap: 0.85rem; }
.form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.88rem; }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 110px; resize: vertical; }
.form .hint { color: var(--muted); font-size: 0.84rem; font-weight: 500; }

.msg { padding: 0.75rem 0.9rem; border-radius: 10px; font-size: 0.9rem; }
.msg-ok { background: var(--moss-soft); color: var(--moss); }
.msg-err { background: rgba(150, 70, 30, 0.1); color: #8a3b12; }
.hidden { display: none !important; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--moss-soft);
  color: var(--moss);
}
.badge.wait { background: rgba(150, 70, 30, 0.12); color: #8a3b12; }
.badge.off { background: rgba(26, 35, 48, 0.08); color: var(--muted); }

.tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
}
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 3px solid var(--sand);
  padding-left: 0.85rem;
  margin: 1rem 0 0;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 66px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: inline-flex !important; }
  .rail-item, .split { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 3.2rem; }
}
