/* BeMOSS キャラクターページ（/character/ 配下）の見た目。
   ここが見た目の単一の真実。HTMLは scripts/build_character_pages.py が生成する。
   トップページ（index.html）のトーンを踏襲し、キャラ色 --cc をアクセントに使う。 */

:root {
  --bg: #07070f;
  --cyan: #00e5ff;
  --pink: #ff4fa0;
  --purple: #a855f7;
  --text: #f2f3f8;
  --dim: #a7abc4;
  --jp: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --en: "Orbitron", "M PLUS Rounded 1c", sans-serif;
  --cc: var(--cyan);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 日本語の禁則処理。これが無いと「ダンサー」が「ダンサ／ー」で割れる */
  line-break: strict;
}
/* 句読点で括った塊（build_character_pages.py の nb()）は中で折り返さない。
   iPhone(Safari)は word-break: auto-phrase を見ないので、実機の折り返しはこれで決まる */
.nb { display: inline-block; }
/* 文節で折り返す（対応していないブラウザは従来どおり） */
h1, h2, h3, p, .catch, .chip, .beat p, .bond-line, figcaption, .lbody i, .lbody em, .quest {
  word-break: auto-phrase;
}
h1, h2, .catch, .lead, .sec-lead { text-wrap: balance; }
::selection { background: var(--cc); color: #000; }
a { color: inherit; }
img { max-width: 100%; }
.hand { font-family: "Klee One", var(--jp); font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 紙のざらつき */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ===== 背景（キャラの部屋をぼかして敷く） ===== */
.stage {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--bg);
}
.stage::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--room, none);
  background-size: cover; background-position: center 20%;
  filter: blur(38px) saturate(.85);
  opacity: .42;
  transform: scale(1.15);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1000px 700px at 78% -8%, color-mix(in srgb, var(--cc) 26%, transparent), transparent 62%),
    radial-gradient(800px 600px at -8% 24%, rgba(0,229,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(7,7,15,.42) 0%, rgba(7,7,15,.78) 46%, var(--bg) 82%);
}

/* ヘッダーの見た目は assets/site-nav.css（全ページ共通）にある */

/* ===== 共通セクション ===== */
.sec { padding: 92px 0 0; }
.label {
  font-family: var(--en); font-size: 12px; font-weight: 700; letter-spacing: .34em;
  color: var(--cc); text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.label::after { content: ""; height: 1px; width: 64px; background: linear-gradient(90deg, var(--cc), transparent); }
h2 { font-size: clamp(25px, 3.4vw, 38px); font-weight: 900; line-height: 1.45; margin-bottom: 16px; }
.sec-lead { color: var(--dim); font-weight: 500; max-width: 44em; font-size: 15px; }
.sec-lead strong { color: var(--text); }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ===== ヒーロー ===== */
.hero { position: relative; min-height: min(84vh, 760px); display: flex; align-items: center; padding: 40px 0 70px; }
.hero-art {
  /* ヒーローからはみ出すと頭が切れる。高さ基準で収める */
  position: absolute; right: max(2vw, calc(50% - 560px + 10px)); bottom: 0; z-index: 0;
  height: min(70vh, 640px); width: auto; max-width: 46vw; pointer-events: none;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.65));
  animation: floatY 7s ease-in-out infinite;
}
.hero-art::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 78%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--cc) 55%, transparent), transparent 66%);
  filter: blur(46px);
}
.hero-art img { display: block; height: 100%; width: auto; }
@keyframes floatY { 50% { transform: translateY(-14px); } }
.hero-copy { position: relative; z-index: 2; width: 100%; }
.romaji {
  font-family: var(--en); font-weight: 900; letter-spacing: .18em;
  font-size: clamp(30px, 6vw, 62px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px color-mix(in srgb, var(--cc) 75%, transparent);
  opacity: .9; margin-bottom: 6px;
}
.hero h1 {
  font-size: clamp(46px, 8.4vw, 92px); font-weight: 900; line-height: 1.1; letter-spacing: .02em;
  text-shadow: 0 0 44px color-mix(in srgb, var(--cc) 45%, transparent);
  margin-bottom: 14px;
}
.catch {
  display: inline-block; font-size: clamp(16px, 2.4vw, 21px); color: var(--cc);
  border-bottom: 2px solid color-mix(in srgb, var(--cc) 55%, transparent);
  padding-bottom: 2px; margin-bottom: 20px; transform: rotate(-.8deg);
}
.hero .lead { font-size: 15px; color: #d2d6e8; max-width: 24em; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.chip {
  font-family: "Klee One", var(--jp); font-size: 13px; font-weight: 600; padding: 5px 15px;
  border: 1.6px solid rgba(255,255,255,.35);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  background: rgba(7,7,15,.4);
}
.chip:nth-child(even) { transform: rotate(.8deg); border-color: color-mix(in srgb, var(--cc) 60%, transparent); }
.chip:nth-child(odd) { transform: rotate(-.7deg); }
.meet { font-size: 13.5px; color: #cdd1e8; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 12px; z-index: 3;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px;
  background: var(--cc); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(11px); opacity: 0; } }

