:root {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e3e8f2;
  --primary: #2563eb;
  --primary-2: #4f46e5;
  --primary-soft: #eef4ff;
  --dark: #0d1830;
  --dark-2: #16233d;
  --success: #12b76a;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 40px)); }
.section-pad { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.header-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: #fff; font-size: 13px; }
.brand-copy { font-size: 14px; }
.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { color: #475467; font-size: 14px; font-weight: 700; }
.header-nav a:hover { color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 12px 20px; font-weight: 800; border: 1px solid transparent; transition: .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg,var(--primary),var(--primary-2)); box-shadow: 0 10px 24px rgba(37,99,235,.20); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(37,99,235,.28); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding-inline: 26px; }
.btn-ghost { background: #fff; border-color: #d0d5dd; }
.btn-outline-white { border-color: rgba(255,255,255,.28); color: #fff; width: 100%; margin-top: auto; }
.full { width: 100%; }

.hero { overflow: hidden; padding-top: 84px; background: linear-gradient(180deg,#ffffff 0%,#f4f7ff 100%); }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(30px); opacity: .55; pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; right: -120px; top: -80px; background: rgba(79,70,229,.14); }
.hero-glow-2 { width: 300px; height: 300px; left: -120px; bottom: 10px; background: rgba(37,99,235,.12); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 900; letter-spacing: .03em; }
.hero h1 { margin: 18px 0 20px; font-size: clamp(38px,5vw,66px); line-height: 1.18; letter-spacing: -.04em; }
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 19px; color: #475467; max-width: 700px; }
.hero-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 28px 0; }
.hero-point { padding: 15px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(15,23,42,.04); }
.hero-point strong { display: block; font-size: 18px; }
.hero-point span { color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.microcopy { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.hero-card { background: #111d36; color: #fff; border-radius: 28px; padding: 26px; box-shadow: 0 30px 80px rgba(15,23,42,.24); border: 1px solid rgba(255,255,255,.08); }
.hero-card-top { display: flex; align-items: center; gap: 8px; color: #aab4c8; font-size: 13px; margin-bottom: 22px; }
.status-dot { width: 8px; height: 8px; background: #34d399; border-radius: 50%; box-shadow: 0 0 0 6px rgba(52,211,153,.1); }
.chat { border-radius: 16px; padding: 16px 18px; margin: 12px 0; font-size: 14px; }
.chat-user { margin-left: 42px; background: rgba(37,99,235,.96); }
.chat-ai { margin-right: 42px; background: #fff; color: #1f2937; }
.speed-row { display: flex; align-items: center; gap: 18px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 22px; padding-top: 20px; }
.speed-num { font-size: 52px; line-height: 1; font-weight: 900; color: #8bb7ff; }
.speed-row p { margin: 0; color: #cbd5e1; font-size: 14px; }
.mini-features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-features span { font-size: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #dbe3ef; }

.trust-strip { margin-top: 72px; padding: 20px 0 0; border-top: 1px solid #e7eaf0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; color: #98a2b3; font-weight: 800; font-size: 13px; }

.section-heading { margin-bottom: 48px; }
.section-heading.center { text-align: center; }
.section-heading h2 { font-size: clamp(32px,4.2vw,50px); line-height: 1.24; letter-spacing: -.035em; margin: 16px 0 14px; }
.section-heading p { color: var(--muted); max-width: 720px; margin: 0 auto; }
.section-heading.light h2, .section-heading.light p { color: #fff; }
.section-heading.light p { color: #aeb8cc; }

.problem-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.problem-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.icon-box { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 900; }
.problem-card h3 { margin: 14px 0 8px; font-size: 20px; }
.problem-card p { color: var(--muted); margin: 0; }
.bridge-box { margin-top: 28px; background: linear-gradient(135deg,#15233f,#1e3159); color: #fff; border-radius: 22px; padding: 28px; text-align: center; }
.bridge-box p { margin: 0; color: #aeb8cc; }
.bridge-box h3 { margin: 8px 0 0; font-size: 24px; }

.reason-stack { display: grid; gap: 18px; }
.reason-card { display: grid; grid-template-columns: 90px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.reason-number { font-size: 40px; font-weight: 900; color: #dbeafe; }
.tag { font-size: 12px; font-weight: 900; color: var(--primary); background: var(--primary-soft); padding: 6px 10px; border-radius: 999px; }
.reason-body h3 { font-size: 27px; line-height: 1.35; margin: 12px 0; }
.reason-body p { color: var(--muted); }
.comparison-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.comparison-box > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.comparison-box span { display: block; color: var(--muted); font-size: 12px; }
.comparison-box strong { display: block; margin-top: 5px; }
.comparison-box .accent { background: var(--primary-soft); border-color: #cfe0ff; }
.note { font-size: 12px; }
.steps-inline { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.steps-inline > div:not(.arrow) { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }
.steps-inline b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; }
.arrow { color: #98a2b3; }
.service-chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.service-chip-row span { padding: 8px 12px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }

.section-dark { background: radial-gradient(circle at top, #1f3b6f 0, var(--dark) 48%, #091226 100%); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--dark-2); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 28px; }
.price-card.featured { background: #fff; color: var(--text); transform: translateY(-10px); box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--primary),var(--primary-2)); color: #fff; font-weight: 900; font-size: 12px; padding: 7px 14px; border-radius: 999px; }
.plan-kana { color: #8bb7ff; font-size: 13px; font-weight: 900; }
.price-card h3 { margin: 7px 0 4px; font-size: 24px; }
.plan-for { color: #9aa7bd; min-height: 52px; }
.featured .plan-for { color: var(--muted); }
.price { font-size: 42px; font-weight: 900; letter-spacing: -.03em; margin-top: 10px; }
.price > span { font-size: 20px; margin-right: 3px; }
.price small { font-size: 12px; margin-left: 7px; font-weight: 700; color: #9aa7bd; }
.monthly { display: inline-flex; align-self: flex-start; padding: 6px 10px; border-radius: 999px; margin: 8px 0 16px; background: rgba(37,99,235,.14); color: #8bb7ff; font-size: 12px; font-weight: 900; }
.featured .monthly { background: var(--primary-soft); color: var(--primary); }
.price-card ul { margin: 4px 0 24px; padding: 0; list-style: none; }
.price-card li { position: relative; padding: 8px 0 8px 24px; color: #d3daea; border-bottom: 1px solid rgba(255,255,255,.07); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #8bb7ff; font-weight: 900; }
.featured li { color: #475467; border-color: #edf0f4; }
.table-wrap { margin-top: 48px; overflow-x: auto; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); }
.comparison-table { width: 100%; min-width: 700px; border-collapse: collapse; background: rgba(255,255,255,.03); }
.comparison-table th, .comparison-table td { padding: 15px 16px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; }
.highlight-col { background: rgba(79,70,229,.16); }

.flow-list { display: grid; gap: 18px; }
.flow-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; }
.flow-step { color: var(--primary); font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.flow-item h3 { margin: 0 0 8px; font-size: 22px; }
.flow-item p { margin: 0; color: var(--muted); }
.delivery { display: inline-flex; margin-top: 14px; padding: 6px 10px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 900; }

.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 22px; font-weight: 900; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 18px; font-size: 24px; color: var(--primary); }
details[open] summary::after { content: "−"; }
.faq-content { padding: 0 22px 20px; color: var(--muted); }
.faq-content p { margin: 0; }

.final-cta { background: linear-gradient(180deg,#fff 0,#f4f7ff 100%); }
.final-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 52px; align-items: start; }
.final-grid h2 { font-size: clamp(32px,4.5vw,52px); line-height: 1.25; letter-spacing: -.04em; margin: 16px 0; }
.final-grid > div > p { color: var(--muted); font-size: 17px; }
.final-price { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.final-price span, .final-price strong { padding: 10px 14px; border-radius: 12px; font-weight: 900; }
.final-price span { background: #fff; border: 1px solid var(--line); }
.final-price strong { background: var(--primary-soft); color: var(--primary); }
.check-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.check-list li { padding: 7px 10px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 900; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.contact-card h3 { margin: 0; font-size: 24px; }
.contact-card > p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.contact-card label { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 800; }
.contact-card input, .contact-card select, .contact-card textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 11px; padding: 12px 13px; background: #fff; color: var(--text); outline: none; }
.contact-card input:focus, .contact-card select:focus, .contact-card textarea:focus { border-color: #84adff; box-shadow: 0 0 0 4px #eef4ff; }
.form-note { text-align: center; font-size: 11px !important; }
.form-success { margin-top: 12px; border-radius: 12px; padding: 12px 14px; background: #ecfdf3; color: #067647; font-size: 13px; font-weight: 700; }

.site-footer { background: #080d18; color: #d3daea; padding: 40px 0 22px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-inner p { margin: 4px 0 0; color: #7e8ba3; font-size: 13px; }
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.copyright { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #667085; font-size: 12px; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid, .final-grid { grid-template-columns: 1fr; }
  .hero-card-wrap { max-width: 620px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; order: -1; }
  .reason-card { grid-template-columns: 64px 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .section-pad { padding: 68px 0; }
  .site-header .btn-small { display: none; }
  .brand-copy { font-size: 13px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 16px; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .trust-strip { justify-content: flex-start; }
  .problem-grid { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 34px; }
  .reason-card { grid-template-columns: 1fr; padding: 24px; gap: 8px; }
  .reason-number { font-size: 28px; }
  .reason-body h3 { font-size: 23px; }
  .comparison-box { grid-template-columns: 1fr; }
  .steps-inline { align-items: stretch; }
  .steps-inline > div:not(.arrow) { width: 100%; }
  .arrow { display: none; }
  .flow-item { grid-template-columns: 1fr; }
  .final-grid { gap: 28px; }
  .contact-card { padding: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Interactive polish / dark mode ===== */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body, .site-header, .hero, .section-soft, .final-cta, .problem-card, .reason-card,
.hero-point, details, .contact-card, .comparison-box > div, .steps-inline > div:not(.arrow),
.service-chip-row span, .final-price span, .price-card.featured, .contact-card input,
.contact-card select, .contact-card textarea, .btn-ghost {
  transition: background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 16px rgba(37,99,235,.5);
  pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  position: relative;
  height: 40px;
  min-width: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .28s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 11%, transparent), 0 10px 24px rgba(15,23,42,.08);
}
.theme-icon { width: 14px; text-align: center; line-height: 1; transition: opacity .25s ease, transform .25s ease; }
.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: inline-block; }
html[data-theme="dark"] .theme-toggle { background: rgba(17,24,39,.76); }

/* Pointer-follow glow. JS adds .glow-card only to interactive surfaces. */
.glow-card {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  z-index: 3;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(88,135,255,.16), transparent 48%);
  transition: opacity .22s ease;
}
.glow-card:hover::after { opacity: 1; }
html[data-theme="dark"] .glow-card::after {
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(110,168,254,.22), transparent 50%);
}

.problem-card, .reason-card, .flow-item, .price-card, .contact-card, details, .hero-point {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}
.problem-card:hover, .reason-card:hover, .flow-item:hover, .hero-point:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--line));
  box-shadow: 0 20px 46px rgba(15,23,42,.10);
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(138,180,255,.5); box-shadow: 0 26px 70px rgba(0,0,0,.26); }
.price-card.featured:hover { transform: translateY(-16px); }
.contact-card:hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); box-shadow: 0 24px 64px rgba(15,23,42,.12); }

.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 180%;
  top: -40%;
  left: -110px;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .52s ease;
  pointer-events: none;
}
.btn:hover::after { left: calc(100% + 60px); }
.btn-primary:hover { box-shadow: 0 0 0 5px rgba(37,99,235,.10), 0 16px 34px rgba(37,99,235,.32); }

/* Scroll reveal */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(5px);
  transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1), filter .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Visual demo animation */
.js-ready .hero-card:not(.demo-animated) .chat,
.js-ready .hero-card:not(.demo-animated) .speed-row,
.js-ready .hero-card:not(.demo-animated) .mini-features span { opacity: 0; }
.hero-card { transform: perspective(900px) rotateY(-2deg) rotateX(1deg); transition: transform .35s ease, box-shadow .35s ease; }
.hero-card-wrap:hover .hero-card { transform: perspective(900px) rotateY(0) rotateX(0) translateY(-4px); box-shadow: 0 34px 90px rgba(15,23,42,.3); }
.status-dot { animation: statusPulse 2s ease-out infinite; }
.demo-animated .chat-user { animation: chatInRight .58s .12s both cubic-bezier(.2,.8,.2,1); }
.demo-animated .chat-ai { animation: chatInLeft .7s .6s both cubic-bezier(.2,.8,.2,1); }
.demo-animated .speed-row { animation: demoFade .55s 1.08s both ease; }
.demo-animated .mini-features span { animation: chipPop .42s both cubic-bezier(.2,.9,.3,1.35); }
.demo-animated .mini-features span:nth-child(1) { animation-delay: 1.25s; }
.demo-animated .mini-features span:nth-child(2) { animation-delay: 1.34s; }
.demo-animated .mini-features span:nth-child(3) { animation-delay: 1.43s; }
.demo-animated .mini-features span:nth-child(4) { animation-delay: 1.52s; }
@keyframes statusPulse { 0%,100%{box-shadow:0 0 0 5px rgba(52,211,153,.10)} 50%{box-shadow:0 0 0 10px rgba(52,211,153,0)} }
@keyframes chatInRight { from{opacity:0;transform:translateX(26px) scale(.98)} to{opacity:1;transform:none} }
@keyframes chatInLeft { from{opacity:0;transform:translateX(-26px) scale(.98)} to{opacity:1;transform:none} }
@keyframes demoFade { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes chipPop { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1)} }

/* Flow states help the 3 steps read as a sequence. */
.flow-item { position: relative; }
.flow-item.is-visible::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(var(--primary), var(--primary-2));
  animation: drawStep .8s .28s forwards ease;
  box-shadow: 0 0 16px color-mix(in srgb, var(--primary) 45%, transparent);
}
@keyframes drawStep { to { height: 64%; } }

/* FAQ interaction */
details[open] { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); box-shadow: 0 10px 30px rgba(15,23,42,.06); }
summary::after { transition: transform .22s ease, color .22s ease; }
details[open] summary::after { transform: rotate(180deg); }
.faq-content { animation: faqOpen .28s ease both; }
@keyframes faqOpen { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:none} }

/* Dark palette */
html[data-theme="dark"] {
  --bg: #0d1526;
  --surface: #111a2b;
  --text: #f5f8ff;
  --muted: #aeb9cc;
  --line: rgba(255,255,255,.105);
  --primary: #78a8ff;
  --primary-2: #9b8cff;
  --primary-soft: rgba(120,168,255,.12);
  --dark: #080f1f;
  --dark-2: #16223a;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
}
html[data-theme="dark"] body { background: var(--surface); }
html[data-theme="dark"] .site-header { background: rgba(12,20,35,.86); border-bottom-color: var(--line); }
html[data-theme="dark"] .header-nav a { color: #a9b4c6; }
html[data-theme="dark"] .hero { background: linear-gradient(180deg,#111a2b 0%,#0d1526 100%); }
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .problem-card p,
html[data-theme="dark"] .reason-body p,
html[data-theme="dark"] .flow-item p,
html[data-theme="dark"] .final-grid > div > p,
html[data-theme="dark"] .contact-card > p,
html[data-theme="dark"] .faq-content { color: var(--muted); }
html[data-theme="dark"] .hero-point,
html[data-theme="dark"] .problem-card,
html[data-theme="dark"] .reason-card,
html[data-theme="dark"] details,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .comparison-box > div,
html[data-theme="dark"] .steps-inline > div:not(.arrow),
html[data-theme="dark"] .service-chip-row span,
html[data-theme="dark"] .final-price span,
html[data-theme="dark"] .btn-ghost { background: #18243a; }
html[data-theme="dark"] .section-soft { background: #0f1829; }
html[data-theme="dark"] .final-cta { background: linear-gradient(180deg,#111a2b 0,#0d1526 100%); }
html[data-theme="dark"] .price-card.featured { background: #1a2740; color: var(--text); }
html[data-theme="dark"] .featured .plan-for,
html[data-theme="dark"] .featured li { color: #b5c0d1; }
html[data-theme="dark"] .featured li { border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .comparison-box .accent { background: rgba(120,168,255,.09); border-color: rgba(120,168,255,.24); }
html[data-theme="dark"] .hero-point span,
html[data-theme="dark"] .comparison-box span { color: var(--muted); }
html[data-theme="dark"] .contact-card input,
html[data-theme="dark"] .contact-card select,
html[data-theme="dark"] .contact-card textarea { background: #0f1829; color: var(--text); border-color: rgba(255,255,255,.13); }
html[data-theme="dark"] .contact-card input:focus,
html[data-theme="dark"] .contact-card select:focus,
html[data-theme="dark"] .contact-card textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(120,168,255,.10); }
html[data-theme="dark"] .trust-strip { border-top-color: var(--line); }
html[data-theme="dark"] .bridge-box { background: linear-gradient(135deg,#16233d,#20345b); }
html[data-theme="dark"] .check-list li,
html[data-theme="dark"] .delivery,
html[data-theme="dark"] .form-success { background: rgba(18,183,106,.12); color: #6ee7b7; }
html[data-theme="dark"] .site-footer { background: #080f1f; }

@media (max-width: 900px) {
  .price-card.featured:hover { transform: translateY(-6px); }
}
@media (max-width: 640px) {
  .header-actions { gap: 6px; }
  .theme-toggle { min-width: 42px; width: 42px; padding: 0; }
  .theme-label { display: none; }
  .hero-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; transform: none; filter: none; }
}


/* ===== Brand / legal pages ===== */
.footer-operator { margin-top: 2px !important; color: #98a2b3 !important; }
.footer-links { flex-wrap: wrap; justify-content: flex-end; max-width: 620px; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.privacy-consent { display: flex !important; grid-template-columns: 18px 1fr !important; align-items: flex-start; gap: 9px !important; margin: 12px 0 16px !important; font-weight: 600 !important; color: var(--muted); line-height: 1.6; }
.privacy-consent input { width: 17px !important; height: 17px; margin: 4px 0 0; accent-color: var(--primary); }
.privacy-consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.legal-page { min-height: 100vh; background: var(--bg); }
.legal-header .header-inner { justify-content: space-between; }
.legal-main { padding: 72px 0 104px; }
.legal-hero { margin-bottom: 30px; }
.legal-hero h1 { margin: 14px 0 10px; font-size: clamp(34px, 5vw, 54px); line-height: 1.2; letter-spacing: -.035em; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 46px); box-shadow: var(--shadow); }
.legal-card h2 { font-size: 22px; margin: 34px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul, .legal-card ol { padding-left: 1.4em; }
.legal-card a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 15px 12px; text-align: left; vertical-align: top; }
.legal-table th { width: 28%; color: var(--text); font-size: 14px; }
.legal-table td { color: var(--muted); }
.legal-note { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); color: var(--muted); font-size: 13px; }
.needs-edit { display: inline-block; padding: 2px 7px; border-radius: 7px; background: #fff3cd; color: #7a5b00; font-weight: 800; }
html[data-theme="dark"] .needs-edit { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.legal-back { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 800; margin-bottom: 24px; }

@media (max-width: 760px) {
  .footer-links { justify-content: flex-start; }
  .legal-main { padding-top: 46px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal-table th, .legal-table td { border: 0; padding: 4px 0; }
}


/* ===== Revised offer structure ===== */
.operator-note { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.plan-kana { letter-spacing: .06em; }
.plan-note { margin: -4px 0 16px; color: #9aa7bd; font-size: 12px; line-height: 1.6; }
.featured .plan-note { color: var(--muted); }
.package-extra { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(37,99,235,.10); border: 1px solid rgba(139,183,255,.22); font-size: 13px; font-weight: 800; color: #bcd5ff; }
.featured .package-extra { background: var(--primary-soft); color: var(--primary); border-color: #cfe0ff; }
.hero-card .chat-ai { line-height: 1.7; }
.copy-line { display: block; }
.price-card li strong { color: inherit; }
.footer-operator { margin: 5px 0 0 !important; color: #7e8ba3 !important; }
html[data-theme="dark"] .package-extra { border-color: rgba(120,168,255,.22); }
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-lead { font-size: 17px; }
}



/* ===== Editorial / non-card redesign ===== */
:root {
  --radius: 4px;
  --shadow: none;
}

/* Remove the familiar SaaS / generated-LP visual language */
.hero-glow { display: none !important; }
.eyebrow {
  padding: 0 0 0 14px;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  border-left: 2px solid var(--primary);
  letter-spacing: .06em;
}
.tag,
.monthly,
.delivery,
.check-list li,
.mini-features span,
.service-chip-row span {
  border-radius: 0;
  background: transparent;
}

.btn {
  border-radius: 4px;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.btn:hover { transform: none; }
.btn::after { display: none !important; }
.btn-primary {
  background: var(--primary);
  box-shadow: none;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 86%, #000);
  box-shadow: none;
}
.btn-ghost { background: transparent; }
.btn-outline-white { border-radius: 4px; }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 12px;
}
.theme-toggle {
  min-width: 86px;
  height: 38px;
  border-radius: 3px;
  box-shadow: none;
  background: transparent;
}
.theme-toggle:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--primary);
}
.scroll-progress { box-shadow: none; height: 2px; }

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-grid { grid-template-columns: 1.18fr .82fr; gap: 78px; }
.hero h1 span { color: inherit; }
.hero-lead { max-width: 650px; }
.hero-points {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
}
.hero-point {
  flex: 1;
  padding: 16px 18px 16px 0;
  margin-right: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.hero-point:last-child { border-right: 0; margin-right: 0; }
.hero-point strong { font-size: 17px; }

.hero-card-wrap { align-self: stretch; display: flex; align-items: center; }
.hero-proof {
  width: 100%;
  padding: 8px 0 8px 34px;
  border-left: 1px solid var(--line);
}
.proof-label {
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.proof-item { padding: 0 0 22px; }
.proof-item + .proof-item { padding-top: 22px; border-top: 1px solid var(--line); }
.proof-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.proof-item p { margin: 0; font-size: 15px; line-height: 1.9; }
.proof-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.proof-meta strong { font-size: 30px; line-height: 1; color: var(--primary); }
.proof-meta small { color: var(--muted); }
.trust-strip {
  justify-content: flex-start;
  gap: 0;
  color: var(--muted);
  font-weight: 700;
}
.trust-strip span { display: inline-flex; align-items: center; }
.trust-strip span:not(:last-child)::after { content: "/"; margin: 0 14px; color: var(--line); }

.section-soft { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.section-heading { margin-bottom: 54px; }
.section-heading.center { text-align: left; max-width: 820px; }
.section-heading.center p { margin-left: 0; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  border-top: 1px solid var(--line);
}
.problem-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 0;
}
.icon-box {
  grid-row: 1 / span 2;
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding-top: 4px;
}
.problem-card h3 { margin: 0 0 7px; }
.bridge-box {
  margin-top: 44px;
  padding: 24px 0 24px 26px;
  border-radius: 0;
  border-left: 3px solid var(--primary);
  background: transparent;
  color: var(--text);
  text-align: left;
}
.bridge-box p { color: var(--muted); }
.bridge-box h3 { font-size: 25px; }

.reason-stack { display: block; border-top: 1px solid var(--line); }
.reason-card {
  display: grid;
  grid-template-columns: 80px minmax(0,1fr);
  gap: 26px;
  padding: 42px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.reason-number { font-size: 15px; color: var(--primary); letter-spacing: .08em; padding-top: 8px; }
.tag {
  display: inline-block;
  padding: 0;
  color: var(--primary);
  font-size: 11px;
  letter-spacing: .08em;
}
.reason-body h3 { font-size: clamp(24px,3vw,34px); }
.comparison-box {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.comparison-box > div {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 18px 16px 0;
  background: transparent !important;
}
.comparison-box > div + div { padding-left: 18px; border-right: 0; }
.steps-inline {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps-inline > div:not(.arrow) {
  width: auto;
  display: block;
  padding: 16px 18px 16px 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.steps-inline > div:not(.arrow):last-of-type { border-right: 0; padding-left: 18px; }
.steps-inline > div:not(.arrow):nth-of-type(3) { padding-left: 18px; }
.steps-inline b {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 5px;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
}
.steps-inline .arrow { display: none; }
.service-chip-row { gap: 0; margin-top: 20px; }
.service-chip-row span { padding: 0; border: 0; font-weight: 700; color: var(--muted); }
.service-chip-row span:not(:last-child)::after { content: "/"; margin: 0 12px; color: var(--line); }

/* Pricing becomes a ruled service list instead of cards */
.section-dark {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading.light h2 { color: var(--text); }
.section-heading.light p { color: var(--muted); }
.pricing-grid { display: block; border-top: 1px solid var(--line); }
.price-card,
.price-card.featured {
  position: relative;
  display: grid;
  grid-template-columns: 125px minmax(220px,1.1fr) 180px minmax(250px,1.25fr) 190px;
  grid-template-rows: auto auto;
  gap: 6px 26px;
  align-items: start;
  padding: 34px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  transform: none;
}
.price-card.featured { border-left: 3px solid var(--primary); padding-left: 22px; }
.price-card .plan-kana { grid-column: 1; grid-row: 1 / span 2; color: var(--primary); padding-top: 7px; }
.price-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 22px; line-height: 1.45; }
.price-card .plan-for { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; color: var(--muted); }
.price-card .price { grid-column: 3; grid-row: 1; margin: 0; font-size: 34px; line-height: 1.2; white-space: nowrap; }
.price-card .monthly { grid-column: 3; grid-row: 2; align-self: start; margin: 3px 0 0; padding: 0; color: var(--primary); font-size: 12px; }
.price-card .plan-note,
.price-card .package-extra {
  grid-column: 4;
  grid-row: 1;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.price-card ul {
  grid-column: 4;
  grid-row: 2;
  margin: 0;
  padding: 0;
}
.price-card li,
.price-card.featured li {
  padding: 4px 0 4px 14px;
  border: 0;
  color: var(--muted);
  font-size: 13px;
}
.price-card li::before { content: "—"; left: 0; color: var(--primary); }
.price-card .btn {
  grid-column: 5;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  margin: 0;
}
.price-card .btn-outline-white {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
.popular-badge { display: none; }
.package-extra { color: var(--primary) !important; }
.table-wrap { margin-top: 54px; border-radius: 0; box-shadow: none; }
.comparison-table { border-collapse: collapse; }
.comparison-table th,
.comparison-table td { border-bottom: 1px solid var(--line); }
.comparison-table .highlight-col { background: color-mix(in srgb, var(--primary) 5%, transparent); }

.flow-list { display: block; border-top: 1px solid var(--line); }
.flow-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.flow-item.is-visible::before { display: none; }
.delivery { display: inline-block; margin-top: 12px; padding: 0; color: var(--primary); }

.faq-list { gap: 0; border-top: 1px solid var(--line); }
details,
details[open] {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
summary { padding: 22px 44px 22px 0; }
summary::after { right: 0; }
.faq-content { padding: 0 0 24px; max-width: 760px; }

.final-cta { background: var(--surface); }
.final-grid { border-top: 1px solid var(--line); padding-top: 52px; }
.final-price { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-price span,
.final-price strong {
  padding: 11px 18px 11px 0;
  margin-right: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.final-price span { border-right: 1px solid var(--line); }
.final-price strong { color: var(--primary); }
.check-list { gap: 0; }
.check-list li { padding: 0; color: var(--muted); }
.check-list li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--line); }
.contact-card {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 0 40px;
}
.contact-card input,
.contact-card select,
.contact-card textarea {
  border-radius: 2px;
  background: transparent;
}
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 14%, transparent); }
.form-success { border-radius: 2px; }

/* No mouse-tracking glow, floating cards or glossy sweeps */
.glow-card::after { display: none !important; }
.problem-card:hover,
.reason-card:hover,
.flow-item:hover,
.hero-point:hover,
.price-card:hover,
.price-card.featured:hover,
.contact-card:hover {
  transform: none;
  box-shadow: none;
}
.problem-card:hover,
.reason-card:hover,
.flow-item:hover,
.hero-point:hover { border-color: var(--line); }
.js-ready .reveal {
  transform: translateY(12px);
  filter: none;
  transition-duration: .48s;
}
.js-ready .reveal.is-visible { transform: none; }

/* Dark mode keeps the same restrained structure */
html[data-theme="dark"] .hero,
html[data-theme="dark"] .final-cta { background: var(--surface); }
html[data-theme="dark"] .section-dark { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .section-heading.light h2 { color: var(--text); }
html[data-theme="dark"] .section-heading.light p { color: var(--muted); }
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .price-card.featured,
html[data-theme="dark"] .problem-card,
html[data-theme="dark"] .reason-card,
html[data-theme="dark"] .flow-item,
html[data-theme="dark"] details,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .hero-point { background: transparent; }
html[data-theme="dark"] .price-card li,
html[data-theme="dark"] .price-card.featured li { color: var(--muted); }
html[data-theme="dark"] .comparison-table .highlight-col { background: rgba(120,168,255,.04); }

@media (max-width: 1020px) {
  .price-card,
  .price-card.featured {
    grid-template-columns: 100px 1fr 160px;
    grid-template-rows: auto auto auto auto;
  }
  .price-card .plan-kana { grid-column: 1; grid-row: 1 / span 4; }
  .price-card h3 { grid-column: 2; grid-row: 1; }
  .price-card .plan-for { grid-column: 2; grid-row: 2; }
  .price-card .price { grid-column: 3; grid-row: 1; }
  .price-card .monthly { grid-column: 3; grid-row: 2; }
  .price-card .plan-note,
  .price-card .package-extra { grid-column: 2 / 4; grid-row: 3; margin-top: 14px; }
  .price-card ul { grid-column: 2 / 4; grid-row: 4; margin-top: 6px; }
  .price-card .btn { grid-column: 2 / 4; grid-row: 5; width: auto; justify-self: start; margin-top: 14px; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-proof { padding-left: 0; padding-top: 26px; border-left: 0; border-top: 1px solid var(--line); }
  .hero-points { display: grid; grid-template-columns: 1fr; }
  .hero-point { margin: 0; padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-point:last-child { border-bottom: 0; }
  .problem-grid { grid-template-columns: 1fr; gap: 0; }
  .reason-card { grid-template-columns: 48px 1fr; gap: 14px; }
  .comparison-box { grid-template-columns: 1fr; }
  .comparison-box > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .comparison-box > div + div { padding: 14px 0; border-bottom: 0; }
  .steps-inline { grid-template-columns: 1fr; }
  .steps-inline > div:not(.arrow),
  .steps-inline > div:not(.arrow):nth-of-type(3),
  .steps-inline > div:not(.arrow):last-of-type { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps-inline > div:not(.arrow):last-of-type { border-bottom: 0; }
  .price-card,
  .price-card.featured {
    display: block;
    padding: 28px 0;
    border-left: 0;
  }
  .price-card.featured { padding-left: 0; border-top: 2px solid var(--primary); }
  .price-card .plan-kana { margin-bottom: 9px; }
  .price-card .plan-for { margin-top: 6px; }
  .price-card .price { margin-top: 18px; }
  .price-card .monthly { display: block; margin-top: 4px; }
  .price-card .plan-note,
  .price-card .package-extra { margin: 17px 0 6px; }
  .price-card ul { margin: 8px 0 18px; }
  .price-card .btn { width: 100%; }
  .flow-item { grid-template-columns: 1fr; }
  .contact-card { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; }
}


/* ===== Final readability & responsive refinement ===== */
html { overflow-x: clip; }
body { overflow-wrap: break-word; }
main, section, .container, .hero-grid, .hero-copy, .hero-card-wrap,
.reason-body, .price-card, .flow-item, .final-grid, .contact-card { min-width: 0; }

/* Typography: slightly calmer hierarchy and stronger secondary-text contrast */
body { font-size: 16px; line-height: 1.78; }
:root { --muted: #596579; }
html[data-theme="dark"] { --muted: #bac5d8; }
.hero h1 {
  font-size: clamp(36px, 4.7vw, 60px);
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.85; color: var(--muted); }
.section-heading h2 {
  font-size: clamp(30px, 3.7vw, 46px);
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-heading p { font-size: 15px; line-height: 1.85; color: var(--muted); }
.problem-card h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }
.problem-card p,
.reason-body p,
.flow-item p,
.faq-content,
.final-grid > div > p { color: var(--muted); }
.reason-body h3 { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.42; text-wrap: pretty; }
.price-card h3 { font-size: clamp(19px, 2vw, 22px); overflow-wrap: anywhere; }
.price-card .plan-for,
.price-card li { line-height: 1.65; }
.final-grid h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.28; }

/* Restore the animated口コミ返信 demo while keeping the editorial page around it */
.hero-card-wrap { align-self: stretch; display: flex; align-items: center; min-width: 0; }
.hero-card {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: #111d36;
  color: #fff;
  box-shadow: 0 22px 56px rgba(15,23,42,.20);
  transform: perspective(900px) rotateY(-1.5deg) rotateX(.7deg);
  overflow: hidden;
}
.hero-card-wrap:hover .hero-card {
  transform: perspective(900px) rotateY(0) rotateX(0) translateY(-2px);
  box-shadow: 0 26px 64px rgba(15,23,42,.24);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #c0cadb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.status-dot { flex: 0 0 auto; }
.chat {
  max-width: 100%;
  padding: 15px 17px;
  margin: 12px 0;
  border-radius: 14px;
  font-size: clamp(13px, 1.25vw, 14px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.chat-user {
  margin-left: clamp(20px, 6vw, 44px);
  background: #2563eb;
  color: #fff;
}
.chat-ai {
  margin-right: clamp(20px, 6vw, 44px);
  background: #fff;
  color: #263247;
}
.chat-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .7;
}
.chat-ai .chat-label { color: #5e6b80; opacity: 1; }
.speed-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.11);
}
.speed-value { display: flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.speed-num { font-size: clamp(42px, 5vw, 52px); font-weight: 900; line-height: 1; color: #8bb7ff; }
.speed-value > span:last-child { color: #a9c8ff; font-size: 15px; font-weight: 800; }
.speed-row p { margin: 0; color: #d3dbea; font-size: 13px; line-height: 1.65; }
.mini-features { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 17px; }
.mini-features span {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #c4cede;
  font-size: 11px;
  font-weight: 700;
}
.mini-features span:not(:last-child)::after { content: " /"; margin-left: 10px; color: #66758e; }

/* Keep animation focused on the demo only */
.js-ready .hero-card:not(.demo-animated) .chat,
.js-ready .hero-card:not(.demo-animated) .speed-row,
.js-ready .hero-card:not(.demo-animated) .mini-features span { opacity: 0; }
.demo-animated .chat-user { animation: chatInRight .58s .12s both cubic-bezier(.2,.8,.2,1); }
.demo-animated .chat-ai { animation: chatInLeft .7s .62s both cubic-bezier(.2,.8,.2,1); }
.demo-animated .speed-row { animation: demoFade .55s 1.12s both ease; }
.demo-animated .mini-features span { animation: chipPop .38s both cubic-bezier(.2,.9,.3,1.2); }
.demo-animated .mini-features span:nth-child(1) { animation-delay: 1.30s; }
.demo-animated .mini-features span:nth-child(2) { animation-delay: 1.38s; }
.demo-animated .mini-features span:nth-child(3) { animation-delay: 1.46s; }
.demo-animated .mini-features span:nth-child(4) { animation-delay: 1.54s; }

/* Horizontal pricing rows: prevent long plan names and prices from pushing outside */
.price-card,
.price-card.featured {
  grid-template-columns: 105px minmax(180px, 1.05fr) 150px minmax(215px, 1.2fr) minmax(145px, 170px);
  gap: 8px 20px;
}
.price-card .price { font-size: clamp(29px, 3vw, 34px); }
.price-card .btn { min-width: 0; padding-inline: 14px; white-space: normal; line-height: 1.4; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table th, .comparison-table td { white-space: normal; line-height: 1.55; }

/* Avoid overly faint auxiliary copy */
.microcopy,
.operator-note,
.plan-note,
.footer-inner p,
.copyright { opacity: 1; }
.microcopy { color: #6a7588; }
html[data-theme="dark"] .microcopy { color: #aeb9cc; }
.trust-strip { color: #6e798b; }
html[data-theme="dark"] .trust-strip { color: #a9b5c8; }
.footer-inner p { color: #9aa6b9; }
.copyright { color: #8794a8; }

/* Legal pages also inherit the improved reading size without changing content */
.legal-card { line-height: 1.85; }
.legal-card p, .legal-card li, .legal-table td { color: var(--muted); }
.legal-table { table-layout: fixed; }
.legal-table td { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(360px,.82fr); gap: 48px; }
  .price-card,
  .price-card.featured {
    grid-template-columns: 84px minmax(0,1fr) 145px;
    grid-template-rows: auto auto auto auto auto;
  }
  .price-card .plan-kana { grid-column: 1; grid-row: 1 / span 5; }
  .price-card h3 { grid-column: 2; grid-row: 1; }
  .price-card .plan-for { grid-column: 2; grid-row: 2; }
  .price-card .price { grid-column: 3; grid-row: 1; }
  .price-card .monthly { grid-column: 3; grid-row: 2; }
  .price-card .plan-note,
  .price-card .package-extra { grid-column: 2 / 4; grid-row: 3; margin-top: 12px; }
  .price-card ul { grid-column: 2 / 4; grid-row: 4; margin-top: 5px; }
  .price-card .btn { grid-column: 2 / 4; grid-row: 5; width: auto; justify-self: start; margin-top: 12px; }
}

@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 620px; margin: 0; transform: none; }
  .hero-card-wrap:hover .hero-card { transform: none; }
  .hero h1 { max-width: 720px; }
  .section-heading.center { max-width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container, .narrow { width: min(100% - 32px, 1120px); }
  .section-pad { padding: 62px 0; }
  .header-inner { height: 66px; }
  .theme-toggle { min-width: 42px; width: 42px; padding: 0; }
  .theme-toggle .theme-label { display: none; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: clamp(33px, 9.8vw, 44px); line-height: 1.18; letter-spacing: -.03em; }
  .hero h1 br { display: none; }
  .hero-lead { font-size: 16px; line-height: 1.8; }
  .hero-lead br { display: none; }
  .hero-points { margin: 24px 0; }
  .hero-point strong { font-size: 16px; }
  .hero-card { padding: 20px 17px; border-radius: 17px; }
  .chat { padding: 13px 14px; font-size: 13px; }
  .chat-user { margin-left: 16px; }
  .chat-ai { margin-right: 16px; }
  .speed-row { gap: 13px; align-items: flex-end; }
  .speed-num { font-size: 40px; }
  .speed-row p { font-size: 12px; }
  .mini-features { gap: 5px 8px; }
  .mini-features span:not(:last-child)::after { margin-left: 7px; }
  .trust-strip { margin-top: 48px; row-gap: 7px; }
  .trust-strip span:not(:last-child)::after { margin: 0 9px; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: clamp(28px, 8.2vw, 36px); }
  .section-heading h2 br { display: none; }
  .problem-card { grid-template-columns: 40px 1fr; column-gap: 12px; padding: 23px 0; }
  .reason-card { grid-template-columns: 38px minmax(0,1fr); padding: 34px 0; }
  .reason-body h3 { font-size: 23px; }
  .bridge-box h3 { font-size: 22px; line-height: 1.5; }
  .price-card,
  .price-card.featured { display: block; padding: 27px 0; }
  .price-card h3 { font-size: 21px; }
  .price-card .price { font-size: 32px; white-space: normal; }
  .price-card .btn { width: 100%; }
  .comparison-table { min-width: 620px; font-size: 13px; }
  .flow-item { padding: 26px 0; }
  summary { font-size: 15px; line-height: 1.55; }
  .final-grid h2 { font-size: 30px; }
  .final-grid h2 br { display: none; }
  .contact-card h3 { font-size: 22px; }
  .footer-links { gap: 12px 16px; line-height: 1.5; }
  .legal-main { padding: 42px 0 72px; }
  .legal-card { padding: 22px 18px; }
  .legal-hero h1 { font-size: 34px; }
}

@media (max-width: 380px) {
  .container, .narrow { width: min(100% - 24px, 1120px); }
  .brand-copy { font-size: 12px; }
  .hero h1 { font-size: 32px; }
  .hero-actions .btn { padding-inline: 14px; }
  .chat-user { margin-left: 8px; }
  .chat-ai { margin-right: 8px; }
  .speed-row { display: grid; grid-template-columns: auto 1fr; }
}

/* === FINAL LAYOUT LOCK v3 ===
   All content sections stay editorial / ruled rather than card-based.
   The animated review demo in .hero-card is the only intentional card surface. */
.problem-card,
.reason-card,
.price-card,
.price-card.featured,
.flow-item,
.faq-list details,
.contact-card {
  box-shadow: none !important;
}
.problem-card,
.reason-card,
.flow-item,
.faq-list details,
.contact-card {
  background: transparent !important;
  border-radius: 0 !important;
}
.price-card,
.price-card.featured {
  background: transparent !important;
  border-radius: 0 !important;
  transform: none !important;
}
.problem-card:hover,
.reason-card:hover,
.price-card:hover,
.price-card.featured:hover,
.flow-item:hover,
.contact-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* === v4: text-only brand + vertical pricing cards === */
.brand {
  gap: 0;
  font-weight: 900;
  letter-spacing: -.035em;
}
.brand-mark { display: none !important; }
.brand-copy {
  font-size: clamp(20px, 1.65vw, 25px) !important;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.045em;
}

/* Pricing is the one section that intentionally uses cards */
.section-dark {
  background: radial-gradient(circle at 50% -10%, #1e3d73 0, #101d36 45%, #091226 100%) !important;
  color: #fff !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.section-dark .section-heading.light h2 { color: #fff !important; }
.section-dark .section-heading.light p { color: #b8c3d5 !important; }
.section-dark .eyebrow {
  background: rgba(126,166,255,.12);
  color: #a9c7ff;
}
.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  border-top: 0 !important;
}
.price-card,
.price-card.featured {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 30px 28px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 22px !important;
  background: rgba(18,32,58,.84) !important;
  color: #fff !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.14) !important;
  transform: none !important;
  overflow: hidden;
}
.price-card.featured {
  background: #fff !important;
  color: #172033 !important;
  border-color: rgba(255,255,255,.42) !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.24) !important;
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.price-card .plan-kana {
  display: block !important;
  color: #8fb8ff !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .04em;
}
.price-card.featured .plan-kana { color: var(--primary) !important; }
.price-card h3 {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.45 !important;
  color: inherit !important;
  overflow-wrap: anywhere;
}
.price-card .plan-for {
  display: block !important;
  min-height: 0 !important;
  margin: 0 0 20px !important;
  color: #abb8cd !important;
  font-size: 14px;
  line-height: 1.7;
}
.price-card.featured .plan-for { color: #667085 !important; }
.price-card .price {
  display: block !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: clamp(34px, 3.3vw, 43px) !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  letter-spacing: -.04em;
}
.price-card .price > span { font-size: .52em; margin-right: 3px; }
.price-card .price small { color: #94a3b8 !important; font-size: 11px !important; }
.price-card .monthly {
  display: inline-flex !important;
  align-self: flex-start !important;
  margin: 10px 0 16px !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  background: rgba(79,132,255,.13) !important;
  color: #9fc2ff !important;
  font-size: 11px !important;
  line-height: 1.2;
}
.price-card.featured .monthly {
  background: #eef4ff !important;
  color: var(--primary) !important;
}
.price-card .plan-note,
.price-card .package-extra {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #9eacc1 !important;
  font-size: 12px !important;
  line-height: 1.6;
}
.price-card.featured .package-extra,
.price-card.featured .plan-note { color: var(--primary) !important; }
.price-card ul {
  display: block !important;
  flex: 1 1 auto;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none;
}
.price-card li,
.price-card.featured li {
  position: relative;
  display: block !important;
  padding: 9px 0 9px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  color: #d5ddea !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.price-card.featured li {
  color: #526075 !important;
  border-bottom-color: #edf0f4 !important;
}
.price-card li::before {
  content: "✓" !important;
  position: absolute;
  left: 0;
  top: 9px;
  color: #8fb8ff !important;
  font-weight: 900;
}
.price-card.featured li::before { color: var(--primary) !important; }
.price-card .btn {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: auto 0 0 !important;
  padding: 12px 14px !important;
  white-space: normal !important;
  line-height: 1.4 !important;
}
.price-card .btn-outline-white {
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
  background: transparent !important;
}
.price-card .btn-outline-white:hover {
  border-color: rgba(255,255,255,.52) !important;
  background: rgba(255,255,255,.05) !important;
}
.price-card:hover,
.price-card.featured:hover {
  transform: translateY(-3px) !important;
}
.table-wrap {
  margin-top: 46px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;
  overflow-x: auto;
}
.comparison-table { background: rgba(255,255,255,.025) !important; color: #fff; }
.comparison-table th,
.comparison-table td { border-bottom-color: rgba(255,255,255,.09) !important; }
.comparison-table .highlight-col { background: rgba(79,70,229,.15) !important; }

html[data-theme="dark"] .section-dark {
  background: radial-gradient(circle at 50% -10%, #203e70 0, #0b1426 48%, #070d19 100%) !important;
  color: #fff !important;
}
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .price-card.featured { background: #121e33 !important; color: #edf3ff !important; }
html[data-theme="dark"] .price-card.featured {
  background: #18263e !important;
  border-color: rgba(133,174,255,.28) !important;
}
html[data-theme="dark"] .price-card.featured .plan-for { color: #b5c0d2 !important; }
html[data-theme="dark"] .price-card.featured li { color: #d1daea !important; border-bottom-color: rgba(255,255,255,.07) !important; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 660px; margin-inline: auto; }
  .price-card,
  .price-card.featured { padding: 28px 26px !important; }
  .price-card:hover,
  .price-card.featured:hover { transform: none !important; }
}

@media (max-width: 640px) {
  .brand-copy { font-size: 21px !important; }
  .pricing-grid { gap: 14px !important; }
  .price-card,
  .price-card.featured { padding: 25px 21px !important; border-radius: 18px !important; }
  .price-card h3 { font-size: 20px !important; }
  .price-card .price { font-size: 36px !important; }
}

@media (max-width: 380px) {
  .brand-copy { font-size: 19px !important; }
}

/* === v5 visual balance / typography polish === */
:root {
  --muted: #5f6b7d;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, summary, li, label, .plan-for, .package-extra, .microcopy {
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

@supports (word-break: auto-phrase) {
  h1, h2, h3, p, summary, li, .plan-for, .package-extra { word-break: auto-phrase; }
}

h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }

.container { width: min(1140px, calc(100% - 48px)); }
.narrow { width: min(880px, calc(100% - 48px)); }
.section-pad { padding: 86px 0; }

/* Header */
.header-inner { height: 70px; gap: 24px; }
.brand-copy {
  font-size: clamp(22px, 1.7vw, 26px) !important;
  letter-spacing: -.035em;
}
.header-nav { gap: 22px; }
.header-nav a { font-size: 13px; letter-spacing: .01em; }
.header-actions { gap: 9px; }

/* Hero */
.hero.section-pad { padding-top: 72px; padding-bottom: 76px; }
.hero-grid { gap: clamp(44px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 {
  margin: 15px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 4.8vw, 62px);
  line-height: 1.14;
  letter-spacing: -.038em;
}
.hero-lead {
  margin: 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.78;
  color: #536074;
}
.hero-points { margin: 25px 0 26px; }
.hero-point { padding-block: 14px; }
.hero-point strong { font-size: 17px; line-height: 1.35; }
.hero-point span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; }
.hero-actions { gap: 10px; }
.microcopy { margin-top: 10px; font-size: 12.5px; line-height: 1.6; }

.hero-card { max-width: 500px; padding: 24px; }
.hero-card-top { margin-bottom: 18px; }
.chat { margin: 10px 0; line-height: 1.72; }
.speed-row { margin-top: 18px; padding-top: 17px; }
.mini-features { margin-top: 15px; }
.trust-strip { margin-top: 54px; padding-top: 17px; gap: 0; line-height: 1.5; }

/* Shared section rhythm */
.section-heading { margin-bottom: 42px; }
.section-heading h2 {
  margin: 14px 0 12px;
  max-width: 820px;
  font-size: clamp(32px, 3.7vw, 46px);
  line-height: 1.24;
  letter-spacing: -.032em;
}
.section-heading p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.8;
}
.eyebrow { font-size: 11.5px; line-height: 1.5; }

/* Problems */
.problem-grid { column-gap: 42px; }
.problem-card { grid-template-columns: 46px minmax(0,1fr); column-gap: 15px; padding: 24px 0; }
.problem-card h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.45; }
.problem-card p { font-size: 14.5px; line-height: 1.78; }
.icon-box { padding-top: 3px; }
.bridge-box { margin-top: 36px; padding: 21px 0 21px 23px; }
.bridge-box p { font-size: 13px; line-height: 1.6; }
.bridge-box h3 { margin-top: 5px; font-size: 23px; line-height: 1.5; }

/* Reasons */
.reason-card { grid-template-columns: 64px minmax(0,1fr); gap: 21px; padding: 35px 0; }
.reason-number { padding-top: 6px; font-size: 13px; }
.reason-body { min-width: 0; }
.reason-body h3 { margin: 9px 0 11px; font-size: clamp(24px, 2.65vw, 31px); line-height: 1.36; }
.reason-body > p { margin: 0; font-size: 15px; line-height: 1.82; }
.tag { font-size: 10.5px; }
.comparison-box { margin-top: 20px; }
.comparison-box > div { padding-top: 14px; padding-bottom: 14px; }
.comparison-box span { font-size: 11.5px; }
.comparison-box strong { font-size: 14px; line-height: 1.6; }
.note { margin: 10px 0 0 !important; font-size: 11.5px !important; line-height: 1.65 !important; }
.steps-inline { margin-top: 20px; }
.steps-inline > div:not(.arrow) { padding-top: 14px; padding-bottom: 14px; font-size: 13.5px; }
.service-chip-row { margin-top: 17px; line-height: 1.8; }
.service-chip-row span { font-size: 12.5px; }

/* Pricing: cards are intentionally denser than the rest of the page */
.section-dark.section-pad { padding-top: 82px; padding-bottom: 88px; }
.section-dark .section-heading { margin-bottom: 38px; }
.pricing-grid { gap: 16px !important; }
.price-card,
.price-card.featured {
  padding: 27px 24px !important;
  border-radius: 19px !important;
}
.price-card .plan-kana { margin-bottom: 8px !important; font-size: 11px !important; }
.price-card h3 {
  margin-bottom: 7px !important;
  font-size: clamp(19px, 1.7vw, 22px) !important;
  line-height: 1.42 !important;
  overflow-wrap: break-word;
}
.price-card .plan-for {
  margin-bottom: 17px !important;
  min-height: 48px !important;
  font-size: 13px;
  line-height: 1.65;
}
.price-card .price { font-size: clamp(35px, 3vw, 40px) !important; line-height: 1.05 !important; }
.price-card .monthly { margin: 9px 0 14px !important; }
.price-card .plan-note,
.price-card .package-extra { margin-bottom: 12px !important; font-size: 11.5px !important; line-height: 1.55; }
.price-card ul { margin-bottom: 20px !important; }
.price-card li,
.price-card.featured li { padding: 7px 0 7px 20px !important; font-size: 12.5px !important; line-height: 1.55 !important; }
.price-card li::before { top: 7px; }
.price-card .btn { min-height: 45px; padding: 11px 12px !important; font-size: 13px; }
.table-wrap { margin-top: 38px !important; }
.comparison-table th,
.comparison-table td { padding: 13px 14px; font-size: 12.5px; line-height: 1.5; }

/* Flow */
.flow-item { grid-template-columns: 104px minmax(0,1fr); gap: 22px; padding: 26px 0; }
.flow-step { padding-top: 4px; font-size: 11.5px; }
.flow-item h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.45; }
.flow-item p { font-size: 14.5px; line-height: 1.78; }
.delivery { margin-top: 9px; font-size: 11.5px; }

/* FAQ */
.faq-list summary { padding: 19px 42px 19px 0; font-size: 15.5px; line-height: 1.6; }
.faq-list summary::after { top: 17px; }
.faq-content { padding-bottom: 20px; }
.faq-content p { font-size: 14px; line-height: 1.82; }

/* Final CTA + form */
.final-grid { gap: 54px; padding-top: 44px; }
.final-grid h2 { margin: 13px 0 14px; font-size: clamp(31px, 3.7vw, 45px); line-height: 1.26; }
.final-grid > div > p { font-size: 15.5px; line-height: 1.82; }
.final-price { margin-top: 22px; }
.final-price span,
.final-price strong { padding-block: 10px; font-size: 13px; }
.check-list { margin-top: 14px; line-height: 1.7; }
.check-list li { font-size: 11.5px; }
.contact-card { padding-left: 34px; }
.contact-card h3 { font-size: 22px; line-height: 1.4; }
.contact-card > p { margin: 5px 0 17px; font-size: 12.5px; line-height: 1.7; }
.contact-card label { gap: 5px; margin: 12px 0; font-size: 12px; }
.contact-card input,
.contact-card select,
.contact-card textarea { min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.contact-card textarea { min-height: 112px; resize: vertical; }
.privacy-consent { margin-block: 12px 15px !important; font-size: 11.5px !important; line-height: 1.6; }
.form-note { margin-top: 9px !important; font-size: 10.5px !important; }

/* Footer */
.site-footer { padding: 34px 0 20px; }
.footer-inner { gap: 30px; align-items: flex-start; }
.footer-inner strong { font-size: 16px; }
.footer-operator { margin-top: 3px !important; font-size: 11.5px !important; }
.footer-links { gap: 10px 17px; font-size: 11.5px; line-height: 1.6; }
.copyright { margin-top: 20px; padding-top: 15px; font-size: 10.5px; }

/* Dark mode contrast: readable without looking stark */
html[data-theme="dark"] {
  --muted: #b7c1d2;
}
html[data-theme="dark"] .hero-lead { color: #bcc6d7; }
html[data-theme="dark"] .microcopy,
html[data-theme="dark"] .trust-strip { color: #aeb9cb; }

/* Tablet */
@media (max-width: 900px) {
  .container, .narrow { width: min(100% - 40px, 1140px); }
  .section-pad { padding: 74px 0; }
  .hero.section-pad { padding: 58px 0 68px; }
  .hero-grid { gap: 36px; }
  .hero-card { max-width: 600px; margin-inline: 0; }
  .section-heading { margin-bottom: 36px; }
  .pricing-grid { gap: 14px !important; }
  .price-card,
  .price-card.featured { padding: 26px 24px !important; }
  .price-card .plan-for { min-height: 0 !important; }
  .final-grid { gap: 40px; }
  .contact-card { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.7; }
  .container, .narrow { width: min(100% - 28px, 1140px); }
  .section-pad { padding: 58px 0; }
  .header-inner { height: 62px; gap: 12px; }
  .brand-copy { font-size: 21px !important; }
  .hero.section-pad { padding: 38px 0 52px; }
  .hero-grid { gap: 30px; }
  .hero h1 { margin: 12px 0 14px; font-size: clamp(32px, 10vw, 41px); line-height: 1.16; }
  .hero-lead { font-size: 15.5px; line-height: 1.75; }
  .hero-points { margin: 20px 0 22px; }
  .hero-point { padding: 11px 0; }
  .hero-actions { gap: 8px; }
  .btn-lg { min-height: 50px; padding-inline: 18px; }
  .microcopy { text-align: center; }
  .hero-card { padding: 19px 16px; border-radius: 16px; }
  .hero-card-top { margin-bottom: 15px; }
  .chat { padding: 12px 13px; font-size: 12.5px; line-height: 1.7; }
  .chat-user { margin-left: 12px; }
  .chat-ai { margin-right: 12px; }
  .speed-row { margin-top: 15px; padding-top: 14px; }
  .speed-num { font-size: 38px; }
  .trust-strip { margin-top: 38px; padding-top: 14px; font-size: 11px; }
  .trust-strip span:not(:last-child)::after { margin-inline: 7px; }

  .section-heading { margin-bottom: 31px; }
  .section-heading h2 { margin: 11px 0 9px; font-size: clamp(27px, 8.5vw, 34px); line-height: 1.28; }
  .section-heading p { font-size: 14px; }

  .problem-card { grid-template-columns: 36px minmax(0,1fr); column-gap: 9px; padding: 20px 0; }
  .problem-card h3 { font-size: 17.5px; }
  .problem-card p { font-size: 13.5px; }
  .bridge-box { margin-top: 28px; padding: 18px 0 18px 18px; }
  .bridge-box h3 { font-size: 20px; }

  .reason-card { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 28px 0; }
  .reason-number { font-size: 11.5px; }
  .reason-body h3 { margin-top: 7px; font-size: 21px; line-height: 1.42; }
  .reason-body > p { font-size: 13.5px; }
  .comparison-box { margin-top: 17px; }
  .comparison-box strong { font-size: 13px; }
  .steps-inline { margin-top: 17px; }

  .section-dark.section-pad { padding: 60px 0 64px; }
  .pricing-grid { gap: 13px !important; }
  .price-card,
  .price-card.featured { padding: 23px 19px !important; border-radius: 16px !important; }
  .price-card h3 { font-size: 19px !important; }
  .price-card .plan-for { margin-bottom: 14px !important; font-size: 12.5px; }
  .price-card .price { font-size: 34px !important; white-space: nowrap !important; }
  .price-card li,
  .price-card.featured li { font-size: 12px !important; }
  .table-wrap { margin-top: 30px !important; }

  .flow-item { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .flow-item h3 { font-size: 18.5px; }
  .flow-item p { font-size: 13.5px; }

  .faq-list summary { padding: 17px 36px 17px 0; font-size: 14.5px; }
  .faq-list summary::after { top: 15px; }
  .faq-content { padding-bottom: 18px; }
  .faq-content p { font-size: 13.5px; }

  .final-grid { gap: 32px; padding-top: 34px; }
  .final-grid h2 { font-size: 29px; }
  .final-grid > div > p { font-size: 14px; }
  .contact-card { padding-top: 26px; }
  .contact-card input,
  .contact-card select,
  .contact-card textarea { font-size: 16px; }
  .footer-inner { gap: 19px; }
}

@media (max-width: 380px) {
  .container, .narrow { width: min(100% - 22px, 1140px); }
  .brand-copy { font-size: 19px !important; }
  .hero h1 { font-size: 31px; }
  .hero-card { padding-inline: 14px; }
  .price-card,
  .price-card.featured { padding-inline: 16px !important; }
  .final-price { display: grid; grid-template-columns: 1fr; }
  .final-price span { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; }
}


/* =========================================================
   V6 / Spot options & legal publishing
   Keeps the existing layout language and only extends it.
   ========================================================= */
.service-scope-note {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid #8bb7ff;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.service-scope-note strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}
.service-scope-note p {
  margin: 6px 0 0;
  color: #b9c5d8;
  font-size: 12.5px;
  line-height: 1.75;
}

.aftercare-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.aftercare-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 27px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.aftercare-card .plan-kana {
  color: var(--primary);
  font-size: 12px;
}
.aftercare-card h3 {
  margin: 7px 0 5px;
  font-size: clamp(19px,1.8vw,22px);
  line-height: 1.4;
}
.aftercare-for {
  min-height: 47px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.aftercare-price {
  margin: 2px 0 15px;
  font-size: clamp(34px,3vw,40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.aftercare-price > span {
  margin-right: 2px;
  font-size: 18px;
}
.aftercare-price small {
  margin-left: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.aftercare-card ul {
  flex: 1;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.aftercare-card li {
  position: relative;
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.aftercare-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}
.aftercare-card .btn {
  min-height: 45px;
  font-size: 13px;
}
.legal-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 15px;
}
.legal-prices > div {
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal-prices strong,
.legal-prices span {
  display: block;
}
.legal-prices strong {
  font-size: 19px;
  line-height: 1.2;
}
.legal-prices span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}
.aftercare-note {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.aftercare-note strong {
  flex: none;
  color: var(--text);
}

html[data-theme="dark"] .aftercare-card {
  background: #121d32;
  border-color: rgba(255,255,255,.11);
}
html[data-theme="dark"] .aftercare-card li,
html[data-theme="dark"] .legal-prices > div,
html[data-theme="dark"] .aftercare-note {
  border-color: rgba(255,255,255,.10);
}
html[data-theme="dark"] .aftercare-card .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.20);
  color: #e9eef7;
}

@media (max-width: 900px) {
  .aftercare-grid { grid-template-columns: 1fr; }
  .aftercare-card { padding: 25px 24px; }
  .aftercare-for { min-height: 0; }
}
@media (max-width: 640px) {
  .service-scope-note { padding: 17px 16px; }
  .service-scope-note p { font-size: 12px; }
  .aftercare-grid { gap: 12px; }
  .aftercare-card { padding: 22px 19px; border-radius: 16px; }
  .aftercare-card h3 { font-size: 19px; }
  .aftercare-price { font-size: 34px; }
  .aftercare-card li { font-size: 12px; }
  .aftercare-note { display: block; }
  .aftercare-note strong { display: block; margin-bottom: 4px; }
}


/* ===== Parent brand navigation ===== */
.parent-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: -8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: color .2s ease, opacity .2s ease;
}
.parent-brand-link span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .55;
}
.parent-brand-link b {
  font-size: 10px;
  font-weight: 600;
  transform: translateY(-1px);
}
.parent-brand-link:hover { color: var(--text); }
.footer-operator a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  border-bottom-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color .2s ease, border-color .2s ease;
}
.footer-operator a:hover {
  color: #fff;
  border-bottom-color: currentColor;
}
html[data-theme="light"] .footer-operator a:hover { color: #fff; }
@media (max-width: 900px) {
  .parent-brand-link { display: none; }
}
