/* ============================================================
   心野まるっとラボ — 2026-10-14 リニューアル版の共通スタイル
   ------------------------------------------------------------
   ・文字は少なく、絵を大きく。スマホが先、パソコンはそのあと
   ・Webフォントは見出しの英字とロゴだけ（本文は端末の文字）
   ・クラス名はすべて v- で始まります（古い lab.css とぶつからない）
   ・ページごとの飾りは css/v2-top.css などに分けています
   🔴 style.css・script.js・lab.css は、ほかのページが使うので触らない
   ============================================================ */

/* 見出し用の文字（Zen Maru Gothic 700 から、英数字・記号と「心野まるっとラボ」だけを抜き出した 8KB）
   🔴 名前を「Lab Disp」にしてあるのは、古いページの「Zen Maru Gothic」指定とまざらないため
   🔴 これ以外の日本語は入っていないので、--v-disp を日本語の見出しに使わない */
@font-face {
  font-family: "Lab Disp";
  src: url("/assets/v2/font/lab-disp.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20-21, U+23, U+26, U+28-29, U+2B-3A, U+3F, U+41-5A, U+61-7A, U+2192, U+2197, U+3063, U+3068-3069, U+307E, U+308B, U+3099, U+30DB-30DC, U+30E9, U+5FC3, U+91CE;
}

:root {
  --v-paper:   #fbf6ec;
  --v-paper2:  #f3ead9;
  --v-card:    #fffdf8;
  --v-ink:     #2e2721;
  --v-ink2:    #6f6155;
  --v-line:    rgba(46, 39, 33, .12);
  --v-night:   #1b2338;   /* 夜の藍 */
  --v-night2:  #121828;
  --v-night-ink:  #f6efe2;
  --v-night-ink2: #b9b3a6;
  --v-honey:   #d9a35b;
  --v-shu:     #c4553b;   /* 判子の朱 */
  --v-cheese:  #f6d36b;
  --v-green:   #5f7d57;
  --v-sky:     #4f7d99;

  --v-disp: "Lab Disp", "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  --v-sans: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", YuGothic, "Meiryo", system-ui, sans-serif;

  --v-r:   16px;
  --v-r-s: 10px;
  --v-wrap: 1180px;
  --v-gut: 20px;
  --v-header: 60px;
  --v-shadow: 0 2px 6px rgba(46, 39, 33, .06), 0 14px 34px rgba(46, 39, 33, .10);
  --v-ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--v-header) + 8px); }
