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

/* ── Design Tokens ── */
:root {
  --white:          #FFFFFF;
  --bg-light:       #F0F9FF;
  --bg-mid:         #E0F2FE;
  --primary:        #0EA5E9;
  --primary-dark:   #0284C7;
  --primary-light:  #38BDF8;
  --primary-pale:   #BAE6FD;
  --text-dark:      #0F172A;
  --text-mid:       #475569;
  --text-light:     #94A3B8;
  --border:         #E2E8F0;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:      0 4px 16px rgba(14,165,233,.12);
  --shadow-lg:      0 8px 32px rgba(14,165,233,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.container   { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
section      { padding: 88px 0; }

.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: var(--bg-mid);
  padding: 4px 14px; border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--text-mid);
  max-width: 560px; margin: 0 auto;
}

/* ════════════════════════════════
   HEADER
════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #F1F5F9;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text-dark); text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: .9rem; color: var(--text-mid); text-decoration: none; transition: color .2s; }
nav a:hover { color: var(--primary); }
.btn-nav {
  background: var(--primary); color: white; border: none;
  padding: 9px 22px; border-radius: 9px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none; display: inline-block;
}
.btn-nav:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
#hero {
  background: linear-gradient(175deg, var(--bg-light) 0%, var(--white) 60%);
  padding: 80px 0 72px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--primary-pale);
  border-radius: 100px; padding: 6px 18px;
  font-size: .8rem; color: var(--primary-dark); font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(14,165,233,.1);
}
#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.18; margin-bottom: 22px;
}
#hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-mid);
  max-width: 540px; margin-left: auto; margin-right: auto;
  margin-bottom: 48px;
}

/* Upload Box */
.upload-box {
  background: var(--white);
  border: 2.5px dashed var(--primary-pale);
  border-radius: var(--radius-lg);
  padding: 52px 32px 44px;
  max-width: 660px; margin: 0 auto 28px;
  cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.upload-box:hover, .upload-box.dragover {
  border-color: var(--primary);
  background: var(--bg-light);
  box-shadow: var(--shadow-md);
}
.upload-icon-wrap {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  transition: background .25s;
}
.upload-box:hover .upload-icon-wrap { background: var(--primary-pale); }
.upload-icon-wrap svg { width: 30px; height: 30px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.upload-sub   { font-size: .88rem; color: var(--text-light); margin-bottom: 24px; }
.btn-upload {
  background: var(--primary); color: white; border: none;
  padding: 13px 36px; border-radius: 11px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(14,165,233,.32);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-upload:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14,165,233,.42);
}
#fileInput { display: none; }
.upload-note { font-size: .78rem; color: var(--text-light); margin-top: 18px; }

/* Email input row */
.email-row {
  max-width: 660px; margin: 0 auto 12px;
  display: flex; gap: 10px;
}
.email-row input {
  flex: 1; padding: 13px 18px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .95rem; outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.email-row input:focus { border-color: var(--primary); }

/* Stats */
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 40px;
}
.stat-item  { text-align: center; }
.stat-num   { font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-light); margin-top: 4px; }

/* ════════════════════════════════
   HOW IT WORKS
════════════════════════════════ */
#how { background: var(--white); }

.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 52px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 44px;
  left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-pale), var(--primary), var(--primary-pale));
  z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 22px;
  box-shadow: 0 4px 18px rgba(14,165,233,.28);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-desc  { font-size: .88rem; color: var(--text-mid); line-height: 1.65; }

/* ════════════════════════════════
   FEATURES
════════════════════════════════ */
#features { background: var(--bg-light); }

.features-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 18px; margin-top: 52px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--bg-mid);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.feature-title { font-size: .98rem; font-weight: 700; margin-bottom: 9px; }
.feature-desc  { font-size: .86rem; color: var(--text-mid); line-height: 1.65; }

/* ════════════════════════════════
   BEFORE / AFTER
════════════════════════════════ */
#comparison { background: var(--white); }

.comp-wrap { max-width: 740px; margin: 52px auto 0; }
.comp-box {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  cursor: col-resize; user-select: none;
  aspect-ratio: 4/3; background: #f8fafc;
}

