/* =====================================================================
   Tsubasana Games — 共通スタイル
   色は「テーマ」で決まる。トップページはスクロール位置の作品に合わせて
   body の --bg / --ink / --accent が切り替わり、ページ全体の色が変わる。
   作品ごとの色は games.js の theme で指定する。
   ===================================================================== */

@property --bg        { syntax: '<color>'; inherits: true; initial-value: #F1EDE2; }
@property --ink       { syntax: '<color>'; inherits: true; initial-value: #14161B; }
@property --accent    { syntax: '<color>'; inherits: true; initial-value: #EE4423; }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: #14161B; }

:root {
  --font-jp: 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --font-display: 'Big Shoulders Display', 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: --bg .8s var(--ease), --ink .8s var(--ease), --accent .8s var(--ease), --on-accent .8s var(--ease);
}
/* テーマを持つ要素。--bg / --ink から線や控えめな文字色を作る */
.theme {
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 34%, transparent);
  --mute: color-mix(in srgb, var(--ink) 70%, var(--bg));
  --tint: color-mix(in srgb, var(--ink) 7%, var(--bg));
  background-color: var(--bg);
  color: var(--ink);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
/* 短い文は文節の切れ目で改行する（対応ブラウザのみ） */
.tagline, .hero-lede, .f-desc, .f-points b, .dev-desc, .dev-title, .sec-note, .contact-body, .d-feature h3, .d-cta p, .next strong { word-break: auto-phrase; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
          backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.logo {
  font: 900 24px/1 var(--font-display); letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
}
.logo i { font-style: normal; color: var(--accent); }
.site-nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.site-nav a {
  position: relative; padding: 12px 0;
  font: 700 15px/1 var(--font-display); letter-spacing: .14em;
  text-decoration: none; white-space: nowrap;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right center;
  transition: transform .4s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- ボタン・状態ラベル ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px; padding: 0 11px 0 26px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 15.5px; line-height: 1.3; text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn .ic {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:hover .ic { background: var(--bg); color: var(--ink); transform: translateX(3px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid .ic { background: var(--on-accent); color: var(--accent); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--solid:hover .ic { background: var(--accent); color: var(--on-accent); }
.btn[target="_blank"]:hover .ic { transform: translate(2px, -2px); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 11px; border: 1.5px solid currentColor; border-radius: 999px;
  font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.status--live::before { background: var(--accent); animation: pulse 2s ease-out infinite; }
.status--store::before { background: none; border: 2px solid currentColor; }
.status--dev { border-style: dashed; }
.status--dev::before { background: none; border: 2px dotted currentColor; }

/* ---------- 端末フレーム ---------- */
.device { position: relative; container-type: inline-size; width: var(--w, 280px); flex: none; }
.bezel {
  position: relative; background: #0D0E12;
  box-shadow: inset 0 0 0 1px #ffffff1f, 0 0 0 1px #00000040, 0 28px 60px -22px #000000a6, 0 10px 22px -12px #00000080;
}
.screen { position: relative; overflow: hidden; background: #050607; aspect-ratio: 9 / 19.5; }
.screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .screen-fill { filter: blur(7cqw); transform: scale(1.3); }
.screen .is-contain { object-fit: contain; }
.device--phone .bezel { padding: 3.6cqw; border-radius: 15cqw; }
.device--phone .screen { border-radius: 11.6cqw; }
.device--pc .bezel { padding: 1.5cqw 1.5cqw 1.9cqw; border-radius: 2.2cqw; }
.device--pc .screen { aspect-ratio: 16 / 9; border-radius: .7cqw; }
.device-stand { position: relative; height: 8.4cqw; }
.device-stand::before, .device-stand::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); }
.device-stand::before { top: 0; bottom: 1.2cqw; width: 13cqw; background: linear-gradient(#22252c, #0D0E12); }
.device-stand::after { bottom: 0; width: 34cqw; height: 1.6cqw; border-radius: 1cqw 1cqw .4cqw .4cqw; background: #0D0E12; box-shadow: inset 0 1px 0 #ffffff24, 0 14px 22px -8px #00000080; }

/* ---------- ステージ（端末＋スクリーンショットの重ね） ---------- */
.stage { --sh: clamp(430px, 74svh, 680px); position: relative; height: var(--sh); display: grid; place-items: center; }
.stage > .device { z-index: 2; transition: transform .5s var(--ease); transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.stage--phone > .device { --w: calc(var(--sh) * .43); }
.stage--pc { --sh: clamp(340px, 62svh, 560px); }
.stage--pc > .device { --w: min(100%, calc(var(--sh) * 1.28)); }
.shot {
  position: absolute; z-index: 1; overflow: hidden; border-radius: 16px; background: #0D0E12;
  box-shadow: 0 0 0 1px #00000026, 0 24px 48px -20px #00000099;
}
.shot img { width: 100%; height: auto; }
.stage--phone .shot { left: 50%; top: 50%; width: calc(var(--sh) * .33); }
.stage--phone .shot { --x: calc(var(--sh) * .36); }
.stage--phone .shot--a { transform: translate(-50%, -50%) translate(calc(var(--x) * -1), 3%) rotate(-6deg); }
.stage--phone .shot--b { transform: translate(-50%, -50%) translate(var(--x), -3%) rotate(5deg); }
.stage--pc .shot { z-index: 3; right: 1%; bottom: 0; width: 23%; transform: rotate(4deg); border-radius: 12px; }

/* ---------- スクロールで現れる動き ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .is-in .reveal, .js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   トップページ
   ===================================================================== */

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + clamp(12px, 2vw, 26px)) 0 clamp(16px, 2vw, 28px);
}
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero-kicker { display: flex; justify-content: space-between; gap: 16px; font: 700 14px/1 var(--font-display); letter-spacing: .18em; }
.hero-kicker span + span { color: var(--mute); }
.wordmark { margin-top: clamp(10px, 1.6vw, 22px); font: 900 12.6vw/.8 var(--font-display); letter-spacing: -.005em; text-transform: uppercase; }
.wm { display: block; width: max-content; white-space: nowrap; }
.wm--stack { display: none; }
.wm > span { display: inline-block; }

.hero-intro {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(20px, 2.6vw, 38px);
}
.tagline { font-weight: 800; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.16; letter-spacing: -.01em; font-feature-settings: 'palt'; }
.tagline em { font-style: normal; color: var(--accent); }
.hero-lede { max-width: 34em; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.9; text-wrap: pretty; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.stats div { display: flex; align-items: baseline; gap: 10px; }
.stats dt { font-weight: 700; font-size: 13px; }
.stats dd { font: 900 34px/1 var(--font-display); }

/* 6作品の端末がセンターラインに整列する */
.lineup-wrap { --cap-h: 78px; position: relative; margin-top: auto; padding-top: clamp(28px, 3.4vw, 48px); }
.pitch { position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: var(--cap-h); border-top: 1.5px solid var(--line-strong); pointer-events: none; }
.pitch::before { content: ''; position: absolute; left: 50%; top: 0; width: min(44vw, 560px); aspect-ratio: 1; border: 1.5px solid var(--line-strong); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch::after { content: ''; position: absolute; left: 50%; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transform: translate(-50%, -50%); }
.lineup { position: relative; display: flex; align-items: flex-end; justify-content: space-between; width: min(100%, 142svh); margin-inline: auto; }
.lineup-ctrl { display: none; }
.lineup li { flex: none; width: 10.6%; }
.lineup li.is-pc { width: 23.4%; }
.lineup a { display: block; text-decoration: none; }
.lineup .device { --w: 100%; transition: transform .6s var(--ease); }
.lineup a:hover .device, .lineup a:focus-visible .device { transform: translateY(-16px); }
.cap { display: flex; flex-direction: column; gap: 5px; height: var(--cap-h); padding-top: 14px; }
.cap-no { font: 900 20px/1 var(--font-display); letter-spacing: .04em; transition: color .3s; }
.cap-no small { margin-left: 8px; font: 700 11px/1 var(--font-jp); letter-spacing: 0; color: var(--mute); }
.cap-title { font-weight: 700; font-size: 13px; line-height: 1.35; word-break: auto-phrase; text-wrap: balance; }
.lineup a:hover .cap-no, .lineup a:focus-visible .cap-no { color: var(--accent); }

/* ---------- 作品セクション（公開中・ストア掲載） ---------- */
.feature { position: relative; overflow: clip; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + clamp(28px, 3.4vw, 48px)) 0 clamp(48px, 5vw, 72px); }
.js .flood .feature, .js .flood .hero, .js .flood .dev, .js .flood .contact { background: none; }
.feature-grid {
  display: grid; align-items: center; column-gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  grid-template-areas: "head media" "body media";
  grid-template-rows: auto auto;
}
.feature.is-flip .feature-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); grid-template-areas: "media head" "media body"; }
.feature-head { grid-area: head; align-self: end; min-width: 0; position: relative; z-index: 4; }
.feature-body { grid-area: body; align-self: start; min-width: 0; position: relative; z-index: 4; }
.feature-media { grid-area: media; min-width: 0; container-type: inline-size; }
/* 横に並べるとき：端末は大きいまま。説明文側のスクリーンショットだけ、列からはみ出さない位置まで
   端末の後ろに引っ込める。外側の1枚は画面の端へはみ出してよい */
@media (min-width: 901px) {
  .feature-media .stage--phone { --sh: min(clamp(430px, 74svh, 680px), 200cqw); }
  .feature:not(.is-flip) .stage--phone .shot--a,
  .feature.is-flip .stage--phone .shot--b { --x: max(0px, min(var(--sh) * .36, 50cqw - var(--sh) * .21)); }
}

.f-top { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 28px); }
.f-no { font: 900 clamp(96px, 10.6vw, 160px)/.76 var(--font-display); letter-spacing: -.01em; color: var(--accent); }
.f-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 4px; font-weight: 700; font-size: 13.5px; line-height: 1.5; }
.f-meta .of { font: 700 15px/1 var(--font-display); letter-spacing: .16em; color: var(--mute); }
.f-title {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 5.9vw, 86px); line-height: 1.1; letter-spacing: -.015em;
  font-feature-settings: 'palt'; overflow-wrap: anywhere;
}
.f-title span { display: block; }
.f-title.is-latin { font-weight: 900; font-size: clamp(50px, 7vw, 104px); line-height: .92; letter-spacing: 0; }
.f-title.is-latin.is-long { font-size: clamp(40px, 5vw, 74px); line-height: .96; }
.f-desc { margin-top: clamp(16px, 2vw, 24px); max-width: 30em; text-wrap: balance; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.85; font-weight: 700; }
.f-points { margin-top: clamp(20px, 2.2vw, 30px); max-width: 34em; counter-reset: pt; border-bottom: 1px solid var(--line-strong); }
.f-points li { counter-increment: pt; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line-strong); }
.f-points li::before { content: counter(pt, decimal-leading-zero); font: 900 20px/1 var(--font-display); letter-spacing: .04em; color: var(--accent); }
.f-points b { display: block; font-size: 16px; line-height: 1.5; }
.f-points span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.7; color: var(--mute); }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 2.4vw, 32px); }

/* ---------- 開発中 ---------- */
.dev { padding: clamp(88px, 11vw, 160px) 0 clamp(72px, 9vw, 130px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; margin-bottom: clamp(32px, 4.4vw, 60px); }
.sec-title { font: 900 clamp(48px, 11.5vw, 176px)/.82 var(--font-display); letter-spacing: -.005em; text-transform: uppercase; }
.sec-title em { font-style: normal; color: var(--accent); }
.sec-note { max-width: 22em; padding-bottom: .4em; font-size: 15px; line-height: 1.85; }
.sec-note b { display: block; margin-bottom: 6px; font-size: 20px; line-height: 1.4; }
.dev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.dev-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; text-decoration: none; transition: transform .6s var(--ease); }
.dev-card:hover { transform: translateY(-8px); }
.dev-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; display: grid; justify-items: center; align-items: start; padding-top: 11%; background: var(--tint); }
.dev-media .device--phone { --w: 50%; transition: transform .7s var(--ease); }
.dev-media .device--pc { --w: 86%; align-self: center; margin-top: -5%; transition: transform .7s var(--ease); }
.dev-card:hover .device { transform: translateY(-10px); }
.dev-no { position: absolute; left: 22px; top: 16px; z-index: 3; font: 900 clamp(44px, 4.6vw, 68px)/1 var(--font-display); color: var(--accent); }
.dev-body { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 26px 26px; background: var(--bg); border-top: 1px solid var(--line); }
.dev-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 13px; line-height: 1.4; }
.dev-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; font-feature-settings: 'palt'; }
.dev-title.is-latin { font-weight: 900; font-size: clamp(32px, 3vw, 42px); line-height: 1; }
.dev-desc { font-size: 14.5px; line-height: 1.8; color: var(--mute); }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; }
.more .ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform .45s var(--ease), background-color .3s, color .3s; }
.dev-card:hover .more .ic { transform: translateX(4px); background: var(--accent); color: var(--on-accent); }

