/* 2026-10-03: 紙・原画・多色文字の世界観を保ち、文字に専用の余白を用意する。 */

/* タイトルは画面幅ではなく、実際に与えられた列の幅で決める。 */
.hero-grid { gap: 48px; max-width: 1280px; }
.hero-copy { container-type: inline-size; }
.hero-logo.poptitle { font-size: clamp(1.65rem, 7cqw, 3rem); line-height: 1.4; }
.mp-hero-title.poptitle {
  width: 100%; max-width: 100%;
  font-size: clamp(1.85rem, 11.4cqw, 5rem);
  line-height: 1.28; margin: 10px 0 24px;
}
.mp-hero-title .q-line:first-child { font-size: .78em; margin-bottom: .12em; }
.mp-hero-title .q-line:last-child .ch:last-child { transform: rotate(8deg); margin-left: 0; }
.logo-wrap { display: block; padding-right: 0; margin-bottom: 12px; }
.rotator { font-size: clamp(1rem, 3.4cqw, 1.35rem); line-height: 1.6; gap: .25em .35em; }
.mp-hero-sub { max-width: 100%; font-size: clamp(1rem, 2.9cqw, 1.125rem); line-height: 1.85; }
.hero-bg .blob { opacity: .42; }
.hero-bg .hero-sky { opacity: .4; }
.hero-visual-col { padding-top: 32px; }
.hero-visual-col .orbit { inset: auto; top: -20px; left: 26%; width: 140px; height: 16px; }
.hero-visual-col .orbit .sat { width: 30px; margin: -15px 0 0 -15px; }
.cursor.is-reading .cursor-sticker { opacity: 0; }
.hero-cast { margin-top: 22px; padding-top: 30px; }
.duty-ribbon { top: 0; left: 0; }
.hero-stamp { left: auto; right: -10px; top: -68px; width: 108px; }
.poster-window { width: 100%; }
.poster-cap { flex-wrap: wrap; row-gap: 4px; padding-top: 12px; }
.poster-cap-title { white-space: normal; overflow: visible; line-height: 1.6; }
.duty img.chara { height: auto; max-height: 190px; width: auto; }
.duty-list > li { flex: 1 1 0; justify-content: center; }
.duty-name { max-width: 100%; white-space: normal; line-height: 1.5; }

