@charset "UTF-8";

/* =========================================================
   星々へ捧ぐ、ララビィ ― 紹介サイト
   ページ全体を「夜空 → 夜明け」のグラデーションで構成
   ========================================================= */

:root {
  /* 夜空（上から順に明るくなる） */
  --night-0: #050a16;
  --night-1: #081226;
  --night-2: #0c1b35;
  --night-3: #102444;
  --night-4: #152e53;
  --night-5: #1b3962;

  /* 夜明け */
  --dawn-1: #dbe7f2;
  --dawn-2: #ebf2f7;
  --dawn-3: #f5efea;
  --dawn-4: #f6e6dd;

  /* 文字色 */
  --ink: #e9eff8;
  --ink-body: #cfd9e7;
  --ink-sub: #9fb0c6;
  --ink-d: #1a2944;
  --ink-d-body: #36445c;
  --ink-d-sub: #5a6980;

  /* アクセント（ロゴの軌道のミント／星のコーラル） */
  --mint: #8fd3d3;
  --mint-d: #2f8791;
  --coral: #e08a74;

  --line: rgba(190, 215, 240, 0.16);
  --line-d: rgba(26, 41, 68, 0.12);

  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --font-latin: "Cormorant Garamond", "Times New Roman", serif;

  --w-wide: 1080px;
  --w-narrow: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(72px, 10vw, 120px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--night-1);
}

body {
  margin: 0;
  background: var(--night-1);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* clip はスクロール領域を作らないので、ヒーローの sticky を壊さない */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* Cormorant Garamond はデフォルトがオールドスタイル数字なので揃える */
.section-label, .ho__no, .steps li::before, .copyright, .panel__title small {
  font-variant-numeric: lining-nums;
}

/* 見出しや詩的な文は文節単位で改行（対応ブラウザのみ） */
.section-title, .trailer__body, .concept__story, .concept__keywords, .lead,
.ho__catch, .edition__name, .card-sample figcaption, .example__flavor {
  word-break: auto-phrase;
}

.sp-only { display: none; }
@media (max-width: 560px) { .sp-only { display: inline; } }

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

/* メニュー／拡大表示中は背面をスクロールさせない */
html.is-locked { overflow: hidden; }

/* ページ後半ではオーバースクロール時に見える地の色も夜明け色に */
html.is-dawn { background: var(--dawn-4); }

/* display 指定のある要素でも hidden 属性で確実に隠す */
[hidden] { display: none !important; }

/* キーボード操作時のフォーカス表示 */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}
[data-tone="light"] :focus-visible,
.site-header.is-light :focus-visible { outline-color: var(--mint-d); }

.starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section, .hero, .horizon, .site-footer { position: relative; }
.section { padding-block: var(--section-pad); overflow-x: clip; }

.container {
  position: relative;
  z-index: 2;
  width: min(100% - var(--gutter) * 2, var(--w-wide));
  margin-inline: auto;
}
.container--narrow { width: min(100% - var(--gutter) * 2, var(--w-narrow)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  color: var(--ink);
  background: rgba(6, 12, 28, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), visibility 0s linear 0.5s,
              background-color 0.4s, color 0.4s, border-color 0.4s;
}
.site-header.is-visible {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), visibility 0s,
              background-color 0.4s, color 0.4s, border-color 0.4s;
}
.site-header.is-light {
  color: var(--ink-d);
  background: rgba(246, 249, 252, 0.72);
  border-color: var(--line-d);
}
.site-header__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.site-nav a {
  text-decoration: none;
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 1; }

/* スクロールスパイ：現在地のリンクに小さな星を灯す */
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 6px rgba(143, 211, 211, 0.9);
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s var(--ease);
}
.site-nav a.is-active { opacity: 1; }
.site-nav a.is-active::after { transform: translateX(-50%) scale(1); }
.site-header.is-light .site-nav a::after { background: var(--mint-d); box-shadow: none; }

/* ハンバーガーボタン（二本線 → ×） */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle__bars {
  position: absolute;
  top: 50%;
  left: 11px;
  right: 11px;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), left 0.4s var(--ease);
}
.menu-toggle__bars::before { left: 0; transform: translateY(-4px); }
.menu-toggle__bars::after { left: 8px; transform: translateY(4px); }
.site-header.is-menu-open .menu-toggle__bars::before { transform: rotate(45deg); }
.site-header.is-menu-open .menu-toggle__bars::after { left: 0; transform: rotate(-45deg); }