/* ---------- 連絡先・フッター ---------- */
.contact { padding: clamp(88px, 11vw, 160px) 0 clamp(56px, 7vw, 96px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 64px; }
.contact-body { max-width: 26em; padding-bottom: .4em; }
.contact-body h3 { font-size: 22px; line-height: 1.4; }
.contact-body p { margin: 8px 0 22px; font-size: 15px; }
.site-footer { padding: 26px 0 34px; }
.site-footer .wrap > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1.5px solid var(--ink); font: 700 14px/1 var(--font-display); letter-spacing: .14em; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 0; }
.site-footer a:hover { color: var(--accent); }

/* ---------- 右端の作品ナビ ---------- */
.rail { position: fixed; right: 6px; top: 50%; z-index: 40; display: none; flex-direction: column; align-items: flex-end; padding: 6px 6px 6px 10px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .4s; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 30px; font: 700 13px/1 var(--font-display); letter-spacing: .1em; text-decoration: none; color: var(--mute); transition: color .3s; }
.rail a::after { content: ''; width: 10px; height: 2px; background: currentColor; transition: width .4s var(--ease); }
.rail a.is-active { color: var(--ink); }
.rail a.is-active::after { width: 22px; background: var(--accent); }
.rail-name { position: absolute; right: calc(100% + 10px); padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 700 12px/1 var(--font-jp); letter-spacing: 0; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.rail a:hover .rail-name, .rail a:focus-visible .rail-name { opacity: 1; transform: none; }
@media (min-width: 1200px) and (hover: hover) { .rail { display: flex; } }

/* =====================================================================
   作品詳細ページ
   ===================================================================== */
.d-hero { min-height: min(100svh, 980px); padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px)); }
.back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: clamp(14px, 2vw, 26px); font: 700 15px/1 var(--font-display); letter-spacing: .14em; text-decoration: none; }
.back svg { transition: transform .4s var(--ease); }
.back:hover svg { transform: translateX(-4px); }
.d-section { padding: clamp(60px, 8vw, 116px) 0 0; }
.d-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(24px, 3.2vw, 44px); padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.d-head b { font: 900 clamp(34px, 4.4vw, 58px)/.9 var(--font-display); letter-spacing: .01em; text-transform: uppercase; }
.d-head h2 { font-size: 15px; font-weight: 700; }

