:root {
  --cream: #efeada;
  --cream-soft: #f7f3e8;
  --card: #fffdf6;
  --ink: #2b2822;
  --ink-soft: #625d50;
  --ink-faint: #8a8476;
  --green: #2e5a43;
  --green-dark: #21402f;
  --mint: #dce8de;
  --gold: #b98e34;
  --line: rgba(57, 52, 43, 0.13);
  --serif: "Shippori Mincho", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 4%, rgba(220, 232, 222, 0.76), transparent 30rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.85;
  line-break: strict;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--green-dark);
  border-radius: 999px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(239, 234, 218, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(100% - 40px, 1080px);
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.header-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.header-nav a,
.footer-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a[aria-current="page"],
.header-nav a:hover,
.footer-nav a:hover {
  color: var(--green);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 60px;
  padding-block: 72px 100px;
}

.page-main {
  min-width: 0;
}

.page-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.45;
  letter-spacing: 0.025em;
}

.page-summary {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.updated {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 13px;
}

.content-card,
.notice,
.contact-card,
.faq-item,
.info-table {
  border: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 18px 45px -36px rgba(33, 64, 47, 0.65);
}

.content-card {
  margin-top: 46px;
  padding: 12px 44px 44px;
  border-radius: 24px;
}

.content-section {
  padding-top: 30px;
  scroll-margin-top: 100px;
}

.content-section + .content-section {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.55;
}

.content-section h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.content-section p {
  margin: 0.7em 0;
}

.content-section ul,
.content-section ol {
  margin: 0.8em 0;
  padding-left: 1.4em;
}

.content-section li + li {
  margin-top: 0.5em;
}

.content-section strong {
  color: var(--green-dark);
}

.side-nav {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 22px;
  border-left: 2px solid rgba(46, 90, 67, 0.22);
}

.side-nav-title {
  margin-bottom: 10px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.side-nav a {
  display: block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--green);
}

.notice {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 16px;
  border-color: rgba(185, 142, 52, 0.3);
  background: #f7edcf;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
  color: #725517;
}

.contact-card {
  margin-top: 34px;
  padding: 30px;
  border-radius: 20px;
  background: var(--green-dark);
  color: #f8f4e8;
}

.contact-card h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 25px;
}

.contact-card p {
  margin: 0;
  color: #d8e3d9;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8f4e8;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: white;
  color: var(--green-dark);
}

.button.secondary {
  border-color: rgba(46, 90, 67, 0.28);
  background: transparent;
  color: var(--green);
}

.button.secondary:hover {
  background: var(--mint);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 700;
}

.faq-item summary::marker {
  color: var(--gold);
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

.faq-body p:first-child {
  margin-top: 0;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 16px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 58px;
  padding: 14px 18px 14px 66px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 12px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-dark);
  font-family: var(--serif);
  font-weight: 700;
}

.info-table {
  width: 100%;
  margin-top: 34px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 180px;
  color: var(--green-dark);
  background: rgba(220, 232, 222, 0.55);
  font-size: 14px;
}

.site-footer {
  padding-block: 46px;
  border-top: 1px solid var(--line);
  background: var(--cream-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 40px;
}

.copyright {
  color: var(--ink-faint);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .page-shell {
    display: block;
    padding-top: 52px;
  }

  .side-nav {
    display: none;
  }

  .header-nav a:not(:last-child) {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .copyright {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .page-shell {
    padding-block: 40px 70px;
  }

  .page-summary {
    font-size: 15px;
  }

  .content-card {
    margin-top: 34px;
    padding: 4px 22px 30px;
    border-radius: 18px;
  }

  .content-section h2 {
    font-size: 21px;
  }

  .contact-card {
    padding: 24px 22px;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding-bottom: 8px;
    border-bottom: 0;
  }

  .info-table td {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