/* メニュー展開中は背景に溶け込ませる */
.site-header.is-menu-open {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 900px) {
  .site-header { padding: 4px var(--gutter); }
  .site-header__brand { font-size: 14px; }
  .site-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Mobile menu ---------- */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--gutter) 40px;
  background: rgba(6, 12, 28, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease), visibility 0s;
}
@media (min-width: 901px) { .menu-panel { display: none; } }

.menu-panel__list {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.menu-panel__list li + li { border-top: 1px solid var(--line); }
.menu-panel__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 4px;
  color: var(--ink-body);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
.menu-panel.is-open .menu-panel__list a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 40ms);
}
.menu-panel__list span {
  min-width: 22px;
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: 0.1em;
  font-variant-numeric: lining-nums;
  color: var(--mint);
}
.menu-panel__list a.is-active { color: #fff; }
.menu-panel__list a.is-active::after {
  content: "";
  align-self: center;
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(143, 211, 211, 0.9);
}
.menu-panel__foot {
  margin: 36px 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
}

/* ---------- 流れ星の区切り線 ---------- */
.star-divider {
  position: relative;
  z-index: 3;
  height: 1px;
  margin-top: -1px;
  overflow-x: clip;
  pointer-events: none;
}
.star-divider__inner {
  position: relative;
  width: min(100% - var(--gutter) * 2, 1180px);
  height: 1px;
  margin-inline: auto;
}
.star-divider__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(220, 236, 250, 0), rgba(220, 236, 250, 0.7) 22%, rgba(220, 236, 250, 0.7) 78%, rgba(220, 236, 250, 0));
  transform: scaleX(0);
  transform-origin: right center;
}
.star-divider__track {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.star-divider__head {
  position: absolute;
  top: 0;
  right: 0;
}
/* 核 */
.star-divider__head::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.9), 0 0 18px 6px rgba(143, 211, 211, 0.45);
}
/* 尾 */
.star-divider__head::after {
  content: "";
  position: absolute;
  top: -0.5px;
  left: 1px;
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(190, 238, 238, 0.35) 40%, rgba(255, 255, 255, 0));
}
/* 横断は約0.86秒、その後ラインがゆっくり落ち着く */
.star-divider.is-visible .star-divider__line { animation: starLine 1.9s cubic-bezier(0.4, 0.1, 0.2, 1) forwards; }
.star-divider.is-visible .star-divider__track { animation: starHead 1.9s cubic-bezier(0.4, 0.1, 0.2, 1) forwards; }
html:not(.js) .star-divider__line { transform: scaleX(1); opacity: 0.45; }

@keyframes starLine {
  0%   { transform: scaleX(0); opacity: 1; }
  45%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.45; }
}
@keyframes starHead {
  0%        { transform: translateX(0); opacity: 0; }
  4%        { opacity: 1; }
  45%       { transform: translateX(-100%); opacity: 1; }
  64%, 100% { transform: translateX(-100%); opacity: 0; }
}

/* ---------- Hero ---------- */
/* ヒーローは下にピン区間を持ち、その間 .hero__stage が画面に留まったまま溶けていく
   （sticky は親の content box 内でしか動けないため、padding ではなく中身の高さで区間を作る） */
.hero {
  background: var(--night-1);
}
.hero::after {
  content: "";
  display: block;
  height: 60vh;
  height: 60svh;
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8svh, 76px) var(--gutter) clamp(20px, 4svh, 36px);
  overflow: hidden;
  text-align: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  will-change: opacity, transform;
}
.hero__inner,
.hero__scroll { will-change: opacity, transform; }
/* 背景画像と基準位置は site-src/config.toml で指定（build.py が HTML 内の <style> に出力） */
.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: heroZoom 3.2s var(--ease) forwards;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(5, 10, 22, 0) 0%, rgba(5, 10, 22, 0.3) 60%, rgba(5, 10, 22, 0.65) 100%),
    linear-gradient(to bottom, rgba(8, 18, 38, 0) 55%, var(--night-1) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
}
/* 三つの要素は同じ光の立ち上がりで、星空から静かに姿を現す。 */
.hero__logo,
.hero__catch,
.hero__genre {
  animation: starlightReveal 1.8s ease-in-out both;
}
.hero__logo { animation-delay: 0.08s; }
.hero__catch { animation-delay: 0.2s; }
.hero__genre { animation-delay: 0.32s; }
.hero__scroll { animation: scrollReveal 0.8s ease 1.2s both; }

