:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:rgba(229,231,235,.88);
  --blue:#1d4ed8;
  --blue2:#0b3aa6;
  --chip:#eaf0ff;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --shadow-soft:0 8px 24px rgba(17,24,39,.05);
  --radius:18px;
  --radius-sm:14px;
  --max:1200px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  background:linear-gradient(180deg,#eef3ff 0%, var(--bg) 28%, var(--bg) 100%);
  color:var(--text);
}

a{
  color:inherit;
}

/* ===== 修正①：全体幅拡張 ===== */
.container{
  max-width:1440px;
  margin:0 auto;
  padding:22px 24px 70px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.topBar{
  margin-bottom:18px;
}

.topBarInner{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  flex-wrap:wrap;
}

.topLink{
  text-decoration:none;
  font-weight:900;
  color:#0f2a5a;
}

.topLink:hover{
  text-decoration:underline;
}

.topSep{
  color:#94a3b8;
  font-weight:900;
}

.topCurrent{
  color:#64748b;
  font-weight:900;
}

.articleShell{
  display:block;
}

/* ===== 修正②：Hero拡張 ===== */
.articleHero{
  padding:32px 48px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(29,78,216,.12), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
}

.articleHeroInner{
  max-width:1200px;
}

.articleMetaTop{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:#64748b;
  font-size:13px;
  font-weight:900;
}

.metaDot{
  color:#94a3b8;
}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  padding:8px 10px;
  border-radius:999px;
  background:var(--chip);
  border:1px solid rgba(29,78,216,.18);
  color:#173a8f;
  font-size:12px;
  font-weight:950;
}

/* ===== 修正③：タイトル少し強化 ===== */
.articleTitle{
  margin:14px 0 0;
  font-size:52px;
  line-height:1.18;
  color:#0f2a5a;
  font-weight:950;
  letter-spacing:.01em;
}

/* ===== 修正④：リード幅拡張 ===== */
.articleLead{
  margin:16px 0 0;
  max-width:1080px;
  color:#475569;
  font-weight:800;
  line-height:1.9;
  font-size:16px;
}

.articleLayout{
  margin-top:18px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:18px;
  align-items:start;
}

.articleMain{
  min-width:0;
}

.articleBody{
  padding:24px 22px;
}

.articleBody section + section{
  margin-top:30px;
}

.articleBody h2{
  margin:0 0 12px;
  font-size:28px;
  line-height:1.35;
  color:#0f2a5a;
  font-weight:950;
}

.articleBody h3{
  margin:0 0 10px;
  font-size:20px;
  line-height:1.4;
  color:#0f2a5a;
  font-weight:950;
}

.articleBody p{
  margin:0;
  color:#374151;
  font-weight:800;
  line-height:1.95;
}

.articleBody p + p{
  margin-top:14px;
}

.articleBody ul,
.articleBody ol{
  margin:12px 0 0;
  padding-left:1.4em;
  color:#374151;
}

.articleBody li{
  margin:8px 0;
  line-height:1.85;
  font-weight:800;
}

.infoBox{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  background:rgba(243,246,255,.82);
  border:1px solid rgba(29,78,216,.16);
}

.infoBoxTitle{
  margin:0 0 8px;
  font-size:16px;
  color:#173a8f;
  font-weight:950;
}

#rankingMeta,
#subjectMeta{
  margin-top:8px;
  color:#64748b;
  font-size:14px;
  font-weight:900;
}

#subjectTables{
  margin-top:12px;
}

#subjectTables > section{
  margin-top:20px;
  padding:18px 16px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow-soft);
}

.tableWrap{
  margin-top:14px;
  overflow-x:auto;
  border-radius:14px;
}

table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  background:#fff;
  border:1px solid rgba(229,231,235,.9);
  border-radius:14px;
  overflow:hidden;
}

th,
td{
  padding:12px 12px;
  text-align:left;
  vertical-align:top;
  border-top:1px solid rgba(229,231,235,.9);
  line-height:1.7;
}

thead th{
  background:#f8fafc;
  color:#0f2a5a;
  font-weight:950;
  border-top:none;
  white-space:nowrap;
}

tbody tr:nth-child(even){
  background:#fcfdff;
}

tbody tr:hover{
  background:#f7faff;
}

.articleSide{
  display:flex;
  flex-direction:column;
  gap:14px;
  position:sticky;
  top:18px;
}

.sideCard{
  padding:18px 16px;
}

.sideTitle{
  margin:0 0 12px;
  font-size:18px;
  color:#0f2a5a;
  font-weight:950;
}

.sideActions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  cursor:pointer;
  text-decoration:none;
  font-weight:900;
  transition:.15s transform ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn.primary{
  background:linear-gradient(180deg,var(--blue) 0%,var(--blue2) 100%);
  color:#fff;
  border-color:rgba(29,78,216,.55);
  box-shadow:0 10px 24px rgba(29,78,216,.18);
}

.footer{
  margin-top:30px;
  text-align:center;
  color:#6b7280;
  font-weight:900;
}

/* ===== レスポンシブ ===== */

@media (max-width: 1100px){
  .articleLayout{
    grid-template-columns:1fr;
  }
  .articleSide{
    position:static;
  }
}

@media (max-width: 900px){
  .articleTitle{
    font-size:32px;
  }
  .articleBody h2{
    font-size:24px;
  }
}

@media (max-width: 640px){

  .container{
    padding:18px 14px 56px;
  }

  .articleHero{
    padding:22px 18px;
  }

  .articleHeroInner{
    max-width:100%;
  }

  .articleBody{
    padding:20px 16px;
  }

  .articleTitle{
    font-size:28px;
  }

  .articleLead{
    max-width:100%;
    font-size:15px;
  }

  .articleBody h2{
    font-size:22px;
  }

  .btn{
    width:100%;
  }

  table{
    min-width:620px;
  }

  th,
  td{
    padding:10px 10px;
  }

  #subjectTables > section{
    padding:14px 12px;
  }
}