/* R18 ゲーム (18games.html) 専用 の見た目。共通の色・ボタンは css/base.css、年齢確認は css/age-gate.css (2026-10-15 ページ内から切り出し) */
/* ===== ゲームページ用トークン (base.css の night 系 + ネオン) ===== */
:root {
  --g-bg:    #0d0618;
  --g-bg-2:  #160a28;
  --g-panel: rgba(30,16,52,.78);
  --g-neon:  #ff4f9a;
  --g-neon-2:#b69bff;
  --g-cyan:  #5ee7ff;
  --g-line:  rgba(214,190,255,.18);
}
body { background: var(--g-bg); color: var(--night-text); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 35% at 0% 0%, rgba(255,79,154,.16), transparent 70%),
    radial-gradient(45% 35% at 100% 40%, rgba(135,87,255,.18), transparent 70%),
    radial-gradient(45% 35% at 0% 100%, rgba(94,231,255,.07), transparent 70%);
}


#r18-content { display: none; }
#r18-content.visible { display: block; }

/* ===== Header ===== */
.rh {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,6,24,.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--g-line);
}
.rh-inner { max-width: 1240px; height: 64px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rh-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rh-logo img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--pink); }
.rh-logo-name { font-family: var(--f-pop); font-size: 1.15rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.rh-logo-badge { padding: 2px 9px; border-radius: 6px; background: transparent; border: 1.5px solid var(--g-cyan); color: var(--g-cyan); font-family: var(--f-en); font-size: .66rem; font-weight: 700; letter-spacing: .14em; white-space: nowrap; box-shadow: 0 0 10px rgba(94,231,255,.35); }
.rh-nav { display: flex; align-items: center; gap: 4px; }
.rh-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 800; color: var(--night-muted); transition: color .2s, background-color .2s; white-space: nowrap; }
.rh-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.rh-nav a.rh-comics { color: #fff; border: 1.5px solid rgba(255,134,191,.5); }
.rh-nav a.rh-safe { border: 1.5px solid var(--g-line); }

/* ===== 共通: ゲームUI風パーツ ===== */
.g-sec { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.g-head { text-align: center; margin-bottom: clamp(30px, 5vw, 50px); }
.g-en {
  display: inline-block;
  font-family: var(--f-en); font-weight: 700; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1; letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,79,154,.9), 0 0 22px rgba(255,79,154,.55), 0 0 44px rgba(135,87,255,.45);
}
.g-en .dot { color: var(--g-cyan); text-shadow: 0 0 10px rgba(94,231,255,.9); }
.g-ja { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-size: .9rem; font-weight: 800; letter-spacing: .22em; color: var(--night-muted); }
.g-ja::before, .g-ja::after { content: ''; width: 22px; height: 2px; background: linear-gradient(90deg, var(--g-neon), var(--g-cyan)); box-shadow: 0 0 8px rgba(255,79,154,.8); }
.g-lead { margin-top: 14px; font-size: .92rem; color: var(--night-muted); word-break: auto-phrase; }

/* HUDフレーム (角カッコ付きのパネル) */
.hud {
  position: relative; border-radius: 20px;
  background: linear-gradient(160deg, rgba(42,23,66,.86), rgba(22,10,40,.9));
  border: 1px solid var(--g-line);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.hud::before, .hud::after {
  content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid var(--g-neon); filter: drop-shadow(0 0 6px rgba(255,79,154,.8));
}
.hud::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 20px 0 0 0; }
.hud::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 20px 0; border-color: var(--g-cyan); filter: drop-shadow(0 0 6px rgba(94,231,255,.8)); }

/* FANZA ボタン (購入導線) */
.btn-fanza {
  --sc: #b0002c; color: #fff;
  background: linear-gradient(115deg, #ff3d6e 0%, #e8004b 55%, #c4003c 100%);
  box-shadow: 0 4px 0 var(--sc), 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 30px -10px rgba(255,40,100,.75);
  flex-direction: column; gap: 1px; padding: 8px 26px; white-space: normal; text-align: center;
}
.btn-fanza:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 6px 0 var(--sc), 0 20px 34px -10px rgba(255,40,100,.85); }
.btn-fanza:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sc); }
.btn-fanza .bf-main { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; }
.btn-fanza .bf-sub { font-size: .7rem; font-weight: 700; opacity: .92; letter-spacing: .04em; }
.btn-fanza .bf-heart { width: 18px; height: 18px; flex-shrink: 0; }
.pr-note { font-size: .7rem; color: rgba(255,255,255,.5); font-weight: 700; }

