:root {
  color-scheme: light;
  --bg: #fffafb;
  --surface: #ffffff;
  --surface-soft: #f8f0f5;
  --ink: #1a1a1a;
  --muted: #746b75;
  --line: #eadfe6;
  --brand: #c95f82;
  --brand-dark: #68476d;
  --accent: #f7c5d5;
  --shadow: 0 18px 50px rgba(82, 49, 70, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(247, 197, 213, 0.42), transparent 28rem),
    radial-gradient(circle at 94% 22%, rgba(193, 174, 209, 0.30), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans CJK TC", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(234, 223, 230, 0.85);
  background: rgba(255, 250, 251, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-link {
  display: none;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-select {
  min-height: 44px;
  padding: 0 34px 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

main { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }

.hero {
  padding: clamp(62px, 10vw, 118px) 0 54px;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(96px, 22vw, 132px);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 12px 20px rgba(201, 95, 130, 0.22));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

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

.hero-copy {
  max-width: 660px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: 17px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(201, 95, 130, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 0 80px;
}

.card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.card h2 { margin: 18px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }
.card a { display: inline-block; margin-top: 18px; color: var(--brand); font-weight: 800; text-decoration: none; }

.document {
  max-width: 800px;
  margin: 0 auto;
  padding: 68px 0 90px;
}

.document-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.document h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.updated { margin-top: 12px; color: var(--muted); font-size: 0.91rem; }

.document section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.document h2 { margin: 0 0 12px; font-size: 1.28rem; }
.document h3 { margin: 22px 0 8px; font-size: 1rem; }
.document p { margin: 0 0 13px; }
.document ul { margin: 10px 0 0; padding-left: 1.35rem; }
.document li + li { margin-top: 7px; }
.document .notice {
  padding: 20px;
  border: 1px solid #ead7e1;
  border-radius: 19px;
  background: var(--surface-soft);
}

.contact-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  background: var(--brand-dark);
  color: white;
}

.contact-box a { color: white; font-weight: 800; }

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

.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.site-footer {
  padding: 30px 18px calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 9px; }
.footer-links a { text-decoration: none; font-weight: 700; }

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  width: min(720px, calc(100% - 36px));
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(65, 43, 82, 0.18);
  backdrop-filter: blur(18px);
}
.analytics-consent-copy { min-width: 0; }
.analytics-consent-copy strong { font-size: 0.95rem; }
.analytics-consent-copy p { margin: 4px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.65; }
.analytics-consent-copy a { font-weight: 750; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.consent-button { min-height: 42px; padding: 8px 16px; border: 0; border-radius: 999px; font: inherit; font-size: 0.76rem; font-weight: 750; cursor: pointer; }
.consent-button.primary { background: #8f7bd8; color: #fff; }
.consent-button.secondary { background: #f1eef5; color: var(--ink); }
.analytics-settings { margin: 14px auto 0; padding: 4px 8px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.7rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

[data-lang] { display: none; }
html[data-language="ja"] [data-lang="ja"],
html[data-language="zh-tw"] [data-lang="zh-tw"],
html[data-language="en"] [data-lang="en"] { display: revert; }

@media (min-width: 700px) {
  .nav-link { display: inline-block; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .analytics-consent { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; }
  .analytics-consent-actions { width: 100%; }
  .consent-button { flex: 1; }
}

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

:focus-visible { outline: 3px solid rgba(104, 71, 109, 0.45); outline-offset: 3px; }