/* ===== プロフィール ===== */
.profile { display: grid; grid-template-columns: .95fr 1.05fr; gap: 26px; margin-top: 38px; align-items: start; }
.facts {
  border-radius: 22px; padding: 8px 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
}
.facts .row { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.facts .row:last-child { border-bottom: none; }
.facts dt { font-size: 12.5px; font-weight: 800; color: var(--cc); letter-spacing: .04em; line-height: 2.1; }
.facts dd { font-size: 14px; color: #dfe2ef; line-height: 1.85; }
.bio { display: grid; gap: 16px; }
.bio-card {
  position: relative; border-radius: 20px; padding: 24px 26px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
  transform: rotate(var(--tilt, 0deg));
}
.bio-card:nth-child(1) { --tilt: -.35deg; }
.bio-card:nth-child(2) { --tilt: .3deg; }
.bio-card:nth-child(3) { --tilt: -.25deg; }
.bio-card h3 { font-size: 15px; font-weight: 900; margin-bottom: 8px; color: var(--cc); }
.bio-card p { font-size: 14px; color: #d6dae9; }
.bio-card .tone { margin-top: 8px; font-size: 13.5px; color: var(--dim); }
.bio-card .tone b { color: var(--text); }
.bio-card.trivia { background: rgba(255,255,255,.02); border-style: dashed; }

/* ===== ストーリー（ビジュアルノベル） ===== */
.story .vn {
  margin-top: 38px; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a0a15;
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
}
.vn-screen {
  position: relative; height: clamp(260px, 40vh, 420px); overflow: hidden;
  background-color: #0b0b16;
}
.vn-screen::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--room); background-size: cover; background-position: center 30%;
  filter: blur(6px) saturate(.75) brightness(.5); transform: scale(1.08);
}
.vn-screen::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--cc) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(10,10,21,.45), rgba(10,10,21,.9));
}
.vn-art {
  position: absolute; left: 50%; top: -4%; height: 152%; width: auto; max-width: none;
  transform: translateX(-50%); z-index: 1;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,.6));
  transition: opacity .34s ease, transform .34s ease;
}
.vn-art.swap { opacity: 0; transform: translateX(-50%) translateY(8px); }
.vn-art.hidden { opacity: 0; }
.vn-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 3;
  display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(7,7,15,.55); backdrop-filter: blur(6px);
}
.vn-dots i { cursor: pointer; }
.vn-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.vn-dots i.on { background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.vn-text { position: relative; padding: 22px 26px; min-height: 132px; border-top: 1px solid rgba(255,255,255,.08); }
.beat { display: none; }
html:not(.js) .beat { display: block; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.beat.on { display: block; animation: beatIn .3s ease; }
@keyframes beatIn { from { opacity: 0; transform: translateY(6px); } }
.beat p { font-size: 15px; line-height: 2.05; }
.beat.narration p { font-family: "Klee One", var(--jp); font-weight: 600; color: #c8cce0; }
.beat.char p { color: #fff; font-weight: 500; }
.beat .who {
  display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .08em;
  color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 50%, transparent);
  border-radius: 999px; padding: 1px 12px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--cc) 12%, transparent);
}
.vn-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02);
}
.vn-btn, .vn-sound, .play {
  font-family: var(--jp); font-weight: 800; font-size: 13px; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 7px 16px; cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.vn-btn:hover, .vn-sound:hover, .play:hover { background: color-mix(in srgb, var(--cc) 22%, transparent); border-color: var(--cc); transform: translateY(-1px); }
.vn-btn[disabled] { opacity: .3; cursor: default; transform: none; }
.vn-count { font-family: var(--en); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.vn-count b { color: var(--cc); }
.vn-bar [data-next] { background: color-mix(in srgb, var(--cc) 20%, transparent); border-color: color-mix(in srgb, var(--cc) 55%, transparent); }
.vn-sound { margin-left: auto; }
.vn-sound[aria-pressed="false"] { opacity: .45; }
.vn-sound .ico { margin-right: 2px; }

/* ===== 関係レベル ===== */
.bonds { position: relative; margin-top: 38px; padding-left: 26px; display: grid; gap: 16px; }
.bonds::before {
  content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--cc) 70%, transparent) 12%, color-mix(in srgb, var(--cc) 70%, transparent) 88%, transparent);
}
.bond-card {
  position: relative; border-radius: 18px; padding: 20px 24px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09);
}
.bond-card::before {
  content: ""; position: absolute; left: -26px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cc); box-shadow: 0 0 14px var(--cc); border: 3px solid #0a0a15;
}
.bond-band { font-family: var(--en); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--cc); }
.bond-band b { font-family: var(--jp); font-size: 16px; letter-spacing: 0; color: var(--text); margin-left: 10px; }
.bond-sub { font-size: 13px; color: var(--dim); margin-bottom: 12px; }
.bond-line {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: "Klee One", var(--jp); font-weight: 600; font-size: 16px; line-height: 1.85;
  padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--cc) 9%, rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--cc) 26%, transparent);
}
.play { flex: 0 0 auto; padding: 5px 13px; line-height: 1.6; }
.play.playing { background: var(--cc); color: #05060e; border-color: var(--cc); }
.bond-call { font-size: 12.5px; color: var(--dim); margin-top: 10px; }

/* ===== 表情スライダー =====
   一覧で並べず、1枚ずつ送って見せる。左右に次の札が少しだけ覗く。
   タイルに .reveal を付けないこと（横に隠れた札が縦に飛び出す＝指の動きと画面が食い違う）。 */
.gallery { position: relative; margin-top: 34px; --card: min(66vw, 250px); }
.faces {
  display: flex; align-items: center; gap: 18px;
  /* 1枚が中央に来るよう、左右に半端な余白を置く */
  padding: 12px calc(50% - var(--card) / 2) 26px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain;            /* 行き止まりでページごと動かさない */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.faces::-webkit-scrollbar { display: none; }
.face-tile {
  position: relative; display: block; padding: 0; cursor: pointer; overflow: hidden;
  flex: 0 0 auto; width: var(--card); scroll-snap-align: center;
  border-radius: 22px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(170deg, color-mix(in srgb, var(--cc) 18%, rgba(255,255,255,.05)), rgba(255,255,255,.015));
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
  opacity: .38; transform: scale(.9);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.3,1), border-color .2s ease, box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
}
/* いま見ている1枚だけ、はっきり出す */
.face-tile.on {
  opacity: 1; transform: none; border-color: color-mix(in srgb, var(--cc) 60%, transparent);
  box-shadow: 0 24px 52px rgba(0,0,0,.55), 0 0 38px color-mix(in srgb, var(--cc) 38%, transparent);
}
.face-tile::after {                      /* 下端を沈めて立ち絵を浮かせる */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(transparent, color-mix(in srgb, var(--cc) 20%, rgba(7,7,15,.9)));
  pointer-events: none;
}
.face-tile img { display: block; width: 100%; height: auto; }
.fnum {
  position: absolute; top: 11px; left: 14px; z-index: 2;
  font-family: var(--en); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: #fff; opacity: .5; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
/* 送りボタン（スマホでも出す） */
.gal-nav {
  position: absolute; top: calc(50% - 22px); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(10,10,20,.72); border: 1px solid rgba(255,255,255,.18); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gal-nav::before { content: ""; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.gal-nav.prev { left: max(10px, calc(50% - var(--card) / 2 - 62px)); }
.gal-nav.prev::before { transform: rotate(135deg); margin-left: 4px; }
.gal-nav.next { right: max(10px, calc(50% - var(--card) / 2 - 62px)); }
.gal-nav.next::before { transform: rotate(-45deg); margin-right: 4px; }
.gal-nav:hover { background: var(--cc); border-color: var(--cc); }
.gal-nav:hover::before { border-color: #05060e; }
.gal-nav[disabled] { opacity: .2; pointer-events: none; }
/* 何枚目か */
.gal-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gal-count { font-family: var(--en); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--dim); }
.gal-count b { color: var(--cc); font-size: 17px; margin-right: 4px; }
.gal-dots { display: flex; gap: 6px; }
.gal-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18);
  transition: background .25s ease, transform .25s ease;
}
.gal-dots span.on { background: var(--cc); transform: scale(1.4); }
@media (min-width: 781px) { .gallery { --card: 340px; } .gal-nav { width: 50px; height: 50px; } }

/* ===== 解放クエスト・ほかのキャラ ===== */
.unlock {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  margin-top: 10px; padding: 34px 34px; border-radius: 24px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 14%, rgba(255,255,255,.04)), rgba(255,255,255,.015));
  border: 1px solid color-mix(in srgb, var(--cc) 28%, transparent);
}
.quest {
  margin-top: 18px; font-family: "Klee One", var(--jp); font-weight: 600; font-size: 15.5px;
  padding: 14px 18px; border-radius: 14px; background: rgba(7,7,15,.5);
  border: 1.6px dashed color-mix(in srgb, var(--cc) 50%, transparent);
}
.quest span { display: block; font-family: var(--en); font-size: 11px; letter-spacing: .18em; color: var(--cc); margin-bottom: 4px; }
.cta {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; padding: 16px 36px; border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan) 0%, #4f7dff 50%, var(--purple) 100%);
  color: #05060e; font-weight: 900; line-height: 1.4;
  box-shadow: 0 0 30px rgba(0,229,255,.35), 0 12px 30px rgba(79,125,255,.3);
  transition: transform .18s ease; white-space: nowrap;
}
.cta:hover { transform: translateY(-2px) scale(1.02); }
.cta .en { font-family: var(--en); font-size: 16px; }
.cta .sub { font-size: 11px; font-weight: 800; opacity: .8; }
.others-wrap { margin-top: 46px; text-align: center; }
.others-title { font-family: var(--en); font-size: 12px; letter-spacing: .28em; color: var(--dim); margin-bottom: 16px; }
.others { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.other {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 78px;
  text-decoration: none; font-size: 12px; font-weight: 800; color: #cdd1e8;
  transition: transform .18s ease, color .18s ease;
}
.other img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--cc) 55%, transparent);
  background: #12121f;
}
.other:hover { transform: translateY(-3px); color: var(--cc); }
.others-all { margin-top: 22px; font-size: 13.5px; font-weight: 800; }
.others-all a { color: var(--cyan); text-decoration: none; }