.chip-g {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid var(--g-line); color: var(--night-text);
  font-size: .74rem; font-weight: 800; white-space: nowrap;
}
.chip-g b { color: var(--g-cyan); font-weight: 800; }

/* ===== HERO (ファーストビュー) ===== */
.hero { position: relative; overflow: hidden; min-height: min(760px, calc(100svh - 64px)); display: flex; align-items: center; border-bottom: 1px solid var(--g-line); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transform: scale(1.04); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13,6,24,.96) 0%, rgba(13,6,24,.72) 45%, rgba(13,6,24,.2) 100%),
    linear-gradient(0deg, rgba(13,6,24,1) 0%, transparent 30%);
}
.hero::after { /* スキャンライン */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px clamp(16px, 3vw, 40px); align-items: center; }
.hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.st-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 6px;
  background: rgba(255,79,154,.14); border: 1.5px solid var(--g-neon); color: #fff;
  font-family: var(--f-en); font-weight: 700; letter-spacing: .18em; font-size: .8rem;
  box-shadow: 0 0 16px rgba(255,79,154,.45);
}
.st-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--g-neon); box-shadow: 0 0 8px var(--g-neon); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-logo { width: 100%; max-width: 640px; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero-logo-h1 { margin: 0; line-height: 0; }
.hero-sub {
  display: inline-block; margin: 16px 0 6px; padding: 6px 16px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(135,87,255,.35), rgba(255,79,154,.25));
  border: 1px solid rgba(182,155,255,.45);
  font-weight: 800; font-size: clamp(.86rem, 2vw, 1.02rem); letter-spacing: .04em; word-break: auto-phrase;
}
.hero-catch { margin: 14px 0 22px; font-family: var(--f-pop); font-weight: 400; font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.6; letter-spacing: .04em; word-break: auto-phrase; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.hero-catch em { font-style: normal; color: var(--pink-2); text-shadow: 0 0 14px rgba(255,79,154,.7); }
.hero-cta { display: grid; gap: 10px; max-width: 440px; }
.hero-cta .btn-fanza { --bh: 64px; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.hero-chara { position: relative; align-self: end; height: min(640px, 78svh); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hero-chara::before { content: ''; position: absolute; left: 50%; bottom: 4%; width: 70%; height: 16%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,79,154,.55), transparent); filter: blur(10px); }
.hero-chara img, .hero-chara video { position: relative; flex: 1 1 0; min-height: 0; height: auto; width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0 24px rgba(255,79,154,.35)); }
.hero-chara video { display: none; }
.hero-chara.use-video video { display: block; }
.hero-chara.use-video img { display: none; }
.hero-bubble {
  position: relative; z-index: 3; flex: none; max-width: min(92%, 340px); margin: 0 auto 12px; text-align: center;
  padding: 10px 14px; border-radius: 16px;
  background: #fff; color: var(--plum); font-size: .84rem; font-weight: 800; line-height: 1.6;
  box-shadow: 0 10px 30px -10px rgba(255,79,154,.8); animation: bob 3s var(--ease) infinite;
}
.hero-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); font-family: var(--f-en); font-size: .7rem; letter-spacing: .3em; color: rgba(255,255,255,.55); }

