/* /lp (共通 LP) 専用スタイル
   共通の構造・トークンは lp-base.css にあり、ここではヒーローの
   「2 カード分岐」セクションだけを上書きする。 */

/* ── ヒーロー: 共通コピー + 2 カード分岐 ───────────
   既定の .lp-hero は 2 カラムだが、共通 LP では中央寄せ 1 カラム +
   カード 2 枚を下にスタックする。 */
.lp-hero.lp-hero--branch {
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
  padding: 64px 0 56px;
}
.lp-hero.lp-hero--branch .lp-hero__copy {
  max-width: 720px;
  margin: 0 auto;
}
.lp-hero.lp-hero--branch .lp-hero__sub {
  margin-left: auto;
  margin-right: auto;
}
/* 1st CTA は中央寄せ。lp-base.css の `.lp-hero__actions { align-items: flex-start }`
   を上書きしないと、中央寄せヒーローでも CTA だけ左寄せになる。 */
.lp-hero.lp-hero--branch .lp-hero__actions {
  align-items: center;
  margin-top: 4px;
}

/* ── ヒーロー背景: 芝の上のドリブル線画（全幅・右下） ──────
   クリームを抜いた線画 WebP をページ地の上に重ねるので継ぎ目は出ない。
   100vw に逃がし、右端あわせ・左はなりゆき（画面外へはみ出すだけで
   切れて見えない）。isolation + z-index:-1 で中央寄せのコピー/分岐カードを
   常に手前に置く。横スクロール防止に html を overflow-x: clip。
   - PC:     ::before をヒーロー要素いっぱい（height:100%）に
   - モバイル: .lp-hero__copy::after をコピー要素の高さに合わせる */
html { overflow-x: clip; }
.lp-hero.lp-hero--branch {
  position: relative;
  isolation: isolate;
}
.lp-hero.lp-hero--branch .lp-hero__copy {
  position: relative;
}
.lp-hero.lp-hero--branch::before,
.lp-hero.lp-hero--branch .lp-hero__copy::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: url(/static/lp/hero-dribble.webp) no-repeat right bottom;
  background-size: auto 100%;
  z-index: -1;
  pointer-events: none;
  /* 上側＝脚は見出し付近でフェードアウトさせ可読性を確保。 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
}
/* モバイル: コピー要素の高さに合わせる（::after を使い、::before は隠す） */
.lp-hero.lp-hero--branch::before { display: none; }
/* PC: ヒーロー要素いっぱい（::before）。コピー側 ::after は使わない */
@media (min-width: 561px) {
  .lp-hero.lp-hero--branch::before { display: block; }
  .lp-hero.lp-hero--branch .lp-hero__copy::after { display: none; }
}
/* モバイル: 足元を画面幅の ~15% 右へ寄せる（右ネガティブマージン相当）。
   ボックスは 100vw のまま、背景画像だけ右へずらして右端を画面外へ逃がす
   （ボックスを広げないので横スクロールが出ない）。
   ::after はモバイルでしか表示しないので無条件指定でよい。 */
.lp-hero.lp-hero--branch .lp-hero__copy::after {
  background-position: calc(100% + 15vw) bottom;
}

/* 本文・CTA注記は足元線画の上に来るので、半透明クリーム＋blur の
   角丸プレートを敷いて可読性を確保する（branch ヒーロー限定）。
   中央寄せヒーローなので inline-block でテキスト幅に収める。 */
