/* 音で楽しむ化学
   2026-11-21：ライトモードで作りこむ（本人指示。ダークモードはいったんやめた）。色は下の変数だけ直せばよい。
   文字の色はどれも白地でコントラスト 4.5 以上（アクセント #0e7c84 = 4.96、うすい文字 #6b7378 = 4.66）。 */
body.t-chem {
  --bg: #fbfbf9; --ink: #2a2f33; --head: #111417; --sub: #5f676d; --muted: #5f676d;
  --line: #e3e6e8; --card: #ffffff; --card-hover: #f1fafa; --panel: #f4f6f6;
  --acc: #0e7c84; --acc-hi: #3fc1c9; --acc-soft: #0f6f76; --chip: #8fcfd3; --dash: #c9d3d5;
  --shadow: 0 1px 2px rgba(17, 20, 23, .05);
  background: var(--bg); color: var(--ink);
}


.site-hero { max-width: 1160px; margin: 0 auto; padding: 72px 24px 32px;
  display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: center; }
.site-icon { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 2px var(--acc-hi); }
.site-title { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--head);
  font-size: clamp(34px, 6vw, 60px); line-height: 1.2; letter-spacing: .04em; }
.site-tag { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--acc); font-size: 20px;
  margin-top: 10px; letter-spacing: .08em; }
.site-lead { max-width: 42em; margin-top: 14px; color: var(--sub); }
.site-wave { grid-column: 1 / -1; margin-top: 16px; }

.series { max-width: 1160px; margin: 0 auto; padding: 48px 24px 24px; scroll-margin-top: 64px; }
.series-head { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 24px; }
.series-no { font-family: "Noto Serif JP", serif; color: var(--acc); font-size: 15px; letter-spacing: .1em; }
.series-name { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 26px; color: var(--head); }
.series-n { margin-left: 12px; font-size: 13px; color: var(--muted); font-family: "Noto Sans JP", sans-serif; font-weight: 400; }
.series-desc { grid-column: 2; color: var(--sub); font-size: 14px; margin-top: 4px; }
.series:last-of-type { padding-bottom: 80px; }

.t-chem .card a { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.t-chem .card a:hover { border-color: var(--acc-hi); }
.t-chem .card-title { font-family: "Noto Serif JP", serif; color: var(--head); }
.t-chem .thumb-ph { background: radial-gradient(circle at 75% 30%, #0f3436 0, #000 60%); color: #3fc1c9;
  border-bottom: 1px solid var(--line); }

/* 動画ページ */
.t-chem .v-title { font-family: "Noto Serif JP", serif; color: var(--head); }
.t-chem .v-sub { color: var(--acc); opacity: 1; font-family: "Noto Serif JP", serif; }
.t-chem .watch { background: var(--acc); color: #fff; }
.t-chem .v-points { background: var(--card); border: 1px solid var(--line); }
.t-chem .v-points h2 { font-family: "Noto Serif JP", serif; color: var(--acc); }
.t-chem .v-points li::before { background: var(--acc-hi); }
.t-chem .v-lead { color: var(--ink); }
.t-chem .sec-h { color: var(--head); }

@media (max-width: 640px) {
  .site-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; }
  .site-icon { width: 88px; height: 88px; }
}

/* ---- 記事が主役（2026-11-21） ---- */
.chem-toc { max-width: 1160px; margin: 8px auto 0; padding: 0 24px; }
.chem-toc ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chem-toc a { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--head); text-decoration: none; font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 15px;
  background: var(--panel); box-shadow: var(--shadow); }
.chem-toc a span { color: var(--acc); font-size: 13px; letter-spacing: .1em; }
.chem-toc a:hover, .chem-toc a:focus-visible { border-color: var(--acc-hi); }
.ag-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 28px 0 12px; }
.ag-head:first-of-type { margin-top: 8px; }
.ag-name { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--acc); font-size: 17px; }
.ag-desc { color: var(--muted); font-size: 13px; margin: 0; }
.agrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.acard-c { position: relative; display: flex; flex-direction: column; height: 100%; padding: 16px 16px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s, background .15s; }
.acard-c:hover, .acard-c:focus-visible { border-color: var(--acc-hi); background: var(--card-hover); }
.ac-abbr { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--head); font-size: 30px; line-height: 1.1; letter-spacing: .02em; }
.ac-abbr.long { font-size: 22px; }
.ac-name { margin-top: 6px; color: var(--acc); font-size: 14px; font-weight: 700; }
.ac-uses { margin-top: 6px; color: var(--sub); font-size: 13px; line-height: 1.6; flex: 1; }
.ac-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); font-size: 12px; }
.ac-go { color: var(--acc); font-weight: 700; } .ac-go span { margin-left: 4px; }
.ac-soon { color: var(--muted); }
.ac-vid { color: var(--acc-soft); border: 1px solid var(--chip); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
@media (max-width: 860px) { .chem-toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ac-abbr { font-size: 24px; } .ac-abbr.long { font-size: 18px; } .acard-c { padding: 12px; }
  .chem-toc a { padding: 10px 12px; font-size: 13px; gap: 6px; } .chem-toc a span { font-size: 11px; }
}

/* 分子モデル（24コマを横に並べた画像を steps() で送る。tools/mol/ で作る） */
.mol-view { position: relative; display: block; overflow: hidden; aspect-ratio: 360 / 228; }
.mol-strip { display: block; height: 100%; width: auto; max-width: none; }
@keyframes molstrip { to { transform: translateX(-100%); } }
.molfig .mol-strip { animation: molstrip 6s steps(24) infinite; }
@media (prefers-reduced-motion: reduce) { .mol-strip { animation: none !important; } }

/* カードにカーソルを乗せると出る分子モデル（画像は遅延読みこみ。スマホでは出さない） */
.ac-mol { position: absolute; z-index: 3; left: 50%; bottom: calc(100% - 6px); width: 240px;
  transform: translate(-50%, 8px) scale(.96); opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--card); border: 1px solid var(--acc-hi); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: opacity .18s, transform .18s, visibility 0s .18s; overflow: hidden; padding-bottom: 24px; }
