
/* ウダガワ公式サイト v3 — 承認済み美術・5場面・ビルド不要 */
:root {
  --night: #081326;
  --night-2: #101c34;
  --gold: #e8d5a0;
  --paper: #fff2d3;
  --text: #f5efdf;
  --soft: #dfe0e7;
  --title: "Shippori Mincho", "Yu Mincho", serif;
  --body: "Noto Sans JP", "Yu Gothic", sans-serif;
  --header: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--night); font: 400 16px/1.8 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #fff6d6; outline-offset: 4px; }
#story, #world, #release { scroll-margin-top: var(--header); }
#game { scroll-margin-top: 0; }
::selection { background: #b57e96; color: #081326; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 15px; color: var(--night); background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.mobile-only { display: none; }
.scene { position: relative; isolation: isolate; overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--gold); font: 500 14px/1.5 var(--title); letter-spacing: .11em; }
.eyebrow img { width: 31px; height: 31px; object-fit: contain; flex: none; }
.eyebrow-centered { justify-content: center; }
.head-deco { width: 129px; height: auto; object-fit: contain; margin: 2px auto 0; }
.section-divider { width: min(365px, 84%); height: 31px; object-fit: contain; object-position: left center; }

/* 固定ヘッダー：完全不透明。前の場面の文字を透かさない。 */
.site-header { position: fixed; z-index: 200; inset: 0 0 auto; height: var(--header); background: #081326; border-bottom: 1px solid rgba(232,213,160,.32); }
.header-inner { width: min(calc(100% - 88px), 1380px); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); font: 500 27px/1 var(--title); letter-spacing: .085em; white-space: nowrap; }
.brand img { width: 39px; height: 39px; object-fit: contain; }
.site-nav { display: flex; align-items: center; }
.site-nav a { position: relative; padding: 12px 27px; text-decoration: none; font: 500 17px/1.5 var(--title); letter-spacing: .13em; }
.site-nav a + a::before { content: ""; position: absolute; left: 0; top: 17px; bottom: 17px; width: 1px; background: rgba(232,213,160,.45); }
.site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; }

