/*
 * lp.css — 毎日ハングル 紹介LP専用スタイル
 * 基調色はロゴのティールグリーン（#2d7d6f）。コーチモードセクションのみゴールドでコントラストを作る。
 * tokens.css（デザイントークン）を前提に読み込むこと。
 */

:root {
  --lp-teal: #2d7d6f;
  --lp-teal-d: #1f5f54;
  --lp-teal-t: #e4f2ef;
}

body {
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.8;
}

.lp {
  width: 100%;
  overflow-x: hidden;
}

/* ===== 共通パーツ ===== */
.lp-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}
.lp-section--tint {
  max-width: none;
  background: var(--lp-teal-t);
}
.lp-section--tint > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lp-section__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--lp-teal);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 28px;
}
.lp-section__lead {
  text-align: center;
  color: var(--color-text2);
  margin-bottom: 24px;
}
.lp-section__punch {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--lp-teal);
  margin-top: 32px;
}

.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-teal);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-2xl);
  padding: 18px 48px;
  box-shadow: 0 4px 0 var(--lp-teal-d);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--lp-teal-d), 0 10px 24px rgba(45, 125, 111, 0.25);
}
.lp-cta-btn:active {
  transform: translateY(3px);
  box-shadow: none;
}

.lp-br-pc { display: inline; }
.lp-br-sp { display: none; }
@media (max-width: 600px) {
  .lp-br-pc { display: none; }
  .lp-br-sp { display: inline; }
}

/* ===== イラスト枠 ===== */
.lp-img {
  border-radius: 20px;
  overflow: hidden;
  margin: 32px auto 0;
}
.lp-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-img--43 {
  aspect-ratio: 4 / 3;
  max-width: 480px;
}
.lp-img--sq {
  aspect-ratio: 1 / 1;
  max-width: 300px;
  margin-bottom: 32px;
}
.lp-img--hero {
  margin-top: 40px;
}

/* ===== ヒーロー ===== */
.lp-hero {
  background: linear-gradient(170deg, var(--lp-teal-t) 0%, var(--color-surface) 85%);
  text-align: center;
  padding: 64px 24px 56px;
}
.lp-hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.lp-hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.lp-hero__name {
  font-size: 22px;
  font-weight: 900;
  color: var(--lp-teal);
  letter-spacing: 0.06em;
}
.lp-hero__tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-teal);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.lp-hero__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 20px;
}
.lp-hero__sub {
  font-size: 15px;
  color: var(--color-text2);
  margin-bottom: 32px;
}
.lp-hero__note {
  font-size: 12px;
  color: var(--color-text2);
  margin-top: 14px;
}
@media (max-width: 600px) {
  .lp-hero__title { font-size: 26px; }
}

/* ===== つまずき共感 ===== */
.lp-trouble-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-trouble {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
}
.lp-trouble__icon {
  font-size: 24px;
  color: var(--color-text2);
  flex-shrink: 0;
}

/* ===== 機能紹介 ===== */
.lp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .lp-features { grid-template-columns: 1fr; }
}
.lp-feature {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.lp-feature__icon {
  font-size: 32px;
  color: var(--lp-teal);
  margin-bottom: 10px;
}
.lp-feature__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}
.lp-feature__desc {
  font-size: 13px;
  color: var(--color-text2);
}

/* ===== フラッシュカード体験デモ =====
   本体アプリ（css/style.css の .flip-front / .flip-back）と同じ見た目に合わせている */
.lp-demo {
  display: flex;
  justify-content: center;
}
.lp-demo-scene {
  width: 100%;
  max-width: 340px;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
}
.lp-demo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lp-demo-scene.is-flipped .lp-demo-inner {
  transform: rotateY(180deg);
}
.lp-demo-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}
.lp-demo-face--front {
  background: #fffdf5;
  border: 2px solid #f0e8c8;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 8px 32px,
    rgba(0, 0, 0, 0.06) 0px 2px 8px;
}
.lp-demo-face--back {
  background: #f0fff4;
  border: 2px solid #c0edd0;
  box-shadow:
    rgba(88, 204, 2, 0.12) 0px 8px 32px,
    rgba(0, 0, 0, 0.06) 0px 2px 8px;
  transform: rotateY(180deg);
  padding: 20px;
  gap: 8px;
}
.lp-demo-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.lp-demo-label--front {
  color: #c8b560;
}
.lp-demo-label--back {
  color: var(--color-green);
}
.lp-demo-ko {
  font-family: var(--font-korean);
  font-size: 52px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.15;
}
.lp-demo-rd {
  font-family: var(--font-korean);
  font-size: 14px;
  color: var(--color-text);
}
.lp-demo-ja {
  font-family: var(--font-ja);
  font-size: 38px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.2;
}
.lp-demo-speak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid #e8dfb8;
  color: #c8a020;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.lp-demo-speak:hover {
  transform: scale(1.05);
}
.lp-demo-speak:active {
  transform: scale(0.97);
}
.lp-demo-speak__icon {
  font-size: 17px;
}
.lp-demo-ex {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-top: 1.5px solid #d4eed8;
  padding-top: 10px;
  margin-top: 4px;
  justify-content: center;
}
.lp-demo-ex__texts {
  flex: 1;
  text-align: left;
}
.lp-demo-ex__ko {
  font-family: var(--font-korean);
  font-size: 18px;
  color: var(--color-text);
}
.lp-demo-ex__rd {
  font-size: 11px;
  color: #7b9;
  margin-top: 1px;
}
.lp-demo-ex__ja {
  font-size: 13px;
  color: var(--color-text);
  margin-top: 3px;
}
.lp-demo-ex__speaker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 122, 114, 0.06);
  border: 1px solid rgba(0, 122, 114, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--color-green);
}
.lp-demo-ex__speaker:active {
  transform: scale(0.94);
}
.lp-demo-ex__speaker-icon {
  font-size: 15px;
}
.lp-demo-hint {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 6px;
}
.lp-demo-hint--back {
  color: #a8c8b0;
  margin-top: 2px;
}