/* ===== ライトボックス ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 40px 20px;
  background: rgba(5,5,12,.92); backdrop-filter: blur(8px);
  animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-height: 78vh; width: auto; filter: drop-shadow(0 20px 50px rgba(0,0,0,.6)); }
.lightbox p { font-family: "Klee One", var(--jp); font-weight: 600; font-size: 15px; color: var(--cc); }
.lb-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 16px; cursor: pointer;
}

/* ===== 一覧ページ ===== */
.charlist .stage::before {
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(0,229,255,.16), transparent 60%),
    radial-gradient(700px 500px at 70% 90%, rgba(255,79,160,.12), transparent 60%);
}
.list-hero { padding: 70px 0 10px; }
.list-hero h1 { font-size: clamp(30px, 5.4vw, 54px); font-weight: 900; line-height: 1.35; margin-bottom: 18px; }
.grp {
  font-size: 15px; font-weight: 900; letter-spacing: .1em; margin: 46px 0 18px;
  display: flex; align-items: center; gap: 14px; color: var(--dim);
}
.grp::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.18), transparent); }
.lgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lcard {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.1); aspect-ratio: 3 / 5;
  background: #0d0d1a;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.lcard::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--room); background-size: cover; background-position: center;
  filter: blur(14px) saturate(.6) brightness(.5); transform: scale(1.15);
}
.lcard::after {
  /* 立ち絵より前に敷く（名前が脚や服に重なると読めない） */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 46%, rgba(7,7,15,.72) 72%, rgba(7,7,15,.96) 88%);
}
.lcard:hover { transform: translateY(-6px); border-color: var(--cc); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.lart {
  position: absolute; left: 50%; top: 6%; width: 96%; height: auto; z-index: 0;
  transform: translateX(-50%); transition: transform .3s ease;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.5));
}
.lcard:hover .lart { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.lromaji {
  position: absolute; top: 12px; left: 14px; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,.6);
  font-family: var(--en); font-weight: 900; font-size: 13px; letter-spacing: .16em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--cc) 85%, transparent);
}
.lbody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 18px; text-align: center; }
.lbody b { display: block; font-size: 21px; font-weight: 900; line-height: 1.3; }
.lbody i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--cc); margin-top: 2px; }
.lbody em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); margin-top: 4px; }

