/* 編入合格体験記（taikendan）— 支給HTMLのCSSを hb- 名前空間のまま移植。全体リセットは .hb-wrap 内に限定 */

/* ============================================================
   編入合格体験記 — 記事フォーマット v2
   接頭辞 hb- で名前空間を確保（WordPressテーマとの競合防止）
   ============================================================ */
:root{
  --ink:#1B2A4A; --ink-2:#46587C; --ink-3:#7B88A1;
  --paper:#FBFAF7; --paper-2:#F4F2EC; --rule:#E2DED4;
  --marker:#FFE45C; --marker-soft:#FFF3B8;
  --vermilion:#D8443C; --vermilion-soft:#FBE7E5;
  --teal:#2E7D6B; --teal-soft:#DCEBE6;
  --sky:#4A72B8; --sky-soft:#E3EAF6;
  --line:#06C755; --line-dark:#05A648;

  /* 仕上がりの5段階スケール */
  --lv1:#EDF1F6; --lv1b:#C9D4E2; --lv1t:#5E7089;
  --lv2:#D5E3F1; --lv2b:#A8C3DE; --lv2t:#3D6089;
  --lv3:#B5D6DE; --lv3b:#84BAC6; --lv3t:#245F6C;
  --lv4:#8FC9BB; --lv4b:#5FAC98; --lv4t:#16584A;
  --lv5:#2E7D6B; --lv5b:#20614F; --lv5t:#FFFFFF;

  /* モチベーション5段階 */
  --m1:#D8443C; --m2:#E8836A; --m3:#D2B24C; --m4:#6FAE8F; --m5:#2E7D6B;

  --font-display:"Shippori Mincho B1",serif;
  --font-body:"Zen Kaku Gothic New",sans-serif;
  --font-mono:"Roboto Mono",monospace;
  --w:960px; --r:4px;
}
.hb-wrap,.hb-wrap *,.hb-wrap *::before,.hb-wrap *::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}}

.hb-wrap{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font-body);font-size:16px;line-height:1.95;
  font-feature-settings:"palt";-webkit-font-smoothing:antialiased;
}
.hb-body img{max-width:100%;height:auto}
.hb-body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:repeating-linear-gradient(180deg,transparent 0 43px,rgba(27,42,74,.025) 43px 44px);
}
.hb-wrap{position:relative;z-index:1;overflow-x:clip}

/* ============ ヘッダー ============ */
.hb-topbar{position:sticky;top:0;z-index:60;background:rgba(251,250,247,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--rule)}
.hb-topbar__in{max-width:var(--w);margin:0 auto;padding:11px 24px;display:flex;align-items:center;gap:16px}
.hb-brand{font-family:var(--font-display);font-weight:800;font-size:15px;letter-spacing:.06em;color:var(--ink);text-decoration:none;white-space:nowrap}
.hb-brand span{color:var(--vermilion)}
.hb-topbar__meta{margin-left:auto;font-family:var(--font-mono);font-size:11px;color:var(--ink-3);letter-spacing:.08em;white-space:nowrap}
@media(max-width:600px){.hb-topbar__meta{display:none}}

/* ============ ヒーロー ============ */
.hb-hero{max-width:var(--w);margin:0 auto;padding:46px 24px 8px}
.hb-eyebrow{display:inline-flex;align-items:center;gap:9px;font-family:var(--font-mono);font-size:11px;letter-spacing:.16em;color:var(--vermilion);font-weight:700;margin-bottom:20px}
.hb-eyebrow::before{content:"";width:26px;height:2px;background:var(--vermilion)}
.hb-hero h1{font-family:var(--font-display);font-weight:800;font-size:clamp(27px,4.6vw,44px);line-height:1.42;letter-spacing:.01em;margin:0 0 8px}
.hb-hero h1 .hb-mark{background:linear-gradient(transparent 62%,var(--marker) 62%);padding:0 2px}
.hb-hero__sub{font-size:15px;color:var(--ink-2);margin:0 0 32px;line-height:1.85}

.hb-transfer{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:stretch;border:1.5px solid var(--ink);border-radius:var(--r);background:#fff;padding:22px 20px;margin:0 0 14px}
.hb-transfer__side{min-width:0}
.hb-transfer__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;color:var(--ink-3);font-weight:700;margin-bottom:7px}
.hb-transfer__school{font-family:var(--font-display);font-weight:700;font-size:clamp(17px,2.5vw,23px);line-height:1.35;margin-bottom:3px}
.hb-transfer__dept{font-size:12.5px;color:var(--ink-2);line-height:1.6}
.hb-transfer__to .hb-transfer__school{color:var(--vermilion)}
.hb-transfer__arrow{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 6px;color:var(--vermilion)}
.hb-transfer__arrow svg{display:block}
.hb-transfer__arrow em{font-style:normal;font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;margin-top:5px;color:var(--ink-3);font-weight:700}
@media(max-width:640px){.hb-transfer{grid-template-columns:1fr;gap:14px;text-align:center}
  .hb-transfer__arrow{transform:rotate(90deg);padding:2px 0}.hb-transfer__arrow em{display:none}}

.hb-stats{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--rule);border-radius:var(--r);overflow:hidden;background:#fff}
.hb-stat{padding:15px 14px;border-right:1px solid var(--rule)}
.hb-stat:last-child{border-right:0}
.hb-stat__k{font-family:var(--font-mono);font-size:9.5px;letter-spacing:.1em;color:var(--ink-3);font-weight:700;margin-bottom:5px;white-space:nowrap}
.hb-stat__v{font-family:var(--font-mono);font-weight:700;font-size:20px;line-height:1.15;color:var(--ink)}
.hb-stat__v small{font-family:var(--font-body);font-size:11px;font-weight:500;color:var(--ink-2);margin-left:2px}
@media(max-width:760px){.hb-stats{grid-template-columns:repeat(2,1fr)}
  .hb-stat{border-bottom:1px solid var(--rule)}.hb-stat:nth-child(2n){border-right:0}
  .hb-stat:last-child{grid-column:1/-1;border-bottom:0}}

