@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-14px);
  }
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #020810;
}
* {
  box-sizing: border-box;
}
/* PC（マウス操作）のみ、矢印カーソルをちびきん（x_chibikin）に差し替え */
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor:
      url("/ast/images/100_space-salon/x_chibikin.png") 16 16,
      auto;
  }
}
#space-wrapper {
  position: relative;
  height: 100vh; /* 非対応ブラウザ向けフォールバック */
  height: 100svh; /* モバイルのアドレスバー開閉で高さが変動しない、最小のビューポート高さに固定 */
  overflow: hidden;
}
/* モバイル軽量化の適用条件（v7）：幅768px未満は無条件、768〜1024pxはタッチデバイス
       （hover:none かつ pointer:coarse）の場合のみ対象にする。同じ幅のノートPCの狭い
       ウィンドウを誤って軽量化対象にしないための組み合わせ条件。JS側（computeIsMobile）も
       同じ基準にしている。このファイル内、以降すべての @media (max-width:767px), ... は同一条件 */
/* v8でscroll-snapを撤去：v6で導入した「トップ画面を丸ごと切り替える」scroll-snapは、
       proximityに変更した後もなお「スクロールしづらい」「スクロール中に本文が一瞬表示されない」
       という不具合が残ったため、モバイル・タブレットでは通常の連続スクロールに戻した */
#space {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse at 30% 40%,
    #0d1b4b 0%,
    #050d24 45%,
    #020810 100%
  );
}
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.07;
  pointer-events: none;
  transition: background-color 10s ease;
}
.stars-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur) ease-in-out infinite;
  animation-delay: var(--del);
}
.title-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Jost", sans-serif;
  font-size: clamp(28px, 5.5vw, 54px);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: #ffffff;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}
/* モバイルは吹き出しでの案内を出さないため、SPACEの下に固定の案内文を出す（PCは非表示） */
.title-hint {
  display: none;
}
@media (max-width: 767px),
  (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .title-hint {
    display: block;
    position: absolute;
    top: calc(20% + clamp(28px, 5.5vw, 54px) * 1.15 + 14px);
    left: 50%;
    transform: translateX(-50%);
    font-family: sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: rgba(200, 220, 255, 0.75);
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
  }
}
canvas#orbitCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.center-image {
  position: absolute;
  top: calc(50% - 10px);
  left: 50%;
  width: clamp(85px, 11vw, 130px);
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@keyframes kinJumpShake {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: brightness(1);
  }
  8% {
    transform: translate(-50%, -50%) scale(0.88) rotate(-4deg);
    filter: brightness(1);
  }
  22% {
    transform: translate(-50%, -88%) scale(1.12) rotate(6deg);
    filter: brightness(1.3) drop-shadow(0 0 18px rgba(120, 200, 255, 0.85));
  }
  32% {
    transform: translate(-50%, -84%) scale(1.1) rotate(-6deg);
    filter: brightness(1.25) drop-shadow(0 0 14px rgba(120, 200, 255, 0.7));
  }
  42% {
    transform: translate(-50%, -80%) scale(1.1) rotate(5deg);
    filter: brightness(1.25) drop-shadow(0 0 14px rgba(120, 200, 255, 0.7));
  }
  52% {
    transform: translate(-50%, -76%) scale(1.08) rotate(-4deg);
    filter: brightness(1.2);
  }
  60% {
    transform: translate(-50%, -62%) scale(1.06) rotate(3deg);
    filter: brightness(1.1);
  }
  68% {
    transform: translate(-50%, -56%) scale(1.05) rotate(-3deg);
    filter: brightness(1.1);
  }
  76% {
    transform: translate(-50%, -52%) scale(1.04) rotate(2deg);
  }
  84% {
    transform: translate(-50%, -51%) scale(1.02) rotate(-1deg);
  }
  92% {
    transform: translate(-50%, -50%) scale(0.98) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: brightness(1);
  }
}
.center-image.kin-zoom {
  animation: kinJumpShake 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.center-image img {
  width: 100%;
  height: auto;
  display: block;
}
.glow-ring {
  position: absolute;
  top: calc(50% - 10px);
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(100, 160, 255, 0.08);
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}
.planet-el {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  will-change: transform, opacity;
  transform-origin: center center;
  user-select: none;
}
/* モバイル専用（v8）：惑星は日付ベースで1回だけ静的配置するため、box-shadowの毎フレーム
       再計算の代わりに、固定サイズの疑似要素＋固定opacityでグローを表現する。位置も二度と
       動かないため、will-changeによる常時コンポジットレイヤー確保も不要にする */
@media (max-width: 767px),
  (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .planet-el {
    will-change: auto;
  }
  .planet-el::before {
    content: "";
    position: absolute;
    inset: -45%;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      var(--glow-color, transparent) 0%,
      transparent 70%
    );
    opacity: var(--glow-opacity, 0);
    pointer-events: none;
    z-index: -1;
  }
  /* 星の明滅アニメーションは常時コンポジット対象になり続けるため、モバイルでは静止させる */
  .star {
    animation: none;
  }
}
.planet-icon {
  line-height: 1;
  pointer-events: none;
  cursor: pointer;
}
.planet-text {
  font-family: sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}
