@charset "utf-8";
/* ks-daigaku-2026-gakumon.css  v2（2026-11-26 ジャンプ微調整）
   学問別トップ（/daigaku/search/gakumon.html）専用。
   見出し・ジャンプボタン・ほかの探し方の枠は ks-daigaku-2026-bun.css を共用し、ここはトップだけの部品。 */
/* 学問別トップ 2026（gakumon.html専用・全89系統を一目で） */
#mainContent .ks-bun-jump { margin: 0 0 26px; }
#mainContent .ks-bun-sec-title a { color: #222; text-decoration: none; }
#mainContent .ks-bun-sec-title a:hover { color: #f46574; }
#mainContent .ks-gkt-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
#mainContent .ks-gkt-list li { display: flex; }
#mainContent .ks-gkt-list a { position: relative; flex: 1; display: flex; align-items: center; min-height: 44px; padding: 7px 22px 7px 10px; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff; color: #177db2; font-size: 15px; font-weight: bold; line-height: 1.35; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
#mainContent .ks-gkt-list a::after { content: "›"; position: absolute; right: 8px; top: 50%; transform: translateY(-52%); color: #d3381c; font-size: 18px; font-weight: normal; }
#mainContent .ks-gkt-list a:hover { border-color: #177db2; box-shadow: 0 2px 6px rgba(23,125,178,.15); color: #f46574; }
#mainContent .ks-gkt-list .small { font-size: 12px; font-weight: normal; }
#mainContent .ks-gkt-more { margin: 10px 0 0; text-align: right; font-size: 14px; }
#mainContent .ks-gkt-more a { color: #2d405d; text-decoration: none; }
#mainContent .ks-gkt-more a::after { content: " ›"; color: #d3381c; }
#mainContent .ks-gkt-more a:hover { color: #f46574; }
#mainContent .ks-gkt-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
#mainContent .ks-gkt-ways a { display: block; height: 100%; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff; text-decoration: none; }
#mainContent .ks-gkt-ways a:hover { border-color: #177db2; box-shadow: 0 2px 6px rgba(23,125,178,.15); }
#mainContent .ks-gkt-ways strong { display: block; color: #177db2; font-size: 16px; line-height: 1.4; }
#mainContent .ks-gkt-ways span { display: block; margin-top: 3px; color: #555; font-size: 13px; line-height: 1.5; }
/* v2：分野へジャンプ（ページ内アンカー） */
html { scroll-behavior: smooth; }
#mainContent .ks-bun-sec, #mainContent #gkmJump { scroll-margin-top: 12px; }
#mainContent .ks-bun-jump .ks-bun-other-title small { display: block; margin-top: 2px; color: #777; font-size: 12px; font-weight: normal; }
#mainContent .ks-bun-jump .ks-bun-fields a::after { content: " ↓"; color: #d3381c; font-weight: bold; }
#mainContent .ks-gkt-more { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
#mainContent .ks-gkt-more a.ks-gkt-up { color: #777; font-size: 13px; }
#mainContent .ks-gkt-more a.ks-gkt-up::before { content: "▲ "; color: #2d405d; }
#mainContent .ks-gkt-more a.ks-gkt-up::after { content: ""; }
@media screen and (max-width: 667px) {
  #mainContent .ks-gkt-list { grid-template-columns: 1fr 1fr; }
  #mainContent .ks-gkt-ways { grid-template-columns: 1fr; }
}
