/* DOPOW LP（/・/en/・/zh-hant/・/ko/）— design/lp/DESIGN.md §5・§6.1。トークンは base.css */

/* ---------- 動画の上の小さな操作ボタン（再生／一時停止） ---------- */
.vbtn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-night); border-radius: var(--r-btn);
  background: var(--glass); color: var(--snow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer;
}
.vbtn::before { /* 既定は ▶ */
  content: ""; width: 12px; height: 14px; margin-left: 3px;
  background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.vbtn.is-playing::before { /* 再生中は ‖ */
  width: 4px; height: 14px; margin: 0 7px 0 0; clip-path: none;
  box-shadow: 7px 0 0 currentColor;
}
.vbtn:focus-visible { outline: 2px solid var(--snow); outline-offset: 2px; }

.nw { white-space: nowrap; }

/* ---------- ① ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1000px;
  background: var(--ai-deep); color: var(--snow);
}
.hero__media, .hero__media img, .hero__video, .hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img, .hero__video { object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .6s var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__scrim {
  background:
    linear-gradient(to bottom, rgba(18, 31, 51, .5) 0%, rgba(18, 31, 51, 0) 34%),
    linear-gradient(to top, rgba(18, 31, 51, .82) 0%, rgba(18, 31, 51, .62) 28%, rgba(18, 31, 51, .3) 43%, rgba(18, 31, 51, 0) 55%);
}
.hero__in {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  padding: 72px var(--gut) 64px;
  text-shadow: 0 1px 16px rgba(18, 31, 51, .55);
}
.hero__logo { grid-area: 1 / 1; align-self: start; margin: 0; }
.hero__logo img { width: clamp(220px, 34vw, 520px); height: auto; filter: drop-shadow(0 2px 14px rgba(18, 31, 51, .45)); }
.hero__yomi { display: block; margin-top: 10px; font: 500 13px/1 var(--mincho); letter-spacing: .5em; }
.hero__vert { grid-area: 1 / 2 / 3 / 3; justify-self: end; align-self: start; margin-top: 8px; }
.hero__body { grid-area: 3 / 1 / 4 / 3; display: grid; justify-items: start; gap: 16px; max-width: 560px; }
.hero__lead { max-width: 30em; }
.hero__note { color: rgba(244, 247, 250, .86); }
.hero .btn-text { color: var(--snow); }
.hero .store { margin-top: 4px; }
.hero__toggle { position: absolute; right: var(--gut); bottom: 24px; z-index: 2; }
.hero__down { position: absolute; left: 50%; bottom: 0; width: 1px; height: 40px; background: rgba(244, 247, 250, .6); }
.hero :focus-visible { outline-color: var(--snow); }
:lang(en) .hero__vert, :lang(ko) .hero__vert { grid-area: 2 / 1 / 3 / 3; align-self: end; justify-self: start; margin: 0 0 24px; font-size: clamp(26px, 3vw, 40px); }
@media (orientation: portrait) and (max-width: 820px) {
  .hero__in { padding-top: 64px; padding-bottom: 56px; }
  .hero__body { gap: 14px; }
}
@media (max-width: 599px) {
  .hero__lead { font-size: 15px; line-height: 1.85; }
  .hero__in { column-gap: 12px; }
}

/* ---------- ② はじめに ---------- */
.intro__lead { margin-top: 32px; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px;
  margin-top: 64px; list-style: none;
}
.facts li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  padding-top: 20px; border-top: 1px solid var(--line);
  font: 500 17px/1.4 var(--mincho); letter-spacing: .06em;
}
.facts__word { font: 600 clamp(22px, 2.6vw, 32px)/1.25 var(--mincho); letter-spacing: .06em; align-self: flex-end; }
:lang(en) .facts li { font-family: var(--serif-en); letter-spacing: .01em; }
:lang(en) .facts__word { font-family: var(--serif-en); letter-spacing: 0; }
:lang(ko) .facts li, :lang(ko) .facts__word { letter-spacing: -.02em; }
:lang(ko) .clip-thumb { letter-spacing: 0; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- ③〜⑤ 特徴 ---------- */
.feat { padding-block: clamp(48px, 6vw, 96px); }
.intro + .feat { padding-top: 0; }
.feat__grid { display: grid; gap: 32px; align-items: center; }
.feat__text .body { margin-top: 28px; }
@media (min-width: 1024px) {
  .feat__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .feat__media { grid-column: 1 / 8; }
  .feat__text { grid-column: 8 / 13; padding-left: clamp(16px, 2.5vw, 48px); }
  .feat--rev .feat__media { grid-column: 6 / 13; grid-row: 1; }
  .feat--rev .feat__text { grid-column: 1 / 6; grid-row: 1; padding: 0 clamp(16px, 2.5vw, 48px) 0 0; }
}
.feat--air { background: linear-gradient(180deg, var(--snow) 0%, #F1E3DE 55%, var(--dusk) 100%); padding-bottom: clamp(64px, 8vw, 120px); }

/* 動画の枠（16:9） */
.vframe {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-card);
  background: var(--ai-deep); box-shadow: var(--shadow);
}
.vframe__poster, .vframe__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vframe__v, .phone__v { opacity: 0; transition: opacity .3s var(--ease); }
.vframe__v.is-on, .phone__v.is-on { opacity: 1; }
.vframe__btn, .phone__btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; }

/* ---------- ⑥ ステージ ---------- */
.stages { background: linear-gradient(180deg, var(--dusk) 0%, #DFC0B8 100%); padding-block: clamp(48px, 6vw, 96px) clamp(64px, 7vw, 112px); }
.stages__head .lead { margin-top: 28px; }
.stages__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.stages__arrow {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(30, 51, 80, .35); border-radius: var(--r-btn);
  background: rgba(244, 247, 250, .5); color: var(--ai); cursor: pointer; font-size: 18px;
}
.stages__arrow:disabled { opacity: .35; cursor: default; }
.stages__rail {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
  padding: 16px var(--gut) 8px; margin-top: 8px;
  scrollbar-width: thin;
}
.stages__rail:focus-visible { outline-offset: -4px; }
.stages__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 520px); gap: 16px;
  list-style: none; width: max-content;
}
.stage {
  position: relative; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
  column-gap: 12px;
}
.stage__fig {
  grid-column: 1 / -1; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--ai);
}
.stage__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.stage:hover .stage__fig img { transform: scale(1.03); }
.stage__seal { position: absolute; left: 12px; top: 0; border-radius: 0 0 var(--r-seal) var(--r-seal); padding: 8px 5px 7px; }
.stage__diff {
  position: absolute; right: 12px; bottom: 8px;
  color: var(--snow); font-size: 15px; letter-spacing: .12em;
  text-shadow: 0 1px 8px rgba(18, 31, 51, .7);
}
.stage__diff .off { opacity: .4; }
.stage__name { grid-column: 1; margin-top: 16px; }
.stage__card { grid-column: 1; margin-top: 6px; font-size: 15px; line-height: 1.8; }
.stage__line { display: none; }
@media (min-width: 1024px) {
  .stages__nav { display: none; }
  .stages__rail { overflow: visible; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-top: 24px; padding-bottom: 0; }
  .stages__list { width: auto; grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; }
  .stage:nth-child(-n+3) { grid-column: span 2; }
  .stage:nth-child(n+4) { grid-column: span 3; }
  .stage__line {
    display: block; grid-column: 2; grid-row: 2 / 4; margin-top: 18px;
    font-size: 14px; letter-spacing: .2em; line-height: 1.7; color: var(--ink-2);
  }
  :lang(en) .stage__line, :lang(ko) .stage__line { grid-column: 1; grid-row: auto; margin-top: 8px; font-size: 15px; }
  :lang(ko) .stage__line { letter-spacing: -.02em; font-weight: 500; }
}