/* ===== HOW TO PLAY ===== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: st; }
.step { overflow: hidden; display: flex; flex-direction: column; }
.step-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 19px 19px 0 0; background: var(--night-3); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,10,40,.95), transparent 55%); }
.step-no {
  position: absolute; z-index: 1; top: 12px; left: 12px; padding: 3px 12px; border-radius: 6px;
  background: rgba(13,6,24,.75); border: 1.5px solid var(--g-cyan); color: var(--g-cyan);
  font-family: var(--f-en); font-weight: 700; font-size: .8rem; letter-spacing: .16em;
}
.step-body { position: relative; padding: 0 20px 22px; margin-top: -26px; z-index: 1; }
.step-t { font-family: var(--f-pop); font-weight: 400; font-size: 1.3rem; line-height: 1.4; margin-bottom: 8px; }
.step-t em { font-style: normal; color: var(--pink-2); }
.step-d { font-size: .86rem; line-height: 1.85; color: var(--night-muted); word-break: auto-phrase; }
.step-arrow { display: none; }
.step:nth-child(3) .step-t { text-shadow: 0 0 14px rgba(255,79,154,.7); }

/* 7日間カレンダー */
.days-wrap { margin-top: clamp(40px, 6vw, 64px); padding: clamp(20px, 3vw, 32px); }
.days-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.days-title { font-family: var(--f-pop); font-weight: 400; font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
.days-title b { font-family: var(--f-en); font-size: 1.4em; color: var(--g-cyan); text-shadow: 0 0 12px rgba(94,231,255,.6); margin-right: 4px; }
.days-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--night-muted); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day {
  --heat: 1;
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 176px; padding: 12px 10px 12px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,79,154, calc(var(--heat) * .07)));
  border: 1px solid color-mix(in srgb, #ff4f9a calc(var(--heat) * 15%), rgba(214,190,255,.18));
}
.day-n { font-family: var(--f-en); font-weight: 700; font-size: .7rem; letter-spacing: .14em; color: var(--night-muted); }
.day-n b { display: block; font-size: 1.7rem; letter-spacing: .02em; line-height: 1; color: #fff; }
.day-t { font-size: .84rem; font-weight: 800; line-height: 1.5; word-break: auto-phrase; }
.day-d { font-size: .72rem; line-height: 1.6; color: var(--night-muted); font-weight: 700; word-break: auto-phrase; }
.heat { display: flex; gap: 2px; margin-top: auto; color: var(--g-neon); }
.heat svg { width: 14px; height: 14px; opacity: .22; }
.heat svg.on { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,79,154,.9)); }
.day--hot { border-color: var(--g-neon); box-shadow: 0 0 22px -6px rgba(255,79,154,.7) inset, 0 0 18px -8px rgba(255,79,154,.8); }
.day--hot .day-n b { color: var(--pink-2); text-shadow: 0 0 12px rgba(255,79,154,.8); }
.day-tag { align-self: flex-start; padding: 1px 8px; border-radius: 4px; background: var(--g-neon); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; }
.day--last { background: linear-gradient(180deg, rgba(135,87,255,.25), rgba(255,79,154,.3)); }
.days-note { margin-top: 14px; font-size: .74rem; color: rgba(255,255,255,.5); font-weight: 700; }

