/* 音で楽しむ受験理科：淡い水色の方眼、紺の文字、「受験理科」だけティール。4分野の色 */
body.t-study { color: #1f2a36; background-color: #e6eff3;
  background-image: linear-gradient(rgba(20,147,156,.09) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(20,147,156,.09) 1px, transparent 1px);
  background-size: 28px 28px; }

.site-hero { max-width: 1160px; margin: 0 auto; padding: 72px 24px 24px;
  display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: center; }
.site-icon { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #14939c; }
.site-title { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: clamp(32px, 6vw, 56px);
  line-height: 1.2; letter-spacing: .04em; }
.site-title em { color: #14939c; }
.site-tag { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 20px; margin-top: 10px;
  letter-spacing: .08em; color: #14939c; }
.site-lead { max-width: 42em; margin-top: 14px; color: #3a4754; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.site-wave { grid-column: 1 / -1; margin-top: 8px; }

.series { max-width: 1160px; margin: 0 auto; padding: 40px 24px 16px; }
.series-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  margin-bottom: 20px; }
.series-no { display: none; }
.series-name { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 18px;
  color: #fff; padding: 6px 16px; border-radius: 999px; background: #2469c7; }
.s-jhs-exam .series-name { background: #a85508; }
.series-desc { color: #4a5866; font-size: 14px; }
.series:last-of-type { padding-bottom: 80px; }

.t-study .card a { background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(31,42,54,.08), 0 6px 20px rgba(31,42,54,.06); }
.t-study .card a:hover { box-shadow: 0 2px 4px rgba(31,42,54,.1), 0 14px 32px rgba(31,42,54,.12); }
.t-study .card-title { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 19px; }
.t-study .badge.on { background: #0e7c84; color: #fff; }
.t-study .thumb-ph { background: #fff; color: #1f2a36; }

/* 動画ページ */
.t-study .v-title { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; }
.t-study .v-sub { color: #14939c; opacity: 1; font-weight: 700; }
.t-study .v-thumb { border-radius: 14px; box-shadow: 0 6px 24px rgba(31,42,54,.12); }
.t-study .watch { background: #0e7c84; color: #fff; }
.t-study .v-points { background: #fff; box-shadow: 0 1px 2px rgba(31,42,54,.08); border-radius: 14px; }
.t-study .v-points h2 { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; color: #0e7c84; }
.t-study .v-points li::before { background: #14939c; }
.t-study .sec-h { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; }

@media (max-width: 640px) {
  .site-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; }
  .site-icon { width: 88px; height: 88px; }
  .series-head { grid-template-columns: 1fr; row-gap: 8px; justify-items: start; }
}
.news .series-name { background: #0e7c84; }

/* ---------- 単元まとめ（記事）のカード ---------- */
.sub-h { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 17px;
  margin: 36px 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sub-h span { font-family: "Noto Sans JP", sans-serif; font-weight: 400; font-size: 13px; color: #4a5866; }
.acard-top { position: relative; height: 96px; color: #fff; padding: 12px 16px; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: space-between; }
.acard-no { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: 30px; line-height: 1; }
.acard-field { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.22); }
.acard-wave { position: absolute; left: 0; right: 0; bottom: 6px; height: 40px; width: 100%; opacity: .7; }
.acard-wave .wl-0 { animation: wslide 9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .acard-wave .wl-0 { animation: none; } }

/* ---------- 記事ページ ---------- */
.article { max-width: 860px; margin: 0 auto; padding: 16px 24px 24px; }
.grade-tag { font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 4px; background: #2469c7; color: #fff; }
.a-head .v-title { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; }
.a-note { font-size: 14px; padding: 10px 14px; border-left: 3px solid #2f7fe0; background: #fff; border-radius: 0 8px 8px 0; margin: -12px 0 24px; }
.toc { background: #fff; border-radius: 14px; padding: 18px 24px; margin-bottom: 32px;
  box-shadow: 0 1px 2px rgba(31,42,54,.08); }
.toc-h { font-weight: 700; color: #0e7c84; margin-bottom: 6px; }
.toc ul { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 2px 0; }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; color: #0e7c84; }
.a-sec { background: #fff; border-radius: 14px; padding: 28px 30px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(31,42,54,.08), 0 6px 20px rgba(31,42,54,.05); scroll-margin-top: 16px; }
.a-sec h2 { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 22px;
  line-height: 1.45; margin-bottom: 14px; padding-left: 14px; border-left: 5px solid #14939c; }
.a-sec.k-hook h2 { border-left-color: #e3a900; }
.a-sec.k-problems h2 { border-left-color: #f08a24; }
.a-sec.k-summary { background: #1f2a36; color: #eef3f6; }
.a-sec.k-summary h2 { border-left-color: #3fc1c9; color: #fff; }
.a-sec.k-extra { background: #f6fbfc; border: 2px dashed #9fd6da; }
.a-sec.k-extra h2 { border-left-color: #8a7fd1; }
.a-sec .extra-tag { display: inline-block; font-size: 13px; font-weight: 700; color: #5a4fb0; background: #ece9fb; border-radius: 999px; padding: 2px 12px; margin: -4px 0 14px; }
.a-sec p { margin: 0 0 12px; }
.a-sec strong { color: #0f6f76; background: linear-gradient(transparent 62%, rgba(63,193,201,.25) 62%); }
.a-sec.k-summary strong { color: #fff; }
.dots, .nums { margin: 4px 0 14px; }
.dots li { position: relative; padding-left: 18px; margin: 4px 0; }
.dots li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: #14939c; }
.nums { padding-left: 1.5em; list-style: decimal; }
.nums li { margin: 4px 0; padding-left: 4px; }
.tbl { overflow-x: auto; margin: 8px 0 16px; border-radius: 10px; border: 1px solid #d5e3e9; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid #e3edf1; text-align: left; vertical-align: top; }
.tbl thead th { background: #e6f2f4; color: #0f5f65; white-space: nowrap; }
.tbl tbody th { background: #f6fafb; white-space: nowrap; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.point { background: #fffbea; border: 1px solid #f1dd8f; border-radius: 10px; padding: 14px 18px; margin: 8px 0 4px; }
.point-h { font-weight: 800; color: #9a6b00; font-size: 14px; margin-bottom: 4px !important; }
.point li { position: relative; padding-left: 18px; margin: 3px 0; font-size: 15px; }
.point li::before { content: "✓"; position: absolute; left: 0; color: #e3a900; font-weight: 700; }
.q { border: 1px solid #e3edf1; border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; }
.q-q { margin: 0 !important; }
.q-n { display: inline-block; font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; color: #fff;
  background: #a85508; border-radius: 6px; padding: 1px 8px; margin-right: 10px; font-size: 14px; }
.q details { margin-top: 10px; }
.q summary { cursor: pointer; color: #0e7c84; font-weight: 700; font-size: 14px; }
.q summary:focus-visible { outline-offset: 2px; }
.q-a { margin: 10px 0 4px !important; }
.q-a strong { background: none; color: #fff; background-color: #0e7c84; border-radius: 4px; padding: 1px 8px; margin-right: 10px; font-size: 13px; }
.q-e { color: #3a4754; font-size: 15px; margin: 0 !important; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pager a { background: #fff; border-radius: 12px; padding: 14px 18px; text-decoration: none; font-weight: 700;
  box-shadow: 0 1px 2px rgba(31,42,54,.08); }
.pager a span { display: block; font-size: 12px; font-weight: 400; color: #4a5866; }
.pg-next { grid-column: 2; text-align: right; }
@media (max-width: 640px) {
  .a-sec { padding: 22px 18px; }
  .a-sec h2 { font-size: 19px; }
  .pager { grid-template-columns: 1fr; }
  .pg-next { grid-column: 1; }
}

/* 記事の図（SVGをそのまま埋めこむ。文字はページのフォントで表示される） */
.fig { margin: 12px 0 18px; }
.fig svg { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3edf1; }
.fig figcaption { font-size: 13px; color: #4a5866; margin-top: 8px; padding-left: 2px; }
.fig3d img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid #e3edf1; background: #fff; }
.fig3d img.tall { width: auto; max-width: 100%; max-height: 500px; margin: 0 auto; }   /* 縦長の図（幅÷高さ が 1.4 より小さい）は高さをおさえて真ん中に */

/* 記事カードの「▶ 動画あり」 */
.t-study .acard .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.t-study .acard .ac-vid { font-size: 12px; font-weight: 700; color: #0b5f65; border: 1px solid #8fcfd3; background: #eef8f8; border-radius: 999px; padding: 1px 9px; }

/* 記事に付ける動画の枠（いまは見本。YouTube の埋め込みは公開後） */
.vp-box { margin: 8px 0 28px; }
.vp-h { font-size: 15px; font-weight: 700; color: #1f2a36; margin-bottom: 8px; }
.vplayer { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; color: #fff; text-decoration: none;
  box-shadow: 0 2px 4px rgba(31,42,54,.12), 0 12px 28px rgba(31,42,54,.16); }
.vp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vp-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 62%, rgba(0,0,0,.75)); }
.vp-top { position: absolute; left: 16px; right: 16px; top: 12px; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.vp-ch { font-size: 12px; opacity: .9; }
.vp-title { font-size: 17px; font-weight: 700; }
.vp-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(14,124,132,.92); box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: transform .15s, background .15s; }
.vp-play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.vplayer:hover .vp-play, .vplayer:focus-visible .vp-play { transform: scale(1.08); background: #0b6a71; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px 10px; }
.vp-track { display: block; height: 4px; background: rgba(255,255,255,.35); border-radius: 2px; margin-bottom: 10px; }
.vp-done { display: block; width: 0; height: 100%; background: #3fc1c9; }
.vp-ctrl { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.vp-i-play { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.vp-i-vol { width: 14px; height: 12px; background: #fff; clip-path: polygon(0 30%, 35% 30%, 75% 0, 75% 100%, 35% 70%, 0 70%); }
.vp-sp { flex: 1; }
.vp-i-full { width: 14px; height: 12px; border: 2px solid #fff; border-radius: 2px; }
.vp-note { font-size: 12px; color: #5f676d; margin-top: 6px; }
@media (max-width: 640px) { .vp-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .vp-play::after { left: 24px; top: 18px; border-width: 12px 0 12px 18px; } .vp-title { font-size: 13px; } .vp-ch { display: none; } .vp-top { top: 8px; left: 12px; } .vp-bar { padding: 0 10px 6px; } .vp-track { margin-bottom: 6px; } .vp-ctrl { gap: 12px; font-size: 11px; } }

/* 記事のサムネイル（中学受験。tools/thumb/ で作る） */
.t-study .acard-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #f3f6f9; }
/* 記事の先頭：方眼の背景（CSS）＋透明な模型の画像。パソコンは文字が左・模型が右、スマホは模型が上・文字が下 */
.a-head-hero { margin-bottom: 8px; }
.a-hero { --fc: #0e7c84; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px 24px;
  min-height: 340px; padding: 28px 36px 34px; border-radius: 14px; overflow: hidden; border-bottom: 8px solid var(--fc);
  background-color: #f3f6f9;
  background-image: radial-gradient(ellipse at 72% 50%, rgba(255,255,255,.95), rgba(255,255,255,0) 60%),
    linear-gradient(#dfe6ec 1px, transparent 1px), linear-gradient(90deg, #dfe6ec 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  box-shadow: 0 2px 4px rgba(31,42,54,.1), 0 12px 28px rgba(31,42,54,.12); }
.a-hero[data-f="phys"] { --fc: #2469c7; } .a-hero[data-f="chem"] { --fc: #0e7c84; }
.a-hero[data-f="bio"] { --fc: #237a3c; } .a-hero[data-f="earth"] { --fc: #b85c06; }
.a-hero-text .v-title { font-size: clamp(28px, 4.4vw, 50px); line-height: 1.2; margin: 10px 0 8px; text-wrap: balance; word-break: auto-phrase; }
.a-hero-text .v-sub { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.5; text-wrap: balance; word-break: auto-phrase; }
.a-hero-fig { display: flex; align-items: center; justify-content: center; }
.a-hero-fig img { display: block; max-width: 100%; max-height: 280px; width: auto; height: auto; }
@media (max-width: 640px) {
  .a-hero { grid-template-columns: 1fr; min-height: 0; padding: 18px 18px 22px; background-image: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.95), rgba(255,255,255,0) 65%),
    linear-gradient(#dfe6ec 1px, transparent 1px), linear-gradient(90deg, #dfe6ec 1px, transparent 1px); }
  .a-hero { row-gap: 20px; padding: 24px 20px 24px; }
  .a-hero-fig { order: -1; height: 176px; padding: 4px 0; }
  .a-hero-fig img { max-height: 100%; max-width: 92%; object-fit: contain; }
  .a-hero-text { padding-top: 14px; border-top: 1px solid #dfe6ec; }
  .a-hero-text .v-title { margin-top: 8px; }
}
.t-study .acard-media { position: relative; display: block; }
.t-study .ac-vid-top { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* 動画のポップアップ（画面の右下に浮かぶ） */
.vp-dock { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.vp-hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vp-float { width: 360px; background: #fff; border-radius: 14px; padding: 10px 10px 8px; box-shadow: 0 6px 18px rgba(31,42,54,.18), 0 18px 40px rgba(31,42,54,.18); }
.vp-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.vp-float .vp-h { margin: 0; font-size: 14px; }
.vp-x { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #1f2a36; font-size: 16px; }
.vp-x:hover { background: #eef2f5; }
.vp-float .vplayer { border-radius: 10px; box-shadow: none; }
.vp-float .vp-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.vp-float .vp-play::after { left: 22px; top: 17px; border-width: 11px 0 11px 17px; }
.vp-float .vp-bar { padding: 0 10px 7px; } .vp-float .vp-track { margin-bottom: 7px; } .vp-float .vp-ctrl { gap: 12px; font-size: 11px; }
.vp-float .vp-note { margin: 6px 2px 0; font-size: 11px; }
.vp-reopen { display: none; align-items: center; gap: 6px; cursor: pointer; background: #0e7c84; color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(31,42,54,.25); }
.vp-hide:checked ~ .vp-float { display: none; }
.vp-hide:checked ~ .vp-reopen { display: inline-flex; }
.vp-hide:focus-visible ~ .vp-float .vp-x, .vp-hide:focus-visible ~ .vp-reopen { outline: 3px solid #3fc1c9; outline-offset: 2px; }
@media (max-width: 640px) {
  .vp-dock { right: 10px; bottom: 10px; }
  .vp-float { width: min(62vw, 260px); padding: 7px 7px 6px; }
  .vp-float .vp-note { display: none; }
  .vp-float .vp-head { margin-bottom: 5px; }
}
@media print { .vp-dock { display: none; } }
.t-study .vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.t-study .site-title em { display: inline-block; }
.t-study .site-tag { text-wrap: balance; word-break: auto-phrase; }
/* 場面の中の小見出し（### ）2026-11-21 */
.sc-h3 { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; font-size: 19px;
  color: #1f2a36; margin: 28px 0 10px; padding-left: 12px; border-left: 5px solid #0d747b; line-height: 1.4; }

/* 問題の囲みの中の図・表：図は右に小さく置き、文字を左に回り込ませる */
.q { display: flow-root; }
.q > .fig { float: right; width: 36%; max-width: 280px; margin: 2px 0 10px 18px; }
.q > .fig img, .q > .fig img.tall { width: auto; max-width: 100%; max-height: 240px; margin: 0 auto; border-radius: 8px; }
.q > .fig figcaption { font-size: 12px; line-height: 1.5; margin-top: 4px; }
.q .tbl { margin: 12px 0 4px; }
@media (max-width: 520px) {
  .q > .fig { float: none; width: auto; max-width: none; margin: 10px 0 6px; }
  .q > .fig img, .q > .fig img.tall { max-height: 220px; }
  /* スマホでは問題文 → 図 → 答えの順に縦に並べる */
  .q.q-hasfig { display: flex; flex-direction: column; }
  .q-hasfig > .q-q { order: 0; }
  .q-hasfig > .fig { order: 1; }
  .q-hasfig > .tbl { order: 2; }
  .q-hasfig > details { order: 3; }
}

.site-icon { grid-column: 1; grid-row: 1; }
.site-hero-text { grid-column: 2; grid-row: 1; min-width: 0; }   /* アイコンが消えても文字が120pxの列に落ちないよう列を固定（2026-11-28） */
@media (max-width: 640px) {
  .site-icon, .site-hero-text { grid-column: 1; grid-row: auto; }
}
/* 記事の見出し：文字は左、模型は右に固定（スマホは1列・模型が上）（2026-11-28） */
.a-hero-text { grid-column: 1; grid-row: 1; min-width: 0; }
.a-hero-fig { grid-column: 2; grid-row: 1; }
@media (max-width: 640px) {
  .a-hero-text, .a-hero-fig { grid-column: 1; grid-row: auto; }
}
