/* =========================================================
   20-1. トップ右側：情報と伝える角度
   トップ専用。図の意味は静止状態でも読めるようにする。
========================================================= */
.home-page .hero-visual { width: 100%; min-width: 0; }
.angle-story { --story-blue: #85dcff; padding: clamp(16px, 2.2vw, 24px); }
.angle-story::before { opacity: .65; }
.angle-story [hidden] { display: none !important; }
.story-toolbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.story-toolbar .angle-caption-key { font-size: 10px; letter-spacing: .12em; }
.angle-story button { font: inherit; cursor: pointer; touch-action: manipulation; }
.angle-story button:focus-visible { outline: 2px solid #a4e7ff; outline-offset: 4px; }
.story-motion { flex-shrink: 0; min-width: 70px; min-height: 36px; padding: 6px 10px; border: 1px solid rgba(185,224,244,.3); border-radius: 6px; background: rgba(4,17,29,.2); color: #ecf7ff; font-size: 11px !important; }
.story-motion:hover { background: rgba(117,216,255,.12); border-color: #85dcff; }
.story-motion:disabled { cursor: default; color: #c4d9e4; }

/* 20-2. 情報の曲線と切り口を示す接線 */
.angle-story .story-figure { overflow: visible; margin: 16px 0 0; aspect-ratio: 52 / 31; }
.story-figure path { fill: none; }
.story-eyebrow { fill: #c4d9e4; font-size: 21px; }
.story-guide { stroke: rgba(196,225,242,.2); stroke-width: 1.2; stroke-dasharray: 4 8; }
.story-curve { stroke: var(--story-blue); stroke-width: 2; stroke-dasharray: 1; }
.story-source-halo { fill: rgba(133,220,255,.07); stroke: rgba(133,220,255,.28); stroke-width: 1; }
.story-source-dot { fill: #b5dfef; }
.story-source text { fill: #d0e2ec; font-size: 22px; font-weight: 500; }
.story-baseline { stroke: rgba(188,226,246,.35); stroke-width: 1; stroke-dasharray: 3 5; }
.story-angle { stroke: var(--story-blue); stroke-width: 1.3; }
.story-tangent { stroke: url(#story-line); stroke-width: 3.5; stroke-linecap: round; }
.story-focus-ring { fill: none; stroke: rgba(133,220,255,.5); stroke-width: 1; }
.story-focus-halo { fill: rgba(133,220,255,.15); }
.story-focus-dot, .story-signal { fill: #f1fbff; }
.story-focus-label { fill: #8edfff; font-size: 22px; font-weight: 700; }

/* 20-3. 説明と段階選択。切り替えてもカードの高さを変えない */
.angle-story .angle-caption { margin-top: 10px; padding-top: 18px; gap: 0; }
.story-title { margin: 0; color: #f3f9ff; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; font-weight: 700; letter-spacing: .01em; }
.story-description { margin: 10px 0 18px; min-height: 3.6em; color: #c5d6e2; font-size: 13px; line-height: 1.8; }
.story-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.story-steps button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 60px; padding: 8px 3px; border: 1px solid rgba(167,204,226,.23); border-radius: 6px; background: rgba(4,17,29,.18); color: #d9e8f1; white-space: nowrap; }
.story-step-heading { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.story-step-number { font-family: ui-monospace, Consolas, monospace; color: #96b4c6; font-size: 10px; font-weight: 400; }
.story-step-purpose { font-size: 10px; color: #b9d2e0; }
.story-steps button[aria-pressed="true"] { border-color: #7ed7fb; background: rgba(89,178,215,.13); color: #fff; }
.story-steps button[aria-pressed="true"] .story-step-number { color: #8bdcff; }
.story-steps button:hover { border-color: #91dfff; }

/* 20-4. 狭い画面と動きを抑える設定 */
@media (max-width: 520px) {
  .story-toolbar { gap: 5px 10px; }
  .story-toolbar .angle-caption-key { font-size: 9px; }
  .story-source text, .story-focus-label { font-size: 25px; }
  .story-description { min-height: 5.4em; }
  .story-steps { gap: 5px; }
  .story-step-heading { gap: 4px; font-size: 11px; }
  .story-step-purpose { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .angle-story, .angle-story * { animation: none !important; transition: none !important; }
}
