:root {
  --ink: #0b1020;
  --ink-mid: #151c33;
  --ink-light: #1e2740;
  --accent: #0a6cf1;
  --accent-glow: #38a5ff;
  --sky: #38a5ff;
  --surface: #f7f8fb;
  --surface-alt: #eef0f6;
  --border: #dfe3ec;
  --text: #171d2e;
  --text-sub: #59617a;
  --text-muted: #8b93a8;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
header.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 24px rgba(11,16,32,0.06); }

nav {
  max-width: 1080px; margin: 0 auto; padding: 0 28px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { height: 22px; display: block; }
.logo span {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo.on-dark span { color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--text-sub);
  font-size: 13px; font-weight: 500; padding: 6px 14px;
  border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface); }

/* ── Legal / sub-page hero ── */
.legal-hero {
  padding: 120px 28px 44px;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,108,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,108,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}
.legal-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.legal-hero h1 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--white);
  letter-spacing: -0.5px; margin-bottom: 8px;
}
.legal-hero .meta { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ── Legal body ── */
.legal-body { max-width: 720px; margin: 0 auto; padding: 48px 28px 96px; }
.legal-body h2 {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 15px; font-weight: 600; color: var(--ink-light); margin: 28px 0 10px; }
.legal-body p { font-size: 14px; color: var(--text-sub); margin-bottom: 12px; line-height: 1.9; }
.legal-body a { color: var(--accent); }
.legal-body ol { margin: 12px 0 16px; padding-left: 24px; }
.legal-body ol li { font-size: 14px; color: var(--text-sub); margin-bottom: 8px; line-height: 1.8; padding-left: 4px; }
.legal-body ul { margin: 8px 0 16px; padding-left: 20px; list-style: disc; }
.legal-body ul li { font-size: 14px; color: var(--text-sub); margin-bottom: 6px; line-height: 1.8; }
.legal-body .info-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin: 16px 0; font-size: 13.5px; color: var(--text-sub); line-height: 1.8;
}
.legal-body .callout {
  background: rgba(10,108,241,0.05); border: 1px solid rgba(10,108,241,0.2);
  border-radius: 10px; padding: 16px 20px; margin: 16px 0;
  font-size: 13.5px; color: var(--ink-light); line-height: 1.85;
}
.legal-body .callout strong { color: var(--accent); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.legal-body table th {
  background: var(--surface); font-weight: 600; color: var(--ink-light);
  text-align: left; padding: 10px 14px; border: 1px solid var(--border); white-space: nowrap;
}
.legal-body table td {
  padding: 10px 14px; border: 1px solid var(--border);
  color: var(--text-sub); line-height: 1.7; vertical-align: top;
}

.legal-toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; }
.legal-toc h4 {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc ol li { font-size: 13.5px; margin-bottom: 4px; }
.legal-toc ol li a { color: var(--text-sub); text-decoration: none; transition: color 0.2s; }
.legal-toc ol li a:hover { color: var(--accent); }

.closing { margin-top: 48px; font-size: 13px; color: var(--text-muted); text-align: right; }

/* ── Footer ── */
footer { background: var(--ink); color: rgba(255,255,255,0.35); padding: 36px 28px; }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; font-size: 12px;
}
.footer-inner a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--white); }
.footer-links-row { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 640px) {
  .nav-links a { font-size: 11.5px; padding: 5px 8px; }
  .logo span { font-size: 14px; }
  .legal-body table { font-size: 12px; }
  .legal-body table th, .legal-body table td { padding: 8px 10px; }
  .legal-body table th { white-space: normal; }
}

/* ── Support page ── */
.section-nav {
  position: sticky; top: 60px; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; gap: 4px; overflow-x: auto;
  padding: 10px 28px;
  justify-content: center;
}
.section-nav a {
  white-space: nowrap; text-decoration: none;
  color: var(--text-sub); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 8px; transition: all 0.2s;
}
.section-nav a:hover { color: var(--accent); background: var(--surface); }

.support-body { max-width: 760px; margin: 0 auto; padding: 48px 28px 96px; }
.support-body h2 {
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin: 8px 0 20px; letter-spacing: -0.01em;
}
.support-body h3 { font-size: 15px; font-weight: 600; color: var(--ink-light); margin: 28px 0 10px; }
.support-body p { font-size: 14px; color: var(--text-sub); margin-bottom: 12px; line-height: 1.9; }
.support-body a { color: var(--accent); }
.support-body ul { margin: 8px 0 16px; padding-left: 20px; list-style: disc; }
.support-body ul li { font-size: 14px; color: var(--text-sub); margin-bottom: 6px; line-height: 1.8; }