.planet-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(8px, 1.2vw, 11px);
  font-family: sans-serif;
  color: rgba(200, 220, 255, 0.85);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s;
}
@keyframes bubbleIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.7) translateY(6px);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}
@keyframes bubbleOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85) translateY(-8px);
  }
}
#speech-bubble,
#chibi-bubble {
  position: absolute;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
}
#speech-bubble {
  max-width: min(280px, 72vw);
}
#chibi-bubble {
  max-width: min(200px, 60vw);
}
/* 共通構造 */
#speech-bubble .bubble-inner,
#chibi-bubble .bubble-inner {
  border-radius: 20px;
  padding: 10px 18px;
  white-space: pre-line;
  word-break: keep-all;
  line-height: 1.6;
  backdrop-filter: blur(12px);
  position: relative;
}
/* きんちゃん吹き出し — 掲示板と同じすりガラス */
#speech-bubble .bubble-inner {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(100, 160, 255, 0.6);
  font-family: sans-serif;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.04em;
  color: rgba(210, 235, 255, 0.92);
  box-shadow: 0 0 18px 2px rgba(80, 160, 255, 0.12);
}
/* ちびきん吹き出し — 暖色・ポップ */
#chibi-bubble .bubble-inner {
  background: rgba(255, 235, 160, 0.18);
  border: 1px solid rgba(255, 210, 90, 0.55);
  border-radius: 16px;
  font-family: sans-serif;
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 248, 215, 0.97);
  box-shadow: 0 0 20px 3px rgba(220, 160, 40, 0.22);
}
#chibi-bubble .bubble-inner::after,
#chibi-bubble .bubble-inner::before {
  display: none;
}
#speech-bubble .bubble-inner::after,
#chibi-bubble .bubble-inner::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid rgba(255, 255, 255, 0.14);
}
#speech-bubble .bubble-inner::before,
#chibi-bubble .bubble-inner::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid rgba(140, 200, 255, 0.35);
}
#speech-bubble.show,
#chibi-bubble.show {
  animation: bubbleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#speech-bubble.hide,
#chibi-bubble.hide {
  animation: bubbleOut 0.35s ease-in forwards;
}
#truck {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  width: clamp(80px, 10vw, 140px);
  height: auto;
  display: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}
@keyframes truckRun {
  from {
    left: 105%;
  }
  to {
    left: -200px;
  }
}
#truck.truck-run {
  animation: truckRun linear;
}
#blackout {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.65s ease;
}
#blackout.active {
  opacity: 1;
  pointer-events: all;
}
@keyframes floatChibi {
  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes chibiShake {
  0% {
    transform: translateX(0) rotate(-2deg);
  }
  12% {
    transform: translateX(-6px) rotate(-8deg);
  }
  25% {
    transform: translateX(6px) rotate(6deg);
  }
  37% {
    transform: translateX(-5px) rotate(-6deg);
  }
  50% {
    transform: translateX(5px) rotate(5deg);
  }
  62% {
    transform: translateX(-4px) rotate(-4deg);
  }
  75% {
    transform: translateX(4px) rotate(4deg);
  }
  87% {
    transform: translateX(-2px) rotate(-2deg);
  }
  100% {
    transform: translateX(0) rotate(-2deg);
  }
}
#chibikin-hint {
  position: absolute;
  left: calc(clamp(12px, 3vw, 28px) + 20px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
#chibikin-hint img {
  width: clamp(30px, 4.5vw, 46px);
  height: auto;
  display: block;
  animation: floatChibi 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(160, 200, 255, 0.4));
  pointer-events: all;
  cursor: pointer;
}
#chibikin-hint img.chibi-shake {
  animation: chibiShake 0.55s ease-in-out;
}

/* ── 惑星タップ時に、選んだ惑星のカードのアイコン横まで動いてくるちびきん ── */
#chibikin-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(28px, 4vw, 40px);
  height: auto;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(160, 200, 255, 0.5));
  transition:
    top 0.75s cubic-bezier(0.65, 0, 0.35, 1),
    left 0.75s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.3s ease;
}
#chibikin-marker.active {
  opacity: 1;
}

