/* ════════════════════════════════════════════
   算数羅針盤 — デザインシステム
   テーマ: 和紙 × 墨 × 朱 × モダンクリーン
════════════════════════════════════════════ */

:root {
  --ink:        #1c1a18;
  --ink-60:     rgba(28,26,24,.6);
  --paper:      #faf8f3;
  --paper-2:    #f3efe6;
  --cream:      #ede8dc;
  --border:     #d8d0c0;
  --vermilion:  #c94b2c;
  --gold:       #b8943f;
  --gold-lt:    #e8d49a;

  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans:  'Noto Sans JP', sans-serif;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;

  --shadow-sm:  0 2px 8px rgba(28,26,24,.08);
  --shadow:     0 6px 24px rgba(28,26,24,.12);
  --shadow-lg:  0 16px 48px rgba(28,26,24,.18);

  --ease: cubic-bezier(.25,.46,.45,.94);

  /* 学校ごとにJS側で上書き */
  --school-color:  #1a3a5c;
  --school-accent: #c8a96e;
}

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 和紙テクスチャ */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(184,148,63,.05) 0%, transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(74,124,95,.04) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23n)' opacity='.018'/%3E%3C/svg%3E");
}

/* ── レイアウト ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ══════════════════════════════════════════
   ナビゲーション
══════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,248,243,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 48px);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--vermilion); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); color: #fff;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; letter-spacing: .05em;
}
.nav-logo-sub {
  display: block; font-size: 10px;
  color: var(--ink-60); margin-top: -3px; letter-spacing: .07em;
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--ink-60);
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--vermilion); }
.nav-back {
  display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink-60);
  font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: #fff;
  transition: all .2s;
}
.nav-back:hover { border-color: var(--ink); color: var(--ink); }
.nav-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--ink);
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
}

/* ══════════════════════════════════════════
   ヒーロー（トップページ）
══════════════════════════════════════════ */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(72px,10vw,120px) clamp(16px,4vw,48px) clamp(56px,8vw,100px);
}
.hero-bg-text {
  position: absolute; font-family: var(--font-serif);
  font-size: clamp(220px,38vw,520px); font-weight: 700;
  color: rgba(184,148,63,.065);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none; user-select: none; line-height: 1; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vermilion); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 28px;
  animation: fadeUp .5s var(--ease) both;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(30px,6vw,62px); font-weight: 700;
  line-height: 1.3; letter-spacing: .02em; margin-bottom: 24px;
  animation: fadeUp .5s .1s var(--ease) both;
}
.hero-title em {
  font-style: normal; color: var(--vermilion); position: relative;
}
.hero-title em::after {
  content: ''; position: absolute;
  bottom: 2px; left: 0; right: 0; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.hero-desc {
  font-size: clamp(14px,2vw,17px); color: var(--ink-60);
  max-width: 600px; margin: 0 auto 40px;
  animation: fadeUp .5s .2s var(--ease) both;
}
.hero-stats {
  display: flex; justify-content: center;
  gap: clamp(28px,5vw,64px); flex-wrap: wrap;
  animation: fadeUp .5s .3s var(--ease) both;
}
.hero-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(28px,4vw,42px); font-weight: 700;
  color: var(--vermilion); line-height: 1;
}
.hero-stat-label { font-size: 12px; color: var(--ink-60); margin-top: 5px; letter-spacing: .05em; }

/* ══════════════════════════════════════════
   フィルター
══════════════════════════════════════════ */
.filter-section {
  padding: 0 0 40px;
  position: relative; z-index: 1;
}
.search-wrap {
  position: relative; max-width: 480px; margin: 0 auto 20px;
}
.search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); font-size: 17px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 14px 16px 14px 48px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: #fff; font-family: var(--font-sans);
  font-size: 15px; color: var(--ink); outline: none;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,63,.15);
}
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-tag {
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--ink-60);
  cursor: pointer; transition: all .2s; font-family: var(--font-sans);
}
.filter-tag:hover, .filter-tag.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.filter-tag.active { background: var(--vermilion); border-color: var(--vermilion); }

