/* 総合トップ：ライト（chem.css の上に重ねる。2026-11-21 黒地からライトに）。カテゴリーへの入り口だけを置く */
.top-hero { max-width: 1160px; margin: 0 auto; padding: 96px 24px 40px; text-align: center; }
.top-hero .eyebrow { font-size: 12px; letter-spacing: .3em; color: #6b7378; margin-bottom: 14px; }
.top-title { font-family: "Noto Serif JP", serif; font-weight: 700; color: #111417;
  font-size: clamp(40px, 8vw, 88px); line-height: 1.15; letter-spacing: .05em; }
.top-tag { font-family: "Noto Serif JP", serif; font-weight: 700; color: #0e7c84;
  font-size: clamp(18px, 2.6vw, 26px); margin-top: 14px; letter-spacing: .1em; }
.top-wave { height: 120px; margin: 28px 0 20px; }
.top-lead { max-width: 36em; margin: 0 auto; color: #5f676d; }

/* 入り口 */
.gates { max-width: 1160px; margin: 0 auto; padding: 40px 24px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.gate { position: relative; display: flex; flex-direction: column; padding: 36px 36px 28px;
  border-radius: 16px; text-decoration: none; overflow: hidden; }
.gate-head { display: grid; grid-template-columns: 104px 1fr; gap: 24px; align-items: center; }
.gate-icon { width: 104px; height: 104px; border-radius: 50%; }
.gate-kicker { font-size: 12px; letter-spacing: .1em; color: #5f676d; }
.gate-name { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; margin-top: 4px; }
.gate-tag { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 15px; margin-top: 4px; }
.gate-lead { font-size: 15px; margin-top: 22px; }
.gate-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gate-chips li { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; }
.gate-wave { height: 70px; margin: auto -36px 0; width: calc(100% + 72px); padding-top: 20px; box-sizing: content-box; }
.gate-go { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-weight: 700; font-size: 17px; }
.gate-n { font-size: 13px; font-weight: 400; color: #5f676d; margin-left: auto; }

.gate-chem { grid-column: 1 / -1; }
.gate-chem { background: #ffffff; color: #2a2f33; border: 1px solid #d9e2e3; box-shadow: 0 1px 2px rgba(17,20,23,.05), 0 8px 24px rgba(17,20,23,.05); }
.gate-chem .gate-icon { box-shadow: 0 0 0 2px #3fc1c9; }
.gate-chem .gate-name { color: #111417; }
.gate-chem .gate-tag, .gate-chem .gate-go, .gate-chem .gate-chips li { color: #0e7c84; }

.gate-study { color: #1f2a36; background-color: #e6eff3;
  background-image: linear-gradient(rgba(20,147,156,.10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(20,147,156,.10) 1px, transparent 1px);
  background-size: 28px 28px; }
.gate-study { border: 1px solid #cfe0e6; }
.gate-study .gate-icon { box-shadow: 0 0 0 2px #14939c; background: #fff; }
.gate-study .gate-name em, .gate-study .gate-tag, .gate-study .gate-go, .gate-study .gate-chips li { color: #0d747b; }

@media (prefers-reduced-motion: no-preference) {
  .gate { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .gate:hover { transform: translateY(-4px); }
  .gate-chem:hover { border-color: #3fc1c9; box-shadow: 0 0 0 1px #3fc1c9, 0 18px 40px rgba(14,124,132,.12); }
  .gate-study:hover { border-color: #9fc9d1; box-shadow: 0 18px 40px rgba(31,42,54,.10); }
}

.t-top .about { max-width: 1160px; margin: 0 auto; padding: 72px 24px 88px; }
.t-top .about { border-top: 1px solid #e3e6e8; margin-top: 48px; }
.t-top .about p { max-width: 44em; color: #4b5358; margin-bottom: 8px; }

/* 文章ページ */
.t-top .doc h1 { color: #111417; }
.t-top .doc p { color: #2a2f33; }
.t-top .doc .note { color: #6b3d00; }
.t-top .nf a { color: #0e7c84; }

@media (max-width: 860px) {
  .gates { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top-hero { padding-top: 64px; }
  .gate { padding: 28px 22px 22px; }
  .gate-head { grid-template-columns: 72px 1fr; gap: 16px; }
  .gate-icon { width: 72px; height: 72px; }
  .gate-wave { margin: auto -22px 0; width: calc(100% + 44px); }
}
.gate-name em { display: inline-block; }   /* 「中学受験理科」「高校受験理科」を途中で折り返さない */
/* アイコンと文字の列を固定。拡張機能などが要素を差しこんでも、文字が104pxの列に落ちない（2026-11-28） */
.gate-icon { grid-column: 1; grid-row: 1; }
.gate-text { grid-column: 2; grid-row: 1; min-width: 0; }
