@charset "utf-8";

/* 映像とイラストを主役にした、ようかいぴーすの公式サイト。 */
.top { color: var(--ink); }
.top__flow { overflow: clip; }
.top__flow > *, .section-heading > *, .gameplay__inner > *, .world-feature__inner > *, .download__inner > * { min-width: 0; }
.mobile-break { display: none; }
.section-label { display: flex; align-items: center; gap: 18px; font-size: 10px; line-height: 1.6; font-weight: 700; letter-spacing: .18em; margin-bottom: 26px; }
.section-label > span { font-family: var(--font-display); font-size: 12px; letter-spacing: .06em; color: #8c927f; }
.feature-title { font-family: var(--font-display); font-size: clamp(31px, 3.3vw, 46px); font-weight: 700; line-height: 1.55; letter-spacing: .07em; }
.feature-text { margin-top: 25px; font-size: 14px; font-weight: 400; line-height: 2.1; color: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; margin-top: 32px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 12px; line-height: 1.6; font-weight: 700; text-decoration: none; transition: color .2s; }
.text-link > span { font-size: 19px; font-weight: 400; transition: transform .2s; }
.text-link:hover { color: var(--moss); }
.text-link:hover > span { transform: translate(2px,-2px); }

/* 元動画から変換した連番画像を、通常のスクロールに合わせて再生。 */
.jhero { position: relative; height: 380vh; background: var(--forest-deep); color: var(--cream); }
.jhero.is-static { height: auto; }
.jhero__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); overflow: hidden; isolation: isolate; background: #15261b; }
.jhero.is-static .jhero__stage { position: relative; top: 0; }
.jhero__poster, .jhero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.jhero__canvas { opacity: 0; transition: opacity .6s; }
.jhero.is-ready .jhero__canvas { opacity: 1; }
.jhero.is-ready .jhero__poster { opacity: 0; transition: opacity .6s; }
.jhero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(12,27,19,.58),rgba(12,27,19,.1) 60%,transparent),linear-gradient(0deg,rgba(12,27,19,.64),transparent 35%); }
.jhero__fireflies { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.jhero__copy { position: absolute; top: 46%; left: max(6vw,calc((100vw - 1180px)/2)); transform: translateY(-50%); display: grid; max-width: 78%; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.jhero__eyebrow { grid-column: 1; grid-row: 1; font-size: 12px; letter-spacing: .15em; margin-bottom: 32px; font-weight: 700; }
.jhero__eyebrow span { display: block; font-size: 8px; letter-spacing: .2em; margin-top: 4px; opacity: .75; }
.jhero__chapter { grid-area: 2 / 1; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.jhero__chapter.is-active { opacity: 1; visibility: visible; transition: opacity .6s .1s, visibility 0s; }
.jhero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px,3.5vw,52px); line-height: 1.65; letter-spacing: .1em; }
.jhero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.jhero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease-out); }
.jhero__chapter.is-active .line > span { transform: none; }
.jhero__chapter.is-active .line:nth-child(2) > span { transition-delay: .1s; }
.jhero__chapter.is-active .line:nth-child(3) > span { transition-delay: .2s; }
.jhero__lead { margin-top: 24px; font-size: 13px; line-height: 1.9; color: rgba(250,247,237,.85); }
.jhero__tate { display: none; }
.jhero__finale { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; pointer-events: none; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease-out); }
.jhero__finale.is-active { opacity: 1; transform: none; pointer-events: auto; }
.jhero__logo { width: clamp(240px,28vw,400px); filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.jhero__catch { width: clamp(270px,32vw,440px); }
.jhero.is-finale .jhero__eyebrow { opacity: 0; }
.jhero__rail { position: absolute; bottom: 34px; left: max(6vw,calc((100vw - 1180px)/2)); display: flex; gap: 10px; }
.jhero__rail li { width: 38px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.4); font-size: 9px; font-weight: 400; }
.jhero__rail li.is-active { color: var(--cream); border-color: var(--cream); }
.jhero__rail b { font-weight: 500; }
.jhero__skip { position: absolute; bottom: 32px; right: max(6vw,calc((100vw - 1180px)/2)); display: flex; align-items: center; gap: 28px; text-decoration: none; color: var(--cream); font-size: 11px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.5); }
.jhero__skip span { font-size: 17px; }
.jhero__cue { position: absolute; bottom: 95px; left: max(6vw,calc((100vw - 1180px)/2)); display: flex; align-items: center; gap: 10px; font-size: 8px; letter-spacing: .2em; color: rgba(255,255,255,.75); transition: opacity .3s; }
.jhero__mouse { display: block; width: 1px; height: 27px; overflow: hidden; background: rgba(255,255,255,.3); }
.jhero__mouse i { display: block; width: 100%; height: 50%; background: #fff; animation: hero-cue 2s ease-in-out infinite; }
@keyframes hero-cue { to { transform: translateY(200%); } }
.jhero.is-scrolling .jhero__cue { opacity: 0; }
.jhero__loading { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; }
.jhero__loading i { display: block; width: 100%; height: 100%; background: var(--cream); transform: scaleX(0); transform-origin: left; }
.jhero.is-ready .jhero__loading { opacity: 0; }
.jhero.is-static .jhero__copy { top: 44%; }
.jhero.is-static .jhero__finale { inset: auto 6vw 110px auto; gap: 12px; }
.jhero.is-static .jhero__logo { width: 230px; }
.jhero.is-static .jhero__catch { width: 270px; }
.jhero.is-static .jhero__rail, .jhero.is-static .jhero__loading { display: none; }

.store { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 178px; padding: 11px 20px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: #111914; color: #fff; text-decoration: none; line-height: 1.25; transition: background .2s,transform .2s; }
.store:hover { background: #294934; transform: translateY(-2px); }
.store__stack { display: grid; gap: 3px; text-align: left; }
.store__stack small { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.store__stack b { font-size: 9px; font-weight: 500; letter-spacing: .04em; }
.store--soon { opacity: .5; background: transparent; }
.store--soon:hover { transform: none; background: transparent; }

/* 緩急をつけた、余白のある紹介ページ。 */
.latest { display: flex; align-items: center; gap: 35px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.latest__label { font-size: 9px; letter-spacing: .18em; flex: 0 0 70px; }
.latest > a { display: flex; align-items: center; gap: 24px; min-width: 0; flex: 1; text-decoration: none; }
.latest time { color: var(--ink-soft); flex-shrink: 0; }
.latest a > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.latest i { margin-left: auto; font-size: 19px; font-style: normal; }
.introduction { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: center; padding: 112px 0 84px; }
.introduction .feature-title { font-size: clamp(36px,4vw,56px); line-height: 1.5; }
.introduction__art { position: relative; }
.introduction__art::before { content: ""; position: absolute; inset: -12% 4% 6%; z-index: -1; border-radius: 50%; background: #eef0e4; }
.introduction__art img { width: 100%; }
.introduction__art > p { margin-top: 28px; font-family: var(--font-display); letter-spacing: .08em; font-size: 13px; text-align: center; }
.introduction__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.introduction__facts li { padding: 24px 0; display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 12px; }
.introduction__facts li + li { border-left: 1px solid var(--line); }
.introduction__facts span { font-family: var(--font-display); color: #8a917f; font-size: 11px; }
.story-feature { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: center; padding: 40px 0 120px; }
.story-feature__art img { width: 100%; mix-blend-mode: multiply; }
.story-feature__art figcaption { text-align: center; font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; margin-top: 20px; color: var(--ink-soft); }
.story-feature .feature-title { font-size: clamp(29px,3.1vw,42px); }
.gameplay { background: #eaf0e3; padding: 105px 0; }
.gameplay__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.gameplay__visual { display: grid; justify-items: center; position: relative; }
.gameplay__phone { width: 300px; max-width: 78%; padding: 7px; border-radius: 28px; background: #183327; box-shadow: 0 26px 50px rgba(32,59,50,.16); }
.gameplay__phone video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1084; border-radius: 21px; background: #183327; }
.gameplay__caption { font-size: 9px; color: var(--ink-soft); margin-top: 28px; }
.gameplay__movie-link { display: inline-flex; align-items: center; gap: 15px; margin-top: 10px; font-size: 11px; text-decoration: none; border-bottom: 1px solid #b5c2ad; padding: 3px 0; }
.gameplay__movie-link:hover { color: var(--moss); }
.play-steps { margin-top: 30px; border-top: 1px solid #d2dccb; }
.play-steps li { display: flex; gap: 24px; align-items: flex-start; border-bottom: 1px solid #d2dccb; padding: 17px 0; }
.play-steps li > span { font-family: var(--font-display); font-size: 11px; padding-top: 2px; color: #71836b; }
.play-steps h3 { font-size: 14px; font-weight: 700; }
.play-steps p { font-size: 11px; color: var(--ink-soft); margin-top: 3px; font-weight: 400; }
.companions { padding: 110px 0 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-heading .feature-text { margin-top: 0; margin-bottom: 8px; font-size: 12px; }
.companions__list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.companion { position: relative; display: flex; flex-direction: column; text-decoration: none; padding: 26px 28px; border-radius: 12px; background: #edf0e1; overflow: hidden; transition: transform .3s; }
.companion:hover { transform: translateY(-5px); }
.companion--fire { background: #f3e8dd; }
.companion--water { background: #e3eded; }
.companion__element { font-size: 10px; letter-spacing: .1em; color: #6c755c; }
.companion--fire .companion__element { color: #96705a; }
.companion--water .companion__element { color: #62898a; }
.companion > img { height: 245px; width: 100%; object-fit: contain; padding: 15px 0 10px; margin: 10px 0 20px; transition: transform .4s; }
.companion:hover > img { transform: scale(1.04); }
.companion__body { position: relative; margin-top: auto; }
.companion h3 { font-family: var(--font-display); font-size: 27px; letter-spacing: .08em; }
.companion p { font-size: 10px; font-weight: 400; color: var(--ink-soft); margin-top: 8px; }
.companion__arrow { position: absolute; right: 0; top: 4px; font-size: 22px; }
.collection { margin-top: 55px; }
.collection__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.collection__head > p { font-family: var(--font-display); font-size: 17px; letter-spacing: .06em; }
.collection__controls { display: flex; gap: 8px; }
.deck__arrow { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: transparent; border: 1px solid #cbd4c3; border-radius: 50%; font-size: 18px; cursor: pointer; transition: background .2s; }
.deck__arrow:hover { background: #e6ebdd; }
.deck__arrow:disabled { opacity: .3; cursor: default; }
.deck__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #bfcbb5 transparent; padding-bottom: 16px; }
.deck__item { flex: 0 0 154px; scroll-snap-align: start; }
.piece { display: grid; gap: 12px; text-align: center; text-decoration: none; }
.piece__shape { display: flex; align-items: center; justify-content: center; height: 156px; padding: 18px; border-radius: 10px; background: #eceee3; transition: background .2s; }
.piece:hover .piece__shape { background: #e1e7d7; }
.piece__art { height: 100%; width: 100%; object-fit: contain; transition: transform .3s; }
.piece:hover .piece__art { transform: translateY(-3px); }
.piece__name { font-size: 11px; font-weight: 500; }
.piece--boss .piece__art { opacity: .22; }
.collection > .text-link { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.world-feature { color: var(--cream); background: var(--forest-deep); padding: 85px 0 55px; }
.world-feature__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px 70px; align-items: center; }
.world-feature .section-label { color: #b9c9aa; }
.world-feature .section-label > span { color: #8aab83; }
.world-feature .feature-text { color: #c0cbbb; }
.world-feature .text-link:hover { color: #bccc9b; }
.world-feature__art { overflow: hidden; border-radius: 12px; }
.world-feature__art img { width: 100%; aspect-ratio: 1.05; object-fit: cover; }
.destinations { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.destinations a { display: flex; gap: 18px; align-items: center; padding: 25px 0; border-top: 1px solid #496451; text-decoration: none; }
.destinations__no { font-family: var(--font-display); font-size: 11px; color: #9baa8f; }
.destinations h3 { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.destinations p { font-size: 10px; color: #c0cbbb; margin-top: 6px; font-weight: 400; }
.destinations a > span:last-child { margin-left: auto; font-size: 22px; transition: transform .2s; }
.destinations a:hover > span:last-child { transform: translate(2px,-2px); }
.shop-feature { display: grid; grid-template-columns: 1fr .85fr; gap: 55px 90px; align-items: center; padding: 105px 0 80px; }
.shop-feature__keeper img { max-width: 310px; width: 85%; margin-inline: auto; }
.shop-feature__keeper figcaption { font-family: var(--font-display); font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 24px; letter-spacing: .08em; }
.wares { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 25px; padding-top: 40px; border-top: 1px solid var(--line); }
.ware { text-align: center; }
.ware img { width: 75px; height: 75px; object-fit: contain; margin: 0 auto 18px; }
.ware h3 { font-size: 12px; font-weight: 700; }
.ware small { display: block; font-size: 10px; color: #7e805e; margin-top: 5px; }
.ware p { margin-top: 10px; color: var(--ink-soft); font-size: 10px; font-weight: 400; line-height: 1.8; }
.updates { display: grid; grid-template-columns: .8fr 2fr; gap: 70px; padding: 65px 0 100px; }
.updates .feature-title { font-size: 35px; }
.updates__list li { border-bottom: 1px solid var(--line); }
.updates__list li:first-child { border-top: 1px solid var(--line); }
.updates__list a { display: grid; grid-template-columns: 78px 65px minmax(0,1fr) 20px; align-items: center; gap: 22px; padding: 27px 0; text-decoration: none; transition: color .2s; }
.updates__list a:hover { color: var(--moss); }
.updates time { color: var(--ink-soft); font-size: 10px; }
.updates__type { font-size: 9px; color: #5e7254; padding: 2px 8px; background: #e8ecdf; text-align: center; border-radius: 3px; }
.updates__title { font-size: 13px; line-height: 1.8; }
.updates__arrow { font-size: 19px; }
.updates__empty { color: var(--ink-soft); padding: 25px 0; font-size: 12px; }
.your-youkai { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 35px 0 55px; border-top: 1px solid var(--line); }
.your-youkai .section-label { margin-bottom: 14px; }
.your-youkai h2 { font-family: var(--font-display); font-size: 23px; letter-spacing: .06em; }
.your-youkai p:not(.section-label) { font-size: 11px; color: var(--ink-soft); font-weight: 400; margin-top: 10px; }
.your-youkai .text-link { flex-shrink: 0; margin-top: 0; }
.download { background: #213f32; color: var(--cream); padding: 80px 0; }
.download__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 65px; }
.download .section-label { color: #b6c5a8; }
.download .feature-title { font-size: clamp(32px,3.4vw,48px); }
.download__name { font-size: 14px; margin-top: 25px; }
.download__name > span { display: inline-block; margin-left: 14px; font-size: 10px; color: #c0cbbb; font-weight: 400; }
.download__stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 27px; }
.download__art { width: 100%; }
body.is-top .site-footer { margin-top: 0; }

.top-motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .75s, transform .75s var(--ease-out); }
.top-motion [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 1100px) {
  .section-heading { gap: 25px; }
  .introduction, .gameplay__inner, .world-feature__inner, .download__inner { gap: 45px; }
  .story-feature { gap: 40px; }
  .companion { padding: 24px 20px; }
  .companion > img { height: 220px; }
  .companion p { max-width: 150px; }
  .companion h3 { font-size: 24px; }
  .destinations { gap: 22px; }
  .destinations a { gap: 12px; }
  .destinations p { font-size: 9px; }
  .wares { gap: 20px; }
}
@media (max-width: 900px) {
  /* PCと同じ一枚の背景に文字を重ね、スクロール演出を保つ。 */
  .jhero { height: 320vh; height: 320svh; }
  .jhero__stage { top: var(--hero-header-offset,var(--header-h)); height: calc(100vh - var(--hero-header-offset,var(--header-h))); height: calc(100svh - var(--hero-header-offset,var(--header-h))); height: calc(100dvh - var(--hero-header-offset,var(--header-h))); }
  .jhero.is-ready .jhero__stage { container: hero / size; }
  .jhero__poster, .jhero__canvas { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
  .jhero__veil { background: linear-gradient(90deg,rgba(12,27,19,.5),rgba(12,27,19,.08) 80%),linear-gradient(0deg,rgba(12,27,19,.6),transparent 50%); }
  .jhero__copy { inset: 24px 24px 110px; transform: none; align-content: center; max-width: none; }
  .jhero__eyebrow { font-size: 10px; margin-bottom: 22px; }
  .jhero__eyebrow span { font-size: 7px; }
  .jhero__title { font-size: clamp(22px,5.8vw,36px); letter-spacing: .05em; line-height: 1.55; }
  .jhero__lead { font-size: 11px; margin-top: 16px; line-height: 1.8; }
  .jhero__finale { inset: 24px 24px 110px; gap: 14px; }
  .jhero__logo { width: min(260px,65vw); }
  .jhero__catch { width: min(300px,82vw); }
  .jhero__rail { bottom: 24px; left: 24px; gap: 6px; }
  .jhero__rail li { width: 22px; font-size: 8px; }
  .jhero__skip { right: 80px; bottom: 20px; gap: 18px; font-size: 10px; }
  .jhero__cue { left: 24px; bottom: 84px; }
  /* 静止表示でも同じ背景に本文とストア案内を重ね、必要な高さを確保する。 */
  .jhero.is-static .jhero__stage { display: grid; align-content: center; gap: 24px; height: auto; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding: 32px 24px 96px; }
  .jhero.is-static .jhero__copy { position: relative; inset: auto; align-content: start; }
  .jhero.is-static .jhero__finale { position: relative; inset: auto; gap: 12px; }
  .jhero.is-static .jhero__logo { width: min(180px,50vw); }
  .jhero.is-static .jhero__catch { width: min(260px,100%); }
  .jhero.is-static .jhero__cue { display: none; }
  .section-label { margin-bottom: 20px; }
  .feature-text { font-size: 13px; }
  .introduction { padding-top: 80px; gap: 30px; }
  .introduction .feature-title { font-size: 38px; }
  .introduction__facts li { font-size: 10px; gap: 12px; }
  .story-feature { padding-bottom: 80px; gap: 30px; }
  .story-feature .feature-title { font-size: 30px; }
  .gameplay { padding: 75px 0; }
  .gameplay__inner { gap: 35px; }
  .gameplay .feature-title { font-size: 33px; }
  .gameplay__phone { max-width: 85%; }
  .companions { padding: 80px 0; }
  .section-heading { display: block; }
  .section-heading .feature-text { margin-top: 20px; }
  .companions__list { gap: 14px; }
  .companion { padding: 22px 16px; }
  .companion > img { height: 190px; }
  .companion p { font-size: 9px; }
  .companion h3 { font-size: 23px; }
  .companion__arrow { top: 2px; font-size: 19px; }
  .world-feature { padding: 70px 0 35px; }
  .world-feature__inner { gap: 35px; }
  .destinations { grid-template-columns: 1fr; gap: 0; }
  .destinations a { padding: 22px 0; gap: 24px; }
  .destinations p { font-size: 11px; }
  .shop-feature { gap: 40px; padding: 75px 0 60px; }
  .wares { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; }
  .ware p { max-width: 190px; margin-inline: auto; }
  .updates { gap: 35px; grid-template-columns: .7fr 2fr; }
  .updates__list a { gap: 14px; grid-template-columns: 70px 60px minmax(0,1fr) 16px; }
  .updates__title { font-size: 12px; }
  .download__inner { gap: 30px; }
}
@media (max-width: 620px) {
  .desktop-break { display: none; }
  .mobile-break { display: block; }
  .feature-title { font-size: 30px; line-height: 1.55; letter-spacing: .05em; }
  .feature-text { font-size: 12px; margin-top: 23px; line-height: 2.1; }
  .section-label { font-size: 9px; gap: 14px; margin-bottom: 20px; }
  .text-link { font-size: 11px; margin-top: 27px; gap: 30px; }
  .latest { padding: 20px 0; gap: 15px; }
  .latest__label { flex-basis: 40px; font-size: 8px; }
  .latest > a { display: grid; grid-template-columns: minmax(0,1fr) 18px; gap: 3px 12px; font-size: 10px; }
  .latest time { grid-column: 1; font-size: 9px; }
  .latest a > span { grid-column: 1; }
  .latest i { grid-column: 2; grid-row: 1 / 3; }
  .introduction { grid-template-columns: 1fr; gap: 35px; padding: 65px 0 55px; }
  .introduction .feature-title { font-size: clamp(31px,8.2vw,42px); }
  .introduction__art { width: 100%; max-width: 420px; margin: 22px auto 0; }
  .introduction__art > p { font-size: 11px; margin-top: 22px; }
  .introduction__facts { grid-template-columns: 1fr; margin-top: 12px; }
  .introduction__facts li { justify-content: flex-start; gap: 22px; padding: 15px 5px; font-size: 11px; }
  .introduction__facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .story-feature { grid-template-columns: 1fr; padding: 20px 0 65px; gap: 35px; }
  .story-feature__art { order: 2; }
  .story-feature__art figcaption { font-size: 10px; margin-top: 14px; }
  .story-feature .feature-title { font-size: 30px; }
  .gameplay { padding: 65px 0 55px; }
  .gameplay__inner { grid-template-columns: 1fr; gap: 48px; }
  .gameplay__body { grid-row: 1; }
  .gameplay .feature-title { font-size: 30px; }
  .gameplay__phone { width: 260px; max-width: 84%; border-radius: 26px; padding: 6px; }
  .gameplay__phone video { border-radius: 20px; }
  .gameplay__caption { margin-top: 25px; }
  .play-steps { margin-top: 26px; }
  .play-steps h3 { font-size: 13px; }
  .play-steps p { font-size: 10px; }
  .companions { padding: 65px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading .feature-text { font-size: 11px; }
  .companions__list { grid-template-columns: 1fr; gap: 14px; }
  .companion { display: grid; grid-template-columns: 42% 1fr; padding: 20px; gap: 0 20px; min-height: 180px; }
  .companion__element { grid-column: 2; grid-row: 1; align-self: end; font-size: 9px; }
  .companion > img { grid-column: 1; grid-row: 1 / 3; height: 170px; margin: 0; padding: 0; }
  .companion__body { grid-column: 2; grid-row: 2; margin-top: 7px; align-self: start; }
  .companion h3 { font-size: 24px; }
  .companion p { font-size: 10px; line-height: 1.8; max-width: none; }
  .companion__arrow { position: static; display: block; margin-top: 10px; font-size: 20px; }
  .collection { margin-top: 35px; }
  .collection__head > p { font-size: 13px; letter-spacing: .01em; }
  .collection__head { gap: 10px; }
  .collection__controls { gap: 6px; }
  .deck__arrow { width: 34px; height: 34px; font-size: 15px; }
  .deck__track { gap: 12px; }
  .deck__item { flex-basis: 128px; }
  .piece__shape { height: 140px; padding: 16px; }
  .piece__name { font-size: 10px; }
  .world-feature { padding: 65px 0 25px; }
  .world-feature__inner { grid-template-columns: 1fr; gap: 35px; }
  .world-feature__art { border-radius: 8px; }
  .world-feature__art img { aspect-ratio: 1.12; }
  .destinations a { gap: 20px; padding: 20px 0; }
  .destinations h3 { font-size: 18px; }
  .destinations p { font-size: 10px; }
  .shop-feature { grid-template-columns: 1fr; gap: 35px; padding: 65px 0 45px; }
  .shop-feature__keeper img { width: 210px; }
  .shop-feature__keeper figcaption { font-size: 11px; margin-top: 16px; }
  .wares { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 22px; padding-top: 32px; }
  .ware img { width: 65px; height: 65px; margin-bottom: 12px; }
  .ware small { font-size: 9px; }
  .ware p { font-size: 9px; margin-top: 7px; }
  .updates { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 60px; }
  .updates__head { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .updates__head .section-label { grid-column: 1 / -1; margin-bottom: 15px; }
  .updates .feature-title { font-size: 29px; }
  .updates__head .text-link { margin-top: 0; }
  .updates__list a { grid-template-columns: 70px 65px 1fr 18px; gap: 12px; padding: 22px 0; }
  .updates__title { grid-column: 1 / 4; grid-row: 2; font-size: 12px; }
  .updates__arrow { grid-column: 4; grid-row: 1 / 3; }
  .your-youkai { display: block; padding: 30px 0 45px; }
  .your-youkai h2 { font-size: 20px; }
  .your-youkai .text-link { margin-top: 22px; }
  .your-youkai p:not(.section-label) { font-size: 10px; }
  .download { padding: 60px 0 50px; }
  .download__inner { grid-template-columns: 1fr; gap: 38px; }
  .download .feature-title { font-size: 33px; }
  .download__name { font-size: 12px; }
  .download__name > span { font-size: 9px; }
  .download__stores { gap: 9px; }
  .store { min-width: 0; padding: 10px 14px; gap: 6px; }
  .store svg { width: 22px; height: 22px; }
  .store__stack small { font-size: 16px; }
  .store__stack b { font-size: 8px; }
  .download__art { max-width: 360px; margin-inline: auto; }
}
/* 短い画面では文字とロゴも縮め、下の操作領域と重ねない。 */
@media (max-width: 900px) and (max-height: 560px) {
  .jhero__copy { inset: 12px 24px 64px; }
  .jhero__eyebrow { font-size: 8px; line-height: 1.6; margin-bottom: 8px; }
  .jhero__eyebrow span { font-size: 6px; }
  .jhero__title { font-size: clamp(14px,min(2.7vw,5svh),22px); line-height: 1.4; }
  .jhero__lead { font-size: 10px; margin-top: 10px; line-height: 1.7; }
  .jhero__finale { inset: 12px 24px 64px; gap: 8px; }
  .jhero__logo { width: min(130px,30vw); max-height: 60px; object-fit: contain; }
  .jhero__catch { width: min(210px,55vw); }
  .jhero__finale .store { padding: 6px 12px; }
  .jhero__finale .store__stack small { font-size: 14px; }
  .jhero__rail { bottom: 16px; }
  .jhero__skip { bottom: 10px; }
  .jhero__cue { top: 12px; right: 24px; bottom: auto; left: auto; }
}

/* ブラウザの操作バーでさらに狭くなる場合は、実際の表示領域を基準にする。 */
@container hero (max-height: 200px) {
  .jhero__copy { inset: 12px 24px 48px; }
  .jhero__eyebrow { display: none; }
  .jhero__finale { inset: 12px 24px 48px; gap: 4px; }
  .jhero__logo { width: 80px; max-height: 32px; }
  .jhero__catch { width: min(150px,50vw); }
  .jhero__rail { bottom: 10px; }
  .jhero__skip { bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .jhero { height: auto; }
  .jhero__stage { position: relative; top: 0; }
  .jhero__title .line > span { transform: none; }
  .jhero__mouse i { animation: none; }
  .top-motion [data-reveal] { opacity: 1; transform: none; }
  .companion, .companion > img, .piece__art, .store { transition: none; }
}
