@font-face{
  font-family:"LanobePOP";
  src:url("../fonts/LanobePOP.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

/* ========================================================================== 


   ALCHEMIST — Static Site (MVP)
   v3.1 (Typography & Layout 강화)

   Goals
   - 禁則処理（line-break: strict など）
   - フォント統一（1書体 / Regular & Bold）
   - 情報の階層（大→中→小）を固定
   - 余白は8px刻み（一定のリズム）
   - 枠感を消す（border なし / シャドウ最小）
   - Otaku-retro は “背景/モチーフ” で足す（やり過ぎない）
   ========================================================================== */

:root{
  /* Color system (dark base + cute retro accents) */
  --bg: #050504;
  --bg2:#090806;
  --text:#F3F1EB;
  --muted:#C9C1B4;
  --subtle: rgba(243,241,235,.08);
  --subtle2: rgba(243,241,235,.04);

  /* Primary UI accent (links/lines) */
--accent:#6BE7FF;          /* cyan */
--accent-rgb: 107,231,255;

/* Warm highlight (wood) */
--accent2:#FFB15C;         /* amber */
--accent2-rgb: 255,177,92;

/* CTA accent (sparingly) */
--cta:#FF5FA2;             /* pink */
--cta-rgb: 255,95,162;

--gold:#F7D27A;            /* karaoke highlight (gold) */
--gold-rgb: 247,210,122;

  --accent-dim: rgba(var(--accent-rgb),.16);
  --accent-glow: rgba(var(--accent-rgb),.26);

  --cta-dim: rgba(var(--cta-rgb),.16);
  --cta-glow: rgba(var(--cta-rgb),.26);

  /* Layout */
  --container: 1120px;       /* max content */
  --measure: 720px;          /* max text */
  --gutter: 20px;            /* side padding (mobile) */

  /* Spacing (8px rhythm) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 88px;
  --s-8: 112px;

  /* Type scale (3–4 levels) */
  --h1: clamp(2.25rem, 6vw, 4rem);
  --h2: clamp(1.5rem, 2.6vw, 2.25rem);
  --h3: 1.125rem;
  --body: 1rem;
  --small: .875rem;

  --lh-title: 1.10;
  --lh-body: 1.85;

  /* Motion */
  --ease-heavy: cubic-bezier(.12,.92,.08,1);
  --ease-throw: cubic-bezier(.10,.86,.18,1);

  /* Font (全ページ共通)
     ここだけ差し替えれば、サイト全体のフォントが切り替わります。
     候補例（Google Fonts / 日本語対応）
     - "M PLUS 1 Code" : 端末UI/ゲーム感（おすすめ）
     - "Yusei Magic"   : アニメっぽいレトロ
     - "DotGothic16"   : 8bit/ピクセル（強いオタク感）
     - "M PLUS Rounded 1c" : かわいい丸ゴシック
  */
  /* アニメコンセプト寄りの “丸ゴシック” に全体統一 */
  --font-main: "LanobePOP", "ラノベPOP", "RanobePOP", system-ui, -apple-system, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-body: "LanobePOP", "ラノベPOP", "RanobePOP", system-ui, -apple-system, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-display: "LanobePOP", "ラノベPOP", "RanobePOP", system-ui, -apple-system, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;


  /* Dynamic scene tint (JS updates) */
  --header-rgb: 5,5,4;
  --drawer-rgb: 5,5,4;
}

*{ box-sizing:border-box; }

html{
  background-color: var(--bg);
  /* 禁則処理（日本語の行分割を厳格に） */
  line-break: strict;
  /* Safari など auto-phrase 未対応環境では、文字の途中で改行されやすいので
     まず keep-all を指定して「文節っぽい」位置での折り返しに寄せます。
     対応ブラウザでは auto-phrase が上書きされます。 */
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(var(--accent-rgb),.10), transparent 62%),
    radial-gradient(760px 520px at 82% 22%, rgba(var(--accent2-rgb),.06), transparent 68%),
    linear-gradient(180deg, var(--bg), var(--bg2));

  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body);
  line-height: var(--lh-body);
  letter-spacing: .01em;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  overflow-x:hidden;
  min-height:100vh;

  /* 全文センター揃え（要件） */
  text-align: center;

  /* 禁則処理（要件） */
  line-break: strict;
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* Retro: ultra-subtle scanlines + grain (no frames) */
body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  z-index: 0;
  /* Heisei scanlines -> Reiwa grain (subtle) */
  background-image: url('../img/noise.png');
  background-size: 320px 320px;
  opacity:.08;
  mix-blend-mode: overlay;
}


a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; }
img{ max-width:100%; display:block; }

h1, h2, h3, .hero-title{
  font-family: var(--font-display);
}

/* ボタンとか入力も統一 */
button, input, textarea, select{
  font: inherit;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline:auto;
  padding-inline: var(--gutter);
}

.measure{ max-width: var(--measure); margin-inline:auto; }

/* Type hierarchy (固定) */
h1, h2, h3{ margin:0; font-weight:700; }

h1{
  font-size: var(--h1);
  line-height: var(--lh-title);
  letter-spacing: .04em;
  text-wrap: balance;
}

h2{
  font-size: var(--h2);
  line-height: 1.18;
  letter-spacing: .04em;
  text-wrap: balance;
}

h3{
  font-size: var(--h3);
  line-height: 1.28;
  letter-spacing: .03em;
}

p{ margin:0; color: var(--muted); }
.small{ font-size: var(--small); color: var(--muted); }
.note{ font-size: .8125rem; color: rgba(201,193,180,.92); }

/* Kicker / eyebrow (no pill / no border) */
.kicker{
  display:inline-flex;
  align-items:center;
  gap: var(--s-1);
  font-size: .875rem;
  color: rgba(201,193,180,.95);
  letter-spacing: .12em;
}
.kicker svg{ display:none; }
.kicker::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), var(--accent) 42%, rgba(var(--accent-rgb),0) 72%);
  box-shadow: 0 0 22px rgba(var(--accent-rgb),.25);
}


/* Inline badges (no pills / no frames) */
.badges{
  display:flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
  justify-content: center;
  color: rgba(201,193,180,.95);
  font-size: .9rem;
}
.badge{
  position: relative;
  padding-left: 14px;
  letter-spacing: .04em;
}
.badge::before{
  content:"";
  position:absolute;
  left:0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb),.95);
  box-shadow: 0 0 16px rgba(var(--accent-rgb),.20);
}

hr.sep{
  border:none;
  height:1px;
  margin: var(--s-6) 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}

/* Background FX container (sparks/spotlight/grain) */
.bg-fx{
  position: fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}

/* Scene tint (scroll-linked) */
.bg-fx .scene-tint{
  position:absolute;
  inset:0;
  z-index: 0;
  pointer-events:none;
}
.bg-fx .scene-layer{
  position:absolute;
  inset:-35%;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(var(--s1, var(--accent-rgb)), .18), transparent 62%),
    radial-gradient(760px 520px at 82% 22%, rgba(var(--s2, var(--accent2-rgb)), .12), transparent 68%),
    radial-gradient(620px 420px at 50% 82%, rgba(var(--s3, var(--cta-rgb)), .06), transparent 70%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity .7s ease;
  mix-blend-mode: screen;
  transform: translateZ(0);
}
.bg-fx .scene-layer.is-on{ opacity: .92; }

/* Layer order inside .bg-fx */
.bg-fx .spotlight{ z-index: 1; }
.bg-fx .sparks{ z-index: 2; }
.bg-fx .grain{ z-index: 3; }

.bg-fx .spotlight{
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(540px 340px at 50% var(--spot-y, 35%), rgba(var(--accent-rgb),.12), transparent 62%),
    radial-gradient(520px 320px at 64% calc(var(--spot-y, 35%) + 140px), rgba(var(--accent2-rgb),.07), transparent 64%);
  filter: blur(14px);
  opacity:.75;
  mix-blend-mode: screen;
  transform: translateZ(0);
}
.bg-fx .grain{
  position:absolute;
  inset:-50%;
  /* vertical stripes -> subtle particle noise */
  background-image: url('../img/noise.png');
  background-size: 280px 280px;
  opacity:.035;
  transform: translate3d(0,0,0);
  animation: grainShift 12s steps(8) infinite;
  mix-blend-mode: overlay;
}
@keyframes grainShift{
  0%{ transform: translate3d(-6%, -4%,0); }
  100%{ transform: translate3d(6%, 4%,0); }
}
.bg-fx .sparks{ position:absolute; inset:0; opacity: calc(.70 + var(--sparkBoost, 0) * .30); }
.bg-fx .spark{
  position:absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  left: var(--x, 50%);
  top: var(--y, 80%);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(var(--accent-rgb),.55) 40%, rgba(var(--accent-rgb),0) 72%);
  box-shadow: 0 0 18px rgba(var(--accent-rgb),.18);
  animation: sparkFloat var(--d, 9s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes sparkFloat{
  0%{ transform: translate3d(0,0,0); opacity: 0; }
  10%{ opacity: .7; }
  70%{ opacity: .35; }
  100%{ transform: translate3d(0,-160px,0); opacity: 0; }
}

main, .site-footer{ position:relative; z-index: 1; }

/* Header (no pills, no frames) */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background-color: rgba(var(--header-rgb), .62);
  backdrop-filter: blur(12px);
  transition: background-color .65s ease;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 72px;
}

.brand{
  display:flex;
  align-items:center;
  gap: var(--s-1);
  font-weight: 700;
  letter-spacing:.10em;
}

.brand-logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.55));
}
.brand-mark{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%),
    linear-gradient(135deg, rgba(var(--accent-rgb),.32), rgba(var(--accent2-rgb),.12));
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.nav{ display:flex; align-items:center; gap: var(--s-2); }
.nav a{
  position: relative;
  padding: 10px 0;
  color: rgba(201,193,180,.95);
  letter-spacing: .08em;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:6px;
  width:0;
  height:2px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb),0));
  transition: width .22s ease;
}
.nav a:hover::after{ width: 100%; }
.nav a[aria-current="page"]{ color: var(--text); }
.nav a[aria-current="page"]::after{ width: 100%; }

.header-actions{ display:flex; gap: var(--s-2); align-items:center; }

.icon-btn{
  width: 40px; height: 40px;
  display:grid; place-items:center;
  background: transparent;
  border: none;
  padding:0;
  color: rgba(243,241,235,.92);
  opacity: .9;
}
.icon-btn:hover{ opacity: 1; filter: drop-shadow(0 0 16px rgba(var(--accent-rgb),.12)); }

/* Buttons: primary = filled, others = link-like (no frames) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: none;
}
.btn:hover{ filter: drop-shadow(0 10px 28px rgba(0,0,0,.45)); }

.btn.primary{
  padding: 12px 16px;
  color: #021218;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.98), rgba(var(--accent-rgb),.62));
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

/* CTA button: use pink sparingly */
.btn.primary.cta{
  color: #160610;
  background: linear-gradient(135deg, rgba(var(--cta-rgb),.96), rgba(var(--cta-rgb),.62));
  box-shadow: 0 18px 54px rgba(0,0,0,.48);
}

.btn.primary:hover{ filter: none; transform: translateY(-1px); }

.btn.ghost{
  color: rgba(243,241,235,.95);
}
.btn.ghost span, .btn.ghost .small{ color: rgba(243,241,235,.90); }

/* link underline (for non-primary) */
.btn:not(.primary){
  padding: 12px 6px;
  position: relative;
}
.btn:not(.primary)::after{
  content:"";
  position:absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),.0), rgba(var(--accent-rgb),.55), rgba(var(--accent-rgb),0));
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}
.btn:not(.primary):hover::after{ opacity: 1; transform: translateY(0); }

/* Mobile nav */
.menu-btn{ display:none; }
@media (max-width: 920px){
  :root{ --gutter: 18px; }
  .nav{ display:none; }
  .menu-btn{ display:grid; }
  body.is-menu-open .nav-drawer{
    transform: translateY(0);
    opacity:1;
    pointer-events:auto;
  }
}

.nav-drawer{
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: rgba(var(--drawer-rgb), .92);
  backdrop-filter: blur(12px);
  transform: translateY(-10px);
  opacity:0;
  pointer-events:none;
  transition: transform .18s ease, opacity .18s ease, background-color .65s ease;
  z-index: 49;
}

.nav-drawer .drawer-inner{
  padding: var(--s-2) var(--gutter) var(--s-3);
  display:grid;
  gap: var(--s-2);
}
.drawer-link{
  padding: 14px 0;
  letter-spacing: .08em;
  color: var(--text);
  text-align: center;
}
.drawer-link{ border-bottom: none; }
.drawer-row{ display:flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }

/* Hero */
.hero{
  position:relative;
  min-height: 78vh;
  display:grid;
  align-items:end;
  padding: var(--s-7) 0 var(--s-4);
}

.hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(5,5,4,.35), rgba(5,5,4,.94)),
    url("./../img/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.04);
  transform: translate3d(0,0,0);
  will-change: transform;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(860px 520px at 18% 36%, rgba(var(--accent-rgb),.16), transparent 60%),
    radial-gradient(900px 540px at 78% 46%, rgba(var(--accent2-rgb),.08), transparent 62%);
  pointer-events:none;
}

.hero-inner{ position:relative; }

/* Hero target (for OP dart landing) */
.hero-target{
  position:absolute;
  left:50%;
  top: calc(72px + var(--s-3));
  transform: translateX(-50%);
  width: 112px;
  height: 112px;
  opacity: .92;
  pointer-events:none;
  z-index: 2;
}
.hero-target::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.0) 0 16%, rgba(255,255,255,.07) 16% 18%, rgba(0,0,0,0) 18% 34%, rgba(255,255,255,.06) 34% 36%, rgba(0,0,0,0) 36% 56%, rgba(255,255,255,.05) 56% 58%, rgba(0,0,0,0) 58% 100%),
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.20), rgba(255,255,255,0) 56%);
  box-shadow:
    0 22px 80px rgba(0,0,0,.58),
    0 0 0 1px rgba(255,255,255,.08);
  filter: saturate(1.05);
}
.hero-target::after{
  content:"";
  position:absolute;
  inset: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb),.75), rgba(var(--accent-rgb),0) 64%);
  opacity: .22;
  mix-blend-mode: screen;
}

.hero-target .dart-stuck{
  position:absolute;
  left:50%;
  top:50%;
  width: 34px;
  height: 132px;
  transform: translate(-50%,-52%) rotate(0deg);
  transform-origin: 50% 82%;
  color: var(--accent);
  opacity: 0;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.65));
}
html.dart-stuck .hero-target .dart-stuck{ opacity: 1; }

@media (max-width: 640px){
  .hero-target{
    width: 92px;
    height: 92px;
    top: calc(72px + var(--s-2));
  }
  .hero-target .dart-stuck{ height: 112px; width: 30px; }
}

.hero-kicker{
  margin: 0 0 var(--s-2);
  font-size: .875rem;
  color: rgba(201,193,180,.95);
  letter-spacing: .14em;
}

.hero-title{
  margin: 0 0 var(--s-2);
}

.hero-title-wrap{
  position: relative;
  display: grid;
  place-items: center;
}

.hero-title .name{
  display:block;
  color: var(--text);
}

.hero-title .desc{
  display:block;
  margin-top: var(--s-1);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: .08em;
  color: rgba(243,241,235,.86);
}

.hero-sub{
  margin-top: 0;
  margin-inline: auto;
  max-width: var(--measure);
  font-size: 1.05rem;
  text-align: center;
}

.hero-cta{
  display:flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-3);
  justify-content: center;
}

.hero-meta{
  display:flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
  color: rgba(201,193,180,.95);
  font-size: .9rem;
  justify-content: center;
}

.recruit-illust-card{
  display:grid;
  gap: clamp(18px, 4vw, 44px);
  align-items:center;
  margin-top: var(--s-3);
}

.recruit-illust-copy{
  position: relative;
  z-index: 1;
}

.recruit-illust-copy h2{
  margin-top: var(--s-1);
}

.recruit-illust-copy .card-meta{
  max-width: 36rem;
  margin: var(--s-2) auto 0;
}

.recruit-illust-points{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 16px;
  justify-content:center;
  margin-top: var(--s-3);
  color: rgba(243,241,235,.92);
  font-size: .92rem;
  letter-spacing: .04em;
}

.recruit-illust-points span{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.recruit-illust-points span::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb),.28);
}

.recruit-illust-figure{
  margin:0;
  display:grid;
  place-items:center;
}

.recruit-illust-figure img{
  width:min(100%, 640px);
  height:auto;
  filter: drop-shadow(0 26px 72px rgba(0,0,0,.48));
}

@media (min-width: 860px){
  .recruit-illust-card{
    grid-template-columns: .92fr 1.08fr;
  }

  .recruit-illust-copy{
    text-align:left;
  }

  .recruit-illust-copy .card-meta{
    margin-left:0;
    margin-right:0;
  }

  .recruit-illust-points{
    justify-content:flex-start;
  }
}

@media (max-width: 640px){
  .recruit-illust-figure img{
    width:min(100%, 440px);
  }
}

