/* AI のページ専用 */

/* ヒーロー: 子どものアイデア → AI → ゲーム の図 */
.ai-hero svg { display: block; width: 100%; height: auto; }

/* 02 プログラムの流れ: 90分の時間配分のバー */
.tl-bar { list-style: none; padding: 0; display: flex; gap: 3px; margin-bottom: 20px; }
.tl-bar li { min-width: 0; padding: 10px 8px; border-radius: 6px; color: #fff; text-align: center; line-height: 1.3; }
.tl-bar b { display: block; font-size: 0.9rem; }
.tl-bar span { font-size: 0.75rem; opacity: 0.9; }
.tl-s01 { background: #5cbfe9; } .tl-s02 { background: #0a74b0; } .tl-s03 { background: #29abe2; }
.tl-s04 { background: #1b2a5e; } .tl-s05 { background: #ff8a3d; }
.tl-rest { background: #c9d4e6; color: #1b2a5e !important; }

/* 02 各ステップの中身（子ども・大学生） */
.tl-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tl-cards > li { padding: 20px 18px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tl-head b { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.tl-cards .time { padding: 1px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 0.78rem; font-weight: 700; }
.tl-cards h3 { font-size: 1.02rem; }
.tl-kind { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.tl-cards dl { margin: 0; font-size: 0.85rem; }
.tl-cards dt { margin-top: 8px; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.tl-cards dd { margin: 2px 0 0; padding-left: 1em; text-indent: -1em; }
.tl-cards dd::before { content: "・"; }

/* AIの使い方の注意（※で小さく） */
.ai-notes { list-style: none; padding: 0; margin-top: 28px; font-size: 0.82rem; color: var(--muted); }
.ai-notes li { padding-left: 1.2em; text-indent: -1.2em; }
.ai-notes li::before { content: "※"; margin-right: 0.2em; }

/* 03 プログラムCへの入口 */
.ai-door { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }

@media (max-width: 1300px) {
  .tl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .tl-bar b { font-size: 0.75rem; } .tl-bar span { display: none; } .tl-bar li { padding: 8px 2px; }
  .tl-cards { grid-template-columns: minmax(0, 1fr); }
}

/* #71 画面の高さに合わせて詰める（PC・高さ600px以上） */
@media (min-width: 1301px) and (min-height: 600px) {
  .tl-cards > li { padding-top: clamp(12px, 2vh, 20px); padding-bottom: clamp(12px, 2vh, 20px); }
  .ai-door { margin-top: clamp(16px, 3vh, 40px); }
  .ai-notes { margin-top: clamp(12px, 2vh, 28px); }
  .ai-hero svg { max-height: 40vh; }
}

/* プログラムCへの入口（最後のまとまりの上に置く） */
.cta .ai-door { margin: 0 auto 48px; max-width: 900px; text-align: left; }