.ac-mol .mol-view { width: 240px; }
.ac-mol .mol-strip { animation: molstrip 6s steps(24) infinite; animation-play-state: paused; }
.ac-mol-cap { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 11px; color: var(--sub); }
.acard-c:hover .ac-mol, .acard-c:focus-visible .ac-mol { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .18s, transform .18s; }
.acard-c:hover .mol-strip, .acard-c:focus-visible .mol-strip { animation-play-state: running; }
.ac-has-mol { position: absolute; top: 12px; right: 12px; font-size: 11px; color: var(--acc-soft); border: 1px solid var(--chip); border-radius: 999px; padding: 0 7px; }
@media (hover: none) { .ac-mol, .ac-has-mol { display: none; } }

/* 記事ページ（準備中の形） */
.ca { max-width: 820px; margin: 0 auto; padding: 48px 24px 80px; }
.crumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a { color: var(--acc-soft); text-decoration: none; }
.t-chem .crumb a { color: var(--acc-soft); } .crumb a:hover { text-decoration: underline; }
.ca-abbr { margin-top: 28px; font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--acc); font-size: 18px; letter-spacing: .1em; }
.ca-title { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--head); font-size: clamp(30px, 5vw, 46px); line-height: 1.25; margin-top: 6px; }
.ca-uses { color: var(--sub); margin-top: 10px; }
.ca-wave { margin: 20px 0 8px; }
.ca-soon, .yt-box, .ca-more { margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: var(--card); box-shadow: var(--shadow); }
.ca-soon h2, .ca-more h2 { font-family: "Noto Serif JP", serif; color: var(--head); font-size: 20px; }
.ca-soon p { color: var(--sub); font-size: 14px; margin-top: 6px; }
.ca-soon ol { margin: 10px 0 0; padding-left: 1.4em; color: var(--ink); } .ca-soon li { margin: 4px 0; }
.yt-box { border-color: var(--chip); }
.yt-h { font-family: "Noto Serif JP", serif; font-weight: 700; color: var(--acc); }
.yt-box p:not(.yt-h) { color: var(--ink); font-size: 14px; margin: 6px 0 14px; }
.yt-box .watch.off { margin-top: 0; display: block; color: var(--muted); }
.ca-more ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ca-more a { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--head); text-decoration: none; font-weight: 700; font-size: 14px; background: var(--panel); }
.ca-more a span { color: var(--muted); font-weight: 400; font-size: 12px; }
.ca-more a:hover { border-color: var(--acc-hi); }
.ca-rel { border-color: var(--chip); }
.ca-rel h2 { color: var(--acc-soft); }