body.v-body {
  margin: 0;
  background: var(--v-paper);
  color: var(--v-ink);
  font-family: var(--v-sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-x: hidden;
}
:where(.v-body img) { max-width: 100%; height: auto; display: block; }
:where(.v-body a) { color: inherit; text-decoration: none; }
:where(.v-body) :where(h1, h2, h3, p) { margin: 0; }
:where(.v-body) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.v-body :focus-visible { outline: 3px solid var(--v-honey); outline-offset: 3px; border-radius: 6px; }

/* 古いページ（攻略ノートなど）に新しいヘッダー・フッターだけを入れたときの下地 */
.v-header, .v-menu, .v-footer { font-family: var(--v-sans); line-height: 1.8; letter-spacing: .02em; }
.v-header a, .v-menu a, .v-footer a { color: inherit; text-decoration: none; }
.v-header img, .v-menu img, .v-footer img { display: block; max-width: 100%; height: auto; }
.v-menu p, .v-footer p { margin: 0; }
.v-menu ul, .v-footer ul { margin: 0; padding: 0; list-style: none; }

.v-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--v-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.v-skip:focus { left: 8px; }
.v-disp { font-family: var(--v-disp); font-weight: 700; }

.v-wrap { width: 100%; max-width: var(--v-wrap); margin: 0 auto; padding: 0 var(--v-gut); }
@media (min-width: 768px) { :root { --v-gut: 32px; } }

/* ---------- 見出し（英字ラベル＋日本語） ---------- */
.v-head { margin-bottom: 22px; }
.v-head--center { text-align: center; }
.v-label {
  font-family: var(--v-disp); font-weight: 700;
  font-size: clamp(1.9rem, 6.4vw, 3.1rem);
  line-height: 1.05; letter-spacing: .06em;
}
.v-label small {
  display: block; margin-top: 8px;
  font-family: var(--v-sans); font-weight: 700;
  font-size: .82rem; letter-spacing: .14em; color: var(--v-ink2);
}
.v-night .v-label small, .v-dark .v-label small { color: var(--v-night-ink2); }
.v-lead { color: var(--v-ink2); font-size: .95rem; }

/* ---------- セクション ---------- */
.v-sec { padding: 64px 0; }
@media (min-width: 768px) { .v-sec { padding: 96px 0; } }
.v-sec--tight { padding: 40px 0; }
.v-paper2 { background: var(--v-paper2); }
.v-night { background: var(--v-night); color: var(--v-night-ink); }
.v-night .v-lead { color: var(--v-night-ink2); }

/* ---------- ボタン ---------- */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 10px 26px;
  border-radius: 999px; border: 0;
  background: var(--v-ink); color: #fffdf8 !important;
  font-family: var(--v-sans); font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  cursor: pointer; transition: transform .25s var(--v-ease), box-shadow .25s, background .25s;
}
.v-btn:hover { transform: translateY(-2px); box-shadow: var(--v-shadow); }
.v-btn--light { background: #fffdf8; color: var(--v-ink) !important; }
.v-btn--play { background: var(--v-cheese); color: var(--v-ink) !important; }
.v-btn--ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.v-btn--sm { min-height: 40px; padding: 6px 18px; font-size: .86rem; }
.v-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.v-btns--center { justify-content: center; }
.v-arrow::after { content: "→"; font-family: var(--v-sans); transition: transform .25s var(--v-ease); }
.v-ext::after { content: "↗"; font-family: var(--v-sans); font-size: .9em; }
a:hover .v-arrow::after, .v-arrow:hover::after { transform: translateX(3px); }

/* ---------- 小さな札 ---------- */
.v-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; line-height: 1.7;
  background: var(--v-ink); color: #fffdf8;
}
.v-tag--live { background: var(--v-shu); }
.v-tag--game { background: var(--v-sky); }
.v-tag--app { background: var(--v-green); }
.v-tag--story { background: var(--v-honey); color: var(--v-ink); }
.v-tag--soft { background: rgba(46, 39, 33, .08); color: var(--v-ink); }
.v-tag--new { background: var(--v-cheese); color: var(--v-ink); }

/* ============================================================
   ヘッダー
   ============================================================ */
.v-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--v-header);
  background: rgba(251, 246, 236, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--v-line);
  transition: background .3s, border-color .3s, color .3s;
}
.v-header__in {
  height: 100%; max-width: var(--v-wrap); margin: 0 auto; padding: 0 var(--v-gut);
  display: flex; align-items: center; gap: 18px;
}
.v-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 1.05rem; letter-spacing: .08em; white-space: nowrap; }
.v-brand img { width: 30px; height: 30px; }
.v-nav { display: none; gap: 26px; font-family: var(--v-disp); font-weight: 700; font-size: .9rem; letter-spacing: .14em; }
.v-nav a { position: relative; padding: 6px 0; }
.v-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--v-ease); }
.v-nav a:hover::after, .v-nav a[aria-current="page"]::after { transform: scaleX(1); }
.v-header__note {
  display: none; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px; background: var(--v-ink); color: #fffdf8 !important;
  font-family: var(--v-disp); font-weight: 700; font-size: .85rem; letter-spacing: .08em;
}
@media (min-width: 900px) {
  .v-nav { display: flex; }
  .v-header__note { display: inline-flex; }
}