.hero__system {
  margin: 0 0 clamp(4px, 1.5vw, 14px);
  padding-left: 0.42em;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.42em;
  color: #b9c7d9;
  text-shadow: 0 1px 14px rgba(5, 10, 22, 0.9);
}
.hero__logo { margin: 0; }
.hero__logo img {
  width: min(100%, clamp(600px, calc(100svh - 40px), 800px));
  max-width: 800px;
  margin-inline: auto;
  filter:
    drop-shadow(0 0 24px rgba(0, 224, 255, 0.12));
}
.hero__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(8px, 2vw, 20px) 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(12px, 1.3vw, 14px);
  letter-spacing: 0.2em;
}
.hero__specs li { padding: 2px clamp(12px, 2vw, 20px); }
.hero__specs li + li { border-left: 1px solid rgba(200, 220, 240, 0.3); }

.hero__catch {
  margin: clamp(2px, 1vw, 8px) 0 0;
  padding-left: 0.2em;
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #c6f8ff;
  text-shadow: 0 1px 16px rgba(5, 10, 22, 0.9);
  word-break: auto-phrase;

}

/* 画面に余裕のあるPCだけ、キャッチコピーをわずかにロゴ側へ寄せる */
.hero__genre {
  margin: clamp(12px, 2svh, 20px) 0 0;
  padding-left: 0.08em;
  font-family: var(--font-sans);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #d5d3cc;
  text-shadow: 0 1px 16px rgba(5, 10, 22, 0.9);
  white-space: nowrap;
}
@media (min-width: 561px) {
  .hero__catch { position: relative; top: -12px; }
}

.hero__scroll {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(18px, 3svh, 28px);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-sub);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200, 225, 245, 0.8), rgba(200, 225, 245, 0));
  transform-origin: top;
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes starlightReveal {
  0% { opacity: 0; filter: blur(8px) brightness(1.3); }
  100% { opacity: 1; filter: blur(0) brightness(1); }
}
@keyframes scrollReveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Section backgrounds（夜空 → 夜明け） ---------- */
/* ピン演出の長さは60svhのまま、本文の開始位置を前へ寄せる。
   試作で確定した到達距離。margin-topで開始位置、padding-topで見出しの余白を調整。 */
.trailer {
  margin-top: -25vh;
  margin-top: -25svh;
  /* リンクで移動したときだけ、固定ヘッダー分の余裕を確保。 */
  scroll-margin-top: 64px;
  padding-top: clamp(32px, 5svh, 48px);
  z-index: 2;
  background: linear-gradient(to bottom, transparent, var(--night-1) 100px);
}
.trailer .section-head { margin-bottom: 24px; }
.concept    { background: linear-gradient(var(--night-1), var(--night-2)); }
.regulation { background: linear-gradient(var(--night-2), var(--night-3)); }
.lifecards  { background: linear-gradient(var(--night-3), var(--night-4)); }
.editions   { background: linear-gradient(var(--night-4), var(--night-5)); }
.horizon {
  height: clamp(200px, 32vh, 340px);
  background: linear-gradient(to bottom, var(--night-5) 0%, #34598a 32%, #7ea1c7 60%, #b9cfe4 82%, var(--dawn-1) 100%);
}
.handouts { background: linear-gradient(var(--dawn-1), var(--dawn-2)); color: var(--ink-d); }
.distribution { background: linear-gradient(var(--dawn-2), var(--dawn-3)); color: var(--ink-d); }

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mint);
}
.section-label span {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.section-label span::after {
  content: "";
  width: 28px;
  height: 1px;
  margin: 0 14px;
  background: currentColor;
  opacity: 0.5;
}
[data-tone="light"] .section-label { color: var(--mint-d); }

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.prose p { color: var(--ink-body); }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.4em;
}

.marker-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.marker-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-body);
}
.marker-list li + li { margin-top: 8px; }
.marker-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(0.975em - 4px);
  width: 7px;
  height: 7px;
  border: 1px solid var(--mint);
  transform: rotate(45deg);
}
.marker-list small {
  display: block;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.8;
}