/* ===== コーチモード（ゴールド） ===== */
.lp-section--coach {
  max-width: none;
  background: var(--color-gold-t);
}
.lp-section--coach > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lp-section__title--coach {
  color: var(--color-gold-d);
}
.lp-title-icon {
  font-size: 26px;
  vertical-align: -4px;
  margin-right: 6px;
}
.lp-coach-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-coach-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
}
.lp-coach-item__icon {
  font-size: 24px;
  color: var(--color-gold);
  flex-shrink: 0;
}
.lp-section__punch--coach {
  color: var(--color-gold-d);
  font-size: 15px;
  font-weight: 700;
}

/* ===== 開発ストーリー ===== */
.lp-story {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
}
.lp-story strong {
  color: var(--lp-teal);
}
.lp-story-audio {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--lp-teal-t);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 14px;
}
.lp-story-audio__icon {
  font-size: 26px;
  color: var(--lp-teal);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ===== FAQ ===== */
.lp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-faq {
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 4px 20px;
}
.lp-faq__q {
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.lp-faq__q::-webkit-details-marker { display: none; }
.lp-faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-teal);
}
.lp-faq[open] .lp-faq__q::after {
  content: "−";
}
.lp-faq__a {
  font-size: 14px;
  color: var(--color-text2);
  padding-bottom: 16px;
}

/* ===== 最終CTA ===== */
.lp-final {
  background: linear-gradient(170deg, var(--color-surface) 0%, var(--lp-teal-t) 100%);
  text-align: center;
  padding: 64px 24px;
}
.lp-final__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--lp-teal);
  margin-bottom: 12px;
}
.lp-final__sub {
  font-size: 14px;
  color: var(--color-text2);
  margin-bottom: 28px;
}

/* ===== フッター ===== */
.lp-footer {
  background: var(--lp-teal);
  text-align: center;
  padding: 40px 24px 32px;
}
.lp-footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.lp-footer__name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 22px;
}
.lp-footer__links a {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.9;
}
.lp-footer__links a:hover {
  text-decoration: underline;
}
.lp-footer__copy {
  font-size: 11px;
  color: #fff;
  opacity: 0.7;
}

/* ===== インタラクション =====
   1) ヒーローはページ表示時に上から順にフェードイン（CSSのみ）
   2) それ以降の要素はスクロールで表示域に入ったらフェードイン（lp.js + .lp-reveal）
   JSが無効な環境では .lp-js が付かず、すべて最初から表示される */
@keyframes lpFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ヒーロー登場演出（順次） */
.lp-hero__brand,
.lp-hero__tagline,
.lp-hero__title,
.lp-hero__sub,
.lp-hero .lp-cta-btn,
.lp-hero__note,
.lp-hero .lp-img {
  animation: lpFadeUp 0.7s ease both;
}
.lp-hero__tagline { animation-delay: 0.15s; }
.lp-hero__title { animation-delay: 0.25s; }
.lp-hero__sub { animation-delay: 0.4s; }
.lp-hero .lp-cta-btn { animation-delay: 0.55s; }
.lp-hero__note { animation-delay: 0.65s; }
.lp-hero .lp-img { animation-delay: 0.75s; }

/* スクロールフェードイン */
.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.lp-js .lp-reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* カード群は少しずつ時間差をつける（リスト・グリッドの2〜4番目） */
.lp-js .lp-reveal:nth-child(2) { transition-delay: 0.1s; }
.lp-js .lp-reveal:nth-child(3) { transition-delay: 0.2s; }
.lp-js .lp-reveal:nth-child(4) { transition-delay: 0.3s; }

/* 動きを減らす設定のユーザーにはアニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  .lp-hero__brand,
  .lp-hero__tagline,
  .lp-hero__title,
  .lp-hero__sub,
  .lp-hero .lp-cta-btn,
  .lp-hero__note,
  .lp-hero .lp-img {
    animation: none;
  }
  .lp-js .lp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
