/* ==========================================================
   スマホメニュー（画面幅 900px 以下）
   メニューボタンとパネルは js/mobile-nav.js が自動生成します
   ========================================================== */
/* --- スマホ・タブレット（画面幅 900px 以下） --- */
@media (max-width: 900px) {
  body .header {
    z-index: 1002;
  }
  body .header nav {
    display: none !important;
  }
  .so-mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1004;
    width: 46px;
    height: 46px;
    padding: 11px 8px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .so-mobile-toggle i {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition:
      transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.25s,
      background 0.3s;
  }
  .so-mobile-toggle[aria-expanded="true"] i:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .so-mobile-toggle[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .so-mobile-toggle[aria-expanded="true"] i:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }
  .so-mobile-panel {
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: #0a0a0a;
    color: #fff;
    padding: 90px max(24px, 7vw) 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: none;
    transition:
      opacity 0.4s ease,
      transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0.4s;
    overflow-y: auto;
  }
  .so-mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .so-mobile-panel .so-mobile-caption {
    font:
      11px Arial,
      sans-serif;
    letter-spacing: 0.3em;
    color: #e00016;
    margin: 0 0 22px;
  }
  .so-mobile-links {
    display: flex;
    flex-direction: column;
  }
  .so-mobile-links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #343434;
    padding: clamp(12px, 3.1vh, 23px) 0;
    color: #fff;
    text-decoration: none;
    transform: translateY(14px);
    opacity: 0;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease,
      color 0.3s;
  }
  .so-mobile-panel.is-open .so-mobile-links a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(var(--so-index) * 55ms);
  }
  .so-mobile-links a:focus-visible {
    outline: 2px solid #e00016;
    outline-offset: 4px;
  }
  .so-mobile-links a:active {
    color: #e00016;
  }
  .so-mobile-links strong {
    font:
      700 clamp(25px, 7vw, 42px)/1 Arial,
      sans-serif;
    letter-spacing: -0.035em;
  }
  .so-mobile-links small {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #aaa;
    white-space: nowrap;
  }
  .so-mobile-panel .so-mobile-bottom {
    font:
      10px Arial,
      sans-serif;
    letter-spacing: 0.22em;
    color: #777;
    margin: 28px 0 0;
  }
  body.so-menu-open {
    overflow: hidden;
  }
}

/* --- PC（画面幅 901px 以上） --- */
@media (min-width: 901px) {
  .so-mobile-toggle,
  .so-mobile-panel {
    display: none !important;
  }
}

/* --- OSで「動きを減らす」設定にしている人向け：アニメーションを止める --- */
@media (prefers-reduced-motion: reduce) {
  .so-mobile-panel,
  .so-mobile-links a,
  .so-mobile-toggle i {
    transition: none !important;
  }
}
