/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f8fc;
  --fg: #1e2d3d;
  --card: #ffffff;
  --card-fg: #1e2d3d;
  --primary: #3078b8;
  --primary-fg: #ffffff;
  --secondary: #eaf1f8;
  --secondary-fg: #243648;
  --muted: #f0f4f8;
  --muted-fg: #6b7f92;
  --accent: #2998c4;
  --accent-fg: #ffffff;
  --border: #dde5ed;
  --radius: 0.625rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.cta-btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 4px 14px rgba(48, 120, 184, 0.3);
}
.cta-btn--primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(48, 120, 184, 0.4);
}
.cta-btn svg { width: 20px; height: 20px; }

/* ===== HERO ===== */
.hero { background: var(--card); }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1rem;
}
.hero__text { text-align: center; }
.hero__badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--secondary-fg);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.hero__title span { color: var(--primary); }
.hero__desc {
  font-size: 1rem;
  color: var(--muted-fg);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero__note { font-size: 0.75rem; color: var(--muted-fg); margin-top: 1rem; }
.hero__img-wrap {
  position: relative;
  max-width: 480px;
  width: 100%;
}
.hero__img-main {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero__img-book {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 96px;
  height: 128px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.hero__img-book img { width: 100%; height: 100%; object-fit: cover; }

/* Book Text Overlay */
.book-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
}
.book-text-top { font-size: 5px; font-weight: 500; letter-spacing: 0.1em; color: #1e3a5f; opacity: 0.8; }
.book-text-center { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.book-text-line { width: 24px; height: 1px; background: rgba(30,58,95,0.3); }
.book-text-sub { font-size: 5px; font-weight: 500; color: rgba(30,58,95,0.7); letter-spacing: 0.05em; }
.book-text-title { font-size: 12px; font-weight: 700; color: #1e3a5f; text-align: center; line-height: 1.3; letter-spacing: -0.02em; }
.book-text-bottom { font-size: 4px; color: rgba(30,58,95,0.5); }

/* ===== PAIN POINTS ===== */
.pain { padding: 4rem 0; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--fg); }
.section-sub { color: var(--muted-fg); margin-bottom: 3rem; }
.pain__grid { display: grid; gap: 1.5rem; }
.pain__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s;
}
.pain__card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.pain__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.pain__icon svg { width: 28px; height: 28px; color: var(--primary); }
.pain__card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.pain__card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; }

/* ===== SOLUTION ===== */
.solution { background: var(--secondary); padding: 4rem 0; }
.solution__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.solution__img {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 480px;
}
.solution__features { flex: 1; }
.feature-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: rgba(48, 120, 184, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-item h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--secondary-fg); }
.feature-item p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; }

/* ===== BOOK CONTENTS ===== */
.contents { background: var(--card); padding: 4rem 0; }
.contents__grid { display: grid; gap: 1.5rem; }
.content-card {
  display: flex;
  gap: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}
.content-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.content-card__number { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-align: center; }
.content-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: rgba(48,120,184,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}
.content-card__icon svg { width: 24px; height: 24px; color: var(--primary); }
.content-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.content-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; }

