/* 天体イベントのページ（sky-*.html）専用 */
.sk-page article { max-width: 1000px; margin: 28px auto 44px; }
.sk-page article section { padding: 0; border-top: 0; margin: 44px 0 0; }
.sk-page h2, .sk-page h3 { margin: 0; }
.sk-page h2 { font-size: 1.4rem; color: #14213d; }
.sk-page svg text { font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; }

/* 上の見出し */
.sk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: center; overflow: hidden; padding: 32px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #0b1530 0%, #14213d 55%, #24386a 100%); }
.sk-kicker { margin: 0 0 8px; font-size: .9rem; font-weight: 700; letter-spacing: .06em; color: #ffd166; }
.sk-hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1.32; }
.sk-page .sk-hero .lead { margin: 0; color: #e4e9f5; font-size: 1rem; line-height: 1.85; }
.sk-count { display: inline-block; margin: 16px 0 0; padding: 6px 14px; border-radius: 999px; background: #ffd166; color: #14213d; font-size: .92rem; font-weight: 700; }
.sk-hero > svg { display: block; width: 100%; height: auto; border-radius: 14px; }

/* 数字のカード */
.sk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.sk-stat { padding: 14px 16px; border: 1px solid #d5dcef; border-radius: 14px; background: #fff; }
.sk-stat span { display: block; font-size: .82rem; color: #52617f; }
.sk-stat strong { display: block; margin: 2px 0; font-size: 1.22rem; line-height: 1.35; color: #14213d; }
.sk-stat small { display: block; font-size: .8rem; line-height: 1.55; color: #52617f; }
.sk-note { margin: 10px 0 0 !important; font-size: .86rem; color: #52617f; }

/* 図のカード */
.sk-card { margin: 16px 0 0; overflow: hidden; border: 1px solid #d5dcef; border-radius: 16px; background: #fff; }
.sk-card > svg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.sk-card figcaption, .sk-card-body { padding: 14px 16px; }
.sk-page .sk-card figcaption { font-size: .92rem; line-height: 1.75; color: #173b52; }
.sk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.sk-two .sk-card { margin: 0; }
.sk-card h3 { margin-bottom: 4px; font-size: 1.04rem; color: #14213d; }

/* 時刻で動かす星空 */
.sk-page .sk-sky-tool { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; background: #0b1530; color: #fff; }
.sk-sky-view svg { display: block; width: 100%; height: auto; }
.sk-page .sk-card.sk-sky-tool figcaption { padding: 16px; color: #fff; }
.sk-sky-time output { display: block; font-size: 1.3rem; font-weight: 700; color: #ffd166; }
.sk-sky-time span { display: block; margin-top: 2px; font-size: .95rem; color: #fff; }
.sk-sky-controls label { display: block; margin-top: 10px; font-size: .84rem; color: #cdd6ec; }
.sk-sky-controls input[type="range"] { display: block; width: 100%; height: 32px; margin: 2px 0 0; accent-color: #ffd166; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sk-chips button { min-height: 40px; padding: 6px 14px; border: 1px solid #6f7fa8; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: .88rem; cursor: pointer; }
.sk-chips button:hover { border-color: #ffd166; }
.sk-chips button[aria-pressed="true"] { border-color: #ffd166; background: #ffd166; color: #14213d; font-weight: 700; }
.sk-chips button:focus-visible, .sk-sky-controls input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sk-page .sk-sky-message { margin: 10px 0 0; font-size: .94rem; line-height: 1.75; color: #fff; }
.sk-meteor { fill: none; stroke: #fff6c8; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 34 200; stroke-dashoffset: 34; animation: sk-fall 4.2s linear infinite; }
.sk-meteor.d1 { animation-delay: .7s; }
.sk-meteor.d2 { animation-delay: 1.4s; }
.sk-meteor.d3 { animation-delay: 2.1s; }
.sk-meteor.d4 { animation-delay: 2.8s; }
.sk-meteor.d5 { animation-delay: 3.5s; }
@keyframes sk-fall { 0% { stroke-dashoffset: 34; opacity: 0; } 2% { opacity: 1; } 16% { stroke-dashoffset: -150; opacity: 1; } 18%, 100% { stroke-dashoffset: -150; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sk-meteor { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: .85; }
}

/* 月の距離と見かけの大きさ */
.sk-page .sk-moon-tool { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; background: #0b1530; color: #fff; }
.sk-page .sk-card.sk-moon-tool figcaption { padding: 16px; color: #fff; }
.sk-moon-tool .sk-sky-time span { font-size: .9rem; line-height: 1.6; }

/* 月の満ち欠け */
.sk-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.sk-page .sk-phases li { margin: 0; padding: 12px 8px; border: 1px solid #d5dcef; border-radius: 14px; background: #fff; text-align: center; font-size: .88rem; line-height: 1.5; }
.sk-page .sk-phases li.is-now { border: 2px solid #c58220; background: #fff8ea; }
.sk-phases svg { display: block; width: 52px; height: 52px; margin: 0 auto 6px; }
.sk-phases strong { display: block; color: #14213d; }
.sk-phases.sk-phases-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 観察のコツ */
.sk-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.sk-tip { padding: 14px 16px; border: 1px solid #d5dcef; border-radius: 14px; background: #fff; }
.sk-tip svg { display: block; width: 42px; height: 42px; margin-bottom: 6px; }
.sk-tip h3 { margin-bottom: 4px; font-size: 1rem; color: #14213d; }
.sk-page .sk-tip p { margin: 0; font-size: .88rem; line-height: 1.7; }

/* 授業とのつながり */
.sk-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 0; }
.sk-link { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d5dcef; border-radius: 14px; background: #fff; }
.sk-link > img { display: block; width: 100%; height: 140px; object-fit: contain; background: #f5fafb; border-bottom: 1px solid #d5dcef; }
.sk-link-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.sk-tag { font-size: .78rem; font-weight: 700; color: #087c86; }
.sk-page .sk-link p { margin: 0; font-size: .88rem; line-height: 1.7; }
.sk-link ul { margin: auto 0 0; padding: 4px 0 0; list-style: none; }
.sk-page .sk-link li { margin: 0 0 4px; font-size: .86rem; line-height: 1.55; }

/* 確認問題 */
.sk-quiz { margin: 16px 0 0; }
.sk-q { margin-bottom: 10px; padding: 14px 16px; border: 1px solid #d5dcef; border-radius: 14px; background: #fff; }
.sk-page .sk-q > p { margin: 0 0 6px; font-weight: 700; line-height: 1.75; }
.sk-q summary { min-height: 32px; font-weight: 700; color: #087c86; cursor: pointer; }
.sk-q summary:focus-visible { outline: 3px solid #c58220; outline-offset: 3px; }
.sk-page .sk-q details p { margin: 6px 0 0; font-size: .94rem; line-height: 1.8; }

@media (max-width: 760px) {
  .sk-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .sk-page .sk-sky-tool, .sk-page .sk-moon-tool { grid-template-columns: 1fr; }
  .sk-phases.sk-phases-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sk-stats, .sk-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-two, .sk-links { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .sk-stats, .sk-tips { grid-template-columns: 1fr; }
  .sk-phases, .sk-phases.sk-phases-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