/* ══════════════════════════════════════════
   学校グリッド
══════════════════════════════════════════ */
.schools-section { padding: 0 0 80px; position: relative; z-index: 1; }
.section-header {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(20px,3vw,28px); font-weight: 700; letter-spacing: .03em;
}
.section-count { font-size: 13px; color: var(--ink-60); }
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(360px,100%), 1fr));
  gap: 24px;
}
.loading-spinner { text-align: center; padding: 48px; color: var(--ink-60); font-size: 15px; }

/* ── 学校カード ── */
.school-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: fadeUp .45s var(--ease) both;
}
.school-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-header {
  padding: 26px 26px 18px; position: relative; overflow: hidden;
}
.card-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--school-color);
}
.card-header::after {
  content: attr(data-kanji); position: absolute;
  right: -6px; top: -10px; font-family: var(--font-serif);
  font-size: 86px; font-weight: 700; color: rgba(0,0,0,.04);
  line-height: 1; pointer-events: none; user-select: none;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.card-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 100px;
  background: var(--paper-2); color: var(--ink-60);
}
.card-tag.primary { background: var(--school-color); color: #fff; }
.card-name {
  font-family: var(--font-serif);
  font-size: 21px; font-weight: 700; letter-spacing: .02em; margin-bottom: 5px;
}
.card-location { font-size: 12px; color: var(--ink-60); margin-bottom: 12px; }
.card-summary { font-size: 13.5px; line-height: 1.7; color: var(--ink-60); }

.card-body {
  padding: 18px 26px 20px;
  border-top: 1px solid var(--paper-2); background: var(--paper);
}
.card-metrics {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px;
}
.metric { text-align: center; }
.metric-value {
  display: block; font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--school-color); line-height: 1.1;
}
.metric-label { font-size: 11px; color: var(--ink-60); letter-spacing: .04em; margin-top: 2px; }

.deviation-bar { background: var(--cream); border-radius: 100px; height: 6px; overflow: hidden; }
.deviation-fill {
  height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, var(--school-color), var(--school-accent));
  transition: width 1s .3s var(--ease);
}
.deviation-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-60); margin-top: 3px;
}
.card-units { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.unit-chip {
  font-size: 11px; padding: 4px 10px; border-radius: 100px;
  background: var(--cream); color: var(--ink-60); font-weight: 500;
}
.unit-chip.top {
  background: color-mix(in srgb, var(--school-color) 14%, #fff);
  color: var(--school-color); font-weight: 700;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 26px; border-top: 1px solid var(--paper-2);
}
.card-updated { font-size: 11px; color: var(--ink-60); }
.card-cta {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--school-color); letter-spacing: .04em;
}
.card-cta-arrow { transition: transform .2s var(--ease); }
.school-card:hover .card-cta-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════
   特徴セクション
══════════════════════════════════════════ */
.features {
  background: var(--ink); color: var(--paper);
  padding: clamp(64px,8vw,100px) clamp(16px,4vw,48px);
  position: relative; overflow: hidden;
}
.features::after {
  content: '分析'; position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(120px,20vw,260px); font-weight: 700;
  color: rgba(255,255,255,.035); bottom: -24px; right: -12px;
  pointer-events: none; user-select: none;
}
.features-header { text-align: center; margin-bottom: 52px; }
.features-label {
  font-size: 11px; letter-spacing: .16em; color: var(--gold);
  font-weight: 700; text-transform: uppercase; margin-bottom: 14px;
}
.features-title {
  font-family: var(--font-serif);
  font-size: clamp(22px,4vw,38px); font-weight: 700; line-height: 1.45;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 28px; max-width: 1200px; margin: 0 auto;
}
.feature-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  transition: background .2s;
}
.feature-card:hover { background: rgba(255,255,255,.07); }
.feature-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  background: var(--vermilion);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.feature-title {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700;
  margin-bottom: 9px; letter-spacing: .02em;
}
.feature-desc { font-size: 13.5px; line-height: 1.8; color: rgba(250,248,243,.6); }

