@charset "UTF-8";
/* ===========================================================================
   医療生成AIスペシャリスト試験 — トップページ／公式テキストページ
   ---------------------------------------------------------------------------
   漢検・TOEIC など資格試験サイトの定番構成に沿う。
   「重要なお知らせ → キービジュアル → 試験日程カード → 受験者メニュー →
     受験方法 → お知らせ」の順で、受験者が探す情報を上に置く。
   色はロゴの青を1色だけ強く使い、面・カード・見出し・ボタンのルールを
   全セクションで揃える（セクションごとに別の意匠を持ち込まない）。

   index.html と textbook.html で使う。styles.css / brand-magi.css とは併用しない。
   =========================================================================== */

:root {
  --blue: #0b5cad;      /* ブランド主色（ロゴの青寄り） */
  --blue-deep: #083f7a;
  --blue-ink: #0a2c52;
  --cyan: #1fb5c4;      /* アクセント（ロゴのシアン） */
  --sky: #eaf4fb;       /* 淡い面 */
  --sky-2: #d6eaf7;
  --ink: #1a2533;
  --sub: #4b5866;
  --muted: #7a8694;
  --line: #dde5ec;
  --bg: #ffffff;
  --alert: #d23c2f;
  --alert-bg: #fff3f1;
  --focus: #168fde;
  --r: 12px;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --num: "Inter", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
/* 文字サイズ（小／中／大）。px 指定が多いので zoom でページ全体を拡縮する。 */
body[data-fontsize="s"] { zoom: .92; }
body[data-fontsize="l"] { zoom: 1.12; }

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(1160px, 92%); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; padding: 10px 16px; background: #fff; border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; flex: none; }
section[id] { scroll-margin-top: 100px; }

/* ── 見出しルール（全セクション共通） ──────────────────────────── */
.h2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.h2 h2 { font-size: 30px; font-weight: 900; line-height: 1.4; position: relative; padding-top: 18px; }
.h2 h2::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 50%, var(--cyan) 50%); }
.h2 h2 small { display: block; font-family: var(--num); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin-bottom: 2px; }
.h2 > a { font-size: 14px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.h2 > a:hover { text-decoration: underline; }
.sec { padding: 88px 0 0; }

/* ── ボタン ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.5; padding: 14px 30px; text-align: center; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); }
.btn.white { background: #fff; color: var(--blue); }
.btn.line { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.line-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.off { background: #e9eef3; color: var(--muted); cursor: default; transform: none; }
.arrow { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; flex: none; }
.btn.white .arrow, .btn.line .arrow { background: var(--sky); }

/* ── ユーティリティ帯＋ヘッダー ───────────────────────────────── */
.util { background: var(--blue-ink); color: #cfdcea; font-size: 12px; }
.util .wrap { display: flex; justify-content: flex-end; gap: 22px; align-items: center; min-height: 34px; }
.util a:hover { color: #fff; text-decoration: underline; }
.fs { display: flex; gap: 4px; align-items: center; margin-left: 8px; }
.fs > span { margin-right: 4px; }
.fs button { width: 26px; height: 22px; padding: 0; border-radius: 4px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: inherit; font-size: 12px; line-height: 1; }
.fs button[aria-pressed="true"] { background: #fff; color: var(--blue-ink); }
.head { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; flex: none; }
.brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1.4; }
.brand b { display: block; font-size: 20px; font-weight: 900; line-height: 1.4; letter-spacing: .02em; }
.head-actions { display: flex; gap: 10px; flex: none; }
.head-actions .btn { padding: 11px 22px; font-size: 14px; }
.gnav { background: #fff; border-bottom: 1px solid var(--line); }
.gnav ul { display: flex; }
.gnav li { flex: 1; }
.gnav a { display: block; text-align: center; padding: 14px 8px; font-size: 15px; font-weight: 700; position: relative; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 3px; background: var(--blue); transition: left .2s, right .2s; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { left: 20%; right: 20%; }
.gnav a[aria-current="page"] { color: var(--blue); }

/* ── 重要なお知らせ ───────────────────────────────────────────── */
.alert { margin-top: 20px; border: 1px solid #f3c7c2; background: var(--alert-bg); border-radius: var(--r); display: flex; align-items: center; gap: 18px; padding: 12px 20px; font-size: 14px; }
.alert b { flex: none; background: var(--alert); color: #fff; font-size: 12px; border-radius: 4px; padding: 2px 10px; }
.alert p { flex: 1; }
.alert a { color: var(--alert); font-weight: 700; white-space: nowrap; }
.alert a:hover { text-decoration: underline; }

/* ── キービジュアル ───────────────────────────────────────────── */
.kv { margin-top: 20px; position: relative; border-radius: 20px; overflow: hidden; min-height: 460px; display: flex; align-items: center; color: #fff; background: var(--blue-deep); }
.kv > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.kv::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,63,122,.96) 0%, rgba(11,92,173,.86) 36%, rgba(11,92,173,.2) 62%, rgba(11,92,173,0) 75%); }
.kv-copy { position: relative; z-index: 2; padding: 56px 56px 112px; max-width: 700px; }
.kv-tag { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: var(--blue); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 14px 4px 6px; }
.kv-tag span { background: var(--cyan); color: #fff; border-radius: 999px; padding: 0 10px; }
.kv h1 { font-size: 42px; font-weight: 900; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; margin: 20px 0 16px; letter-spacing: .01em; }
.kv p { font-size: 16px; color: rgba(255,255,255,.92); max-width: 32em; }

/* ── 試験日程カード（キービジュアルに重ねる） ─────────────────── */
.sched { position: relative; z-index: 2; margin: -64px 32px 0; display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.sc { background: #fff; border-radius: 16px; box-shadow: 0 16px 40px -18px rgba(10,44,82,.35); border: 1px solid var(--line); padding: 22px 26px 24px; display: flex; flex-direction: column; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sc-top h2 { font-size: 15px; font-weight: 900; }
.st { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 12px; }
.st.prep { background: var(--sky); color: var(--blue); }
.st.plan { background: #f1f3f5; color: var(--muted); }
.sc .date { font-family: var(--num); font-weight: 800; font-size: 32px; line-height: 1.3; margin: 10px 0 4px; letter-spacing: -.01em; color: var(--blue-ink); }
.sc .date small { font-family: var(--sans); font-size: 15px; font-weight: 700; }
.sc dl { font-size: 13px; color: var(--sub); display: grid; gap: 2px; }
.sc dl div { display: grid; grid-template-columns: 5.5em 1fr; }
.sc dt { color: var(--muted); }
.sc .btn { margin-top: auto; padding: 11px; font-size: 14px; }
.sc.main { border: 2px solid var(--blue); }
.sc.main .btn { margin-top: 16px; width: 100%; }
.sc .btn.line { margin-top: 16px; }

/* ── 受験者メニュー（手順） ───────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 18px 20px; text-align: center; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: translateY(-50%) rotate(45deg); }
.step .no { font-family: var(--num); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--cyan); }
.step .ic { width: 60px; height: 60px; margin: 8px auto 12px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 28px; }
.step b { display: block; font-size: 16px; font-weight: 900; }
.step p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; }

/* ── 受験方法（個人／団体） ───────────────────────────────────── */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.way { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.way:hover { box-shadow: 0 14px 30px -18px rgba(10,44,82,.35); }
.way img { width: 100%; height: 100%; object-fit: cover; }
.way > div { padding: 26px 28px; }
.way small { font-family: var(--num); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); }
.way h3 { font-size: 21px; font-weight: 900; margin: 2px 0 8px; }
.way p { font-size: 14px; color: var(--sub); line-height: 1.8; }
.way .go { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--blue); }

/* ── お知らせ ─────────────────────────────────────────────────── */
.news-box { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.news { border-top: 2px solid var(--blue); }
.news li a { display: grid; grid-template-columns: 7em 6em 1fr; gap: 16px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.news li a:hover .t { color: var(--blue); text-decoration: underline; }
.news time { font-family: var(--num); font-size: 14px; color: var(--muted); }
.news .cat { font-size: 12px; font-weight: 700; text-align: center; border-radius: 4px; padding: 1px 0; background: var(--sky); color: var(--blue); }
.news-status { padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.news-status.error { color: var(--alert); }
.side-links { display: grid; gap: 10px; align-content: start; }
.side-links a { display: flex; align-items: center; gap: 14px; background: var(--sky); border-radius: var(--r); padding: 16px 18px; font-weight: 700; font-size: 15px; transition: background .15s; }
.side-links a:hover { background: var(--sky-2); }
.side-links .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 20px; flex: none; }
.side-links small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.support { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.support b { display: block; font-size: 14px; }
.support p { font-size: 13px; color: var(--sub); }
.support a { color: var(--blue); font-weight: 700; }

/* ── 試験の特長 ───────────────────────────────────────────────── */
.band-sky { background: var(--sky); margin-top: 88px; padding: 80px 0; }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border-radius: 16px; overflow: hidden; }
.feat img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feat img.contain { object-fit: contain; padding: 12px; background: #fff; }
.feat > div { padding: 24px 26px 28px; }
.feat .no { font-family: var(--num); font-size: 36px; font-weight: 800; color: var(--sky-2); line-height: 1; }
.feat h3 { font-size: 20px; font-weight: 900; margin: 8px 0; line-height: 1.5; }
.feat p { font-size: 14px; color: var(--sub); }

/* ── 出題範囲 ─────────────────────────────────────────────────── */
.dom { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dom li { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--r); padding: 20px 18px 22px; background: #fff; }
.dom li:nth-child(even) { border-top-color: var(--cyan); }
.dom .n { font-family: var(--num); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.dom h3 { font-size: 16px; font-weight: 900; margin: 4px 0 8px; line-height: 1.5; min-height: 3em; }
.dom p { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* サンプル問題（ボタンで選択肢を開き、選ぶと正誤と解説を出す） */
.sample { margin-top: 20px; background: var(--blue-ink); color: #fff; border-radius: 16px; padding: 28px 36px; }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sample small { font-family: var(--num); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); }
.sample .stem { font-size: 18px; font-weight: 700; margin-top: 4px; }
.sample-body { margin-top: 24px; display: grid; gap: 10px; }
.sample-body[hidden] { display: none; }
.opt { display: flex; gap: 14px; text-align: left; width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.7; transition: background .15s; }
.opt:hover { background: rgba(255,255,255,.12); }
.opt b { font-weight: 700; color: var(--cyan); flex: none; }
.opt.right { background: #fff; color: var(--ink); border-color: #fff; }
.opt.right b { color: var(--blue); }
.opt.right::after { content: "正答"; margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px; padding: 0 12px; height: 24px; line-height: 24px; }
.opt.wrong { border-color: #ff9a8f; opacity: .6; }
.explain { margin-top: 6px; padding: 14px 18px; border-left: 3px solid var(--cyan); font-size: 14px; color: #d7e2ee; }
.explain[hidden] { display: none; }

/* ── 公式テキスト ─────────────────────────────────────────────── */
.text-sec { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; background: #eef4f9; border-radius: 24px; padding: 0 64px 0 0; overflow: hidden; }
.book-vis { position: relative; align-self: stretch; min-height: 480px; }
.book-vis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.text-body { padding: 48px 0; }
.text-body .label { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--cyan); border-radius: 4px; padding: 2px 10px; }
.text-body h3 { font-size: 30px; font-weight: 900; line-height: 1.45; margin: 12px 0 14px; }
.text-body h3 small { display: block; font-size: 16px; font-weight: 700; color: var(--blue); }
.text-body > p { color: var(--sub); }
.spec { margin-top: 22px; border-top: 1px solid var(--sky-2); }
.spec div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--sky-2); font-size: 14px; }
.spec dt { color: var(--muted); }
.acts { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ── 職種別（タブで1職種ずつ見せる） ──────────────────────────── */
.roles-lead { color: var(--sub); margin: -12px 0 24px; }
.role-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.role-tab { display: flex; align-items: center; gap: 10px; justify-content: center; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 14px 10px; font-weight: 700; font-size: 15px; color: var(--sub); transition: background .15s, color .15s; }
.role-tab svg { font-size: 20px; color: var(--cyan); }
.role-tab:hover { color: var(--blue); background: var(--sky); }
.role-tab[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.role-tab[aria-selected="true"] svg { color: #fff; }
.role-panels { border: 2px solid var(--blue); border-radius: 0 0 20px 20px; overflow: hidden; background: #fff; }
.role-panel { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 460px; }
.role-panel[hidden] { display: none; }
.role-panel figure { position: relative; min-height: 280px; }
.role-panel figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadeImg .5s ease; }
@keyframes fadeImg { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.role-panel figcaption { position: absolute; left: 20px; bottom: 20px; background: rgba(10,44,82,.82); color: #fff; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 6px 14px; }
.role-body { padding: 36px 40px 32px; display: flex; flex-direction: column; }
.role-body .scene { font-size: 13px; font-weight: 700; color: var(--cyan); }
.role-body h3 { font-size: 24px; font-weight: 900; line-height: 1.5; margin: 4px 0 12px; }
.role-body > p { font-size: 15px; color: var(--sub); }
.points { margin-top: 20px; background: var(--sky); border-radius: 12px; padding: 16px 20px; }
.points b { font-size: 13px; color: var(--blue); }
.points li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 500; margin-top: 8px; line-height: 1.6; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; display: grid; place-items: center; }
.role-foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; font-weight: 700; color: var(--blue); border: 1px solid var(--sky-2); border-radius: 999px; padding: 2px 12px; }
.next { flex: none; font-size: 13px; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0; }
.next:hover { text-decoration: underline; }
.note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ── 認定 ─────────────────────────────────────────────────────── */
.cert { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 48px; }
.cert .h2 { margin-bottom: 20px; }
.cert p { color: var(--sub); }
.cert ul { margin-top: 20px; display: grid; gap: 10px; }
.cert li { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.cert li i { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-style: normal; font-size: 13px; flex: none; }
.cert-vis { position: relative; height: 300px; }
.paper { position: absolute; left: 0; top: 10px; width: 78%; aspect-ratio: 1.414; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(10,44,82,.35); padding: 8px; transform: rotate(-3deg); }
.paper > div { height: 100%; border: 2px solid var(--blue); outline: 1px solid var(--cyan); outline-offset: -6px; padding: 22px 26px; display: flex; flex-direction: column; }
.paper small { font-family: var(--num); font-size: 10px; letter-spacing: .3em; color: var(--cyan); font-weight: 700; }
.paper b { font-size: 22px; font-weight: 900; color: var(--blue-ink); margin-top: 6px; line-height: 1.4; }
.paper span { margin-top: auto; font-size: 11px; color: var(--muted); line-height: 1.6; }
.cert-vis .badge { position: absolute; right: 0; bottom: 0; width: 42%; clip-path: circle(35.5% at 50% 47.5%); }

/* ── CTA＋フッター ────────────────────────────────────────────── */
.cta { margin-top: 88px; background: linear-gradient(110deg, var(--blue-deep), var(--blue) 55%, #1a8fc0); color: #fff; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px 0; }
.cta h2 { font-size: 30px; font-weight: 900; line-height: 1.5; }
.cta p { color: rgba(255,255,255,.85); margin-top: 6px; }
.cta .acts { margin-top: 0; flex: none; }
.foot { background: var(--blue-ink); color: #b7c6d6; font-size: 13px; padding: 56px 0 32px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand b { color: #fff; font-size: 17px; }
.foot .brand small { color: #8fa4ba; }
.foot h3 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot .addr { margin-top: 18px; line-height: 1.7; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── 下層ページ（公式テキストなど） ───────────────────────────── */
.crumb { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--blue); }
.crumb a:hover { text-decoration: underline; }
.page-title { margin-top: 28px; padding: 40px 48px; border-radius: 20px; background: linear-gradient(110deg, var(--blue-deep), var(--blue) 60%, #1a8fc0); color: #fff; position: relative; overflow: hidden; }
.page-title::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255,255,255,.08); }
.page-title small { font-family: var(--num); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #9fe6ee; }
.page-title h1 { font-size: 36px; font-weight: 900; line-height: 1.4; margin-top: 4px; }
.page-title p { margin-top: 8px; color: rgba(255,255,255,.88); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
.side-links.row { grid-template-columns: repeat(3, 1fr); }
.sec.first { padding-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 26px; }
.card h3 { font-size: 19px; font-weight: 900; line-height: 1.5; margin: 16px 0 8px; }
.card p { font-size: 14px; color: var(--sub); }
.card .btn { margin-top: 20px; }
.contents li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.contents li:first-child { border-top: 2px solid var(--blue); }
.contents .n { font-family: var(--num); font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: .1em; }
.contents h3 { font-size: 18px; font-weight: 900; }
.contents p { font-size: 14px; color: var(--sub); margin-top: 4px; }
.gallery { display: grid; grid-template-columns: .72fr 1fr; gap: 20px; align-items: stretch; }
.gallery figure { border-radius: 16px; overflow: hidden; background: #eef4f9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .cover { display: grid; place-items: center; padding: 28px; }
.gallery .cover img { width: auto; max-height: 520px; height: auto; object-fit: contain; box-shadow: 0 20px 40px -20px rgba(10,44,82,.4); }

/* ── レスポンシブ ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .head-actions .line { display: none; }
  .gnav ul { overflow-x: auto; scrollbar-width: none; }
  .gnav ul::-webkit-scrollbar { display: none; }
  .gnav li { flex: none; }
  .gnav a { padding: 14px 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
  .dom { grid-template-columns: repeat(3, 1fr); }
  .role-tab { font-size: 13px; padding: 12px 6px; gap: 6px; }
  .role-tab svg { display: none; }
  .text-sec { gap: 36px; padding-right: 36px; }
}

@media (max-width: 820px) {
  .util .wrap > a { display: none; }
  .head .wrap { height: 68px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 10px; }
  .head-actions .btn { padding: 9px 14px; font-size: 13px; }
  .head-actions .arrow { display: none; }
  .gnav a { font-size: 14px; padding: 12px 14px; }

  .sec { padding-top: 64px; }
  .h2 { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .h2 h2 { font-size: 24px; }

  .alert { flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; }
  .alert p { flex-basis: calc(100% - 60px); }
  .kv { min-height: 0; border-radius: 16px; align-items: flex-end; }
  .kv::before { background: linear-gradient(0deg, rgba(8,63,122,.97) 0%, rgba(11,92,173,.85) 45%, rgba(11,92,173,.15) 80%); }
  .kv > img { object-position: 70% center; }
  .kv-copy { padding: 180px 22px 84px; }
  .kv h1 { font-size: 23px; word-break: normal; line-break: strict; }
  .kv p { font-size: 14px; }
  .sched { grid-template-columns: 1fr; margin: -52px 12px 0; }
  .sc { padding: 18px 20px 20px; }
  .sc .date { font-size: 21px; }
  .sc .date small { font-size: 12px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .step:last-child { grid-column: 1 / -1; }
  .ways { grid-template-columns: 1fr; }
  .way { grid-template-columns: 120px 1fr; }
  .way > div { padding: 18px 20px; }
  .way h3 { font-size: 18px; }
  .news-box { grid-template-columns: 1fr; }
  .news li a { grid-template-columns: auto 1fr; gap: 4px 12px; }
  .news li a .t { grid-column: 1 / -1; }
  .band-sky { margin-top: 64px; padding: 56px 0; }
  .feats { grid-template-columns: 1fr; }
  .dom { grid-template-columns: 1fr 1fr; }
  .dom h3 { min-height: 0; }
  .sample { padding: 22px 20px; }
  .sample-head { flex-direction: column; align-items: flex-start; }
  .sample .stem { font-size: 16px; }
  .text-sec { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .book-vis { min-height: 300px; }
  .text-body { padding: 28px 22px 32px; }
  .text-body h3 { font-size: 24px; }
  .role-tabs { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .role-tabs::-webkit-scrollbar { display: none; }
  .role-tab { flex: none; padding: 10px 16px; }
  .role-panels { border-radius: 0 0 16px 16px; }
  .role-panel { grid-template-columns: 1fr; min-height: 0; }
  .role-panel figure { min-height: 220px; }
  .role-body { padding: 24px 22px; }
  .role-body h3 { font-size: 20px; }
  .role-foot { flex-direction: column; align-items: flex-start; }
  .cert { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .cert-vis { height: 230px; }
  .paper { width: 86%; }
  .paper > div { padding: 14px 16px; }
  .paper b { font-size: 16px; }
  .paper span { font-size: 9px; }
  .cert-vis .badge { width: 36%; }
  .cta { margin-top: 64px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; padding: 44px 0; }
  .cta h2 { font-size: 22px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }

  .page-title { padding: 28px 24px; }
  .page-title h1 { font-size: 26px; }
  .card-grid, .card-grid.two, .side-links.row { grid-template-columns: 1fr; }
  .contents li { grid-template-columns: 1fr; gap: 4px; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .brand b { font-size: 14px; }
  .sp-hide { display: none; }
  .head-actions .btn { padding: 8px 12px; font-size: 12px; }
  .dom { grid-template-columns: 1fr; }
  .way { grid-template-columns: 1fr; }
  .way img { height: 180px; object-position: center 25%; }
  .acts .btn, .cta .acts .btn { width: 100%; }
  .acts { flex-direction: column; width: 100%; }
}

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