/* ============================================================
   そろえて☆マーメイドシアター teaser LP — style.css
   値はすべて Figma（マーメイドシアター.fig）実測値。
   30.51852px / 1.526px / 133.591deg などの半端な値は正値のため
   丸めないこと（デザインハンドオフの指示）。
   ============================================================ */

/* ---- fonts（ページ使用文字のみにサブセット済み woff2） ---- */
@font-face {
  font-family: "SetoFont";
  src: url("../assets/fonts/setofont-subset.woff2?v=3") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed JP";
  src: url("../assets/fonts/LINESeedJP-Rg-subset.woff2?v=3") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed JP";
  src: url("../assets/fonts/LINESeedJP-Bd-subset.woff2?v=3") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---- design tokens ---- */
:root {
  /* color */
  --sea-900: rgb(1, 36, 101);      /* サイト全体の背景 */
  --sea-800: rgb(26, 60, 119);
  --sea-700: rgb(33, 96, 160);     /* カードグラデ 下 */
  --sea-400: rgb(53, 123, 194);    /* カードグラデ 上 */
  --brand-blue: rgb(12, 85, 230);
  --link-blue: rgb(42, 110, 218);
  --aqua: rgb(156, 219, 252);      /* アクセント */
  --lavender: rgb(212, 222, 247);  /* 本文・パネル面 */
  --lavender-line: rgb(100, 106, 204);
  --lavender-bevel: rgb(166, 183, 255);
  --violet: rgb(130, 116, 223);    /* INFOタグ */
  --gold: rgb(255, 192, 91);       /* CTA・EVENTタグ */
  --gold-300: rgb(255, 236, 153);  /* TGSマーク */
  --plum-ink: rgb(49, 0, 2);       /* ゴールド上の文字 */

  --grad-card: linear-gradient(133.591deg, rgb(53, 123, 194) 40.79%, rgb(33, 96, 160) 98.77%);

  /* type */
  --font-display: "SetoFont", "M PLUS Rounded 1c", sans-serif;
  --font-ui: "LINE Seed JP", "Noto Sans JP", sans-serif;

  /* radius */
  --r-xs: 5px;
  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-pill: 30.51852px;

  /* elevation：ドロップシャドウを使わず inset のシール表現で統一 */
  --shadow-hud: inset 0 1.526px 0 0 rgb(39, 107, 141);
  --shadow-tile: inset 0 0 0 2px rgb(100, 106, 204), inset -4px -4px 0 0 rgb(166, 183, 255);

  /* motion */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur-tap: 120ms;
  --dur-ui: 220ms;
}

/* ---- base ---- */
* { box-sizing: border-box; }
/* overflow-x:clip はスクロールコンテナを作らないため sticky ヘッダーを壊さずに
   iOS Safari の横パン（横ドラッグ）を防げる */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--sea-900);
  color: #fff;
  font-family: var(--font-ui);
  overflow-x: hidden;
}
/* CSS未適用・キャッシュ齟齬時でも画像が画面幅を超えないための保険 */
img { max-width: 100%; height: auto; }
a { color: var(--aqua); text-decoration: none; }
a:hover { color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 閲覧パスワードゲート(gate.js が html に .gate-locked を付ける) ---- */
.gate { display: none; }
html.gate-locked .gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--sea-900);
}
html.gate-locked body { overflow: hidden; }
.gate__box { text-align: center; }
.gate__lead {
  margin: 0;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--lavender);
}
.gate__input {
  display: block;
  margin: 18px auto 0;
  width: 260px;
  max-width: 80vw;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(212, 222, 247, .92);
  box-shadow: var(--shadow-tile);
  color: var(--sea-900);
  font-family: var(--font-ui);
  font-size: 16px; /* 16px未満だとiOSがフォーカス時に拡大するため */
  letter-spacing: .1em;
  text-align: center;
}
.gate__input:focus { outline: 2px solid var(--aqua); outline-offset: 2px; }
.gate__box .btn { border: 0; cursor: pointer; font-family: var(--font-ui); }
.gate__choices {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.gate__choices .btn { width: 240px; justify-content: center; }
.gate__err {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgb(255, 170, 170);
}

/* ---- header ---- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: rgba(1, 36, 101, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 -1px 0 0 rgba(156, 219, 252, .28);
}
.hd__logo { flex: none; display: block; line-height: 0; }
.hd__logo img { width: 236px; height: auto; display: block; }
.hd__nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 15px;
  letter-spacing: .04em;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--plum-ink);
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 1.526px 0 0 rgba(255, 255, 255, .6);
}

/* ---- hero ---- */
.hero {
  position: relative;
  height: 760px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__kv {
  position: absolute;
  inset: 0;
  background: url("../assets/kv_title.webp") center 46% / cover no-repeat;
  animation: kv-drift 16s ease-in-out infinite alternate;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 36, 101, .30) 0%, rgba(1, 36, 101, .06) 34%, rgba(1, 36, 101, .72) 86%, var(--sea-900) 100%);
}
/* 水中の光のカーテン（transform/opacityのみ＝GPU合成で軽量） */
.hero__veil::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: linear-gradient(105deg,
    transparent 40%, rgba(156, 219, 252, .13) 46%, transparent 52%,
    transparent 60%, rgba(156, 219, 252, .09) 66%, transparent 72%);
  mix-blend-mode: screen;
  animation: rays 11s ease-in-out infinite alternate;
}
/* 立ちのぼる泡（CSSのみ。負のdelayで読み込み直後から画面内に分布させる） */
.hero__bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__bubbles span {
  position: absolute;
  bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), rgba(156, 219, 252, .22) 55%, rgba(156, 219, 252, .06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  animation: bubble-rise linear infinite;
}
.hero__bubbles span:nth-child(1)  { left: 6%;  width: 10px; height: 10px; animation-duration: 9.5s;  animation-delay: -2s; }
.hero__bubbles span:nth-child(2)  { left: 15%; width: 18px; height: 18px; animation-duration: 7.5s;  animation-delay: -6s; }
.hero__bubbles span:nth-child(3)  { left: 24%; width: 7px;  height: 7px;  animation-duration: 12s;   animation-delay: -4s; }
.hero__bubbles span:nth-child(4)  { left: 33%; width: 13px; height: 13px; animation-duration: 8.5s;  animation-delay: -1s; }
.hero__bubbles span:nth-child(5)  { left: 45%; width: 9px;  height: 9px;  animation-duration: 11s;   animation-delay: -8s; }
.hero__bubbles span:nth-child(6)  { left: 55%; width: 20px; height: 20px; animation-duration: 7s;    animation-delay: -3.5s; }
.hero__bubbles span:nth-child(7)  { left: 64%; width: 8px;  height: 8px;  animation-duration: 12.5s; animation-delay: -10s; }
.hero__bubbles span:nth-child(8)  { left: 74%; width: 14px; height: 14px; animation-duration: 9s;    animation-delay: -5s; }
.hero__bubbles span:nth-child(9)  { left: 84%; width: 11px; height: 11px; animation-duration: 10.5s; animation-delay: -7s; }
.hero__bubbles span:nth-child(10) { left: 92%; width: 16px; height: 16px; animation-duration: 8s;    animation-delay: -0.5s; }
.hero__in {
  position: relative;
  text-align: center;
  animation: rise .9s var(--ease-out) both;
}
.hero__logo {
  margin: 0;
  animation: bob 6s ease-in-out infinite;
  line-height: 0;
}
.hero__logo img {
  width: 701px;
  max-width: 88vw;
  height: auto;
  display: block;
  margin: 0 auto;
  /* ロゴを背景から浮き上がらせる(クライアント要望 2026-08) */
  filter: drop-shadow(0 4px 6px rgba(1, 18, 55, .45)) drop-shadow(0 14px 30px rgba(1, 18, 55, .40));
}
/* キャッチコピー（現在非表示。config.js の catchCopy 参照） */
.hero__copy {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(1, 36, 101, .9);
}
.plate {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  background: rgba(212, 222, 247, .92);
  color: var(--sea-900);
  box-shadow: var(--shadow-tile);
}
.plate span {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .08em;
}