/* ── SPACEガイド（銀河系の構造ガイド） ─────────────────── */
#space-guide {
  position: relative;
  background: #020810;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 60px)
    clamp(64px, 10vw, 120px);
  color: rgba(220, 235, 255, 0.9);
}
.guide-inner {
  max-width: 840px;
  margin: 0 auto;
}
.guide-kicker {
  display: block;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(160, 210, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.guide-title {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 clamp(40px, 6vw, 56px);
}
.guide-lead {
  font-family: sans-serif;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.9;
  color: rgba(200, 220, 255, 0.75);
  margin: 0 0 clamp(32px, 5vw, 48px);
}
.guide-section {
  margin-bottom: clamp(44px, 7vw, 68px);
}
.guide-section:last-child {
  margin-bottom: 0;
}
.guide-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.5vw, 26px);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(100, 160, 255, 0.25);
}
.guide-section-no {
  display: inline-flex;
  align-items: center;
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(160, 210, 255, 0.85);
}
.guide-section-title {
  margin: 0;
  font-family: sans-serif;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}
.guide-lore {
  font-family: sans-serif;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 2;
  color: rgba(210, 228, 255, 0.85);
}
.guide-lore > p {
  margin: 0 0 1.5em;
}
.guide-lore-block {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(120, 180, 255, 0.45);
  border-radius: 4px 12px 12px 4px;
  padding: clamp(16px, 2.4vw, 24px) clamp(18px, 2.6vw, 28px);
  margin-bottom: clamp(18px, 2.6vw, 24px);
}
.guide-lore-block:last-child {
  margin-bottom: 0;
}
/* ── タップで開閉する見出し行（旧: 常時表示だったtitle。tips化） ── */
.guide-lore-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 16.5px);
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.guide-lore-chevron {
  margin-left: auto;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: rgba(160, 210, 255, 0.75);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.guide-lore-block-title[aria-expanded="true"] .guide-lore-chevron {
  transform: rotate(90deg);
}
/* grid-template-rows を 0fr→1fr に遷移させ、高さをなめらかに開閉する */
.guide-lore-block-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.guide-lore-block-body-wrap.is-open {
  grid-template-rows: 1fr;
}
/* 開いたときの見出しとの間隔はここ（グリッドの行と一緒に伸縮するトラック内側）に置く。
       以前は.is-openにmargin-topを付けていたが、marginはtransition対象に入っておらず
       瞬時に切り替わるため、grid-template-rowsのなめらかな動きとズレて「カクッ」と
       ずれて見える不具合があった。paddingならトラックのサイズ変化と一緒に滑らかに収縮する */
.guide-lore-block-body-inner {
  min-height: 0;
  overflow: hidden;
  padding-top: 10px;
}
.guide-lore-block p {
  margin: 0;
}
.guide-lore-block p + p {
  margin-top: 1.2em;
}
@media (prefers-reduced-motion: reduce) {
  .guide-lore-block-body-wrap,
  .guide-lore-chevron {
    transition: none;
  }
}
.guide-arms {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}
.guide-arm {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(100, 160, 255, 0.25);
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 26px);
  backdrop-filter: blur(10px);
}
.guide-arm-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(120, 180, 255, 0.35);
}
.guide-arm-icon {
  font-size: 27px;
  line-height: 1;
}
.guide-arm-tag {
  display: block;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: rgba(185, 220, 255, 0.95);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.guide-arm-name {
  margin: 0;
  font-family: sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}
.guide-star-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-star-list li + li {
  margin-top: clamp(14px, 2vw, 20px);
}

/* ── 一覧の一番下、トップページへ戻るボタン ── */
.guide-back {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 5vw, 48px);
}
.guide-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 42px;
  border: 1px solid rgba(100, 160, 255, 0.5);
  border-radius: 30px;
  background: rgba(30, 60, 120, 0.35);
  color: rgba(200, 225, 255, 0.9);
  font-family: sans-serif;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.guide-back-link:hover {
  background: rgba(60, 110, 200, 0.55);
  border-color: rgba(140, 190, 255, 0.8);
  color: #fff;
}
.guide-back-arrow {
  font-size: 1.2em;
  line-height: 1;
}