.comp-after {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 100%);
  display: flex; align-items: center; justify-content: center;
}
.comp-after-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.comp-after-circle {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 8px 32px rgba(14,165,233,.3);
}
.comp-before {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 50% 0 0);
}
.comp-before-inner {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.comp-before-circle {
  width: 140px; height: 140px; border-radius: 50%;
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.comp-divider {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 3px;
  background: white;
  box-shadow: 0 0 12px rgba(0,0,0,.15);
  z-index: 10;
}
.comp-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: white; box-shadow: 0 2px 12px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--primary); font-weight: 800;
  pointer-events: none;
}
.comp-label-before,
.comp-label-after {
  position: absolute; top: 14px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  pointer-events: none; z-index: 5;
}
.comp-label-before { left: 14px; color: #64748b; }
.comp-label-after  { right: 14px; color: var(--primary); }
.comp-captions {
  display: flex; justify-content: space-between;
  margin-top: 14px; padding: 0 4px;
}
.comp-caption {
  font-size: .82rem; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center; gap: 7px;
}
.cap-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ════════════════════════════════
   PRICING
════════════════════════════════ */
#pricing { background: var(--bg-light); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 52px;
  align-items: start;
}
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 26px; border: 1.5px solid var(--border);
  position: relative; transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.featured-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  font-size: .72rem; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.plan-name  { font-size: .85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 12px; }
.plan-price {
  font-size: 2.6rem; font-weight: 700;
  line-height: 1; color: var(--text-dark); margin-bottom: 4px;
}
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan-price span { font-size: .95rem; font-weight: 400; color: var(--text-mid); }
.plan-unit  { font-size: .78rem; color: var(--text-light); margin-bottom: 24px; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  font-size: .87rem; color: var(--text-mid);
  padding: 7px 0; display: flex; align-items: center; gap: 9px;
}
.plan-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.btn-plan {
  display: block; width: 100%; padding: 12px;
  border-radius: 10px; font-size: .93rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  text-align: center; text-decoration: none;
}
.btn-outline { border: 2px solid var(--primary); background: white; color: var(--primary); }
.btn-outline:hover { background: var(--bg-light); }
.btn-filled  { border: 2px solid var(--primary); background: var(--primary); color: white;
               box-shadow: 0 4px 14px rgba(14,165,233,.3); }
.btn-filled:hover { background: var(--primary-dark); border-color: var(--primary-dark);
                    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.4); }

/* ════════════════════════════════
   FAQ
════════════════════════════════ */
#faq { background: var(--white); }

.faq-list { max-width: 720px; margin: 52px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; padding: 20px 0;
  font-size: .97rem; font-weight: 600; color: var(--text-dark);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; transition: color .2s;
  font-family: inherit;
}
.faq-q:hover { color: var(--primary); }
.faq-chevron {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.faq-chevron svg {
  width: 13px; height: 13px; stroke: var(--primary); fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s;
}
.faq-item.open .faq-chevron { background: var(--primary); }
.faq-item.open .faq-chevron svg { stroke: white; transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 0 22px; font-size: .89rem; color: var(--text-mid); line-height: 1.75; text-align: left; }

/* ════════════════════════════════
   CTA BAND
════════════════════════════════ */
#cta {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  padding: 88px 0; text-align: center;
}
#cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: white; margin-bottom: 16px; }
#cta p   { font-size: 1rem; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.btn-cta {
  display: inline-block;
  background: white; color: var(--primary);
  border: none; padding: 17px 44px;
  border-radius: 13px; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.22); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer { background: #0F172A; color: var(--text-light); padding: 56px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 14px; }
.footer-desc { font-size: .86rem; line-height: 1.75; max-width: 280px; }
.footer-heading { font-size: .82rem; font-weight: 700; color: white; margin-bottom: 18px; letter-spacing: .06em; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: .84rem; color: var(--text-light); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 24px; text-align: center;
  font-size: .8rem;
}

/* ── スピンアニメーション ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid  { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 680px) {
  section { padding: 60px 0; }
  nav { display: none; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 28px; }
  .email-row { flex-direction: column; }
}