/* ---------- ⑦ 夜（月見平） ---------- */
.night { background: linear-gradient(180deg, var(--ai) 0%, var(--ai-deep) 100%); }
.night__kv img { width: 100%; height: 100%; max-height: 88svh; object-fit: cover; }
.night__text { display: grid; gap: 40px; align-content: center; padding: clamp(56px, 7vw, 112px) var(--gut); }
.night__text .body { margin-top: 28px; }
.night .vframe--sm { max-width: 440px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.night .kicker { color: rgba(244, 247, 250, .76); }
@media (min-width: 1024px) {
  .night__grid { display: grid; grid-template-columns: 7fr 5fr; min-height: 640px; }
  .night__kv img { max-height: none; min-height: 100%; }
  .night__text { padding-right: var(--gut); padding-left: clamp(32px, 4vw, 64px); }
}

/* ---------- 電話の枠 ---------- */
.phone {
  position: relative; overflow: hidden;
  border: 10px solid var(--sumi); border-radius: var(--r-phone);
  background: var(--sumi); box-shadow: var(--shadow);
}
.phone img { width: 100%; height: auto; }
.phone--video { aspect-ratio: 9 / 16; }
.phone__poster, .phone__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__v.is-fading { opacity: 0; }

/* ---------- ⑧ 今日の一本とゴースト ---------- */
.daily { background: linear-gradient(180deg, #E2E3EC 0%, #EDEBF0 160px, var(--snow) 420px); }
.daily__grid { display: grid; gap: 56px; align-items: center; }
.daily__text .body { margin-top: 28px; }
.daily__ghost { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.daily__ghost .body { margin-top: 16px; }
.daily__phones { display: flex; justify-content: center; align-items: flex-start; }
.daily__phones .phone { width: min(46%, 300px); }
.daily__p1 { z-index: 1; }
.daily__p2 { margin-left: -6%; margin-top: 72px; }
@media (max-width: 599px) {
  .daily__phones { flex-direction: column; align-items: center; gap: 32px; }
  .daily__phones .phone { width: min(76vw, 300px); }
  .daily__p2 { margin: 0; }
}
@media (min-width: 1024px) {
  .daily__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .daily__text { grid-column: 1 / 6; }
  .daily__phones { grid-column: 7 / 13; }
}

/* ---------- ⑨ 動画の書き出し ---------- */
.clips { padding-top: 0; }
.clips__grid { display: grid; gap: 48px; align-items: center; }
.clips__text .body { margin-top: 28px; }
.clips__stage { display: flex; align-items: center; justify-content: center; gap: 28px; }
.clips__stage .phone { width: min(300px, 62vw); flex: none; }
.clips__thumbs { display: grid; gap: 12px; list-style: none; }
.clip-thumb {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 6px 10px 6px 6px; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--ai); cursor: pointer; text-align: left;
  font: 500 14px/1.5 var(--mincho); letter-spacing: .06em;
}
.clip-thumb img { flex: none; width: 54px; height: 96px; object-fit: cover; border-radius: 6px; opacity: .72; transition: opacity .2s; }
.clip-thumb:hover img, .clip-thumb[aria-pressed="true"] img { opacity: 1; }
.clip-thumb[aria-pressed="true"] { border-color: var(--line); background: var(--washi); }
.clip-thumb[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--shu); }
:lang(en) .clip-thumb { font-family: var(--serif-en); letter-spacing: 0; }
@media (max-width: 599px) {
  .clips__stage { flex-direction: column; gap: 20px; }
  .clips__thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .clip-thumb { flex-direction: column; gap: 6px; padding: 6px 4px; text-align: center; font-size: 11px; line-height: 1.45; letter-spacing: 0; }
}
@media (min-width: 1024px) {
  .clips__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .clips__text { grid-column: 1 / 6; }
  .clips__stage { grid-column: 7 / 13; justify-content: flex-start; }
}

/* ---------- ⑩ 操作／よくある質問 ---------- */
.info { padding-top: 0; }
.info__grid { display: grid; gap: 80px; }
.info__col .body { margin-top: 28px; }
.ctrl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; list-style: none; }
.ctrl li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--washi); font-size: 15px; line-height: 1.5;
}
@media (max-width: 599px) {
  .ctrl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ctrl li { padding: 10px 14px; }
}
.ctrl svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq div { position: relative; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); line-height: 1.8; }
.faq div::before { content: ""; position: absolute; left: 0; top: calc(16px + .9em); width: 10px; height: 2px; background: var(--shu); }
.faq dt { font-weight: 700; }
@media (min-width: 1024px) {
  .info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; }
}