/* ===== WHY FREE ===== */
.whyfree { padding: 4rem 0; }
.whyfree__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.whyfree__img {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  max-width: 400px;
}
.whyfree__content { flex: 1; }
.whyfree__content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.whyfree__content > p { color: var(--muted-fg); margin-bottom: 1.5rem; }
.check-list { margin-bottom: 2rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.check-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.assurance-box {
  background: rgba(234,241,248,0.5);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}
.assurance-box p { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.assurance-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.assurance-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.assurance-item span { font-size: 0.875rem; color: var(--muted-fg); }

/* ===== STEPS ===== */
.steps { background: var(--secondary); padding: 4rem 0; }
.steps__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.step-item { text-align: center; flex: 1; }
.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px rgba(48,120,184,0.3);
}
.step-circle svg { width: 28px; height: 28px; }
.step-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.5rem; }
.step-item h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--secondary-fg); }
.step-item p { font-size: 0.875rem; color: var(--muted-fg); }
.steps__note {
  margin-top: 2rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

/* ===== CTA FORM ===== */
.ctaform { background: var(--primary); padding: 4rem 0; }
.ctaform h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary-fg); margin-bottom: 1rem; }
.ctaform .sub { color: rgba(255,255,255,0.8); margin-bottom: 2rem; line-height: 1.7; }
.ctaform__form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; margin: 0 auto; }
.ctaform__input {
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.95);
  color: var(--fg);
}
.ctaform__input::placeholder { color: var(--muted-fg); }
.ctaform__input:focus { outline: 2px solid var(--primary-fg); outline-offset: 2px; }
.ctaform__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--card);
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.ctaform__submit:hover { opacity: 0.9; }
.ctaform__submit svg { width: 20px; height: 20px; }
.ctaform__note { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }
.ctaform__success {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 2rem;
  display: none;
}
.ctaform__success.active { display: block; }
.ctaform__success h3 { font-size: 1.25rem; font-weight: 600; color: var(--primary-fg); margin-top: 1rem; margin-bottom: 0.5rem; }
.ctaform__success p { font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.ctaform__success svg { margin: 0 auto; }

/* ===== DISCLAIMER ===== */
.disclaimer { background: var(--card); padding: 3rem 0; }
.disclaimer__box {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.disclaimer__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.disclaimer__header svg { width: 20px; height: 20px; color: var(--muted-fg); }
.disclaimer__header h2 { font-size: 1.125rem; font-weight: 600; }
.disclaimer__list li {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* ===== FOOTER ===== */
.footer { background: var(--fg); padding: 2.5rem 0; }
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer__links a { font-size: 0.875rem; color: var(--muted); transition: opacity 0.3s; }
.footer__links a:hover { opacity: 0.8; }
.footer__divider { display: none; color: rgba(240,244,248,0.3); }
.footer__bottom {
  border-top: 1px solid rgba(240,244,248,0.15);
  padding-top: 1.5rem;
  text-align: center;
}
.footer__bottom p { font-size: 0.75rem; color: rgba(240,244,248,0.6); line-height: 1.7; }
.footer__copy { color: rgba(240,244,248,0.4) !important; margin-top: 1rem; }

/* ===== RESPONSIVE: md (768px+) ===== */
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    gap: 3rem;
    padding: 4rem 1rem;
  }
  .hero__text { text-align: left; flex: 1; }
  .hero__desc { margin: 0 0 2rem; }
  .hero__title { font-size: 2.5rem; }
  .hero__img-wrap { flex: 1; }
  .hero__img-book { width: 128px; height: 176px; bottom: -24px; left: -32px; }
  .book-text-overlay { padding: 14px 10px; }
  .book-text-top { font-size: 7px; }
  .book-text-sub { font-size: 6px; }
  .book-text-title { font-size: 16px; }
  .book-text-bottom { font-size: 5px; }
  .book-text-center { gap: 4px; }
  .book-text-line { width: 32px; }
  .pain__grid { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 1.875rem; }
  .solution__inner { flex-direction: row; }
  .solution__img { flex-shrink: 0; }
  .contents__grid { grid-template-columns: repeat(2, 1fr); }
  .whyfree__inner { flex-direction: row; }
  .whyfree__content h2 { font-size: 1.875rem; }
  .steps__grid { flex-direction: row; gap: 1rem; }
}

/* ===== RESPONSIVE: sm (640px+) ===== */
@media (min-width: 640px) {
  .ctaform__form { flex-direction: row; }
  .ctaform__input { flex: 1; }
  .ctaform h2 { font-size: 1.875rem; }
  .footer__links { flex-direction: row; justify-content: center; }
  .footer__divider { display: inline; }
}
