/* 憶-英単語 LP  — スマホ基準、900px以上でPCレイアウト */
:root {
  --navy-deep: #102A56;
  --navy-darker: #0B1F42;
  --primary: #315D9D;
  --cta-a: #1D52A3;
  --cta-b: #15448F;
  --page: #F3F7FC;
  --tint: #EAF0F8;
  --border: #DCE5F0;
  --text: #1b2434;
  --text-sub: #3A4A60;
  --muted: #5B6B82;
  --ai: #6C63FF;
  --ai-text: #5A52D9;
  --ai-tint: #EFEEFF;
  --phone: #14203A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); }
a:hover { color: #244C84; }
h1, h2, h3, p { margin: 0; }
.en { font-family: 'Inter', system-ui, sans-serif; }
.nowrap { white-space: nowrap; }
section[id], div[id] { scroll-margin-top: 72px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* リリース前／後の切り替え（config.js が html[data-release] を設定） */
html[data-release="before"] .when-released { display: none !important; }
html[data-release="after"] .when-prerelease { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 30px; height: auto; }
.brand span { font-weight: 700; font-size: 15px; color: var(--navy-deep); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { display: none; font-size: 14px; font-weight: 500; color: var(--text-sub); text-decoration: none; }
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  border-radius: 999px; background: var(--cta-b); color: #FFFFFF;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pill-btn:hover { color: #FFFFFF; background: #244C84; }

/* ---------- FV ---------- */
.hero { overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "visual" "cta";
  padding-top: 26px;
}
.hero__copy { grid-area: copy; display: flex; flex-direction: column; gap: 12px; padding: 0 2px; }
.hero__title {
  font-size: min(37px, clamp(25px, calc((100vw - 44px) / 10.3), 37px));
  line-height: 1.38; font-weight: 900; letter-spacing: 0.01em; color: var(--navy-deep);
}
.hero__title .accent { color: var(--primary); }
.hero__lead { font-size: 13px; line-height: 1.75; color: var(--text-sub); }

.hero__visual { grid-area: visual; display: flex; justify-content: center; margin-top: 14px; }
.stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 560; }
.stage__circle { position: absolute; aspect-ratio: 1 / 1; border-radius: 50%; }
.stage__circle--blue { left: 38%; top: 4%; width: 74%; background: #DCE7F6; }
.stage__circle--purple { left: 30%; top: 70%; width: 30%; background: #E6E4FF; }
.phone {
  position: absolute; left: 44%; top: 1.4%; width: 48%; aspect-ratio: 192 / 420;
  padding: 2.8%; border-radius: 17% / 7.8%;
  background: var(--phone);
  box-shadow: 0 24px 48px rgba(16, 42, 86, 0.22), 0 4px 10px rgba(16, 42, 86, 0.12);
}
.phone__screen { width: 100%; height: 100%; border-radius: 14% / 6.4%; overflow: hidden; background: #FFFFFF; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.ex-card {
  position: absolute; display: flex; flex-direction: column; gap: 5px;
  background: #FFFFFF; border-radius: 14px;
}
.ex-card--plain {
  left: 4%; top: 13.4%; width: 56%; padding: 12px 13px;
  border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(16, 42, 86, 0.08);
}
.ex-card--ai {
  left: 3.6%; top: 49.5%; width: 60%; padding: 13px 14px; gap: 7px; border-radius: 16px;
  border: 2px solid var(--ai); box-shadow: 0 14px 30px rgba(108, 99, 255, 0.18);
}
.ex-card__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.ex-card__head--ai { justify-content: flex-start; }
.ex-card__label { font-size: 10px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ex-card__label--ai { color: var(--ai-text); }
.ex-card__meaning {
  font-size: 10px; font-weight: 700; color: var(--navy-deep);
  background: var(--page); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.ex-card__tag {
  font-size: 12px; font-weight: 700; color: #FFFFFF;
  background: var(--ai); border-radius: 999px; padding: 3px 11px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(108, 99, 255, 0.3);
}
.ex-card__ja { font-size: 10.5px; line-height: 1.6; color: var(--muted); min-height: 3.2em; }
.ex-card__text { font-size: 12px; line-height: 1.5; color: var(--muted); }
.ex-card__text--ai { font-size: 12.5px; font-weight: 500; color: var(--text); }
.ex-card__text mark {
  font-weight: 700; color: var(--navy-deep); background: var(--ai-tint);
  border-radius: 3px; padding: 0 2px;
}
.stage__arrow {
  position: absolute; left: 23%; top: 38%; width: 34px; height: 34px;
  border-radius: 50%; background: var(--ai); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(108, 99, 255, 0.35);
}

/* 興味アイコン: タップ/ホバーで例文を切り替える */
.hero__visual { position: relative; flex-direction: column; align-items: center; gap: 14px; }
.interests { order: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.interest {
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #DCE7F6; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}
.interest img { width: 62%; height: 62%; object-fit: contain; pointer-events: none; }
@media (max-width: 360px) {
  .interests { gap: 4px; }
  .interest { width: 35px; height: 35px; }
}
.interest:hover, .interest:focus-visible, .interest.is-active { background: #D9D6FF; transform: scale(1.06); }
.interest:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }
.link-line {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 3;
}
.link-line path {
  fill: none; stroke: var(--ai); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 0); stroke-dashoffset: var(--len, 0);
  transition: stroke-dashoffset .35s ease;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}
.link-line.is-on path { stroke-dashoffset: 0; }
.ex-card__text--ai { min-height: 4.5em; }
.ex-card--ai.is-linked { box-shadow: 0 14px 30px rgba(108, 99, 255, 0.3); }

.hero__cta {
  grid-area: cta;
  margin: 8px -20px 0; padding: 16px 20px 22px;
  background: #FFFFFF; border-top: 1px solid var(--border);
}
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.badge { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.badge img { height: 46px; width: auto; }
.cta-note { margin-top: 9px; text-align: center; font-size: 11px; color: var(--muted); }
.qr { display: none; }

.coming-soon { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.coming-soon__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 999px;
  background: var(--tint); color: var(--navy-deep);
  font-size: 15px; font-weight: 700;
}
.coming-soon__text { font-size: 12px; color: var(--muted); }
.coming-soon__link { font-size: 13px; font-weight: 700; }

/* ---------- 共通セクション ---------- */
.section { padding: 48px 0; }
.section--white { background: #FFFFFF; }
.section--tint { background: var(--page); }
.section__inner { display: flex; flex-direction: column; gap: 24px; }
.section__title {
  font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--navy-deep);
}
.section__note { font-size: 11px; color: var(--muted); }
.narrow { max-width: 880px; margin: 0 auto; width: 100%; }

/* 02 悩み */
.pains { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pain {
  background: #FFFFFF; border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.pain img { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.pain__body { display: flex; flex-direction: column; gap: 2px; }
.pain__title { font-size: 15px; font-weight: 700; line-height: 1.5; }
.pain__who { font-size: 12px; color: var(--muted); }

/* 03 1日 */
.day { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.day__step { display: flex; flex-direction: column; gap: 10px; }
.day__time {
  align-self: flex-start; font-size: 12px; font-weight: 700;
  color: var(--primary); background: var(--tint); border-radius: 999px; padding: 4px 12px;
}
.day__time--ai { color: var(--ai-text); background: var(--ai-tint); }
.day__title { font-size: 16px; font-weight: 700; line-height: 1.55; }
.day__text { font-size: 13px; line-height: 1.75; color: var(--text-sub); }
.shot {
  margin-top: 2px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(16, 42, 86, 0.08);
}
.shot img { width: 100%; height: auto; }

/* 04 機能 */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.feature {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.feature--hl { border: 2px solid var(--ai); }
.feature__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #FFFFFF;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__icon--blue { background: linear-gradient(180deg, #5A96F8, #2E63D6); }
.feature__icon--ai { background: var(--ai); }
.feature__icon--orange { background: linear-gradient(180deg, #FFB37A, #F3883C); }
.feature__icon--green { background: linear-gradient(180deg, #52D39B, #19AC72); }
.feature__title { font-size: 14px; font-weight: 700; }
.feature__text { font-size: 12px; line-height: 1.6; color: var(--text-sub); }
.features__note { font-size: 12px; color: var(--muted); }

/* 05 例文の実例 */
.word-chip {
  align-self: flex-start; font-size: 14px; font-weight: 700;
  background: var(--page); border-radius: 999px; padding: 6px 14px;
}
.examples { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.example {
  border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; background: #FFFFFF;
}
.example__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.example__who { display: flex; align-items: center; gap: 8px; }
.example__who img { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.example__name { font-size: 12px; font-weight: 700; color: var(--navy-deep); }
.example__real {
  font-size: 10px; font-weight: 700; color: var(--ai-text);
  background: var(--ai-tint); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; color: var(--text-sub); background: var(--page); border-radius: 999px; padding: 3px 10px; }
.tag--main { font-weight: 700; color: var(--primary); background: var(--tint); }
.example__text { font-size: 14px; line-height: 1.6; font-weight: 500; }

/* 06 仕組み */
.reasons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.reason { background: #FFFFFF; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.reason__num { font-size: 12px; font-weight: 700; color: var(--ai); }
.reason__title { font-size: 15px; font-weight: 700; }
.reason__text { font-size: 13px; line-height: 1.7; color: var(--text-sub); }

/* 07 料金 */
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px; line-height: 1.5; table-layout: fixed;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #FFFFFF;
}
.price-table th, .price-table td { padding: 11px 8px; border-top: 1px solid var(--border); }
.price-table thead th { border-top: 0; background: var(--page); text-align: center; padding: 12px 8px; }
.price-table thead th:first-child { width: 36%; }
.price-table thead th { white-space: nowrap; }
.price-table thead th.premium { background: var(--primary); color: #FFFFFF; }
.price-table__plan { display: block; font-size: 12px; font-weight: 700; }
.price-table__price { display: block; font-size: 17px; font-weight: 900; }
.price-table tbody th { text-align: left; padding-left: 10px; font-weight: 700; }
.price-table tbody th small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.price-table td { text-align: center; color: var(--text-sub); }
.price-table td small { display: block; font-size: 11px; color: var(--muted); }
.price-table td.premium { font-weight: 700; color: var(--navy-deep); background: var(--tint); }
.price-note { font-size: 12px; line-height: 1.7; color: var(--text-sub); }

/* 08 FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: #FFFFFF; border-radius: 12px; padding: 14px 16px; }
.faq summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.faq p { margin-top: 8px; font-size: 13px; line-height: 1.7; color: var(--text-sub); }

/* 09 最終CTA */
.final { background: var(--navy-deep); color: #FFFFFF; }
.final__inner { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; }
.final__title { font-size: 22px; line-height: 1.5; font-weight: 700; color: #FFFFFF; }
.final__text { font-size: 14px; line-height: 1.8; color: #E3EAF5; }
.final .badge { min-height: 52px; }
.final .coming-soon__badge { background: #FFFFFF; }
.final .coming-soon__text { color: #C9D6EA; }
.final .coming-soon__link { color: #FFFFFF; }

/* フッター */
.site-footer { background: var(--navy-darker); }
.site-footer__inner {
  padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 12px; }
.footer-links a { color: #C9D6EA; }
.footer-copy { font-size: 11px; color: #8DA3C4; }

/* ---------- 640px〜 ---------- */
@media (min-width: 640px) {
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- PC（900px〜） ---------- */
@media (min-width: 900px) {
  .container { padding: 0 40px; }
  section[id], div[id] { scroll-margin-top: 88px; }

  .site-header__inner { min-height: 72px; }
  .brand img { width: 38px; }
  .brand span { font-size: 18px; }
  .site-nav__link { display: inline; }
  .pill-btn { min-height: 44px; padding: 0 22px; font-size: 14px; }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas: "copy visual" "cta visual";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: center;
    padding-top: 64px; padding-bottom: 72px;
    min-height: 680px;
  }
  .hero__copy { align-self: end; gap: 22px; }
  .hero__title { font-size: clamp(38px, 4.2vw, 55px); line-height: 1.36; }
  .hero__lead { font-size: 18px; line-height: 1.8; }
  .hero__visual { margin-top: 0; flex-direction: row; justify-content: flex-end; gap: 0; }
  .hero__visual .stage { flex: 0 1 520px; }
  .interests {
    order: 0; margin-top: 0;
    position: absolute; left: -84px; top: 50%; transform: translateY(-50%); z-index: 2;
    flex-direction: column; flex-wrap: nowrap; gap: 9px;
  }
  .interest { width: 58px; height: 58px; }
  .hero__cta {
    align-self: start; margin: 36px 0 0; padding: 0;
    background: transparent; border-top: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  }
  .hero__cta .badges { display: flex; flex-wrap: wrap; gap: 12px; }
  .badge { min-height: 52px; }
  .badge img { height: 52px; }
  .cta-note { text-align: left; font-size: 13px; margin-top: 12px; }
  .qr {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px 12px 12px; background: #FFFFFF;
    border: 1px solid var(--border); border-radius: 16px;
  }
  .qr img { width: 92px; height: 92px; }
  .qr span { font-size: 13px; line-height: 1.7; font-weight: 700; color: var(--navy-deep); }
  .hero__cta .coming-soon { align-items: flex-start; text-align: left; }

  .ex-card--plain { padding: 16px 18px; gap: 7px; border-radius: 18px; }
  .ex-card--ai { padding: 17px 18px; gap: 9px; border-radius: 20px; }
  .ex-card__label, .ex-card__meaning { font-size: 12px; }
  .ex-card__tag { font-size: 14px; padding: 4px 14px; }
  .ex-card__ja { font-size: 12px; }
  .ex-card__text { font-size: 15px; }
  .ex-card__text--ai { font-size: 16px; }
  .stage__arrow { width: 44px; height: 44px; }

  .section { padding: 96px 0; }
  .section__inner { gap: 44px; }
  .section__title { font-size: 34px; line-height: 1.45; font-weight: 800; text-align: center; }
  .section__note { text-align: center; font-size: 12px; }

  .pains { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .pain {
    flex-direction: column; text-align: center; gap: 16px;
    border-radius: 20px; padding: 32px 24px; box-shadow: 0 8px 24px rgba(16, 42, 86, 0.06);
  }
  .pain img { width: 88px; height: 88px; }
  .pain__body { gap: 16px; }
  .pain__title { font-size: 17px; line-height: 1.6; }
  .pain__who { font-size: 13px; }

  .day { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 32px; }
  .day__step { flex: 0 1 calc((100% - 64px) / 3); max-width: 360px; }
  .day__time { font-size: 13px; padding: 5px 14px; }

  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .feature { border-radius: 20px; padding: 28px 24px; gap: 14px; }
  .feature__icon { width: 56px; height: 56px; border-radius: 16px; }
  .feature__icon svg { width: 26px; height: 26px; }
  .feature__title { font-size: 18px; }
  .feature__text { font-size: 14px; line-height: 1.8; }
  .features__note { text-align: center; font-size: 14px; margin-top: -16px; }

  .examples-head { align-items: center; }
  .word-chip { align-self: center; font-size: 16px; padding: 8px 18px; }
  .example { border-radius: 20px; padding: 24px; gap: 14px; }
  .example__who img { width: 40px; height: 40px; }
  .example__name { font-size: 14px; }
  .tag { font-size: 12px; }
  .example__text { font-size: 16px; line-height: 1.65; }

  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
  .reason { padding: 24px; gap: 8px; }
  .reason__title { font-size: 17px; }
  .reason__text { font-size: 14px; line-height: 1.8; }

  .price-wrap { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 16px; }
  .price-table { font-size: 15px; }
  .price-table th, .price-table td { padding: 14px 12px; }
  .price-table__plan { font-size: 15px; }
  .price-table__price { font-size: 22px; }
  .price-note { text-align: center; font-size: 14px; }

  .faq details { padding: 20px 24px; }
  .faq summary { font-size: 16px; }
  .faq p { font-size: 14px; line-height: 1.8; }

  .final__inner { padding-top: 88px; padding-bottom: 88px; align-items: center; text-align: center; gap: 22px; }
  .final__title { font-size: 36px; font-weight: 800; }
  .final__text { font-size: 16px; }
  .final__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; margin-top: 12px; }
  .final .badges { display: flex; gap: 12px; }
  .final .badge img { height: 52px; }

  .site-footer__inner {
    max-width: 1200px; margin: 0 auto; padding: 28px 40px;
    flex-direction: row-reverse; justify-content: space-between;
  }
  .footer-links { font-size: 13px; gap: 24px; }
}


@media (prefers-reduced-motion: reduce) {
  .link-line path, .interest { transition: none; }
  html { scroll-behavior: auto; }
}