.section-label {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px;
  margin-top: 64px; margin-bottom: 8px;
}
.section-label:first-child { margin-top: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); transition: border-color 0.2s; }
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 16px 20px; font-family: inherit;
}
.faq-q .q-text { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.faq-q .q-chevron { color: var(--text-muted); font-size: 13px; transition: transform 0.25s; }
.faq-item.open .q-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; font-size: 14px; color: var(--text-sub); line-height: 1.9; padding: 0 20px; }
.faq-item.open .faq-a-inner { padding-bottom: 18px; }

.steps-list { display: flex; flex-direction: column; gap: 12px; }
.step-card {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px; padding: 20px;
  background: var(--white);
}
.step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-content { flex: 1; min-width: 0; }
.step-title { font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.step-body { font-size: 14px; color: var(--text-sub); line-height: 1.85; }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 10px; padding: 14px 18px; margin: 16px 0;
  font-size: 13.5px; line-height: 1.8;
}
.alert-info { background: rgba(10,108,241,0.05); border: 1px solid rgba(10,108,241,0.2); color: var(--ink-light); }
.alert-warn { background: #fff6ed; border: 1px solid #f5cfa8; color: #8a4b12; }

.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.info-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: var(--white); }
.info-card-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.info-card-body { font-size: 13.5px; color: var(--text-sub); line-height: 1.8; }

.deletion-card, .contact-card {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 24px; margin: 16px 0; text-align: center;
}
.contact-org { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.deletion-mail a, .contact-mail a {
  font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--accent); text-decoration: none; word-break: break-all;
}
.deletion-mail a:hover, .contact-mail a:hover { text-decoration: underline; }

/* ── Landing ── */
.hero {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 140px 28px 100px;
  background: var(--ink); overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,165,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,165,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute;
  top: 8%; left: 50%; transform: translateX(-50%);
  width: 820px; height: 520px; max-width: 120vw;
  background: radial-gradient(ellipse, rgba(10,108,241,0.16) 0%, rgba(56,165,255,0.05) 40%, transparent 70%);
  pointer-events: none; filter: blur(40px);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,108,241,0.12); border: 1px solid rgba(56,165,255,0.25);
  color: var(--accent-glow);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 18px 7px 14px; border-radius: 100px; margin-bottom: 32px;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-pill .pulse-dot {
  width: 6px; height: 6px; background: var(--accent-glow); border-radius: 50%;
  animation: glow-pulse 2.4s ease-in-out infinite;
}
.hero-mark {
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-mark img { width: 60px; height: 60px; }
.hero h1 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: clamp(30px, 6vw, 46px); font-weight: 800; color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 20px;
  animation: fadeUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-tagline {
  font-size: clamp(15px, 2.4vw, 19px); font-weight: 400;
  color: rgba(255,255,255,0.66); line-height: 2; margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-tagline strong { color: var(--white); font-weight: 600; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #0b5fd0; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.16); }
.btn-ghost:hover { background: rgba(255,255,255,0.11); color: var(--white); transform: translateY(-2px); }

.features {
  max-width: 1080px; margin: 0 auto; padding: 100px 28px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
  position: relative; background: var(--white);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 32px 32px; overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  opacity: 0; transition: opacity 0.35s;
}
.feature-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,16,32,0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-num {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.5; }
.feature-card p { font-size: 14px; color: var(--text-sub); line-height: 1.85; }

.privacy-band { background: var(--surface); padding: 80px 28px; }
.privacy-band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.privacy-band h2 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: clamp(21px, 3vw, 28px); font-weight: 700; color: var(--ink);
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.privacy-band-inner > p { font-size: 14.5px; color: var(--text-sub); line-height: 1.95; margin-bottom: 28px; }
.privacy-points { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.privacy-point {
  background: var(--white); border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 20px; font-size: 13px; font-weight: 500; color: var(--ink-light);
}
.privacy-band a.btn-primary { color: var(--white); }

.cta-section { text-align: center; padding: 80px 28px 100px; }
.cta-section h2 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: clamp(21px, 3vw, 28px); font-weight: 700; color: var(--ink);
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.cta-section p { color: var(--text-sub); font-size: 14.5px; margin-bottom: 28px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56,165,255,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(56,165,255,0); }
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; gap: 16px; }
  .info-cards { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 130px 24px 80px; }
  .section-nav { justify-content: flex-start; padding: 10px 16px; }
}
