:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line: rgba(229,231,235,.85);
  --blue:#1d4ed8;
  --blue2:#0b3aa6;
  --red:#dc2626;
  --red2:#b91c1c;
  --amber:#d97706;
  --amber2:#b45309;
  --gray1:#94a3b8;
  --gray2:#64748b;
  --shadow:0 10px 30px rgba(17,24,39,.08);
  --radius:18px;
  --max:980px;
}

*{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) 34%, var(--bg) 100%);
  color:var(--text);
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:22px 18px 70px;}
.section{margin-top:26px}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.simpleCard{padding:16px}
.muted{color:var(--muted); font-weight:850; line-height:1.7}

h1{
  margin:0;
  font-size:32px;
  font-weight:950;
  color:#0f2a5a;
  text-align:center;
}
h2{
  margin:0 0 12px;
  font-size:22px;
  font-weight:950;
  color:#0f2a5a;
  text-align:center;
}
h3{
  margin:18px 0 8px;
  font-size:16px;
  font-weight:950;
  color:#0f2a5a;
}

.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, .15s background ease, .15s border ease, .15s box-shadow ease;
  user-select:none;
}
.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);
}

/* hero */
.heroWrap{
  overflow:hidden;
  background:#fff;
  border-radius:18px;
}
.heroImg{
  width:100%;
  aspect-ratio:16 / 9;
  height:auto;
  object-fit:cover;
  display:block;
}

/* table */
.tableWrap{overflow:auto}
table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
th, td{
  text-align:left;
  padding:10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
tbody tr:last-child td{border-bottom:none}

.footer{
  margin-top:28px;
  text-align:center;
  color:#6b7280;
  font-weight:900;
}

.noteBox{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(234,240,255,.95) 0%, rgba(245,248,255,.95) 100%);
  border:1px solid rgba(29,78,216,.14);
  color:#173a8f;
  font-weight:850;
  line-height:1.8;
}

/* common stat styles */
.statsIntro{
  max-width:860px;
  margin:0 auto 14px;
}

.statEyebrow{
  margin:0;
  font-size:12px;
  font-weight:950;
  letter-spacing:.08em;
  color:#1d4ed8;
}

.statTitle{
  margin:0;
  font-size:18px;
  line-height:1.45;
  font-weight:950;
  color:#0f2a5a;
}

.bigNumberBox{
  border:1px solid rgba(29,78,216,.12);
  background: linear-gradient(180deg, rgba(243,246,255,.95) 0%, rgba(255,255,255,.96) 100%);
  border-radius:16px;
  padding:14px;
  text-align:center;
}

.bigNumberLabel{
  font-size:12px;
  font-weight:950;
  color:#6b7280;
  letter-spacing:.06em;
}

.bigNumber{
  margin-top:6px;
  font-size:40px;
  line-height:1.05;
  font-weight:950;
  color:#0f2a5a;
}

.bigNumberUnit{
  margin-left:4px;
  font-size:.45em;
  font-weight:900;
  color:#374151;
}

.bigNumberSub{
  margin:8px 0 0;
  color:#475569;
  font-weight:850;
  line-height:1.6;
}

.vizBlock{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.vizRow{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.vizMeta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.vizLabel{
  font-weight:950;
  color:#0f2a5a;
}

.vizValue{
  font-weight:900;
  color:#374151;
  font-size:14px;
}

.barTrack{
  width:100%;
  height:12px;
  border-radius:999px;
  background:#e8edf7;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.9);
}

.barFill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue2) 100%);
}

.statNote{
  margin-top:auto;
  padding:12px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(229,231,235,.9);
  color:#374151;
  font-weight:850;
  line-height:1.75;
}

/* application trend */
.applyTrendGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  align-items:stretch;
}