/* Sigil (alchemy circle) */
.sigil{
  position:absolute;
  right: -160px;
  top: 44%;
  width: min(520px, 120vw);
  height: min(520px, 120vw);
  transform: translate3d(0, -50%, 0);
  opacity: .28;
  /* ここはスクロール中も常時描画されるので、重くなりがちな合成処理は避ける */
  mix-blend-mode: normal;
  filter: none;
  pointer-events:none;
  will-change: transform;
}

/* 方法2（iframe）: 中身は iframe 内の SVG を回す。外枠は透明でOK */
.sigil-iframe{
  border: 0;
  background: transparent;
  display: block;
}
.sigil svg{ width:100%; height:100%; }
.sigil .sigil-idle{ animation: sigilIdle 28s linear infinite; }
.sigil .sigil-scrub{
  transform: rotate(var(--sigil-rot, 0deg));
  transition: transform .08s linear;
}
@keyframes sigilIdle{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }

/* Sections */
.section{ padding: var(--s-7) 0; }
.section .head{
  display:grid;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  justify-items: center;
}
.section .head .lead{ max-width: var(--measure); }

.grid{ display:grid; gap: var(--s-3); }
@media(min-width: 860px){
  .grid.cols-2{ grid-template-columns: 1.1fr .9fr; }
  .grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
}

/* Blocks (glass cards + hologram sheen) */
.card{
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Card surface (no border / no "枠") */
.card.pad{
  padding: var(--s-2);
  position: relative;
  border-radius: 18px;
  /* add one more “surface” layer so it reads as modern UI panel */
  background: linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.014));
  border: none; /* 枠なし */
  box-shadow: 0 18px 58px rgba(0,0,0,.42);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Subtle chroma bloom (keeps it "otaku" but classy) */
.card.pad::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(420px 260px at 22% 18%, rgba(var(--accent-rgb),.10), transparent 62%),
    radial-gradient(420px 260px at 78% 86%, rgba(var(--accent2-rgb),.08), transparent 66%);
  opacity: .55;
  pointer-events:none;
  mix-blend-mode: screen;
}

/* Hologram sweep (disabled for performance) */
/* .card.pad::after / holoSweep removed */
  18%{ opacity: .36; }
  100%{ transform: translateX(60%) rotate(12deg); opacity: 0; }
}

.card-title{
  margin:0;
  font-weight:700;
  font-size: var(--h3);
  line-height: 1.28;
  letter-spacing: .03em;
  color: var(--text);
}
.card-meta{
  margin-top: var(--s-1);
}

/* Cashless note: no frame, slightly lowered */
.cashless-note{
  margin-top: 22px;
  text-align: center;
  max-width: 560px;
  justify-self: center;
}
@media (max-width: 900px){
  .cashless-note{ margin-top: 10px; }
}


/* Feature item: tiny motif instead of boxes */
.feature{
  position: relative;
  padding-left: 0;
  padding-top: 18px;
}
.feature::before{
  content:"";
  position:absolute;
  left:50%;
  top: 0;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb),.28);
}
.feature p{ margin-top: var(--s-1); }

/* STATUS panel (otaku-friendly but just “information design”) */
.status-panel .status-grid{
  display: grid;
  gap: 0;
  margin-top: var(--s-2);
}
.status-panel .status-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px 0;
  justify-items: center;
  border-top: none; /* 枠なし */
}
.status-panel .status-row:first-child{
  padding-top: 0;
}
.status-panel .status-key{
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(201,193,180,.92);
}
.status-panel .status-val{
  color: rgba(243,241,235,.94);
  letter-spacing: .06em;
  line-height: 1.7;
}
.status-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.status-tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: none; /* 枠なし */
  font-size: .78rem;
  letter-spacing: .08em;
}
.status-stars{
  letter-spacing: .18em;
  color: rgba(var(--accent2-rgb), .92);
}


/* Lists (avoid default bullets = instant "素人感") */
ul{ margin: var(--s-2) 0 0; padding-left: 1.15em; color: var(--muted); }
li{ margin: var(--s-1) 0; }

/* Game UI list */
.card-list{
  list-style: none;
  padding-left: 0;
  margin: var(--s-2) 0 0;
  display: grid;
  gap: 10px;
}
.card-list li{
  margin: 0;
  position: relative;
  padding-left: 0;
  line-height: 1.78;
  color: rgba(201,193,180,.95);
}
.card-list li::before{
  content:"▸";
  position: static;
  margin-right: 10px;
  color: rgba(var(--accent-rgb),.95);
  text-shadow: 0 0 12px rgba(var(--accent-rgb),.22);
}
.card-list strong{ color: rgba(243,241,235,.96); font-weight: 700; }

/* FAQ (button-like / obvious) */
.faq-list{
  margin-top: var(--s-3);
  display: grid;
  gap: var(--s-2);
}
.faq-item{
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.014));
  box-shadow: 0 18px 58px rgba(0,0,0,.42);
}
.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 54px;
  position: relative;
  font-weight: 700;
  letter-spacing: .04em;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  box-shadow: 0 18px 46px rgba(0,0,0,.40);
  color: rgba(243,241,235,.92);
}
.faq-item[open] summary::after{ content:"−"; }
.faq-item summary:hover{ background: rgba(255,255,255,.03); }

.faq-item .faq-a{
  padding: 0 18px 18px;
  color: rgba(201,193,180,.95);
}
.faq-item .faq-a p{ margin: 10px 0 0; }

/* Media (use as “見せ場” only) */
.media{
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  overflow:hidden;
}
.media img{ width:100%; height:100%; object-fit: cover; }

/* 画像を見切れさせたくない場合（例：concept の hero.jpg） */
.media.is-contain img{ object-fit: contain; }


/* Embeds (CASTなど：更新不要で埋め込み) */
.embed-box{
  width: 100%;
  height: 680px;
  max-height: 80vh;
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.embed-box iframe{
  width: 100% !important;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.embed-x-frame{
  min-height: 680px;
  background:
    radial-gradient(420px 260px at 50% 10%, rgba(var(--accent-rgb),.08), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.01));
  border-radius: 18px;
}
.x-embed-frame{
  height: 100% !important;
  min-height: 680px;
  border-radius: 18px;
  background: transparent;
}
@media (max-width: 640px){
  .embed-x-frame,
  .x-embed-frame{
    min-height: 520px;
  }
}
.embed-x .twitter-timeline{
  width: 100% !important;
  min-width: 100% !important;
}
.embed-x .twitter-timeline-rendered{
  margin: 0 auto;
}

/* 読み込み中プレースホルダ（Xが表示されない環境でも“空白”になりにくい） */
.embed-box .embed-skeleton{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: rgba(243,241,235,.82);
  background:
    radial-gradient(520px 360px at 50% 40%, rgba(255,255,255,.05), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
  pointer-events: none;
  opacity: .95;
  transition: opacity .32s ease;
}
.embed-box.is-loaded .embed-skeleton{ opacity: 0; }

/* Instagram embed (single post) */
.ig-embed{
  width: 100% !important;
  max-width: 560px;
  height: clamp(520px, 72vh, 680px);
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  filter: sepia(.12) saturate(1.04) contrast(1.02) brightness(.98);
}
@media (max-width: 520px){
  .ig-embed{ height: 520px; }
}




.gallery{ display:grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
@media(min-width: 900px){ .gallery{ grid-template-columns: repeat(4, 1fr); } }
.gallery a{ display:block; border-radius: 16px; overflow:hidden; }

/* Gallery marquee (雰囲気画像) */
.gallery-marquee{
  position: relative;
  overflow: hidden;
}
.gallery-marquee::before,
.gallery-marquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width: 64px;
  pointer-events:none;
  z-index: 2;
}
.gallery-marquee::before{
  left:0;
  background: linear-gradient(90deg, rgba(5,5,4,.92), rgba(5,5,4,0));
}
.gallery-marquee::after{
  right:0;
  background: linear-gradient(-90deg, rgba(5,5,4,.92), rgba(5,5,4,0));
}
.gallery-track{
  display:flex;
  width: max-content;
  animation: galleryMarquee var(--marquee-dur, 34s) linear infinite;
  will-change: transform;
}
.gallery-group{
  display:flex;
  gap: var(--s-2);
  padding-right: var(--s-2);
}
.gallery-item{
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.02);
}
.gallery-marquee:hover .gallery-track{ animation-play-state: paused; }

@keyframes galleryMarquee{
  from{ transform: translate3d(0,0,0); }
  to{ transform: translate3d(-50%,0,0); }
}

@media (prefers-reduced-motion: reduce){
  .gallery-marquee{ overflow-x:auto; padding-bottom: 8px; }
  .gallery-track{ animation: none; }
  .gallery-group[aria-hidden="true"]{ display:none; }
  .gallery-marquee::before, .gallery-marquee::after{ display:none; }
}


/* Tables (no “枠” / rhythm) */
.table{
  width:100%;
  border-collapse: collapse;
}
.table th, .table td{ padding: 14px 0; text-align:center; }
.table th{ color: rgba(201,193,180,.95); font-weight:700; }
.table tr{ background: transparent; }
.table tr + tr{ border-top: none; }

/* SYSTEM — DQ-ish Shop UI (上品寄せ) */
.shop-ui{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.shop-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.shop-kicker{
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(201,193,180,.95);
}
.shop-lead{
  margin:0;
  font-size: var(--small);
  color: rgba(201,193,180,.92);
  letter-spacing: .06em;
}

.shop-table{
  width:100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.shop-table thead th{
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201,193,180,.95);
  padding: 12px 0;
}
.shop-table thead th:nth-child(1){ width: 46%; }
.shop-table thead th:nth-child(2){ width: 18%; }
.shop-table thead th:nth-child(3){ width: 36%; }
.shop-table td, .shop-table th{
  padding: 12px 0;
  text-align:center;
  vertical-align: top;
}
.shop-table tbody tr + tr{ border-top: none; }
.shop-table tbody th{ font-weight: 700; color: rgba(243,241,235,.96); }
.shop-table tbody td{ color: rgba(201,193,180,.95); }

.shop-table .shop-cat td{
  padding: 0;
}
.shop-table .shop-cat .cat-cell{
  text-align: center;
  padding: 18px 0 10px;
}
.shop-table .shop-cat .cat-en{
  display: block;
  text-transform: uppercase;
  color: rgba(var(--accent2-rgb), .68);
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .78rem;
}
.shop-table .shop-cat .cat-ja{
  display: block;
  margin-top: 4px;
  color: rgba(var(--fg-rgb), .64);
  letter-spacing: .08em;
  font-weight: 600;
  font-size: .72rem;
}
.shop-table .shop-cat + tr{ border-top: none; }

.shop-table tr.is-rec th,
.shop-table tr.is-rec td{
  color: rgba(243,241,235,.98);
  background: rgba(var(--accent-rgb), .08);
}
.shop-table tr.is-rec th{ padding-left: 0; }
.shop-table tr.is-rec td:last-child{ padding-right: 0; }
.shop-tag{
  display:inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(7,6,5,.95);
  background: rgba(var(--accent2-rgb), .92);
}

/* Footer */
.site-footer{
  padding: var(--s-7) 0 var(--s-6);
  background: rgba(0,0,0,.12);
}

.site-footer h3{
  margin-top: var(--s-2);
  margin-bottom: var(--s-1);
  letter-spacing: .08em;
}
.site-footer h4{
  margin: 0 0 var(--s-1);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.footer-grid{ display:grid; gap: var(--s-3); }
@media(min-width: 900px){ .footer-grid{ grid-template-columns: 1.3fr .7fr; } }
.footer-links{ display:flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.footer-links a{
  padding: 8px 0;
  letter-spacing: .04em;
  color: rgba(201,193,180,.95);
  position: relative;
}
.footer-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom: 2px;
  width:0;
  height:2px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb),0));
  transition: width .22s ease;
}
.footer-links a:hover::after{ width: 100%; }

/* Mobile CTA Bar (no boxes) */
.mobile-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(5,5,4,.78);
  backdrop-filter: blur(14px);
  padding: var(--s-2) var(--gutter);
}
.mobile-cta .cta-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}
.mobile-cta a{
  display:grid;
  gap: 6px;
  justify-items:center;
  padding: 10px 8px;
  font-size: .78rem;
  color: rgba(201,193,180,.95);
}
.mobile-cta a strong{ color: var(--text); font-size: .86rem; font-weight:700; }

@media(min-width: 920px){
  .mobile-cta{ display:none; }
}

/* Scroll reveal */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in{ opacity:1; transform: translateY(0); }

/* Opening v4 (TOP only)
   - ロゴが光りつつ、魔法陣/線が描画されて “潜入”
   - スクロールで加速 / SKIP対応
   - 完成形を少し見せてからフェードアウト
*/

/* スクロールロック */
html.op-lock, html.op-lock body{
  height: 100%;
  overflow: hidden;
}

/* 表示制御 */
.opening.opening-v4{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(5,5,4,.98);
}
html.pre-opening .opening.opening-v4{ display:block; }

.opening-v4 .op-v4-bg{
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(760px 520px at 50% 38%, rgba(var(--accent-rgb),.18), transparent 62%),
    radial-gradient(900px 620px at 72% 60%, rgba(var(--accent2-rgb),.10), transparent 66%),
    linear-gradient(180deg, rgba(5,5,4,.92), rgba(5,5,4,.985));
  opacity: 1;
}

.opening-v4 .op-v4-center{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding: var(--s-6) var(--gutter);
  gap: var(--s-3);
}

.opening-v4 .op-v4-sigil{
  position: relative;
  width: min(520px, 86vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 54px rgba(var(--accent-rgb),.22));
  mix-blend-mode: screen;
  opacity: .98;
}

/* ★ 修正：最後まで“完成した感”が出るように opacity を 1.0 近くまで上げる */
.opening-v4 .op-v4-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity: calc(.04 + (var(--op-p, 0) * .96));
  transform: scale(calc(.98 + (var(--op-p, 0) * .04)));
  filter: saturate(1.08) contrast(1.10);
}

.opening-v4 .op-v4-draw{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.opening-v4 .op-v4-draw [data-op-draw]{
  fill:none;
  stroke: rgba(155,231,255,0.72);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(155,231,255,.22));
}
.opening-v4 .op-v4-draw circle:nth-child(2){
  stroke: rgba(255,210,166,0.35);
  stroke-width: 1.0;
}
.opening-v4 .op-v4-draw path:nth-child(3){ stroke: rgba(155,231,255,0.40); }
.opening-v4 .op-v4-draw path:nth-child(4){ stroke: rgba(255,210,166,0.25); }
.opening-v4 .op-v4-draw path:nth-child(5){ stroke: rgba(var(--accent-rgb),0.34); }

.opening-v4 .op-v4-ui{
  text-align:center;
  max-width: 720px;
}
.opening-v4 .op-v4-kicker{
  display:inline-block;
  letter-spacing: .22em;
  font-size: .82rem;
  color: rgba(201,193,180,.92);
}
.opening-v4 .op-v4-title{
  margin-top: 10px;
  font-size: clamp(2.0rem, 6.4vw, 3.4rem);
  letter-spacing: .22em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(243,241,235,.96);
  text-shadow:
    0 0 22px rgba(var(--accent-rgb),.22),
    0 0 70px rgba(var(--accent-rgb),.12);
}
.opening-v4 .op-v4-sub{
  margin-top: 8px;
  font-size: .92rem;
  letter-spacing: .12em;
  color: rgba(201,193,180,.92);
}
.opening-v4 .op-v4-log{
  margin-top: var(--s-3);
  /* フォントは統一（禁則/設計ルールに合わせる） */
  font-family: inherit;
  font-size: .86rem;
  letter-spacing: .10em;
  color: rgba(243,241,235,.78);
  display:grid;
  gap: 8px;
  opacity: calc(.10 + (var(--op-p, 0) * .90));
}
.opening-v4 .op-v4-log .line{
  opacity: 0;
  transform: translateY(6px);
  animation: opLogIn .5s ease forwards;
}
.opening-v4 .op-v4-log .line:nth-child(1){ animation-delay: .18s; }
.opening-v4 .op-v4-log .line:nth-child(2){ animation-delay: .34s; }
.opening-v4 .op-v4-log .line:nth-child(3){ animation-delay: .50s; }
.opening-v4 .op-v4-log .line:nth-child(4){ animation-delay: .66s; }
@keyframes opLogIn{ to{ opacity: 1; transform: translateY(0); } }

.opening-v4 .op-v4-hint{
  margin-top: var(--s-3);
  font-size: .95rem;
  letter-spacing: .14em;
  color: rgba(243,241,235,.90);
}
.opening-v4 .op-v4-hint .cursor{
  display:inline-block;
  margin-right: 10px;
  color: rgba(var(--accent-rgb),.95);
  text-shadow: 0 0 18px rgba(var(--accent-rgb),.22);
  animation: opCursor 1.05s steps(1) infinite;
}
@keyframes opCursor{
  0%,49%{ opacity: 1; }
  50%,100%{ opacity: .16; }
}

/* SKIP位置 */
.opening-v4 .skip{
  position:absolute;
  right: var(--gutter);
  top: var(--s-2);
  z-index: 2;
}