/* ── 恒星カード（惑星タップ時はここへスクロールする） ── */
.guide-panel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 12px 12px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(100, 160, 255, 0.6);
  box-shadow:
    0 0 40px 0 rgba(60, 120, 255, 0.25),
    0 0 0 1px rgba(80, 140, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-height: clamp(110px, 16vw, 170px);
  text-decoration: none;
  color: inherit;
}
.guide-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(120, 180, 255, 0.5),
    transparent
  );
}
.guide-panel-image {
  flex-shrink: 0;
  width: auto;
  aspect-ratio: 240 / 320;
  align-self: stretch;
  border-radius: 14px 0 0 12px;
  overflow: hidden;
  border-right: 1px solid rgba(100, 160, 255, 0.25);
  background: rgba(10, 20, 50, 0.6);
  position: relative;
}
.guide-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}
.guide-panel-body {
  flex: 1;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 2.7vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-panel-header {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 14px);
  margin-bottom: 10px;
}
.guide-panel-icon {
  width: clamp(38px, 5.2vw, 54px);
  height: clamp(38px, 5.2vw, 54px);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(17px, 2.6vw, 24px);
  box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.1);
}
.guide-panel-tag {
  font-family: sans-serif;
  font-size: clamp(8px, 1vw, 12px);
  letter-spacing: 0.25em;
  color: rgba(160, 210, 255, 0.95);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.guide-panel-title {
  font-family: sans-serif;
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 1);
  text-transform: uppercase;
}
.guide-panel-desc {
  font-family: sans-serif;
  font-size: clamp(11px, 1.3vw, 15px);
  line-height: 1.7;
  color: rgba(220, 235, 255, 0.9);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.guide-panel-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid rgba(100, 160, 255, 0.5);
  border-radius: 20px;
  background: rgba(30, 60, 120, 0.35);
  color: rgba(180, 220, 255, 0.9);
  font-family: sans-serif;
  font-size: clamp(10px, 1.3vw, 14px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
  white-space: nowrap;
}
.guide-panel:hover .guide-panel-link {
  background: rgba(60, 110, 200, 0.55);
  border-color: rgba(140, 190, 255, 0.8);
  color: #fff;
}
.guide-panel-link::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
}

/* ── モバイル軽量化：backdrop-filter（GPU負荷が高い）を無効化し、
       透過ぼかしの代わりに不透明度の高い単色背景で近い見た目を再現 ── */
@media (max-width: 767px),
  (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .guide-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 20, 42, 0.82);
  }
  /* ── コンテンツ幅をぎりぎりまで使えるよう、外側の囲い（背景・枠線・角丸・左右余白）を撤去する ── */
  .guide-arm {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #speech-bubble .bubble-inner,
  #chibi-bubble .bubble-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #speech-bubble .bubble-inner {
    background: rgba(20, 30, 55, 0.75);
  }
  #chibi-bubble .bubble-inner {
    background: rgba(70, 50, 10, 0.55);
  }

  /* ── 本文系のテキストは、モバイルでも最低14pxを確保する ── */
  .guide-lead,
  .guide-lore {
    font-size: 14px;
  }
  /* ── カード本文（guide-panel-desc）は、モバイルでは16px欲しいとの要望で個別に指定 ── */
  .guide-panel-desc {
    font-size: 16px;
  }

  /* ── 見出し系は、本文（14px）よりはっきり大きく見えるようサイズを底上げする ── */
  .guide-section-title {
    font-size: 18px;
  }
  .guide-lore-block-title {
    font-size: 16px;
  }
  .guide-panel-title {
    font-size: 17px;
  }
  /* ── タグ・ボタンの文字が小さすぎたため、モバイルで最低サイズを底上げ ── */
  .guide-panel-tag {
    font-size: 12px;
  }
  .guide-panel-link {
    font-size: 14px;
  }
  /* ── PC版のみ文字を一回り大きくした際、ここまで個別のモバイル指定がなかった
         見出し類はベース側のclamp上限を底上げすると影響を受けてしまうため、
         従来のモバイルサイズをここで明示的に固定しておく ── */
  .guide-kicker {
    font-size: 10px;
  }
  .guide-title {
    font-size: clamp(20px, 3vw, 28px);
  }
  /* ── INNER/OUTER ORBITの見出し（guide-arm-head）は、スマホでも目立たせたいため
         PCと同じ路線で底上げする（10px/16px → 12px/19px） ── */
  .guide-arm-tag {
    font-size: 12px;
  }
  .guide-arm-name {
    font-size: 19px;
  }
}

/* ── カードの縦積み（画像が上・テキストが下）は767px以下のみ対象。
       768〜1024pxのタッチデバイス（タブレット等）はPCと同じ横並び（row）を維持する ── */
@media (max-width: 767px) {
  .guide-panel {
    flex-direction: column;
  }
  .guide-panel-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 14px 14px 0 0;
    border-right: none;
    border-bottom: 1px solid rgba(100, 160, 255, 0.25);
  }
  .guide-panel-image img {
    width: 100%;
    height: auto;
    object-fit: initial;
  }
}