/* 絵の上に重ねるヘッダー（トップ・ゲームラボの最初の画面だけ） */
.v-header--over {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent; color: #fffdf8;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.v-header--over .v-header__note { background: rgba(255, 253, 248, .95); color: var(--v-ink) !important; }
.v-header--over.is-solid {
  background: rgba(251, 246, 236, .94); color: var(--v-ink); border-bottom-color: var(--v-line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.v-header--over.is-solid .v-header__note { background: var(--v-ink); color: #fffdf8 !important; }
.v-header--over:not(.is-solid) .v-brand, .v-header--over:not(.is-solid) .v-nav { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }

/* メニューボタン（スマホ） */
.v-menu-btn {
  width: 46px; height: 46px; margin-right: -8px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 12px;
}
.v-menu-btn span:not(.v-sr) { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.v-header--over:not(.is-solid) .v-menu-btn span:not(.v-sr) { box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
@media (min-width: 900px) { .v-menu-btn { display: none; } }

/* 全画面メニュー */
.v-menu {
  position: fixed; inset: 0; z-index: 150;
  background: var(--v-night); color: var(--v-night-ink);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 80px 28px 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.v-menu.is-open { opacity: 1; visibility: visible; }
.v-menu[hidden] { display: none; }
.v-menu__close {
  position: absolute; top: 8px; right: 12px; width: 48px; height: 48px;
  border: 0; background: transparent; color: inherit; font-size: 2rem; line-height: 1; cursor: pointer;
}
.v-menu__nav { display: grid; gap: 6px; }
.v-menu__nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(246, 239, 226, .12); }
.v-menu__nav b { font-family: var(--v-disp); font-size: 2rem; letter-spacing: .08em; line-height: 1.2; }
.v-menu__nav small { font-size: .8rem; color: var(--v-night-ink2); letter-spacing: .1em; }
.v-menu .v-btn { align-self: flex-start; }
body.v-locked { overflow: hidden; }

/* ============================================================
   最初の画面（キービジュアル）
   ============================================================ */
.v-kv {
  position: relative; height: 100vh; height: 100svh; min-height: 520px; max-height: 1100px;
  overflow: hidden; background: var(--v-night2); color: #fffdf8;
}
.v-kv picture, .v-kv__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-kv__img { object-fit: cover; object-position: 50% 30%; }
.v-kv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 24, 40, .38) 0%, rgba(18, 24, 40, 0) 22%),
    linear-gradient(to top, rgba(18, 24, 40, .78) 0%, rgba(18, 24, 40, .25) 34%, rgba(18, 24, 40, 0) 55%);
}
.v-kv__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 var(--v-gut) calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  animation: v-rise 1.1s .2s var(--v-ease) both;
}
.v-kv__en { font-family: var(--v-disp); font-weight: 700; font-size: .78rem; letter-spacing: .32em; opacity: .9; }
.v-kv__title {
  margin-top: 6px; font-family: var(--v-disp); font-weight: 700;
  font-size: clamp(2.2rem, 9.5vw, 4.6rem); line-height: 1.15; letter-spacing: .06em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.v-kv__sub { margin-top: 8px; font-weight: 700; font-size: clamp(.9rem, 3.4vw, 1.1rem); letter-spacing: .2em; }
.v-kv__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px;
  font-family: var(--v-disp); font-size: .66rem; letter-spacing: .3em; opacity: .85;
}
.v-kv__scroll::after { content: ""; width: 1px; height: 34px; background: currentColor; animation: v-scroll 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes v-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes v-scroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 小さめの最初の画面（下層ページ） */
.v-kv--sub { height: 56vh; height: 56svh; min-height: 360px; max-height: 640px; }

/* ============================================================
   お知らせ（日付＋一行）
   ============================================================ */
.v-news { border-top: 1px solid var(--v-line); }
.v-news li { border-bottom: 1px solid var(--v-line); }
.v-news a, .v-news__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 14px;
  padding: 14px 2px; font-size: .92rem; line-height: 1.6;
}
.v-news time { font-family: var(--v-disp); font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--v-ink2); }
.v-news a::after { content: "→"; color: var(--v-ink2); transition: transform .25s var(--v-ease); }
.v-news a:hover::after { transform: translateX(3px); }
.v-news__text { min-width: 0; }
.v-news__text .v-tag { margin-right: 8px; vertical-align: 1px; }

/* ============================================================
   横に流れる棚（PICK UP など）
   ============================================================ */
.v-rail-wrap { position: relative; }
.v-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--v-gut) 14px; margin: 0 calc(var(--v-gut) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.v-rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .v-rail { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .v-rail { grid-auto-columns: calc((100% - 2 * var(--v-gut) - 42px) / 3.6); } }
.v-rail > * { scroll-snap-align: start; scroll-margin-left: var(--v-gut); }
.v-rail-btns { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 900px) { .v-rail-btns { display: flex; } }
.v-rail-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit;
  font-size: 1.1rem; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.v-rail-btn:hover { background: var(--v-ink); color: #fffdf8; border-color: var(--v-ink); }
.v-rail-btn[disabled] { opacity: .25; cursor: default; background: transparent; color: inherit; }
.v-headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.v-headrow .v-head { margin-bottom: 0; }

/* ---------- 絵のカード ---------- */
.v-card { display: block; color: inherit; }
.v-card__img {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--v-r);
  background: var(--v-paper2); box-shadow: var(--v-shadow);
}
.v-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--v-ease); }
.v-card:hover .v-card__img img { transform: scale(1.05); }
.v-card__img .v-tag { position: absolute; left: 10px; top: 10px; }
.v-card__title { margin-top: 10px; font-weight: 700; font-size: .98rem; line-height: 1.5; }
.v-card__sub { margin-top: 2px; font-size: .8rem; color: var(--v-ink2); }
.v-night .v-card__sub { color: var(--v-night-ink2); }

