:root {
  --bg: #f5efe5;
  --bg-soft: #fbf8f3;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: rgba(255, 250, 244, 0.96);
  --ink: #342c25;
  --ink-soft: #665b52;
  --line: rgba(117, 100, 82, 0.18);
  --accent: #8d9574;
  --accent-soft: rgba(141, 149, 116, 0.12);
  --warm: #c98568;
  --warm-soft: rgba(201, 133, 104, 0.14);
  --shadow: 0 24px 60px rgba(74, 55, 41, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Hiragino Sans GB", "PingFang SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 133, 104, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(141, 149, 116, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f3eb 0%, #f2ebdf 100%);
  line-height: 1.72;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(248, 243, 235, 0.78);
  border-bottom: 1px solid rgba(117, 100, 82, 0.1);
}

.topbar-inner,
.hero,
.content,
.footer-inner {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fffdf8 0%, #eee4d2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 25px rgba(88, 69, 52, 0.08);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
}

.brand-mark::before {
  inset: 7px 10px 8px 9px;
  border-radius: 12px;
  background: #faf4ea;
  box-shadow: 8px 0 0 rgba(224, 214, 196, 0.8);
}

.brand-mark::after {
  width: 10px;
  height: 12px;
  right: 11px;
  top: 6px;
  border-radius: 0 0 6px 6px;
  background: #cf8d72;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  padding: 68px 0 28px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(251, 245, 236, 0.94)),
    var(--surface-strong);
  border: 1px solid rgba(126, 105, 83, 0.12);
  box-shadow: var(--shadow);
  padding: 34px 30px 30px;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.hero-card::before {
  width: 180px;
  height: 180px;
  top: -70px;
  right: -20px;
  background: rgba(201, 133, 104, 0.14);
}

.hero-card::after {
  width: 220px;
  height: 220px;
  bottom: -100px;
  left: -80px;
  background: rgba(141, 149, 116, 0.14);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #8d5b46;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 18px 0 0;
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero-note {
  align-self: end;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(126, 105, 83, 0.1);
}

.hero-note strong {
  display: block;
  font-size: 0.96rem;
}

.hero-note p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.content {
  padding: 8px 0 64px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.main {
  display: grid;
  gap: 20px;
}

.sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.panel {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(126, 105, 83, 0.11);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  line-height: 1.2;
}

.panel h2 {
  font-size: 1.5rem;
}

.panel h3 {
  font-size: 1.06rem;
}

.panel p,
.panel li {
  color: var(--ink-soft);
}

.panel p:last-child,
.panel ul:last-child,
.panel ol:last-child {
  margin-bottom: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(126, 105, 83, 0.1);
  color: var(--ink);
  font-size: 0.92rem;
}

.accent-list,
.number-list,
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.accent-list li,
.faq-list li {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(126, 105, 83, 0.09);
}

.number-list {
  counter-reset: step;
}

.number-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.number-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.faq-question {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.faq-answer {
  margin: 0;
}

.link-card {
  display: block;
  text-decoration: none;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(126, 105, 83, 0.1);
  transition: transform 160ms ease, background-color 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.8);
}

.link-card strong {
  display: block;
  margin-bottom: 6px;
}

.muted {
  color: var(--ink-soft);
}

.footer {
  padding: 0 0 44px;
}

.footer-inner {
  border-top: 1px solid rgba(117, 100, 82, 0.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-card {
  display: grid;
  gap: 12px;
}

.contact-row {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(126, 105, 83, 0.09);
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8f7a69;
}

.contact-value {
  font-size: 0.98rem;
  color: var(--ink);
  word-break: break-word;
}

.notice {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(141, 149, 116, 0.11), rgba(141, 149, 116, 0.07));
  border: 1px solid rgba(141, 149, 116, 0.16);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

code.inline {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.92em;
  padding: 0.2em 0.45em;
  border-radius: 8px;
  background: rgba(83, 67, 53, 0.08);
}

@media (max-width: 960px) {
  .hero-grid,
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    min-height: 62px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-card {
    border-radius: 28px;
    padding: 24px 20px 22px;
  }

  .panel {
    padding: 20px 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