/* ---- TGS band ---- */
.tgs {
  padding: 0 40px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
  scroll-margin-top: 100px;
}
.tgs__in {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 34px;
  border-radius: var(--r-md);
  background: var(--grad-card);
  box-shadow: inset 0 0 0 2px rgba(156, 219, 252, .55);
}
.tgs__mark {
  display: block;
  width: 140px;
  height: auto;
}
.tgs h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
}
.tgs p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--lavender);
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--plum-ink);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: inset 0 1.526px 0 0 rgba(255, 255, 255, .6);
  transition: transform var(--dur-tap) var(--ease-pop);
}
.btn:hover { color: var(--plum-ink); }
.btn:active { transform: scale(.96); }

/* ---- teaser ---- */
.teaser {
  padding: 110px 40px 120px;
  text-align: center;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .34em;
  color: var(--aqua);
}
.teaser h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: .1em;
  font-weight: 400; /* SetoFont に太字はない。合成太字をかけない */
}
.teaser__lead {
  margin: 22px auto 0;
  max-width: 660px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--lavender);
}
.silrow {
  margin: 64px auto 0;
  max-width: 640px; /* 6体をデスクトップで3列×2行に収める */
  display: flex;
  justify-content: center;
  gap: 40px 56px;
  flex-wrap: wrap;
}
.sil__disc {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(156, 219, 252, .10);
  box-shadow: inset 0 0 0 2px rgba(156, 219, 252, .3);
  display: grid;
  place-items: center;
  animation: bob 5.2s ease-in-out infinite;
  overflow: hidden;
}
.sil:nth-child(2) .sil__disc { animation-delay: .5s; }
.sil:nth-child(3) .sil__disc { animation-delay: 1s; }
.sil:nth-child(4) .sil__disc { animation-delay: .2s; }
.sil:nth-child(5) .sil__disc { animation-delay: .8s; }
.sil:nth-child(6) .sil__disc { animation-delay: 1.3s; }
/* 画像自体を黒シルエット化済み(元絵の覗き見・ファイル名からのネタバレ防止) */
.sil__art { display: block; height: 132px; width: auto; opacity: .82; }
.sil p {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: rgba(156, 219, 252, .85);
  letter-spacing: .3em;
}
.teaser__note {
  margin: 64px 0 0;
  font-size: 14px;
  letter-spacing: .14em;
  color: rgba(212, 222, 247, .7);
}

