:root {
  color-scheme: light;
  --ink: #282334;
  --muted: #696273;
  --paper: #fffdfb;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(52, 41, 66, 0.12);
  --pink: #ee799e;
  --purple: #a98adf;
  --blue: #6ba9ef;
  --shadow: 0 18px 55px rgba(82, 62, 105, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(255, 178, 198, 0.3), transparent 34rem),
    radial-gradient(circle at 100% 12rem, rgba(132, 189, 255, 0.24), transparent 36rem),
    var(--paper);
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

a { color: inherit; }

img { max-width: 100%; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: .65rem 1rem;
  border-radius: .7rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(52, 41, 66, 0.08);
  background: rgba(255, 253, 251, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.03em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 7px 18px rgba(128, 91, 157, 0.2);
}

.header-actions,
.language-switch,
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: .45rem .6rem;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}

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

.language-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.language-switch button {
  min-width: 42px;
  padding: .3rem .55rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}

html[data-language="ja"] [data-set-language="ja"],
html[data-language="en"] [data-set-language="en"] {
  color: white;
  background: var(--ink);
}

html[data-language="ja"] .lang-en,
html[data-language="en"] .lang-ja { display: none !important; }

.page-shell { padding: 78px 0 96px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center;
  gap: clamp(42px, 8vw, 104px);
  min-height: 580px;
  padding: 34px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8a5974;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}

.document-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(71, 53, 88, .08);
}

.button.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(125deg, var(--pink), var(--purple) 56%, var(--blue));
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 116%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 143, 220, .24), transparent 66%);
}

.hero-logo {
  position: relative;
  width: min(360px, 75vw);
  border-radius: 30%;
  box-shadow: 0 35px 90px rgba(98, 74, 132, .26);
  transform: rotate(2deg);
}

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

.section-block { padding: 64px 0; }

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -.045em;
}

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

.card {
  padding: 26px;
  border: 1px solid rgba(52, 41, 66, 0.1);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
  color: #784f79;
  background: linear-gradient(135deg, #ffe1e9, #e7dcff);
  font-size: 1.1rem;
  font-weight: 850;
}

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--muted); }

.privacy-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
  padding: 30px;
  border-radius: 26px;
  background: #292433;
  color: white;
}

.privacy-note h2 { margin-bottom: 8px; }
.privacy-note p { margin-bottom: 0; color: rgba(255,255,255,.72); }

.document-hero {
  max-width: 850px;
  padding: 48px 0 34px;
}

.updated {
  margin-top: 22px;
  color: var(--muted);
  font-size: .9rem;
}

.document {
  max-width: 850px;
  padding: 36px clamp(22px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}

.document section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin-bottom: 12px;
  font-size: 1.22rem;
  line-height: 1.45;
}

.document p,
.document li { color: #4f4957; }

.document p:last-child,
.document ul:last-child { margin-bottom: 0; }

.document a { text-decoration-thickness: .08em; text-underline-offset: .18em; }

.notice {
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(137, 94, 143, .18);
  border-radius: 18px;
  background: #fff4f8;
}

.contact-card {
  max-width: 720px;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.contact-card h2 { margin-bottom: 10px; }
.contact-card .button { margin-top: 14px; }

.steps {
  margin: 26px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 42px;
  padding: 4px 0 18px 54px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 110px;
  color: var(--muted);
  font-size: .88rem;
}

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

.footer-links a { text-underline-offset: .2em; }

@media (max-width: 850px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(240px, 58vw); }
  .feature-grid, .link-grid { grid-template-columns: 1fr; }
  .privacy-note { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner, .footer-inner, .page-shell { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 64px; }
  .brand img { width: 36px; height: 36px; }
  .page-shell { padding-top: 48px; }
  .hero { min-height: auto; padding-top: 16px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 26px 0; }
}

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