/* フェードアウト（JS側 OP_FADE_MS と合わせる） */
@keyframes openingFade{ from{ opacity:1; } to{ opacity:0; } }
.opening.opening-v4.is-out{
  animation: openingFade .32s ease forwards;
  pointer-events:none;
}


/* Quest UI (ACCESS) — Quest Log / Checkmarks */
.quest-header{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.quest-kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: .82rem;
  letter-spacing: .18em;
  color: rgba(201,193,180,.92);
  text-transform: uppercase;
}
.quest-title{
  margin: var(--s-2) 0 var(--s-2);
  font-size: clamp(2.0rem, 3.6vw, 3.0rem);
  letter-spacing: .08em;
}
.quest-sub{
  margin: 0 auto;
  max-width: var(--measure);
  color: rgba(243,241,235,.86);
}

.quest-log{
  margin: var(--s-4) auto 0;
  display:grid;
  gap: var(--s-3);
  max-width: var(--measure);
}
.quest-step{
  position: relative;
  padding-left: clamp(40px, 6vw, 52px);
  padding-right: clamp(40px, 6vw, 52px);
}
.quest-step::before{
  content:"";
  position:absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.10);
}
.quest-step:last-child::before{ bottom: 50%; }

.quest-check{
  position:absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.quest-check svg{ width: 16px; height: 16px; opacity: 0; transform: scale(.8); transition: opacity .22s ease, transform .22s ease; }
.quest-step.is-done .quest-check{
  background: rgba(var(--accent-rgb), .22);
}
.quest-step.is-done .quest-check svg{
  opacity: 1;
  transform: scale(1);
}
.quest-step h3{
  margin: 0 0 6px;
  font-size: 1.0rem;
  letter-spacing: .10em;
}
.quest-step p{
  margin: 0;
  color: rgba(201,193,180,.92);
}

/* Route line (SVG draw) */
.route-map{
  margin-top: var(--s-4);
  max-width: var(--measure);
}
.route-map svg{
  width: 100%;
  height: auto;
  display:block;
}
.route-path{
  stroke: rgba(var(--accent-rgb), .86);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash, 1000);
  stroke-dashoffset: var(--dash, 1000);
}
.reveal.is-in .route-path{
  animation: routeDraw 1.15s var(--ease-throw) forwards;
}
@keyframes routeDraw{
  to{ stroke-dashoffset: 0; }
}
.route-node{
  fill: rgba(243,241,235,.92);
  opacity: .90;
}
.route-label{
  font-size: 12px;
  letter-spacing: .22em;
  fill: rgba(201,193,180,.92);
}

/* Embedded Google Map (CONTACT) — tone-matched */
.map-embed{
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-2);
  justify-items: center;
}
.map-frame{
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #15110c;
  box-shadow: 0 26px 90px rgba(0,0,0,.58);
}
.map-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  /* 清潔感のある “ほぼモノトーン” に寄せる（ルート色は少し残す）
     NOTE: iframe に filter を当てることで、Google Map 本体も一括でトーン調整できます */
  filter: grayscale(.86) saturate(.75) contrast(1.12) brightness(.92);
  transform: translateZ(0);
}

.map-frame .map-tint{
  pointer-events:none;
  position:absolute;
  inset:0;
  /* 色かぶり（黄/ピンク）を抑えて、ニュートラルな陰影だけ残す */
  background:
    radial-gradient(820px 520px at 50% 22%, rgba(255,255,255,.10), transparent 62%),
    radial-gradient(900px 560px at 50% 78%, rgba(0,0,0,.22), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,0));
  mix-blend-mode: overlay;
  opacity: .16;
}

.map-badge{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
  /* 枠線は作らず、面だけで見せる */
  color: rgba(243,241,235,.92);
  letter-spacing: .22em;
  font-size: .72rem;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.map-badge-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .95);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .0);
  position: relative;
}
.map-badge-dot::after{
  content:"";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .40);
  opacity: .0;
  transform: scale(.6);
  animation: mapPing 2.2s ease-out infinite;
}
@keyframes mapPing{
  0%{ opacity: 0; transform: scale(.6); }
  20%{ opacity: .55; }
  100%{ opacity: 0; transform: scale(1.25); }
}
/* Map route overlay（徒歩表記は残しつつ、線でスッキリ見せる） */
.map-route-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-route-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-route-shadow{
  fill: none;
  stroke: rgba(0,0,0,.55);
  stroke-width: 12px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}
.map-route-line{
  fill: none;
  stroke: rgba(var(--accent-rgb), .92);
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-route-arrowhead{
  fill: rgba(var(--accent-rgb), .92);
}
.map-route-node{
  fill: rgba(var(--accent-rgb), .92);
  stroke: rgba(0,0,0,.55);
  stroke-width: 2px;
}
.map-route-node.end{
  fill: rgba(243,241,235,.92);
  stroke: rgba(var(--accent-rgb), .92);
  stroke-width: 2px;
}
.map-route-start{
  position: absolute;
  left: 77%;
  top: 40%;
  transform: translate(-50%, -130%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  color: rgba(243,241,235,.92);
  font-size: .72rem;
  letter-spacing: .12em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.map-route-walk{
  position: absolute;
  left: 60%;
  top: 42%;
  transform: translate(-50%, -50%);
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.26);
  color: rgba(243,241,235,.92);
  font-size: .72rem;
  letter-spacing: .12em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.map-actions{ display:flex; justify-content:center; gap: var(--s-2); }

@media (max-width: 600px){
  /* スマホでは縦が足りずルートが追いづらいので、少し背を高く */
  .map-frame{ aspect-ratio: 4 / 3; }

  .map-route-shadow{ stroke-width: 10px; }
  .map-route-line{ stroke-width: 5px; }
  .map-route-start, .map-route-walk{
    font-size: .66rem;
    padding: 6px 10px;
  }
  .map-route-start{ top: 38%; }
  .map-route-walk{ left: 56%; top: 46%; }
}

/* Alchemy Recipe (CONCEPT) — ingredients mix into flask */
.recipe{
  margin-top: var(--s-3);
}
.recipe-stage{
  position: relative;
  max-width: var(--measure);
  margin: var(--s-3) auto 0;
  height: clamp(320px, 44vw, 420px);
}
.recipe .ingredient{
  position:absolute;
  width: 120px;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%,-50%) translate3d(0,0,0) scale(1);
  display:grid;
  justify-items:center;
  gap: 10px;
  will-change: transform, opacity;
}
.recipe .ingredient .ing-icon{
  width: 52px;
  height: 52px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
}
.recipe .ingredient .ing-icon svg{ width: 26px; height: 26px; opacity:.9; }
.recipe .ingredient .ing-name{
  font-size: .86rem;
  letter-spacing: .12em;
  color: rgba(243,241,235,.88);
}

.recipe .flask{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(260px, 46vw);
  height: min(300px, 52vw);
  pointer-events:none;
}
.recipe .flask .flask-svg{ width:100%; height:100%; display:block; }
.recipe .flask .flask-outline{
  stroke: rgba(243,241,235,.92);
  stroke-width: 3;
  fill: none;
  stroke-linejoin: round;
}
.recipe .flask .flask-neck{
  stroke: rgba(243,241,235,.55);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}

/* Liquid that matches flask silhouette (SVG clip-path) */
.recipe .flask .flask-liquid{
  transform: translateY(240px);
  will-change: transform;
  filter: saturate(1.06);
  mix-blend-mode: screen;
}
.recipe .flask .liquid-surface{
  fill: rgba(var(--accent-rgb), .18);
  opacity: .9;
}
.recipe .flask .liquid-glow{
  mix-blend-mode: screen;
  animation: liquidSwirl 2.6s linear infinite;
  transform-origin: 100px 120px;
}
@keyframes liquidSwirl{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.recipe.is-mix .ingredient{
  animation: ingToFlask 5.10s var(--ease-heavy) forwards;
}
@keyframes ingToFlask{
  0%{ opacity:1; transform: translate(-50%,-50%) translate3d(0,0,0) scale(1); }
  70%{ opacity:1; transform: translate(-50%,-50%) translate3d(var(--to-xm, 0px), var(--to-ym, 0px), 0) scale(.55); }
  100%{ opacity:0; transform: translate(-50%,-50%) translate3d(var(--to-x, 0px), var(--to-y, 0px), 0) scale(.25); }
}

.recipe.is-mix .flask .flask-liquid{
  animation: liquidRiseSvg 5.80s ease forwards;
}
@keyframes liquidRiseSvg{
  0%{ transform: translateY(240px); }
  66%{ transform: translateY(106px); }
  100%{ transform: translateY(115px); }
}

/* Reduced motion / direct state */
.recipe.is-done .flask .flask-liquid{
  transform: translateY(115px);
}

.recipe-done{
  position:absolute;
  left:50%;
  /* フラスコ上部とテキストが被りやすいので、端末幅に応じて上へ逃がす */
  top: clamp(-24px, -2.0vw, -8px);
  transform: translateX(-50%);
  text-align:center;
  opacity:0;
  transition: opacity .25s ease, transform .25s ease;
}
.recipe.is-done .recipe-done{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}
.recipe-done .badge{
  display:inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(201,193,180,.92);
}
.recipe-done .text{
  margin-top: 8px;
  font-size: 1.0rem;
  letter-spacing: .10em;
}

/* Page transition overlay — page turn from bottom-right */
.turn{
  position: fixed;
  inset:0;
  z-index: 90;
  pointer-events:none;
  display:none;
  background: rgba(5,5,4,.02);
}
.turn.is-on{ display:block; }

.turn .turn-loader{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  display:grid;
  justify-items:center;
  gap: 10px;
  opacity:0;
  transition: opacity .16s ease;
  z-index: 2;
}
.turn.is-on .turn-loader{ opacity: 1; }

.turn .turn-loader img{
  width: 76px;
  height: 76px;
  display:block;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.55));
  animation: loaderSpin 1.05s linear infinite;
  opacity: .92;
}
.turn .turn-loader .turn-loader-text{
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243,241,235,.82);
}

@keyframes loaderSpin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}


.turn .turn-sheet{
  position:absolute;
  inset:-20%;
  transform-origin: 100% 100%;
  transform: translate(58%,58%) rotate(-14deg) scale(.02);
  opacity:0;
  background:
    radial-gradient(760px 520px at 60% 46%, rgba(var(--accent-rgb),.10), transparent 62%),
    radial-gradient(760px 520px at 42% 56%, rgba(var(--accent2-rgb),.08), transparent 66%),
    linear-gradient(180deg, rgba(7,6,5,.78), rgba(5,5,4,.92));
  border-top-left-radius: 56px;
  box-shadow:
    -50px -50px 110px rgba(0,0,0,.62);
}

.turn .turn-sheet::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,0) 32%,
      rgba(0,0,0,.14) 72%,
      rgba(0,0,0,.62));
  opacity:.55;
  border-top-left-radius: 56px;
}

@keyframes pageTurnClose{
  0%{ transform: translate(58%,58%) rotate(-14deg) scale(.02); opacity:1; }
  100%{ transform: translate(0,0) rotate(0deg) scale(1); opacity:1; }
}
@keyframes pageTurnOpen{
  0%{ transform: translate(0,0) rotate(0deg) scale(1); opacity:1; }
  82%{ opacity:1; }
  100%{ transform: translate(58%,58%) rotate(-14deg) scale(.02); opacity:0; }
}

.turn.is-closing .turn-sheet{ animation: pageTurnClose .55s var(--ease-heavy) forwards; }
.turn.is-opening .turn-sheet{
  transform: translate(0,0) rotate(0deg) scale(1);
  opacity:1;
  animation: pageTurnOpen .55s var(--ease-heavy) forwards;
}

/* pre-enter to prevent flicker */
html.pre-enter .turn{ display:block; }
html.pre-enter .turn .turn-sheet{ transform: translate(0,0) rotate(0deg) scale(1); opacity:1; }

/* Utility */
.spacer{ height: var(--s-2); }

/* Spacing utilities (8px rhythm) */
.m0{ margin:0 !important; }
.mt-1{ margin-top: var(--s-1) !important; }
.mt-2{ margin-top: var(--s-2) !important; }
.mt-3{ margin-top: var(--s-3) !important; }
.mt-4{ margin-top: var(--s-4) !important; }
.ml-1{ margin-left: var(--s-1) !important; }

/* If a spacing utility is applied to the first block in a container, cancel it. */
.container > .mt-1:first-child,
.container > .mt-2:first-child,
.container > .mt-3:first-child,
.container > .mt-4:first-child{
  margin-top: 0 !important;
}



/* ==========================================================================
   RPG / Otaku micro-interactions
   - Mini map (base floor plan)
   - Karaoke highlight
   - Slot reel (scroll linked)
   - Terminal note cursor
   - MAP ping
   ========================================================================== */

/* Mini map (bottom-right) */
.mini-map{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 220px;
  z-index: 55;
  pointer-events: none;
  opacity: .92;
}

/* RPG Command (bottom-left) — TOP scroll sync */
.rpg-command{
  position: fixed;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 200px;
  z-index: 54;
  pointer-events: none;
  opacity: .92;
}
.rpg-command-card{
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(5,5,4,.48);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  transition: opacity .22s ease, transform .22s ease;
  text-align: center;
}
.rpg-command.is-off .rpg-command-card{
  opacity: 0;
  transform: translateY(12px);
}
.rpg-command-title{
  margin: 0 0 8px;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(201,193,180,.82);
}
.rpg-command-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.cmd-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  color: rgba(201,193,180,.90);
  letter-spacing: .08em;
  font-size: .9rem;
  justify-content: center;
}
.cmd-cursor{
  width: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
  color: rgba(var(--accent2-rgb), .95);
}
.cmd-item.is-active{
  color: rgba(243,241,235,.98);
}
.cmd-item.is-active .cmd-cursor{
  opacity: 1;
  transform: translateX(0);
}

/* RPG Message window (bottom-center) */
.rpg-msg{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(560px, 92vw);
  z-index: 54;
  pointer-events: none;
  opacity: .92;
}
.rpg-msg-card{
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: rgba(5,5,4,.48);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
  position: relative;
  transition: opacity .22s ease, transform .22s ease;
}
.rpg-msg.is-off .rpg-msg-card{
  opacity: 0;
  transform: translateY(12px);
}
.rpg-msg-line{
  margin: 0;
  font-size: .9rem;
  letter-spacing: .06em;
  color: rgba(201,193,180,.92);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s ease, transform .22s ease;
}
.rpg-msg-line + .rpg-msg-line{ margin-top: 6px; }
.rpg-msg-line.is-show{
  opacity: 1;
  transform: translateY(0);
}
.rpg-cursor{
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(var(--accent2-rgb), .85);
  opacity: .85;
  animation: termCursor 1.05s steps(2,end) infinite;
}

@media (max-width: 920px){
  .rpg-command,
  .rpg-msg{ display: none; }
}
.mini-map .mini-map-card{
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(5,5,4,.48);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}
.mini-map .mini-map-title{
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(201,193,180,.82);
  margin: 0 0 8px;
}
.mini-map svg{ width:100%; height:auto; display:block; }
.mini-map .mm-line{
  stroke: rgba(255,255,255,.18);
  stroke-width: 2px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-map .mm-room{
  stroke: rgba(255,255,255,.10);
  stroke-width: 1.2;
  fill: rgba(255,255,255,.02);
}
.mini-map .mm-node circle{
  fill: rgba(243,241,235,.26);
  transition: fill .18s ease, filter .18s ease, opacity .18s ease;
}
.mini-map .mm-node text{
  font-size: 10px;
  letter-spacing: .18em;
  fill: rgba(201,193,180,.90);
}
.mini-map .mm-node.is-active circle{
  fill: rgba(var(--accent-rgb), .92);
  filter:
    drop-shadow(0 0 10px rgba(var(--accent-rgb), .42))
    drop-shadow(0 0 24px rgba(var(--accent-rgb), .20));
}
.mini-map .mm-node.is-active .mm-pulse{
  opacity: 1;
  animation: mmPulse 1.6s ease-out infinite;
}
.mini-map .mm-pulse{
  fill: none !important;
  stroke: rgba(var(--accent-rgb), .55);
  stroke-width: 2px;
  opacity: 0;
  transform-origin: center;
}
@keyframes mmPulse{
  0%{ transform: scale(.65); opacity: .0; }
  14%{ opacity: .34; }
  100%{ transform: scale(1.55); opacity: 0; }
}

@media (max-width: 920px){
  .mini-map{
    width: 180px;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* Karaoke lyric highlight (gold) */
.karaoke-lyric{
  position: relative;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.karaoke-lyric .karaoke-text{
  position: relative;
  z-index: 1;
  font-size: .86rem;
  letter-spacing: .12em;
  color: rgba(243,241,235,.88);
}
.karaoke-lyric::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(var(--gold-rgb),0) 0%,
      rgba(var(--gold-rgb),.22) 38%,
      rgba(var(--gold-rgb),.40) 50%,
      rgba(var(--gold-rgb),.22) 62%,
      rgba(var(--gold-rgb),0) 100%);
  transform: translateX(-110%);
  animation: karaokeSweep 2.2s linear infinite;
  mix-blend-mode: screen;
  opacity: .78;
}
.karaoke-lyric::after{
  content:"";
  position:absolute;
  inset:-40% -60%;
  background:
    repeating-linear-gradient(60deg,
      rgba(255,255,255,.0) 0 12px,
      rgba(255,255,255,.08) 12px 14px,
      rgba(255,255,255,.0) 14px 28px);
  transform: translateX(-40%);
  animation: karaokeGlitter 2.2s linear infinite;
  opacity: .22;
  pointer-events:none;
}
@keyframes karaokeSweep{
  0%{ transform: translateX(-110%); }
  100%{ transform: translateX(110%); }
}
@keyframes karaokeGlitter{
  0%{ transform: translateX(-45%); }
  100%{ transform: translateX(45%); }
}

/* Slot reel (scroll-linked) */
.slot-ui{
  margin: 10px 0 12px;
  display:grid;
  justify-content:center;
  position: relative;
  pointer-events:none;
}
.slot-reels{
  display:grid;
  grid-template-columns: repeat(3, 34px);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  box-shadow: none; /* 枠なし */
}
.reel{
  width:34px;
  height:46px;
  border-radius: 10px;
  overflow:hidden;
  background: rgba(0,0,0,.35);
  box-shadow: none; /* 枠なし */
}
.reel-strip{
  display:grid;
  grid-auto-rows: 46px;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.reel-strip span{
  display:grid;
  place-items:center;
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: rgba(243,241,235,.86);
  text-shadow: 0 10px 18px rgba(0,0,0,.55);
}
.slot-win{
  position:absolute;
  top: -8px;
  right: -8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--accent2-rgb), .16);
  color: rgba(243,241,235,.92);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-8deg) translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 18px 46px rgba(0,0,0,.42);
}
.slot-ui.is-win .slot-win{
  opacity: 1;
  transform: rotate(-8deg) translateY(0);
}

