/* =========================================================
   exam.legal-vibes.com と揃えたテーマ
   受験用サイトから実測した値をそのまま使っています。
     背景   #F3F7FA
     見出し #2A2A2A ／ 本文 #3A3F44 ／ 補足 #5C6771
     差し色 #CCFF00（ライムイエロー）
     枠     2px solid #2A2A2A
     角丸   8px（ボタン）／10px（カード）／9999px（ピル）
     書体   Zen Kaku Gothic New
     ボタンと見出しタグは skewX(-8deg) で斜めにする
   ========================================================= */

:root {
  --bg:        #F3F7FA;
  --ink:       #2A2A2A;   /* 見出し */
  --text:      #3A3F44;   /* 本文 */
  --mute:      #5C6771;   /* 補足（白地 5.9:1） */
  --line:      #CFDAE2;
  --lime:      #CCFF00;   /* 差し色。黒文字を載せる前提 */
  --lime-deep: #B8E600;
  --teal:      #0C7D86;
  --teal-pale: #B0E8EC;
  --white:     #FFFFFF;

  --dot:       #D5E1EA;   /* 背景のドット */

  --r-btn:  8px;
  --r-card: 10px;
  --skew:   -8deg;

  --shadow-card: 0 2px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 固定ヘッダーの下に見出しが潜り込まないように */
[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", -apple-system, "system-ui",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", Meiryo, "Noto Sans JP", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a   { color: inherit; }

.container {
  width: min(1100px, 100% - 40px);
  margin-inline: auto;
}
.container--narrow { width: min(760px, 100% - 40px); }

/* ---------- 斜めのタグ見出し（黒地に白抜き） ---------- */
.tag {
  display: inline-block;
  padding: 7px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  transform: skewX(var(--skew));
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}
.tag > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }

/* ---------- 見出し ---------- */
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--mute);
}
.h-lg {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 900;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: .02em;
  text-wrap: balance;
}
.h-md {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 900;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
  text-wrap: pretty;
}
.note { font-size: 12.5px; line-height: 1.8; color: var(--mute); text-wrap: pretty; }

/* ---------- カード（太い黒枠＋真下に落ちる影） ---------- */
.card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.card--lime { background: var(--lime); }
.card--flat { box-shadow: none; }
.card--soft { border-color: var(--line); box-shadow: none; }

/* ---------- 番号つきの項目 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
}
.step__num {
  flex: none;
  display: grid; place-items: center;
  min-width: 56px; padding: 6px 12px;
  background: var(--ink); color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 17px; font-weight: 900; letter-spacing: .04em;
  transform: skewX(var(--skew));
}
.step__num > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.step__text { font-size: 16px; font-weight: 700; color: var(--ink); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--r-btn);
  background: var(--white);
  color: var(--ink);
  font-size: 15px; font-weight: 900;
  text-decoration: none;
  transform: skewX(var(--skew));
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 3px 0 var(--ink);
}
.btn > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }
.btn:hover { transform: skewX(var(--skew)) translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: skewX(var(--skew)) translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn--go { background: var(--lime); }
.btn--lg { padding: 17px 40px; font-size: 17px; }
.btn--block { display: block; text-align: center; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- 価格 ---------- */
.price {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 900; line-height: 1.1; color: var(--ink);
  letter-spacing: -.01em;
}
.price__unit { font-size: .4em; font-weight: 700; margin-left: 4px; }

/* ---------- ヘッダー ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0;
}
.hdr__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr__logo img { width: 40px; height: 40px; border-radius: 9px; }
.hdr__nav { display: flex; gap: 10px; }
.hdr__nav .btn { padding: 9px 18px; font-size: 13px; box-shadow: 0 2px 0 var(--ink); }

/* ---------- セクション ---------- */
.sec { padding: clamp(48px, 8vw, 84px) 0; }
.sec__head { margin-bottom: clamp(24px, 4vw, 36px); }