/* ---------- 大きな絵のタイル（入口） ---------- */
.v-tiles { display: grid; gap: 14px; }
@media (min-width: 768px) { .v-tiles { grid-template-columns: 1fr 1fr; gap: 18px; } }
.v-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--v-r);
  aspect-ratio: 16 / 10; background: var(--v-night2); color: #fffdf8 !important; box-shadow: var(--v-shadow);
  isolation: isolate;
}
.v-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--v-ease); z-index: -2; }
.v-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18, 24, 40, .82) 0%, rgba(18, 24, 40, .2) 46%, rgba(18, 24, 40, 0) 70%); }
.v-tile:hover img { transform: scale(1.05); }
.v-tile__body { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.v-tile__en { font-family: var(--v-disp); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.6rem); letter-spacing: .08em; line-height: 1; }
.v-tile__jp { display: block; margin-top: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; opacity: .92; }
.v-tile__go {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 253, 248, .95); color: var(--v-ink); font-weight: 700; transition: transform .3s var(--v-ease);
}
.v-tile:hover .v-tile__go { transform: translateX(4px); }

/* ============================================================
   フッター
   ============================================================ */
.v-footer { background: var(--v-night2); color: var(--v-night-ink); padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.v-footer__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; letter-spacing: .1em; }
.v-footer__brand img { width: 34px; height: 34px; }
.v-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-family: var(--v-disp); font-weight: 700; font-size: .85rem; letter-spacing: .14em; }
.v-footer__links a { opacity: .85; }
.v-footer__links a:hover { opacity: 1; }
.v-footer .v-btn { margin-top: 26px; }
.v-sign { margin-top: 30px; font-size: .82rem; line-height: 1.9; color: var(--v-night-ink2); }
.v-copy { margin-top: 22px; font-size: .7rem; color: var(--v-night-ink2); opacity: .8; }

/* ---------- 動きを控えたい人には、動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v-body *, .v-body *::before, .v-body *::after { animation: none !important; transition: none !important; }
}

/* フッター：X ボタンと、メンバーシップの小さなリンク（トップ以外） */
.v-footer__ext { margin-top: 26px; }
.v-footer__ext .v-btn { margin-top: 0; }
.v-footer__member { margin-top: 18px; font-size: .82rem; }
.v-footer__member a { color: var(--v-night-ink2); text-decoration: underline; text-underline-offset: 3px; }
.v-footer__member a:hover { color: var(--v-night-ink); }
/* メンバーシップの招待（読みもの部屋の本棚の下）：落ち着いた森の色、控えめに */
.v-member { margin: 44px auto 0; max-width: 560px; padding: 22px 20px 24px; border-radius: var(--v-r); text-align: center;
  background: #eef2e8; border: 1px solid rgba(95, 125, 87, .22); }
.v-member__en { font-family: var(--v-disp); font-weight: 700; font-size: .72rem; letter-spacing: .24em; color: var(--v-green); }
.v-member__title { margin-top: 4px; font-weight: 700; font-size: 1.05rem; }
.v-member__text { margin: 8px 0 14px; font-size: .86rem; line-height: 1.8; color: var(--v-ink2); }
.v-member-line { margin-top: 30px; text-align: center; font-size: .84rem; }
.v-member-line a { color: var(--v-ink2); text-decoration: underline; text-underline-offset: 3px; }
.v-member-line a:hover { color: var(--v-ink); }