/* ══════════════════════════════════════════
   フッター
══════════════════════════════════════════ */
.footer {
  background: var(--ink); color: rgba(250,248,243,.45);
  padding: 48px clamp(16px,4vw,48px);
  text-align: center; font-size: 13px;
}
.footer-logo {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--paper); margin-bottom: 12px;
}
.footer-desc { max-width: 480px; margin: 0 auto 24px; line-height: 1.8; }
.footer-note {
  font-size: 11px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 20px; line-height: 1.9;
}

/* ══════════════════════════════════════════
   詳細ページ — ヒーロー
══════════════════════════════════════════ */
.detail-hero {
  background: var(--school-color); color: #fff;
  padding: clamp(44px,7vw,80px) clamp(16px,4vw,48px) 0;
  position: relative; overflow: hidden;
}
.detail-hero::before {
  content: attr(data-kanji); position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(200px,32vw,420px); font-weight: 700;
  color: rgba(255,255,255,.055);
  right: -16px; bottom: -40px; line-height: 1;
  pointer-events: none; user-select: none;
}
.detail-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 20px;
  letter-spacing: .04em;
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 13px; border-radius: 100px;
  background: rgba(255,255,255,.15); color: #fff;
}
.hero-tag.gold { background: var(--school-accent); color: var(--ink); }
.detail-school-name {
  font-family: var(--font-serif);
  font-size: clamp(26px,5.5vw,54px); font-weight: 700;
  letter-spacing: .02em; line-height: 1.2; margin-bottom: 10px;
}
.detail-catchphrase {
  font-family: var(--font-serif);
  font-size: clamp(14px,2.2vw,19px);
  color: rgba(255,255,255,.65); font-style: italic; margin-bottom: 28px;
}
.hero-metrics {
  display: flex; gap: clamp(24px,4vw,48px); flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.15);
}
.hero-metric-value {
  display: block; font-family: var(--font-serif);
  font-size: clamp(22px,3.5vw,34px); font-weight: 700;
  color: var(--school-accent); line-height: 1;
}
.hero-metric-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ══════════════════════════════════════════
   詳細ページ — タブ
══════════════════════════════════════════ */
.tabs-wrap {
  background: var(--school-color);
  position: sticky; top: 64px; z-index: 90;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.tabs {
  max-width: 1200px; margin: 0 auto;
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 0 clamp(16px,4vw,48px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0; padding: 15px 22px;
  border: none; background: none;
  color: rgba(255,255,255,.5); font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s; letter-spacing: .04em;
}
.tab-btn:hover { color: rgba(255,255,255,.85); }
.tab-btn.active { color: #fff; border-bottom-color: var(--school-accent); }

/* ══════════════════════════════════════════
   詳細ページ — メインレイアウト
══════════════════════════════════════════ */
.detail-main {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 40px;
  padding: 44px clamp(16px,4vw,48px) 80px;
}
@media (max-width: 900px) {
  .detail-main { grid-template-columns: 1fr; }
  .detail-sidebar { order: -1; }
}

/* ── セクション共通 ── */
.detail-section { margin-bottom: 44px; scroll-margin-top: 140px; }
.detail-section-title {
  font-family: var(--font-serif);
  font-size: clamp(17px,2.4vw,22px); font-weight: 700;
  letter-spacing: .03em; margin-bottom: 20px;
  padding-bottom: 11px; border-bottom: 2px solid var(--cream);
  display: flex; align-items: center; gap: 10px;
}
.detail-section-title::before {
  content: ''; display: block;
  width: 4px; height: 22px; border-radius: 2px;
  background: var(--school-color); flex-shrink: 0;
}

/* ── 概要カード ── */
.overview-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px;
  box-shadow: var(--shadow-sm); font-size: 15px; line-height: 1.9;
  color: rgba(28,26,24,.75);
}

/* ── 大問構成グリッド ── */
.structure-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px;
}
@media (max-width: 480px) { .structure-grid { grid-template-columns: 1fr 1fr; } }
.structure-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.structure-label { font-size: 11px; letter-spacing: .08em; color: var(--ink-60); font-weight: 700; margin-bottom: 7px; text-transform: uppercase; }
.structure-value { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--school-color); line-height: 1.2; }
.structure-note { font-size: 12px; color: var(--ink-60); margin-top: 4px; line-height: 1.5; }