/* ---------- グリッド ---------- */
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* ---------- 定義リスト（仕様表） ---------- */
.spec { margin: 0; }
.spec__row {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 6px 22px; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.spec__row:last-child { border-bottom: 0; }
.spec__row dt { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.spec__row dd { margin: 0; font-size: 14.5px; }
@media (max-width: 620px) { .spec__row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- フッター ---------- */
.ftr {
  border-top: 2px solid var(--ink);
  padding: 26px 0 34px;
  font-size: 12.5px; color: var(--mute);
}
.ftr ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 12px; padding: 0; }
.ftr a { color: var(--mute); }

/* ---------- 補助 ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 100; }

/* =========================================================
   京大ロー模試ページ用の部品
   ========================================================= */

/* ---------- 見出し（黒帯を重ねた大見出し） ----------
   1行ずつ黒帯にします。帯の中で折り返すと形が崩れるので
   nowrap にして、文字サイズを画面幅に追従させています。   */
.h-hero {
  margin: 0;
  font-size: clamp(21px, 6.1vw, 52px);
  font-weight: 900;
  line-height: 1.26;
  letter-spacing: .01em;
}
.h-hero__line {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: .17em .34em;
  margin-bottom: .14em;
  white-space: nowrap;
  transform: skewX(-4deg);
}
.h-hero__line > span { display: inline-block; transform: skewX(4deg); }
.h-hero mark { background: none; color: var(--lime); }

/* ---------- 箇条書き（番号を四角で囲む） ---------- */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; align-items: center; gap: 14px; }
.points__n {
  flex: none;
  min-width: 48px; padding: 4px 11px;
  background: var(--teal); color: var(--white);
  border-radius: 5px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px; font-weight: 900; letter-spacing: .04em;
  text-align: center;
}
.points__t { font-size: clamp(15px, 2.4vw, 19px); font-weight: 700; color: var(--ink); }
/* 狭い画面で「受験OK」だけが次の行に落ちないように詰める */
@media (max-width: 370px) {
  .points li { gap: 10px; }
  .points__n { min-width: 42px; padding: 4px 8px; font-size: 14px; }
  .points__t { font-size: 13.5px; letter-spacing: -.01em; }
}

/* ---------- 料金カード ---------- */
.plan { display: flex; flex-direction: column; }
.plan__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan__badge {
  display: inline-block;
  padding: 5px 15px;
  background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 900; letter-spacing: .04em;
  transform: skewX(var(--skew));
}
.plan__badge > span { display: inline-block; transform: skewX(calc(var(--skew) * -1)); }

/* 出願枠が長いほうのバッジ。枠名を小さく2行目に落として、
   もう一方のバッジと高さを揃える */
.plan__badge--long { padding: 4px 13px; line-height: 1.25; }
.plan__badge--long > span { display: inline-flex; flex-direction: column; align-items: flex-start; }
.plan__badge--long small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .82;
}
.plan__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan__name { font-size: 21px; font-weight: 900; color: var(--ink); }
.plan__subjects {
  margin: 12px 0 0;
  font-size: 13.5px; line-height: 1.75; color: var(--mute);
  word-break: keep-all; overflow-wrap: anywhere;
}

.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; }
.plan__way {
  flex: none;
  padding: 4px 10px;
  background: var(--ink); color: var(--white);
  border-radius: 5px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px; font-weight: 900; letter-spacing: .06em;
  align-self: center;
}
.plan__price + .plan__price {
  margin-top: 10px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.plan__price--sub .price { font-size: clamp(30px, 4.6vw, 42px); }
.plan__way--tegaki { background: var(--white); color: var(--ink); border: 2px solid var(--ink); padding: 2px 8px; }
.plan__note { margin: 8px 0 0; font-size: 12.5px; color: var(--mute); }
.plan__cta { margin-top: 18px; display: grid; gap: 10px; }
.plan__cta .btn { font-size: 14.5px; padding: 13px 18px; }

/* ---------- 全幅の画像（受験画面） ---------- */
.shot { margin: 0; }
.shot__frame {
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--white);
  line-height: 0;
}
.shot__frame img { width: 100%; display: block; }
.shot figcaption { margin-top: 12px; font-size: 12.5px; color: var(--mute); line-height: 1.8; }

/* ---------- 画面下に貼りつく申込みバー ----------
   決済へのリンクが常に見えているようにするためのものです。 */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white);
  border-top: 2px solid var(--ink);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}
.cta-bar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.cta-bar__price { font-size: 13px; line-height: 1.5; color: var(--ink); font-weight: 700; }
.cta-bar__price b { font-family: "DM Sans", Arial, sans-serif; font-size: 17px; font-weight: 900; }
.cta-bar__price span { display: block; font-size: 11.5px; font-weight: 400; color: var(--mute); }
.cta-bar .btn { flex: none; padding: 12px 24px; }
/* バーの高さぶん、本文の下に余白をつくる */
body { padding-bottom: 84px; }
@media (max-width: 420px) {
  .cta-bar__price b { font-size: 15px; }
  .cta-bar .btn { padding: 11px 16px; font-size: 14px; }
}

/* ---------- 注意書きの帯 ---------- */
.callout {
  border: 2px solid var(--ink);
  border-radius: var(--r-card);
  background: var(--white);
  padding: 16px 20px;
  font-size: 13.5px; line-height: 1.85;
}
.callout--note { border-style: dashed; border-color: var(--line); background: transparent; }

/* 「見出し＋本文」を1行ずつ並べる書き方 */
.callout__row { margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); text-wrap: pretty; }
.callout__row:first-child { padding-top: 0; }
.callout__row:last-child  { padding-bottom: 0; border-bottom: 0; }
.callout__k {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-size: 12px; font-weight: 900; color: var(--ink);
  white-space: nowrap;
}
.callout__row--note { color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: skewX(var(--skew)); }
}