.soon-box { border: 1px dashed var(--dash); border-radius: 12px; padding: 14px 18px; margin-top: 14px; color: var(--sub); font-size: 14px; }
.soon-box p { margin: 0; }
.soon-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.soon-list li { border: 1px solid var(--chip); color: var(--acc-soft); border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 記事の本文（本文のある化学の記事） ---- */
.ca-full { max-width: 860px; }
.ca-lead { font-size: 17px; color: var(--ink); margin: 18px 0 24px; }
.t-chem .toc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 22px; margin-bottom: 28px; box-shadow: var(--shadow); }
.t-chem .toc-h { font-weight: 700; color: var(--acc); margin-bottom: 6px; font-size: 14px; }
.t-chem .toc ul { columns: 2; column-gap: 32px; }
.t-chem .toc li { break-inside: avoid; padding: 2px 0; font-size: 15px; }
.t-chem .toc a { text-decoration: none; color: var(--head); }
.t-chem .toc a:hover { text-decoration: underline; color: var(--acc); }
@media (max-width: 640px) { .t-chem .toc ul { columns: 1; } }
.t-chem .a-sec { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 30px; margin-bottom: 18px;
  box-shadow: var(--shadow); scroll-margin-top: 16px; }
.t-chem .a-sec h2 { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 22px; line-height: 1.45; color: var(--head);
  margin-bottom: 14px; padding-left: 14px; border-left: 4px solid var(--acc-hi); }
.t-chem .a-sec.k-summary { background: #eef7f7; border-color: #cfe6e7; }
.t-chem .a-sec p { margin: 0 0 12px; }
.t-chem .a-sec strong { color: var(--acc-soft); background: linear-gradient(transparent 64%, rgba(63, 193, 201, .22) 64%); }
.t-chem .dots, .t-chem .nums { margin: 4px 0 14px; }
.t-chem .dots li { position: relative; padding-left: 18px; margin: 4px 0; }
.t-chem .dots li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--acc-hi); }
.t-chem .nums { padding-left: 1.5em; list-style: decimal; } .t-chem .nums li { margin: 4px 0; padding-left: 4px; }
.t-chem .tbl { overflow-x: auto; margin: 8px 0 16px; border-radius: 8px; border: 1px solid var(--line); }
.t-chem .tbl table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; }
.t-chem .tbl th, .t-chem .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.t-chem .tbl thead th { background: #edf6f6; color: #0b5f65; white-space: nowrap; }
.t-chem .tbl tbody th { background: #f7f9f9; white-space: nowrap; color: var(--head); }
.t-chem .tbl tbody tr:last-child th, .t-chem .tbl tbody tr:last-child td { border-bottom: 0; }
.t-chem .point { background: #f2f9f9; border: 1px solid #cfe6e7; border-radius: 8px; padding: 12px 18px; margin: 8px 0 4px; }
.t-chem .point-h { font-weight: 700; color: var(--acc-soft); font-size: 14px; margin-bottom: 4px; }
.t-chem .point li { position: relative; padding-left: 18px; margin: 3px 0; font-size: 15px; }
.t-chem .point li::before { content: "✓"; position: absolute; left: 0; color: var(--acc); font-weight: 700; }
.molfig { margin: 10px 0 18px; }
.molfig .mol-view { width: min(100%, 520px); margin: 0 auto; background: radial-gradient(ellipse at 50% 45%, #ffffff 0, #f2f6f6 75%); border: 1px solid var(--line); border-radius: 10px; }
.molfig figcaption { text-align: center; font-size: 13px; color: var(--sub); margin-top: 8px; }
.t-chem .fig3d img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.t-chem .fig figcaption { font-size: 13px; color: var(--sub); margin-top: 8px; }
@media (max-width: 640px) { .t-chem .a-sec { padding: 22px 18px; } .t-chem .a-sec h2 { font-size: 19px; } }
.t-chem .a-sec a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.t-chem .a-sec a:hover { color: #0b5f65; }
/* この材料をあつかうメーカー（東証プライム上場） */
.ca-makers .mk-note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.ca-makers ul.mk-list { display: grid; gap: 8px; }
.ca-makers .mk-list a { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-radius: 10px; padding: 10px 14px; }
.ca-makers .mk-list b { color: var(--head); }
.ca-makers .mk-list .mk-via, .ca-makers .mk-list .mk-brand { color: var(--muted); font-size: 13px; }
.ca-makers .mk-list .mk-ext { margin-left: auto; color: var(--acc-soft); }
.ca-makers .mk-none { color: var(--ink); font-size: 14px; margin: 10px 0 0; }
.ca .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.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; }
}