/* 承認済み看板 */
.hero { min-height: 900px; height: max(900px,100svh); background: #081326; }
.hero-image, .hero-image img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image img { object-fit: cover; object-position: 50% 44%; }
.hero-shade { pointer-events: none; background: linear-gradient(90deg,rgba(5,13,29,.95),rgba(6,15,31,.9) 16%,rgba(7,17,36,.47) 39%,transparent 70%),linear-gradient(0deg,rgba(4,10,22,.72),transparent 22%); }
.hero-inner { position: relative; z-index: 2; width: min(calc(100% - 120px),1330px); height: 100%; margin: auto; }
.hero-copy { width: min(665px,54%); padding-top: clamp(139px,18svh,180px); }
.hero-kicker { display: inline-block; margin: 0 0 7px; padding-bottom: 8px; border-bottom: 1px solid var(--gold); color: var(--paper); font: 500 16px/1.5 var(--title); letter-spacing: .15em; }
.hero-name { margin: 0; color: var(--paper); font: 600 clamp(69px,7.1vw,102px)/1.26 var(--title); letter-spacing: .075em; font-feature-settings: "palt" 1; text-shadow: 0 3px 14px #050b1b; }
.hero-divider { width: min(480px,100%); height: 34px; object-fit: fill; opacity: .92; margin: 2px 0 8px; }
.hero-promise { margin: 0; color: var(--paper); font: 600 clamp(35px,3.35vw,50px)/1.47 var(--title); letter-spacing: .016em; font-feature-settings: "palt" 1; white-space: nowrap; }
.hero-summary { margin: 20px 0 0; color: var(--text); font: 400 19px/1.82 var(--title); letter-spacing: .035em; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 29px; }
/* A16の黄銅札をボタンの地として使い、紋の飾りは左に独立して置く。 */
.button-brass { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 60px; min-width: 247px; padding: 9px 48px 9px 43px; border: 0; color: #111c2c; background: transparent url('/assets/parts/A16.webp') center / 100% 100% no-repeat; text-decoration: none; text-align: center; white-space: nowrap; font: 700 18px/1.45 var(--title); letter-spacing: .03em; filter: drop-shadow(0 5px 11px rgba(0,0,0,.52)); transition: transform .22s ease,filter .22s ease; }
.button-brass:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(0,0,0,.52)) brightness(1.07); }
.button-deco { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; object-fit: contain; opacity: .84; }
.button-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-55%); color: #132035; font-size: 29px; line-height: 1; font-family: var(--title); }
.text-link { display: inline-block; padding: 9px 3px 5px; border-bottom: 1px solid rgba(232,213,160,.72); text-decoration: none; color: var(--paper); font: 500 16px/1.5 var(--title); }
.text-link:hover { color: #fff; border-color: #fff; }
.hero-offerings { position: absolute; z-index: 3; left: 50%; bottom: 25px; transform: translateX(-50%); width: min(1190px,calc(100% - 154px)); min-height: 80px; padding: 10px 28px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border: 1px solid rgba(232,213,160,.78); outline: 1px solid rgba(232,213,160,.21); outline-offset: -6px; background: linear-gradient(180deg,rgba(19,28,49,.97),rgba(7,15,33,.97)); box-shadow: 0 14px 36px rgba(0,0,0,.32); }
.hero-offerings::before, .hero-offerings::after { content: "◇"; position: absolute; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 17px; }
.hero-offerings::before { left: -8px; }
.hero-offerings::after { right: -8px; }
.offering { display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; font: 400 16px/1.6 var(--title); }
.offering + .offering { border-left: 1px solid rgba(232,213,160,.53); }
.offering img { width: 34px; height: 34px; flex: none; object-fit: contain; }
.offering strong { color: var(--gold); font-weight: 600; white-space: nowrap; }
.offering > span:last-child { white-space: nowrap; }
.offering-separator { flex: none; width: 1px; height: 24px; background: rgba(232,213,160,.5); }

/* 戦闘：新しい一枚絵を主役に。既存の輪・こいつを重ね描きしない。 */
.battle { height: 100vh; height: 100svh; min-height: 0; background: #101a2e; }
.battle-art { position: absolute; inset: 0; overflow: hidden; }
.battle-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.battle-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(4,13,28,.48) 0%,rgba(5,15,31,.16) 38%,transparent 72%),linear-gradient(0deg,rgba(5,12,26,.78),transparent 25%); }
.battle-freeze { position: absolute; inset: 0; opacity: 0; background: rgba(72,89,142,.085); transition: opacity .35s ease; }
.battle[data-mode="stopped"] .battle-freeze,.battle[data-mode="transfer"] .battle-freeze { opacity: 1; }
.battle-transfer { position: absolute; z-index: 2; top: 43%; right: 4%; width: min(650px,53%); opacity: 0; pointer-events: none; }
.battle[data-mode="transfer"] .battle-transfer { animation: transfer-pass 1.1s ease-out both; }
.battle-petal { position: absolute; z-index: 2; pointer-events: none; width: 29px; opacity: .64; animation: petal-drift 9s ease-in-out infinite alternate; }
.petal-one { top: 31%; left: 49%; animation-delay: -2s; }
.petal-two { top: 65%; left: 22%; width: 23px; animation-delay: -5s; }
.battle[data-mode="stopped"] .battle-petal, .battle[data-mode="transfer"] .battle-petal, .battle.is-paused .battle-petal, .battle.is-paused .battle-transfer { animation-play-state: paused; }
.battle-copy { position: absolute; z-index: 3; left: max(6.5%,calc((100vw - 1310px)/2)); top: clamp(126px,20svh,192px); width: min(590px,45vw); }
.battle-copy h2 { margin: 15px 0 23px; color: var(--paper); font: 600 clamp(54px,5.5vw,83px)/1.35 var(--title); letter-spacing: .075em; text-shadow: 0 3px 18px #071026; }
.battle-intro { display: inline-block; margin: 0; padding: 9px 18px 10px 13px; color: var(--text); background: #081326; border-left: 2px solid rgba(232,213,160,.8); font: 400 20px/1.75 var(--title); }
.battle-footer { position: absolute; z-index: 4; left: max(6.5%,calc((100vw - 1310px)/2)); bottom: 35px; width: min(690px,54vw); }
.battle-caption { display: grid; grid-template-columns: 40px minmax(0,1fr) 53px; gap: 7px; align-items: center; min-height: 65px; padding: 4px 8px 4px 10px; border-block: 1px solid rgba(232,213,160,.7); background: #081326; }
.battle-symbol { width: 35px; height: 35px; object-fit: contain; }
.battle-caption p { min-width: 0; margin: 0; color: var(--paper); font: 500 19px/1.5 var(--title); letter-spacing: .025em; }
.battle-toggle { width: 49px; height: 47px; padding: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 1px solid rgba(232,213,160,.55); border-radius: 2px; color: var(--paper); background: #13213a; font: 500 11px/1.25 var(--body); }
.battle-toggle img { width: 24px; height: 24px; object-fit: contain; }
.battle-toggle:hover { background: #263655; }
.battle-link { display: inline-block; margin-top: 10px; padding-bottom: 2px; color: var(--paper); border-bottom: 1px solid rgba(232,213,160,.62); font: 500 15px/1.55 var(--title); text-decoration: none; }
.battle-note { margin: 9px 0 0; padding: 3px 0; color: var(--text); font: 400 12px/1.55 var(--body); }
@keyframes transfer-pass { 0% {opacity:0; transform:translateX(-65px);} 32%{opacity:.65;} 100%{opacity:0;transform:translateX(75px);} }
@keyframes petal-drift { from{transform:translate(-10px,-7px) rotate(-18deg);} to{transform:translate(20px,21px) rotate(34deg);} }

/* 物語：一枚の完成画を全景として使用。左の暗い余白だけに文章。 */
.story { min-height: max(900px,100svh); background: #081326; }
.story-art, .story-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-art img { object-fit: cover; object-position: 50% 50%; }
.story-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(5,13,29,.7) 0%,rgba(7,16,34,.45) 35%,transparent 62%),linear-gradient(0deg,rgba(4,11,23,.48),transparent 21%); pointer-events: none; }
.story-inner { position: relative; z-index: 2; width: min(calc(100% - 140px),1320px); min-height: max(900px,100svh); margin: 0 auto; display: flex; align-items: center; }
.story-copy { width: min(550px,44vw); padding: 90px 0 70px; }
.story-copy .head-deco { margin: 12px 0 -1px; width: 102px; }
.story-copy h2 { margin: 16px 0 0; color: var(--paper); font: 600 clamp(38px,4.05vw,61px)/1.46 var(--title); letter-spacing: .02em; white-space: nowrap; }
.story-divider { margin: 13px 0 20px; }
.story-copy > p:not(.eyebrow) { margin: 0 0 15px; max-width: 520px; font: 400 18px/1.9 var(--title); }
.story-copy .story-action { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 24px; }
.button-story { min-width: 348px; width: max-content; max-width: 100%; min-height: 60px; padding-left: 44px; padding-right: 43px; font-size: 16px; letter-spacing: 0; }
.story-status { margin: 6px 0 0 !important; padding: 5px 8px; color: var(--paper); background: #081326; font: 500 13px/1.5 var(--title) !important; }

/* 二つの世界：実際のゲーム画面ではない観測窓＋エダ */
.world { padding: 103px 0 88px; min-height: 830px; background: radial-gradient(ellipse at 81% 61%,#2d3e5a 0%,#14213d 37%,#091428 80%); }
.world::after { content: ""; position: absolute; z-index: 0; inset: auto 0 0; height: 44%; background: linear-gradient(0deg,#081326,transparent); pointer-events: none; }
.world-branch { position: absolute; top: -30px; right: -100px; width: min(40vw,500px); opacity: .18; pointer-events: none; }
.world-inner, .release-inner { position: relative; z-index: 1; width: min(calc(100% - 120px),1300px); margin: 0 auto; }
.section-heading { text-align: center; }
.section-heading h2 { margin: 8px 0 19px; color: var(--paper); font: 600 clamp(37px,4.05vw,60px)/1.4 var(--title); letter-spacing: .045em; }
.section-heading > p:not(.eyebrow) { margin: 0; font: 400 17px/1.88 var(--title); }
.world-stage { margin-top: 48px; display: grid; grid-template-columns: minmax(0,2.05fr) minmax(230px,.85fr); gap: 34px; align-items: center; }
.observation-images { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111e36; border: 1px solid rgba(232,213,160,.7); box-shadow: 0 22px 52px rgba(0,0,0,.43),inset 0 0 0 7px rgba(9,16,30,.17); }
.observation-images::before { content: ""; position: absolute; z-index: 3; inset: 7px; border: 1px solid rgba(232,213,160,.35); pointer-events: none; }
.observation-city, .observation-lab { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.observation-city { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.observation-split { position: absolute; z-index: 3; left: var(--split); top: 0; bottom: 0; width: 1px; background: #f7e9bd; box-shadow: 0 0 17px #f9e8b9; pointer-events: none; }
.observation-split::after { content: "◇"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--gold); color: var(--paper); background: #081326; font-size: 17px; }
.observation-label { position: absolute; z-index: 4; bottom: 17px; padding: 5px 10px; background: #081326; border: 1px solid rgba(232,213,160,.62); font: 500 13px/1.4 var(--title); pointer-events: none; }
.observation-label-left { left: 21px; }
.observation-label-right { right: 21px; }
#observation-range { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.observation-images:focus-within { outline: 2px solid var(--paper); outline-offset: 4px; }
.observation-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; color: var(--soft); font-size: 13px; }
.observation-hint img { width: 27px; height: 27px; object-fit: contain; }
.eda-picture { margin: 0; position: relative; display: grid; justify-items: center; }
.eda-halo { position: absolute; inset: 8% 0 4%; background: radial-gradient(ellipse,rgba(240,183,121,.15),transparent 66%); pointer-events: none; }
.eda-picture > img { position: relative; z-index: 1; width: min(100%,380px); filter: drop-shadow(0 20px 20px rgba(0,0,0,.5)); }
.eda-picture figcaption { position: relative; z-index: 1; font: 600 25px/1.5 var(--title); letter-spacing: .14em; color: var(--gold); }

/* 公開案内：売り場の二つの独立した商品。準備中は非リンク。 */
.release { padding: 100px 0 80px; background: linear-gradient(180deg,#091427,#172540 45%,#0a152a); }
.release .section-heading { margin-bottom: 42px; }
.products { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; text-align: left; }
.product { min-width: 0; background: #101c34; border: 1px solid rgba(232,213,160,.43); box-shadow: 0 20px 40px rgba(0,0,0,.3); overflow: hidden; }
.product-novel { background: #17213a; }
.product-image { height: 310px; position: relative; overflow: hidden; background: #192740; }
.product-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#101c34,transparent 42%); }
.product-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 57%; }
.product-koitsu { position: absolute; height: 143%; bottom: -41%; right: 13%; width: auto; filter: drop-shadow(-9px 6px 13px rgba(0,0,0,.55)); }
.product-novel .product-image { background: radial-gradient(ellipse at 52% 68%,#33405c,#101c34 80%); }
.product-tree { position: absolute; left: 50%; bottom: -32%; transform: translateX(-50%); height: 130%; max-width: 86%; object-fit: contain; }
.product-copy { padding: 27px 34px 33px; min-height: 312px; border-top: 1px solid rgba(232,213,160,.44); }
.product-type { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; color: var(--gold); font: 500 15px/1.4 var(--title); }
.product-type img { width: 32px; height: 32px; object-fit: contain; }
.product h3 { margin: 0 0 12px; color: var(--paper); font: 600 clamp(22px,2.2vw,31px)/1.48 var(--title); }
.product-description { margin: 0 0 18px; font: 400 16px/1.8 var(--title); }
.product-details { padding-top: 13px; border-top: 1px solid rgba(232,213,160,.35); }
.product-details p { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; font: 400 13px/1.52 var(--body); color: var(--soft); }
.product-details p img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.product-details .product-status { color: var(--gold); font-weight: 600; cursor: default; }
.product-details .product-date { margin-left: 32px; }
.release-note { margin: 40px 0 0; text-align: center; color: var(--soft); font: 400 13px/1.6 var(--body); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 92px; padding: 18px max(5vw,22px); background: #080f20; border-top: 1px solid rgba(232,213,160,.3); }
.footer-brand { font-size: 20px; }
.footer-brand img { width: 31px; height: 31px; }
.footer p { margin: 0; font: 400 12px/1.5 var(--body); color: var(--soft); }

/* 768–1199: 専用の詰め方。PC座標の単純縮小にしない。 */
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --header: 70px; }
  .header-inner { width: calc(100% - 58px); }
  .hero-inner { width: calc(100% - 82px); }
  .hero-copy { width: 55%; padding-top: 155px; }
  .hero-name { font-size: clamp(61px,6.65vw,79px); }
  .hero-promise { font-size: clamp(29px,3.6vw,43px); }
  .hero-summary { font-size: 17px; }
  .hero-offerings { width: calc(100% - 70px); padding: 9px 12px; }
  .offering { gap: 7px; font-size: 13px; }
  .offering img { width: 29px; height: 29px; }
  .battle-copy { left: 5.5%; width: 48vw; top: 18%; }
  .battle-copy h2 { font-size: clamp(48px,5.8vw,70px); }
  .battle-footer { left: 5.5%; width: 55vw; bottom: 26px; }
  .battle-caption p { font-size: 16px; }
  .story-inner { width: calc(100% - 90px); }
  .story-copy { width: 47vw; }
  .story-copy h2 { font-size: clamp(33px,4.05vw,48px); }
  .story-copy > p:not(.eyebrow) { font-size: 16px; }
  .world-inner, .release-inner { width: calc(100% - 82px); }
  .world-stage { grid-template-columns: minmax(0,1.7fr) minmax(205px,.75fr); gap: 18px; }
  .product-copy { padding: 24px; }
}

/* スマホ：絵と文章を上下に分離。戦闘だけは必ず一画面。 */
@media (max-width: 767px) {
  :root { --header: 58px; }
  .mobile-only { display: initial; }
  .site-header { background: #081326; }
  .header-inner { width: calc(100% - 28px); }
  .brand { gap: 6px; font-size: 20px; letter-spacing: .055em; }
  .brand img { width: 30px; height: 30px; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 4px; border: 1px solid rgba(232,213,160,.45); border-radius: 2px; background: #0e1a31; }
  .nav-toggle img { width: 30px; height: 30px; object-fit: contain; }
  .nav-toggle[aria-expanded="true"] { background: #273550; box-shadow: inset 0 0 0 1px rgba(232,213,160,.4); }
  .site-nav { display: none; position: absolute; top: var(--header); left: 12px; right: 12px; padding: 8px 12px; flex-direction: column; border: 1px solid rgba(232,213,160,.6); background: #081326; box-shadow: 0 18px 35px rgba(0,0,0,.55); }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 12px; text-align: center; font-size: 17px; }
  .site-nav a + a { border-top: 1px solid rgba(232,213,160,.25); }
  .site-nav a + a::before { display: none; }
  .eyebrow { font-size: 12px; gap: 6px; }
  .eyebrow img { width: 26px; height: 26px; }
  .head-deco { width: 110px; }

  .hero { height: auto; min-height: 980px; }
  /* 承認済みの縦長KV。顔を初回表示に残す。 */
  .hero-image { position: absolute; inset: 290px 0 auto; height: 560px; -webkit-mask-image: linear-gradient(180deg,transparent 0%,black 19%,black 94%,transparent 100%); mask-image: linear-gradient(180deg,transparent 0%,black 19%,black 94%,transparent 100%); }
  .hero-image img { object-position: center bottom; }
  .hero-shade { background: linear-gradient(180deg,#081326 0%,#081326 28%,rgba(8,19,38,.66) 36%,transparent 43%),linear-gradient(0deg,rgba(6,13,28,.74),transparent 18%); }
  .hero-inner { width: 100%; height: auto; padding: 0 20px; }
  .hero-copy { width: 100%; max-width: 490px; padding-top: 88px; }
  .hero-kicker { font-size: 12px; margin-bottom: 8px; padding-bottom: 5px; }
  .hero-name { font-size: clamp(44px,12vw,62px); line-height: 1.16; letter-spacing: .05em; }
  .hero-divider { width: min(315px,100%); height: 18px; margin: 0 0 7px; }
  .hero-promise { font-size: clamp(25px,7.2vw,32px); line-height: 1.43; white-space: normal; }
  .hero-summary { font-size: 14px; line-height: 1.7; margin-top: 13px; }
  .hero-actions { margin-top: 17px; gap: 11px; }
  .button-brass { min-width: 189px; min-height: 49px; padding: 7px 32px 7px 32px; font-size: 15px; }
  .button-deco { left: 9px; width: 23px; height: 23px; }
  .button-arrow { right: 13px; font-size: 25px; }
  .text-link { font-size: 13px; padding: 6px 0 4px; }
  .hero-offerings { width: calc(100% - 26px); bottom: 15px; min-height: 100px; padding: 8px 16px; grid-template-columns: 1fr; }
  .offering { justify-content: flex-start; gap: 8px; padding: 2px 0; font-size: 13px; }
  .offering + .offering { border-left: none; border-top: 1px solid rgba(232,213,160,.31); }
  .offering img { width: 25px; height: 25px; }
  .offering-separator { height: 18px; }

  .battle { height: 100svh; min-height: 0; }
  .battle-art { inset: calc(var(--header) + 143px) 0 119px; }
  .battle-background { object-fit: cover; object-position: 64% 52%; }
  .battle-shade { background: linear-gradient(0deg,rgba(8,19,38,.2),transparent 30%),linear-gradient(90deg,rgba(8,19,38,.07),transparent 60%); }
  .battle-copy { top: var(--header); left: 0; width: 100%; height: 143px; padding: 7px 18px 8px; background: #081326; }
  .battle-copy h2 { margin: 0 0 5px; font-size: clamp(28px,7.65vw,36px); line-height: 1.18; letter-spacing: .025em; }
  .battle-intro { font-size: 12px; line-height: 1.36; padding: 3px 9px; }
  .battle-transfer { width: 78%; top: 35%; right: -6%; }
  .battle-petal { width: 17px; }
  .battle-footer { left: 0; right: 0; bottom: 0; width: 100%; height: 119px; padding: 6px 12px 8px; background: #081326; border-top: 1px solid rgba(232,213,160,.33); }
  .battle-caption { grid-template-columns: 29px minmax(0,1fr) 39px; gap: 4px; min-height: 47px; padding: 3px 5px; }
  .battle-symbol { width: 27px; height: 27px; }
  .battle-caption p { font-size: 13px; line-height: 1.35; }
  .battle-toggle { width: 38px; height: 38px; padding: 2px; font-size: 10px; }
  .battle-toggle img { width: 20px; height: 20px; }
  .battle-link { margin-top: 6px; font-size: 12px; }
  .battle-note { margin: 4px 0 0; font-size: 10px; line-height: 1.4; }

  /* スマホ物語：テキストの下に一枚絵。見出しの真後ろに人物を置かない。 */
  .story { display: flex; flex-direction: column; min-height: 0; }
  .story-inner { order: 1; width: 100%; min-height: 0; padding: calc(var(--header) + 34px) 20px 17px; display: block; }
  .story-copy { width: 100%; padding: 0; }
  .story-copy .head-deco { width: 92px; margin: 6px 0 0; }
  .story-copy h2 { margin: 9px 0 3px; font-size: clamp(28px,7.6vw,38px); line-height: 1.46; white-space: normal; }
  .story-divider { width: 260px; height: 22px; margin: 3px 0 11px; }
  .story-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.75; margin-bottom: 11px; }
  .story-copy .story-action { margin-top: 13px; gap: 4px; }
  .button-story { min-width: 0; width: min(100%,316px); min-height: 53px; padding: 7px 41px 7px 36px; font-size: 13px; }
  .story-status { font-size: 12px !important; }
  .story-art { order: 2; position: relative; inset: auto; height: 420px; width: 100%; }
  .story-art img { object-fit: cover; object-position: 68% 50%; }
  .story-shade { background: linear-gradient(180deg,#081326 0%,#081326 48%,transparent 61%); z-index: -1; }
  .story-art::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg,#081326,transparent 18%,transparent 83%,#081326); }

  .world { min-height: 0; padding: 91px 0 59px; }
  .world-inner, .release-inner { width: calc(100% - 32px); }
  .world-branch { width: 240px; right: -100px; top: 25px; }
  .section-heading h2 { font-size: clamp(28px,7.5vw,38px); line-height: 1.4; margin: 8px 0 14px; }
  .section-heading > p:not(.eyebrow) { font-size: 14px; line-height: 1.8; }
  .world-stage { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .observation-images { aspect-ratio: 4/3; }
  .observation-label { font-size: 11px; bottom: 10px; padding: 4px 7px; }
  .observation-label-left { left: 11px; }
  .observation-label-right { right: 11px; }
  .observation-hint { margin-top: 9px; font-size: 12px; }
  .eda-picture { margin-top: 22px; }
  .eda-picture > img { width: min(80%,300px); }
  .eda-picture figcaption { font-size: 21px; }

  .release { padding: 88px 0 54px; }
  .release .section-heading { margin-bottom: 23px; }
  .products { grid-template-columns: 1fr; gap: 22px; }
  .product-image { height: 230px; }
  .product-copy { padding: 18px 22px 26px; min-height: 0; }
  .product h3 { font-size: clamp(23px,5.9vw,30px); }
  .product-description { font-size: 14px; }
  .product-details p { font-size: 12px; }
  .release-note { margin-top: 25px; font-size: 12px; }
  .footer { min-height: 83px; padding: 14px 17px; }
  .footer-brand { font-size: 16px; }
  .footer-brand img { width: 26px; height: 26px; }
  .footer p { font-size: 11px; }
}

/* 最小端末 320×568 */
@media (max-width: 359px) {
  :root { --header: 54px; }
  .brand { font-size: 18px; }
  .brand img { width: 27px; height: 27px; }
  .hero { min-height: 890px; }
  .hero-image { top: 280px; height: 493px; }
  .hero-inner { padding: 0 14px; }
  .hero-copy { padding-top: 77px; }
  .hero-name { font-size: 43px; }
  .hero-promise { font-size: 24px; }
  .hero-summary { font-size: 13px; }
  .hero-actions { gap: 8px; }
  .button-brass { min-width: 164px; font-size: 13px; }
  .text-link { font-size: 12px; }
  .offering { gap: 6px; font-size: 11px; }
  .offering img { width: 23px; height: 23px; }
  .battle-art { inset: calc(var(--header) + 128px) 0 112px; }
  .battle-copy { height: 128px; padding: 5px 12px 5px; }
  .battle-copy h2 { font-size: 27px; }
  .battle-intro { font-size: 11px; }
  .battle-footer { height: 112px; padding: 5px 9px 6px; }
  .battle-caption { min-height: 43px; }
  .battle-caption p { font-size: 12px; }
  .battle-link { font-size: 11px; }
  .battle-note { font-size: 9.5px; }
  .story-inner { padding: calc(var(--header) + 29px) 15px 14px; }
  .story-copy h2 { font-size: 27px; }
  .story-copy > p:not(.eyebrow) { font-size: 14px; }
  .button-story { width: min(100%,290px); font-size: 12px; padding-left: 33px; padding-right: 37px; }
  .story-art { height: 358px; }
  .world-inner,.release-inner { width: calc(100% - 26px); }
}

/* 短いスマホは戦闘の読み物の高さを確保する */
@media (max-width: 767px) and (max-height: 610px) {
  .battle-copy { padding-top: 2px; }
  .battle-footer { padding-top: 3px; }
  .battle-caption { min-height: 41px; }
  .battle-link { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .battle-transfer { opacity: 0 !important; animation: none !important; }
  .battle-petal { animation: none !important; }
}