.d-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(16px, 2vw, 28px); }
.d-feature { padding: clamp(22px, 2.4vw, 32px); border-radius: 24px; background: var(--tint); }
.d-feature .no { font: 900 clamp(48px, 5vw, 68px)/.9 var(--font-display); color: var(--accent); }
.d-feature h3 { margin-top: 18px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; line-height: 1.45; }
.d-feature p { margin-top: 8px; font-size: 15px; line-height: 1.85; color: var(--mute); }

.d-about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 80px); }
.d-about-text p { font-size: clamp(17px, 1.55vw, 21px); line-height: 2; font-weight: 700; }
.d-about-text p + p { margin-top: 1.2em; }
.spec div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line-strong); }
.spec div:last-child { border-bottom: 1px solid var(--line-strong); }
.spec dt { flex: none; font-weight: 700; font-size: 13px; color: var(--mute); }
.spec dd { min-width: 0; text-align: right; font-weight: 700; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }

.gallery { --gh: clamp(340px, 60svh, 580px); display: flex; gap: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 30px; scroll-padding-inline: var(--gutter); }
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #0D0E12; cursor: zoom-in; scroll-snap-align: start; box-shadow: 0 0 0 1px #00000026, 0 22px 40px -22px #00000099; transition: transform .5s var(--ease); }
.g-item:hover { transform: translateY(-6px); }
.g-item img { height: var(--gh); width: auto; max-width: 86vw; object-fit: cover; }