.panel {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}
.panel__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.14em;
}
.panel__title small {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
}
.panel p { color: var(--ink-body); }

/* ---------- 01 Trailer ---------- */
.trailer__body {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2.4;
  letter-spacing: 0.12em;
}
.trailer__body p { margin: 0 0 2.4em; }
.trailer__body p:last-child { margin-bottom: 0; }
.trailer__lead {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.2em;
  text-shadow: 0 0 28px rgba(143, 211, 211, 0.3);
}
.trailer__body .trailer__title { margin: 3.4em 0; line-height: 2; }
.trailer__title small {
  display: block;
  font-size: 0.72em;
  letter-spacing: 0.3em;
  color: var(--ink-sub);
}
.trailer__title strong {
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: 0.12em;
}

/* ---------- 02 Concept ---------- */
.concept__keywords {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 5vw, 50px);
  line-height: 1.4;
  letter-spacing: 0.1em;
}
.concept__keywords .x {
  display: inline-block;
  margin: 0 0.42em;
  font-weight: 500;
  font-size: 0.66em;
  color: var(--mint);
  transform: translateY(-0.1em);
}
.concept__story {
  margin-bottom: clamp(44px, 6vw, 64px);
  text-align: center;
  font-family: var(--font-serif);
}
.concept__intro {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2.2;
  letter-spacing: 0.1em;
}
.concept__story .concept__promise {
  margin: 1.2em 0 0;
  font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 26px rgba(143, 211, 211, 0.35);
}

/* 「「 」」：二人が同時に口にした台詞。括弧をずらして重ね、二人の声を表す */
.duo { position: relative; display: inline-block; }
.duo > span:first-child { color: var(--mint); }
.duo > span + span { position: absolute; top: 0; left: 0; color: var(--coral); }
.duo--open { margin-right: 0.15em; }
.duo--open > span + span { transform: translate(-0.3em, 0.18em); }
.duo--close { margin-left: 0.15em; }
.duo--close > span + span { transform: translate(0.3em, -0.18em); }

/* 頒布情報への導線 */
.teaser-cta {
  margin-top: clamp(48px, 7vw, 72px);
  text-align: center;
}
.teaser-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 11px 14px 11px 26px;
  border: 1px solid rgba(143, 211, 211, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.teaser-cta__link:hover {
  border-color: rgba(143, 211, 211, 0.8);
  background: rgba(143, 211, 211, 0.06);
  box-shadow: 0 0 26px rgba(143, 211, 211, 0.18);
}
.teaser-cta__label {
  text-align: left;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
.teaser-cta__label small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mint);
}
.teaser-cta__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(143, 211, 211, 0.35);
  border-radius: 50%;
  color: var(--mint);
  transition: transform 0.3s var(--ease);
}
.teaser-cta__arrow svg { width: 14px; height: 14px; }
.teaser-cta__link:hover .teaser-cta__arrow { transform: translateY(3px); }

/* ---------- 03 Regulation ---------- */
.spec {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}
.spec > div {
  padding: clamp(18px, 2.4vw, 28px) clamp(14px, 1.8vw, 24px);
  background: #0e1f3c;
}
.spec dt {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-sub);
}
/* 数字は欧文で大きく、単位は小さく添えてセル幅を揃える */
.spec dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 4px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 46px;
  letter-spacing: 0.08em;
}
.spec__num {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 38px);
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
}
.spec__tilde {
  margin: 0 0.1em;
  font-family: var(--font-serif);
  font-size: 0.5em;
  vertical-align: 0.25em;
}
.spec__unit {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-body);
}
.spec dd small {
  flex-basis: 100%;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--ink-sub);
}
.reg-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  margin-top: clamp(28px, 4vw, 40px);
}
.reg-notes li + li { margin-top: 0; }

/* ---------- 04 Life cards ---------- */
.lifecards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* 人生カードの規模（枚数・山札数） */
.lc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 0 0 clamp(22px, 3vw, 30px);
  padding: 0 0 clamp(22px, 3vw, 30px);
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.lc-stats li { display: flex; align-items: baseline; gap: 10px; }
.lc-stats__num {
  font-family: var(--font-latin);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
  color: #fff;
  text-shadow: 0 0 24px rgba(143, 211, 211, 0.25);
}
.lc-stats__unit {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink-body);
}

