/* 今夜の月と空（YUZ-543）。ニューストップの小カードと /news/sky/ で共有する。 */
.sky-moon { display: block; flex: none; }
.sky-moon-dark { fill: #2f3644; }
.sky-moon-lit { fill: #f2d16b; }
.sky-moon-rim { fill: none; stroke: #2f3644; stroke-width: 1.5; }

/* ── ニューストップの小カード ── */
.news-top-sky-main { display: flex; gap: 0.75rem; align-items: center; }
.news-top-sky-text { min-width: 0; }
.news-top-sky-lead { margin: 0; font-size: 0.95rem; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.news-top-sky-meta { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--top-muted); font-variant-numeric: tabular-nums; }
.news-top-sky-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; margin: 0.65rem 0 0; }
.news-top-sky-times div { padding: 0.3rem 0.4rem; border: 1px solid var(--top-soft-line); border-radius: 6px; text-align: center; }
.news-top-sky-times dt { font-size: 0.7rem; color: var(--top-muted); }
.news-top-sky-times dd { margin: 0; font-size: 0.92rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-top-sky-next { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 0.55rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.news-top-sky-next span { font-weight: 700; }
.news-top-sky-next span::before { content: "次の"; font-weight: 500; color: var(--top-muted); }
.news-top-sky-remark, .sky-remark { display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; align-items: baseline; margin: 0.55rem 0 0; font-size: 0.82rem; line-height: 1.6; color: var(--top-muted, #6b6359); }
.news-top-sky-remark > span:first-child, .sky-remark > span:first-child { flex: none; padding: 0 0.4rem; border-radius: 999px; background: #f6ebc4; color: #6a4e08; font-size: 0.7rem; font-weight: 700; }

/* 七十二候と流星群の1行（YUZ-545・546） */
.news-top-sky-season, .news-top-sky-meteor { display: flex; gap: 0.5rem; align-items: baseline; margin: 0.5rem 0 0; font-size: 0.82rem; line-height: 1.6; }
.news-top-sky-season > span:first-child, .news-top-sky-meteor > span:first-child { flex: none; padding: 0 0.4rem; border: 1px solid var(--top-soft-line); border-radius: 4px; color: var(--top-muted); font-size: 0.7rem; font-weight: 700; }
.news-top-sky-meteor > span:first-child { border-color: #b9c6dc; color: #34507a; }

@media (max-width: 360px) {
  .news-top-sky-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── /news/sky/ ── */
.sky-page { --sky-ink: #26303d; --sky-muted: #5b6573; --sky-line: #d9dee6; max-width: 960px; margin: clamp(1rem, 4vw, 2.5rem) auto 3rem; padding: 0 16px; color: var(--sky-ink); }
.sky-page a { color: #2c5a86; text-underline-offset: 0.2em; }
.sky-page :is(a, [tabindex]):focus-visible { outline: 3px solid #2c5a86; outline-offset: 3px; }
.sky-heading h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; }
.sky-heading p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--sky-muted); line-height: 1.7; }
.sky-kicker { font-family: var(--font-latin); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #8a6508; }
.sky-page section { margin-top: 2rem; }
.sky-h2 { margin: 0 0 0.6rem; font-size: 1.1rem; line-height: 1.5; }
.sky-h3 { margin: 1.2rem 0 0.4rem; font-size: 0.95rem; }
.sky-note { margin: 0.3rem 0 0.8rem; font-size: 0.85rem; line-height: 1.75; color: var(--sky-muted); }

.sky-today { padding: clamp(1rem, 3vw, 1.5rem); border-radius: 6px; background: linear-gradient(160deg, #1f2a3c, #33415a); color: #f3f1ea; }
.sky-today .sky-h2 { color: #f3f1ea; }
.sky-today .sky-moon-rim, .sky-today .sky-moon-dark { stroke: #8d97a8; }
.sky-today .sky-moon-dark { fill: #253043; }
.sky-today-main { display: flex; gap: clamp(0.8rem, 3vw, 1.5rem); align-items: center; }
.sky-today-lead { margin: 0; font-size: clamp(1rem, 2.6vw, 1.25rem); font-weight: 700; line-height: 1.6; }
.sky-today-meta { margin: 0.2rem 0 0; font-size: 0.82rem; color: #c9cfda; font-variant-numeric: tabular-nums; }
.sky-today-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin: 0.8rem 0 0; max-width: 28rem; }
.sky-today-times div { padding: 0.35rem 0.4rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; text-align: center; }
.sky-today-times dt { font-size: 0.72rem; color: #c9cfda; }
.sky-today-times dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sky-today .sky-remark { color: #dfe3ea; }
.sky-next { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.9rem 0 0; padding: 0.7rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); list-style: none; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.sky-next span { font-weight: 700; }
.sky-next span::before { content: "次の"; font-weight: 400; color: #c9cfda; }

.sky-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.sky-strip li { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.45rem 0.2rem; border: 1px solid var(--sky-line); border-radius: 6px; background: #fff; font-variant-numeric: tabular-nums; }
.sky-strip li.is-today { border-color: #8a6508; box-shadow: inset 0 0 0 1px #8a6508; }
.sky-strip-date { font-size: 0.72rem; }
.sky-strip-age { font-size: 0.7rem; color: var(--sky-muted); }

.sky-events { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sky-line); }
.sky-event { display: grid; grid-template-columns: 8.5rem 6.5rem minmax(0, 1fr); gap: 0.2rem 0.8rem; align-items: baseline; padding: 0.55rem 0; border-bottom: 1px solid var(--sky-line); font-size: 0.9rem; }
.sky-event time { font-variant-numeric: tabular-nums; }
.sky-event-kind { font-size: 0.75rem; color: var(--sky-muted); }
.sky-event small { grid-column: 3; font-size: 0.8rem; color: var(--sky-muted); }
.sky-event--moon strong::before { content: "● "; color: #2f3644; }
.sky-event--term strong::before { content: "◇ "; color: #4f745f; }
.sky-event--planet strong::before { content: "✦ "; color: #8a6508; }
.sky-event--kou strong::before { content: "・"; color: #4f745f; }
.sky-event--zassetsu strong::before { content: "◆ "; color: #9a5b2a; }
.sky-event--meteor strong::before { content: "☄ "; color: #34507a; }

.sky-season-card { display: flex; gap: clamp(0.8rem, 3vw, 1.6rem); align-items: center; padding: clamp(0.9rem, 3vw, 1.3rem); border: 1px solid var(--sky-line); border-radius: 6px; background: #fbfaf5; }
.sky-season-term { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 5.2rem; height: 5.2rem; margin: 0; border-radius: 50%; background: #4f745f; color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.sky-season-term small { font-size: 0.72rem; font-weight: 500; opacity: 0.9; }
.sky-season-kou { margin: 0; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: 0.06em; }
.sky-season-kou rt { font-size: 0.5em; font-weight: 500; letter-spacing: 0.02em; color: var(--sky-muted); }
.sky-season-gloss { margin: 0.2rem 0 0; font-size: 0.92rem; line-height: 1.7; }
.sky-season-card .sky-remark { color: var(--sky-muted); }

.sky-table--meteor small { display: block; font-size: 0.72rem; color: var(--sky-muted); }
.sky-table--meteor td { text-align: left; }
.sky-table--meteor tr.is-major th { font-weight: 700; }
.sky-badge { display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem; border-radius: 4px; background: #e7edf6; color: #34507a; font-size: 0.68rem; font-weight: 700; vertical-align: 0.1em; }
.sky-moonlight { font-weight: 700; }
.sky-moonlight--low { color: #2f6b45; }
.sky-moonlight--mid { color: #8a6508; }
.sky-moonlight--high { color: #9a3b2a; }
.sky-empty { font-size: 0.9rem; color: var(--sky-muted); }

.sky-table-scroll { overflow-x: auto; border: 1px solid var(--sky-line); border-radius: 6px; background: #fff; }
.sky-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sky-table :is(th, td) { padding: 0.45rem 0.7rem; border-bottom: 1px solid #edf0f4; text-align: right; }
.sky-table :is(thead th, tbody th) { text-align: left; }
.sky-table thead th { font-size: 0.75rem; color: var(--sky-muted); font-weight: 600; background: #f6f7f9; }
.sky-table tr.is-today { background: #fbf4dc; }
.sky-table--compare { white-space: normal; }
.sky-method ul { margin: 0; padding-left: 1.2rem; font-size: 0.88rem; line-height: 1.8; }

@media (max-width: 640px) {
  .sky-today-main { align-items: flex-start; }
  .sky-today-main .sky-moon { width: 72px; height: 72px; }
  .sky-today-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sky-event { grid-template-columns: 1fr auto; }
  .sky-event strong { grid-column: 1 / -1; }
  .sky-event small { grid-column: 1 / -1; }
  .sky-season-term { width: 4.2rem; height: 4.2rem; font-size: 1rem; }
  .sky-season-card { align-items: flex-start; }
  /* 流星群の表はスマホでは1件ずつのカードにする（横スクロールさせない）。 */
  .sky-table-scroll:has(.sky-table--meteor) { overflow: visible; border: 0; background: none; }
  .sky-table--meteor, .sky-table--meteor tbody { display: block; white-space: normal; }
  .sky-table--meteor thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sky-table--meteor tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 0.8rem; margin-bottom: 0.5rem; padding: 0.6rem 0.75rem; border: 1px solid var(--sky-line); border-radius: 6px; background: #fff; }
  .sky-table--meteor tr[hidden] { display: none; }
  .sky-table--meteor :is(th, td) { padding: 0; border: 0; text-align: left; }
  .sky-table--meteor th { grid-column: 1 / -1; font-size: 0.95rem; }
  .sky-table--meteor td::before { content: attr(data-label); display: block; font-size: 0.7rem; color: var(--sky-muted); }
}

@media (prefers-reduced-motion: no-preference) {
  .sky-strip li.is-today { scroll-margin: 1rem; }
}

/* 桜の開花の目安（YUZ-550） */
.sakura-card { padding: clamp(0.9rem, 3vw, 1.3rem); border: 1px solid var(--sky-line); border-radius: 6px; background: #fdf6f7; }
.sakura-word { margin: 0; font-size: clamp(1.1rem, 3.5vw, 1.35rem); font-weight: 700; color: #8e3a52; }
.sakura-num { display: flex; align-items: baseline; gap: 0.2rem; margin: 0.3rem 0 0.5rem; font-variant-numeric: tabular-nums; }
.sakura-num strong { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1; }
.sakura-num small { margin-left: 0.4rem; font-size: 0.85rem; color: var(--sky-muted); }
.sakura-bar { position: relative; height: 12px; border-radius: 6px; background: #efe3e6; }
.sakura-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #f2b8c6, #d9668a); }
.sakura-bar i { position: absolute; top: -4px; bottom: -4px; left: 100%; width: 2px; margin-left: -2px; background: #8e3a52; }
.sakura-foot { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--sky-muted); }
.sakura-past { margin-top: 0.6rem; }
.sakura-past summary { padding: 0.3rem 0; font-size: 0.9rem; font-weight: 600; color: #34507a; cursor: pointer; }
.sky-table--sakura th, .sky-table--sakura td { text-align: left; }
@media (max-width: 640px) { .sky-table--sakura { white-space: normal; } }

/* ISS が見える時刻（YUZ-547） */
.iss-lead { margin: 0.2rem 0 0.6rem; font-weight: 600; }
.iss-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sky-line); }
.iss-pass { padding: 0.6rem 0; border-bottom: 1px solid var(--sky-line); }
.iss-when { margin: 0; font-variant-numeric: tabular-nums; }
.iss-when time { margin-left: 0.1rem; font-size: 1.15rem; font-weight: 700; }
.iss-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--sky-muted); }
.iss-high { padding: 0 0.4rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; background: #eef1f5; color: #34507a; }
.iss-high--mid { background: #e7edf6; }
.iss-high--high { background: #dbe7f7; color: #1f3d6b; }
.iss-dur { font-size: 0.8rem; }
@media (min-width: 720px) { .iss-pass { display: grid; grid-template-columns: 16rem 1fr; align-items: baseline; } .iss-path { margin: 0; } }