.trendCard{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.trendCardPrimary{
  border-color: rgba(29,78,216,.22);
  box-shadow: 0 14px 34px rgba(29,78,216,.12);
}

.trendTitle{
  margin:0;
  font-size:18px;
  line-height:1.4;
  font-weight:950;
  color:#0f2a5a;
}

.trendNumber{
  font-size:38px;
  line-height:1.05;
  font-weight:950;
  color:#0f2a5a;
}

.trendSub{
  margin:0;
  color:#475569;
  font-weight:850;
  line-height:1.65;
}

/* difficulty */
.difficultyGrid{
  display:grid;
  grid-template-columns:1.3fr .9fr;
  gap:14px;
  margin-top:14px;
  align-items:stretch;
}

.difficultyCard{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.difficultyHead{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.difficultyBig{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:center;
  border:1px solid rgba(29,78,216,.12);
  background: linear-gradient(180deg, rgba(243,246,255,.95) 0%, rgba(255,255,255,.96) 100%);
  border-radius:16px;
  padding:14px;
}

.difficultyStat{
  text-align:center;
}

.difficultyLabel{
  font-size:12px;
  font-weight:950;
  color:#6b7280;
  letter-spacing:.06em;
}

.difficultyNumber{
  margin-top:6px;
  font-size:34px;
  line-height:1.05;
  font-weight:950;
  color:#0f2a5a;
}

.difficultyArrow{
  font-size:28px;
  font-weight:950;
  color:#1d4ed8;
  align-self:center;
}

.difficultyVisual{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.difficultyLine{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.difficultyMeta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.difficultyMetaLabel{
  font-weight:950;
  color:#0f2a5a;
}

.difficultyMetaValue{
  font-weight:900;
  color:#374151;
  font-size:14px;
}

.difficultyTrack{
  width:100%;
  height:14px;
  border-radius:999px;
  background:#e8edf7;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.9);
}

.difficultyFill{
  height:100%;
  border-radius:999px;
}

.difficultyApplicants{
  background: linear-gradient(90deg, var(--gray1) 0%, var(--gray2) 100%);
}

.difficultyAccepted{
  min-width:12px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red2) 100%);
}

.difficultyRateBox{
  border:1px solid rgba(239,68,68,.14);
  background: linear-gradient(180deg, rgba(254,242,242,.95) 0%, rgba(255,255,255,.98) 100%);
  border-radius:16px;
  padding:14px;
  text-align:center;
}

.difficultyRateBoxSecondary{
  margin-top:0;
}

.difficultyRateLabel{
  font-size:12px;
  font-weight:950;
  color:#7f1d1d;
  letter-spacing:.06em;
}

.difficultyRate{
  margin-top:6px;
  font-size:36px;
  line-height:1.05;
  font-weight:950;
  color:#b91c1c;
}

.difficultyRateSub{
  margin:8px 0 0;
  color:#7f1d1d;
  font-weight:850;
  line-height:1.6;
}

.smallFigureBox{
  border:1px solid rgba(29,78,216,.12);
  background: linear-gradient(180deg, rgba(243,246,255,.95) 0%, rgba(255,255,255,.96) 100%);
  border-radius:16px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.smallFigureTop{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.smallFigureNumber{
  margin-top:6px;
  font-size:28px;
  line-height:1.05;
  font-weight:950;
  color:#0f2a5a;
}

/* stats cards */
.statsGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  align-items:stretch;
}

.statCard{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.statCardHead{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* japan card */
.jpShareBox{
  display:grid;
  grid-template-columns:1fr 132px;
  gap:14px;
  align-items:center;
  border:1px solid rgba(29,78,216,.12);
  background: linear-gradient(180deg, rgba(243,246,255,.95) 0%, rgba(255,255,255,.96) 100%);
  border-radius:16px;
  padding:14px;
}

.jpLabel{
  font-size:12px;
  font-weight:950;
  letter-spacing:.06em;
  color:#6b7280;
}

.jpNumber{
  margin-top:6px;
  font-size:38px;
  line-height:1.05;
  font-weight:950;
  color:#0f2a5a;
}

.jpSub{
  margin-top:8px;
  font-weight:900;
  color:#374151;
}

.shareRing{
  width:132px;
  height:132px;
  border-radius:50%;
  background:
    conic-gradient(#1d4ed8 0 6.12deg, #e8edf7 6.12deg 360deg);
  display:grid;
  place-items:center;
  margin-left:auto;
  border:1px solid rgba(229,231,235,.9);
}

.shareRingInner{
  width:92px;
  height:92px;
  border-radius:50%;
  background:#fff;
  display:grid;
  place-items:center;
  box-shadow: inset 0 0 0 1px rgba(229,231,235,.9);
}

.shareRingInner span{
  font-weight:950;
  color:#0f2a5a;
  font-size:18px;
}

.compareBox{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.compareLine{
  display:grid;
  grid-template-columns:46px 1fr auto;
  align-items:center;
  gap:10px;
}

.compareLabel{
  font-weight:950;
  color:#0f2a5a;
}

.compareTrack{
  height:12px;
  border-radius:999px;
  background:#e8edf7;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.9);
}

.compareFill{
  height:100%;
  border-radius:999px;
}

.compareAll{
  background: linear-gradient(90deg, var(--gray1) 0%, var(--gray2) 100%);
}

.compareJapan{
  min-width:6px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue2) 100%);
}

.compareValue{
  font-weight:900;
  color:#374151;
  font-size:14px;
}

.miniRank{
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:12px;
  background:rgba(255,255,255,.92);
}

.miniRankTitle{
  margin:0 0 8px;
  font-weight:950;
  color:#0f2a5a;
}

.miniRankList{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.miniRankItem{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  font-weight:850;
  color:#374151;
  border-bottom:1px dashed rgba(229,231,235,.95);
  padding-bottom:8px;
}

.miniRankItem:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.miniRankItem b{
  color:#0f2a5a;
}

.topUniversityBox{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  background: linear-gradient(180deg, rgba(243,246,255,.95) 0%, rgba(255,255,255,.96) 100%);
  border:1px solid rgba(29,78,216,.12);
}

.topUniversityBadge{
  flex:0 0 auto;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(29,78,216,.12);
  border:1px solid rgba(29,78,216,.18);
  color:#173a8f;
  font-size:12px;
  font-weight:950;
}

.topUniversityName{
  margin:0;
  font-weight:950;
  color:#0f2a5a;
}

.topUniversityText{
  margin:6px 0 0;
  color:#475569;
  font-weight:850;
  line-height:1.65;
}

/* insights */
.insightList{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.insightItem{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  background:#fff;
}

.insightNum{
  width:32px;
  height:32px;
  border-radius:12px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
  color:#173a8f;
  background:#eaf0ff;
  border:1px solid rgba(29,78,216,.18);
}

.insightBody{
  min-width:0;
}

.insightTitle{
  margin:0;
  font-weight:950;
  color:#0f2a5a;
}

.insightText{
  margin:6px 0 0;
  color:#374151;
  font-weight:850;
  line-height:1.7;
}

/* sources */
.sourceNote{
  color:#475569;
  font-weight:850;
  line-height:1.85;
  font-size:14px;
}

.sourceNote p{
  margin:0 0 10px;
}

.sourceNote p:last-child{
  margin-bottom:0;
}

.sourceNote a{
  color:#1d4ed8;
  text-decoration:none;
  font-weight:900;
  word-break:break-word;
}

.sourceNote a:hover{
  text-decoration:underline;
}

/* responsive */
@media (max-width: 980px){
  .applyTrendGrid,
  .statsGrid,
  .difficultyGrid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  h1{font-size:26px}
  .heroImg{aspect-ratio:16 / 10}
  table{min-width:560px}

  .jpShareBox{
    grid-template-columns:1fr;
  }

  .shareRing{
    margin:0 auto;
  }

  .bigNumber{
    font-size:34px;
  }

  .jpNumber{
    font-size:32px;
  }

  .trendNumber{
    font-size:32px;
  }

  .difficultyBig{
    grid-template-columns:1fr;
  }

  .difficultyArrow{
    transform:rotate(90deg);
    margin:0 auto;
  }

  .difficultyNumber{
    font-size:30px;
  }

  .difficultyRate{
    font-size:32px;
  }

  .smallFigureTop{
    grid-template-columns:1fr;
  }

  .statTitle,
  .trendTitle{
    font-size:17px;
  }
}

/* CTA セクション */
.ctaTitle{
  font-size:28px;
  font-weight:950;
  margin:0 0 12px;
  color:#0f2a5a;
  text-align:center;
}

.ctaText{
  max-width:760px;
  margin:0 auto 16px;
  line-height:1.8;
  color:#374151;
  font-weight:850;
}

.ctaText:last-of-type{
  margin-bottom:18px;
}