:root {
  color-scheme: light;
  --ink: #241a16;
  --muted: #6f625c;
  --paper: #fffdf9;
  --surface: #f7f1e8;
  --surface-strong: #efe4d4;
  --line: #dfd4c7;
  --accent: #7a432c;
  --accent-dark: #552c1c;
  --focus: #1769aa;
  --max-site: 1120px;
  --max-reading: 760px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(59, 39, 28, 0.09);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-shell {
  width: min(calc(100% - 40px), var(--max-site));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
}

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

.brand {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  padding: clamp(72px, 10vw, 132px) 0 clamp(76px, 10vw, 120px);
  background:
    radial-gradient(circle at 15% 12%, rgba(194, 139, 98, 0.22), transparent 34%),
    linear-gradient(180deg, var(--paper), #faf4eb);
}

.hero-grid {
  display: grid;
  align-items: end;
  gap: 52px;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
}

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

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero-copy {
  margin: 26px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.hero-note {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section { padding: clamp(64px, 8vw, 100px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-card .number {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 20px 0 10px;
  font-size: 1.25rem;
}

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

.link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.link-panel h2,
.link-panel p { margin: 0; }

.link-panel p {
  margin-top: 6px;
  color: #e6ddd7;
}

.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.button-link:hover {
  background: #fff;
  color: var(--ink);
}

.legal-hero {
  padding: clamp(54px, 8vw, 90px) 0 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--paper));
}

.legal-hero-inner,
.reading-column {
  width: min(calc(100% - 40px), var(--max-reading));
  margin-inline: auto;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.15rem, 6vw, 3.8rem);
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.legal-hero .summary {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.meta-row {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-links {
  display: flex;
  margin-top: 22px;
  gap: 10px;
}

.language-links a {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-content { padding: 28px 0 clamp(72px, 9vw, 112px); }
.legal-content section { padding-top: 42px; }

.legal-content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 1.08rem;
}

.legal-content p { margin: 0 0 16px; }

.legal-content ul,
.legal-content ol {
  margin: 12px 0 20px;
  padding-left: 1.35rem;
}

.legal-content li { margin-bottom: 8px; }

.notice,
.service-card,
.contact-card {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.notice > :last-child,
.service-card > :last-child,
.contact-card > :last-child { margin-bottom: 0; }

.service-card h3 { margin-top: 0; }
.service-card dl { margin: 0; }
.service-card dt { margin-top: 14px; font-weight: 800; }
.service-card dd { margin: 4px 0 0; }

.contact-email {
  display: inline-block;
  margin: 6px 0;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { background: var(--surface); }

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.8fr);
}

.footer-brand {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-nav a { color: var(--muted); }
.copyright { margin: 22px 0 0; color: var(--muted); }

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

  .header-inner {
    display: grid;
    padding: 17px 0 18px;
    gap: 12px;
  }

  .hero-grid { gap: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
}

@media (max-width: 600px) {
  .site-shell,
  .legal-hero-inner,
  .reading-column {
    width: min(calc(100% - 28px), var(--max-site));
  }

  .site-nav ul,
  .footer-nav ul { gap: 7px 16px; }
  .hero h1 { font-size: clamp(2.4rem, 13vw, 4rem); }

  .hero-note,
  .feature-card,
  .notice,
  .service-card,
  .contact-card { padding: 20px; }

  .link-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

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