.lp-hero.lp-hero--branch .lp-hero__sub,
.lp-hero.lp-hero--branch .lp-cta-note {
  display: inline-block;
  background: color-mix(in srgb, var(--kr-bg) 74%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: var(--kr-radius-sm);
}
.lp-hero.lp-hero--branch .lp-hero__sub {
  padding: 10px 16px;
}
.lp-hero.lp-hero--branch .lp-cta-note {
  padding: 5px 12px;
}

/* ── 2 カード分岐: For parents / For players ─────── */
.lp-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 24px auto 0;
}
.lp-branch__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 24px;
  /* 背景を少し透かして、裏のヒーロー線画（足元）をかすかに見せる。
     blur で線をやわらげ、カード本文の可読性は保つ。 */
  background: color-mix(in srgb, var(--kr-surface) 84%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 1px solid var(--kr-hair);
  border-radius: var(--kr-radius-md);
  box-shadow: var(--kr-shadow-card);
  color: var(--kr-ink);
  text-decoration: none;
  transition: transform 120ms cubic-bezier(.2,.7,.2,1),
              border-color 120ms cubic-bezier(.2,.7,.2,1),
              box-shadow 120ms cubic-bezier(.2,.7,.2,1);
}
.lp-branch__card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--kr-accent);
  box-shadow: var(--kr-shadow-pop);
}
.lp-branch__card:focus-visible {
  outline: 3px solid rgba(11,61,46,.25);
  outline-offset: 2px;
}
.lp-branch__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--kr-accent-sub);
  color: var(--kr-accent);
  border-radius: var(--kr-radius-sm);
}
.lp-branch__icon .material-symbols-outlined {
  font-size: 26px;
  font-variation-settings: 'wght' 500;
}
.lp-branch__kicker {
  font-family: var(--kr-font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--kr-tracking-mono);
  text-transform: uppercase;
  color: var(--kr-accent);
}
.lp-branch__title {
  font-family: var(--kr-font-jp);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--kr-ink);
}
.lp-branch__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--kr-ink-dim);
}
.lp-branch__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--kr-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--kr-tracking-mono);
  text-transform: uppercase;
  color: var(--kr-accent);
}
.lp-branch__more .material-symbols-outlined {
  font-size: 16px;
}

@media (max-width: 560px) {
  .lp-branch { grid-template-columns: 1fr; gap: 12px; }
  .lp-hero.lp-hero--branch { padding: 40px 0 40px; }
}

/* ── 公開リール: 横スクロールストリップ ────────────────
   How it works と Pricing の間に挟む、公開リールの発見導線。
   9:16 サムネを横スクロールで並べる。データが無ければ JS が
   セクションごと hidden にする（`[hidden]` を author CSS で明示上書き）。 */
.lp-reel-strip[hidden] { display: none !important; }
.lp-reel-strip__scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* lp-wrap の左右 20px パディングを食い込ませ、画面端まで流す */
  margin: 0 -20px;
  padding: 4px 20px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--kr-hair) transparent;
}
.lp-reel-strip__scroller::-webkit-scrollbar { height: 8px; }
.lp-reel-strip__scroller::-webkit-scrollbar-thumb {
  background: var(--kr-hair);
  border-radius: 99px;
}
.lp-reel-card {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: var(--kr-radius-md);
  overflow: hidden;
  background: var(--kr-surface-2);
  border: 1px solid var(--kr-hair);
  box-shadow: var(--kr-shadow-card);
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--kr-accent-ink);
  transition: transform 120ms cubic-bezier(.2,.7,.2,1),
              box-shadow 120ms cubic-bezier(.2,.7,.2,1);
}
.lp-reel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kr-shadow-pop);
  text-decoration: none;
}
.lp-reel-card:focus-visible {
  outline: 3px solid rgba(11,61,46,.35);
  outline-offset: 2px;
}
.lp-reel-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lp-reel-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: rgba(16, 18, 21, .42);
  color: #fff;
  backdrop-filter: blur(2px);
  opacity: .92;
}
.lp-reel-card__play .material-symbols-outlined {
  font-size: 24px;
  font-variation-settings: 'FILL' 1;
}
.lp-reel-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(16, 18, 21, .78), rgba(16, 18, 21, 0));
}
.lp-reel-card__title {
  font-family: var(--kr-font-jp);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-reel-card__by {
  font-family: var(--kr-font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .lp-reel-card { width: 116px; }
}

/* ── 運営からのお知らせ（LP セクション） ───────────────────────── */
.lp-news__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-news__item {
  background: var(--kr-surface);
  border: 1px solid var(--kr-hair);
  border-radius: var(--kr-radius-md);
  box-shadow: var(--kr-shadow-card);
}
.lp-news__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--kr-ink);
  border-radius: var(--kr-radius-md);
}
.lp-news__link:hover {
  border-color: var(--kr-accent);
  box-shadow: var(--kr-shadow-pop);
}
.lp-news__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-news__date {
  font-family: var(--kr-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--kr-ink-dim);
}
.lp-news__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--kr-ink);
}
/* 重要度バッジ（news.css と統一: info=neutral / warning=warn / critical=rec） */
.lp-news__sev {
  display: inline-flex;
  align-items: center;
  font-family: var(--kr-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--kr-surface-2);
  color: var(--kr-ink-dim);
  border: 1px solid var(--kr-hair);
}
.lp-news__sev[data-sev="warning"] {
  background: rgba(240, 180, 41, .18);
  color: #8a6200;
  border-color: transparent;
}
.lp-news__sev[data-sev="critical"] {
  background: var(--kr-rec);
  color: #fff;
  border-color: transparent;
}
