/*
 * 入力方式、画面幅、動きの設定に応じた調整。
 * pointer:fine、広い幅、狭い幅、動き抑制の順で定義する。
 */
@media (hover: hover) and (pointer: fine) { .wobble:hover { transform: rotate(1.7deg) translateY(-2px); } }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .story-layout, .access-layout { grid-template-columns: 1fr; }
  .story-visual { max-width: 620px; margin-inline: auto; }
  .success-stamp { right: 12px; }
  .play-layout { grid-template-columns: 176px minmax(0, 1fr); gap: 22px; }
  .play-scene { grid-template-columns: .9fr 1.1fr; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campus-map { max-width: 760px; margin-inline: auto; }
}

@media (max-width: 768px) {
  :root { --section-y: 96px; }
  html { scroll-padding-top: 86px; }
  .header-inner { min-height: 66px; }
  .brand span:last-child { display: none; }
  .brand-plate { width: 48px; }
  .stamp-bar { top: 66px; }
  .hero { padding: 104px 0 54px; }
  .hero::before { background: linear-gradient(90deg, rgba(33,48,78,.75), rgba(33,48,78,.36)), linear-gradient(0deg, rgba(33,48,78,.64), transparent); }
  .hero-poster { max-width: 680px; }
  .hero-star { top: 23%; right: 2%; }
  .doodle--one { right: -60px; opacity: .62; }
  .how-head, .info-head, .schedule-head, .members-intro, .faq-layout, .final-panel { grid-template-columns: 1fr; display: grid; align-items: start; }
  .play-layout { grid-template-columns: 1fr; }
  .play-nav { grid-template-columns: repeat(4, 1fr); }
  .play-nav-item { grid-template-columns: 1fr; gap: 2px; padding: 8px; text-align: center; }
  .play-nav-item.is-active { transform: translateY(-4px); }
  .play-scenes { grid-template-columns: 1fr; }
  html.motion-ok .play-scenes, html.motion-ok .play-scene { min-height: 560px; }
  .play-scene { min-height: 0; }
  .rule-list { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-poster { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-layout { gap: 48px; }
  .footer-top { display: block; }
  .footer-links { margin-top: 32px; justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --solid-shadow: 4px 4px 0 var(--ink); }
  body { padding-bottom: 82px; }
  .section-title { font-size: 26px; line-height: 1.5; }
  .section-lead { line-height: 1.9; }
  .hero { min-height: 100svh; padding: 102px 0 42px; align-items: flex-start; }
  .hero-media img { object-position: 56% center; }
  .hero-poster { padding: 26px 21px 24px; border-width: 3px; box-shadow: 5px 5px 0 var(--red); }
  .intro-lockup { gap: 12px; }
  .intro-logo { width: 68px; height: 62px; }
  .hero-eyebrow { max-width: 22em; font-size: .65rem; }
  .hero h1 { max-width: 10em; margin-top: 16px; font-size: 34px; line-height: 1.35; }
  .hero-catch { margin-top: 13px; font-size: 18px; }
  .hero-chips { display: grid; gap: 7px; margin-top: 20px; }
  .hero-chip { min-height: 35px; padding: 7px 12px; font-size: .75rem; }
  .hero-actions { display: grid; gap: 9px; margin-top: 20px; }
  .button { min-height: 50px; padding: 10px 17px; }
  .hero-note { display: none; }
  .hero-star { top: 25%; right: -3px; }
  .doodle { display: none; }
  .marquee-zone { min-height: 88px; padding-block: 22px; }
  .tape-strip { top: 20px; }
  .tape-strip--second { display: none; }
  .story-layout { gap: 56px; }
  .polaroid { padding: 12px 12px 48px; transform: rotate(-1deg); }
  .letter { padding: 27px 21px; }
  .letter::before { top: 15px; right: 14px; width: 56px; height: 56px; font-size: .52rem; }
  .letter-label { max-width: 11em; padding-right: 58px; }
  .success-stamp { right: 8px; bottom: -50px; width: 105px; height: 105px; }
  .success-stamp strong { font-size: 1.8rem; }
  .secret-tease { margin-top: 66px; }
  .how-head { margin-bottom: 42px; }
  .play-nav-item span { display: none; }
  .play-nav-item b { font-size: 1.1rem; }
  html.motion-ok .play-scenes, html.motion-ok .play-scene { min-height: 536px; }
  .play-scene { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .scene-art svg { max-height: 255px; }
  .scene-copy h3 { font-size: 24px; }
  .scene-copy p { font-size: .87rem; line-height: 1.8; }
  .scene-chip { margin-top: 13px; }
  .rules-board { margin-top: 46px; padding: 25px 20px; }
  .counter-grid { gap: 10px; margin-top: 42px; }
  .counter-card { min-height: 142px; padding: 18px 14px; }
  .counter-value { font-size: 42px; }
  .counter-label { font-size: .82rem; }
  .info-poster { margin-top: 58px; padding: 28px 20px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .schedule-board { grid-template-columns: 1fr; }
  .day-ticket { padding: 23px 18px; }
  .time-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .time-grid time { font-size: .68rem; }
  .access-layout { margin-top: 64px; }
  .campus-map { padding: 10px; }
  .campus-map text { font-size: 12px; }
  .campus-map .map-small { font-size: 9px; }
  .members-number strong { font-size: 72px; }
  .team-photo { margin-top: 48px; padding: 10px 10px 46px; }
  .member-grid { grid-template-columns: 1fr; gap: 14px; }
  .member-card { display: grid; grid-template-columns: 94px 1fr; gap: 0 18px; align-items: center; padding: 20px; }
  .avatar { grid-row: 1 / span 3; width: 92px; height: 92px; margin: 0; }
  .member-role, .member-name { text-align: left; }
  .member-name { font-size: 1.2rem; }
  .member-quote { grid-column: 1 / -1; }
  .desk-doodle { padding: 22px 72px 22px 18px; }
  .members-star { right: 13px; }
  .faq-item summary { min-height: 76px; padding-right: 50px; }
  .faq-answer { padding-right: 12px; }
  .final-panel { padding: 27px 20px; }
  .final-panel h2 { font-size: clamp(19px, 6.15vw, 40px); }
  .mobile-event-bar { display: flex; }
  .secret-modal { padding: 13px; }
  .secret-dialog { padding: 44px 18px 24px; }
  .envelope-pocket { height: 175px; }
  .envelope-flap { height: 112px; }
  .secret-dialog.is-opened .secret-reveal { min-height: 196px; }
  .pointer-star { display: none !important; }
}

@media (max-width: 390px) {
  .stamp-count { font-size: .7rem; }
  .hero h1 { font-size: 32px; }
  .hero-eyebrow { font-size: .59rem; }
  .mobile-event-copy { font-size: .66rem; }
  .mobile-event-bar a { padding-inline: 10px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  html.js:not(.intro-done) .hero-poster, html.js:not(.intro-done) .hero-chips, html.js:not(.intro-done) .hero-actions, html.js:not(.intro-done) .hero-note { opacity: 1 !important; }
  .reveal-item { opacity: 1 !important; transform: none !important; }
  .marker i { transform: rotate(-1.5deg) !important; }
  .marquee-track { transform: none !important; }
  .pointer-star, .confetti-piece { display: none !important; }
  .play-layout { grid-template-columns: 1fr !important; }
  .play-scenes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; min-height: 0 !important; }
  .play-scene { position: relative !important; inset: auto !important; min-height: 440px !important; opacity: 1 !important; clip-path: none !important; transform: none !important; }
  .play-nav { display: none; }
  .envelope-flap { transform: none !important; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .play-scenes { grid-template-columns: 1fr !important; }
  .play-scene { min-height: 0 !important; }
}