/* ---- news ---- */
.news {
  padding: 0 40px 110px;
  scroll-margin-top: 100px;
}
.news__in { max-width: 900px; margin: 0 auto; }
.news .eyebrow { margin-bottom: 28px; text-align: center; }
.news__row {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 8px;
  color: #fff;
  box-shadow: inset 0 -1px 0 0 rgba(156, 219, 252, .22);
}
a.news__row {
  transition: background var(--dur-ui) var(--ease-out);
}
a.news__row:hover {
  background: rgba(156, 219, 252, .07);
  color: #fff;
}
.news__row time {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--aqua);
}
.tag {
  display: inline-flex;
  justify-content: center;
  padding: 4px 0;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}
.tag--event { background: var(--gold); color: var(--plum-ink); }
.tag--info { background: var(--violet); color: #fff; }
.news__title { font-size: 15px; }

/* ---- 表示フェーズ切替(main.js が body に .phase-* を付ける) ----
   .phx 系セクションはティザーでは出ない。本リリース版/アップデート版で表示 */
.phx { display: none; }
body.phase-launch .phx--launch,
body.phase-update .phx--update { display: block; }
body.phase-launch .only-teaser,
body.phase-update .only-teaser { display: none; }

.phsec { padding: 0 40px 110px; text-align: center; }
/* TGSバンド直後の最初のセクションはティザーと同じ上余白を確保 */
.phsec--first { padding-top: 110px; }
.phsec h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: .1em;
  font-weight: 400;
}
.phsec .lead {
  margin: 22px auto 0;
  max-width: 660px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--lavender);
}
.phsec .note {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(212, 222, 247, .6);
}
.phsec .silrow--chars { margin-top: 48px; }
.sil__art--color { opacity: 1; }
.sil__name {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  letter-spacing: .12em;
}
.store-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.store-plate { color: var(--sea-900); font-weight: 700; font-size: 14px; }
.store-badge img { display: block; height: 56px; width: auto; }