.card-sample { margin: 0; }
.card-fan {
  --cw: clamp(118px, 14.5vw, 176px);
  position: relative;
  height: calc(var(--cw) * 1.5 + 60px);
}
.card-fan__item {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 1;
  width: var(--cw);
  aspect-ratio: 2 / 3;
  margin-left: calc(var(--cw) / -2);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: zoom-in;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.card-fan__item img { width: 100%; height: 100%; border-radius: 8px; }
.card-fan__item:nth-child(1) { transform: translateX(-70%) translateY(14px) rotate(-9deg); }
.card-fan__item:nth-child(3) { transform: translateX(70%) translateY(14px) rotate(9deg); }
.card-fan__item.is-chosen {
  z-index: 2;
  transform: translateY(-14px);
  box-shadow: 0 0 0 1px rgba(143, 211, 211, 0.9), 0 0 38px rgba(143, 211, 211, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.card-fan:hover .card-fan__item:nth-child(1) { transform: translateX(-84%) translateY(18px) rotate(-12deg); }
.card-fan:hover .card-fan__item:nth-child(3) { transform: translateX(84%) translateY(18px) rotate(12deg); }
.card-fan:hover .card-fan__item.is-chosen { transform: translateY(-20px); }
.card-fan__item:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.card-sample figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.card-sample figcaption small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-sub);
}

.draw {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(56px, 8vw, 88px);
}
.steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  counter-increment: step;
  line-height: 1.8;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  font-family: var(--font-latin);
  font-size: 17px;
  line-height: 1;
  color: var(--mint);
}
.steps small { display: block; font-size: 13px; color: var(--ink-sub); }
.panel .note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-sub);
}

.panel .example__flavor {
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: 2px solid rgba(143, 211, 211, 0.45);
  font-family: var(--font-serif);
  line-height: 2.1;
  color: var(--ink);
}
.example__effect {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(143, 211, 211, 0.07);
}
.example__effect dt { font-size: 12px; letter-spacing: 0.24em; color: var(--mint); }
.example__effect dd { margin: 0; font-weight: 500; }

/* ---------- 05 Editions ---------- */
.editions__intro { max-width: 820px; margin-bottom: clamp(36px, 5vw, 52px); }
.editions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.edition { display: flex; flex-direction: column; }
.edition__tag {
  margin: 0 !important;
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mint) !important;
}
.edition--simple .edition__tag { color: #a9c8ec !important; }
.edition--simple .marker-list li::before { border-color: #a9c8ec; }
.edition__name {
  margin: 2px 0 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 27px);
  letter-spacing: 0.14em;
}
.panel .edition__foot {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-sub);
}
.edition .marker-list { margin-bottom: 24px; }

/* ---------- 06 Handouts ---------- */
.ho-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.ho {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3.6vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px -16px rgba(40, 70, 110, 0.22);
}
.ho::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0) 85%);
}
.ho--pc1 { --accent: #4aa3b0; --accent-soft: rgba(74, 163, 176, 0.24); }
.ho--pc2 { --accent: #e08a74; --accent-soft: rgba(224, 138, 116, 0.24); }
.ho p { color: var(--ink-d-body); }
.ho .ho__no {
  margin: 0 0 14px;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ho .ho__catch {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  color: var(--ink-d);
}
.mission {
  font-weight: 700;
  color: var(--ink-d);
  background: linear-gradient(transparent 60%, var(--accent-soft) 60%);
}
.handouts .ho__note {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(26, 41, 68, 0.045);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-d-sub);
}

.subhead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: clamp(64px, 9vw, 104px) 0 clamp(28px, 4vw, 40px);
}
.subhead h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-d);
}

.npc {
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}
.npc--subaru { --accent: #5fa58a; }
.npc--honoka { --accent: #d59a6c; }
.npc p { color: var(--ink-d-body); }
.npc__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-bottom: 8px;
}
.npc__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 26px);
  letter-spacing: 0.14em;
}
.npc__name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.npc__reading { font-size: 12px; letter-spacing: 0.24em; color: var(--ink-d-sub); }
.npc .npc__lead {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-d);
  font-size: 14px;
  color: var(--ink-d-sub);
}
.npc__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.npc__stats li {
  padding: 8px 4px 6px;
  border: 1px solid var(--line-d);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--ink-d-sub);
}
.npc__stats b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: #8a95a8;
}
.npc__stats .is-open { border-color: rgba(47, 135, 145, 0.35); color: var(--mint-d); }
.npc__stats .is-open b { color: var(--mint-d); }

