/* ============================================================
   virtualparty.jp — 会社サイト（v2: ゲームをつくる会社）
   ・地は方眼紙（ボードゲームの盤面）。カードは太い墨線＋ずらした影
   ・見出しは1文字ずつのタイル（build.mjs の data-tiles）
   ・色はロゴの墨（#575655）と青灰（#697a94）に、ダイスの5色を足す
   ・動き（作品の壁・ダイス・カウントアップ・カードの傾き）は
     prefers-reduced-motion で止める
   ============================================================ */
:root {
  --paper: #fbf7ee;
  --paper-2: #f3eddf;
  --grid: rgba(70, 86, 111, .09);
  --ink: #23252b;
  --ink-2: #474a53;
  --muted: #6c6f79;
  --card: #ffffff;
  --brand: #697a94;
  --brand-deep: #46566f;
  --red: #ef5350;
  --yellow: #ffc83d;
  --mint: #2ec4b0;
  --pink: #ff7aa8;
  --blue: #4d7cff;
  --purple: #8c6cf2;
  --line: 2.5px solid var(--ink);
  --pop: 4px 4px 0 var(--ink);
  --pop-lg: 7px 7px 0 var(--ink);
  --r: 16px;
  --font: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, -apple-system, "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
  --font-display: "Dela Gothic One", var(--font);
  --font-en: "Outfit", var(--font);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: .22em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.35; letter-spacing: .04em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- タイル見出し ---------- */
.tiles { display: inline-flex; flex-direction: column; gap: .12em; }
.tiles__line { display: flex; flex-wrap: wrap; gap: .1em; }
.tile {
  display: inline-grid; place-items: center;
  width: 1.32em; height: 1.32em;
  background: var(--card); color: var(--ink); border: var(--line); border-radius: .2em;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display); font-weight: 400; line-height: 1;
  transform: rotate(var(--r, 0deg));
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.tile-gap { width: .35em; }
.tiles .tile:nth-child(5n+1) { background: var(--yellow); }
.tiles .tile:nth-child(5n+3) { background: #c9f2ec; }
.tiles .tile:nth-child(5n+4) { background: #ffd9e6; }
h1:hover .tile, h2:hover .tile { transform: rotate(0deg) translateY(-2px); }

.heading { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.heading-en { display: inline-block; margin-bottom: 14px; font-family: var(--font-en); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--card); background: var(--ink); padding: .15em .8em; border-radius: 999px; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head__lead { margin-top: 18px; max-width: 680px; color: var(--ink-2); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none;
  border: var(--line); box-shadow: var(--pop);
  font-weight: 800; font-size: 1rem; letter-spacing: .05em; line-height: 1.2;
  cursor: pointer; font-family: var(--font);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--yellow { background: var(--yellow); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { color: #fff; }
.btn--small { padding: .5em 1.05em; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.site-logo img { height: 36px; width: auto; }
@media (max-width: 560px) { .site-logo img { height: 30px; } }
.site-nav__list { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav__list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 800; font-size: .98rem; padding: 4px 2px; background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 40%; background-position: 0 88%; background-repeat: no-repeat; transition: background-size .2s; }
.site-nav__list a:not(.btn):hover, .site-nav__list a[aria-current="page"]:not(.btn) { background-size: 100% 40%; }
.site-nav__list .btn { background: var(--yellow); }
.ext { font-size: .75em; margin-left: .15em; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: block; position: relative; width: 46px; height: 46px; margin-right: -6px; background: var(--card); border: var(--line); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
  .nav-toggle__bar { position: absolute; left: 10px; width: 22px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
  .nav-toggle__bar:nth-child(1) { top: 13px; }
  .nav-toggle__bar:nth-child(2) { top: 20px; }
  .nav-toggle__bar:nth-child(3) { top: 27px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; }
  .site-nav__list li { border-top: 2px dashed rgba(35, 37, 43, .2); }
  .site-nav__list li:first-child, .site-nav__list li:last-child { border-top: 0; }
  .site-nav__list a:not(.btn) { display: block; padding: 14px 2px; font-size: 1.05rem; background-size: 0 0 !important; }
  .site-nav__list .btn { margin-top: 14px; width: 100%; }
}

/* 右下に常にいる「作品一覧」ダイス */
.dice-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; justify-items: center; gap: 2px;
  width: 74px; padding: 10px 0 8px;
  background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--pop);
  color: var(--ink); text-decoration: none; font-size: .7rem; font-weight: 800; line-height: 1.2;
  transition: transform .15s;
}
.dice-fab:hover { color: var(--ink); transform: rotate(-6deg) translateY(-2px); }
.dice-fab svg { width: 34px; height: 34px; }
@media (max-width: 760px) { .dice-fab { width: 62px; right: 12px; bottom: 12px; } .dice-fab svg { width: 28px; height: 28px; } }

/* ---------- セクション ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.band { background: var(--paper-2); border-top: var(--line); border-bottom: var(--line); }

/* ---------- ヒーロー：VR ワールドの卓 ----------
   夕暮れの VR ワールドの空の下に、作品の表紙を並べたテーブル（グリッドの床）が奥へ伸びる。
   宙にダイスやコマが浮く。真ん中のカードは VR の中に置いた紙のカード。 */
.hero {
  position: relative; overflow: hidden; border-bottom: var(--line);
  min-height: min(88vh, 800px); display: grid; align-items: center;
  padding: clamp(64px, 8vw, 104px) 0 clamp(150px, 18vw, 230px);
  background: linear-gradient(180deg, #1c1940 0%, #33296f 26%, #7b4f9e 50%, #e88f86 68%, #ffc99a 80%, #ffe6c2 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 45% 0; z-index: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 28% 8%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 22%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 78% 26%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 90% 9%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 6% 38%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 54% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 96% 40%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 36% 42%, #fff 50%, transparent 52%);
}
.hero__table { position: absolute; left: -35%; right: -35%; bottom: 0; height: 58%; z-index: 0; perspective: 820px; perspective-origin: 50% -10%; pointer-events: none; }
.wall {
  position: absolute; left: 0; right: 0; top: 0; height: 230%;
  transform: rotateX(62deg); transform-origin: 50% 0;
  display: grid; align-content: start; gap: 22px; padding-top: 26px;
  background-color: #2a2358;
  background-image: linear-gradient(rgba(46, 196, 176, .38) 2px, transparent 2px), linear-gradient(90deg, rgba(46, 196, 176, .38) 2px, transparent 2px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}
.wall__track { display: flex; gap: 22px; width: max-content; animation: wall-left 90s linear infinite; }
.wall__row--2 .wall__track { animation-name: wall-right; animation-duration: 110s; }
.wall__row--3 .wall__track { animation-duration: 100s; }
.wall__row--4 .wall__track { animation-name: wall-right; animation-duration: 95s; }
.wall__track img { width: 150px; aspect-ratio: 1; border-radius: 12px; border: 3px solid var(--ink); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); background: #3a2f6b; }
@keyframes wall-left { to { transform: translateX(-50%); } }
@keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero__card {
  position: relative; z-index: 3; width: min(100%, 660px); margin: 0 auto;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(30px, 4.4vw, 46px) clamp(22px, 4vw, 48px); text-align: center;
}
.hero__plate {
  position: absolute; left: 50%; top: -22px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  background: var(--ink); color: #fff; border-radius: 999px; padding: .35em 1em .35em .7em;
  font-size: .82rem; font-weight: 800; letter-spacing: .06em; box-shadow: 0 0 0 3px var(--paper);
}
.hero__plate svg { width: 30px; height: 20px; }
.hero__plate b { color: var(--yellow); font-weight: 800; }
.hero__motto { margin-top: 6px; font-family: var(--font-en); font-weight: 700; font-size: clamp(.95rem, 1.8vw, 1.1rem); letter-spacing: .28em; text-transform: uppercase; color: var(--brand-deep); }
.hero__title { margin-top: 10px; font-size: clamp(2.3rem, 6.4vw, 3.8rem); display: flex; justify-content: center; }
.hero__title .tiles { align-items: center; }
.hero__catch { margin-top: 22px; font-size: clamp(1.05rem, 2.3vw, 1.3rem); font-weight: 800; }
.hero__lead { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }
.hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* 宙に浮かぶダイスやコマ */
.piece { position: absolute; z-index: 2; width: var(--s, 70px); height: var(--s, 70px); pointer-events: none; filter: drop-shadow(5px 7px 0 rgba(20, 16, 50, .35)); animation: float var(--d, 6s) ease-in-out var(--delay, 0s) infinite; }
.piece svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--rot, 0deg) + 14deg)); } }
@media (max-width: 760px) {
  .piece { --s: 46px !important; }
  .piece--hide-sm { display: none; }
  .hero { min-height: 0; padding: 70px 0 210px; }
  .hero__table { height: 46%; }
  .hero__lead { font-size: .9rem; }
  .piece--sm-bl { top: auto !important; left: 9% !important; bottom: 70px; --s: 58px !important; }
  .piece--sm-br { top: auto !important; right: 10% !important; bottom: 96px; --s: 58px !important; }
}
.nowrap { white-space: nowrap; }

/* ダイス（振る） */
.die { width: 1.5em; height: 1.5em; flex: none; }
.btn.is-rolling .die { animation: die-roll .7s cubic-bezier(.2, .8, .3, 1); }
@keyframes die-roll { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(320deg) scale(1.25); } 100% { transform: rotate(720deg) scale(1); } }

/* 引いたカード（dialog） */
.draw { border: 3px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); padding: 0; width: min(92vw, 380px); background: var(--paper); color: var(--ink); }
.draw::backdrop { background: rgba(35, 37, 43, .55); }
.draw[open] { animation: draw-in .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes draw-in { from { transform: translateY(30px) rotate(-8deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.draw__inner { padding: 22px 22px 20px; text-align: center; }
.draw__pips { font-family: var(--font-en); font-weight: 700; font-size: .85rem; letter-spacing: .1em; color: var(--brand-deep); }
/* 引いたカード：ロゴ入りの裏面 → 表（作品）に返る */
.draw__card { position: relative; margin: 14px auto 0; width: 220px; aspect-ratio: 1; perspective: 900px; }
.draw__face { position: absolute; inset: 0; border-radius: 16px; border: var(--line); box-shadow: var(--pop); overflow: hidden; backface-visibility: hidden; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.draw__face--front { background: var(--card); transform: rotateY(-180deg); }
.draw__face--front img { width: 100%; height: 100%; object-fit: cover; }
.draw__face--back { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #697a94 0 9px, #7d8daa 9px 18px); box-shadow: inset 0 0 0 9px var(--paper), inset 0 0 0 11px var(--ink), var(--pop); }
.draw__emblem { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink); display: grid; place-items: center; }
.draw__emblem img { width: 74%; height: auto; }
.draw__card.is-open .draw__face--back { transform: rotateY(180deg); }
.draw__card.is-open .draw__face--front { transform: rotateY(0); }
.draw__card ~ * { transition: opacity .3s .35s; }
.draw__card:not(.is-open) ~ * { opacity: 0; transition: none; }
.draw__cat { margin-top: 16px; display: inline-block; font-size: .78rem; font-weight: 800; padding: .1em .8em; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); }
.draw__name { margin-top: 8px; font-size: 1.3rem; }
.draw__actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.draw__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); font-size: 1.1rem; cursor: pointer; line-height: 1; color: var(--ink); }

/* ---------- キャラクターシート（数字） ---------- */
.sheet {
  position: relative; background: #fffdf5; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--pop-lg);
  padding: clamp(22px, 3.6vw, 36px);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(70, 86, 111, .07) 31px 32px);
}
.sheet__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 3px double var(--ink); padding-bottom: 12px; }
.sheet__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.45rem); }
.sheet__title svg { width: 34px; height: 34px; }
.sheet__sys { font-family: var(--font-en); font-weight: 700; font-size: .78rem; letter-spacing: .18em; color: var(--muted); }
.sheet__id { margin-top: 16px; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; }
.sheet__portrait { position: relative; border: 2px solid var(--ink); border-radius: 6px; padding: 4px 10px 10px; background: var(--card) radial-gradient(circle, rgba(35, 37, 43, .12) 1px, transparent 1.5px) 0 0 / 10px 10px; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.sheet__portrait img { place-self: center; width: auto; height: auto; max-width: 84%; max-height: 84px; }
.sheet__profile { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.field { border: 2px solid var(--ink); border-radius: 6px; padding: 4px 12px 8px; background: var(--card); }
.field__label { font-size: .7rem; font-weight: 800; color: var(--muted); letter-spacing: .1em; }
.field__value { font-weight: 800; font-size: 1rem; line-height: 1.4; }
.sheet__stats { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { border: 2px solid var(--ink); border-radius: 6px; padding: 10px 14px 12px; background: var(--card); position: relative; }
.stat__label { font-size: .78rem; font-weight: 800; color: var(--ink-2); padding-right: 28px; }
.stat__value { margin-top: 2px; font-family: var(--font-en); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; white-space: nowrap; }
.stat__pre { font-family: var(--font); font-size: .42em; font-weight: 800; margin-right: .12em; }
.stat__unit { font-family: var(--font); font-size: .42em; font-weight: 800; margin-left: .18em; }
.stat__bar { margin-top: 8px; height: 10px; border-radius: 6px; background: var(--paper-2); border: 2px solid var(--ink); overflow: hidden; }
.stat__bar i { display: block; height: 100%; width: var(--fill, 100%); background: var(--c, var(--mint)); transform-origin: left; }
[data-status].is-in .stat__bar i { animation: bar-fill 1.4s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes bar-fill { from { transform: scaleX(0); } }
.stat__note { margin-top: 6px; font-size: .74rem; color: var(--muted); line-height: 1.55; }
.stat > svg { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; }
.sheet__skills { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sheet__skills-label { font-weight: 800; font-size: .85rem; margin-right: 4px; }
.skill-chip { font-weight: 800; font-size: .85rem; padding: .15em .8em; border: 2px solid var(--ink); border-radius: 6px; background: #c9f2ec; }
.skill-chip:nth-of-type(3n+1) { background: #fff1c2; } .skill-chip:nth-of-type(3n+2) { background: #ffd9e6; }
@media (max-width: 860px) { .sheet__stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sheet__id { grid-template-columns: 92px minmax(0, 1fr); } .sheet__profile { grid-template-columns: 1fr; } }

/* ---------- ラインナップ ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.tab { font-family: var(--font); font-weight: 800; font-size: .95rem; padding: .5em 1.1em; border-radius: 12px; border: var(--line); background: var(--card); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; color: var(--ink); }
.tab small { font-family: var(--font-en); font-weight: 700; margin-left: .35em; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tab[aria-selected="true"] small { color: var(--yellow); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.game a, .game__inner { display: grid; gap: 8px; text-decoration: none; color: var(--ink); position: relative; }
.game__cover { display: block; position: relative; aspect-ratio: 1; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1); }
.game__face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: var(--line); box-shadow: var(--pop); background: var(--card); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.game__face img { width: 100%; height: 100%; object-fit: cover; }
.game__face--back { transform: rotateY(180deg); }
.game__vr { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 800; text-align: center; padding: .35em 0; }
.game--flip .game__face:first-child::after { content: "VR"; position: absolute; right: 8px; bottom: 8px; font-family: var(--font-en); font-weight: 700; font-size: .7rem; background: var(--ink); color: var(--yellow); border-radius: 6px; padding: .05em .45em; }
.game--flip a:hover .game__cover, .game--flip a:focus-visible .game__cover { transform: rotateY(180deg); }
.game:not(.game--flip) a:hover .game__cover { transform: translateY(-5px) rotate(-2deg); }
.game__name { font-weight: 800; font-size: .92rem; line-height: 1.45; }
.game__cat { justify-self: start; font-size: .72rem; font-weight: 800; padding: .05em .7em; border-radius: 999px; border: 2px solid var(--ink); background: #c9f2ec; }
.game__cat--original { background: var(--yellow); }
.game__cat--trpg { background: #ffd9e6; }
.game__cat--mystery { background: #d9ddff; }
.game__cats { display: flex; flex-wrap: wrap; gap: 4px; }
.game__badge { position: absolute; top: -10px; left: -8px; font-size: .72rem; font-weight: 800; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: .1em .55em; transform: rotate(-6deg); }
.game[hidden] { display: none; }
.games.is-collapsed .game:nth-child(n+19) { display: none; }
.lineup-more { margin-top: 30px; text-align: center; }
#lineup { padding-top: clamp(40px, 6vw, 72px); }
.lineup-note { margin-top: 18px; font-size: .82rem; color: var(--muted); text-align: center; }
/* 原作のある作品の権利表示：わたしたちの作品と思われないよう、一覧の上に目立たせて置く */
.rights-note { margin: 28px 0 0; background: #fff4cc; border: var(--line); border-left: 10px solid var(--red); border-radius: 16px; box-shadow: var(--pop); padding: 16px 22px 18px; }
.rights-note__title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; }
.rights-note__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; border: 2px solid var(--ink); font-family: var(--font-en); font-weight: 700; font-size: 1rem; line-height: 1; }
.rights-note__text { margin-top: 6px; font-size: .95rem; line-height: 1.85; color: var(--ink); }
.rights-note__text strong { background: linear-gradient(transparent 58%, rgba(239, 83, 80, .28) 58%); font-weight: 800; }
.lineup-note strong { color: var(--ink); }
.biz__credit { margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--ink); background: #fff4cc; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; line-height: 1.7; }
.draw__credit { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.draw__credit:empty { display: none; }

/* ---------- VRで遊ぶと、こうなる（夜の VR ワールド） ---------- */
.play { position: relative; overflow: hidden; background: #1d1a3a; color: #fff; border-bottom: var(--line); padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 7vw, 80px); }
.play::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -40%; height: 70%; transform: perspective(700px) rotateX(64deg); background-image: linear-gradient(rgba(46, 196, 176, .28) 2px, transparent 2px), linear-gradient(90deg, rgba(46, 196, 176, .28) 2px, transparent 2px); background-size: 80px 80px; pointer-events: none; }
.play .container { position: relative; z-index: 1; }
.play .section-head__lead { color: rgba(255, 255, 255, .82); }
.play .heading-en { background: var(--yellow); color: var(--ink); }
/* 写真の帯：ゆっくり左へ流れ続ける。マウスを乗せると止まる */
.shots-wrap { position: relative; z-index: 1; overflow: hidden; padding: 18px 0 34px; }
.shots { display: flex; gap: 26px; width: max-content; padding-left: 26px; animation: shots-loop 110s linear infinite; }
.shots-wrap:hover .shots, .shots-wrap:focus-within .shots { animation-play-state: paused; }
@keyframes shots-loop { to { transform: translateX(-50%); } }
.shot { flex: 0 0 min(78vw, 440px); }
.shot figure { margin: 0; background: var(--card); color: var(--ink); padding: 12px 12px 14px; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); rotate: var(--sr, 0deg); transition: rotate .2s, translate .2s; }
.shot figure:hover { rotate: 0deg; translate: 0 -4px; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 2px solid var(--ink); }
.shot figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .88rem; font-weight: 800; line-height: 1.4; }
.shot__kind { font-size: .72rem; padding: .05em .7em; border-radius: 999px; border: 2px solid var(--ink); background: #c9f2ec; }
.shot__kind--trpg { background: #ffd9e6; }
.shot__date { margin-left: auto; font-family: var(--font-en); font-weight: 700; font-size: .78rem; color: var(--muted); }
/* 動きを減らす設定の人には、手でスクロールする帯に戻す */
@media (prefers-reduced-motion: reduce) {
  .shots-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--yellow) transparent; }
  .shot--copy { display: none; }
}

/* すごろくの道（遊び方） */
.steps { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; border-top: 4px dashed rgba(255, 255, 255, .45); z-index: -1; }
.step { background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .45); padding: 16px 16px 18px; }
.step__no { display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 .5em; border-radius: 10px; border: 2.5px solid var(--ink); background: var(--yellow); font-family: var(--font-en); font-weight: 700; }
.step--start .step__no { background: var(--mint); }
.step--goal .step__no { background: var(--red); color: #fff; }
.step__title { margin-top: 10px; font-size: 1.05rem; }
.step__text { margin-top: 6px; font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 14px; } .steps::before { left: 34px; right: auto; top: 6%; bottom: 6%; border-top: 0; border-left: 4px dashed rgba(255, 255, 255, .45); } }

/* 見出しのそばの飾り駒 */
.section-head { position: relative; }
.deco { position: absolute; right: clamp(4px, 3vw, 40px); top: -6px; width: clamp(54px, 8vw, 92px); height: clamp(54px, 8vw, 92px); filter: drop-shadow(4px 5px 0 rgba(35, 37, 43, .25)); animation: float 7s ease-in-out infinite; pointer-events: none; --rot: 12deg; }
.deco svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ---------- パーティーメンバー（4つの事業） ---------- */
.members { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); perspective: 900px; }
.member {
  --c: var(--yellow);
  background: var(--card); border: var(--line); border-radius: 20px; box-shadow: var(--pop-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
.member--mint { --c: var(--mint); } .member--pink { --c: var(--pink); } .member--blue { --c: #8fb0ff; }
.member__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--c); border-bottom: var(--line); font-weight: 800; font-size: .82rem; }
.member__lv { font-family: var(--font-en); font-weight: 700; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 0 .6em; }
.member__art { aspect-ratio: 4 / 3; border-bottom: var(--line); background: var(--paper-2); overflow: hidden; display: grid; place-items: center; }
.member__art { position: relative; }
.member__art img { width: 100%; height: 100%; object-fit: cover; }
.member__art .member__mark { position: absolute; right: 8px; bottom: 8px; width: 74px; height: auto; rotate: 8deg; filter: drop-shadow(2px 2px 0 var(--ink)); }
.member__art--mark { background: var(--yellow); }
.member__art--mark img { width: 62%; height: auto; object-fit: contain; }
.member__art--covers { grid-template-columns: 1fr 1fr; }
.member__art--covers img { aspect-ratio: 1; }
/* 届ける仕組み：VazaR と VazaR Rocket の画面を2枚の窓のように重ねる */
.member__art--sites, .biz__media--sites { position: relative; display: block; background: linear-gradient(160deg, #26355f, #4d7cff 62%, #8fb0ff); }
.biz__media.biz__media--sites { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #26355f, #4d7cff 62%, #8fb0ff); }
.biz__media--sites .sites__shot { width: 60%; }
.biz__media--sites .sites__shot--vazar { left: 7%; top: 9%; }
.biz__media--sites .sites__shot--rocket { right: 7%; bottom: 9%; }
.sites__shot { position: absolute; width: 70%; margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.sites__shot::before { content: ""; display: block; height: 11px; border-bottom: 2px solid var(--ink); background: var(--paper) radial-gradient(circle, var(--red) 2.4px, transparent 3px) 4px 50% / 9px 9px no-repeat; }
.member__art .sites__shot img, .biz__media .sites__shot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.sites__shot--vazar { left: 5%; top: 7%; rotate: -4deg; }
.sites__shot--rocket { right: 5%; bottom: 7%; rotate: 3deg; }
.sites__badge { position: absolute; left: 6%; bottom: 7%; z-index: 2; width: 78px; height: 78px; display: grid; place-content: center; text-align: center; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: .68rem; line-height: 1.25; rotate: -10deg; }
.sites__badge b { font-family: var(--font-en); font-size: 1.7rem; line-height: 1; margin: 0 .05em; }
.biz__media--sites .sites__badge { width: 96px; height: 96px; font-size: .8rem; }
.biz__media--sites .sites__badge b { font-size: 2.1rem; }
.member__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.member__name { font-size: 1.3rem; }
.member__text { font-size: .9rem; color: var(--ink-2); line-height: 1.75; }
.skills { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.skills__label { width: 100%; font-family: var(--font-en); font-weight: 700; font-size: .7rem; letter-spacing: .18em; color: var(--muted); }
.skill { display: inline-block; font-size: .8rem; font-weight: 800; padding: .2em .75em; border-radius: 10px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; }
.skill:hover { background: var(--c); color: var(--ink); }
/* あそびがまわる仕組み：4フェイズを矢印でつなぎ、最後は PHASE 1 へもどる */
.cycle { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; perspective: 900px; }
.cycle__arrow { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: var(--line); box-shadow: 2px 2px 0 var(--ink); font-weight: 800; font-size: 1.1rem; }
.member__phase { font-family: var(--font-en); font-weight: 700; letter-spacing: .1em; }
.cycle__return { position: relative; margin: 6px 12% 0; height: 46px; border: 3px dashed var(--ink); border-top: 0; border-radius: 0 0 28px 28px; text-align: center; }
.cycle__return::before { content: "▲"; position: absolute; left: -11px; top: -14px; font-size: 1rem; line-height: 1; }
.cycle__return span { position: absolute; left: 50%; bottom: -16px; translate: -50% 0; white-space: nowrap; background: var(--paper-2); padding: 0 12px; font-weight: 800; font-size: .92rem; }
.cycle__return--page { margin-top: 40px; }
.cycle__return--page span { background: var(--paper); }
@media (max-width: 1080px) {
  .cycle { grid-template-columns: 1fr; justify-items: center; }
  .cycle .member { width: min(100%, 560px); }
  .cycle__arrow { transform: rotate(90deg); }
  .cycle__return { height: auto; margin: 18px auto 0; border: 0; }
  .cycle__return::before { display: none; }
  .cycle__return span { position: static; translate: none; white-space: normal; display: inline-block; border: var(--line); border-radius: 999px; padding: .4em 1.1em; background: var(--yellow); }
}

/* ---------- VDP ---------- */
.vdp { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--card); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); }
.vdp__media { border-right: 3px solid var(--ink); border-radius: 23px 0 0 23px; overflow: hidden; }
.vdp__media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.vdp__body { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; gap: 14px; justify-content: center; position: relative; }
.vdp__badge { align-self: flex-start; font-weight: 800; font-size: .85rem; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: .15em .8em; transform: rotate(-3deg); }
.vdp__logo { width: min(100%, 360px); }
.vdp__title { font-size: clamp(1.2rem, 2.3vw, 1.45rem); }
.vdp__date { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.vdp__date small { font-family: var(--font); font-size: .55em; margin: 0 .2em; }
.vdp__text { color: var(--ink-2); }
.vdp__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.vdp__facts li { border: 2px solid var(--ink); border-radius: 10px; padding: .15em .7em; font-weight: 800; font-size: .85rem; background: var(--paper); }
.vdp__facts b { font-family: var(--font-en); font-size: 1.25em; margin: 0 .1em; }

/* VDP：会場で遊べること */
.vdp-sub { margin: 64px 0 18px; font-size: clamp(1.2rem, 2.4vw, 1.5rem); display: flex; align-items: center; gap: 12px; }
.vdp-sub::before { content: ""; width: 16px; height: 16px; border-radius: 4px; border: 2.5px solid var(--ink); background: var(--yellow); rotate: 45deg; flex: none; }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* 上の色は太い枠線ではなく、カードの中の見出し帯にする（台紙に貼ったように見えないように） */
.act { --c: var(--yellow); display: flex; flex-direction: column; gap: 8px; background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--pop); padding: 0 20px 18px; overflow: hidden; }
.act--pink { --c: var(--pink); } .act--mint { --c: var(--mint); } .act--blue { --c: #8fb0ff; }
.act__tag { margin: 0 -20px 6px; padding: 9px 20px; background: var(--c); border-bottom: var(--line); font-size: .82rem; font-weight: 800; }
.act__big { font-weight: 800; font-size: .95rem; }
.act__big b { font-family: var(--font-en); font-size: 2.6rem; line-height: 1.05; margin: 0 .08em; }
.act__title { font-size: 1.05rem; line-height: 1.45; }
.act__text { flex: 1; font-size: .9rem; color: var(--ink-2); }
.act__link { font-weight: 800; font-size: .9rem; }
@media (max-width: 1000px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acts { grid-template-columns: 1fr; } }

/* VDP：年ごとの伸び（棒の高さ＝出展団体の数） */
.grow { margin-top: 40px; background: var(--card); border: var(--line); border-radius: 22px; box-shadow: var(--pop); padding: clamp(18px, 3vw, 32px); }
.grow__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.grow__title { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.grow__legend { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.grow__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 22px); margin-top: 18px; }
.grow__bar { height: 180px; display: flex; align-items: flex-end; border-bottom: 3px solid var(--ink); }
.grow__bar span { width: 100%; height: var(--h); display: flex; justify-content: center; padding-top: 6px; background: var(--c); border: var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; font-family: var(--font-en); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.5rem); line-height: 1.1; transform-origin: bottom; }
.grow__year { margin-top: 8px; font-family: var(--font-en); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.4rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.grow__year small { font-size: .6em; border: 2px solid var(--ink); border-radius: 6px; padding: 0 .4em; background: var(--c); }
.grow__stats { margin-top: 4px; font-size: .84rem; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.grow__item--now .grow__bar span { box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .08); }
.grow__note { margin-top: 16px; font-size: .78rem; color: var(--ink-2); }
@media (max-width: 560px) {
  .grow__bar { height: 140px; }
  .grow__stats { font-size: .72rem; }
}
.vdp__chara { position: absolute; pointer-events: none; filter: drop-shadow(4px 4px 0 rgba(35, 37, 43, .9)); }
.vdp__chara--dai { width: clamp(110px, 13vw, 170px); left: -46px; bottom: -40px; rotate: -6deg; animation: bob 3.2s ease-in-out infinite; }
.vdp__chara--suu { width: clamp(120px, 14vw, 190px); right: -36px; top: -78px; rotate: 6deg; animation: bob 3.6s ease-in-out -1.2s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 860px) {
  .vdp { grid-template-columns: 1fr; }
  .vdp__media { border-right: 0; border-bottom: 3px solid var(--ink); border-radius: 23px 23px 0 0; }
  .vdp__chara--dai { display: none; }
  .vdp__chara--suu { right: -8px; top: -64px; width: 110px; }
}

/* ---------- バーチャルパーティーって なに？ ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__text p + p { margin-top: 1em; }
.about__text strong { background: linear-gradient(transparent 60%, var(--yellow) 60%); }
.about__actions { margin-top: 26px; }
.polaroid { margin: 0; background: var(--card); padding: 14px 14px 46px; border: var(--line); box-shadow: var(--pop-lg); rotate: 2.5deg; position: relative; }
.polaroid img { border: 2px solid var(--ink); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-weight: 800; font-size: .9rem; }
.polaroid__stamp { position: absolute; right: -22px; bottom: -26px; width: clamp(96px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--pop); display: grid; place-items: center; rotate: -12deg; }
.polaroid__stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed #697a94; }
.polaroid .polaroid__stamp img { width: 64%; height: auto; border: 0; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 560px) { .polaroid__stamp { right: 8px; bottom: -34px; width: 84px; } }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: -4deg; background: rgba(255, 200, 61, .85); border: 2px solid var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about__sheet { margin-top: clamp(56px, 7vw, 84px); }

/* ---------- クエストボード（お知らせ） ---------- */
.quests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.quest a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 20px 18px; background: var(--card); border: var(--line); border-radius: 6px; box-shadow: var(--pop); text-decoration: none; color: var(--ink); transform: rotate(var(--qr, -1deg)); transition: transform .18s; }
.quest:nth-child(2) a { --qr: 1.2deg; background: #fffbe9; }
.quest:nth-child(3) a { --qr: -.6deg; background: #f1fbf9; }
.quest a::before { content: ""; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; translate: -50% 0; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.quest:nth-child(2) a::before { background: var(--blue); }
.quest:nth-child(3) a::before { background: var(--mint); }
.quest a:hover { transform: rotate(0) translateY(-3px); color: var(--ink); }
.quest time { font-family: var(--font-en); font-weight: 700; color: var(--muted); font-size: .9rem; }
.quest__new { display: inline-block; margin-left: 8px; font-family: var(--font-en); font-size: .72rem; font-weight: 700; background: var(--red); color: #fff; border-radius: 6px; padding: 0 .5em; vertical-align: 2px; }
.quest__title { font-weight: 800; line-height: 1.6; }
.quest__src { margin-top: auto; font-size: .82rem; font-weight: 800; color: var(--brand-deep); }
.quest--empty { grid-column: 1 / -1; }
.quests-more { margin-top: 30px; }
@media (max-width: 860px) { .quests { grid-template-columns: 1fr; } }

/* ---------- なかまたち ---------- */
/* なかまたち：ロゴのカード。ロゴは各社からいただいたファイルをそのまま使う */
.friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 14px; }
.friend { display: flex; flex-direction: column; height: 100%; background: var(--card); border: var(--line); border-radius: 16px; box-shadow: var(--pop); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.friend:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.friend__logo { height: 104px; display: grid; place-items: center; padding: 16px 18px; background: #fff; }
.friend__logo img { max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }
.friend__name { flex: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; border-top: 2px dashed var(--ink); padding: .55em .8em .6em .9em; font-weight: 800; font-size: .92rem; line-height: 1.35; }
.friend__go { flex: none; }
.friend__name small { display: block; font-size: .72rem; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--yellow); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); padding: clamp(30px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; overflow: hidden; }
.cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta__text { margin-top: 8px; font-weight: 700; }
.cta__dice { position: absolute; right: 22%; bottom: -46px; width: 120px; opacity: .22; rotate: 18deg; pointer-events: none; }
@media (max-width: 760px) { .cta__dice { display: none; } }
.cta .btn { position: relative; }

/* ---------- 下層ページの見出し ---------- */
.page-head { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 92px) 0 clamp(36px, 5vw, 56px); border-bottom: var(--line); background: linear-gradient(180deg, #2a2358 0%, #4b3a8f 100%); color: #fff; }
.page-head .container { position: relative; z-index: 1; }
.page-head::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -60%; height: 90%; transform: perspective(600px) rotateX(64deg); background-image: linear-gradient(rgba(46, 196, 176, .35) 2px, transparent 2px), linear-gradient(90deg, rgba(46, 196, 176, .35) 2px, transparent 2px); background-size: 70px 70px; pointer-events: none; }
.page-head .heading-en { background: var(--yellow); color: var(--ink); }
.page-head__lead { color: rgba(255, 255, 255, .85) !important; }
.page-head .piece { z-index: 1; }
.page-head__title { font-size: clamp(2.2rem, 5vw, 3.1rem); }
.page-head__lead { margin-top: 22px; max-width: 720px; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- 事業ページ ---------- */
.biz { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 2.5px dashed rgba(35, 37, 43, .25); }
.biz__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.biz__intro { position: sticky; top: 96px; }
.biz__class { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; padding: .2em .9em; border: 2px solid var(--ink); border-radius: 999px; background: var(--c, var(--yellow)); }
.biz--mint { --c: var(--mint); } .biz--pink { --c: var(--pink); } .biz--blue { --c: #8fb0ff; }
.biz__title { margin-top: 14px; font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.biz__lead { margin-top: 14px; color: var(--ink-2); }
.biz__media { margin-top: 22px; border: var(--line); border-radius: 18px; box-shadow: var(--pop); overflow: hidden; background: var(--card); }
.biz__media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.biz__media--mark { background: var(--yellow); display: grid; place-items: center; aspect-ratio: 16 / 9; }
.biz__media--mark img { width: 40%; aspect-ratio: auto; object-fit: contain; }
.biz__media--covers { display: grid; grid-template-columns: repeat(4, 1fr); }
.biz__media--covers img { aspect-ratio: 1; }
.products { display: grid; gap: 16px; }
.product { background: var(--card); border: var(--line); border-radius: 16px; box-shadow: var(--pop); padding: 20px 22px; }
.product__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.product__name { font-size: 1.12rem; }
.product__status { font-size: .75rem; font-weight: 800; padding: .1em .7em; border-radius: 999px; border: 2px solid var(--ink); background: #c9f2ec; }
.product__status--soon { background: #ffd9e6; }
.product__text { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
/* 商品のロゴ：名前の上に置く。丸いマークは少し大きく、白地で見えにくいロゴは紺の札にのせる */
.product__logo { margin-bottom: 10px; }
.product__logo img { display: block; height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.product__logo--mark img { height: 100px; filter: drop-shadow(2px 2px 0 var(--ink)); }
.product__logo--banner img { height: 54px; border: 2px solid var(--ink); border-radius: 10px; }
.product__logo--dark { display: inline-block; background: #1d2238; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px; }
.product__logo--dark img { height: 54px; }
.product__lead { margin-top: 6px; font-weight: 800; font-size: .92rem; color: var(--brand-deep); }
.product__list { margin-top: 10px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.product__list li { position: relative; padding-left: 1.2em; }
.product__list li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .5em; height: .5em; border: 2px solid var(--ink); border-radius: 2px; background: var(--c, var(--yellow)); rotate: 45deg; }
.product__thumbs { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.product__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 10px; }
/* 道具の機能：駒のアイコン付きの小さな一覧 */
.feats { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.feat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.feat svg { flex: none; width: 30px; height: 30px; margin-top: 2px; }
.feat:nth-child(5n+2) svg { --piece: var(--mint); } .feat:nth-child(5n+3) svg { --piece: var(--pink); } .feat:nth-child(5n+4) svg { --piece: #8fb0ff; } .feat:nth-child(5n+5) svg { --piece: var(--yellow); }
.feat p { font-size: .86rem; line-height: 1.6; color: var(--ink-2); }
.feat b { display: block; font-size: .95rem; color: var(--ink); }
.feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.product__link { margin-top: 10px; display: inline-flex; gap: .3em; font-weight: 800; font-size: .92rem; }
@media (max-width: 860px) { .biz__grid { grid-template-columns: 1fr; } .biz__intro { position: static; } }

/* ---------- 会社情報 ---------- */
.message { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.message__motto { font-family: var(--font-en); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; }
.message__motto span { display: inline-block; background: var(--yellow); border: var(--line); box-shadow: var(--pop); padding: .05em .3em; border-radius: 10px; margin: 0 0 .25em; }
.message__motto span:nth-child(2) { background: #c9f2ec; rotate: -2deg; }
.message__motto-ja { margin-top: 18px; font-weight: 800; font-size: 1.1rem; }
.ceo { margin: 30px 0 0; display: flex; align-items: center; gap: 18px; background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--pop); padding: 16px 20px 16px 16px; max-width: 360px; rotate: -1.5deg; }
.ceo__portrait { flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow), 0 0 0 6.5px var(--ink); }
.ceo__portrait img { width: 100%; height: 100%; object-fit: cover; }
.ceo figcaption { display: grid; gap: 2px; line-height: 1.4; }
.ceo__role { font-size: .78rem; font-weight: 800; color: var(--muted); }
.ceo__name { font-size: 1.2rem; font-weight: 800; }
.ceo__en { font-family: var(--font-en); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--brand-deep); }
.message__card { background: var(--card); border: var(--line); border-radius: 20px; box-shadow: var(--pop-lg); padding: clamp(24px, 4vw, 40px); }
.message__card p + p { margin-top: 1em; }
.message__sign { margin-top: 1.6em; text-align: right; font-weight: 800; }
@media (max-width: 760px) { .message { grid-template-columns: 1fr; } }

.window { background: var(--card); border: var(--line); border-radius: 20px; box-shadow: var(--pop-lg); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--ink); color: #fff; font-family: var(--font-en); font-weight: 700; letter-spacing: .2em; font-size: .8rem; }
.window__bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.window__bar i:nth-child(2) { background: var(--yellow); } .window__bar i:nth-child(3) { background: var(--mint); margin-right: 8px; }
.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 16px 22px; border-bottom: 2px dashed rgba(35, 37, 43, .18); }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile th { width: 11em; font-weight: 800; white-space: nowrap; color: var(--brand-deep); }
.profile td ul li { padding-left: 1.1em; position: relative; }
.profile td ul li + li { margin-top: 4px; }
.profile td ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45em; height: .45em; border-radius: 2px; background: var(--ink); rotate: 45deg; }
@media (max-width: 640px) {
  .profile, .profile tbody, .profile tr, .profile th, .profile td { display: block; width: 100%; }
  .profile th { padding: 14px 18px 2px; border-bottom: 0; white-space: normal; }
  .profile td { padding: 0 18px 14px; }
}

.log { display: grid; gap: 12px; }
.log__item { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 16px; align-items: center; background: var(--card); border: var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); padding: 12px 18px; }
.log__date { font-family: var(--font-en); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.log__date::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--ink); background: var(--mint); rotate: 45deg; flex: none; }
.log__item--key { background: #fffbe9; }
.log__item--key .log__date::before { background: var(--red); }
.log__text { font-weight: 700; }
@media (max-width: 560px) { .log__item { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- お問い合わせ ---------- */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.route { background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--pop); padding: 22px 22px 20px; }
.route__title { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.route__title::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); background: var(--dot, var(--yellow)); rotate: 45deg; flex: none; }
.route:nth-child(2) .route__title::before { --dot: var(--mint); } .route:nth-child(3) .route__title::before { --dot: var(--pink); } .route:nth-child(4) .route__title::before { --dot: var(--blue); }
.route__text { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.route__links { margin-top: 10px; font-weight: 800; font-size: .95rem; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }
.form-frame { margin-top: 28px; background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--pop-lg); overflow: hidden; }
.form-frame iframe { display: block; width: 100%; height: 820px; border: 0; }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .86); border-top: var(--line); padding: clamp(52px, 7vw, 80px) 0 24px; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__logo { display: inline-block; background: var(--paper); border-radius: 12px; padding: 10px 14px; }
.site-footer__logo img { height: 34px; width: auto; }
.site-footer__logo { padding: 12px 18px; }
.site-footer__motto { margin-top: 14px; font-family: var(--font-en); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--yellow); font-size: .85rem; }
.site-footer__name { margin-top: 8px; font-weight: 800; color: #fff; line-height: 1.6; }
.site-footer__name span { font-family: var(--font-en); font-weight: 500; color: rgba(255, 255, 255, .6); }
.site-footer__addr { margin-top: 8px; color: rgba(255, 255, 255, .6); }
.site-footer__head { font-weight: 800; margin-bottom: 10px; color: var(--yellow); }
.site-footer__col li + li { margin-top: 6px; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__copy { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .55); font-family: var(--font-en); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__company { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 旧サイトの URL で作り直したページ（規約・Asovel・お知らせ・404） ---------- */
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.page-head__title--text { font-family: var(--font-display); font-weight: 400; line-height: 1.3; margin-top: 18px; text-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.page-head__logo { display: block; margin-top: 20px; height: 72px; width: auto; background: #fff; border: var(--line); border-radius: 14px; padding: 10px 16px; box-shadow: var(--pop); }
.sheet-paper { background: var(--card); border: var(--line); border-radius: 22px; box-shadow: var(--pop); padding: clamp(22px, 4vw, 48px); }

/* 本文 */
.prose { font-size: 1rem; line-height: 1.95; color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.5; padding-bottom: .35em; border-bottom: 3px solid var(--ink); display: flex; gap: .5em; align-items: baseline; }
.prose h2::before { content: ""; flex: none; width: .7em; height: .7em; border-radius: 3px; border: 2.5px solid var(--ink); background: var(--yellow); rotate: 45deg; translate: 0 -.05em; }
.prose h3 { margin-top: 1.8em; font-size: 1.12rem; line-height: 1.5; padding-left: .7em; border-left: 6px solid var(--mint); }
.prose h4 { margin-top: 1.5em; font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose strong, .prose b { font-weight: 800; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 2px solid var(--ink); border-radius: 12px; }
.prose figcaption { margin-top: .5em; text-align: center; font-size: .85rem; color: var(--ink-2); }
.prose hr { border: 0; border-top: 2.5px dashed rgba(35, 37, 43, .3); margin: 2em 0; }
.prose blockquote { border-left: 6px solid var(--pink); background: var(--paper); border-radius: 0 12px 12px 0; padding: .9em 1.2em; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 2px solid var(--ink); padding: .6em .9em; vertical-align: top; }
.prose .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.prose .col > * + * { margin-top: 1em; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.prose .gallery figure { margin: 0; }
.prose .gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.prose .video { position: relative; aspect-ratio: 16 / 9; border: var(--line); border-radius: 14px; overflow: hidden; background: #000; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* X の投稿：引用とリンクだけにする（X のスクリプトは読み込まない） */
.prose .xpost { border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); padding: 1em 1.2em; }
.prose .xpost footer { margin-top: .6em; font-size: .85rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .3em .8em; justify-content: space-between; }
/* 他のページへのリンクのカード */
.prose .linkcard { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px; box-shadow: 3px 3px 0 var(--ink); }
.prose .linkcard:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.prose .linkcard__img { flex: none; width: 96px; }
.prose .linkcard__img img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.prose .linkcard__body { display: grid; gap: 4px; }
.prose .linkcard__body b { font-size: .95rem; line-height: 1.5; }
.prose .linkcard__body small { font-size: .78rem; color: var(--ink-2); font-weight: 700; }

/* 記事 */
.article-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--font-en); font-weight: 700; }
.article-title { margin-top: 12px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.45; }
.article-hero { margin: 0 0 24px; }
.article-hero img { width: 100%; height: auto; border: var(--line); border-radius: 18px; box-shadow: var(--pop); }
.article-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-nav { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.article-nav__link { display: grid; gap: 4px; padding: 14px 16px; background: var(--card); border: var(--line); border-radius: 14px; box-shadow: var(--pop); color: var(--ink); text-decoration: none; font-weight: 800; font-size: .92rem; line-height: 1.5; }
.article-nav__link small { font-family: var(--font-en); color: var(--muted); font-size: .78rem; }
.article-nav__link--older { text-align: right; }
.article-back { margin-top: 26px; text-align: center; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav__link--older { text-align: left; } }

/* 小さな札（カテゴリー・タグ） */
.chip { display: inline-flex; align-items: center; padding: .15em .8em; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font-family: var(--font); font-weight: 800; font-size: .8rem; text-decoration: none; line-height: 1.6; }
a.chip:hover { background: var(--yellow); }
.chip.is-current { background: var(--ink); color: #fff; }
.page-head .chip { background: var(--yellow); }

/* お知らせの一覧 */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.news-list { display: grid; gap: 14px; }
.news-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--card); border: var(--line); border-radius: 18px; box-shadow: var(--pop); padding: 14px; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.news-card__img { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__img .news-card__mark { width: 46%; height: auto; object-fit: contain; }
.news-card__body { display: grid; gap: 6px; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-en); font-weight: 700; font-size: .88rem; color: var(--muted); }
.news-card__title { font-weight: 800; font-size: 1.05rem; line-height: 1.5; }
.news-card__excerpt { font-size: .86rem; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 640px) { .news-card { grid-template-columns: 1fr; } }

/* note への案内 */
.note-box { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--paper-2); border: 2.5px dashed var(--ink); border-radius: 18px; padding: 18px 22px; }
.note-box__text { font-size: .95rem; }

/* 見つからないページ */
.page-head--404 { padding-bottom: clamp(70px, 10vw, 120px); min-height: calc(100vh - 70px); display: flex; align-items: center; }
.fumble { margin-top: 18px; display: flex; width: fit-content; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; }
.fumble svg { width: 44px; height: 44px; --piece: var(--red); animation: bob 3s ease-in-out infinite; }
.fumble b { color: var(--yellow); font-size: 1.5em; }
.notfound-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 動きを減らす ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