/* ── 頻出単元 ── */
.units-list { display: flex; flex-direction: column; gap: 10px; }
.unit-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 38px 1fr auto;
  gap: 14px; align-items: start;
  transition: box-shadow .2s;
}
.unit-item:hover { box-shadow: var(--shadow); }
.unit-rank {
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
  color: var(--cream); text-align: center; line-height: 1; margin-top: 4px;
}
.unit-rank.top { color: var(--school-color); }
.unit-name { font-size: 15px; font-weight: 700; letter-spacing: .02em; margin-bottom: 3px; }
.unit-detail { font-size: 13px; color: var(--ink-60); line-height: 1.6; }
.unit-right { text-align: right; min-width: 72px; }
.unit-freq-label { font-size: 10px; color: var(--ink-60); }
.unit-freq-num { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--school-color); }
.unit-stars { font-size: 11px; margin-top: 2px; }

/* ── 難易度グラフ ── */
.difficulty-chart {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-sm);
}
.diff-bars { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.diff-row { display: grid; grid-template-columns: 78px 1fr 44px; align-items: center; gap: 11px; }
.diff-label { font-size: 13px; font-weight: 500; color: var(--ink-60); }
.diff-bar-bg { background: var(--cream); border-radius: 100px; height: 9px; overflow: hidden; }
.diff-bar-fill {
  height: 100%; border-radius: 100px; width: 0;
  transition: width 1s .5s var(--ease);
}
.diff-bar-fill.basic    { background: #86c8a0; }
.diff-bar-fill.standard { background: var(--gold); }
.diff-bar-fill.advanced { background: var(--vermilion); }
.diff-bar-fill.expert   { background: var(--school-color); }
.diff-pct { font-family: var(--font-serif); font-size: 14px; font-weight: 700; text-align: right; }
.diff-legend { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--paper-2); }
.diff-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-60); }
.diff-legend-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ── トレンドカード ── */
.trend-card {
  background: linear-gradient(135deg, var(--school-color), color-mix(in srgb, var(--school-color) 65%, #000));
  color: #fff; border-radius: var(--radius-lg); padding: 26px 30px; margin-bottom: 20px;
}
.trend-label { font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.55); font-weight: 700; margin-bottom: 10px; }
.trend-text { font-size: 14.5px; line-height: 1.85; color: rgba(255,255,255,.9); }

/* ── 戦略 ── */
.strategy-list { display: flex; flex-direction: column; gap: 11px; }
.strategy-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.strategy-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--school-color); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.strategy-text { font-size: 14px; line-height: 1.75; padding-top: 4px; }

/* ── サイドバー ── */
.detail-sidebar { position: relative; }
.sidebar-sticky { position: sticky; top: 132px; display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.info-card-title {
  font-family: var(--font-serif); font-size: 15px; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--cream);
}
.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--paper-2);
  font-size: 13.5px;
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--ink-60); }
.info-val { font-weight: 700; }
.deviation-display { text-align: center; padding: 18px 0; }
.deviation-num {
  font-family: var(--font-serif); font-size: 60px; font-weight: 700;
  color: var(--school-color); line-height: 1;
}
.deviation-unit { font-size: 13px; color: var(--ink-60); margin-top: 3px; }
.deviation-bar-lg {
  background: var(--cream); border-radius: 100px; height: 7px;
  overflow: hidden; margin: 14px 0 7px;
}
.deviation-fill-lg {
  height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, var(--school-color), var(--school-accent));
  transition: width 1.2s .8s var(--ease);
}
.deviation-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-60); }
.tips-list { display: flex; flex-direction: column; gap: 9px; }
.tip-item { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.65; }
.tip-icon { font-size: 15px; flex-shrink: 0; margin-top: 2px; }

/* ══════════════════════════════════════════
   アニメーション
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
