:root {
  color-scheme: light;
  --background: #f7f3ec;
  --surface: #fffcf7;
  --surface-raised: #ffffff;
  --text: #1d2824;
  --text-muted: #64716c;
  --primary: #1e6657;
  --primary-pressed: #174f44;
  --primary-soft: #ddece7;
  --accent: #d96f55;
  --accent-soft: #f9e3dc;
  --sand-soft: #f4e8cc;
  --warning: #89530a;
  --border: #ddd8ce;
  --focus: #0b6fb8;
  --shadow: 0 16px 44px rgb(35 55 47 / 10%);
  --content-width: 72rem;
  --reading-width: 48rem;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-pressed);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  border-radius: 0.3rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.65rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(221 216 206 / 75%);
  background: rgb(247 243 236 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-inner {
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.75rem;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.site-nav a,
.site-footer nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'],
.site-footer nav a:hover {
  color: var(--primary);
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 0.15rem;
  text-underline-offset: 0.55rem;
}

main {
  min-height: 60vh;
}

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

h1,
h2,
h3 {
  line-height: 1.35;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

p {
  margin: 0.35rem 0 1rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: var(--primary-pressed);
  background: var(--primary-pressed);
  color: #ffffff;
  transform: translateY(-1px);
}

.button--secondary {
  background: transparent;
  color: var(--primary);
}

.button--secondary:hover {
  color: #ffffff;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.store-links--center {
  margin-top: 1rem;
  justify-content: center;
}

.button--wide {
  width: min(100%, 24rem);
}

.hero {
  display: grid;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
  align-items: center;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
}

.hero-content .lead {
  max-width: 38rem;
  margin: 1.4rem 0 2rem;
}

.hero-card {
  display: grid;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  gap: 1.4rem 1rem;
  grid-template-columns: auto 1fr;
  transform: rotate(1.2deg);
}

.hero-card h2 {
  font-size: 1.05rem;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.feature-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  place-items: center;
}

.feature-icon--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon--sand {
  background: var(--sand-soft);
  color: var(--warning);
}

.content-section,
.safety-note,
.standard-page,
.legal-page,
.invite-page,
.empty-page {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.content-section {
  padding: 1rem 0 clamp(4rem, 8vw, 7rem);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
}

.info-card p {
  margin: 0;
  color: var(--text-muted);
}

.safety-note {
  margin-bottom: clamp(4rem, 9vw, 8rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-left: 0.4rem solid var(--accent);
  border-radius: 0 1.4rem 1.4rem 0;
  background: var(--accent-soft);
}

.safety-note p {
  max-width: 58rem;
  margin-bottom: 0;
}

.page-heading {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-heading h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
}

.page-heading .lead {
  max-width: 46rem;
  margin-top: 1rem;
}

.legal-page,
.standard-page {
  max-width: var(--reading-width);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.legal-page > section,
.standard-page > section {
  padding-top: 2.5rem;
}

.legal-page li,
.standard-page li {
  margin-block: 0.35rem;
}

.legal-page ul,
.standard-page ul {
  padding-left: 1.35rem;
}

.table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface-raised);
}

table {
  width: 100%;
  min-width: 43rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.6;
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--primary-soft);
  color: var(--primary-pressed);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.contact-card,
.step-card {
  display: flex;
  padding: clamp(1.25rem, 4vw, 2rem);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: var(--surface-raised);
  box-shadow: 0 10px 30px rgb(35 55 47 / 7%);
}

.contact-card p:last-child,
.step-card p:last-child {
  margin-bottom: 0;
}

.step-card {
  align-items: flex-start;
  justify-content: flex-start;
}

.step-number {
  flex: none;
  min-width: 4rem;
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-pressed);
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
}

.notice {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--primary-soft);
}

.notice--warning {
  border-color: #ddc193;
  background: var(--sand-soft);
}

.notice h2 {
  font-size: 1.1rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.check-list {
  list-style: none;
  padding-left: 0 !important;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  color: var(--primary);
  content: '✓';
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface-raised);
}

summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--text-muted);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
}

.caption {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.invite-page,
.empty-page {
  max-width: 38rem;
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
}

.invite-mark {
  margin: 0 auto 1.3rem;
  border-radius: 1.2rem;
  box-shadow: 0 12px 30px rgb(35 55 47 / 14%);
}

.invite-page h1,
.empty-page h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.invite-page .lead {
  margin: 1rem 0 1.4rem;
}

.invite-page .notice {
  text-align: left;
}

.status-message {
  min-height: 1.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.empty-page .button {
  margin-top: 1rem;
}

.site-footer {
  padding: 2.5rem 0 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .footer-inner {
  align-items: flex-start;
}

.footer-brand {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.copyright {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 48rem) {
  .header-inner {
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 0.15rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero {
    padding-top: 3.5rem;
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

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

  .contact-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .table-wrap--stacked {
    overflow-x: visible;
  }

  .legal-details {
    min-width: 0;
  }

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

  .legal-details tr:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .legal-details th,
  .legal-details td {
    border-bottom: 0;
  }

  .legal-details th {
    padding-bottom: 0.35rem;
  }

  .legal-details td {
    padding-top: 0.35rem;
  }

  .vendor-details {
    min-width: 0;
  }

  .vendor-details,
  .vendor-details tbody,
  .vendor-details tr,
  .vendor-details td {
    display: block;
    width: 100%;
  }

  .vendor-details thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .vendor-details tr:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .vendor-details td {
    padding-block: 0.45rem;
    border-bottom: 0;
  }

  .vendor-details td:first-child {
    padding-top: 0.9rem;
  }

  .vendor-details td:last-child {
    padding-bottom: 0.9rem;
  }

  .vendor-details td::before {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--primary-pressed);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 32rem) {
  body {
    font-size: 0.96rem;
  }

  .header-inner,
  .footer-inner,
  .content-section,
  .safety-note,
  .standard-page,
  .legal-page,
  .invite-page,
  .empty-page,
  .hero,
  .copyright {
    width: min(calc(100% - 1.5rem), var(--content-width));
  }

  .step-card {
    flex-direction: column;
    gap: 0.8rem;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #111a17;
    --surface: #19241f;
    --surface-raised: #202e28;
    --text: #f5f5ef;
    --text-muted: #a7b5af;
    --primary: #79c6b2;
    --primary-pressed: #98d6c6;
    --primary-soft: #23473d;
    --accent: #f49a82;
    --accent-soft: #4d2e28;
    --sand-soft: #46381f;
    --warning: #e9b861;
    --border: #34453e;
    --focus: #91caff;
    --shadow: 0 16px 44px rgb(0 0 0 / 24%);
  }

  .site-header {
    border-bottom-color: rgb(52 69 62 / 80%);
    background: rgb(17 26 23 / 94%);
  }

  .button,
  .button:hover {
    color: #10201b;
  }

  .button--secondary {
    color: var(--primary);
  }

  .button--secondary:hover {
    color: #10201b;
  }

  .feature-icon--accent {
    background: var(--accent-soft);
  }

  .notice--warning {
    border-color: #665432;
  }
}