/* ===== フッター ===== */
footer { margin-top: 96px; padding: 46px 24px 40px; text-align: center; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.3); }
.foot-logo { font-family: var(--en); font-weight: 900; font-size: 20px; letter-spacing: .06em; margin-bottom: 16px; }
.foot-logo b { color: var(--cyan); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.foot-links a { color: #cdd1e8; text-decoration: none; }
.foot-links a:hover { color: var(--cyan); }
.foot-note { font-size: 11.5px; color: #7d819a; line-height: 2; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .profile { grid-template-columns: 1fr; }
  .lgrid { grid-template-columns: repeat(3, 1fr); }
  .unlock { grid-template-columns: 1fr; }
  .unlock .cta { width: 100%; }
}
@media (max-width: 680px) {
  .sec { padding: 72px 0 0; }
  .hero { min-height: auto; padding: 26px 0 40px; display: block; }
  .hero-art {
    position: relative; right: auto; margin: 0 auto -18px;
    height: auto; width: min(78vw, 320px); max-width: none;
    animation: none;
  }
  .hero-art img { width: 100%; height: auto; }
  .hero-art::after {
    content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 34%;
    background: linear-gradient(transparent, var(--bg) 88%);
  }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(40px, 13vw, 60px); }
  .hero .lead { margin-left: auto; margin-right: auto; max-width: none; }
  .chips, .catch { justify-content: center; }
  .chips { justify-content: center; }
  .scroll-cue { display: none; }
  .facts .row { grid-template-columns: 5.5em 1fr; gap: 8px; }
  .vn-text { padding: 18px 18px; min-height: 150px; }
  .vn-bar { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  .faces { gap: 14px; }
  .lgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bonds { padding-left: 22px; }
  .bond-card { padding: 18px 18px; }
  .bond-card::before { left: -22px; }
  .unlock { padding: 26px 22px; }
  .other { width: 68px; }
  .other img { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
