/* ============================================
   playPLANT — Mobile overrides
   ============================================ */

@media (max-width: 880px) {

  html,
  body {
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
  }

  body {
    overflow-x: hidden;
  }

  .page {
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y pinch-zoom;
  }

  .site-header {
    padding: 16px 16px 12px;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: "brand social" "nav nav";
    gap: 10px;
    align-items: center;
  }

  .brand {
    grid-area: brand;
    gap: 8px;
  }

  .brand .logo-mark {
    width: 40px;
    height: 40px;
  }

  .brand .logo-text {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .social {
    grid-area: social;
    gap: 12px;
  }

  .social a {
    width: 18px;
    height: 18px;
  }

  .lang-toggle {
    font-size: 10px;
  }

  .nav {
    grid-area: nav;
    width: 100%;
    gap: 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .nav a {
    font-size: clamp(12px, 3.4vw, 16px);
    padding: 5px clamp(5px, 1.6vw, 10px);
    flex-shrink: 0;
  }

  .hero {
    padding: 6px 16px 30px;
  }

  .hero-frame {
    transform: rotate(0deg);
  }

  .hero-backing {
    display: none;
  }

  .hero-frame::before {
    display: none;
  }

  .hero-slide-inner {
    padding: 50px 18px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-slide-text {
    flex: none;
    width: 100%;
  }

  .hero-title-jp {
    font-size: 24px;
    line-height: 1.1;
  }

  .hero-title-en {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero-tagline {
    font-size: 11px;
    line-height: 1.5;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .hero-slide-art {
    flex: none;
    width: 100%;
    min-height: 90px;
    max-height: 100px;
  }

  .hero-cta-row {
    gap: 6px;
    flex-wrap: wrap;
  }

  .store-btn {
    min-width: 0;
    padding: 6px 8px;
    box-sizing: border-box;
    gap: 6px;
  }

  .store-btn .lbl .top {
    font-size: 7px;
    white-space: nowrap;
  }

  .store-btn .lbl .bot {
    font-size: 10px;
    white-space: nowrap;
  }

  .store-btn svg {
    width: 16px;
    height: 16px;
  }

  .modal-art,
  .game-modal .modal-art {
    width: 104px;
    height: 104px;
  }

  .game-modal .modal-sub-mobile {
    display: inline-flex;
    align-self: center;
    margin-bottom: 2px;
  }

  .game-modal .modal-sub-desktop {
    display: none;
  }

  .modal-title {
    font-size: 19px;
    line-height: 1.2;
  }

  .hero-tape {
    display: none;
  }

  .hero-tape-bottom {
    background: linear-gradient(90deg, #ffc94f 0%, #ffaf3a 100%);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
    min-height: 44px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
  }

  .hero-tape-bottom .msg {
    color: #ffffff;
    text-shadow: 2px 3px 2px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
    padding-left: 14px;
  }

  .hero-tape-bottom .stores {
    display: none;
  }

  .hero-arrow {
    width: 30px;
    height: 30px;
  }

  .hero-arrow.prev {
    left: 6px;
  }

  .hero-arrow.next {
    right: 6px;
  }

  .hero-dots {
    right: 16px;
    bottom: 0px;
  }

  .news {
    display: block;
    padding: 50px 20px 40px;
  }

  .news-viewport {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .news-viewport::-webkit-scrollbar {
    display: none;
  }

  .news-track {
    --news-gap: 14px;
    transform: none !important;
    transition: none;
  }

  .news-card {
    flex: 0 0 calc((100% - var(--news-gap)) / 2);
    scroll-snap-align: start;
  }

  .news-card .thumb {
    aspect-ratio: 1.7 / 1;
    border-radius: 1em 2.5em;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #f0f0ee;
    transition: border-radius 0.2s ease;
  }

  .news-arrow {
    display: none;
  }

  .news-card .title {
    font-size: 12px;
  }

  .news-card .excerpt {
    font-size: 10px;
  }

  .news-card .stores {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .news-card .stores .store-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 6px;
  }

  .news-card .stores .store-btn .lbl .top {
    font-size: 6px;
  }

  .news-card .stores .store-btn .lbl .bot {
    font-size: 9px;
  }

  .news-card .stores .store-btn svg {
    width: 14px;
    height: 14px;
  }

  .games {
    padding: 60px 20px 40px;
  }

  .games-inner {
    gap: 40px;
  }

  .games-block {
    align-items: stretch;
  }

  .sound-credits {
    margin-top: 0;
  }

  .games-footer {
    margin-top: 24px;
  }

  .sound-credit-button {
    align-self: center;
    font-size: 11px;
    padding: 7px 12px;
  }

  .apps-inner {
    gap: 40px;
  }

  .apps-block {
    margin-top: 40px;
    align-items: stretch;
  }

  .characters-section {
    padding: 60px 20px 60px;
  }

  .about-section {
    padding: 60px 20px 64px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
    text-align: center;
  }

  .about-mark img {
    width: 64px;
  }

  .about-copy {
    max-width: none;
  }

  .about-copy h3 {
    font-size: 26px;
  }

  .about-body {
    font-size: 13px;
    line-height: 1.95;
  }

  .chars-row {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
    scrollbar-width: none;
  }

  .chars-row::-webkit-scrollbar {
    display: none;
  }

  .chars-track {
    gap: 16px;
    transform: none !important;
    transition: none;
  }

  .chars-track.is-static {
    max-width: none;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .chars-scroll-wrap {
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
  }

  .chars-track .char-card {
    flex: 0 0 72px;
    scroll-snap-align: start;
  }

  .chars-track .char-card:first-of-type {
    padding-left: 20px;
    flex-basis: 80px;
    box-sizing: border-box;
  }

  .chars-track.is-static .char-card:first-of-type {
    padding-left: 0;
    flex-basis: 72px;
  }

  .chars-row .thumb-circle {
    width: 72px;
    flex-shrink: 0;
  }

  .chars-arrow.prev {
    display: none;
  }

  .chars-arrow.next {
    display: none;
  }

  .show-block.illust {
    max-width: 280px;
    margin: 0 auto;
  }

  .site-footer {
    padding: 40px 20px 28px;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
    right: 16px;
    bottom: 18px;
    font-size: 15px;
  }

  .footer-brand-button {
    padding: 6px 8px;
  }

  .footer-logo {
    width: 22px;
    height: 22px;
  }

  .footer-about-panel {
    max-width: 100%;
  }

  .footer-about-title {
    font-size: 14px;
    line-height: 1.65;
  }

  .footer-about-body {
    font-size: 11px;
    line-height: 1.9;
  }

  .footer-desc {
    font-size: 12px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 8px 14px;
    font-size: 10px;
  }

  .footer-sep {
    display: none;
  }

  .apps {
    padding: 60px 20px 60px;
  }

  .worlds-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 横に2個に変更！ */
    gap: 32px;
    /* 隙間も少し狭くすると綺麗です */
  }

  .world-thumb {
    width: 100px;
  }

  .sec-head h2 {
    font-size: 32px;
  }

  .sec-head .stickynote {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .world-thumb {
    width: 80px;
  }

  .worlds-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 横に1個（縦1列）に変更！ */
    gap: 24px;
    /* 隙間をさらに狭く */
  }

  .nav {
    gap: 4px;
    justify-content: flex-start;
  }

  .nav a {
    font-size: clamp(12px, 3.6vw, 15px);
    padding: 5px 5px;
  }
}