/* 見る・会う・遊ぶ。初めて来た人が迷わず選べる三つの入口。 */
.hero-paths { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-path {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 11px 18px; border: var(--line); border-radius: var(--r-pill);
  background: var(--paper-hi); color: var(--ink); box-shadow: var(--sh-step);
  font-size: .9375rem; font-weight: 900; text-decoration: none; line-height: 1.5;
  transition: transform .2s var(--ease-soft), box-shadow .2s;
}
.hero-path:first-child { background: var(--do); color: var(--paper-hi); }
.hero-path:last-child { background: var(--mi); }
.hero-path svg { width: 18px; height: 18px; flex: none; }
.hero-path:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (hover:hover) and (pointer:fine) {
  .hero-path:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
}

/* 行の境目に太い縁取りや飛び出す文字が当たらない。 */
.poptitle { line-height: 1.38; }
.mp-heading { padding: .1em .08em .2em; margin-left: -.08em; }
.mp-heading .mp-heading-inner { max-width: 100%; }

/* 各幅でヘッダーの居場所を確保。小さい画面では名称を省略しすぎない。 */
.header-bar { max-width: 1344px; margin-inline: auto; }
.header-actions { min-width: 0; }
.header-actions > * { flex-shrink: 0; white-space: nowrap; }
/* 下へ読んでいる間も、音と動きを止めるボタンは使える。 */
.site-header[data-hidden] { transform: none; }
.site-header[data-hidden] .header-bar { background: transparent; border-color: transparent; box-shadow: none; pointer-events: none; }
.site-header[data-hidden] .header-logo,
.site-header[data-hidden] .here,
.site-header[data-hidden] .ticker { visibility: hidden; pointer-events: none; }
.site-header[data-hidden] .header-actions { pointer-events: auto; }
.site-header[data-hidden] .header-actions .play-link { visibility: hidden; pointer-events: none; }

/* 券は左下の小さなスタンプ帳に。右下をペンギンに渡す。 */
.hud { left: 18px; right: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.hud-ticket { transform: none; }
.hud-card { min-width: 0; width: 88px; padding: 9px 9px 9px 18px; gap: 6px; background-position: 7px 0; }
.hud-title { font-size: .75rem; letter-spacing: 0; }
.walkers { left: 126px; right: 168px; }
.hud-row--met, .hud-k { display: none; }
.hud-row--stamps { justify-content: center; }
.hud-row--stamps .drum { font-size: 1.25rem; }
.hud-card::before, .hud-card::after { left: 0; width: 12px; height: 8px; }
.hud-sheet { left: 0; right: auto; transform-origin: 15% 100%; }
body:has(dialog[open]) .hud { visibility: hidden; pointer-events: none; }
.hud.is-control-overlap { visibility: hidden; opacity: 0; pointer-events: none; }
.night-title .title-phrase { display: inline-block; white-space: nowrap; }
.ep-watch-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ep-watch-links .btn { min-height: 48px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .site-header .toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-header .toggle { padding-inline: 8px; }
  .site-header .here { margin-left: 0; padding-inline: 8px; font-size: .8125rem; }
  .site-header .here-label { display: none; }
  .logo-text { font-size: 1.05rem; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .site-header .here { display: none; }
}
@media (max-width: 899px) {
  .hero-grid { gap: 56px; max-width: 660px; }
  .hero-visual-col { width: min(100%, 540px); justify-self: center; }
  .mp-hero-title.poptitle { font-size: clamp(2rem, 11.4cqw, 4.9rem); }
  .hero-logo.poptitle { font-size: clamp(1.5rem, 7cqw, 2.7rem); }
  .hero-stamp { width: 88px; right: 2px; top: -42px; }
}
@media (max-width: 599px) {
  .sec-hero { padding-bottom: 112px; }
  .hero-grid { gap: 44px; }
  .hero-logo.poptitle { font-size: 6.6cqw; }
  .mp-hero-title.poptitle { font-size: 11.1cqw; }
  .hero-paths { gap: 10px; margin-top: 22px; }
  .hero-path { flex: 1 1 calc(50% - 10px); padding: 10px 12px; font-size: .875rem; }
  .hero-path:first-child { flex-basis: 100%; }
  .hero-path svg { width: 16px; height: 16px; }
  .hero-visual-col { padding-top: 14px; }
  .hero-cast { margin-top: 18px; }
  .duty img.chara { max-height: 128px; }
  .duty-name { font-size: .8125rem; padding-inline: 5px; }
  .duty-name i { flex: 0 0 9px; width: 9px; height: 9px; }
  .header-logo { min-width: 0; gap: 7px; }
  .logo-mark { flex: none; }
  .logo-text { font-size: clamp(.7rem, 3vw, .95rem); }
  .header-bar { gap: 6px; padding-inline: 0; }
  .header-actions { gap: 6px; margin-left: auto; }
  .header-actions .toggle { width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .header-actions .toggle[data-toggle="motion"] { display: inline-flex; }
  .header-actions .map-btn { width: 44px; min-width: 44px; height: 44px; padding: 0; justify-content: center; }
  .header-actions .toggle-track { width: 30px; }
  .header-actions .toggle[aria-pressed="true"] .toggle-knob { transform: translateX(2px); animation: none; }
  .header-actions .toggle.is-anim[aria-pressed="false"] .toggle-knob { animation: none; }
  .hud { left: 12px; right: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .hud-card { width: 84px; height: 60px; padding: 6px 6px 6px 16px; }
  .walkers { left: 108px; right: 110px; }
  .hud-sheet { left: 12px; right: 12px; width: auto; }
  .night-title { font-size: clamp(1.8rem, 7.8vw, 2.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-path { transition: none; }
}
html[data-motion="off"] .hero-path { transition: none; }