/* Terminal-like important note cursor */
.note-terminal{
  position: relative;
  display:inline-block;
  padding-right: 1.2em;
}
.note-terminal::after{
  content:"_";
  position:absolute;
  right: .1em;
  bottom: .05em;
  color: rgba(var(--accent2-rgb), .55);
  animation: termCursor 1.05s steps(2, end) infinite;
}
@keyframes termCursor{
  0%,49%{ opacity: 0; }
  50%,100%{ opacity: .78; }
}

/* MAP ping (GPS ripple) */
.btn-map{
  position: relative;
  overflow: visible;
}
.btn-map::after{
  content:"";
  position:absolute;
  left: 22px; /* around pin icon */
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(var(--accent-rgb), 0);
  transform: translate(-50%,-50%) scale(.7);
  opacity: 0;
  pointer-events:none;
  animation: gpsPing 6.2s ease-in-out infinite;
}
@keyframes gpsPing{
  0%,70%{ opacity:0; transform: translate(-50%,-50%) scale(.70); border-color: rgba(var(--accent-rgb), 0); }
  74%{ opacity:.22; border-color: rgba(var(--accent-rgb), .42); }
  86%{ opacity:0; transform: translate(-50%,-50%) scale(2.35); border-color: rgba(var(--accent-rgb), 0); }
  100%{ opacity:0; }
}


@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  body::before{ display:none; }

  .bg-fx .spark,
  .bg-fx .grain,
  .sigil .sigil-idle,
  .door-logo,
  .opening.is-play .door-panel,
  .recipe .flask .liquid-glow,
  .recipe.is-mix .flask .flask-liquid,
  .card.pad::after,
  .karaoke-lyric::before,
  .karaoke-lyric::after,
  .mini-map .mm-pulse,
  .btn-map::after,
  .note-terminal::after,
  .turn.is-opening .turn-sheet,
  .turn.is-closing .turn-sheet,
  .turn .turn-loader img{
    animation: none !important;
  }
}

/* Map route hints */
.map-hints{
  margin: 18px auto 0;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 10px;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.8;
}
.map-hints li{
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.map-hints li::before{
  content: "●";
  color: var(--c-accent);
  font-size: 10px;
  line-height: 1.9;
  flex: 0 0 auto;
}

@media (max-width: 560px){
  .map-hints{
    font-size: 13px;
  }
}

/* =========================================================
   Performance tune
   - 強スクロールでカクつく原因(blur / backdrop-filter / mix-blend / 常時アニメ)
     を「スクロール中」と「モバイル」で軽くします。
   ========================================================= */

/* 以前は content-visibility:auto を入れていましたが、
   強めのスクロール時に一瞬白く抜ける症状が出たため無効化。 */

/* スクロール中だけ、重い表現を一時停止してスクロールを滑らかに */
html.is-scrolling .bg-fx .grain,
html.is-scrolling .bg-fx .sparks{
  display: none !important;
}
html.is-scrolling .bg-fx .noise::before,
html.is-scrolling .bg-fx .noise::after{
  animation: none !important;
}
html.is-scrolling .bg-fx .scene-layer,
html.is-scrolling .bg-fx .spotlight{
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: .18 !important;
}
html.is-scrolling .card,
html.is-scrolling .card-big,
html.is-scrolling .glass,
html.is-scrolling .site-header,
html.is-scrolling .nav-drawer,
html.is-scrolling .mobile-cta{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 端末が小さい(スマホ/タブレット寄り)ときは常時軽量モード */
@media (max-width: 900px){
  /* 背景エフェクトを軽量化 */
  .bg-fx .sparks{ display: none !important; }
  .bg-fx .grain{ animation: none !important; opacity: .025 !important; }
  .bg-fx .noise::before,
  .bg-fx .noise::after{ animation: none !important; opacity: .06 !important; }
  .bg-fx .scene-layer,
  .bg-fx .spotlight{
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: .20 !important;
  }

  /* ガラス(blur)はモバイルで重いのでOFF */
  .card,
  .card-big,
  .glass,
  .site-header,
  .nav-drawer,
  .mobile-cta{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* ホログラムの合成(見た目は少しだけ変わるけど軽い) */
  .card::before,
  .card::after,
  .card-big::before,
  .card-big::after{
    display: none !important;
  }
}

/* OSの設定で「動きを減らす」の場合は、さらに軽く */
@media (prefers-reduced-motion: reduce){
  .bg-fx .sparks{ display: none !important; }
  .bg-fx .grain{ animation: none !important; }
  .bg-fx .noise::before,
  .bg-fx .noise::after{ animation: none !important; }
  .bg-fx .scene-layer,
  .bg-fx .spotlight{ filter: none !important; mix-blend-mode: normal !important; }

  .card,
  .card-big,
  .glass,
  .site-header,
  .nav-drawer,
  .mobile-cta{
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* ==============================
   Performance tweaks (extra)
   ============================== */

/* Disable hologram sweep completely */
.card.pad::after{ content: none !important; }

/* Opening/Loading: reduce GPU-expensive filters/blends */
.opening-v4 .op-v4-sigil{
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: .42 !important;
}
.opening-v4 .op-v4-draw [data-op-draw]{ filter: none !important; }
.opening-v4 .op-v4-img{ filter: none !important; }

/* TOP only: use the uploaded hero photo and make the magic circle livelier */
body.page-top .hero-bg{
  background:
    linear-gradient(180deg, rgba(7,6,5,.44), rgba(7,6,5,.86)),
    radial-gradient(980px 560px at 68% 22%, rgba(108,210,245,.16), transparent 60%),
    radial-gradient(920px 560px at 14% 84%, rgba(255,177,92,.12), transparent 62%),
    url("./../img/hero.jpg");
  background-size: cover;
  background-position: center 48%;
  filter: saturate(1.05) contrast(1.04) brightness(.78);
}
body.page-top .sigil{
  top: 37%;
  right: -210px;
  width: min(760px, 96vw);
  height: min(760px, 96vw);
  filter: none;
  opacity: .66;
  animation: heroSigilFloat 20s ease-in-out infinite alternate;
}
@keyframes heroSigilFloat{
  0%{ transform: translate3d(0, -50%, 0) scale(.98); }
  35%{ transform: translate3d(-18px, -47%, 0) scale(1.015); }
  70%{ transform: translate3d(16px, -53%, 0) scale(1.035); }
  100%{ transform: translate3d(-12px, -49%, 0) scale(1.01); }
}
@media (max-width: 900px){
  body.page-top .hero-bg{
    background-position: 58% 50%;
  }
  body.page-top .sigil{
    top: 31%;
    right: -220px;
    width: min(680px, 118vw);
    height: min(680px, 118vw);
    opacity: .60;
  }
}
@media (max-width: 640px){
  body.page-top .hero-bg{
    background-position: 62% 52%;
    filter: saturate(1.02) contrast(1.02) brightness(.72);
  }
  body.page-top .sigil{
    top: 22%;
    right: -220px;
    width: min(620px, 150vw);
    height: min(620px, 150vw);
    opacity: .54;
  }
}

/* ===== Global Font Override ===== */
:root{
  --font-body: "LanobePOP", "ラノベPOP", "RanobePOP", system-ui, -apple-system, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

body{
  font-family: var(--font-body) !important;
}

button, input, textarea, select{
  font-family: inherit;
}

/* --- HERO physics iframe (interactive stage) --- */
.hero{
  position: relative;
  overflow: hidden;
}

.hero-inner{
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-gimmick-stage{
  position: relative;
  width: min(100%, 980px);
  height: clamp(230px, 27vw, 360px);
  margin: clamp(8px, 1.8vh, 22px) auto clamp(8px, 2vh, 22px);
  z-index: 7;
}

.hero-physics-iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  display: block;
  pointer-events: auto;
  opacity: 1;
  z-index: 7;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 960px){
  .hero-gimmick-stage{
    width: min(100%, 820px);
    height: clamp(190px, 32vw, 300px);
  }
}

@media (max-width: 640px){
  .hero-gimmick-stage{
    width: min(100%, 440px);
    height: clamp(150px, 48vw, 228px);
    margin-top: 0;
    margin-bottom: 10px;
  }
}


/* --- SYSTEM point card --- */
.point-board{
  position:relative;
  overflow:hidden;
  margin-top: var(--s-4);
}
.point-board::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(420px 220px at 18% 14%, rgba(var(--cta-rgb),.10), transparent 62%),
    radial-gradient(360px 220px at 82% 22%, rgba(var(--accent-rgb),.10), transparent 60%),
    radial-gradient(240px 140px at 50% 100%, rgba(var(--accent2-rgb),.08), transparent 70%);
  opacity:.92;
}
.point-board-inner{
  position:relative;
  z-index:1;
}
.point-board-head{
  display:grid;
  gap:10px;
  justify-items:center;
  text-align:center;
}
.point-board-title{
  margin:0;
  font-size:clamp(1.45rem, 2.4vw, 2rem);
  line-height:1.2;
}
.point-board-copy{
  max-width: 42rem;
  margin:0 auto;
}
.point-board-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
  align-items:stretch;
}
.point-panel{
  position:relative;
  overflow:hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12,10,8,.82), rgba(8,7,6,.96));
  box-shadow: 0 24px 56px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.05);
  padding: clamp(20px, 2.2vw, 30px);
  text-align:left;
}
.point-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 24%, transparent 72%, rgba(255,255,255,.02)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px);
  opacity:.85;
}
.point-panel > *{
  position:relative;
  z-index:1;
}
.point-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  font-size:1.05rem;
  letter-spacing:.06em;
  color:var(--text);
}
.point-panel-title::before{
  content:"";
  width:12px;
  height:12px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(var(--cta-rgb),.92) 42%, rgba(var(--cta-rgb),0) 72%);
  box-shadow:0 0 20px rgba(var(--cta-rgb),.22);
}
.point-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}
.point-list li{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.point-mark{
  flex:0 0 auto;
  min-width:68px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(var(--cta-rgb),.26), rgba(var(--cta-rgb),.12));
  color:rgba(255,240,247,.96);
  font-size:.82rem;
  letter-spacing:.06em;
  line-height:1.1;
  text-align:center;
}
.point-mark.is-reward{
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.26), rgba(var(--accent-rgb),.12));
  color:rgba(236,250,255,.96);
}
.point-text{
  color:var(--text);
  line-height:1.7;
}
.point-text strong{
  color:var(--text);
}
.point-note{
  margin-top:14px;
  font-size:.88rem;
  color:rgba(243,241,235,.78);
}
.point-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:14px;
}
.point-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:rgba(243,241,235,.90);
  letter-spacing:.04em;
}
.point-badge::before{
  content:"◆";
  color:rgba(var(--accent-rgb),.95);
  font-size:.8rem;
}
@media (max-width: 900px){
  .point-board-grid{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px){
  .point-panel{
    padding:18px;
  }
  .point-list li{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}


/* --- TOP hero: keep more breathing room below the physics gimmick --- */
body.page-top .hero-gimmick-stage{
  margin-bottom: clamp(84px, 18vh, 190px);
}
@media (max-width: 640px){
  body.page-top .hero-gimmick-stage{
    margin-bottom: clamp(38px, 10vh, 88px);
  }
}

/* --- CAST: direct status embed --- */
.embed-x-status{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: clamp(18px, 3vw, 28px);
}
.embed-x-status .twitter-tweet,
.embed-x-status .twitter-tweet-rendered{
  margin: 0 auto !important;
  max-width: 550px !important;
}
.embed-x-status{
  padding: 0;
}
.embed-x-status .embed-skeleton{
  z-index: 3;
}
.embed-x-status .x-title{
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), .96);
}
.x-status-frame{
  height: 100% !important;
  min-height: 680px;
  border-radius: 18px;
  background: transparent;
}
@media (max-width: 640px){
  .x-status-frame{
    min-height: 520px;
  }
}


/* --- v9 polish: top blend / gallery drag / concept timing / mobile --- */
body.page-top .hero{
  padding-bottom: clamp(20px, 3.5vh, 30px);
}
body.page-top .hero-gimmick-stage{
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(116px, 20vh, 240px);
}
body.page-top .hero-gimmick-stage::before{
  content:"";
  position:absolute;
  inset: 8% 6%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center,
      rgba(7,6,5,.34) 0%,
      rgba(7,6,5,.20) 40%,
      rgba(7,6,5,.08) 62%,
      rgba(7,6,5,0) 88%);
  filter: blur(24px);
  pointer-events:none;
  z-index:0;
}
body.page-top .hero-gimmick-stage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 24% 48%, rgba(var(--accent-rgb),.05), transparent 34%),
    radial-gradient(ellipse at 78% 44%, rgba(var(--accent2-rgb),.06), transparent 36%);
  z-index:1;
}
body.page-top .hero-physics-iframe{
  position:relative;
  z-index:2;
  border-radius: clamp(36px, 6vw, 56px);
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 54%,
    rgba(0,0,0,.96) 66%,
    rgba(0,0,0,.72) 80%,
    rgba(0,0,0,.28) 92%,
    rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 54%,
    rgba(0,0,0,.96) 66%,
    rgba(0,0,0,.72) 80%,
    rgba(0,0,0,.28) 92%,
    rgba(0,0,0,0) 100%);
}

body.page-top .mini-map,
body.page-top .rpg-command,
body.page-top .rpg-msg{
  display:none !important;
}

