/* spacewalker-page.css — GAME：SPACE WALKER の紹介
   HEARTBEAT-16・きもちの花の紹介ページ（product.css）と同じ組み方に、
   ゲームのネオンの色（シアン → マゼンタ → アンバー）だけを重ねる */


/* グラデーション：キービジュアルのタイトルと同じ、シアン → マゼンタ */
.sw .sw-tag,
.sw .point-no b,
.sw .pt-g,
.sw .sw-endname {
  background: linear-gradient(90deg, #3fd9ec 0%, #9b6cf0 50%, #ff4fd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 名前：白いカプセルに、黒の等幅 */
.sw .sw-name {
  line-height: 1.2;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: clamp(1.3rem, 5vw, 2.1rem);
  letter-spacing: 0.16em;
  word-spacing: -0.35em;
  padding-right: calc(clamp(26px, 5vw, 48px) - 0.16em);
}
.sw .sw-tag { display: block; white-space: normal; letter-spacing: 0.06em; font-size: clamp(1.15rem, 4.6vw, 1.9rem); margin-top: 26px; }
.sw .sw-tag span,
.sw .product-lead span { display: inline-block; }

/* 物語：中央に、短く */
/* 物語：POINT・PARTNER と同じく、絵と文章を左右に（絵は左） */
.sw-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin: 0 0 120px;
}
.sw-story-shot { margin: 0; }
.sw-story-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 36px rgba(40, 10, 70, 0.22); }
.sw-story .point-no .pn-label { opacity: 1; }

/* ポイントの絵は横長なので、列を広く */
.sw .point { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }
.sw .point:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.sw .point-shot img { border-width: 0; border-radius: 14px; box-shadow: 0 16px 36px rgba(40, 10, 70, 0.22); }

/* 8つのステージ：4つずつ2段 */
.sw-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 16px; }
.sw-grid figure { margin: 0; width: calc((100% - 48px) / 4); }   /* 最後の1枚（かくし）はまん中に */
.sw-grid img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 24px rgba(40, 10, 70, 0.18); }
.sw-grid figcaption { margin-top: 12px; }
.sw-grid figcaption b {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  word-spacing: -0.35em;
}
.sw-grid figcaption span {
  display: block;
  margin-top: 4px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* 締めの名前 */
.sw .sw-endname {
  display: inline-block;
  line-height: 1.3;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  letter-spacing: 0.18em;
  word-spacing: -0.35em;
}

@media (max-width: 760px) {
  .sw-story { grid-template-columns: 1fr; gap: 0; margin-bottom: 72px; text-align: center; }
  .sw-story-text { display: contents; }
  .sw-story .point-no { order: 1; }
  .sw-story .point-en { order: 2; margin-bottom: 20px; }
  .sw-story-shot { order: 3; margin-bottom: 22px; }
  .sw-story .point-jp { order: 4; margin-bottom: 10px; }
  .sw-story .point-body { order: 5; margin: 0 auto; }
  .sw .point,
  .sw .point:nth-of-type(even) { grid-template-columns: 1fr; gap: 0; }
  .sw .point-shot,
  .sw .point:nth-of-type(even) .point-shot { width: 100%; max-width: none; }
  .sw-grid { gap: 22px 12px; }
  .sw-grid figure { width: calc((100% - 12px) / 2); }
}

.reveal-on .sw-story {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-on .sw-story.is-in { opacity: 1; transform: none; }

/* 全ステージの前置き・ルートの印・かくしステージ */
.sw-lead {
  margin: -16px auto 36px;
  max-width: 34em;
  text-align: center;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.92rem;
  line-height: 1.9;
  opacity: 0.8;
}
.sw-grid figcaption span i {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-style: normal;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}
.sw-lock {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 55%, #3a1446 0%, #0b0716 70%);
  color: #ff4fd8;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.3em;
  text-shadow: 0 0 14px rgba(255, 79, 216, 0.8);
  box-shadow: 0 10px 24px rgba(40, 10, 70, 0.18);
}

/* 相棒の AI：CYBEROWL（ゲームの通信画面を再現）。文章と通信画面を左右に */
.sw-partner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  margin: 0 0 120px;
}
.sw-partner .point-no .pn-label { opacity: 1; color: #2fae6c; letter-spacing: 0.3em; }
.cw-comm {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 26px 26px 22px;
  background: #0b0716;
  border: 1px solid rgba(143, 227, 176, 0.55);
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(143, 227, 176, 0.08), 0 18px 40px rgba(40, 10, 70, 0.25);
  color: #8fe3b0;
}
.cw-face {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 227, 176, 0.4);
  border-radius: 8px;
  background: radial-gradient(circle, rgba(143, 227, 176, 0.12), transparent 70%);
}
.cw-owl { width: 104px; height: auto; overflow: visible; filter: drop-shadow(0 0 4px rgba(143, 227, 176, 0.6)); }
.cw-owl line, .cw-owl ellipse, .cw-owl path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cw-owl .o { stroke: #8fe3b0; stroke-width: 2.6; }
.cw-owl .f { stroke: rgba(143, 227, 176, 0.35); stroke-width: 1.6; }
.cw-owl .e { stroke: #6ff3ff; stroke-width: 2.4; }
.cw-owl .pu { fill: #fff; }
.cw-owl .b { stroke: #ffb347; stroke-width: 3; }
.cw-eye { transform-box: fill-box; transform-origin: center; animation: cwBlink 4.6s infinite; }
@keyframes cwBlink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.08); } }
.talking .cw-jaw { animation: cwJaw 0.18s ease-in-out infinite alternate; }
@keyframes cwJaw { from { transform: translateY(0); } to { transform: translateY(9px); } }
.talking .pu { transform-box: fill-box; transform-origin: center; animation: cwPupil 0.14s ease-in-out infinite alternate; }
@keyframes cwPupil { from { transform: scale(0.8); } to { transform: scale(1.3); } }
.cw-msg { min-width: 0; }
.cw-name {
  margin: 0 0 10px;
  font-family: 'Liberation Mono', 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  opacity: 0.8;
}
.cw-line {
  margin: 0;
  min-height: 3.6em;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #f2eef8;
}
.talking .cw-line::after { content: "▍"; color: #8fe3b0; margin-left: 2px; }
@media (max-width: 760px) {
  .sw-partner { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; text-align: center; }
  .sw-partner .point-no { justify-content: center; }
  .sw-partner .point-body { margin: 0 auto; }
  .cw-comm { text-align: left; padding: 18px 16px; gap: 14px; }
  .cw-face { width: 84px; height: 84px; }
  .cw-owl { width: 72px; }
  .cw-line { font-size: 0.9rem; }
}
.reveal-on .sw-partner { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal-on .sw-partner.is-in { opacity: 1; transform: none; }

/* CYBEROWL：手描きの設定画の上に、通信画面を少し重ねる */
.cw-side { position: relative; }
.cw-sketch { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 36px rgba(40, 10, 70, 0.18); }
.cw-side .cw-comm { margin-top: 16px; }   /* 設定画と重ねず、下に並べる */