/* 予告版のスペック表 */
.spec {
  margin: 32px auto 0;
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.spec th,
.spec td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(156, 219, 252, .22);
  vertical-align: top;
  line-height: 1.7;
}
.spec th {
  width: 110px;
  color: var(--aqua);
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.spec td { color: var(--lavender); }

/* リリース版: ヒーローのストアバッジ(プレート直下) */
.hero__stores { margin-top: 24px; }
.store-row--hero { margin-top: 0; }
.store-row--hero img { height: 48px; }

/* リリース版: スマホで追従するストアバッジバー(モバイルのみ表示)
   ※ .phx--update の汎用表示ルールより後に書いて打ち消す。モバイル側の
     メディアクエリ(ファイル末尾)がさらに上書きして flex 表示にする */
.store-dock,
body.phase-update .store-dock { display: none; }

/* プレビュー入口(/launch・/update)で表示される現在バージョンのリボン */
.preview-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--plum-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1.526px 0 0 rgba(255, 255, 255, .6);
}
.preview-bar a { color: var(--plum-ink); text-decoration: underline; }

/* ---- footer ---- */
.ft {
  padding: 48px 40px 60px;
  text-align: center;
  box-shadow: inset 0 1px 0 0 rgba(156, 219, 252, .22);
}
.ft__logo { margin: 0 auto 22px; line-height: 0; }
.ft__logo img { width: 236px; height: auto; display: block; margin: 0 auto; }
/* 会社ロゴ（暗色ロゴのため、サイト意匠のプレート上に載せる） */
.ft__partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
}
.ft__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  background: rgba(212, 222, 247, .92);
  box-shadow: var(--shadow-tile);
}
.ft__plate img { display: block; height: 22px; width: auto; }
/* 紫電一閃ロゴは縦長比率のため高さを揃えると小さく見える。少し大きめに */
.ft__plate--siden img { height: 32px; }
.ft p {
  margin: 0;
  font-size: 13px;
  color: rgba(212, 222, 247, .7);
}

/* ---- motion ---- */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes kv-drift {
  from { transform: scale(1.03) translateY(0); }
  to { transform: scale(1.06) translateY(-10px); }
}
@keyframes rays {
  from { opacity: .35; transform: translateX(-2.5%); }
  to { opacity: .9; transform: translateX(2.5%); }
}
@keyframes bubble-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: .85; }
  45% { transform: translate(10px, -370px); }
  75% { transform: translate(-6px, -620px); opacity: .85; }
  100% { transform: translate(4px, -820px); opacity: 0; }
}
/* クライアント要望（2026-08）：ロゴのゆらゆら等の穏やかな常時アニメは
   OSの「動きを減らす」設定でも止めない。入場アニメと押下トランジションのみ停止する */
@media (prefers-reduced-motion: reduce) {
  .hero__in { animation: none !important; }
  .btn, a.news__row { transition: none !important; }
}

/* ---- responsive（ブレークポイントは 900px のみ） ---- */
@media (max-width: 900px) {
  .hd { padding: 12px 20px; }
  .hd__nav { gap: 16px; font-size: 13px; }
  .hd__logo img { width: 168px; }

  .hero { height: 600px; }
  .hero__kv { background-image: url("../assets/kv_title_mobile.webp"); }
  .hero__copy { font-size: 24px; }
  .plate span { font-size: 20px; }

  .tgs { padding: 0 20px; }
  .tgs__in { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .tgs__in .btn { justify-self: center; }
  .tgs__mark { width: 112px; margin: 0 auto; }

  .teaser { padding: 80px 20px 90px; }
  .teaser h2 { font-size: 34px; }
  .phsec { padding: 0 20px 90px; }
  .phsec--first { padding-top: 80px; }
  .silrow { gap: 28px; }

  .news { padding: 0 20px 80px; }
  .news__row {
    grid-template-columns: 96px 84px;
    grid-template-areas: "date tag" "title title";
    row-gap: 8px;
  }
  .news__row time { grid-area: date; }
  .news__row .tag { grid-area: tag; }
  .news__row .news__title { grid-area: title; }
}

/* 狭幅ではヘッダーバッジが収まらないため非表示（同文言はヒーローのプレートに常時表示） */
@media (max-width: 640px) {
  .hd .badge { display: none; }
}

/* リリース版×モバイル: ストアバッジをスクロール追従で常時表示 */
@media (max-width: 900px) {
  body.phase-update .store-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(1, 36, 101, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 0 rgba(156, 219, 252, .28);
  }
  body.phase-update .store-dock img { height: 40px; width: auto; display: block; }
  /* バーに隠れないよう、プレビューリボンとフッターを持ち上げる */
  body.phase-update .preview-bar { bottom: 76px; }
  body.phase-update .ft { padding-bottom: 140px; }
  /* ヒーローのバッジはやや小さく */
  .store-row--hero img { height: 42px; }
}