/* ===== CHARACTER ===== */
.chara { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.cv { position: relative; padding: 18px 18px 0; overflow: hidden; }
.cv::selection { background: transparent; }
.cv-stage {
  position: relative; height: min(600px, 70svh); display: flex; justify-content: center; align-items: flex-end;
  background:
    radial-gradient(60% 50% at 50% 60%, rgba(255,79,154,.22), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(135,87,255,.18));
  border-radius: 14px 14px 0 0; overflow: hidden;
}
.cv-stage::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(214,190,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(214,190,255,.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(0deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(0deg, #000, transparent 85%); }
.cv-stage img, .cv-stage video { position: relative; height: calc(100% - 160px); width: auto; max-width: 100%; object-fit: contain; object-position: bottom; transition: opacity .25s; }
.cv-stage video { display: none; }
.cv-stage.use-video video { display: block; }
.cv-stage.use-video img { display: none; }
.cv-stage.is-swap img, .cv-stage.is-swap video { opacity: 0; }
.cv-name { position: absolute; z-index: 2; left: 14px; top: 12px; display: flex; flex-direction: column; }
.cv-name b { font-family: var(--f-pop); font-weight: 400; font-size: 2rem; line-height: 1.1; color: #fff; text-shadow: 0 0 14px rgba(255,79,154,.8); }
.cv-name span { font-family: var(--f-en); font-weight: 700; letter-spacing: .3em; font-size: .72rem; color: var(--pink-2); }
.cv-bubble {
  position: absolute; z-index: 2; left: 0; right: 0; top: 64px; width: fit-content; max-width: min(340px, calc(100% - 24px)); margin: 0 auto; text-align: center;
  padding: 12px 15px; border-radius: 16px;
  background: #fff; color: var(--plum); font-size: .86rem; font-weight: 800; line-height: 1.65; word-break: auto-phrase;
  box-shadow: 0 12px 30px -12px rgba(255,79,154,.9);
  transition: transform .25s var(--ease), opacity .25s;
}
.cv-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 8px solid transparent; border-bottom: 0; border-top-color: #fff; }
.cv-bubble:empty { display: none; }
.cv-bubble.pop { animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cv-tap { position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 4px 12px; border-radius: var(--r-pill); background: rgba(13,6,24,.72); font-size: .72rem; font-weight: 800; color: var(--night-muted); white-space: nowrap; pointer-events: none; }
.cv-pane { padding: 14px 0 16px; }
.cv-label { font-family: var(--f-en); font-weight: 700; letter-spacing: .2em; font-size: .7rem; color: var(--night-muted); margin-bottom: 8px; }
.cv-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-btn {
  min-height: 40px; padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1.5px solid var(--g-line); color: var(--night-text);
  font-size: .82rem; font-weight: 800; transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.cv-btn:hover { border-color: var(--g-neon-2); }
.cv-btn[aria-pressed="true"] { background: rgba(255,79,154,.2); border-color: var(--g-neon); box-shadow: 0 0 14px -2px rgba(255,79,154,.7); color: #fff; }
.cv-row + .cv-row { margin-top: 12px; }

.prof-name { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prof-name b { font-family: var(--f-pop); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; }
.prof-name span { font-family: var(--f-en); font-weight: 700; letter-spacing: .3em; color: var(--pink-2); }
.prof-role { margin: 8px 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.prof-text { font-size: .94rem; line-height: 2; color: var(--night-text); word-break: auto-phrase; }
.prof-text em { font-style: normal; color: var(--pink-2); font-weight: 800; }
.prof-stats { display: grid; gap: 8px; margin: 20px 0; }
.ps { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; color: var(--night-muted); }
.ps-bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: var(--v); border-radius: 5px; background: linear-gradient(90deg, var(--g-neon-2), var(--g-neon)); box-shadow: 0 0 10px rgba(255,79,154,.8); }
.ps-bar i.max { background: linear-gradient(90deg, var(--g-neon), #ffd166); }
.voice-box { padding: 16px; }
.voice-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: .92rem; }
.voice-head svg { color: var(--g-cyan); }
.voice-list { display: grid; gap: 8px; }
.vbtn {
  display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; text-align: left;
  padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1.5px solid var(--g-line);
  font-size: .82rem; font-weight: 800; line-height: 1.5; transition: border-color .2s, background-color .2s;
}
.vbtn:hover { border-color: var(--g-neon-2); }
.vbtn-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--g-neon); color: #fff; box-shadow: 0 0 12px rgba(255,79,154,.7); }
.vbtn.is-playing { border-color: var(--g-neon); background: rgba(255,79,154,.14); }
.vbtn.is-playing .vbtn-ic { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.voice-note { margin-top: 8px; font-size: .7rem; color: rgba(255,255,255,.5); font-weight: 700; }

/* ===== GALLERY ===== */
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gal-item { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--night-3); border: 1px solid var(--g-line); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gal-item:hover img { transform: scale(1.05); filter: brightness(1.08); }
.gal-item.is-wide { grid-column: span 2; grid-row: span 2; }
#galLock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gal-lock { cursor: default; }
.gal-lock img { transform: scale(1.1); }
.gal-lock:hover img { transform: scale(1.1); filter: none; }
.gal-lock-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: rgba(13,6,24,.35); }
.gal-lock-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(13,6,24,.75); border: 2px solid var(--g-neon); color: #fff; box-shadow: 0 0 18px rgba(255,79,154,.8); }
.gal-lock-t { font-size: .78rem; font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.gal-lock-s { font-family: var(--f-en); font-size: .62rem; letter-spacing: .2em; color: var(--pink-2); }
.gal-sub { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-weight: 800; font-size: .95rem; }
.gal-sub::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,79,154,.6), transparent); }
.gal-sub small { font-size: .74rem; color: var(--night-muted); }
.gal-note { margin-top: 12px; font-size: .74rem; color: rgba(255,255,255,.5); font-weight: 700; }

/* ===== CTA帯 ===== */
.cta { position: relative; overflow: hidden; }
.cta-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 26px; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px); }
.cta-face { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: linear-gradient(160deg, #ff86bf, #8757ff); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--g-neon), 0 0 22px rgba(255,79,154,.6); }
.cta-t { font-family: var(--f-pop); font-weight: 400; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.5; word-break: auto-phrase; }
.cta-d { margin-top: 4px; font-size: .82rem; color: var(--night-muted); word-break: auto-phrase; }
.cta-btns { display: grid; gap: 6px; justify-items: center; min-width: 300px; }
.cta-btns .btn { width: 100%; }

/* ===== GAMES 一覧 ===== */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.gcard { overflow: hidden; display: flex; flex-direction: column; }
.gcard-thumb { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-radius: 19px 19px 0 0; background: var(--night-3); }
.gcard-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard-thumb:hover img { transform: scale(1.04); }
.gcard-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; background: rgba(13,6,24,.8); border: 1.5px solid var(--g-neon); font-size: .72rem; font-weight: 800; }
.gcard-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--g-neon); box-shadow: 0 0 8px var(--g-neon); }
.gcard-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.gcard-title { font-size: 1rem; font-weight: 800; line-height: 1.6; word-break: auto-phrase; }
.gcard-sub { font-size: .8rem; color: var(--pink-2); font-weight: 800; word-break: auto-phrase; }
.gcard-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.gcard-actions .btn { --bh: 46px; padding: 0 10px; font-size: .84rem; white-space: normal; }
.gcard-actions .btn-fanza { padding: 4px 10px; }
.gcard-actions .btn-fanza .bf-main { font-size: .86rem; }
.gcard--soon { align-items: center; justify-content: center; min-height: 260px; text-align: center; padding: 24px; border-style: dashed; }
.gcard--soon p { font-family: var(--f-en); font-weight: 700; letter-spacing: .2em; color: var(--night-muted); }
.gcard--soon small { display: block; margin-top: 6px; font-size: .78rem; color: rgba(255,255,255,.45); letter-spacing: .04em; font-family: var(--f-body); }
.to-comics { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 30px; text-align: center; font-size: .86rem; color: var(--night-muted); font-weight: 700; }

/* ===== Footer ===== */
.rf { padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--g-line); background: #08030f; text-align: center; }
.rf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin-bottom: 10px; font-size: .82rem; font-weight: 700; color: var(--night-muted); }
.rf-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.rf-links a:hover { color: var(--pink-2); }
.rf-note { font-size: .72rem; color: rgba(255,255,255,.4); }
.rf-copy { margin-top: 8px; font-size: .72rem; color: rgba(255,255,255,.3); }

/* ===== スマホ下固定の購入バー ===== */
.sticky-buy { display: none; }

/* ===== Lightbox ===== */
.lb { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(8,3,15,.94); padding: 16px; }
.lb[hidden] { display: none; }
.lb img { max-width: min(1280px, 100%); max-height: calc(100svh - 120px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--f-en); font-size: .8rem; letter-spacing: .2em; color: rgba(255,255,255,.6); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal-item.is-wide { grid-column: span 3; grid-row: auto; }
  .cta-card { grid-template-columns: auto minmax(0, 1fr); }
  .cta-btns { grid-column: 1 / -1; min-width: 0; }
}
@media (max-width: 860px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .sticky-buy {
    position: fixed; z-index: 150; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(13,6,24,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,79,154,.45); box-shadow: 0 -12px 30px -14px rgba(255,79,154,.6);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .sticky-buy.is-show { transform: none; }
  .sticky-buy img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: linear-gradient(160deg, #ff86bf, #8757ff); border: 2px solid #fff; flex-shrink: 0; }
  .sticky-buy .sb-txt { min-width: 0; flex: 1; font-size: .7rem; font-weight: 800; line-height: 1.4; color: var(--night-muted); }
  .sticky-buy .sb-txt b { display: block; color: #fff; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy .btn-fanza { --bh: 50px; padding: 4px 14px; flex-shrink: 0; }
  .sticky-buy .btn-fanza .bf-main { font-size: .86rem; }
}
@media (max-width: 760px) {
  .rh-inner { height: 58px; }
  .rh-nav a:not(.rh-safe):not(.rh-comics) { display: none; }
  .rh-nav a { padding: 0 11px; font-size: .74rem; min-height: 36px; }
  .rh-logo-badge { display: none; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 22px; }
  .hero-chara { order: -1; height: auto; margin: 0 -8px -6px; }
  .hero-chara img, .hero-chara video { flex: none; height: 300px; width: auto; }
  .hero-bubble { font-size: .8rem; }
  .hero-text { position: relative; z-index: 2; }
  .hero-cta { max-width: none; }
  .scroll-hint { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 42% 1fr; }
  .step-img { aspect-ratio: auto; min-height: 150px; border-radius: 19px 0 0 19px; }
  .step-img::after { background: linear-gradient(90deg, transparent 50%, rgba(22,10,40,.95)); }
  .step-body { margin: 0; padding: 16px 14px 16px 6px; align-self: center; }
  .step-t { font-size: 1.08rem; }
  .step-d { font-size: .8rem; line-height: 1.7; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { min-height: 0; }
  .day:last-child { grid-column: 1 / -1; }
  .chara { grid-template-columns: 1fr; }
  .cv { padding: 12px 12px 0; }
  .cv-stage { height: 470px; }
  .cv-stage img, .cv-stage video { height: 68%; }
  .cv-bubble { font-size: .82rem; }
  .cv-btn { min-height: 38px; padding: 0 11px; font-size: .78rem; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gal-item.is-wide { grid-column: span 2; }
  #galLock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-lock-t { font-size: .7rem; }
  .cta-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta-face { width: 72px; height: 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 110px); }
  .lb-next { right: calc(50% - 110px); }
  .lb-count { bottom: 26px; }
}
@media (max-width: 380px) {
  .rh-logo-name { font-size: 1rem; }
  .rh-nav a.rh-safe { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bubble, .st-badge i { animation: none; }
}
