:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dbe3ee;
  --surface: #f8fafc;
  --white: #ffffff;
  --success: #0f766e;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.75; background: var(--white); }
a { color: var(--blue-dark); text-underline-offset: 3px; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(219,227,238,.9); backdrop-filter: blur(14px); }
.nav { width: min(1120px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .92rem; font-weight: 700; }
.nav-links a { color: #374151; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-cta { padding: 9px 15px; color: #fff !important; background: var(--blue); border-radius: 10px; }
.menu-button { display: none; border: 0; background: transparent; padding: 9px; border-radius: 8px; color: var(--ink); font-size: 1rem; font-weight: 800; }

.container { width: min(1120px, calc(100% - 40px)); margin: auto; }
.hero { overflow: hidden; padding: 84px 0 78px; background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--blue-dark); font-size: .88rem; font-weight: 800; letter-spacing: .06em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.035em; }
h1 { max-width: 720px; font-size: clamp(2.4rem, 5vw, 4.3rem); }
.hero-lead { max-width: 650px; margin: 24px 0 0; color: #465365; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--blue); border-radius: 11px; color: #fff; background: var(--blue); font-weight: 800; text-decoration: none; }
.button:hover, .button:focus-visible { background: var(--blue-dark); }
.button.secondary { color: var(--blue-dark); background: #fff; }
.button.secondary:hover { background: var(--blue-soft); }
.button.disabled { border-color: #cbd5e1; color: #64748b; background: #e8edf3; cursor: default; }
.hero-note { margin: 15px 0 0; color: var(--muted); font-size: .9rem; }

.product-card { position: relative; padding: 20px; background: #fff; border: 1px solid #cfd9e7; border-radius: 22px; box-shadow: var(--shadow); }
.product-card::before { content: ""; position: absolute; inset: -70px -80px auto auto; width: 200px; height: 200px; background: rgba(37,99,235,.12); border-radius: 50%; filter: blur(8px); z-index: -1; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.mock-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.mock-brand img { width: 30px; border-radius: 8px; }
.mock-status { padding: 3px 9px; color: var(--success); background: #ecfdf5; border-radius: 99px; font-size: .78rem; font-weight: 800; }
.message-list { display: grid; gap: 10px; margin: 17px 0; }
.message-row { display: grid; grid-template-columns: 22px 30px 1fr; gap: 10px; align-items: start; padding: 12px; background: var(--surface); border: 1px solid #e6ebf2; border-radius: 12px; }
.check { display: grid; width: 20px; height: 20px; place-items: center; margin-top: 2px; color: #fff; background: var(--blue); border-radius: 5px; font-size: .72rem; font-weight: 900; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; color: var(--blue-dark); background: var(--blue-soft); border-radius: 8px; font-size: .74rem; font-weight: 900; }
.message-row p { margin: 0; color: #526072; font-size: .86rem; line-height: 1.55; }
.export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-chip { padding: 12px; border: 1px solid var(--line); border-radius: 11px; font-size: .88rem; font-weight: 800; text-align: center; }
.export-chip.primary { color: #fff; background: var(--blue); border-color: var(--blue); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 24px 30px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item strong { display: block; font-size: 1.02rem; }
.trust-item span { color: var(--muted); font-size: .88rem; }

.section { padding: 88px 0; }
.section.soft { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.section-head p { margin: 14px 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-number { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 18px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 10px; font-weight: 900; }
.card h3 { font-size: 1.12rem; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-item { padding: 22px; border-top: 3px solid var(--blue); background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 8px 30px rgba(15,23,42,.06); }
.who-item strong { display: block; margin-bottom: 6px; }
.who-item span { color: var(--muted); font-size: .92rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.popular { position: absolute; top: -14px; right: 20px; padding: 5px 11px; color: #fff; background: var(--blue); border-radius: 99px; font-size: .78rem; font-weight: 800; }
.price-name { font-size: 1.25rem; font-weight: 900; }
.price { margin: 18px 0 4px; font-size: 2.25rem; font-weight: 900; letter-spacing: -.04em; }
.price small { font-size: .9rem; font-weight: 700; letter-spacing: 0; }
.price-desc { min-height: 52px; margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.feature-list { display: grid; gap: 9px; padding: 18px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); list-style: none; }
.feature-list li { position: relative; padding-left: 24px; font-size: .93rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.pricing-note { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 26px 24px 24px 64px; border-left: 1px solid var(--line); }
.step::before { content: counter(step); position: absolute; top: 24px; left: 18px; display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 900; }
.step h3 { font-size: 1.05rem; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }

.privacy-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; padding: 40px; color: #e7eefb; background: #111c33; border-radius: 24px; }
.privacy-panel h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.privacy-panel p { color: #bfcbe0; }
.privacy-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.privacy-list li { padding: 16px 18px; color: #dce6f7; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.privacy-list strong { color: #fff; }

.notice { padding: 22px 24px; margin-top: 28px; color: #334155; background: var(--blue-soft); border: 1px solid #bfdbfe; border-radius: 14px; }
.notice strong { color: var(--blue-dark); }
.faq { display: grid; gap: 12px; }
details { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 12px 0 0; color: var(--muted); }

.cta { padding: 58px 0; color: #fff; background: var(--blue); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.cta p { margin: 8px 0 0; color: #dce8ff; }
.cta .button { color: var(--blue-dark); background: #fff; border-color: #fff; white-space: nowrap; }

.site-footer { padding: 42px 0 26px; background: #0b1220; color: #aeb9ca; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-bottom: 28px; }
.footer-brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: #ced7e6; font-size: .88rem; text-decoration: none; }
.footer-bottom { padding-top: 22px; border-top: 1px solid #263147; font-size: .78rem; }

.legal-hero { padding: 62px 0 42px; background: linear-gradient(180deg, #f7faff, #fff); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-hero p { margin: 12px 0 0; color: var(--muted); }
.legal-main { padding: 56px 0 88px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 50px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 6px; }
.legal-nav a { padding: 8px 10px; color: #475569; border-radius: 8px; font-size: .88rem; text-decoration: none; }
.legal-nav a.active { color: var(--blue-dark); background: var(--blue-soft); font-weight: 800; }
.legal-content h2 { margin: 42px 0 12px; font-size: 1.35rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 28px 0 8px; font-size: 1.08rem; }
.legal-content p { margin: 10px 0; color: #374151; }
.legal-content ol, .legal-content ul { padding-left: 1.5em; color: #374151; }
.legal-content li + li { margin-top: 7px; }
.legal-note { margin-top: 40px; padding: 18px 20px; color: #566274; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; }
.commerce-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.commerce-table th, .commerce-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.commerce-table th { width: 30%; color: #334155; background: var(--surface); font-size: .9rem; }
.commerce-table td { color: #374151; }

@media (max-width: 860px) {
  .hero-grid, .privacy-panel, .legal-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .hero-grid { gap: 44px; }
  .cards, .who-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .price-desc { min-height: 0; }
  .legal-nav { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { width: min(100% - 28px, 1120px); min-height: 64px; }
  .menu-button { display: inline-flex; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; display: none; align-items: stretch; padding: 16px 20px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15,23,42,.08); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 8px 4px; }
  .nav-cta { text-align: center; }
  .container { width: min(100% - 30px, 1120px); }
  .hero { padding: 48px 0 56px; }
  h1 { font-size: clamp(2.2rem, 11vw, 3.3rem); }
  .section { padding: 64px 0; }
  .privacy-panel { padding: 28px 22px; gap: 26px; }
  .cta-inner, .footer-top { align-items: stretch; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .cta .button { width: 100%; }
  .legal-hero { padding: 44px 0 30px; }
  .legal-main { padding: 40px 0 64px; }
  .legal-nav { grid-template-columns: 1fr 1fr; gap: 4px; }
  .commerce-table, .commerce-table tbody, .commerce-table tr, .commerce-table th, .commerce-table td { display: block; width: 100%; }
  .commerce-table th { padding-bottom: 6px; border-bottom: 0; }
  .commerce-table td { padding-top: 6px; }
}

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