:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f0f4fb;
  --text: #161a22;
  --muted: #647083;
  --line: #dde3ec;
  --accent: #2d67d2;
  --accent-dark: #1e4fa9;
  --accent-soft: #e9f0ff;
  --ink: #232732;
  --success: #157347;
  --shadow: 0 18px 55px rgba(23, 34, 55, 0.10);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 227, 236, 0.78);
}
.nav {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(25, 39, 67, .10); }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: white; border-color: var(--ink); }
.btn-small { min-height: 38px; padding-inline: 14px; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 76px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -190px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 120, 220, .17), rgba(68, 120, 220, 0) 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(340px, .93fr);
  align-items: center;
  gap: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #cfddfb;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
h1 {
  margin: 20px 0 20px;
  font-size: clamp(42px, 5vw, 67px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero-lead { margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.hero-note strong { color: var(--text); }
.download-security-note { margin:14px 0 0; max-width:680px; color:var(--muted); font-size:13px; line-height:1.65; }
.download-security-note strong { color:var(--text); }

.hero-art {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
}
.icon-halo {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8effb, #cdddf8);
  box-shadow: inset 0 0 0 1px rgba(69, 102, 156, .10);
}
.hero-icon {
  position: relative;
  width: min(405px, 86%);
  filter: drop-shadow(0 28px 28px rgba(28, 40, 62, .19));
  border-radius: 28px;
}
.floating-card {
  position: absolute;
  left: 5px;
  bottom: 24px;
  width: 210px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.floating-card small { color: var(--muted); display:block; font-weight:650; }
.floating-card strong { font-size: 18px; letter-spacing: -.02em; }

.trust-strip { padding: 0 0 56px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(24,35,57,.05);
  padding: 8px;
}
.trust-item { padding: 15px 16px; border-radius: 12px; text-align: center; }
.trust-item strong { display:block; font-size:14px; }
.trust-item span { display:block; color:var(--muted); font-size:12px; margin-top:3px; }

.section { padding: 84px 0; }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; line-height:1.16; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.feature-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  min-height: 210px;
}
.feature-card .symbol {
  width: 42px; height: 42px; display:grid; place-items:center;
  border-radius: 12px; background:var(--accent-soft); color:var(--accent-dark);
  font-weight:900; margin-bottom:18px;
}
.feature-card h3 { margin:0 0 9px; font-size:18px; letter-spacing:-.02em; }
.feature-card p { margin:0; color:var(--muted); font-size:14px; }

.preview {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items:center;
}
.product-shot { margin:0; }
.product-shot img {
  width:100%;
  height:auto;
  display:block;
  border:1px solid #cfd7e3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 55px rgba(14,22,37,.16);
}
.product-shot figcaption { margin-top:10px; color:var(--muted); font-size:12px; text-align:center; }
.preview-copy h2 { margin:0 0 16px; font-size:clamp(30px,4vw,44px); letter-spacing:-.04em; line-height:1.18; }
.preview-copy p { color:var(--muted); }
.check-list { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:9px; }
.check-list li::before { content:"✓"; color:var(--success); font-weight:900; margin-right:10px; }

.format-list { display:flex; flex-wrap:wrap; gap:9px; }
.format-chip { padding:8px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font-size:13px; font-weight:700; }

.pricing-grid { display:grid; grid-template-columns: .95fr 1.05fr; gap:18px; max-width:900px; }
.price-card {
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:30px;
  position:relative;
}
.price-card.pro { border:2px solid var(--accent); box-shadow: 0 20px 55px rgba(45,103,210,.13); }
.price-badge { position:absolute; top:-13px; right:24px; background:var(--accent); color:white; border-radius:999px; padding:5px 11px; font-size:11px; font-weight:800; }
.price-card h3 { margin:0; font-size:22px; }
.price { font-size:42px; font-weight:850; letter-spacing:-.05em; margin:13px 0 4px; }
.price-sub { color:var(--muted); font-size:13px; }
.price-features { list-style:none; padding:0; margin:23px 0; display:grid; gap:9px; font-size:14px; }
.price-features li::before { content:"✓"; margin-right:9px; font-weight:900; color:var(--success); }

.flow { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.flow-step { position:relative; padding:24px; border-radius:18px; border:1px solid var(--line); background:var(--surface); }
.step-no { color:var(--accent); font-size:12px; font-weight:900; }
.flow-step h3 { margin:8px 0 7px; }
.flow-step p { margin:0; color:var(--muted); font-size:14px; }

.faq { display:grid; gap:10px; max-width:850px; }
details { background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:0 18px; }
summary { cursor:pointer; font-weight:700; padding:17px 0; }
details p { margin:0 0 18px; color:var(--muted); font-size:14px; }

.contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:70px; align-items:start; }
.contact-copy h2 { margin:16px 0 12px; font-size:clamp(30px,4vw,44px); letter-spacing:-.04em; }
.contact-copy p { color:var(--muted); }
.contact-note { font-size:13px; }
.contact-form { display:grid; gap:16px; padding:26px; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.contact-form label { display:grid; gap:6px; font-size:14px; font-weight:700; }
.contact-form label span { color:var(--muted); font-size:12px; font-weight:500; }
.contact-form input, .contact-form select, .contact-form textarea {
  width:100%; border:1px solid #cfd7e3; border-radius:10px; background:#fff; color:var(--text);
  font:inherit; font-weight:400; padding:10px 12px;
}
.contact-form textarea { resize:vertical; min-height:150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline:3px solid var(--accent-soft); border-color:var(--accent); }
.contact-form .btn { justify-self:start; border:0; }
.form-status { min-height:1.7em; margin:0; color:var(--muted); font-size:13px; }

.cta {
  padding: 54px;
  border-radius: 28px;
  background: #171c26;
  color:white;
  display:flex;
  align-items:center;
  gap:28px;
  box-shadow: var(--shadow);
}
.cta-copy { margin-right:auto; }
.cta h2 { margin:0 0 7px; font-size:32px; letter-spacing:-.035em; }
.cta p { margin:0; color:#b8c1cf; }
.cta .btn { flex-shrink:0; }

.site-footer { padding:38px 0 42px; }
.footer-grid { display:flex; align-items:flex-start; gap:24px; border-top:1px solid var(--line); padding-top:25px; }
.footer-brand { margin-right:auto; color:var(--muted); font-size:13px; }
.footer-brand strong { color:var(--text); display:block; margin-bottom:3px; }
.footer-links { display:flex; flex-wrap:wrap; gap:16px; font-size:13px; }
.footer-links a { color:var(--muted); text-decoration:none; }
.footer-links a:hover { color:var(--text); }

.legal-page { padding:72px 0 92px; }
.legal-wrap { max-width:850px; }
.legal-wrap h1 { font-size:42px; margin-top:0; }
.legal-wrap h2 { margin-top:40px; font-size:22px; }
.legal-wrap p, .legal-wrap li { color:#4f5b6c; }
.legal-wrap code { background:#edf1f6; padding:2px 5px; border-radius:5px; }
.legal-note { padding:16px 18px; border-radius:12px; background:#fff7df; border:1px solid #efdda6; font-size:13px; color:#5f532d; }

.success-card {
  max-width:680px;
  margin:80px auto;
  padding:42px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow);
  text-align:center;
}
.success-mark { width:60px; height:60px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; background:#e5f5ed; color:var(--success); font-size:29px; font-weight:900; }
.success-card h1 { font-size:34px; margin:0 0 10px; }
.success-card p { color:var(--muted); }
.checkout-ref { margin:16px auto 24px; max-width:520px; padding:10px 12px; border-radius:10px; background:var(--surface-2); color:var(--muted); font-size:12px; overflow-wrap:anywhere; }

.config-warning { display:none; margin-top:16px; padding:10px 12px; border-radius:10px; border:1px solid #f1d6a4; background:#fff8e7; color:#795b20; font-size:12px; }
.config-warning.show { display:block; }

@media (max-width: 900px) {
  .nav-links a:not(.nav-buy) { display:none; }
  .hero { padding-top:60px; }
  .hero-grid, .preview, .pricing-grid, .contact-layout { grid-template-columns:1fr; }
  .hero-grid { gap:35px; }
  .hero-art { min-height:390px; }
  .icon-halo { width:340px; height:340px; }
  .hero-icon { width:320px; }
  .floating-card { left:5%; }
  .feature-grid { grid-template-columns:1fr 1fr; }
  .trust-grid { grid-template-columns:1fr 1fr; }
  .flow { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  .container { width:min(calc(100% - 26px), var(--max)); }
  .nav { height:60px; }
  .brand img { width:32px; height:32px; }
  .nav-buy { display:none; }
  .hero { padding:48px 0 44px; }
  h1 { font-size:42px; }
  .hero-actions .btn { flex:1 1 100%; }
  .hero-art { min-height:330px; }
  .icon-halo { width:280px; height:280px; }
  .hero-icon { width:270px; }
  .floating-card { width:170px; padding:11px 12px; bottom:8px; }
  .feature-grid, .trust-grid { grid-template-columns:1fr; }
  .section { padding:62px 0; }
  .cta { padding:30px 24px; flex-direction:column; align-items:stretch; }
  .cta .btn { width:100%; }
  .footer-grid { flex-direction:column; }
  .legal-page { padding-top:46px; }
  .legal-wrap h1 { font-size:34px; }
  .success-card { margin:42px auto; padding:29px 20px; }
}
