/*
 * ============================================================
 * Loohcs志塾 — 合格実績ページ専用スタイル
 * ============================================================
 * 適用先：
 *   single-results-p36731.php（results 投稿タイプ、スラッグ p36731）
 *
 * 読み込み：
 *   functions.php の wp_enqueue_scripts フックにて、
 *   is_singular('results') かつスラッグ p36731 のときのみロード
 *
 * 注意：
 *   元の body セレクタは .results-page にスコープしてあります。
 *   これにより SWELL 全体のスタイルへの影響を防いでいます。
 * ============================================================
 */

:root {
  --navy:   #004661;
  --navy-d: #003350;
  --navy-l: #005b80;
  --gray:   #A0A0A0;
  --gray-l: #EFEFEF;
  --amber:  #E89715;
  --amber-l:#F5C870;
  --teal:   #009EAA;
  --teal-l: #D0F0F3;
  --pink:   #E01962;
  --pink-l: #FCE4ED;
  --white:  #ffffff;
  --ink:    #1A1A1A;
  --paper:  #F7F9FA;
  --border: #E2E8EC;
  --muted:  #6B7280;

  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Noto Serif JP', serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --font-en:      'DM Serif Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.results-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  background: #F5F8FA;
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 420px;
}
.hero-left {
  padding: 64px 48px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-right {
  background: rgba(0,70,97,0.05);
  border-left: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  clip-path: polygon(32px 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 3px solid var(--amber);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.hero-stat.is-teal { border-left-color: var(--teal); }
.hero-stat.is-teal .hero-stat-num { color: var(--teal); }

.update-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,158,170,0.08);
  border: 1px solid rgba(0,158,170,0.3);
  color: var(--teal);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.update-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

@media(max-width: 800px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right {
    clip-path: none;
    background: rgba(0,70,97,0.04);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 32px 24px;
  }
  .hero-stat { flex: 1 1 140px; }
  .hero-left { padding: 48px 24px 32px; }
}

/* ===== KEIO SPOTLIGHT ===== */
.keio-spotlight {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.keio-spotlight::before {
  content: '慶應';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 280px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.keio-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.keio-headline {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.keio-big {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
  color: var(--amber-l);
  letter-spacing: -0.03em;
}
.keio-big-unit {
  font-size: 0.35em;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  vertical-align: baseline;
}
.keio-sub-label {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.keio-claim {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}
.keio-claim em {
  font-style: normal;
  color: var(--amber-l);
  border-bottom: 2px solid var(--amber);
}
.keio-body {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 24px;
}
.keio-faculty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.keio-faculty-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.keio-faculty-name { font-size: 13px; color: rgba(255,255,255,0.8); }
.keio-faculty-num { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--amber-l); }
.keio-faculty-unit { font-size: 11px; color: rgba(255,255,255,0.5); margin-left: 2px; }

@media(max-width: 800px){
  .keio-inner { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .keio-spotlight::before { display: none; }
}

/* ===== RATE BANNER ===== */
.rate-banner {
  background: linear-gradient(135deg, #009EAA 0%, #006E79 100%);
  color: var(--white);
  overflow: hidden;
}
.rate-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 48px;
}
.rate-banner-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.rate-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}
.rate-banner-note {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.rate-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.rate-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 28px;
}
.rate-card-univ {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}
.rate-card-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rate-row-year { font-size: 11px; color: rgba(255,255,255,0.65); width: 52px; flex-shrink: 0; }
.rate-bar-wrap { flex: 1; }
.rate-bar-bg { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.2); overflow: hidden; margin-bottom: 3px; }
.rate-bar-fill { height: 100%; border-radius: 3px; background: var(--amber-l); }
.rate-detail { font-size: 10px; color: rgba(255,255,255,0.55); }
.rate-pct { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--amber-l); width: 50px; text-align: right; flex-shrink: 0; }

@media(max-width: 600px){
  .rate-banner-inner { padding: 48px 24px; }
}

/* ===== SECTION WRAPPER ===== */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 48px;
}
@media(max-width: 640px){ .wrap { padding: 48px 20px; } }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.8;
}

/* ===== BIG CARDS ===== */
.big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.big-card {
  background: var(--white);
  padding: 28px 24px;
}
.big-card-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.big-card-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.big-card-unit { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.big-card-note { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ===== UNI TABLE ===== */
.uni-table-wrap { overflow-x: auto; }
.uni-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.uni-table th {
  font-size: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  background: var(--gray-l);
  font-weight: 500;
}
.uni-table th:first-child { text-align: left; border-radius: 8px 0 0 0; }
.uni-table th:last-child { border-radius: 0 8px 0 0; }
.uni-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: right;
  vertical-align: middle;
}
.uni-table td:first-child { text-align: left; }
.uni-table tr:last-child td { border-bottom: none; }
.uni-table tr { background: var(--white); }
.uni-table tr.row-keio { background: rgba(0,70,97,0.04); }
.uni-table tr.row-nat { background: rgba(0,158,170,0.04); }
.uni-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.uni-name-sub { font-size: 11px; color: var(--muted); font-weight: 400; display: block; margin-top: 2px; }
.num-big { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--navy); }
.num-small { font-size: 12px; color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-left: 4px;
}
.tag-keio { background: rgba(0,70,97,0.1); color: var(--navy); }
.tag-nat  { background: rgba(0,158,170,0.12); color: #007A82; }
.bar-wrap { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-bg { width: 80px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--navy); }
.bar-fill.nat { background: var(--teal); }

/* ===== NATIONAL SECTION ===== */
.nat-banner {
  background: linear-gradient(135deg, #003350 0%, #004661 60%, #005b80 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.nat-banner::after {
  content: '旧帝大';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-family: var(--font-serif);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}
.nat-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px;
  position: relative;
  z-index: 1;
}
.nat-banner-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0,158,170,0.9);
  margin-bottom: 12px;
}
.nat-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
}
.nat-banner-note { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }
.nat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.nat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 24px;
}
.nat-card.is-top {
  background: rgba(0,158,170,0.15);
  border-color: rgba(0,158,170,0.35);
}
.nat-card-univ {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.nat-card-total {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: #7EE8F0;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.nat-card-total-unit { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.5); margin-left: 2px; }
.nat-card-note { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.nat-dept-list { list-style: none; }
.nat-dept-list li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}
.nat-dept-list li:last-child { border-bottom: none; }
.nat-dept-list li span { font-weight: 700; color: rgba(255,255,255,0.9); }
.nat-other-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nat-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  gap: 8px;
  align-items: center;
}
.nat-chip-num { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: #7EE8F0; }

@media(max-width: 640px){
  .nat-banner-inner { padding: 48px 20px; }
  .nat-banner::after { display: none; }
}

/* ===== DIVERSITY ===== */
.div-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.div-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 22px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.div-card:hover { box-shadow: 0 4px 20px rgba(0,70,97,0.1); }
.div-card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}
.div-card:nth-child(1) .div-card-accent { background: var(--navy); }
.div-card:nth-child(2) .div-card-accent { background: var(--teal); }
.div-card:nth-child(3) .div-card-accent { background: var(--amber); }
.div-card:nth-child(4) .div-card-accent { background: var(--pink); }
.div-card:nth-child(5) .div-card-accent { background: #6B48C8; }
.div-card:nth-child(6) .div-card-accent { background: #2E9A6B; }
.div-card-icon { font-size: 22px; margin-bottom: 10px; }
.div-card-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.div-card-body { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ===== DEF BOX ===== */
.def-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.def-box strong { color: var(--ink); }
.def-box p + p { margin-top: 10px; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); }

/* ===== ANIM ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }

/* ===== FULL-WIDTH BREAKOUT =====
   SWELL の l-mainContent にはコンテンツ幅の max-width がかかっているため、
   背景色を画面端まで伸ばしたいセクションは viewport 幅にブレイクアウトさせる。
   前回の hero セクションと同じパターン。 */
.results-page .keio-spotlight,
.results-page .rate-banner,
.results-page .nat-banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.postid-36731 {
    background: var(--paper);
}