/* ---------- ⑪ 締め ---------- */
.outro { position: relative; overflow: hidden; }
.outro__bg { position: absolute; inset: 0; }
.outro__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.outro__bg::after { content: ""; position: absolute; inset: 0; background: rgba(244, 247, 250, .9); }
.outro__in { position: relative; display: grid; justify-items: center; gap: 48px; text-align: center; }
.outro__vert { margin: 0; }
.outro__cta { display: grid; justify-items: center; gap: 16px; }
.outro .store, .outro .store-btns { justify-content: center; }

/* ---------- PV のダイアログ ---------- */
.pv {
  width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--snow); overflow: visible;
}
.pv::backdrop { background: rgba(30, 51, 80, .92); }
.pv__in { display: grid; gap: 12px; }
.pv__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pv__title { font: 600 12px/1 var(--sans); letter-spacing: .24em; color: rgba(244, 247, 250, .8); }
.pv__close {
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-night); border-radius: var(--r-btn);
  background: var(--glass); color: var(--snow); cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .1em;
}
.pv__close:focus-visible, .pv__v:focus-visible { outline: 2px solid var(--snow); outline-offset: 2px; }
.pv__v { width: 100%; height: auto; max-height: calc(100svh - 150px); aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.pv__cap { color: rgba(244, 247, 250, .8); }

/* ---------- 画像のライトボックス（lp.js の lbInit。見た目は PV のダイアログにそろえる） ---------- */
.lb-target { cursor: zoom-in; }
.lb-target:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
.lb {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; background: transparent; color: var(--snow); overflow: hidden;
}
.lb::backdrop { background: rgba(14, 24, 40, .94); }
.lb__in {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 100%; padding: 64px 16px 24px; box-sizing: border-box;
}
.lb__img {
  display: block; max-width: min(1600px, 100%); max-height: calc(100svh - 140px); width: auto; height: auto;
  object-fit: contain; border-radius: 6px; box-shadow: 0 12px 48px rgba(0, 0, 0, .45); cursor: default;
}
.lb__cap { max-width: 64ch; text-align: center; color: rgba(244, 247, 250, .8); }
.lb__btn {
  position: absolute; min-width: 44px; min-height: 44px;
  border: 1px solid var(--line-night); border-radius: var(--r-btn);
  background: var(--glass); color: var(--snow); cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .1em;
}
.lb__btn:focus-visible { outline: 2px solid var(--snow); outline-offset: 2px; }
.lb__close { top: 12px; right: 12px; padding: 0 18px; }
.lb__nav { top: 50%; width: 48px; height: 64px; margin-top: -32px; font-size: 32px; line-height: 1; padding: 0; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
@media (max-width: 599px) {
  .lb__nav { top: auto; bottom: 16px; margin-top: 0; width: 56px; height: 48px; }
  .lb__in { padding-bottom: 80px; }
  .lb__img { max-height: calc(100svh - 250px); } /* 上の「閉じる」・下の前後のボタン・説明 3 行ぶんを空ける */
  .lb__cap { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; }
}

/* ---------- 出方（見える状態が既定。JS が .js-rv を付けた時だけ隠してから出す） ---------- */
.js-rv .rv { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js-rv .rv.is-in { opacity: 1; transform: none; }
.js-rv .brush::after {
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent 0) 100% 0 / 200% 100% no-repeat;
  mask: linear-gradient(90deg, #000 50%, transparent 0) 100% 0 / 200% 100% no-repeat;
  transition: -webkit-mask-position .5s .25s var(--ease), mask-position .5s .25s var(--ease);
}
.js-rv .is-in .brush::after { -webkit-mask-position: 0 0; mask-position: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js-rv .rv { opacity: 1; transform: none; }
  .stage:hover .stage__fig img { transform: none; }
}
@media print {
  .js-rv .rv { opacity: 1; transform: none; }
  .hero { height: auto; min-height: 0; }
  .vbtn, .stages__nav, .hero__down { display: none !important; }
}

/* ---------- 固定ヘッダー（DESIGN §6.1 #0）: ヒーローの上は透明、過ぎたら墨の地＋ロゴ＋ダウンロード（lp.js の is-solid）。
   言語は <details> にたたみ、720px 以上で ::details-content があれば横に並べる ---------- */
.site-header--lp { position: fixed; inset: 0 0 auto; color: var(--snow); transition: background-color .25s, box-shadow .25s; }
.site-header--lp .site-header__logo { visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.site-header--lp .site-header__logo img { width: 96px; }
.site-header--lp .site-header__logo span { display: none; }
.site-header--lp.is-solid { background: rgba(26, 29, 34, .86); box-shadow: 0 1px 0 rgba(244, 247, 250, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header--lp.is-solid .site-header__logo { visibility: visible; opacity: 1; }
.site-header--lp :focus-visible { outline-color: var(--snow); }
.site-header__end { display: flex; align-items: center; gap: 4px 10px; margin-left: auto; }
.head-dl { display: none; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--shu); color: var(--snow); font: 700 13px/1 var(--sans); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.head-dl:hover { background: var(--shu-hover); }
.is-solid .head-dl:not([hidden]) { display: inline-flex; }
.lang-menu { position: relative; }
.lang-menu summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px; font-size: 13px; letter-spacing: .06em; list-style: none; cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu .lang-switch { position: absolute; top: 100%; right: 0; flex-direction: column; align-items: stretch; min-width: 148px; padding: 6px 0; border-radius: 10px; background: var(--sumi); box-shadow: 0 10px 28px rgba(0, 0, 0, .32); }
.lang-menu .lang-switch li + li::before { content: none; }
.lang-menu .lang-switch a { display: block; padding: 11px 18px; }
@media (min-width: 720px) {
  @supports selector(::details-content) {
    .lang-menu summary { display: none; }
    .lang-menu::details-content { display: contents; }
    .lang-menu .lang-switch { position: static; flex-direction: row; align-items: center; min-width: 0; padding: 0; background: none; box-shadow: none; }
    .lang-menu .lang-switch li + li::before { content: "/"; }
    .lang-menu .lang-switch a { display: inline-block; padding: 12px 6px; }
  }
}
main [id] { scroll-margin-top: 64px; }
