:root {
  color-scheme: light;
  --ink: #3e2d24;
  --muted: #76655c;
  --accent: #de7d31;
  --accent-dark: #bc5d20;
  --accent-pale: #fff0df;
  --paper: #fffaf5;
  --line: #ead9c9;
  --card: #ffffff;
  --notice: #fff4e8;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

.site-header,
main,
footer {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-size: 0.88rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

nav a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
}

.hero {
  padding: 82px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 4.7rem);
  letter-spacing: -0.05em;
  line-height: 1.18;
}

.lead {
  max-width: 42rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: 0 22px 50px rgb(105 58 25 / 0.08);
}

.step {
  min-height: 216px;
  padding: 28px;
  background: var(--card);
}

.step span,
.notice-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.step strong {
  display: block;
  font-size: 1.12rem;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.notice {
  display: flex;
  gap: 18px;
  margin-bottom: 82px;
  padding: 28px;
  border: 1px solid #f1d4b9;
  border-radius: 22px;
  background: var(--notice);
}

.notice-icon {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.notice h2 {
  margin: 0;
  font-size: 1.05rem;
}

.notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-page {
  max-width: 760px;
  padding: 48px 0 90px;
}

.legal-page h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.updated {
  margin: 18px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-page > p:not(.eyebrow):not(.updated) {
  margin-bottom: 42px;
}

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

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.legal-page p,
.legal-page ul {
  margin: 0;
}

.legal-page ul {
  padding-left: 1.3em;
}

.legal-page li + li {
  margin-top: 5px;
}

.legal-notification-signup {
  padding: 28px !important;
  border: 1px solid #f1d4b9 !important;
  border-radius: 22px;
  background: var(--notice);
}

.notification-button {
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 7px 16px rgb(146 73 21 / 0.16);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.notification-button:hover,
.notification-button:focus-visible {
  background: var(--accent-dark);
}

.notification-button:disabled {
  cursor: not-allowed;
  background: #b6a79d;
  box-shadow: none;
}

.notification-status {
  min-height: 1.8em;
  margin-top: 12px !important;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 30px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer strong {
  color: var(--ink);
}

footer p {
  margin: 2px 0 0;
}

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

footer small {
  grid-column: 1 / -1;
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 960px);
  }

  .site-header {
    min-height: 76px;
  }

  nav {
    gap: 12px;
  }

  .hero {
    padding: 56px 0;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
    padding: 22px;
  }

  .step span {
    margin-bottom: 12px;
  }

  .notice {
    align-items: flex-start;
    padding: 22px;
  }

  .legal-page {
    padding-top: 36px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
