:root {
  color-scheme: light;
  --cream: #fff8ea;
  --cream-deep: #f8e7c5;
  --cream-warm: #f4d39c;
  --paper: rgba(255, 255, 255, 0.82);
  --brown: #57361e;
  --brown-soft: #8d5d36;
  --muted: #8e7057;
  --orange: #b67531;
  --line: rgba(141, 93, 54, 0.16);
  --shadow: 0 22px 60px rgba(118, 75, 34, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--brown);
  background:
    radial-gradient(circle at 5% 8%, rgba(255, 255, 255, 0.92) 0 15rem, transparent 15.1rem),
    radial-gradient(circle at 93% 28%, rgba(248, 231, 197, 0.92) 0 12rem, transparent 12.1rem),
    linear-gradient(145deg, #fffaf0 0%, #fff1d6 52%, #f8dba8 100%);
  line-height: 1.8;
}

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

a:hover {
  color: var(--orange);
}

a[aria-disabled="true"] {
  cursor: not-allowed;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 248, 234, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(1080px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brown);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(118, 75, 34, 0.15);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 52px;
  padding: 44px 0 64px;
}

.hero-copy {
  max-width: 630px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  letter-spacing: 0.03em;
}

.legal-hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.2rem);
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  font-weight: 650;
}

.hero-icon {
  width: 100%;
  max-width: 280px;
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 32%;
  box-shadow: var(--shadow);
}

.actions,
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.link-card,
.content-card,
.notice {
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.link-card {
  display: block;
  min-height: 190px;
  padding: 30px;
  color: var(--brown);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  color: var(--brown);
  transform: translateY(-4px);
  box-shadow: 0 26px 68px rgba(118, 75, 34, 0.16);
}

.link-card .icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  background: var(--cream-deep);
  font-size: 1.35rem;
}

.link-card h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

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

.content-card {
  padding: clamp(26px, 6vw, 56px);
}

.content-card section + section {
  margin-top: 46px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.content-card h3 {
  margin: 26px 0 8px;
  font-size: 1.06rem;
}

.content-card p,
.content-card ul,
.content-card ol {
  margin-top: 10px;
  margin-bottom: 10px;
}

.content-card ul,
.content-card ol {
  padding-left: 1.35em;
}

.content-card li + li {
  margin-top: 8px;
}

.meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin: 24px 0;
  padding: 22px 24px;
  border-color: rgba(182, 117, 49, 0.2);
  background: rgba(248, 231, 197, 0.72);
  box-shadow: none;
}

.notice strong {
  color: var(--orange);
}

.contact-box {
  margin-top: 20px;
  padding: 24px;
  border-radius: 20px;
  background: var(--cream);
}

.contact-box p {
  margin: 4px 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p,
.faq details ul {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(141, 93, 54, 0.12);
  background: rgba(255, 248, 234, 0.58);
}

.footer-inner {
  display: flex;
  width: min(1080px, calc(100% - 40px));
  min-height: 110px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.footer-links a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .page {
    padding-top: 46px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  .hero:not(.legal-hero) h1 {
    font-size: clamp(1.95rem, 8.5vw, 2.25rem);
    letter-spacing: 0;
  }

  .hero-icon {
    width: min(210px, 62vw);
    grid-row: 1;
  }

  .actions,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .link-card {
    transition: none;
  }
}