.gallery-marquee{
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom: 8px;
  scrollbar-width:none;
  -ms-overflow-style:none;
  cursor: grab;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery-marquee::-webkit-scrollbar{ display:none; }
.gallery-marquee.is-dragging{
  cursor: grabbing;
  user-select:none;
}
.gallery-track{
  animation: none !important;
  will-change: auto;
}
.gallery-marquee:hover .gallery-track{ animation: none !important; }
.gallery-marquee:focus-visible{
  outline: 2px solid rgba(var(--accent-rgb), .38);
  outline-offset: 4px;
}

@media (max-width: 640px){
  :root{
    --gutter: 14px;
  }

  .site-header{
    position: sticky;
  }
  .header-inner{
    height: 64px;
  }
  .brand-logo{
    width: 36px;
    height: 36px;
  }
  .header-actions{
    gap: 4px;
  }
  .header-actions .icon-btn:not(.menu-btn),
  .header-actions .btn{
    display:none;
  }
  .menu-btn{
    display:grid !important;
    width: 40px;
    height: 40px;
  }
  .nav-drawer{
    top: 64px;
    max-height: calc(100svh - 64px);
    overflow:auto;
  }
  .nav-drawer .drawer-inner{
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .section{
    padding: clamp(56px, 14vw, 72px) 0;
  }
  .hero{
    min-height: calc(100svh - 64px);
    padding-top: 76px;
    padding-bottom: 22px;
  }
  body.page-top .hero-bg{
    background-position: 60% 52%;
  }
  body.page-top .sigil{
    top: 16%;
    right: -250px;
    width: min(560px, 145vw);
    height: min(560px, 145vw);
    opacity: .46;
  }
  .hero-inner{
    width: 100%;
  }
  .hero-gimmick-stage{
    width: min(100%, 460px);
    height: clamp(138px, 40vw, 182px);
  }
  body.page-top .hero-gimmick-stage{
    margin-bottom: clamp(74px, 18svh, 140px);
  }
  .hero-kicker{
    font-size: .76rem;
    line-height: 1.7;
    letter-spacing: .10em;
  }
  .hero-title .name{
    font-size: clamp(2.2rem, 10.8vw, 3rem);
    line-height: 1.04;
  }
  .hero-title .desc{
    font-size: .98rem;
    line-height: 1.7;
  }
  .hero-sub{
    max-width: 32rem;
    font-size: .95rem;
    line-height: 1.9;
  }
  .hero-cta{
    gap: 8px 14px;
  }
  .hero-meta{
    gap: 8px 12px;
    font-size: .82rem;
    line-height: 1.6;
  }

  .gallery-item{
    width: min(82vw, 320px);
  }
  .gallery-marquee::before,
  .gallery-marquee::after{
    width: 34px;
  }

  .recipe-stage{
    height: clamp(300px, 86vw, 360px);
    margin-top: var(--s-2);
  }
  .recipe .ingredient{
    width: 96px;
    gap: 8px;
  }
  .recipe .ingredient .ing-icon{
    width: 44px;
    height: 44px;
  }
  .recipe .ingredient .ing-icon svg{
    width: 22px;
    height: 22px;
  }
  .recipe .ingredient .ing-name{
    font-size: .76rem;
    letter-spacing: .08em;
  }
  .recipe .flask{
    width: min(220px, 58vw);
    height: min(264px, 68vw);
  }
  .recipe-done{
    top: -16px;
  }

  .embed-box{
    max-height: none;
    min-height: 500px;
  }
  .embed-x-frame,
  .x-embed-frame,
  .x-status-frame{
    min-height: 560px;
  }
  .ig-embed{
    max-width: 100%;
    height: 520px;
  }

  .point-board{ margin-top: var(--s-3); }
  .mini-map{ display:none; }
  .mobile-cta{
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  }
  .mobile-cta .cta-row{
    gap: 10px;
  }
  .mobile-cta a strong{
    font-size: .8rem;
  }
}


/* --- v10 final touch: top spacing / gimmick blend / x direct embed --- */
body.page-top .hero-gimmick-stage{
  margin-bottom: 0;
}
body.page-top .hero-kicker{
  margin-top: clamp(96px, 18vh, 210px);
}
body.page-top .hero-gimmick-stage::before{
  inset: -6% -2%;
  border-radius: clamp(42px, 8vw, 88px);
  background:
    radial-gradient(ellipse at center,
      rgba(7,6,5,.34) 0%,
      rgba(7,6,5,.24) 34%,
      rgba(7,6,5,.14) 52%,
      rgba(7,6,5,.06) 72%,
      rgba(7,6,5,0) 100%);
  filter: blur(34px);
}
body.page-top .hero-gimmick-stage::after{
  inset:-2% -1%;
  background:
    radial-gradient(ellipse at 22% 48%, rgba(var(--accent-rgb),.06), transparent 32%),
    radial-gradient(ellipse at 78% 44%, rgba(var(--accent2-rgb),.07), transparent 34%),
    radial-gradient(ellipse at center, rgba(255,255,255,.015), transparent 62%);
  filter: blur(8px);
}
body.page-top .hero-physics-iframe{
  border-radius: clamp(48px, 7vw, 74px);
  -webkit-mask-image: radial-gradient(ellipse at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,.96) 58%,
    rgba(0,0,0,.76) 74%,
    rgba(0,0,0,.34) 90%,
    rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,.96) 58%,
    rgba(0,0,0,.76) 74%,
    rgba(0,0,0,.34) 90%,
    rgba(0,0,0,0) 100%);
}

.x-direct-embed{
  width:100%;
  min-height: 680px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: clamp(16px, 2.2vw, 24px) 0 56px;
}
.x-direct-embed .twitter-tweet,
.x-direct-embed .twitter-tweet-rendered,
.x-direct-embed iframe{
  margin:0 auto !important;
  max-width: 550px !important;
}
.x-inline-fallback{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:4;
}
.x-inline-fallback .btn{
  min-width: 190px;
}
.embed-box.embed-x-status.is-loaded .x-inline-fallback{
  opacity:.0001;
  pointer-events:none;
}
@media (max-width: 640px){
  body.page-top .hero-kicker{
    margin-top: clamp(52px, 11vh, 92px);
  }
  .x-direct-embed{
    min-height: 560px;
    padding: 8px 0 60px;
  }
}


/* --- v10.1 mobile + touch + x iframe fix --- */
html,
body{
  max-width:100%;
}
@supports (overflow: clip){
  html,
  body{
    overflow-x: clip;
  }
}

