/* ==========================================================================
   問題・教材づくりと監修（spot）— site.css（1枚）
   値の出どころ: Obsidian design/wells-design-canon.md ほか
   色    : canon §1 の確定値のみ（自作しない）
   余白  : 8px 刻み（4/8/16/24/32/48/64/96）。タイトル上 SP56/タブ64/PC81、セクション間 SP64/PC96
   文字  : canon §2 のタイプスケール。本文 16px 固定
   BP    : 980（ナビ→☰・グリッド1カラム化）／620（左右 28→20）。QA 幅は 375/768/1280
   ========================================================================== */

:root {
  --white: #ffffff;
  --paper: #f5f5f4;       /* 淡い灰（写真の読み込み前など） */
  --navy: #16307a;        /* 主紺 */
  --navy-hover: #152e63;
  --cta: #2a4a9e;         /* CTA ボタン塗り（サイト全体で1色独占） */
  --cta-hover: #24408c;
  --callout: #f5f5f4;
  --line: #e2e2e0;        /* 罫線（灰） */
  --ui: #8a8a87;          /* UI 境界（白地 3.4:1） */
  --ink: #1a1a1a;         /* 文字の黒 */
  --muted: #5e5e5b;       /* 補助の文字（灰） */
  --focus: #1d3f8f;

  --f-sans: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: 20px;
  --title-top: 56px;      /* ヘッダー下端 → タイトル */
  --sec-gap: 64px;        /* セクション間 */
  --lh: 1.9;
  --header-h: 64px;
  --bar-h: 80px;
}
@media (min-width: 620px) { :root { --gutter: 28px; } }
@media (min-width: 768px) { :root { --title-top: 64px; } }
@media (min-width: 980px) { :root { --title-top: 81px; --sec-gap: 96px; --lh: 1.8; --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: var(--lh);
  letter-spacing: .01em;
  overflow-wrap: break-word;
  line-break: strict;
  word-break: normal;
}
@media (max-width: 979px) { .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--navy-hover); }
p, li { text-wrap: pretty; }
p, ul, ol, h1, h2, h3, table, address, fieldset, figure { margin: 0; }
ul, ol { padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: 1176px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 見出し（左揃え。金の下線なし。区別は大きさ・余白・配置） ---------- */
h1, h2 { font-family: var(--f-sans); color: var(--ink); font-feature-settings: "palt"; word-break: keep-all; line-break: strict; text-wrap: balance; }
h3 { font-family: var(--f-sans); font-weight: 700; color: var(--ink); font-feature-settings: "palt"; word-break: keep-all; line-break: strict; text-wrap: balance; }
.ph { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
h1 { font-size: clamp(31px, 4.3vw, 48px); font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
h3 { font-size: 18px; line-height: 1.5; letter-spacing: .03em; }

/* ---------- ボタン（角丸 4px） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 16px 30px; white-space: nowrap;
  background: var(--cta); color: #fff; border: 1.5px solid var(--cta); border-radius: 4px;
  font-size: 16px; font-weight: 700; letter-spacing: .03em; line-height: 1.4; text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn--lg { min-height: 56px; padding: 16px 30px; }
@media (max-width: 619px) { .btn { padding-inline: 12px; letter-spacing: .01em; } .btn--lg { font-size: 15px; } }
.btn--sm { min-height: 44px; padding: 8px 12px; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--paper); color: var(--navy-hover); border-color: var(--navy); }
.btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 619px) { .cta-row .btn { width: 100%; } }

.tel-link { display: inline-block; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header { position: relative; background: #fff; border-bottom: 1px solid var(--line); z-index: 20; }
.site-header__in {
  max-width: 1176px; margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--header-h); display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
/* ブランド: WELLSマーク｜縦罫｜2段（小: センター名／大: サイト名） */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 0; }
.brand__mark { height: 24px; width: auto; flex: none; }
.brand__rule { flex: none; align-self: center; width: 1px; height: 28px; background: var(--ui); opacity: .55; }
.brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; white-space: nowrap; }
.brand__sub { font: 500 10px/1 "Noto Sans JP", sans-serif; letter-spacing: .1em; color: var(--muted); }
.brand__name { font: 700 clamp(14px, 4.1vw, 16px)/1.1 var(--f-sans); letter-spacing: .02em; color: var(--ink); font-feature-settings: "palt"; }
.brand:hover .brand__name { color: var(--ink); }
@media (max-width: 979px) { .header-cta { display: none; } }
@media (min-width: 620px) {
  .brand { gap: 14px; }
  .brand__mark { height: 28px; }
  .brand__rule { height: 32px; }
  .brand__sub { font-size: 11px; }
  .brand__name { font-size: 17px; }
}
@media (min-width: 980px) {
  .brand { gap: 18px; }
  .brand__mark { height: 36px; }
  .brand__rule { height: 40px; }
  .brand__text { gap: 5px; }
  .brand__sub { font-size: 11px; letter-spacing: .14em; }
  .brand__name { font-size: 20px; letter-spacing: .02em; }
}

.header-tel { display: none; }
.menu-btn {
  min-width: 44px; height: 44px; padding: 0 12px; gap: 8px; border: 1.5px solid var(--ui); border-radius: 4px; background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
html:not(.js) .menu-btn { display: none; }
/* スマホ: ボタンを「三本線＋小さな文字」の縦積みにして、ブランドに幅を回す */
@media (max-width: 619px) {
  .menu-btn { flex-direction: column; gap: 5px; min-width: 52px; padding: 0 6px; }
  .menu-btn .menu-btn__t { font-size: 10px; letter-spacing: .04em; }
}
.menu-btn__t { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1; }
.menu-btn__bars { position: relative; display: block; width: 20px; height: 14px; }
.menu-btn__bars i { position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.menu-btn__bars i:nth-child(1) { top: 0; }
.menu-btn__bars i:nth-child(2) { top: 6px; }
.menu-btn__bars i:nth-child(3) { top: 12px; }
.menu-btn.is-open .menu-btn__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-btn.is-open .menu-btn__bars i:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-btn__bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* メニュー: JS なしなら常に中身が出る（下に折り返す）。JS ありのスマホでは開閉式 */
.site-nav { order: 9; flex: 0 0 100%; margin: 0 calc(var(--gutter) * -1); }
.site-nav ul { list-style: none; }
.site-nav li a {
  display: flex; align-items: center; min-height: 56px; padding: 0 var(--gutter);
  border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav li a:hover { background: var(--callout); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 4px 0 0 var(--navy); }
.site-nav__tel { padding: 16px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-nav__tel a { font-size: 16px; font-weight: 700; color: var(--navy); }
.js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 33, 71, .06); }
.js .site-nav.is-open { display: block; }

@media (min-width: 980px) {
  .site-nav, .js .site-nav { display: block; position: static; order: 0; flex: 0 1 auto; margin: 0 0 0 auto; border: 0; box-shadow: none; background: transparent; }
  .site-nav ul { display: flex; gap: 0; }
  .site-nav li a { min-height: 44px; padding: 0 12px; border-top: 0; font-size: 14px; border-radius: 4px; white-space: nowrap; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
  .site-nav__tel, .menu-btn, html:not(.js) .menu-btn { display: none; }
  .brand { flex: 0 0 auto; }
  .site-header__in { flex-wrap: nowrap; gap: 16px; }
  .btn--sm { padding: 8px 24px; font-size: 14px; }
}
@media (min-width: 1180px) {
  .header-tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; white-space: nowrap; }
  .header-tel a { font-family: Inter, sans-serif; font-weight: 700; font-size: 16px; color: var(--navy); text-decoration: none; }
  .header-tel small { font-size: 12px; color: var(--muted); }
}

/* ---------- ページ頭（分割ヒーロー）: 左に文字、右に写真。写真は直線で区切る（白に溶かさない） ---------- */
main { display: block; overflow-x: clip; }
.hero { display: flex; flex-direction: column; }
.hero__media { order: -1; position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); }
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__media img { object-fit: cover; object-position: var(--pos-sp, 50% 50%); }
.hero__media::after { content: none; }
.hero__text { padding: var(--title-top) var(--gutter) 32px; }
.hero .lead { margin-top: 24px; max-width: 680px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.9; }
.hero h1 { max-width: 920px; }
.hero .cta-row { margin-top: 32px; }
.hero__text > p + p { margin-top: 16px; }
.hero--noimg .hero__text { padding-top: var(--title-top); }
/* 620〜979幅も 3:2 のまま（2:1 だと人物の頭が切れる） */
@media (min-width: 620px) { .hero__media img { object-position: var(--pos-md, 50% 50%); } }
@media (min-width: 980px) {
  .hero { display: grid; grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 560px) minmax(0, 560px) minmax(var(--gutter), 1fr); }
  .hero--img { min-height: clamp(400px, 38vw, 500px); }
  .hero--top { min-height: clamp(480px, 46vw, 600px); }
  .hero--img { margin-bottom: 48px; } /* 写真の下端 → 次の見出しを96pxにする（次の節の上48px＋ここ48px） */
  .hero__text { grid-column: 2; grid-row: 1; padding: var(--title-top) 48px 64px 0; }
  .hero__media { order: 0; grid-column: 3 / 5; grid-row: 1; aspect-ratio: auto; }
  .hero__media img { object-position: var(--pos, 50% 50%); }
  .hero--noimg .hero__text { grid-column: 2 / 4; padding: var(--title-top) 0 48px; }
}

/* ---------- 節の共通 ---------- */
.sections { margin-top: 0; }
.sec { padding-block: calc(var(--sec-gap) / 2); }
.sec__in { max-width: 1176px; margin: 0 auto; padding-inline: var(--gutter); }
.sec h2 { margin-bottom: 24px; }
.sec--band, .consult { background: #fff; border-top: 1px solid var(--line); padding-block: clamp(56px, 6vw, 80px); }
.sec--band + .sec--band, .sec--band + .consult { margin-top: var(--sec-gap); }
.nav-faq { display: list-item; }
/* メニューが4つなので、PCでも4つめ（担当について）を出す */

.sec__lead > * + *, .sec__body > * + *, .pair__col > * + *, .media__text > * + *, .qs__text > * + *, .pick__text > * + *, .price__text > * + *, .consult__text > * + *, .consult__act > * + * { margin-top: 16px; }
.sec__body > h2 + *, .pair__col > h2 + * { margin-top: 0; }
.sec__body > * + :is(.rows, .numbered, .checks, .table-wrap, .steps, .source, .cta-row), .sec__body > :is(.rows, .numbered, .checks, .table-wrap, .steps) + * { margin-top: 24px; }
.sec ul:not([class]), .sec ol:not([class]) { padding-left: 1.4em; }
.sec li:not([class]) + li:not([class]) { margin-top: 8px; }

/* 前置きの文（行・チェックの外）と、全幅の箇条書き */
.sec__lead { margin: -8px 0 24px; max-width: 680px; }
.sec__list { margin-top: 24px; }
.sec__body--after { margin-top: 24px; }
.sec__body--after:empty { display: none; }

/* PC: 12列の格子 */
@media (min-width: 980px) {
  .sec--prose .sec__in, .sec--facts .sec__in, .sec--split .sec__in, .sec--price .sec__in, .sec--entry .sec__in, .sec--pick .sec__in, .sec--qs .sec__in, .sec--media .sec__in, .faq {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  }
  .sec--prose h2, .sec--facts h2, .sec--price h2 { grid-column: 1 / -1; }
  .sec--facts .facts { grid-column: 1 / -1; }
  .sec--prose .sec__body, .sec--facts .sec__body { grid-column: 1 / 9; max-width: 680px; }
  .sec--prose .source, .sec--facts .source { grid-column: 9 / 13; align-self: start; }
  .sec--split h2 { grid-column: 1 / 6; margin: 0; padding-right: 16px; }
  .sec--split .sec__body { grid-column: 6 / 13; max-width: 680px; }
  .sec--split .sec__lead { grid-column: 1 / 6; margin: 16px 0 0; padding-right: 16px; align-self: start; }
  .sec--split .sec__lead ~ .sec__body { grid-row: 1 / span 2; }
  .sec--split .sec__in:has(.sec__lead) { grid-template-rows: auto 1fr; }
  .sec--facts .sec__list { grid-column: 1 / -1; margin-top: 32px; }
  .sec--facts .sec__body--after { grid-column: 1 / 9; margin-top: 24px; }
  .sec--split.sec--rows .sec__body, .sec--split.sec--numbered .sec__body, .sec--split.sec--checks .sec__body { max-width: none; }
}

@media (min-width: 980px) and (max-width: 1179px) {
  .sec--split h2 { grid-column: 1 / -1; margin: 0 0 24px; padding-right: 0; }
  .sec--split .sec__body { grid-column: 1 / -1; }
  .sec--split .sec__lead { grid-column: 1 / -1; margin: -8px 0 24px; padding-right: 0; }
  .sec--split .sec__lead ~ .sec__body { grid-row: auto; }
}

/* ---------- 本文の中の部品 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
th, td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--paper); color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 500; background: #fff; position: sticky; left: 0; }
table:not(.pricelist) tbody th { white-space: nowrap; }
th.num, td.num { text-align: right; font-family: Inter, "Noto Sans JP", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 620px) { table { font-size: 16px; } th, td { padding: 16px; } }

.source, .note { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.source { border-top: 1px solid var(--line); padding-top: 12px; }
.sec__body > .source, .sec__body + .source { margin-top: 24px; }
@media (min-width: 980px) { .sec--prose .source, .sec--facts .source { margin-top: 0; } }
.notice-wrap { padding: 0 0 48px; margin-top: 32px; }
.notice-wrap .note { max-width: 680px; }
.sections:has(+ .notice-wrap) { padding-bottom: 0; }

/* 行 */
.rows, .numbered, .checks { list-style: none; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row__l { font-size: 16px; line-height: 1.7; font-weight: 700; color: var(--ink); word-break: keep-all; line-break: strict; }
@media (min-width: 768px) { .row { padding: 24px 0; } }
@media (min-width: 980px) {
  .row { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .row--plain { grid-template-columns: minmax(0, 1fr); }
}
/* 番号の行 */
.numbered { counter-reset: nb; }
.numbered li { counter-increment: nb; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 20px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(nb, decimal-leading-zero); font: 600 24px/1.3 Inter, "Noto Sans JP", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.numbered strong { display: block; margin-bottom: 4px; font-size: 16px; line-height: 1.7; color: var(--ink); word-break: keep-all; line-break: strict; }
@media (min-width: 768px) { .numbered li { grid-template-columns: 64px minmax(0, 1fr); padding: 24px 0; } .numbered li::before { font-size: 28px; } }
/* チェック */
.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sec--rows + .sec--pair { border-top: 1px solid var(--line); }
@media (min-width: 768px) { .checks:has(li:nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); } }
.checks li { position: relative; padding-left: 32px; margin: 0 !important; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='8.5'/%3E%3Cpath d='M6 10.3l2.8 2.8L14 7.8'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
@media (min-width: 768px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; } }

/* 数字の帯 */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { display: grid; align-content: start; padding: 24px 16px 24px 0; border-top: 1px solid var(--line); }
.facts > div:nth-child(-n+2) { border-top: 0; }
.facts > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
.facts dt { order: 1; margin-bottom: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.facts dd { order: 2; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; }
.facts__n { font: 700 clamp(40px, 5vw, 62px)/1.1 Inter, "Noto Sans JP", sans-serif; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts__u { font: 500 max(16px, .4em)/1 "Noto Sans JP", sans-serif; color: var(--ink); margin-left: 2px; }
.facts__n .facts__u { font-size: max(16px, .4em); }
.facts__t { flex: 0 0 100%; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.facts--price .facts__n { font-size: clamp(32px, 3.6vw, 44px); }
@media (max-width: 619px) {
  .facts:not(.facts--4) { grid-template-columns: minmax(0, 1fr); }
  .facts:not(.facts--4) > div, .facts:not(.facts--4) > div:nth-child(even) { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .facts:not(.facts--4) > div:first-child { border-top: 0; }
  .facts--4 > div { padding: 20px 12px 20px 0; }
  .facts--4 > div:nth-child(even) { padding-left: 16px; }
  .facts--4 .facts__n { font-size: 36px; }
}
@media (min-width: 980px) {
  .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-bottom: 48px; }
  .facts > div, .facts > div:nth-child(even) { border-top: 0; border-left: 1px solid var(--line); padding: 32px 24px; }
  .facts > div:first-child { border-left: 0; padding-left: 0; }
}

/* 2列の対 */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 980px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .pair__col { padding-inline: 32px; }
  .pair__col:first-child { padding-left: 0; }
  .pair h2 { font-size: clamp(22px, 2.6vw, 32px); }
  .pair__col + .pair__col { padding-right: 0; border-left: 1px solid var(--line); }
  .pair__col:nth-of-type(2) { padding-right: 0; }
}
.pair__src { margin-top: 32px; }
@media (min-width: 980px) { .pair__src { grid-column: 1 / -1; margin-top: 40px; } }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cols__more { margin-top: 24px; max-width: 680px; }
.cols__more:empty { display: none; }
@media (min-width: 980px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .cols > div { padding-inline: 32px; }
  .cols > div:first-child { padding-left: 0; }
  .cols > div:last-child { padding-right: 0; border-left: 1px solid var(--line); }
}

/* ---------- 手順の線 ---------- */
.steps { list-style: none; padding: 0; margin-top: 8px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; margin: 0 !important; padding: 0 0 32px 60px; min-height: 40px; display: block; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; font: 600 16px/1 Inter, "Noto Sans JP", sans-serif; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 8px; width: 1px; background: var(--line); }
.steps strong { display: block; color: var(--ink); line-height: 1.6; padding-top: 7px; word-break: keep-all; line-break: strict; }
.steps li > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.8; }
.sec--steps h2 + .steps { margin-top: 0; }
.sec--steps .steps + p { margin-top: 32px; max-width: 680px; }
.sec--steps .sec__in > p { max-width: 680px; }
.sec--steps p + .steps { margin-top: 32px; }
@media (min-width: 980px) {
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 16px; }
  .steps li { padding: 56px 0 0; }
  .steps li::before { left: 0; top: 0; }
  .steps li:not(:last-child)::after { left: 52px; right: -20px; top: 20px; bottom: auto; width: auto; height: 1px; }
  .steps strong { padding-top: 0; }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) and (max-width: 1199px) {
  .steps:not(.steps--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps:not(.steps--3) li::after { display: none; }
  .sec--steps p + .steps { margin-top: 40px; }
}

/* ---------- 短い節（qs） ---------- */
.qs__act { margin-top: 24px; }
.sec--qs { padding-block: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 980px) {
  .qs__text { grid-column: 1 / 9; }
  .qs__act { grid-column: 9 / 13; margin-top: 0; display: flex; align-items: center; justify-content: flex-end; }
  .qs__text h2 { margin-bottom: 16px; }
}
@media (max-width: 619px) { .qs__act .btn { width: 100%; } }

/* ---------- 料金の一覧 ---------- */
.pricelist, .pricelist tbody { display: block; }
.pricelist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pricelist tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.pricelist tr:last-child { border-bottom: 1px solid var(--line); }
.pricelist th, .pricelist td { display: block; border: 0; padding: 0; background: none; position: static; }
.pricelist th { font-size: 16px; font-weight: 700; line-height: 1.7; color: var(--ink); }
.pl__v { display: block; font: 700 clamp(28px, 3vw, 36px)/1.25 Inter, "Noto Sans JP", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pl__v .facts__u { font-size: max(16px, .4em); }
.pl__t { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.price__text { margin-top: 32px; }
.price__text > * { max-width: 680px; }
@media (min-width: 768px) {
  .pricelist tr { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; align-items: baseline; }
  .pricelist td { text-align: right; }
}
@media (min-width: 980px) {
  .price__list { grid-column: 1 / 8; }
  .price__text { grid-column: 8 / 13; margin-top: 0; }
}

/* ---------- お受けしていること: 写真つき、カード全体がリンク（医学部サイトの入口を3枚用に） ---------- */
.entry { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.entry__item { margin: 0; border-top: 1px solid var(--line); }
.entry__item:last-child { border-bottom: 1px solid var(--line); }
.entry__a { display: flex; gap: 16px; padding: 20px 0; color: var(--ink); text-decoration: none; overflow-wrap: normal; }
.entry__a:hover { color: var(--ink); }
.entry__img { flex: 0 0 96px; width: 96px; height: 96px; display: block; position: relative; overflow: hidden; border-radius: 4px; background: var(--paper); }
.entry__img picture, .entry__img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.entry__img img, .media__fig img { object-fit: cover; object-position: var(--pos-sp, 50% 50%); }
.entry__body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.entry h3 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.entry p { font-size: 14px; line-height: 1.8; }
.entry p + p { margin-top: 4px; }
.entry__link { margin-top: 8px; font-weight: 700; color: var(--navy); font-size: 14px; }
.entry__link::before { content: "→ "; }
.entry__a:hover .entry__link { text-decoration: underline; text-underline-offset: 3px; }
.entry__a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.entry__lead > * + * { margin-top: 16px; }
.entry__lead { margin-bottom: 24px; max-width: 680px; }
@media (min-width: 620px) {
  .entry__a { gap: 24px; padding: 24px 0; }
  .entry__img { flex-basis: 200px; width: 200px; height: auto; aspect-ratio: 4 / 3; }
  .entry h3 { font-size: 18px; }
  .entry__lead { margin-bottom: 32px; }
  .entry__img img, .media__fig img { object-position: var(--pos-md, 50% 50%); }
}
@media (min-width: 980px) {
  .sec--entry h2 { grid-column: 1 / 5; margin: 0; }
  .entry__lead { grid-column: 5 / 13; margin: 0; max-width: 680px; }
  .entry { grid-column: 1 / -1; margin-top: 48px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .entry__item { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
  .entry__item:last-child { border-bottom: 1px solid var(--line); }
  .entry__item:hover { border-color: var(--ui); }
  .entry__a { flex-direction: column; gap: 0; padding: 0; height: 100%; }
  .entry__img { flex: none; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 0; }
  .entry__body { padding: 24px; flex: 1 1 auto; }
  .entry__link { margin-top: auto; padding-top: 16px; }
  .entry__img img, .media__fig img { object-position: var(--pos, 50% 50%); }
}

/* ---------- 写真と文章（担当について） ---------- */
.media__fig { position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1) 32px; aspect-ratio: 3 / 2; background: var(--paper); }
.media__fig picture, .media__fig img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (min-width: 980px) {
  .media__fig { grid-column: 1 / 6; grid-row: 1; margin: 0 0 0 calc(-1 * (var(--gutter) + max(0px, (100vw - 1176px) / 2))); aspect-ratio: auto; height: 400px; align-self: center; }
  .media__text { grid-column: 7 / 13; grid-row: 1; align-self: center; }
}

/* ---------- 相談の帯 ---------- */
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-row__tel { font-size: 16px; }
@media (min-width: 620px) { .cta-row { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; } }
.consult__in { max-width: 1176px; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.consult h2 { margin-bottom: 24px; }
.consult__text p { max-width: 640px; }
.consult__act { display: flex; flex-direction: column; align-items: flex-start; }
.consult__act > * + * { margin-top: 0; }
.consult__act .btn { width: 100%; max-width: 360px; }
.consult__tel { margin-top: 24px; font: 600 24px/1.3 Inter, "Noto Sans JP", sans-serif; }
.consult__tel-l { font: 500 14px/1 "Noto Sans JP", sans-serif; color: var(--muted); margin-right: 8px; }
.consult__tel .tel-link { font-weight: 600; font-variant-numeric: tabular-nums; }
.consult__hours { margin-top: 8px; font-size: 14px; color: var(--muted); }
.consult__sub { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 400px; }
@media (min-width: 980px) {
  .consult__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .consult__act { padding-top: 6px; }
  .consult__text { grid-column: 1 / 8; }
  .consult__act { grid-column: 8 / 13; }
  .consult__act .btn { max-width: none; }
}

/* ---------- よくある質問 ---------- */
.sec .faq-index ul { list-style: none; padding: 0; margin: 0 0 32px; }
.faq-index a { display: block; padding: 10px 0; min-height: 44px; color: var(--muted); font-weight: 500; text-decoration: none; overflow-wrap: normal; word-break: keep-all; line-break: strict; }
.faq-index a:hover, .faq-index a[aria-current="true"] { color: var(--navy); }
.faq-index a[aria-current="true"] { font-weight: 700; }
.faq__cat + .faq__cat { margin-top: 56px; }
.faq__cat h2 { margin-bottom: 8px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa + .qa { margin-top: 0 !important; }
.qa summary { display: flex; align-items: flex-start; gap: 16px; min-height: 56px; padding: 18px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 16px; height: 16px; margin: 5px 0 0 auto; background: linear-gradient(var(--ink), var(--ink)) center / 16px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 16px no-repeat; }
.qa[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 16px 1.5px no-repeat; }
.qa summary h3 { font-size: 17px; line-height: 1.6; letter-spacing: .02em; text-wrap: pretty; }
.qa__a { padding: 0 32px 24px 0; margin-top: -8px; }
.qa__a > * + * { margin-top: 16px; }
@media (min-width: 980px) {
  .faq-index { grid-column: 1 / 4; position: sticky; top: 96px; align-self: start; }
  .faq__main { grid-column: 4 / 13; }
  .sec .faq-index ul { margin: 0; }
}

/* ---------- フッター ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.9; }
.site-footer a { color: var(--ink); }
.site-footer__in { max-width: 1176px; margin: 0 auto; padding: 48px var(--gutter); display: grid; grid-template-columns: 1fr; gap: 32px; }
.f-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.f-h { font-family: var(--f-sans); font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.6; margin-bottom: 8px; letter-spacing: .02em; word-break: keep-all; line-break: strict; }
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.f-col ul { list-style: none; }
.f-col li a { display: inline-block; padding: 8px 0; min-height: 44px; text-decoration: none; }
.f-col li a:hover { text-decoration: underline; }
.f-col .f-h { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.site-footer__copy { width: calc(100% - 2 * var(--gutter)); max-width: calc(1176px - 2 * var(--gutter)); margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--line); font-size: 12px; }
@media (min-width: 980px) {
  .site-footer__in { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 64px var(--gutter); }
}
.site-footer :focus-visible { outline-color: var(--focus); }

/* ---------- スマホ固定の相談バー（<980） ---------- */
.sticky-bar { display: none; }
@media (max-width: 979px) {
  .sticky-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .sticky-bar__in { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
  .sticky-bar a { flex: 1 1 0; min-width: 0; height: 56px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; line-height: 1.3; }
  .sticky-bar__tel { background: #fff; border: 1.5px solid var(--ui); color: var(--navy); font-weight: 700; }
  .sticky-bar__tel small { font-size: 12px; font-weight: 400; color: var(--muted); }
  .sticky-bar__cta { background: var(--cta); border: 1.5px solid var(--cta); color: #fff; font-weight: 700; letter-spacing: .03em; }
  .sticky-bar__cta:hover { background: var(--cta-hover); color: #fff; }
  .sticky-bar :focus-visible { outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- トップのスライダー（想定するお客さまごとに写真と説明が切り替わる） */
.hero--slides .hero__media { order: 0; aspect-ratio: auto; overflow: visible; background: none; }
.hero--slides .hero__media::after { display: none; }
.hero--slides .hero__text { padding-top: var(--title-top); }
.slider__frames { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; }
.slider.is-js .slide { visibility: hidden; opacity: 0; transition: opacity .6s ease, visibility 0s linear .6s; }
.slider.is-js .slide.is-on { visibility: visible; opacity: 1; transition: opacity .6s ease; }
.slide__img { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); }
.slide__img picture, .slide__img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.slide__img img { object-fit: cover; object-position: var(--pos-sp, 50% 50%); }
.slide__cap { padding: 24px var(--gutter) 0; }
.slide__who { font-size: 13px; line-height: 1.6; color: var(--muted); letter-spacing: .04em; }
.slide__t { margin-top: 8px; font: 700 19px/1.5 "Noto Sans JP", Inter, sans-serif; color: var(--ink); }
.slide__d { margin-top: 8px; font-size: 15px; line-height: 1.8; }
.slide__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.slide__link::after { content: "→"; margin-left: 8px; text-decoration: none; }
.slider__bar { padding: 16px var(--gutter) 0; }
.slider__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slider__tab { min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--ui); border-radius: 4px; background: #fff; color: var(--ink); font: 700 15px/1.4 "Noto Sans JP", Inter, sans-serif; cursor: pointer; }
.slider__tab[aria-selected="true"] { background: var(--cta); border-color: var(--cta); color: #fff; }
.slider__tab:focus-visible, .slider__pause:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.slider__pause { min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: 400 14px/1.4 "Noto Sans JP", Inter, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (min-width: 620px) {
  .slide__img { aspect-ratio: 2 / 1; }
  .slide__img img { object-position: var(--pos-md, 50% 50%); }
  .slider__tabs { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .hero--slides .hero__text { padding-top: var(--title-top); }
  .hero--slides .hero__media { position: relative; }
  .slider { position: absolute; inset: 0; display: flex; flex-direction: column; }
  .slider__frames { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .slide { display: flex; flex-direction: column; min-height: 0; }
  .slide__img { flex: 1; min-height: 0; aspect-ratio: auto; }
  .slide__img img { object-position: var(--pos, 50% 50%); }
  .slide__cap { flex: none; height: 184px; max-width: 520px; padding: 20px var(--gutter) 0 0; }
  .slider__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 8px var(--gutter) 16px 0; background: #fff; }
  .slider__tabs { flex: 1; max-width: 560px; }
  .slider__pause { margin-top: 0; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .slider.is-js .slide, .slider.is-js .slide.is-on { transition: none; }
}

/* SP・タブレット: スライダーと次の節の間は、箱の外（margin）で空ける */
@media (max-width: 979px) { .hero--slides { margin-bottom: 32px; } }

/* ---------------------------------------------------------------- 対応できる科目（平らな格子。SP 2列・768px〜 4列。最後の「ほか」は横幅いっぱい） */
.subjects { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.subjects li { border-top: 1px solid var(--line); padding: 16px 8px 24px 0; min-width: 0; }
.subj__g { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); }
.subj__n { display: block; margin-top: 4px; font-weight: 700; font-size: 16px; line-height: 1.6; color: var(--ink); word-break: keep-all; line-break: strict; overflow-wrap: anywhere; }
.subjects .subjects__more { grid-column: 1 / -1; padding: 0; border-bottom: 1px solid var(--line); }
.subjects__more a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 700; text-decoration: none; }
.subjects__more a span { flex: none; }
.subjects__more a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .subjects { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .subj__n { font-size: 17px; }
}