/* ---------- 07 Distribution ---------- */
/* 本とHTML Editionを同じ幅で縦に並べる。各パネルの中はPCで2列。 */
.dist-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1040px;
  margin-inline: auto;
  gap: clamp(20px, 3vw, 32px);
}
.dist {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 360px;
  max-width: 520px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.6vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 40px -16px rgba(40, 70, 110, 0.22);
}
.dist::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0) 85%);
}
.dist--gm   { --accent: #e08a74; --accent-soft: rgba(224, 138, 116, 0.14); --accent-ink: #b3604b; --accent-line: rgba(224, 138, 116, 0.45); }
.dist--html { --accent: #4aa3b0; --accent-soft: rgba(74, 163, 176, 0.12); --accent-ink: #2f8791; --accent-line: rgba(74, 163, 176, 0.45); }
.dist__tag {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.dist__name {
  margin: 2px 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.12em;
  word-break: auto-phrase;
}
.dist__lead {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink-d);
  word-break: auto-phrase;
}
.dist__perk {
  align-self: flex-start;
  margin: -8px 0 22px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.dist__desc {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-d-body);
}
.dist__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* 2枚並んだとき、ボタンだけをカード下端に揃える */
  margin-top: auto;
  padding: 11px 20px 11px 24px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-d);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.dist__action small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.dist__action svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
  transition: transform 0.25s var(--ease);
}
.dist__action:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 22px -14px rgba(40, 70, 110, 0.45);
  transform: translateY(-1px);
}
.dist__action:hover svg { transform: translate(2px, -2px); }
.dist__meta {
  display: grid;
  gap: 6px;
  margin: 0 0 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-d);
  font-size: 14px;
}
.dist__meta > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.dist__meta dt { font-size: 12px; letter-spacing: 0.14em; color: var(--ink-d-sub); }
.dist__meta dd { margin: 0; font-weight: 500; color: var(--ink-d); }
.handle { color: var(--mint-d); text-decoration: none; }
.handle:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }

/* 本のタイトルとBOOTHを主役にした頒布情報 */
.book {
  width: 100%;
  max-width: 1040px;
  border-top: 2px solid #618b9d;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 20px 60px -35px rgba(40, 70, 110, 0.28);
}
.book__main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 4.5vw, 56px);
}
.book__intro { align-self: center; min-width: 0; container-type: inline-size; }
.book__eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-latin);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #52727e;
}
.book__title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(15px, 6.6cqi, 30px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.book__theme { margin: 0 0 18px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.book__theme span { display: inline-block; margin-left: 16px; font-size: 12px; font-weight: 500; color: #52727e; }
.book__description { margin: 0 0 24px; font-size: 14px; line-height: 2; color: var(--ink-d-body); }
.book__spec { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 13px; color: var(--ink-d-sub); }
.book__shop { min-width: 0; }
.book__shop-label { margin: 0 0 18px; font-size: 13px; letter-spacing: 0.12em; color: #52727e; }
.book__edition + .book__edition { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.book__price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.book__price h4 { margin: 0; font-size: 16px; font-weight: 500; }
.book__price p { margin: 0; font-size: 13px; }
.book__price strong { margin-right: 5px; font-size: 30px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.book__button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid #284d60;
  border-radius: 4px;
  background: #284d60;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s, box-shadow 0.25s;
}
.book__button--pdf { background: transparent; color: #284d60; }
.book__button:hover { background: #38667a; color: #fff; box-shadow: 0 5px 16px rgba(40, 77, 96, 0.15); }
.book__button:focus-visible { outline: 3px solid #527f94; outline-offset: 4px; }
.book__note { margin: 9px 0 0; font-size: 12px; line-height: 1.8; color: var(--ink-d-sub); }
.book__event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 16px 32px;
  margin: 0 clamp(28px, 4.5vw, 56px);
  padding: 24px 0 28px;
  border-top: 1px solid var(--line-d);
}
.book__event-label { margin: 0 0 4px; font-size: 12px; color: var(--ink-d-sub); }
.book__event h4 { margin: 0; font-size: 16px; font-weight: 500; }
.book__event-date { margin: 6px 0 0; font-size: 14px; color: var(--ink-d-body); }
.book__event-meta { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.book__event-meta > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; align-items: baseline; }
.book__event-meta dt { font-size: 12px; color: var(--ink-d-sub); }
.book__event-meta dd { margin: 0; }
.book__booth { font-weight: 700; letter-spacing: 0.04em; }
.book__organizers { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--ink-d-sub); }
.book__edition-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #284d60;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(40, 77, 96, 0.4);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.book__edition-link:hover { color: #38667a; text-decoration-color: currentColor; }
.book__edition-link:focus-visible { outline: 2px solid #527f94; outline-offset: 4px; }
.book__edition-link > [aria-hidden] { font-size: 0.85em; }
.book--html { border-top-color: #4aa3b0; }
.book--html .book__eyebrow { color: #397c86; }
.book--html .book__title { font-family: var(--font-latin); font-size: clamp(30px, 3.3vw, 40px); }
.book__edition-name { margin: -10px 0 18px; font-size: 14px; font-weight: 500; }
.book__perk { margin: 0 0 20px; padding-left: 14px; border-left: 2px solid #4aa3b0; font-size: 14px; color: #346d77; }
.book__seller { display: grid; gap: 10px; margin: 24px 0 0; font-size: 13px; }
.book__seller > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; }
.book__seller dt { color: var(--ink-d-sub); font-size: 12px; }
.book__seller dd { margin: 0; }
@media (max-width: 760px) {
  .book__main { grid-template-columns: 1fr; gap: 32px; }
  .book__shop { padding-top: 24px; border-top: 1px solid var(--line-d); }
  .book__event { grid-template-columns: 1fr; }
  .book__theme span { margin-left: 10px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 88px) 0 40px;
  background: linear-gradient(var(--dawn-3), var(--dawn-4));
  color: var(--ink-d);
  text-align: center;
}
.footer__title {
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2em;
}
.footer-credits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  font-size: 13px;
}
.footer-credit + .footer-credit {
  padding-top: 22px;
  border-top: 1px solid var(--line-d);
}
.footer-credit__role { margin: 0 0 4px; color: var(--ink-d-sub); letter-spacing: 0.14em; }
.footer-credit__name { margin: 0; font-weight: 500; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line-d);
  border-radius: 999px;
  color: var(--ink-d-sub);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.social-link svg { width: 13px; height: 13px; flex: none; }
.social-link:hover, .social-link:focus-visible { color: var(--mint-d); border-color: var(--mint-d); transform: translateY(-2px); }
.rights {
  max-width: 840px;
  margin: 0 auto 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-d-sub);
}
.copyright {
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-d-sub);
}

/* ---------- Lightbox ---------- */
.lightbox {
  max-width: 92vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(4, 9, 20, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  padding: 4px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .lifecards__grid,
  .draw,
  .editions__grid,
  .ho-grid { grid-template-columns: minmax(0, 1fr); }

  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* モバイルではプレイ時間を最後に回して横幅いっぱいに */
  .spec__time { order: 1; grid-column: 1 / -1; }
  .reg-notes { grid-template-columns: minmax(0, 1fr); }
  .card-sample { margin-top: 8px; }
}

/* タブレット：本文を一段だけ小さく */
@media (max-width: 880px) {
  body { font-size: 15px; line-height: 1.9; }
}

/* スマホ：本文 14px を基準に、見出し・数字も比率を保って縮める */
@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section-pad: 64px;
  }
  body { font-size: 14px; line-height: 1.85; letter-spacing: 0.03em; }

  /* 見出し */
  .section-head { margin-bottom: 32px; }
  .section-label { margin-bottom: 8px; font-size: 12px; }
  .section-label span { font-size: 11px; }
  .section-label span::after { width: 20px; margin: 0 10px; }
  .section-title { font-size: 21px; letter-spacing: 0.1em; }
  .lead { font-size: 15.5px; line-height: 1.95; letter-spacing: 0.05em; }
  .subhead { gap: 14px; margin: 56px 0 24px; }
  .subhead h3 { font-size: 17px; letter-spacing: 0.12em; }

  /* ヒーロー */
  .hero__catch { font-size: 22px; }
  .hero__specs { font-size: 11.5px; letter-spacing: 0.14em; }
  .hero__specs li { padding: 2px 10px; }

  /* 01 トレーラー */
  .trailer__body { font-size: 14px; letter-spacing: 0.04em; line-height: 2.25; }
  .trailer__body p { margin-bottom: 2em; }
  .trailer__lead { font-size: 19px; letter-spacing: 0.12em; }
  .trailer__body .trailer__title { margin: 2.6em 0; }
  .trailer__title strong { font-size: 18px; }

  /* 02 コンセプト */
  .concept__keywords { font-size: 22px; }
  .concept__intro { font-size: 14px; line-height: 2.1; letter-spacing: 0.06em; }
  .concept__story .concept__promise { font-size: 18px; }
  .teaser-cta__label { font-size: 14px; }

  /* パネル共通 */
  .panel { padding: 22px 20px; border-radius: 14px; }
  .panel__title { margin-bottom: 14px; font-size: 17px; letter-spacing: 0.1em; }
  .panel__title small { font-size: 11px; }
  .marker-list li { padding-left: 20px; }
  .marker-list li + li { margin-top: 6px; }
  .marker-list small,
  .panel .note,
  .panel .edition__foot,
  .handouts .ho__note { font-size: 12px; }

  /* 03 レギュレーション */
  .spec > div { padding: 14px 14px 12px; }
  .spec dt { font-size: 11px; letter-spacing: 0.14em; }
  .spec dd { font-size: 16px; line-height: 40px; }
  .spec__num { font-size: 26px; }
  .spec__unit { font-size: 12.5px; }
  .spec dd small { font-size: 11px; }

  /* 04 人生カード */
  .lc-stats { gap: 6px 28px; }
  .lc-stats__num { font-size: 38px; }
  .lc-stats__unit { font-size: 13.5px; }
  .card-sample figcaption { font-size: 14px; }
  .card-sample figcaption small { font-size: 11px; }
  .draw { margin-top: 48px; }
  .steps { gap: 12px; margin: 16px 0 20px; }
  .steps li { grid-template-columns: 26px 1fr; gap: 12px; }
  .steps li::before { width: 26px; height: 26px; font-size: 14px; }
  .steps small { font-size: 12px; }
  .panel .example__flavor { font-size: 14px; line-height: 2; padding-left: 14px; margin-bottom: 18px; }
  .example__effect { padding: 12px 16px; }
  .example__effect dt { font-size: 11px; }

  /* 05 エディション */
  .edition__tag { font-size: 11.5px; }
  .edition__name { margin-bottom: 14px; font-size: 19px; letter-spacing: 0.1em; }

  /* 06 ハンドアウト */
  .ho { padding: 26px 20px; border-radius: 14px; }
  .ho .ho__no { margin-bottom: 10px; font-size: 30px; }
  .ho .ho__catch { margin-bottom: 14px; font-size: 16.5px; letter-spacing: 0.06em; }
  .npc { padding: 22px 20px; border-radius: 14px; }
  .npc__name { font-size: 19px; gap: 10px; }
  .npc__reading { font-size: 11px; }
  .npc .npc__lead { font-size: 13px; }
  .npc__stats { gap: 6px; }
  .npc__stats li { font-size: 11px; letter-spacing: 0.08em; }
  .npc__stats b { font-size: 14px; }

  /* 07 頒布情報 */
  .dist { padding: 26px 20px; border-radius: 14px; }
  .dist__tag { font-size: 11.5px; }
  .dist__name { font-size: 19px; letter-spacing: 0.1em; }
  .dist__lead { font-size: 14.5px; margin-bottom: 18px; }
  .dist__perk { font-size: 12px; }
  .dist__desc,
  .dist__meta { font-size: 13px; }
  .dist__meta dt { font-size: 11px; }
  .dist__meta > div { grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; }
  .dist__action { padding: 10px 16px 10px 20px; font-size: 13.5px; }

  /* フッター（指で押しやすいようボタンの高さは確保） */
  .footer__title { font-size: 16px; }
  .social-link { min-height: 36px; padding: 6px 14px; }
  .rights { font-size: 11px; }

  /* メニュー */
  .menu-panel__list a { padding: 13px 4px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo, .hero__catch, .hero__genre, .hero__scroll {
    animation: none;
    opacity: 1;
    filter: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