.hb-strategy{margin:26px 0 0;padding:22px 24px;background:var(--ink);border-radius:var(--r);color:#fff}
.hb-strategy__k{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;color:var(--marker);font-weight:700;margin-bottom:9px}
.hb-strategy__v{font-family:var(--font-display);font-weight:700;font-size:clamp(18px,2.9vw,25px);line-height:1.6;margin:0}


/* ============ この記事でわかること ============ */
.hb-summary{
  background:#fff;border:1px solid var(--rule);border-left:4px solid var(--vermilion);
  border-radius:var(--r);padding:22px 26px;margin:32px 0 0;
}
.hb-summary__t{font-family:var(--font-display);font-weight:700;font-size:16px;margin:0 0 14px}
.hb-summary__list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.hb-summary__list li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;line-height:1.8}
.hb-summary__list li::before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--vermilion);
  flex:none;margin-top:9px;
}
.hb-summary__list b{background:linear-gradient(transparent 62%,var(--marker) 62%);padding:0 2px}

/* ============ 執筆者情報 ============ */
.hb-author{
  display:flex;gap:18px;align-items:flex-start;background:var(--paper-2);
  border:1px solid var(--rule);border-radius:var(--r);padding:20px 24px;margin:28px 0 0;
}
.hb-author__ic{
  width:52px;height:52px;border-radius:50%;background:var(--ink);color:#fff;flex:none;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-weight:700;font-size:20px;
}
.hb-author__b{min-width:0}
.hb-author__n{font-weight:700;font-size:15px;margin:0 0 5px}
.hb-author__n span{font-size:11.5px;font-weight:700;color:var(--vermilion);margin-left:8px}
.hb-author__d{font-size:13px;color:var(--ink-2);margin:0;line-height:1.8}
.hb-author__meta{font-family:var(--font-mono);font-size:11px;color:var(--ink-3);margin:8px 0 0}
@media(max-width:600px){.hb-author{flex-direction:column;gap:12px}}
/* ============ 目次 ============ */
.hb-toc{max-width:var(--w);margin:44px auto 0;padding:0 24px}
.hb-toc__box{border:1px solid var(--rule);border-radius:var(--r);background:#fff;padding:20px 22px}
.hb-toc__t{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.14em;color:var(--ink-3);font-weight:700;margin-bottom:13px}
.hb-toc__list{list-style:none;margin:0;padding:0;columns:2;column-gap:26px}
@media(max-width:640px){.hb-toc__list{columns:1}}
.hb-toc__list li{break-inside:avoid;margin-bottom:2px}
.hb-toc__list a{display:flex;gap:11px;align-items:baseline;padding:6px 0;color:var(--ink);text-decoration:none;font-size:14px;line-height:1.5;border-bottom:1px dotted var(--rule)}
.hb-toc__list a:hover{color:var(--vermilion)}
.hb-toc__n{font-family:var(--font-mono);font-size:11px;color:var(--vermilion);font-weight:700;flex:none}

/* ============ セクション ============ */
.hb-main{max-width:var(--w);margin:0 auto;padding:0 24px 90px}
.hb-sec{padding:64px 0 0;scroll-margin-top:74px}
.hb-sec__head{margin-bottom:26px}
.hb-sec__n{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;color:var(--vermilion);font-weight:700;display:block;margin-bottom:8px}
.hb-sec__t{font-family:var(--font-display);font-weight:800;font-size:clamp(21px,3.2vw,29px);line-height:1.45;margin:0;padding-bottom:14px;border-bottom:2px solid var(--ink)}
.hb-sec__lead{font-size:14.5px;color:var(--ink-2);margin:14px 0 0;line-height:1.9}
.hb-h3{font-family:var(--font-display);font-weight:700;font-size:19px;line-height:1.5;margin:44px 0 16px;padding-left:13px;border-left:4px solid var(--vermilion)}
.hb-h4{font-family:var(--font-body);font-weight:700;font-size:15px;margin:28px 0 12px;color:var(--ink);display:flex;align-items:center;gap:9px}
.hb-h4::after{content:"";flex:1;height:1px;background:var(--rule)}
.hb-p{margin:0 0 18px;font-size:15.5px;line-height:2.05}

/* ============ 本人の語り ============ */
.hb-voice{position:relative;background:#fff;border:1px solid var(--rule);border-left:4px solid var(--marker);border-radius:var(--r);padding:24px 26px;margin:0 0 22px}
.hb-voice__k{font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;color:var(--ink-3);font-weight:700;margin-bottom:11px}
.hb-voice p{margin:0 0 15px;font-size:15.5px;line-height:2.05}
.hb-voice p:last-child{margin-bottom:0}

/* ============ データ表 ============ */
.hb-dl{border:1px solid var(--rule);border-radius:var(--r);overflow:hidden;background:#fff;display:grid;grid-template-columns:auto 1fr}
.hb-dl dt{padding:12px 18px;background:var(--paper-2);border-bottom:1px solid var(--rule);font-size:12.5px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.hb-dl dd{margin:0;padding:12px 18px;border-bottom:1px solid var(--rule);font-size:14.5px;border-left:1px solid var(--rule)}
.hb-dl dt:nth-last-of-type(1),.hb-dl dd:nth-last-of-type(1){border-bottom:0}
.hb-dl dd .hb-num{font-family:var(--font-mono);font-weight:700}
@media(max-width:560px){.hb-dl{grid-template-columns:1fr}
  .hb-dl dt{border-bottom:0;padding-bottom:4px}.hb-dl dd{border-left:0;padding-top:4px}}

.hb-tablewrap{overflow-x:auto;border:1px solid var(--rule);border-radius:var(--r);background:#fff}
.hb-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:600px}
.hb-table th,.hb-table td{padding:11px 13px;text-align:left;border-bottom:1px solid var(--rule);vertical-align:top}
.hb-table thead th{background:var(--ink);color:#fff;font-size:11.5px;font-weight:700;letter-spacing:.03em;white-space:nowrap;border-bottom:0}
.hb-table tbody tr:last-child td{border-bottom:0}
.hb-table tbody tr.is-main{background:var(--marker-soft)}
.hb-table .hb-num{font-family:var(--font-mono);font-weight:700;white-space:nowrap}
.hb-table__note{padding:10px 13px;font-size:11.5px;color:var(--ink-3);background:var(--paper-2);border-top:1px solid var(--rule)}

/* ============ タグ ============ */
.hb-tags{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px;padding:0;list-style:none}
.hb-tag{font-size:12.5px;padding:6px 12px;border-radius:100px;background:#fff;border:1px solid var(--rule);color:var(--ink-2);line-height:1.5}
.hb-tag.is-top{background:var(--marker);border-color:#E6C63C;color:var(--ink);font-weight:700}
.hb-tag.is-top::before{content:"◎ ";color:var(--vermilion);font-weight:700}
.hb-tagnote{font-size:12px;color:var(--ink-3);margin:-8px 0 20px}

.hb-badge{display:inline-block;font-family:var(--font-mono);font-size:10.5px;font-weight:700;padding:3px 9px;border-radius:3px;letter-spacing:.04em;white-space:nowrap}
.hb-badge--pass{background:var(--vermilion);color:#fff}
.hb-badge--pass2{background:var(--vermilion-soft);color:var(--vermilion);border:1px solid var(--vermilion)}
.hb-badge--fail{background:var(--paper-2);color:var(--ink-3);border:1px solid var(--rule)}
.hb-badge--main{background:var(--ink);color:var(--marker)}
.hb-badge--pos{background:var(--teal-soft);color:var(--teal);border:1px solid #A9CFC4}

/* ============================================================
   ★署名要素：科目別 学習マップ
   いつ・どの教材を・何周・どのレベルまで ＋ 月別学習時間・モチベ
   ============================================================ */
.hb-map{background:#fff;border:1.5px solid var(--ink);border-radius:var(--r);overflow:hidden;margin:0 0 24px}
.hb-map__head{padding:17px 22px;border-bottom:1px solid var(--rule);background:var(--paper-2)}
.hb-map__t{font-family:var(--font-display);font-weight:700;font-size:17px;margin:0 0 4px;line-height:1.5}
.hb-map__d{font-size:12.5px;color:var(--ink-2);margin:0;line-height:1.7}
.hb-map__scroll{overflow-x:auto}
.hb-map__grid{
  display:grid;
  grid-template-columns:204px repeat(var(--months),minmax(58px,1fr));
  min-width:640px;
}
/* --- 年・月ヘッダー --- */
.hb-map__corner{
  background:var(--ink);color:#fff;font-size:11px;font-weight:700;
  padding:9px 12px;display:flex;align-items:center;position:sticky;left:0;z-index:3;
}
.hb-map__year{
  background:#5B6B8C;color:#fff;font-family:var(--font-mono);font-size:10.5px;font-weight:700;
  letter-spacing:.08em;text-align:center;padding:5px 0;border-right:1px solid rgba(255,255,255,.28);
}
.hb-map__month{
  background:var(--ink);color:#fff;font-family:var(--font-mono);font-size:12px;font-weight:700;
  text-align:center;padding:9px 0;border-right:1px solid rgba(255,255,255,.16);
}
.hb-map__month:last-child{border-right:0}
.hb-map__month.is-exam{background:var(--vermilion)}
/* --- 教材ラベル --- */
.hb-map__label{
  display:flex;gap:10px;align-items:center;padding:11px 12px;
  border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  background:#fff;position:sticky;left:0;z-index:2;min-width:0;
}
.hb-map__labeltxt{min-width:0}
.hb-map__name{font-size:12.5px;font-weight:700;line-height:1.45;margin-bottom:3px}
.hb-map__meta{font-family:var(--font-mono);font-size:10px;color:var(--ink-3);font-weight:700}
.hb-map__meta i{font-style:normal;color:var(--vermilion)}
/* --- セル --- */
.hb-map__cell{
  border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  min-height:56px;display:flex;align-items:center;justify-content:center;position:relative;padding:5px 3px;
}
.hb-map__cell:last-child{border-right:0}
.hb-map__cell.is-span{background:var(--bandbg,#F7F9FC)}
.hb-map__cell.is-span::before{
  content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);
  height:15px;background:var(--band,#C9D6E6);
}
.hb-map__cell.is-span-start::before{border-radius:8px 0 0 8px;left:7px}
.hb-map__cell.is-span-end::before{border-radius:0 8px 8px 0;right:7px}
/* 教材ごとの帯色（表紙の色と対応） */
.hb-row--green{--band:#7FA893;--bandbg:#F2F7F4}
.hb-row--orange{--band:#EDA23C;--bandbg:#FDF6EC}
.hb-row--red{--band:#D4756B;--bandbg:#FCF3F2}
.hb-row--blue{--band:#7F9FCC;--bandbg:#F2F6FC}
/* チップは帯の上で白フチを付けて浮かせる */
.hb-rd{box-shadow:0 0 0 3px #fff,0 1px 3px rgba(27,42,74,.18)}
/* 周回チップ */
.hb-rd{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-width:40px;padding:4px 5px;border-radius:5px;border:1.5px solid;line-height:1.15;
}
.hb-rd__n{font-family:var(--font-mono);font-size:12.5px;font-weight:700}
.hb-rd__n small{font-family:var(--font-body);font-size:9px;font-weight:700;margin-left:1px}
.hb-rd__lv{font-family:var(--font-mono);font-size:9px;font-weight:700;margin-top:1px;opacity:.92}
.hb-rd--lv1{background:var(--lv1);border-color:var(--lv1b);color:var(--lv1t)}
.hb-rd--lv2{background:var(--lv2);border-color:var(--lv2b);color:var(--lv2t)}
.hb-rd--lv3{background:var(--lv3);border-color:var(--lv3b);color:var(--lv3t)}
.hb-rd--lv4{background:var(--lv4);border-color:var(--lv4b);color:var(--lv4t)}
.hb-rd--lv5{background:var(--lv5);border-color:var(--lv5b);color:var(--lv5t)}
/* --- 学習時間行 --- */
.hb-map__label--sum{background:var(--paper-2);font-weight:700}
.hb-map__label--sum .hb-map__name{margin-bottom:0;font-size:12.5px}
.hb-map__cell--hours{
  background:var(--paper-2);flex-direction:column;justify-content:flex-end;gap:4px;min-height:96px;padding-bottom:8px;
}
.hb-map__hbar{width:30px;background:linear-gradient(180deg,#CBDBF0,#E3EAF6);border:1px solid #A8C1E0;border-bottom:0;border-radius:4px 4px 0 0}
.hb-map__hval{font-family:var(--font-mono);font-size:12px;font-weight:700;color:#2F5490}
/* --- モチベーション行（③改善） --- */
.hb-map__cell--mot{background:#fff;min-height:60px;flex-direction:column;gap:3px}
.hb-mot{
  width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:13px;font-weight:700;color:#fff;
}
.hb-mot--1{background:var(--m1)}.hb-mot--2{background:var(--m2)}
.hb-mot--3{background:var(--m3)}.hb-mot--4{background:var(--m4)}.hb-mot--5{background:var(--m5)}
.hb-mot__t{font-size:9.5px;font-weight:700;color:var(--ink-3);line-height:1.2;text-align:center;white-space:nowrap}
/* --- 凡例 --- */
.hb-map__legend{padding:15px 22px;border-top:1px solid var(--rule);background:var(--paper-2);display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.hb-map__lgblock{min-width:0}
.hb-map__lgt{font-family:var(--font-mono);font-size:10px;font-weight:700;color:var(--ink-3);letter-spacing:.08em;margin-bottom:7px}
.hb-map__lvscale{display:flex;flex-wrap:wrap;gap:6px}
.hb-lv{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--ink-2);background:#fff;border:1px solid var(--rule);border-radius:100px;padding:3px 10px 3px 4px}
.hb-lv--l1{color:#5E7089}.hb-lv--l2{color:#3D6089}.hb-lv--l3{color:#24707C}
.hb-lv--l4{color:#1B7460}.hb-lv--l5{color:#1E6151}
.hb-lv .hb-g{flex:none}
.hb-map__hint{font-size:11.5px;color:var(--ink-3);line-height:1.7;max-width:340px}

/* ============ 教材の表紙 ============ */
.hb-cover{
  width:38px;height:52px;flex:none;border-radius:2px 3px 3px 2px;overflow:hidden;position:relative;
  box-shadow:0 1px 4px rgba(27,42,74,.22);background:#8A96AC;
  display:flex;flex-direction:column;justify-content:center;align-items:center;padding:3px;
}
.hb-cover::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:rgba(0,0,0,.22)}
.hb-cover img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.hb-cover span{
  font-size:6.5px;font-weight:700;color:#fff;line-height:1.25;text-align:center;
  letter-spacing:-.02em;word-break:break-all;position:relative;z-index:1;
}
.hb-cover--green{background:linear-gradient(160deg,#5E7F6E,#3E5B4E)}
.hb-cover--orange{background:linear-gradient(160deg,#E08A3C,#C4671F)}
.hb-cover--red{background:linear-gradient(160deg,#C4453C,#8E2B25)}
.hb-cover--blue{background:linear-gradient(160deg,#3F6597,#27436B)}
.hb-cover--lg{width:66px;height:92px;border-radius:2px 4px 4px 2px}
.hb-cover--lg span{font-size:9px;line-height:1.3;padding:0 3px}

/* ============ 教材カード ============ */
.hb-mat{background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:20px 22px;margin:0 0 16px}
.hb-mat__head{display:flex;gap:16px;align-items:flex-start;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid var(--rule)}
.hb-mat__info{flex:1;min-width:0}
.hb-mat__name{font-weight:700;font-size:15.5px;line-height:1.5;margin:0 0 6px}
.hb-mat__sub{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hb-mat__stars{font-family:var(--font-mono);font-size:14px;color:var(--vermilion);letter-spacing:.06em;white-space:nowrap}
.hb-mat__stars span{color:var(--rule)}
.hb-mat__score{font-family:var(--font-mono);font-size:11px;font-weight:700;color:var(--ink-2);background:var(--paper-2);padding:3px 9px;border-radius:3px;white-space:nowrap}
.hb-mat__rounds{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px}
.hb-mat__round{
  display:inline-flex;align-items:center;gap:6px;border:1px solid;border-radius:100px;
  padding:3px 11px 3px 4px;font-size:11.5px;font-weight:700;line-height:1.5;
}
.hb-mat__round b{
  font-family:var(--font-mono);font-size:11px;width:19px;height:19px;border-radius:50%;
  background:rgba(255,255,255,.75);display:flex;align-items:center;justify-content:center;
}
.hb-mat__round--lv1{background:var(--lv1);border-color:var(--lv1b);color:var(--lv1t)}
.hb-mat__round--lv2{background:var(--lv2);border-color:var(--lv2b);color:var(--lv2t)}
.hb-mat__round--lv3{background:var(--lv3);border-color:var(--lv3b);color:var(--lv3t)}
.hb-mat__round--lv4{background:var(--lv4);border-color:var(--lv4b);color:var(--lv4t)}
.hb-mat__round--lv5{background:var(--lv5);border-color:var(--lv5b);color:#fff}
.hb-mat__round--lv5 b{background:rgba(255,255,255,.28);color:#fff}
/* 仕上がりゲージ（5段階） */
.hb-g{display:inline-flex;gap:2.5px;align-items:center;vertical-align:middle}
.hb-g i{width:6px;height:6px;border-radius:1.5px;background:currentColor;opacity:.22;display:block}
.hb-g i.on{opacity:1}
.hb-g--lg i{width:9px;height:9px;border-radius:2px}

/* 仕上がりの推移リスト（教材カード内） */
.hb-prog{border:1px solid var(--rule);border-radius:6px;overflow:hidden;margin:0 0 16px}
.hb-prog__t{
  padding:8px 14px;background:var(--paper-2);border-bottom:1px solid var(--rule);
  font-size:11.5px;font-weight:700;color:var(--ink-2);letter-spacing:.02em;
}
.hb-prog__list{list-style:none;margin:0;padding:0}
.hb-prog__i{
  display:grid;grid-template-columns:62px 68px 62px 1fr;gap:12px;align-items:center;
  padding:9px 14px;border-bottom:1px solid #F0EDE6;font-size:13px;
}
.hb-prog__i:last-child{border-bottom:0}
.hb-prog__i--final{background:var(--teal-soft)}
.hb-prog__n{font-weight:700;font-size:12.5px;white-space:nowrap}
.hb-prog__d{font-family:var(--font-mono);font-size:12px;color:var(--ink-3);font-weight:700}
.hb-prog__l{font-weight:700;line-height:1.5}
.hb-prog__i--lv1{color:#5E7089}.hb-prog__i--lv2{color:#3D6089}
.hb-prog__i--lv3{color:#24707C}.hb-prog__i--lv4{color:#1B7460}.hb-prog__i--lv5{color:#1E6151}
.hb-prog__i .hb-prog__n,.hb-prog__i .hb-prog__l{color:inherit}
@media(max-width:600px){
  .hb-prog__i{grid-template-columns:56px 62px 1fr;gap:8px;row-gap:2px}
  .hb-prog__i .hb-g{grid-column:3}
  .hb-prog__l{grid-column:1/-1;font-size:12.5px}
}
.hb-mat__body{font-size:13.5px;line-height:1.9;color:var(--ink-2)}
.hb-mat__body p{margin:0 0 9px}
.hb-mat__body p:last-child{margin-bottom:0}
.hb-mat__body b{color:var(--ink)}

/* ============ グラフ ============ */
.hb-chart{background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:22px 22px 16px;margin:0 0 20px}
.hb-chart__t{font-family:var(--font-body);font-weight:700;font-size:14px;margin:0 0 4px}
.hb-chart__d{font-size:12px;color:var(--ink-3);margin:0 0 18px;line-height:1.7}
.hb-chart__svgwrap{overflow-x:auto}
.hb-chart svg{display:block;min-width:520px;width:100%;height:auto}
.hb-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;padding-top:13px;border-top:1px dotted var(--rule)}
.hb-legend__i{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink-2)}
.hb-legend__c{width:13px;height:13px;border-radius:2px;flex:none}

/* ============ タイムライン ============ */
.hb-sched{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:20px}
@media(max-width:720px){.hb-sched{grid-template-columns:1fr}}
.hb-schedcard{background:#fff;border:1px solid var(--rule);border-radius:var(--r);overflow:hidden}
.hb-schedcard__h{padding:11px 17px;background:var(--paper-2);border-bottom:1px solid var(--rule);font-weight:700;font-size:13.5px}
.hb-schedcard__h span{font-family:var(--font-mono);font-size:11px;color:var(--ink-3);font-weight:700;margin-left:7px}
.hb-timeline{list-style:none;margin:0;padding:14px 17px}
.hb-timeline li{display:grid;grid-template-columns:56px 1fr;gap:12px;padding:5px 0;font-size:13.5px;line-height:1.65}
.hb-timeline time{font-family:var(--font-mono);font-size:12px;font-weight:700;color:var(--vermilion);padding-top:1px}
.hb-timeline li.is-study{font-weight:700}
.hb-timeline li.is-study span{background:linear-gradient(transparent 58%,var(--marker) 58%,var(--marker) 94%,transparent 94%);padding:0 3px;justify-self:start}

/* ============ 費用 ============ */
.hb-cost{background:#fff;border:1px solid var(--rule);border-radius:var(--r);overflow:hidden}
.hb-cost__row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:13px 20px;border-bottom:1px solid var(--rule)}
.hb-cost__label{font-size:14px}
.hb-cost__label small{display:block;font-size:11.5px;color:var(--ink-3);line-height:1.6}
.hb-cost__bar{height:7px;background:var(--paper-2);border-radius:100px;overflow:hidden;margin-top:7px;max-width:340px}
.hb-cost__bar i{display:block;height:100%;background:var(--sky);border-radius:100px}
.hb-cost__v{font-family:var(--font-mono);font-weight:700;font-size:15px;white-space:nowrap}
.hb-cost__total{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:17px 20px;background:var(--ink);color:#fff}
.hb-cost__total .hb-cost__label{font-weight:700;font-size:15px;color:#fff}
.hb-cost__total .hb-cost__v{font-size:23px;color:var(--marker)}

/* ============ 不安→実際 ============ */
.hb-ba{background:#fff;border:1px solid var(--rule);border-radius:var(--r);margin-bottom:14px;overflow:hidden}
.hb-ba__q{padding:14px 20px;background:var(--vermilion-soft);border-bottom:1px solid var(--rule);font-weight:700;font-size:14.5px;display:flex;gap:10px;align-items:flex-start}
.hb-ba__q::before{content:"不安";font-family:var(--font-mono);font-size:10px;font-weight:700;background:var(--vermilion);color:#fff;padding:3px 8px;border-radius:3px;flex:none;margin-top:3px}
.hb-ba__a{padding:16px 20px;font-size:14.5px;line-height:1.95;display:flex;gap:10px;align-items:flex-start}
.hb-ba__a::before{content:"実際";font-family:var(--font-mono);font-size:10px;font-weight:700;background:var(--teal);color:#fff;padding:3px 8px;border-radius:3px;flex:none;margin-top:4px}

/* ============ 面接Q&A ============ */
.hb-qa{list-style:none;margin:0 0 18px;padding:0}
.hb-qa li{background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:14px 18px;margin-bottom:9px;font-size:14.5px;line-height:1.8;display:flex;gap:12px;align-items:flex-start}
.hb-qa li::before{content:"Q";font-family:var(--font-mono);font-weight:700;font-size:13px;color:#fff;background:var(--ink);width:23px;height:23px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;margin-top:3px}
.hb-qa li b{display:block;margin-bottom:5px}
.hb-qa li em{font-style:normal;display:block;font-size:13px;color:var(--ink-2);padding-left:13px;border-left:2px solid var(--marker);line-height:1.8}

/* ============ 当日の流れ・注意点 ============ */
.hb-flow{list-style:none;margin:0 0 18px;padding:0;background:#fff;border:1px solid var(--rule);border-radius:var(--r)}
.hb-flow li{display:grid;grid-template-columns:88px 1fr;gap:14px;padding:12px 18px;border-bottom:1px solid var(--rule);font-size:14px;line-height:1.7}
.hb-flow li:last-child{border-bottom:0}
.hb-flow time{font-family:var(--font-mono);font-size:12.5px;font-weight:700;color:var(--vermilion)}
.hb-flow li.is-exam{background:var(--paper-2)}
.hb-flow small{display:block;font-size:12px;color:var(--ink-3);line-height:1.6}
.hb-notes{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:8px}
.hb-notes li{display:flex;gap:11px;align-items:flex-start;font-size:14px;line-height:1.8;background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:12px 16px}
.hb-notes li::before{content:"!";font-family:var(--font-mono);font-weight:700;font-size:12px;color:var(--vermilion);border:1.5px solid var(--vermilion);width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;margin-top:3px}

/* ============================================================
   ★非公開ブロック（コア情報のマスク＋LINE導線）
   ============================================================ */
.hb-lock{
  background:#FFF4E9;border:1px solid #F0D5B4;border-radius:8px;
  padding:24px 26px;margin:24px 0;
}
.hb-lock__t{
  font-family:var(--font-display);font-weight:700;font-size:17px;line-height:1.5;
  color:#7A3A12;margin:0 0 16px;
}
.hb-lock__box{
  background:#fff;border-radius:6px;padding:24px 26px;position:relative;overflow:hidden;
}
.hb-lock__h{font-weight:700;font-size:14.5px;color:#8E3B1B;margin:0 0 12px;line-height:1.6}
.hb-lock__h+.hb-lock__h{margin-top:26px}
.hb-lock__blur{
  filter:blur(5.5px);user-select:none;pointer-events:none;
  color:var(--ink-2);font-size:14.5px;line-height:2;margin:0 0 14px;
}
.hb-lock__blur:last-child{margin-bottom:0}
.hb-lock__badge{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  background:rgba(27,42,74,.92);color:#fff;border-radius:100px;
  padding:10px 22px;font-size:13px;font-weight:700;white-space:nowrap;
  display:flex;align-items:center;gap:8px;box-shadow:0 4px 16px rgba(0,0,0,.18);
}
.hb-lock__badge svg{flex:none}
.hb-lock__lead{font-size:14.5px;line-height:1.95;color:#4A2A12;margin:18px 0 0}
.hb-lock__lead b{color:#8E3B1B}
.hb-lock__cta{text-align:center;margin-top:20px}
.hb-linebtn{
  display:inline-flex;align-items:center;gap:10px;background:var(--line);color:#fff;
  text-decoration:none;font-weight:700;font-size:15.5px;padding:15px 38px;border-radius:8px;
  box-shadow:0 3px 10px rgba(6,199,85,.28);transition:background .15s,transform .12s;
}
.hb-linebtn:hover{background:var(--line-dark);transform:translateY(-1px)}
.hb-linebtn svg{flex:none}
.hb-lock__note{font-size:12px;color:#8A6A50;margin:12px 0 0;line-height:1.75}
@media(max-width:600px){
  .hb-lock{padding:20px 16px}
  .hb-lock__box{padding:20px 16px}
  .hb-linebtn{width:100%;justify-content:center;padding:15px 20px;font-size:15px}
  .hb-lock__badge{font-size:11.5px;padding:8px 14px;white-space:normal;text-align:center}
}

/* ============ 応援メッセージ ============ */
.hb-message{background:var(--ink);color:#fff;border-radius:var(--r);padding:44px 40px;margin-top:20px;position:relative;overflow:hidden}
.hb-message::before{content:"";position:absolute;left:0;top:0;width:100%;height:5px;background:linear-gradient(90deg,var(--vermilion) 0 33%,var(--marker) 33% 66%,var(--teal) 66% 100%)}
.hb-message__k{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.14em;color:var(--marker);font-weight:700;margin-bottom:18px}
.hb-message p{font-family:var(--font-display);font-weight:600;font-size:clamp(16px,2.3vw,20px);line-height:2.05;margin:0 0 17px}
.hb-message p:last-of-type{margin-bottom:0}
.hb-message__by{margin-top:28px;padding-top:20px;border-top:1px solid rgba(255,255,255,.22);font-size:13px;color:rgba(255,255,255,.72);line-height:1.8}
.hb-message__by b{color:#fff;font-size:14.5px}
@media(max-width:600px){.hb-message{padding:32px 24px}}

/* ============ 最終CTA（LINE） ============ */
.hb-final{
  margin-top:56px;border:2px solid var(--line);border-radius:10px;background:#fff;
  padding:36px 34px;text-align:center;
}
.hb-final__k{
  display:inline-flex;align-items:center;gap:7px;background:var(--line);color:#fff;
  font-size:11.5px;font-weight:700;padding:5px 14px;border-radius:100px;margin-bottom:16px;
}
.hb-final h3{font-family:var(--font-display);font-weight:800;font-size:clamp(19px,3vw,24px);margin:0 0 14px;line-height:1.55}
.hb-final p{font-size:14.5px;color:var(--ink-2);margin:0 0 8px;line-height:1.95}
.hb-final__list{list-style:none;margin:20px auto 24px;padding:18px 22px;max-width:520px;text-align:left;background:var(--paper-2);border-radius:8px}
.hb-final__list li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.8;margin-bottom:8px}
.hb-final__list li:last-child{margin-bottom:0}
.hb-final__list li::before{content:"";width:17px;height:17px;border-radius:50%;background:var(--line);flex:none;margin-top:5px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-6.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size:15px;background-repeat:no-repeat;background-position:center}
@media(max-width:600px){.hb-final{padding:28px 18px}}

/* ============ 設問対応マップ ============ */
.hb-qid{display:none;font-family:var(--font-mono);font-size:9.5px;font-weight:700;background:#5B2C87;color:#fff;padding:1px 6px;border-radius:3px;margin-left:6px;vertical-align:middle;letter-spacing:.02em;white-space:nowrap}
.hb-body.show-map .hb-qid{display:inline-block}
.hb-body.show-map .hb-sec{outline:1px dashed rgba(91,44,135,.25);outline-offset:8px}
.hb-mapbtn{position:fixed;right:18px;bottom:18px;z-index:80;background:var(--ink);color:#fff;border:0;border-radius:100px;font-family:var(--font-body);font-weight:700;font-size:12.5px;padding:11px 20px;cursor:pointer;box-shadow:0 4px 16px rgba(27,42,74,.28)}
.hb-mapbtn:hover{background:#2A3D63}
.hb-mapbtn:focus-visible{outline:3px solid var(--marker);outline-offset:2px}
.hb-body.show-map .hb-mapbtn{background:#5B2C87}
.hb-wrap a:focus-visible,.hb-wrap button:focus-visible{outline:3px solid var(--vermilion);outline-offset:2px}

@media print{
  .hb-topbar,.hb-mapbtn,.hb-final,.hb-lock__cta{display:none}
  .hb-body::before{display:none}
  .hb-sec{page-break-inside:avoid}
  .hb-body{font-size:11pt}
}

/* ===== 追加：記事末の内部リンク ===== */
.hb-related{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.hb-related li a{display:block;padding:12px 16px;border:1px solid var(--rule);border-radius:var(--r);background:#fff;color:var(--ink);text-decoration:none;font-weight:500}
.hb-related li a:hover{border-color:var(--ink-2)}
.hb-related-sec{padding-top:8px}
/* テーマのヘッダーと共存させるための調整 */
.hb-wrap .hb-topbar{top:0}
.hb-wrap h1,.hb-wrap h2,.hb-wrap h3,.hb-wrap h4,.hb-wrap p,.hb-wrap ul,.hb-wrap ol,.hb-wrap dl{letter-spacing:normal}
.hb-crumb{max-width:var(--w);margin:14px auto 0;padding:0 24px;font-size:12.5px;color:var(--ink-3)}
.hb-crumb a{color:var(--ink-2)}
/* 指標の列数は値のある数で均等割り（スマホでは2列） */
.hb-stats{grid-template-columns:repeat(var(--hb-cols,5),1fr)}
@media(max-width:760px){.hb-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.hb-stat:last-child{grid-column:auto}.hb-stat:last-child:nth-child(odd){grid-column:1/-1}.hb-stat:nth-last-child(-n+2):nth-child(odd),.hb-stat:last-child{border-bottom:0}}

/* =========================================================
 * HP（/voice）から移した体験談：本文はHPの記事そのまま
 * ======================================================= */
.hb-vprof{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;margin:0 0 26px}
.hb-vprof__res,.hb-vprof__dl{background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:16px 18px;margin:0}
.hb-vprof__t{font-family:var(--font-display);font-weight:700;font-size:15px;margin:0 0 10px}
.hb-vprof__res ul{list-style:none;margin:0;padding:0}
.hb-vprof__res li{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-bottom:1px dashed var(--rule);font-size:14px;line-height:1.6}
.hb-vprof__res li:last-child{border-bottom:0}
.hb-vprof__res li .hb-badge{margin-top:2px}
.hb-vprof__enr{display:inline-block;margin-left:8px;font-size:11px;color:var(--vermilion);border:1px solid var(--vermilion);border-radius:3px;padding:0 6px;font-weight:700}
.hb-wrap .hb-vprof__other{margin:10px 0 0;font-size:13px;color:var(--ink-2);line-height:1.7}
.hb-vprof__other span{display:block;font-weight:700;color:var(--ink);font-size:12.5px}
.hb-vprof__dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px;line-height:1.6;align-content:start}
.hb-vprof__dl dt{font-weight:700;color:var(--ink-2);font-size:12.5px;padding-top:1px;white-space:nowrap}
.hb-vprof__dl dd{margin:0;word-break:break-word}
@media(max-width:760px){.hb-vprof{grid-template-columns:1fr}}

.hb-vbody{padding-top:30px;font-size:15.5px;line-height:1.95;word-break:break-word}
.hb-vbody h2{font-family:var(--font-display);font-weight:800;font-size:clamp(21px,2.8vw,27px);line-height:1.5;margin:64px 0 20px;padding:0 0 12px;border-bottom:2px solid var(--ink);scroll-margin-top:74px}
.hb-vbody h2:first-child{margin-top:30px}
.hb-vbody h3{font-family:var(--font-display);font-weight:700;font-size:19px;line-height:1.5;margin:40px 0 14px;padding-left:13px;border-left:4px solid var(--vermilion)}
.hb-vbody h4{font-weight:700;font-size:16px;margin:26px 0 10px;padding:8px 12px;background:var(--paper-2);border-radius:var(--r)}
.hb-vbody h5{font-weight:700;font-size:15px;margin:20px 0 8px}
.hb-vbody p{margin:0 0 16px}
.hb-vbody img{max-width:100%;height:auto;display:block;margin:0 auto;border-radius:var(--r)}
.hb-vbody img.emoji,.hb-vbody img.wp-smiley{display:inline;width:1em!important;height:1em!important;margin:0 .1em;vertical-align:-.1em}
/* 通常の画像：大きくなりすぎないよう上限を設ける（小さい画像は原寸のまま） */
.hb-vbody figure{margin:16px auto 22px;max-width:480px}
.hb-vbody figure img{width:auto;max-height:420px;object-fit:contain}
/* 教材の活用スケジュールなど横長の図：本文幅いっぱい */
.hb-vbody figure.hb-fig--wide{max-width:760px}
.hb-vbody figure.hb-fig--wide img{width:100%;max-height:none}
/* 教材カード：表紙（左）＋使用期間などの表（右） */
.hb-book{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:start;margin:8px 0 28px}
.hb-book__covers{display:flex;flex-direction:column;gap:10px}
.hb-book__covers figure{margin:0;max-width:none}
.hb-book__covers img{width:100%;max-height:none;box-shadow:0 2px 10px rgba(27,42,74,.15);border-radius:2px}
.hb-book__info .hb-vtable{margin:0}
/* 表のない画像が続くとき：横に並べる */
.hb-figrow{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:16px 0 22px}
.hb-figrow figure{margin:0;flex:0 1 220px}
.hb-figrow figure img{max-height:300px}
.hb-vbody figcaption{font-size:12.5px;color:var(--ink-3);text-align:center;margin-top:6px}
.hb-vbody hr{border:0;border-top:1px dashed var(--rule);margin:30px 0}
.hb-vbody ul,.hb-vbody ol{margin:0 0 16px;padding-left:1.4em}
.hb-vbody strong{font-weight:700;color:var(--ink)}
.hb-vdl{display:grid;grid-template-columns:150px 1fr;margin:0 0 24px;border:1px solid var(--rule);border-radius:var(--r);background:#fff;overflow:hidden}
.hb-vdl dt{padding:12px 14px;background:var(--paper-2);font-weight:700;font-size:13.5px;color:var(--ink-2);border-bottom:1px solid var(--rule)}
.hb-vdl dd{margin:0;padding:12px 16px;font-size:14.5px;line-height:1.85;border-bottom:1px solid var(--rule)}
.hb-vdl dt:last-of-type,.hb-vdl dd:last-of-type{border-bottom:0}
.hb-vtable{width:100%;border-collapse:collapse;margin:0 0 20px;background:#fff;font-size:14px;line-height:1.75}
.hb-vtable th,.hb-vtable td{border:1px solid var(--rule);padding:10px 12px;vertical-align:top;text-align:left}
.hb-vtable th{width:30%;background:var(--paper-2);font-weight:700;color:var(--ink-2);font-size:13px}
.hb-vtable p{margin:0}
.hb-vstudy{list-style:none;display:flex;gap:12px;padding:0!important;margin:0 0 24px!important}
.hb-vstudy li{flex:1;background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:14px 16px;text-align:center;font-size:13px;color:var(--ink-2)}
.hb-vstudy li span{display:block;font-weight:700;margin-bottom:2px}
.hb-vstudy li b{font-family:var(--font-mono);font-size:30px;color:var(--ink);margin-right:3px}
@media(max-width:640px){
  .hb-vdl{grid-template-columns:1fr}
  .hb-vdl dt{border-bottom:0;padding-bottom:4px}
  .hb-vdl dd{padding-top:4px}
  .hb-vtable th{width:36%}
  .hb-book{grid-template-columns:1fr;gap:12px}
  .hb-book__covers{flex-direction:row;flex-wrap:wrap}
  .hb-book__covers figure{width:110px}
  .hb-vbody figure img{max-height:340px}
}
/* 出身校が無い記事：進学先だけを表示／プロフィールが受験結果だけのとき1列 */
.hb-transfer--to-only{grid-template-columns:1fr!important}
.hb-vprof:not(:has(.hb-vprof__dl)){grid-template-columns:1fr}

/* =========================================================
 * サイト共通のトンマナに統一（v1.4.0）
 * メディアサイト・HPと同じフォント／文字色／差し色（オレンジ）に揃え、
 * 小さすぎた文字を読みやすいサイズに上げる。
 * ======================================================= */
:root{
  --font-display:"Inter","Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
  --font-body:"Inter","Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
  --font-mono:"Inter","Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",sans-serif;
  --ink:#231815; --ink-2:#4b4643; --ink-3:#7c7774;
  --paper:#ffffff; --paper-2:#f7f5f3; --rule:#e5e1dd;
  --vermilion:#ff6e00; --vermilion-soft:#fff1e6;
  --marker:#ffd9b8; --marker-soft:#fff1e6;
}
.hb-wrap{color:var(--ink);font-family:var(--font-body)}
.hb-wrap h1,.hb-wrap h2,.hb-wrap h3,.hb-wrap h4{font-family:var(--font-display);letter-spacing:.02em}
.hb-hero h1{font-weight:700;font-size:clamp(24px,3.6vw,34px);line-height:1.5}
.hb-eyebrow{font-size:13px;letter-spacing:.06em}
.hb-transfer__label{font-size:12px;letter-spacing:.06em}
.hb-transfer__school{font-weight:700}
.hb-transfer__dept{font-size:14px}
.hb-transfer__arrow em{font-size:12px}
.hb-stat__k{font-size:12px;letter-spacing:.04em}
.hb-stat__v{font-size:24px}
.hb-stat__v small{font-size:13px}
.hb-author__meta{font-size:13px}
.hb-author__n span{font-size:12.5px}
.hb-toc__t{font-size:13px;letter-spacing:.08em}
.hb-toc__list a{font-size:15px}
.hb-crumb{font-size:13px}
.hb-topbar__meta{font-size:12.5px}
.hb-badge{font-size:12px;padding:3px 10px}
.hb-vprof__res li{font-size:15px}
.hb-vprof__dl{font-size:15px}
.hb-vprof__dl dt{font-size:13.5px}
.hb-wrap .hb-vprof__other{font-size:14px}
.hb-vbody{font-size:16px;line-height:1.95;color:var(--ink)}
.hb-vbody h2{font-weight:700;font-size:clamp(21px,2.6vw,26px);border-bottom:3px solid var(--vermilion)}
.hb-vbody h3{font-weight:700;font-size:19px}
.hb-vbody h4{font-size:16.5px}
.hb-vdl dt{font-size:14.5px}
.hb-vdl dd{font-size:15.5px}
.hb-vtable{font-size:15px}
.hb-vtable th{font-size:14px}
.hb-vstudy li{font-size:14px}
.hb-vstudy li b{font-size:32px}

/* v1.5.0 教材画像：未設定の仮置き／画像不要 */
.hb-book__cover--ph{margin:0}
.hb-book__ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;aspect-ratio:7/10;width:100%;border:1.5px dashed #e3d6c8;border-radius:4px;background:repeating-linear-gradient(135deg,#fffaf5 0 10px,#fff 10px 20px);color:#a8917c;text-align:center;line-height:1.4}
.hb-book__ph b{font-size:13px;font-weight:700;letter-spacing:.06em}
.hb-book__ph small{font-size:12px}
.hb-book--nocover{grid-template-columns:1fr}
@media (max-width:640px){.hb-book__cover--ph{width:110px}}

/* v1.6.1 教材の表紙・図をタップで拡大 */
.hb-vbody .hb-book__cover img,.hb-vbody .hb-fig img{cursor:zoom-in}
.hb-zoom{border:0;padding:0;background:transparent;max-width:min(92vw,720px);max-height:92vh}
.hb-zoom::backdrop{background:rgba(20,16,14,.78)}
.hb-zoom img{display:block;max-width:min(92vw,720px);max-height:86vh;width:auto;height:auto;margin:0 auto;border-radius:4px;box-shadow:0 10px 40px rgba(0,0,0,.4);background:#fff}
.hb-zoom p{margin:10px 0 0;color:#fff;font-size:13px;text-align:center}
.hb-zoom button{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);font-size:22px;line-height:40px;cursor:pointer}