.video-panel { display: grid; place-items: center; padding: clamp(18px, 4vw, 56px); border-radius: clamp(22px, 3vw, 36px); background: var(--tint); }
.player { width: 100%; max-height: 80svh; border-radius: 16px; background: #000; }
.player.is-portrait { width: auto; max-width: 100%; height: min(78svh, 740px); }

.d-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: clamp(60px, 8vw, 116px); padding: clamp(28px, 4vw, 56px); border-radius: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--bg); }
.d-cta p { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2; font-feature-settings: 'palt'; }
.d-cta small { display: block; margin-bottom: 10px; font: 700 13px/1.5 var(--font-jp); color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.d-cta .f-actions { margin-top: 0; }
.d-cta .btn { border-color: var(--bg); }
.d-cta .btn .ic { background: var(--bg); color: var(--ink); }
.d-cta .btn:hover { background: var(--bg); color: var(--ink); }
.d-cta .btn:hover .ic { background: var(--ink); color: var(--bg); }
.d-cta .btn--solid { border-color: var(--accent); }
.d-cta .btn--solid .ic { background: var(--on-accent); color: var(--accent); }
.d-cta .btn--solid:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

.next { position: relative; display: block; overflow: hidden; margin-top: clamp(72px, 9vw, 130px); padding: clamp(48px, 7vw, 100px) 0; text-decoration: none; }
.next > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; }
.next small { display: flex; align-items: center; gap: 14px; font: 700 16px/1 var(--font-display); letter-spacing: .18em; }
.next small b { color: var(--accent); font-weight: 900; }
.next strong { display: block; margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 7vw, 108px); line-height: 1.08; letter-spacing: -.015em; font-feature-settings: 'palt'; }
.next strong span { display: block; }
.next strong.is-latin { font-weight: 900; line-height: .94; letter-spacing: 0; }
.next .go { display: grid; place-items: center; width: clamp(64px, 8vw, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform .6s var(--ease); }
.next:hover .go { transform: translateX(10px) scale(1.06); }
.next .site-footer { padding: clamp(40px, 6vw, 80px) 0 0; }
.next .site-footer span { color: var(--mute); }

/* ---------- 画像の拡大表示 ---------- */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: #F1EDE2; }
.lightbox::backdrop { background: #08090cfa; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font: 700 16px/1 var(--font-display); letter-spacing: .14em; }
.lb-view { display: grid; place-items: center; min-height: 0; padding: 0 clamp(12px, 6vw, 96px); }
.lb-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 16px; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid #f1ede266; border-radius: 50%; background: none; color: inherit; cursor: pointer; transition: background-color .25s, color .25s; }
.lb-btn:hover { background: #F1EDE2; color: #0D0E12; }

/* =====================================================================
   動き
   ===================================================================== */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes stand { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { translate: 0 46px; } to { translate: 0 -46px; } }

@media (prefers-reduced-motion: no-preference) {
  .js .wm { overflow: clip; overflow-clip-margin: .12em; }
  .js .wm > span { animation: rise 1s var(--ease) both; }
  .js .wm + .wm > span { animation-delay: .1s; }
  .js .hero-kicker, .js .hero-intro { animation: fade-up .9s var(--ease) .25s both; }
  .js .lineup li { animation: stand .9s var(--ease) both; animation-delay: calc(.4s + var(--i, 0) * 70ms); }
  .js .pitch { animation: fade-up 1.2s ease .3s both; }
  @supports (animation-timeline: view()) {
    .shot { animation: drift linear both; animation-timeline: view(); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   タブレット縦・スマホ
   ===================================================================== */
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .logo { font-size: 20px; }
  .site-nav a { font-size: 14px; }
  .site-nav .opt { display: none; }

  .hero { min-height: 0; }
  .hero-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lineup-wrap { --cap-h: 78px; margin-top: 12px; }
  .lineup {
    justify-content: flex-start; gap: 5vw; width: auto;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    padding-top: 20px; margin-top: -20px;
  }
  .lineup::-webkit-scrollbar { display: none; }
  .lineup { cursor: grab; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
  .lineup.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .lineup a, .lineup img { -webkit-user-drag: none; user-select: none; }
  .lineup-ctrl { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .lineup-ctrl span { font-weight: 700; font-size: 12.5px; line-height: 1.4; color: var(--mute); }
  .lineup-btns { display: flex; gap: 8px; }
  .lineup-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: none; cursor: pointer; transition: background-color .25s, color .25s, opacity .25s; }
  .lineup-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
  .lineup-btn:disabled { opacity: .28; cursor: default; }
  .lineup li { width: 30vw; max-width: 190px; scroll-snap-align: start; }
  .lineup li.is-pc { width: 66vw; max-width: 420px; }
  .pitch::before { width: 78vw; }

  .feature { min-height: 0; padding: calc(var(--header-h) + 28px) 0 44px; }
  .feature-grid, .feature.is-flip .feature-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "body"; row-gap: 30px; }
  .stage { --sh: clamp(400px, 66svh, 560px); }
  .stage--pc { --sh: auto; height: auto; padding-bottom: 6%; }
  .stage--pc > .device { --w: 100%; }
  .stage--pc .shot { width: 24%; right: 0; }
  .f-points { margin-top: 0; }
  .f-actions .btn { flex: 1 1 100%; }

  .sec-head, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .dev { padding-top: 76px; }
  .contact { padding-top: 84px; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dev-media { aspect-ratio: 5 / 4; padding-top: 9%; }
  .dev-media .device--phone { --w: 42%; }
  .dev-media .device--pc { --w: 76%; margin-top: 3%; }

  .d-hero { min-height: 0; }
  .d-about { grid-template-columns: minmax(0, 1fr); }
  .gallery { --gh: min(60svh, 460px); }
  .d-cta .f-actions { width: 100%; }
  .next > .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wm--wide { display: none; }
  .wm--stack { display: block; }
  .wordmark { line-height: .8; }
  .wm--stack + .wm--stack { margin-top: .07em; }
  .hero-kicker { font-size: 12px; }
  .sec-title { font-size: 15.4vw; }
  .stats { gap: 6px 22px; }
  .stats dd { font-size: 28px; }
  .f-no { font-size: 27vw; }
  .f-title { font-size: clamp(38px, 12vw, 56px); }
  .f-title.is-latin { font-size: clamp(46px, 14.4vw, 68px); }
  .f-title.is-latin.is-long { font-size: clamp(34px, 10.4vw, 52px); }
  .stage--phone .shot { width: calc(var(--sh) * .3); }
  .stage--phone .shot { --x: calc(var(--sh) * .32); }
  .dev-card { border-radius: 22px; }
  .d-head { flex-direction: column; gap: 8px; }
  .d-feature { border-radius: 18px; }
}
