:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #6f6f6f;
  --paper: #f7f5f1;
  --line: rgba(20, 20, 20, .12);
  --white: #ffffff;
  --accent: #0e2946;
  --serif: "Times New Roman", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(247, 245, 241, .92), rgba(247, 245, 241, .98)),
    url("./assets/hero-main.webp") center / cover fixed;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

body .legal-header,
body .legal-hero,
body .legal-card,
body .legal-footer {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}

body.legal-ready .legal-header,
body.legal-ready .legal-hero,
body.legal-ready .legal-card,
body.legal-ready .legal-footer {
  opacity: 1;
  transform: translateY(0);
}

.legal-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 44px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  text-decoration: none;
}

.legal-brand img {
  width: 38px;
  height: 38px;
}

.legal-brand strong {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .01em;
}

.legal-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.language-switch select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 32px 0 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.legal-hero {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 6vw, 58px) 0 clamp(28px, 5vw, 48px);
}

.legal-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 11em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-lead {
  max-width: 680px;
  margin: 0;
  color: #333333;
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.9;
}

.legal-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-card {
  display: grid;
  gap: 34px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .88);
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: #333333;
  font-size: 15px;
  line-height: 1.9;
}

.legal-section p {
  margin: 0;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25em;
}

.legal-note {
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(14, 41, 70, .06);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
  color: var(--muted);
  font-size: 12px;
}

.legal-footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .legal-shell {
    width: min(100% - 28px, 1040px);
    padding-top: 18px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  .legal-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .legal-nav {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch {
    justify-content: space-between;
  }

  .legal-card {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