body.page-top .hero{
  overflow-x: clip;
}
body.page-top .hero-gimmick-stage{
  isolation:isolate;
}
body.page-top .hero-gimmick-stage::before{
  inset:-8% -4%;
  border-radius: clamp(52px, 8vw, 96px);
  background:
    radial-gradient(ellipse at center,
      rgba(7,6,5,.18) 0%,
      rgba(7,6,5,.11) 34%,
      rgba(7,6,5,.05) 56%,
      rgba(7,6,5,.015) 76%,
      rgba(7,6,5,0) 100%);
  filter: blur(30px);
}
body.page-top .hero-gimmick-stage::after{
  inset:-4% -3%;
  background:
    radial-gradient(ellipse at 22% 48%, rgba(var(--accent-rgb),.045), transparent 32%),
    radial-gradient(ellipse at 78% 42%, rgba(var(--accent2-rgb),.05), transparent 34%),
    radial-gradient(ellipse at center, rgba(255,255,255,.012), transparent 66%);
}
body.page-top .hero-physics-iframe{
  border-radius: clamp(52px, 7vw, 82px);
  -webkit-mask-image: radial-gradient(ellipse at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,.98) 36%,
    rgba(0,0,0,.88) 58%,
    rgba(0,0,0,.58) 76%,
    rgba(0,0,0,.18) 90%,
    rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,.98) 36%,
    rgba(0,0,0,.88) 58%,
    rgba(0,0,0,.58) 76%,
    rgba(0,0,0,.18) 90%,
    rgba(0,0,0,0) 100%);
}
.hero-touch-hint{
  position:absolute;
  left:50%;
  bottom: clamp(8px, 2vw, 16px);
  transform:translateX(-50%);
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  color: rgba(243,241,235,.96);
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  background: linear-gradient(180deg, rgba(14,14,14,.18), rgba(14,14,14,.04));
  border:1px solid rgba(243,241,235,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events:none;
  white-space:nowrap;
}
.hero-touch-hint .touch-mark{
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:999px;
  color: rgba(var(--accent-rgb),1);
  text-shadow: 0 0 16px rgba(var(--accent-rgb),.35);
  font-size:.95rem;
}
.hero-touch-hint .touch-word{
  transform: translateY(1px);
}

.x-direct-iframe-shell{
  width:100%;
  padding-inline: clamp(4px, 1vw, 10px);
}
.x-status-direct{
  display:block;
  width:min(100%, 550px);
  height: 760px;
  min-height: 760px;
  margin:0 auto;
  border:0;
  background: transparent;
  border-radius: 18px;
  overflow:hidden;
}

@media (max-width: 640px){
  html,
  body,
  main,
  .site-header,
  .section,
  .container,
  .hero,
  .hero-inner{
    width:100%;
    max-width:100%;
  }
  .container{
    padding-inline: 14px;
  }
  body.page-top .hero{
    min-height: auto;
    padding-top: 78px;
    padding-bottom: 32px;
  }
  body.page-top .sigil{
    right: -34vw;
    top: 14%;
    width: min(128vw, 520px);
    height: min(128vw, 520px);
    opacity:.34;
  }
  .hero-gimmick-stage{
    width:100%;
    height: clamp(144px, 42vw, 196px);
  }
  .hero-touch-hint{
    bottom: 0;
    padding:8px 12px;
    font-size:.68rem;
    letter-spacing:.14em;
  }
  body.page-top .hero-kicker{
    margin-top: clamp(58px, 12vh, 92px);
    padding-inline: 6px;
  }
  .hero-title-wrap,
  .hero-title,
  .hero-sub,
  .hero-meta{
    width:100%;
    max-width:100%;
  }
  .hero-sub{
    padding-inline: 4px;
    font-size: .92rem;
    line-height: 1.85;
  }
  .hero-cta{
    width:100%;
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 10px;
    align-items:stretch;
  }
  .hero-cta .btn{
    width:100%;
    min-width:0;
    padding: 12px 10px;
    font-size: .92rem;
    gap: 8px;
  }
  .hero-cta .btn:last-child{
    grid-column: 1 / -1;
  }
  .hero-meta{
    flex-direction:column;
    gap: 6px;
    font-size: .78rem;
    line-height: 1.55;
    padding-inline: 2px;
  }
  .hero-meta span{
    display:block;
    min-width:0;
  }
  .hero-meta.small span:first-child{
    overflow-wrap:anywhere;
  }
  .feature,
  .card,
  .card-big,
  .status-panel{
    max-width:100%;
  }
  .mobile-cta{
    left: 0;
    right: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-cta .cta-row{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .mobile-cta a{
    min-width:0;
    padding: 7px 2px;
    gap: 3px;
    font-size: .62rem;
    line-height: 1.15;
  }
  .mobile-cta a strong{
    font-size: .7rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .x-status-direct{
    width:100%;
    max-width:100%;
    min-height: 680px;
    height: 680px;
  }
}


/* --- v11 mobile-wide stabilization + x fallback card --- */
*{ min-width: 0; }
img, svg, video, canvas, iframe{ max-width:100%; }
main{ overflow-x: clip; }
h1, h2, h3, .hero-title, .card-title{ text-wrap: balance; }
p, .small, .note, .hero-sub, .hero-kicker{ overflow-wrap: anywhere; }

.x-static-card{
  min-height: 100%;
  display:grid;
  gap: 18px;
  align-content:start;
}
.x-static-head{
  display:grid;
  gap: 8px;
  text-align:center;
  justify-items:center;
}
.x-static-icon{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  color: var(--text);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), rgba(255,255,255,.04) 55%, rgba(255,255,255,0) 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 32px rgba(0,0,0,.22);
}
.x-static-handle{
  font-size: .92rem;
  color: rgba(243,241,235,.96);
  letter-spacing: .04em;
}
.x-static-copy{
  color: rgba(201,193,180,.92);
  line-height: 1.8;
  text-align:center;
}
.x-static-actions{
  display:grid;
  gap: 10px;
}
.x-static-actions .btn{
  width:100%;
  justify-content:center;
}
.x-static-note{
  text-align:center;
  font-size:.82rem;
  color: rgba(201,193,180,.78);
}

@media (max-width: 640px){
  html, body{ overflow-x:hidden; }
  body{ min-width: 320px; }

  .site-header{
    top: 0;
    z-index: 120;
    background-color: rgba(var(--header-rgb), .92);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .header-inner{
    height: 60px;
    gap: 8px;
  }
  .brand{
    flex: 0 0 auto;
  }
  .brand-logo{
    width: 34px;
    height: 34px;
  }
  .header-actions{
    margin-left:auto;
    gap: 2px;
  }
  .nav-drawer{
    top: 60px;
    z-index: 119;
  }

  main{
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .hero{
    min-height: auto !important;
    padding-top: 28px;
    padding-bottom: 24px;
    align-items:end;
  }
  body.page-top .hero{
    padding-top: 56px;
    padding-bottom: 22px;
  }
  body:not(.page-top) .hero{
    min-height: auto !important;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  body:not(.page-top) .hero .sigil{
    right: -46vw;
    top: 10%;
    width: min(118vw, 460px);
    height: min(118vw, 460px);
    opacity: .16;
  }

  .hero-inner{
    display:grid;
    gap: 12px;
  }
  .kicker,
  .hero-kicker{
    font-size: .72rem;
    line-height: 1.65;
    letter-spacing: .08em;
    text-align:center;
    justify-content:center;
  }
  .hero-title{
    margin-bottom: 0;
    text-align:center;
  }
  .hero-title .name{
    font-size: clamp(2rem, 10.2vw, 2.7rem);
    line-height: 1.08;
  }
  body.page-top .hero-title .name{
    font-size: clamp(1.95rem, 9.8vw, 2.55rem);
  }
  .hero-title .desc{
    font-size: .95rem;
    line-height: 1.72;
    margin-top: 8px;
    text-wrap: balance;
  }
  .hero-sub{
    font-size: .92rem;
    line-height: 1.85;
    padding-inline: 2px;
    text-wrap: pretty;
  }
  .hero-sub br,
  .lead br,
  .small br{
    display:none;
  }
  .hero-cta{
    display:grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-cta .btn,
  .hero-cta .btn.primary,
  .hero-cta .btn.ghost{
    width:100%;
    min-height: 50px;
    padding: 14px 12px;
    font-size: .96rem;
  }
  .hero-meta{
    flex-direction:column;
    gap: 4px;
    font-size: .77rem;
    line-height: 1.62;
    text-align:center;
  }
  .hero-meta.small{
    font-size: .73rem;
  }

  body.page-top .hero-gimmick-stage{
    width: min(100%, 340px);
    height: 118px;
    margin-inline: auto;
    margin-bottom: 0;
  }
  body.page-top .hero-physics-iframe{
    border-radius: 38px;
  }
  body.page-top .hero-touch-hint{
    right: 12px;
    left: auto;
    bottom: 8px;
    transform:none;
    padding: 7px 11px;
    font-size: .64rem;
    letter-spacing: .12em;
  }
  body.page-top .hero-kicker{
    margin-top: clamp(34px, 8vh, 62px);
    padding-inline: 10px;
  }

  .section{
    padding: 52px 0;
  }
  .grid,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .pricing-grid,
  .footer-grid,
  .recruit-illust-card,
  .contact-grid,
  .faq-grid,
  .access-grid{
    grid-template-columns: 1fr !important;
  }
  .card, .card-big, .glass, .status-panel, .point-board, .embed-box{
    max-width:100%;
  }
  table{
    display:block;
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .mobile-cta{
    background: rgba(5,5,4,.92);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-cta .cta-row{
    gap: 2px;
  }
  .mobile-cta a{
    padding: 6px 2px;
    font-size: .58rem;
    line-height: 1.08;
  }
  .mobile-cta a strong{
    font-size: .66rem;
    white-space: nowrap;
  }

  .head h2,
  h2{
    font-size: clamp(1.7rem, 8.2vw, 2.25rem);
  }
  h3{
    font-size: clamp(1.12rem, 5.8vw, 1.36rem);
  }
  .lead,
  .small,
  .note{
    line-height: 1.8;
  }
  .x-static-actions{
    gap: 8px;
  }
}


/* --- v12 careful mobile polish --- */
@media (max-width: 640px){
  h1, h2, h3, .hero-title, .card-title, .head h2{
    overflow-wrap: normal;
    word-break: keep-all;
  }
  p, li, td, th, .small, .note, .lead, .hero-sub, .hero-kicker, .hero-meta{
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  body.page-top .hero{
    padding-top: 54px;
    padding-bottom: 26px;
  }
  body.page-top .hero-inner{
    gap: 14px;
  }
  body.page-top .hero-gimmick-stage{
    width: min(100%, 352px);
    height: 96px;
    margin-inline: auto;
    margin-bottom: 18px;
    overflow: visible;
  }
  body.page-top .hero-physics-iframe{
    border-radius: 34px;
  }
  body.page-top .hero-touch-hint{
    right: 10px;
    left: auto;
    bottom: -16px;
    transform: none;
    padding: 6px 10px;
    font-size: .58rem;
    letter-spacing: .11em;
    gap: 7px;
    box-shadow: 0 8px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
  }
  body.page-top .hero-touch-hint .touch-mark{
    width: 16px;
    height: 16px;
    font-size: .82rem;
  }
  body.page-top .hero-kicker{
    margin-top: 28px;
    font-size: .76rem;
    line-height: 1.6;
    padding-inline: 12px;
  }
  body.page-top .hero-title-wrap{
    padding-inline: 12px;
  }
  body.page-top .hero-title .name{
    font-size: clamp(1.78rem, 8.6vw, 2.18rem);
    line-height: 1.08;
  }
  body.page-top .hero-title .desc{
    font-size: .92rem;
    line-height: 1.7;
    margin-top: 10px;
  }
  body.page-top .hero-sub{
    font-size: .88rem;
    line-height: 1.78;
    padding-inline: 10px;
  }
  body.page-top .hero-meta{
    gap: 5px;
    font-size: .74rem;
    line-height: 1.58;
    padding-inline: 12px;
  }
  body.page-top .hero-meta.small{
    font-size: .68rem;
    line-height: 1.56;
  }

  body.page-concept .hero{
    padding-top: 28px;
    padding-bottom: 28px;
  }
  body.page-concept .hero-inner{
    gap: 14px;
  }
  body.page-concept .hero-title{
    font-size: clamp(1.74rem, 7.6vw, 2.22rem);
    line-height: 1.14;
    letter-spacing: .01em;
    padding-inline: 6px;
  }
  body.page-concept .hero-sub{
    font-size: .88rem;
    line-height: 1.76;
    padding-inline: 8px;
  }

  body.page-system .shop-head{
    gap: 10px;
  }
  body.page-system .shop-lead{
    line-height: 1.72;
  }
  body.page-system .shop-table{
    display: block;
    width: 100%;
  }
  body.page-system .shop-table thead{
    display: none;
  }
  body.page-system .shop-table tbody{
    display: block;
    width: 100%;
  }
  body.page-system .shop-table tr,
  body.page-system .shop-table th,
  body.page-system .shop-table td{
    display: block;
    width: 100%;
    max-width: 100%;
  }
  body.page-system .shop-table tr{
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  body.page-system .shop-table .shop-cat{
    padding: 18px 0 8px;
    border-top: none;
  }
  body.page-system .shop-table .shop-cat .cat-cell{
    padding: 0;
  }
  body.page-system .shop-table .shop-cat .cat-en{
    font-size: .74rem;
    letter-spacing: .16em;
  }
  body.page-system .shop-table .shop-cat .cat-ja{
    font-size: .68rem;
  }
  body.page-system .shop-table tr:not(.shop-cat){
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "note note";
    column-gap: 14px;
    row-gap: 7px;
    align-items: start;
  }
  body.page-system .shop-table tr:not(.shop-cat) > th{
    grid-area: name;
    text-align: left;
    padding: 0;
    font-size: .98rem;
    line-height: 1.56;
  }
  body.page-system .shop-table tr:not(.shop-cat) > td{
    padding: 0;
  }
  body.page-system .shop-table tr:not(.shop-cat) > td:nth-of-type(1){
    grid-area: price;
    text-align: right;
    white-space: nowrap;
    font-size: .95rem;
    font-weight: 700;
    color: rgba(243,241,235,.96);
  }
  body.page-system .shop-table tr:not(.shop-cat) > td:nth-of-type(2){
    grid-area: note;
    text-align: left;
    font-size: .82rem;
    line-height: 1.7;
    color: rgba(201,193,180,.88);
  }
  body.page-system .shop-table .shop-tag{
    display: inline-flex;
    margin: 8px 0 0;
    font-size: .64rem;
  }
  body.page-system .cashless-note .card-meta br{
    display: none;
  }

  body.page-cast main{
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }
  body.page-cast .head{
    margin-bottom: 8px;
  }
  body.page-cast .head h2{
    font-size: clamp(2rem, 9vw, 2.45rem);
  }
  body.page-cast .x-static-card{
    gap: 14px;
  }
  body.page-cast .x-static-copy{
    font-size: .94rem;
    line-height: 1.72;
  }
  body.page-cast .x-static-actions{
    gap: 8px;
  }
  body.page-cast .x-static-actions .btn{
    min-height: 48px;
  }
  body.page-cast .embed-box{
    margin-bottom: 4px;
  }
}


/* --- v13 mobile header / kinsoku / x-embed polish --- */
@media (max-width: 640px){
  html{
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    line-break: strict;
  }
  body{
    padding-top: 60px;
  }
  body.is-menu-open{
    overflow: hidden;
  }
  .site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 140;
    isolation: isolate;
  }
  .nav-drawer{
    top: 60px;
    height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  main{
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }
  body.page-top .hero{
    padding-top: 20px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }
  body.page-top .hero-inner{
    gap: 12px;
  }
  body.page-top .hero-gimmick-stage{
    width: min(calc(100vw - 96px), 258px);
    height: 82px;
    margin-inline: auto;
    margin-bottom: 22px;
  }
  body.page-top .hero-physics-iframe{
    border-radius: 28px;
  }
  body.page-top .hero-touch-hint{
    right: -2px;
    bottom: -12px;
    padding: 5px 10px;
    font-size: .58rem;
    letter-spacing: .10em;
  }
  body.page-top .hero-kicker{
    margin-top: 40px;
    padding-inline: 14px;
  }
  body.page-top .hero-title-wrap,
  body.page-top .hero-sub,
  body.page-top .hero-meta,
  body.page-top .hero-cta,
  .measure{
    max-width: min(100%, 30rem);
    margin-inline: auto;
  }
  body.page-top .hero-title .name{
    font-size: clamp(1.62rem, 8vw, 1.96rem);
  }
  body.page-top .hero-title .desc{
    font-size: .86rem;
    line-height: 1.72;
  }

  h1, h2, h3, .hero-title, .card-title, .head h2, .shop-head h2, .section h2, .section h3, .btn, .drawer-link{
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
    text-wrap: balance;
    text-align: center;
  }
  p, li, dt, dd, td, th, .small, .note, .lead, .hero-sub, .hero-kicker, .hero-meta, .shop-lead, .card p, .faq-answer, .contact-copy{
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
    text-wrap: pretty;
    text-align: center;
  }
  .hero-cta,
  .hero-title-wrap,
  .head,
  .section-copy,
  .card,
  .card .kicker,
  .card .small,
  .card .note,
  .point-board-head,
  .status-panel,
  .faq-item,
  .contact-grid,
  .recruit-illust-copy,
  .recruit-points,
  .recruit-flow,
  .recruit-fit,
  .recruit-note,
  .access-grid{
    text-align: center;
    justify-items: center;
  }
  .hero-meta span{
    display: block;
  }
  .hero-cta .btn,
  .hero-cta .btn.primary,
  .hero-cta .btn.ghost,
  .x-static-actions .btn{
    text-align: center;
    justify-content: center;
  }
  body.page-system .shop-table tr:not(.shop-cat){
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "price"
      "note";
    row-gap: 6px;
    justify-items: center;
  }
  body.page-system .shop-table tr:not(.shop-cat) > th,
  body.page-system .shop-table tr:not(.shop-cat) > td:nth-of-type(1),
  body.page-system .shop-table tr:not(.shop-cat) > td:nth-of-type(2),
  body.page-system .shop-table .shop-tag{
    text-align: center;
    justify-self: center;
  }
  body.page-cast .x-static-card{
    gap: 12px;
  }
  body.page-cast .x-static-copy{
    font-size: .9rem;
    line-height: 1.74;
  }
  body.page-cast .embed-x-status{
    width: 100%;
    min-height: 548px;
  }
  body.page-cast .x-status-frame{
    min-height: 548px;
  }
}


/* --- v14 mobile typography / fixed header / top gimmick / cast x --- */
.embed-x-live{
  width:100%;
  max-width: 560px;
  min-height: 760px;
  height: 760px;
  margin-inline:auto;
  padding: 0;
  display:block;
  border-radius: 22px;
  overflow:hidden;
  background:
    radial-gradient(420px 260px at 50% 10%, rgba(var(--accent-rgb),.08), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.x-live-frame{
  display:block;
  width:100%;
  height:760px;
  min-height:760px;
  border:0;
  background:transparent;
}

@media (max-width: 640px){
  html{
    scroll-padding-top: 78px;
  }
  body{
    padding-top: 68px !important;
  }
  .site-header{
    position: fixed !important;
    top:0;
    left:0;
    right:0;
    z-index: 180 !important;
    background: linear-gradient(180deg, rgba(5,5,4,.96), rgba(5,5,4,.82));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
  }
  .header-inner{
    min-height: 68px;
  }
  .nav-drawer{
    top: 68px !important;
    height: calc(100dvh - 68px) !important;
  }

  body.page-top .hero{
    padding-top: 18px !important;
  }
  body.page-top .hero-gimmick-stage{
    width: min(calc(100vw - 132px), calc(286px - 2.5cm)) !important;
    height: 70px !important;
    margin-inline: auto;
    margin-bottom: 30px !important;
  }
  body.page-top .hero-physics-iframe{
    border-radius: 24px !important;
  }
  body.page-top .hero-touch-hint{
    right: -8px !important;
    bottom: -14px !important;
    left: auto !important;
    transform: none !important;
    padding: 5px 11px !important;
    font-size: .56rem !important;
    letter-spacing: .12em !important;
  }
  body.page-top .hero-kicker,
  body.page-top .hero-title-wrap,
  body.page-top .hero-sub,
  body.page-top .hero-meta,
  body.page-top .hero-cta,
  body.page-top .hero .measure{
    max-width: min(100%, 22rem) !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  body.page-top .hero-kicker{
    margin-top: 0 !important;
  }
  body.page-top .hero-sub,
  body.page-top .hero-meta,
  body.page-top .hero-meta.small{
    line-height: 1.9 !important;
  }

  /* 改行を自然に：途中分割を抑え、中央揃えに寄せる */
  h1, h2, h3, h4, h5, h6,
  p, li, dt, dd, th, td,
  .small, .note, .lead, .hero-kicker, .hero-sub, .hero-meta,
  .card-title, .feature h3, .feature p, .drawer-link, .shop-head h2,
  .faq-answer, .contact-copy, .recruit-note, .recruit-copy,
  .x-static-copy, .x-static-handle, .point-board, .section p, .section li{
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
    hyphens: none !important;
    text-wrap: pretty;
    text-align: center !important;
  }
  h1, h2, h3, h4, h5, h6,
  .hero-title, .card-title, .head h2, .shop-head h2, .section h2, .section h3{
    text-wrap: balance;
  }
  .hero-sub br,
  .lead br,
  .x-static-copy br,
  .hero-kicker br{
    display:none;
  }
  .hero-cta,
  .head,
  .section-copy,
  .card,
  .feature,
  .status-panel,
  .point-board,
  .recruit-illust-copy,
  .recruit-points,
  .recruit-flow,
  .recruit-fit,
  .access-grid,
  .footer-grid,
  .footer-links,
  .drawer-inner{
    text-align:center !important;
    justify-items:center;
    justify-content:center;
  }
  .btn,
  .btn span,
  .btn .small,
  .drawer-link,
  .hero-cta .btn,
  .hero-cta .btn.primary,
  .hero-cta .btn.ghost{
    white-space: nowrap;
    text-align:center !important;
    justify-content:center !important;
  }
  .hero-meta span,
  .hero-meta.small span{
    display:block;
    text-align:center !important;
  }

  body.page-cast .grid.cols-2{
    grid-template-columns: 1fr !important;
  }
  body.page-cast .x-static-card{
    gap: 14px !important;
  }
  body.page-cast .embed-x-live{
    min-height: 620px;
    height: 620px;
  }
  body.page-cast .x-live-frame{
    min-height: 620px;
    height: 620px;
  }
}


/* --- v15 mobile gimmick size + favicon followup --- */
@media (max-width: 640px){
  body.page-top .hero-gimmick-stage{
    width: min(calc(100vw - 112px), 232px) !important;
    height: 78px !important;
    margin-inline: auto !important;
    margin-bottom: 30px !important;
  }

  body.page-top .hero-physics-iframe{
    border-radius: 26px !important;
  }

  body.page-top .hero-touch-hint{
    right: -4px !important;
    bottom: -13px !important;
    padding: 5px 10px !important;
  }
}


/* --- v16 final mobile tune: wider gimmick / phrase-safe wrap / sticky header / cast tweet --- */
.hero-sub-phrased .keep-phrase{
  display:inline;
}
.hero-sub-phrased .phrase-break{
  display:block;
}

@media (max-width: 640px){
  html{
    scroll-padding-top: 74px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    line-break: strict;
  }
  body{
    padding-top: 68px !important;
  }
  .site-header{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 220 !important;
    background: linear-gradient(180deg, rgba(5,5,4,.96), rgba(5,5,4,.82)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .header-inner{
    min-height: 68px !important;
  }
  .nav-drawer{
    top: 68px !important;
    height: calc(100dvh - 68px) !important;
  }

  body.page-top .hero{
    padding-top: 18px !important;
    padding-bottom: calc(126px + env(safe-area-inset-bottom)) !important;
  }
  body.page-top .hero-inner{
    gap: 14px !important;
  }
  body.page-top .hero-gimmick-stage{
    width: min(calc(100vw - 58px), 308px) !important;
    height: 92px !important;
    margin-inline: auto !important;
    margin-bottom: 30px !important;
  }
  body.page-top .hero-physics-iframe{
    border-radius: 30px !important;
  }
  body.page-top .hero-touch-hint{
    right: -2px !important;
    bottom: -14px !important;
    left: auto !important;
    transform: none !important;
    padding: 6px 12px !important;
  }

  body.page-top .hero-title-wrap,
  body.page-top .hero-sub,
  body.page-top .hero-meta,
  body.page-top .hero-cta,
  body.page-top .hero .measure,
  body.page-top .hero-kicker{
    max-width: min(100%, 22.8rem) !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  body.page-top .hero-sub.hero-sub-phrased{
    font-size: .92rem !important;
    line-height: 1.95 !important;
    padding-inline: 8px !important;
    text-align: center !important;
  }
  body.page-top .hero-sub.hero-sub-phrased .keep-phrase{
    display: inline-block;
    white-space: nowrap;
  }
  body.page-top .hero-sub.hero-sub-phrased .phrase-break{
    display: block;
    content: "";
    height: .1em;
  }

  h1, h2, h3, h4, h5, h6,
  .hero-title, .card-title, .head h2, .shop-head h2, .section h2, .section h3,
  .hero-kicker, .hero-sub, .hero-meta, .lead, .small, .note, .card p, .feature p, .feature h3,
  .faq-answer, .contact-copy, .recruit-note, .recruit-copy, .x-static-copy, .x-static-handle, .section p, .section li{
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
    hyphens: none !important;
    text-wrap: pretty;
    text-align: center !important;
  }
  h1, h2, h3, h4, h5, h6, .hero-title, .card-title, .head h2, .shop-head h2, .section h2, .section h3{
    text-wrap: balance;
  }

  .hero-cta, .head, .section-copy, .card, .feature, .status-panel, .point-board, .recruit-illust-copy,
  .recruit-points, .recruit-flow, .recruit-fit, .access-grid, .footer-grid, .footer-links, .drawer-inner{
    text-align: center !important;
    justify-items: center !important;
    justify-content: center !important;
  }

  .hero-sub br, .lead br, .small br{
    display:none;
  }

  body.page-cast .grid.cols-2{
    grid-template-columns: 1fr !important;
  }
  body.page-cast .embed-x-live{
    width: 100% !important;
    max-width: 100% !important;
    min-height: 690px !important;
    height: 690px !important;
    padding: 0 !important;
  }
  body.page-cast .x-live-frame{
    width: 100% !important;
    min-height: 690px !important;
    height: 690px !important;
    border: 0 !important;
  }
}


/* --- v17 mobile fit polish: index sections + footer wrap --- */
.intro-title span,
.intro-copy span{
  display:inline;
}
.footer-legal span{
  display:inline;
}

@media (max-width: 640px){
  html, body{
    overflow-x: clip;
  }

  .container,
  .measure{
    width: min(100%, 100vw);
    max-width: 100%;
  }

  .grid > *,
  .footer-grid > *,
  .hero-inner > *,
  .status-grid > *,
  .footer-links > *{
    min-width: 0;
  }

  h1, h2, h3, h4, h5, h6,
  p, li, dt, dd, th, td,
  .small, .note, .lead, .hero-kicker, .hero-sub, .hero-meta,
  .card-title, .feature h3, .feature p, .drawer-link, .shop-head h2,
  .faq-answer, .contact-copy, .recruit-note, .recruit-copy, .x-static-copy, .x-static-handle{
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
    hyphens: none !important;
  }

  body.page-top main > .section,
  body.page-top .site-footer{
    overflow: hidden;
  }

  body.page-top main > .section > .container,
  body.page-top .site-footer > .container{
    padding-inline: 16px !important;
  }

  body.page-top main > .section:first-of-type .grid.cols-2 > .reveal:first-child,
  body.page-top main > .section:first-of-type .grid.cols-3,
  body.page-top .status-panel,
  body.page-top .site-footer .reveal{
    width: 100%;
    max-width: 21.75rem;
    margin-inline: auto;
  }

  body.page-top main > .section:first-of-type .grid.cols-2 > .reveal:last-child{
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  body.page-top .intro-title{
    max-width: 10.6em;
    margin-inline: auto;
    font-size: clamp(1.5rem, 7vw, 1.88rem) !important;
    line-height: 1.18 !important;
    letter-spacing: .02em !important;
  }
  body.page-top .intro-title span{
    display: block;
  }
  body.page-top .intro-copy{
    max-width: 18.75em;
    margin-inline: auto;
    font-size: .89rem;
    line-height: 1.76;
  }
  body.page-top .intro-copy span{
    display: inline-block;
    white-space: nowrap;
  }

  body.page-top .feature{
    width: 100%;
    max-width: 21rem;
    margin-inline: auto;
    padding-inline: 8px;
  }
  body.page-top .feature h3{
    max-width: 12em;
    margin-inline: auto;
    font-size: clamp(1.18rem, 6.1vw, 1.4rem);
    line-height: 1.38;
  }
  body.page-top .feature p{
    max-width: 18.8em;
    margin-inline: auto;
    font-size: .88rem;
    line-height: 1.82;
  }

  body.page-top .status-panel{
    padding: 18px 14px;
  }
  body.page-top .status-panel .kicker{
    max-width: 100%;
  }
  body.page-top .status-panel .status-grid{
    width: 100%;
  }
  body.page-top .status-panel .status-row{
    width: 100%;
    min-width: 0;
  }
  body.page-top .status-panel .status-tags{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
  }
  body.page-top .status-panel .status-val{
    max-width: 18.5em;
    margin-inline: auto;
  }

  body.page-top .hero-cta .btn + .btn,
  body.page-top main > .section:first-of-type .btn + .btn{
    margin-left: 0 !important;
  }

  body.page-top .site-footer{
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }
  body.page-top .site-footer .reveal{
    max-width: 21.9rem;
  }
  body.page-top .site-footer h3,
  body.page-top .site-footer h4,
  body.page-top .site-footer .kicker,
  body.page-top .site-footer p,
  body.page-top .site-footer .small,
  body.page-top .site-footer .footer-links,
  body.page-top .site-footer .table{
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }
  body.page-top .site-footer .small,
  body.page-top .site-footer p{
    font-size: .8rem;
    line-height: 1.85;
  }
  body.page-top .site-footer .footer-links{
    justify-content: center;
    gap: 6px 12px;
  }
  body.page-top .site-footer .footer-links a{
    font-size: .82rem;
    line-height: 1.45;
  }
  body.page-top .site-footer .footer-legal{
    max-width: 22em;
    margin-inline: auto;
    font-size: .76rem !important;
    line-height: 1.8 !important;
  }
  body.page-top .site-footer .footer-legal span{
    display: inline;
  }
  body.page-top .site-footer .table{
    max-width: 18rem;
  }
  body.page-top .site-footer .table th,
  body.page-top .site-footer .table td{
    padding: 10px 0;
  }

  body.page-top .small.mt-1,
  body.page-top .small.mt-05{
    max-width: 21em;
    margin-inline: auto;
  }
}


/* --- v18 mobile fit pass: page-by-page width cleanup --- */
@media (max-width: 640px){
  :root{
    --gutter: 16px;
  }

  html, body, main, .section, .site-footer{
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  body{
    padding-top: 68px !important;
  }

  .container,
  .measure{
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 16px !important;
    margin-inline: auto !important;
  }

  .section{
    padding: 48px 0 !important;
  }

  .grid,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .footer-grid,
  .contact-grid,
  .access-grid,
  .faq-grid,
  .pricing-grid,
  .point-board-grid,
  .recruit-illust-card{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .grid > *,
  .footer-grid > *,
  .contact-grid > *,
  .access-grid > *,
  .faq-grid > *,
  .pricing-grid > *,
  .section > .container > *,
  .card,
  .card.pad,
  .card-big,
  .cashless-note,
  .status-panel,
  .point-board,
  .map-embed,
  .route-map,
  .quest-log,
  .recipe,
  .embed-box,
  .recruit-illust-card,
  .recruit-illust-copy,
  .recruit-illust-figure,
  .faq-list,
  .faq-item,
  .x-static-card,
  .x-direct-embed,
  .embed-x-live,
  .embed-box.embed-x-live,
  .contact-grid > div,
  .grid.cols-2 > div,
  .grid.cols-3 > div{
    width: 100% !important;
    max-width: 22rem !important;
    margin-inline: auto !important;
    min-width: 0 !important;
  }

  h1, h2, h3, h4, h5, h6,
  .hero-title,
  .card-title,
  .head h2,
  .shop-head h2,
  .section h2,
  .section h3,
  .point-board-title,
  .recruit-illust-copy h2,
  .site-footer h3,
  .site-footer h4{
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
    text-wrap: balance !important;
    text-align: center !important;
    margin-inline: auto !important;
  }

  p, li, dt, dd, th, td,
  .small, .note, .lead, .hero-kicker, .hero-sub, .hero-meta,
  .card-meta, .shop-lead, .faq-answer, .faq-a p,
  .contact-copy, .recruit-note, .recruit-copy,
  .x-static-copy, .x-static-handle, .point-text,
  .map-hints li, .quest-step p, .quest-step h3{
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-break: strict !important;
    white-space: normal !important;
    hyphens: none !important;
    text-wrap: pretty;
    text-align: center !important;
    margin-inline: auto !important;
  }

  .kicker,
  .hero-kicker,
  .shop-kicker,
  .point-board-head,
  .section .head,
  .footer-links,
  .map-actions,
  .hero-cta,
  .x-static-actions,
  .recruit-illust-points{
    justify-content: center !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .card.pad,
  .cashless-note,
  .point-panel,
  .faq-item,
  .status-panel,
  .embed-box,
  .recruit-illust-card{
    padding: 18px 16px !important;
  }

  .card-list,
  .point-list,
  .map-hints{
    padding: 0 !important;
    margin-inline: auto !important;
  }

  .card-list li,
  .map-hints li{
    max-width: 19rem !important;
    padding-inline: 4px !important;
  }

  .card-list li::before,
  .map-hints li::before{
    content: none !important;
    display: none !important;
  }

  .faq-item summary{
    padding: 16px 48px 16px 16px !important;
    text-align: center !important;
  }
  .faq-item .faq-a{
    padding: 0 16px 16px !important;
  }

  .table,
  body.page-access .table,
  body.page-recruit .table,
  .site-footer .table{
    display: block !important;
    width: min(100%, 19rem) !important;
    max-width: 19rem !important;
    overflow: visible !important;
    margin-inline: auto !important;
  }
  .table tbody,
  .table tr,
  body.page-access .table tr,
  body.page-recruit .table tr,
  .site-footer .table tr{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding: 10px 0 !important;
    width: 100% !important;
  }
  .table th,
  .table td,
  body.page-access .table th,
  body.page-access .table td,
  body.page-recruit .table th,
  body.page-recruit .table td,
  .site-footer .table th,
  .site-footer .table td{
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* footer */
  .site-footer{
    padding: 44px 0 calc(124px + env(safe-area-inset-bottom)) !important;
  }
  .site-footer .container{
    padding-inline: 16px !important;
  }
  .site-footer .reveal{
    width: 100% !important;
    max-width: 22rem !important;
    margin-inline: auto !important;
  }
  .site-footer .kicker,
  .site-footer h3,
  .site-footer h4,
  .site-footer p,
  .site-footer .small,
  .site-footer .note,
  .site-footer .table{
    width: 100% !important;
    max-width: 21rem !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .site-footer .small,
  .site-footer p{
    font-size: .82rem !important;
    line-height: 1.9 !important;
  }
  .site-footer .footer-links{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
    width: 100% !important;
    max-width: 21rem !important;
    margin-inline: auto !important;
  }
  .site-footer .footer-links a{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 6px !important;
    font-size: .84rem !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    text-align: center !important;
  }
  .site-footer .small.m0,
  .site-footer .footer-legal,
  .site-footer .small.mt-05,
  .site-footer .small.mt-1{
    max-width: 20.75rem !important;
    text-align: center !important;
  }

  /* index */
  body.page-top .intro-title,
  body.page-top .intro-copy,
  body.page-top .feature,
  body.page-top .status-panel,
  body.page-top .site-footer .reveal,
  body.page-top .site-footer .small.m0{
    max-width: 21rem !important;
  }

  /* concept */
  body.page-concept .hero-title,
  body.page-concept .hero-sub,
  body.page-concept .grid.cols-2 > *,
  body.page-concept .recipe,
  body.page-concept .card.pad,
  body.page-concept .media{
    max-width: 21.75rem !important;
  }
  body.page-concept .card-list li,
  body.page-concept .card-meta,
  body.page-concept .reveal > p{
    max-width: 19rem !important;
  }

  /* system */
  body.page-system .shop-ui,
  body.page-system .cashless-note,
  body.page-system .point-board,
  body.page-system .grid.cols-2 > *,
  body.page-system .card.pad{
    max-width: 21.75rem !important;
  }
  body.page-system .shop-head{
    display: grid !important;
    gap: 10px !important;
    justify-items: center !important;
    text-align: center !important;
  }
  body.page-system .shop-kicker{
    writing-mode: horizontal-tb !important;
    transform: none !important;
    letter-spacing: .22em !important;
    font-size: .82rem !important;
    text-align: center !important;
  }
  body.page-system .shop-lead,
  body.page-system .cashless-note .card-meta,
  body.page-system .point-board-copy,
  body.page-system .small.mt-1,
  body.page-system .card-list li,
  body.page-system .point-text{
    max-width: 19rem !important;
  }
  body.page-system .point-board-title{
    max-width: 10.8em !important;
    font-size: clamp(1.55rem, 7.6vw, 2rem) !important;
  }
  body.page-system .point-badges{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 18.5rem !important;
    margin-inline: auto !important;
  }
  body.page-system .point-badge{
    justify-content: center !important;
  }
  body.page-system .point-panel-title,
  body.page-system .point-list li{
    text-align: center !important;
    justify-content: center !important;
  }
  body.page-system .point-list li{
    align-items: center !important;
  }

  /* access */
  body.page-access .quest-log,
  body.page-access .route-map,
  body.page-access .map-embed,
  body.page-access .grid.cols-2 > *,
  body.page-access .card.pad{
    max-width: 21.75rem !important;
  }
  body.page-access .quest-step{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.page-access .quest-step::before,
  body.page-access .quest-check{
    display: none !important;
  }
  body.page-access .route-map .small,
  body.page-access .map-embed .small,
  body.page-access .map-embed p,
  body.page-access .card .small,
  body.page-access .card-list li,
  body.page-access .note-terminal{
    max-width: 19rem !important;
  }
  body.page-access .route-label{
    font-size: 10px !important;
    letter-spacing: .16em !important;
  }
  body.page-access .map-frame{
    width: 100% !important;
    max-width: 21rem !important;
    aspect-ratio: 1 / 1 !important;
  }
  body.page-access .map-actions .btn{
    width: 100% !important;
    max-width: 18.5rem !important;
  }

  /* cast */
  body.page-cast .head,
  body.page-cast .head .lead,
  body.page-cast .grid.cols-2 > *,
  body.page-cast .x-static-card,
  body.page-cast .embed-box,
  body.page-cast .card.pad{
    max-width: 21.75rem !important;
  }
  body.page-cast .head .lead,
  body.page-cast .x-static-handle,
  body.page-cast .small.mt-1,
  body.page-cast .x-static-actions{
    max-width: 19rem !important;
  }
  body.page-cast .embed-x-live,
  body.page-cast .x-live-frame{
    width: 100% !important;
    max-width: 100% !important;
    min-height: 620px !important;
    height: 620px !important;
  }

  /* faq */
  body.page-faq .grid.cols-2 > *,
  body.page-faq .faq-list,
  body.page-faq .card.pad,
  body.page-faq .faq-item{
    max-width: 21.75rem !important;
  }
  body.page-faq .faq-a p,
  body.page-faq .note-terminal,
  body.page-faq .hero-sub,
  body.page-faq .small.mt-1{
    max-width: 19rem !important;
  }

  /* contact */
  body.page-contact .grid.cols-2 > *,
  body.page-contact .grid.cols-3 > *,
  body.page-contact .map-embed,
  body.page-contact .card.pad{
    max-width: 21.75rem !important;
  }
  body.page-contact .card-title,
  body.page-contact .card-meta,
  body.page-contact .small,
  body.page-contact .measure,
  body.page-contact .map-hints li{
    max-width: 19rem !important;
  }
  body.page-contact .grid.cols-3 .grid.cols-2{
    grid-template-columns: 1fr !important;
  }
  body.page-contact .map-frame{
    width: 100% !important;
    max-width: 21rem !important;
    aspect-ratio: 1 / 1 !important;
  }

  /* recruit */
  body.page-recruit .recruit-illust-card,
  body.page-recruit .grid.cols-2 > *,
  body.page-recruit .card.pad{
    max-width: 21.75rem !important;
  }
  body.page-recruit .recruit-illust-copy h2,
  body.page-recruit .recruit-illust-copy .card-meta,
  body.page-recruit .recruit-illust-points,
  body.page-recruit .card-list li,
  body.page-recruit .card-meta,
  body.page-recruit .small{
    max-width: 19rem !important;
  }
  body.page-recruit .recruit-illust-points{
    display: grid !important;
    gap: 8px !important;
  }
  body.page-recruit .recruit-illust-figure img{
    width: min(100%, 260px) !important;
  }
}

/* --- v19 targeted mobile fit: concept / system / cast / recruit --- */
@media (max-width: 640px){
  /* shared narrowed cards for the remaining overflow sections */
  body.page-concept .beginners-grid,
  body.page-system .payments-grid,
  body.page-cast .cast-feed-grid,
  body.page-recruit .work-style-card,
  body.page-recruit .recruit-fit-card{
    width: 100% !important;
    max-width: 20.25rem !important;
    margin-inline: auto !important;
  }

  body.page-concept .beginners-grid > *,
  body.page-system .payments-grid > *,
  body.page-system .payment-supplement,
  body.page-system .point-board,
  body.page-cast .cast-feed-head,
  body.page-cast .cast-feed-grid > *,
  body.page-recruit .work-style-card,
  body.page-recruit .recruit-fit-card{
    width: 100% !important;
    max-width: 20.25rem !important;
    min-width: 0 !important;
    margin-inline: auto !important;
  }

  body.page-concept .rules-panel,
  body.page-system .payments-note,
  body.page-system .payment-supplement,
  body.page-system .point-board,
  body.page-cast .x-static-card,
  body.page-recruit .work-style-card,
  body.page-recruit .recruit-fit-card{
    padding: 18px 14px !important;
  }

  /* normalize long Japanese copy around the targeted sections */
  body.page-concept .beginners-panel > p,
  body.page-concept .beginners-panel .card-list li,
  body.page-concept .rules-panel .card-list li,
  body.page-concept .rules-panel .small,
  body.page-system .payments-methods > p,
  body.page-system .payments-note .card-meta,
  body.page-system .payment-supplement .card-list li,
  body.page-system .point-board-copy,
  body.page-system .point-text,
  body.page-cast .cast-feed-head .lead,
  body.page-cast .x-static-handle,
  body.page-recruit .recruit-illust-copy .card-meta,
  body.page-recruit .recruit-fit-card .card-list li,
  body.page-recruit .recruit-fit-card .small{
    width: 100% !important;
    max-width: 16.75rem !important;
    margin-inline: auto !important;
    font-size: .94rem !important;
    line-height: 1.88 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    line-break: strict !important;
    text-align: center !important;
  }

  body.page-concept .beginners-panel h2,
  body.page-concept .rules-panel .card-title,
  body.page-system .payments-methods h2,
  body.page-system .payments-note .card-title,
  body.page-system .payment-supplement .card-title,
  body.page-system .point-board-title,
  body.page-cast .cast-feed-head h2,
  body.page-recruit .recruit-illust-copy h2,
  body.page-recruit .recruit-fit-card .card-title{
    width: 100% !important;
    margin-inline: auto !important;
    line-height: 1.24 !important;
    letter-spacing: .02em !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  body.page-concept .beginners-panel h2,
  body.page-concept .rules-panel .card-title,
  body.page-system .payments-methods h2,
  body.page-system .payments-note .card-title,
  body.page-system .payment-supplement .card-title,
  body.page-recruit .recruit-fit-card .card-title{
    max-width: 9.8em !important;
    font-size: clamp(1.34rem, 6.6vw, 1.82rem) !important;
  }

  body.page-system .point-board-title{
    max-width: 9.2em !important;
    font-size: clamp(1.26rem, 6.1vw, 1.68rem) !important;
  }

  body.page-cast .cast-feed-head h2{
    max-width: 10em !important;
    font-size: clamp(1.72rem, 8.2vw, 2.3rem) !important;
  }

  body.page-recruit .recruit-illust-copy h2{
    max-width: 8.9em !important;
    font-size: clamp(1.36rem, 6.8vw, 1.9rem) !important;
  }

  /* Concept: 初めての方へ / ルール */
  body.page-concept .beginners-grid{
    gap: 16px !important;
  }
  body.page-concept .beginners-panel,
  body.page-concept .rules-panel{
    text-align: center !important;
  }
  body.page-concept .beginners-panel .card-list,
  body.page-concept .rules-panel .card-list{
    width: 100% !important;
    max-width: 16.75rem !important;
    gap: 8px !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
  }
  body.page-concept .beginners-panel .card-list li,
  body.page-concept .rules-panel .card-list li{
    padding-left: 0 !important;
  }
  body.page-concept .beginners-panel .card-list li::before,
  body.page-concept .rules-panel .card-list li::before{
    content: none !important;
    display: none !important;
  }

  /* System: 支払い方法 / 補足 / ポイント特典 */
  body.page-system .payments-grid{
    gap: 16px !important;
  }
  body.page-system .payments-methods,
  body.page-system .payments-note,
  body.page-system .payment-supplement,
  body.page-system .point-board{
    text-align: center !important;
  }
  body.page-system .payments-methods .card-list,
  body.page-system .payment-supplement .card-list{
    width: 100% !important;
    max-width: 16.75rem !important;
    gap: 8px !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
  }
  body.page-system .payments-methods .card-list li,
  body.page-system .payment-supplement .card-list li{
    padding-left: 0 !important;
  }
  body.page-system .payments-methods .card-list li::before,
  body.page-system .payment-supplement .card-list li::before{
    content: none !important;
    display: none !important;
  }
  body.page-system .payments-note .card-meta br{
    display: block !important;
  }
  body.page-system .payment-supplement .hero-cta{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 16.75rem !important;
    margin: 16px auto 0 !important;
  }
  body.page-system .payment-supplement .hero-cta .btn{
    width: 100% !important;
  }
  body.page-system .point-board-copy{
    max-width: 16.25rem !important;
    font-size: .92rem !important;
  }
  body.page-system .point-badges{
    width: 100% !important;
    max-width: 16.75rem !important;
    margin: 14px auto 0 !important;
    gap: 8px !important;
  }
  body.page-system .point-badge{
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    font-size: .93rem !important;
    padding: 10px 12px !important;
  }
  body.page-system .point-board-grid{
    gap: 14px !important;
  }
  body.page-system .point-panel{
    padding: 16px 14px !important;
  }
  body.page-system .point-panel-title{
    width: 100% !important;
    max-width: 16.75rem !important;
    margin: 0 auto 12px !important;
    justify-content: center !important;
    font-size: .98rem !important;
  }
  body.page-system .point-list{
    width: 100% !important;
    max-width: 16.75rem !important;
    margin-inline: auto !important;
  }
  body.page-system .point-list li{
    padding: 12px !important;
  }
  body.page-system .point-mark{
    min-width: 60px !important;
    font-size: .76rem !important;
  }
  body.page-system .point-text{
    font-size: .92rem !important;
    line-height: 1.72 !important;
  }

  /* Cast: CAST FEED 周辺 */
  body.page-cast .cast-feed-head{
    max-width: 19.25rem !important;
  }
  body.page-cast .cast-feed-head .lead{
    max-width: 16.5rem !important;
  }
  body.page-cast .cast-feed-grid{
    gap: 14px !important;
  }
  body.page-cast .x-static-card{
    max-width: 19.75rem !important;
    gap: 14px !important;
  }
  body.page-cast .x-static-handle,
  body.page-cast .card.pad > .small.mt-1,
  body.page-cast .card.pad > .kicker{
    max-width: 16.5rem !important;
  }
  body.page-cast .x-static-actions{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 16.75rem !important;
    margin-inline: auto !important;
  }
  body.page-cast .x-static-actions .btn{
    width: 100% !important;
  }
  body.page-cast .embed-x-live,
  body.page-cast .x-live-frame{
    width: 100% !important;
    max-width: 100% !important;
    min-height: 560px !important;
    height: 560px !important;
  }

  /* Recruit: WORK STYLE / 向いてる人 */
  body.page-recruit .work-style-card,
  body.page-recruit .recruit-fit-card{
    text-align: center !important;
  }
  body.page-recruit .recruit-illust-copy .card-meta{
    max-width: 16.4rem !important;
  }
  body.page-recruit .recruit-illust-points{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 16.5rem !important;
    margin-inline: auto !important;
  }
  body.page-recruit .recruit-illust-points span{
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 12px !important;
    font-size: .92rem !important;
  }
  body.page-recruit .recruit-illust-figure img{
    width: min(100%, 220px) !important;
  }
  body.page-recruit .recruit-fit-card .card-list,
  body.page-recruit .recruit-fit-card ol.card-list{
    width: 100% !important;
    max-width: 16.5rem !important;
    gap: 8px !important;
    margin-inline: auto !important;
    padding: 0 !important;
  }
  body.page-recruit .recruit-fit-card .card-list li,
  body.page-recruit .recruit-fit-card ol.card-list li{
    padding-left: 0 !important;
  }
  body.page-recruit .recruit-fit-card .card-list li::before,
  body.page-recruit .recruit-fit-card ol.card-list li::before{
    content: none !important;
    display: none !important;
  }
  body.page-recruit .recruit-fit-card hr.sep{
    width: 100% !important;
    max-width: 16rem !important;
    margin: 16px auto !important;
  }
}


/* --- v20 final mobile fit: opaque drawer + targeted section narrowing --- */
.sp-break{ display:none; }

@media (max-width: 640px){
  br.sp-break{ display:block; }

  body{
    padding-top: 70px !important;
  }

  main{
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }

  .menu-btn{
    width: 52px !important;
    height: 52px !important;
    margin: -6px !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .site-header{
    background: rgba(6,5,4,.98) !important;
    backdrop-filter: blur(0) !important;
  }

  body.is-menu-open{
    overflow: hidden !important;
  }

  body.is-menu-open::after{
    content: "";
    position: fixed;
    inset: 70px 0 0 0;
    background: rgba(6,5,4,.98);
    z-index: 48;
  }

  .nav-drawer{
    top: 70px !important;
    height: calc(100dvh - 70px) !important;
    background: rgba(6,5,4,.995) !important;
    backdrop-filter: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav-drawer .drawer-inner{
    min-height: 100%;
    padding: 20px 18px calc(28px + env(safe-area-inset-bottom)) !important;
    justify-items: center !important;
    align-content: start !important;
    gap: 12px !important;
  }

  .drawer-link{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(100%, 18.5rem) !important;
    min-height: 52px !important;
    padding: 14px 18px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.025) !important;
  }

  .drawer-row{
    width: min(100%, 18.5rem) !important;
    margin-inline: auto !important;
  }

  /* Use natural Japanese wrapping in the targeted mobile sections */
  body.page-concept .beginners-panel > p,
  body.page-concept .beginners-panel .card-list li,
  body.page-concept .rules-panel .card-list li,
  body.page-concept .rules-panel .small,
  body.page-system .payments-methods > p,
  body.page-system .payments-note .card-meta,
  body.page-system .payment-supplement .card-list li,
  body.page-system .point-board-copy,
  body.page-system .point-text,
  body.page-cast .cast-feed-head .lead,
  body.page-cast .x-static-handle,
  body.page-recruit .recruit-illust-copy .card-meta,
  body.page-recruit .recruit-fit-card .card-list li,
  body.page-recruit .recruit-fit-card .small{
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
    text-wrap: pretty !important;
  }

  /* CONCEPT */
  body.page-concept .beginners-grid,
  body.page-concept .beginners-grid > *,
  body.page-concept .rules-panel{
    max-width: 19rem !important;
  }

  body.page-concept .beginners-panel,
  body.page-concept .rules-panel{
    padding: 18px 12px !important;
  }

  body.page-concept .beginners-panel h2,
  body.page-concept .rules-panel .card-title{
    max-width: 8.6em !important;
    font-size: clamp(1.28rem, 6.1vw, 1.7rem) !important;
  }

  body.page-concept .beginners-panel > p,
  body.page-concept .beginners-panel .card-list li,
  body.page-concept .rules-panel .card-list li,
  body.page-concept .rules-panel .small{
    max-width: 15rem !important;
    font-size: .9rem !important;
    line-height: 1.82 !important;
  }

  body.page-concept .beginners-panel .card-list,
  body.page-concept .rules-panel .card-list{
    max-width: 15rem !important;
  }

  /* SYSTEM */
  body.page-system .payments-grid,
  body.page-system .payments-grid > *,
  body.page-system .payment-supplement,
  body.page-system .point-board{
    max-width: 19rem !important;
  }

  body.page-system .payments-methods,
  body.page-system .payments-note,
  body.page-system .payment-supplement,
  body.page-system .point-board{
    padding: 18px 12px !important;
  }

  body.page-system .payments-methods h2,
  body.page-system .payments-note .card-title,
  body.page-system .payment-supplement .card-title{
    max-width: 8.6em !important;
    font-size: clamp(1.24rem, 5.9vw, 1.65rem) !important;
  }

  body.page-system .payments-methods > p,
  body.page-system .payments-note .card-meta,
  body.page-system .payment-supplement .card-list li{
    max-width: 14.8rem !important;
    font-size: .88rem !important;
    line-height: 1.82 !important;
  }

  body.page-system .payments-methods .card-list,
  body.page-system .payment-supplement .card-list{
    max-width: 14.8rem !important;
  }

  body.page-system .payment-supplement .hero-cta{
    max-width: 14.8rem !important;
  }

  body.page-system .point-board-title{
    max-width: 8.2em !important;
    font-size: clamp(1.1rem, 5.3vw, 1.45rem) !important;
    line-height: 1.28 !important;
  }

  body.page-system .point-board-copy{
    max-width: 14.4rem !important;
    font-size: .86rem !important;
    line-height: 1.78 !important;
  }

  body.page-system .point-badges{
    max-width: 14.8rem !important;
    gap: 8px !important;
  }

  body.page-system .point-badge{
    font-size: .88rem !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
  }

  body.page-system .point-board-grid{
    max-width: 14.8rem !important;
    margin-inline: auto !important;
    gap: 12px !important;
  }

  body.page-system .point-panel{
    padding: 14px 12px !important;
  }

  body.page-system .point-panel-title,
  body.page-system .point-list,
  body.page-system .point-list li{
    max-width: 14.4rem !important;
  }

  body.page-system .point-panel-title{
    font-size: .94rem !important;
    line-height: 1.6 !important;
  }

  body.page-system .point-list li{
    padding: 11px 10px !important;
  }

  body.page-system .point-mark{
    min-width: 56px !important;
    font-size: .72rem !important;
  }

  body.page-system .point-text{
    max-width: 10.5rem !important;
    font-size: .88rem !important;
    line-height: 1.68 !important;
  }

  /* CAST */
  body.page-cast .cast-feed-head,
  body.page-cast .cast-feed-grid,
  body.page-cast .cast-feed-grid > *,
  body.page-cast .x-static-card{
    max-width: 19rem !important;
  }

  body.page-cast .cast-feed-head{
    padding-inline: 0 !important;
  }

  body.page-cast .cast-feed-head h2{
    max-width: 8.6em !important;
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.14 !important;
  }

  body.page-cast .cast-feed-head .lead{
    max-width: 14.8rem !important;
    font-size: .88rem !important;
    line-height: 1.82 !important;
  }

  body.page-cast .cast-feed-head .lead br.sp-break{
    display: block !important;
  }

  body.page-cast .cast-feed-grid{
    gap: 12px !important;
  }

  body.page-cast .x-static-card{
    padding: 16px 12px !important;
  }

  body.page-cast .x-static-handle,
  body.page-cast .x-static-actions{
    max-width: 14.8rem !important;
  }

  /* RECRUIT */
  body.page-recruit .work-style-card,
  body.page-recruit .recruit-fit-card{
    max-width: 19rem !important;
    padding: 18px 12px !important;
  }

  body.page-recruit .recruit-illust-copy h2,
  body.page-recruit .recruit-fit-card .card-title{
    max-width: 8.2em !important;
    font-size: clamp(1.22rem, 5.8vw, 1.62rem) !important;
    line-height: 1.22 !important;
  }

  body.page-recruit .recruit-illust-copy .card-meta,
  body.page-recruit .recruit-fit-card .card-list li,
  body.page-recruit .recruit-fit-card .small{
    max-width: 14.8rem !important;
    font-size: .88rem !important;
    line-height: 1.82 !important;
  }

  body.page-recruit .recruit-illust-points{
    max-width: 14.8rem !important;
  }

  body.page-recruit .recruit-illust-points span{
    font-size: .86rem !important;
    padding: 8px 10px !important;
  }

  body.page-recruit .recruit-illust-figure img{
    width: min(100%, 200px) !important;
  }

  body.page-recruit .recruit-fit-card .card-list,
  body.page-recruit .recruit-fit-card ol.card-list{
    max-width: 14.8rem !important;
  }
}


/* --- v21 touch bubble hint: speech bubble on upper-left --- */
.hero-touch-hint .touch-label{
  display:inline-block;
  font-size:.64rem;
  letter-spacing:.08em;
  text-transform:none;
  color: rgba(243,241,235,.74);
}

body.page-top .hero-touch-hint{
  --touch-bubble-fill: linear-gradient(180deg, rgba(12,11,11,.94), rgba(12,11,11,.86));
  top: -10px !important;
  left: 18px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  gap: 8px !important;
  padding: 10px 14px 10px 12px !important;
  border-radius: 18px !important;
  background: var(--touch-bubble-fill) !important;
  border: 1px solid rgba(243,241,235,.14) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-top .hero-touch-hint::after{
  content: "";
  position: absolute;
  left: 18px;
  top: calc(100% - 1px);
  width: 14px;
  height: 14px;
  background: rgba(12,11,11,.9);
  border-right: 1px solid rgba(243,241,235,.14);
  border-bottom: 1px solid rgba(243,241,235,.14);
  border-bottom-right-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 10px 10px 24px rgba(0,0,0,.14);
}

body.page-top .hero-touch-hint .touch-mark{
  width: auto !important;
  height: auto !important;
  font-size: .82rem !important;
  line-height: 1 !important;
}

body.page-top .hero-touch-hint .touch-word{
  transform: none !important;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
}

@media (max-width: 640px){
  body.page-top .hero-touch-hint{
    top: -8px !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    gap: 6px !important;
    padding: 8px 11px 8px 10px !important;
    border-radius: 16px !important;
  }

  body.page-top .hero-touch-hint::after{
    left: 14px !important;
    width: 12px !important;
    height: 12px !important;
  }

  body.page-top .hero-touch-hint .touch-label{
    font-size: .54rem !important;
  }

  body.page-top .hero-touch-hint .touch-word{
    font-size: .62rem !important;
    letter-spacing: .14em !important;
  }

  body.page-top .hero-touch-hint .touch-mark{
    font-size: .74rem !important;
  }
}


/* --- v22 targeted mobile fixes: note wrap + new X URL + clearer touch bubble --- */
body.page-top .hero-touch-hint{
  gap: 6px !important;
  padding: 9px 12px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(246,242,234,.96), rgba(231,224,211,.94)) !important;
  color: #17130f !important;
  border: 1px solid rgba(24,18,12,.18) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.24), 0 2px 0 rgba(255,255,255,.12) inset !important;
}
body.page-top .hero-touch-hint::after{
  top: calc(100% - 1px) !important;
  left: 16px !important;
  width: 16px !important;
  height: 12px !important;
  background: rgba(234,227,215,.95) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}
body.page-top .hero-touch-hint .touch-mark{ display:none !important; }
body.page-top .hero-touch-hint .touch-label{
  font-size: .66rem !important;
  letter-spacing: .04em !important;
  color: rgba(23,19,15,.78) !important;
}
body.page-top .hero-touch-hint .touch-word{
  font-size: .76rem !important;
  letter-spacing: .10em !important;
  color: #16120d !important;
  font-weight: 900 !important;
}

@media (max-width: 640px){
  body.page-top .hero-touch-hint{
    top: -10px !important;
    left: 10px !important;
    padding: 7px 10px !important;
    gap: 5px !important;
    border-radius: 14px !important;
  }
  body.page-top .hero-touch-hint::after{
    left: 12px !important;
    width: 14px !important;
    height: 10px !important;
  }
  body.page-top .hero-touch-hint .touch-label{
    font-size: .56rem !important;
  }
  body.page-top .hero-touch-hint .touch-word{
    font-size: .66rem !important;
    letter-spacing: .08em !important;
  }

  /* system: note / payment / point-card wrap */
  body.page-system .payments-grid,
  body.page-system .payments-grid > *,
  body.page-system .payment-supplement,
  body.page-system .point-board{
    max-width: 18.25rem !important;
  }
  body.page-system .payments-methods,
  body.page-system .payments-note,
  body.page-system .payment-supplement,
  body.page-system .point-board{
    padding: 18px 12px !important;
  }
  body.page-system .payments-methods > p,
  body.page-system .payments-note .card-meta,
  body.page-system .payment-supplement .card-list li,
  body.page-system .card.pad > .small.mt-1,
  body.page-system .point-board-copy,
  body.page-system .point-panel-title,
  body.page-system .point-text{
    max-width: 14.2rem !important;
    font-size: .84rem !important;
    line-height: 1.8 !important;
    margin-inline: auto !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }
  body.page-system .payments-methods .card-list,
  body.page-system .payment-supplement .card-list,
  body.page-system .point-badges,
  body.page-system .point-board-grid{
    max-width: 14.4rem !important;
    margin-inline: auto !important;
  }
  body.page-system .point-badge,
  body.page-system .point-list li{
    max-width: 14.4rem !important;
    margin-inline: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* faq important note card */
  body.page-faq .grid.cols-2 > .reveal:last-child .card.pad{
    max-width: 18.25rem !important;
    padding: 18px 12px !important;
  }
  body.page-faq .grid.cols-2 > .reveal:last-child .note-terminal{
    max-width: 14.2rem !important;
    margin-inline: auto !important;
    font-size: .84rem !important;
    line-height: 1.8 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  /* footer / access opening notes under schedule */
  body.page-access .table + .small.mt-05,
  body.page-access .table + .small.mt-05 + .small.mt-1,
  .site-footer .table + .small.mt-05,
  .site-footer .table + .small.mt-05 + .small.mt-1{
    max-width: 14.2rem !important;
    margin-inline: auto !important;
    font-size: .8rem !important;
    line-height: 1.82 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  /* cast lead stays within width after X url swap */
  body.page-cast .cast-feed-head,
  body.page-cast .cast-feed-grid,
  body.page-cast .cast-feed-grid > *{
    max-width: 18.5rem !important;
  }
  body.page-cast .cast-feed-head .lead,
  body.page-cast .x-static-handle,
  body.page-cast .x-static-actions{
    max-width: 14.4rem !important;
    margin-inline: auto !important;
  }
}

br.sp-only{display:none;}
@media (max-width: 640px){ br.sp-only{display:block;} }
