/* ==========================================================================
   Jobs AI 統一デザインシステム（2026-11-09 0から作り直し）
   正本：docs/DESIGN_SYSTEM.md。全公開ページがこの1ファイルだけで見た目を持つ。
   白 × 濃紺 #13294b × オレンジ #c2410c（アクセントは1色）。本文17px・行高1.75・余白8px単位。
   角丸：入力12px／カード20px／ヒーロー28px。和文はシステムのゴシック（外部フォントを読み込まない）。
   分野ごとの色分けはしない。求職者側・事業者側で同じヘッダー・フッター・ボタンを使う。
   ========================================================================== */

:root {
  --navy: #13294b;
  --navy-2: #1d3a66;
  --navy-3: #2c4c7c;
  --ink: #17212b;
  --sub: #596773;
  --line: #dde2e8;
  --line-strong: #7b8794;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --soft-2: #eaeef3;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fdf1ea;
  --accent-on-dark: #fdba74;
  --r-input: 12px;
  --r-card: 20px;
  --r-hero: 28px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --shadow-1: 0 1px 2px rgba(19, 41, 75, .06), 0 4px 12px rgba(19, 41, 75, .06);
  --shadow-2: 0 2px 4px rgba(19, 41, 75, .06), 0 16px 40px rgba(19, 41, 75, .12);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* ── 基礎 ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; line-break: strict; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 800; line-height: 1.4; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible, .publication-status :focus-visible { outline-color: #fff; }
.vh, .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip, .skip-link, .kd-skip { position: absolute; left: var(--s2); top: -100px; z-index: 200; padding: 12px 18px; border-radius: var(--r-input); background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus, .skip-link:focus, .kd-skip:focus { top: var(--s2); color: #fff; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
.nb { display: inline-block; }
.muted { color: var(--sub); }
.fine { margin-top: var(--s2); color: var(--sub); font-size: 14px; line-height: 1.7; }
.center { text-align: center; }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }

/* ── お知らせバー（事実を1行で。主役にしない） ─────────────────────────── */
.publication-status { margin: 0; padding: 8px 16px; background: var(--navy); color: #fff; font-size: 14px; line-height: 1.6; text-align: center; }
.publication-status.preopen-status { margin: var(--s2) 0 0; border-radius: var(--r-input); background: var(--soft-2); color: var(--navy); text-align: left; }

/* ── 共通ヘッダー（全ページ1系統） ─────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); } }
.site-header-in { position: relative; display: flex; align-items: center; gap: var(--s1); width: min(100% - 24px, 1280px); min-height: 64px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: var(--navy); font-size: 22px; font-weight: 800; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand:hover { color: var(--navy); }
.gnav { display: none; }
.gnav ul, .subnav ul, .menu-panel ul { list-style: none; }
.gnav ul { display: flex; align-items: center; gap: 2px; }
.gnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; }
.gnav a:hover { background: var(--soft); }
.gnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 0 0; }
.gnav-sep { width: 1px; height: 20px; margin: 0 8px; background: var(--line); }
.hdr-cta { white-space: nowrap; }
.menu summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-input); color: var(--navy); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--navy); border-color: var(--navy); color: #fff; }
.menu-panel { position: absolute; top: 100%; left: -12px; right: -12px; max-height: calc(100vh - 72px); overflow-y: auto; padding: var(--s1) var(--s2) var(--s3); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(19, 41, 75, .14); }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel a { display: flex; align-items: center; min-height: 52px; color: var(--navy); font-weight: 700; text-decoration: none; }
.menu-panel a[aria-current="page"] { color: var(--accent-hover); }
.menu-cta { margin-top: var(--s2); }
.menu-cta a { justify-content: center; }
@media (max-width: 479px) {
  .brand { font-size: 20px; }
  .site-header .hdr-cta { min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .menu summary { padding: 0 10px; }
}
@media (max-width: 389px) { .site-header .hdr-cta { display: none; } }
@media (min-width: 1080px) {
  .gnav { display: block; }
  .menu { display: none; }
  .brand { margin-right: var(--s2); }
  .hdr-cta { margin-left: auto; }
}
/* 事業者ページの小見出しナビ（ヘッダーの2段目。様式は共通、項目だけが違う） */
.subnav { border-top: 1px solid var(--line); background: #fff; }
.subnav-in { display: flex; align-items: center; gap: var(--s2); width: min(100% - 24px, 1280px); margin-inline: auto; overflow-x: auto; scrollbar-width: thin; }
.subnav-title { flex: none; margin: 0; padding-right: var(--s2); border-right: 1px solid var(--line); color: var(--sub); font-size: 13px; font-weight: 700; white-space: nowrap; }
.subnav ul { display: flex; gap: 2px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.subnav a:hover { background: var(--soft); }
.subnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }

/* ── ボタン（主CTAはオレンジ1つ。副は白地に濃紺） ─────────────────────── */
.btn, a.primary, button.primary, a.secondary, button.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--r-input); font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn-primary, a.primary, button.primary { background: var(--accent); color: #fff; }
.btn-primary:hover, a.primary:hover, button.primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary, a.secondary, button.secondary { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover, a.secondary:hover, button.secondary:hover { background: var(--soft); color: var(--navy); }
.btn-on-dark { background: #fff; color: var(--navy); }
.btn-on-dark:hover { background: var(--accent-soft); color: var(--navy); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn .arrow, .arrow { display: inline-block; width: 1em; text-align: center; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--navy-2); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); align-items: center; margin-top: var(--s3); }

/* ── 見出し・セクション ───────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--s2); color: var(--sub); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--accent); }
.eyeline, .kicker { display: none; } /* 旧マークアップの英字ラベルは表示しない（日本語見出しが主役） */
.section { padding: var(--s8) 0; }
.section-soft { background: var(--soft); }
.section-tight { padding-top: 0; }
.section-navy { background: var(--navy); color: #e8edf4; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: var(--s4); }
.section-head h2 { font-size: clamp(26px, 5.6vw, 38px); line-height: 1.35; }
.section-head p { margin-top: var(--s1); color: var(--sub); font-size: 17px; }
.section-navy .section-head p { color: #c9d3e0; }
@media (min-width: 960px) { .section { padding: var(--s12) 0; } }

/* ── パンくず ─────────────────────────────────────────────────────────── */
.crumbs ol, .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--s1); padding: 0; color: var(--sub); font-size: 14px; list-style: none; }
.crumbs li + li::before, .breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a, .breadcrumbs a { display: inline-block; padding: 10px 0; color: var(--sub); }

/* ── ヒーロー ─────────────────────────────────────────────────────────── */
.hero { position: relative; padding: var(--s4) 0 var(--s6); background: linear-gradient(180deg, var(--soft) 0%, #fff 78%); }
.hero h1 { font-size: clamp(30px, 7.6vw, 60px); line-height: 1.28; letter-spacing: .005em; }
.hero-lead { margin-top: var(--s2); color: var(--sub); font-size: clamp(17px, 2.4vw, 20px); line-height: 1.7; }
.hero-grid { display: grid; gap: var(--s4); }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-hero); box-shadow: var(--shadow-2); }
.hero-photo figcaption { margin-top: var(--s1); color: var(--sub); font-size: 13px; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-top: var(--s3); }
.hero-sub-note { flex-basis: 100%; color: var(--sub); font-size: 14px; }
[data-field="kaigo"] .hero-photo img { object-position: 72% 40%; }
[data-field="ryoiku"] .hero-photo img { object-position: 50% 45%; }
[data-field="medical"] .hero-photo img { object-position: 50% 30%; }
[data-field="nursery"] .hero-photo img { object-position: 55% 40%; }
@media (min-width: 960px) {
  .hero { padding: var(--s6) 0 var(--s8); }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: var(--s6); }
  .hero-field .hero-photo img { aspect-ratio: 4 / 3.4; }
}

/* ── 入口：4つの四角（写真つき）。押すとその分野の求人一覧へ ───────────────── */
.picker { margin-top: var(--s4); }
.picker-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.picker-title { font-size: 20px; }
.picker-title small { display: block; margin-top: 2px; color: var(--sub); font-size: 14px; font-weight: 400; }
.picker-area { display: grid; gap: 4px; flex: 1 1 260px; max-width: 360px; }
.picker-area label { color: var(--navy); font-size: 14px; font-weight: 700; }
.squares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.square { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-card); background: var(--navy); color: #fff; text-align: left; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .18s, box-shadow .18s; }
.square img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s; }
.square::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 41, 75, 0) 38%, rgba(19, 41, 75, .86) 100%); }
.square-text { position: absolute; left: 14px; right: 44px; bottom: 12px; z-index: 1; display: grid; gap: 2px; }
.square-name { color: #fff; font-size: clamp(22px, 6vw, 30px); font-weight: 800; line-height: 1.2; }
.square-sub { color: #e3e9f1; font-size: 13px; line-height: 1.45; }
.square-go { position: absolute; right: 12px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); }
.square-go::before { content: ""; width: 8px; height: 8px; border-top: 2.5px solid #fff; border-right: 2.5px solid #fff; transform: translateX(-1px) rotate(45deg); }
.square:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: #fff; }
.square:hover img { transform: scale(1.04); }
.square[aria-current="page"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.square[aria-current="page"] .square-sub::after { content: "（いま見ている分野）"; }
.picker-note { margin-top: var(--s2); color: var(--sub); font-size: 14px; }
@media (min-width: 720px) {
  .squares { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
  .square { aspect-ratio: 4 / 5; }
}
/* 分野トップ用の小さな四角（4分野の切り替え） */
.squares-mini .square { aspect-ratio: 16 / 10; }
.squares-mini .square-name { font-size: 20px; }
.squares-mini .square-sub { display: none; }
@media (min-width: 720px) { .squares-mini .square { aspect-ratio: 16 / 10; } }

/* ── 入力・検索カード ─────────────────────────────────────────────────── */
.control, .f select, .f input, .results-search input, .results-search select, .search-form select, .search-form input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-input); background: #fff; color: var(--ink); font-size: 17px; }
select.control, .f select, .results-search select, .search-form select { padding-right: 44px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2313294b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.control:hover, .f select:hover, .f input:hover { border-color: var(--navy); }
.finder { margin-top: var(--s3); padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-2); }
.finder-fields { display: grid; gap: var(--s2); margin-bottom: var(--s2); }
.finder-row { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.finder-label { color: var(--navy); font-size: 15px; font-weight: 700; }
@media (min-width: 560px) { .finder-fields { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; }
.chips a:hover { border-color: var(--navy); }
.chips-label { margin-top: var(--s2); color: var(--sub); font-size: 14px; }
.chips-label + .chips { margin-top: 6px; }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--s1); }
.inline-form .control { flex: 1 1 220px; width: auto; }
.inline-form .btn { flex: 0 0 auto; }
@media (max-width: 559px) { .inline-form .btn { flex-basis: 100%; } }

/* ── 資格（ライセンス）タグと「資格から探す」 ───────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.5; }
.tag-license { border-color: #c7d1de; background: #fff; }
.tag-license::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 2px; background: var(--navy); transform: rotate(45deg); }
.licenses { display: grid; gap: 12px; list-style: none; }
.license { display: grid; gap: var(--s1); padding: var(--s2) var(--s3) var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.license-name { font-size: 19px; }
.license-name small { margin-left: 6px; color: var(--sub); font-size: 13px; font-weight: 700; }
.license-fields { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; }
.license-fields a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--navy); border-radius: var(--r-input); color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; }
.license-fields a::after { content: "›"; color: var(--accent); font-size: 18px; line-height: 1; }
.license-fields a:hover { background: var(--navy); color: #fff; }
@media (min-width: 720px) { .licenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .licenses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 応募の流れ・安心ポイント（トップだけに置く） ───────────────────────── */
.steps { display: grid; gap: 12px; list-style: none; counter-reset: step; }
.step { position: relative; padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 17px; font-weight: 800; }
.step h3 { margin-top: 12px; font-size: 19px; }
.step p { margin-top: 4px; color: var(--sub); font-size: 16px; }
.step-tag { display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; font-weight: 700; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.points { display: grid; gap: 12px; list-style: none; }
.point { padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.point h3 { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; }
.point h3::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.point p { margin-top: 6px; color: var(--sub); font-size: 16px; }
@media (min-width: 720px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* AI診断の入口（分野を選んで始める） */
.ai-panel { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); border-radius: var(--r-hero); background: var(--navy); color: #e8edf4; }
.ai-panel h2 { color: #fff; font-size: clamp(24px, 5vw, 34px); }
.ai-panel p { color: #c9d3e0; }
.ai-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); list-style: none; }
.ai-fields a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 10px 16px; border-radius: var(--r-input); background: #fff; color: var(--navy); font-weight: 800; text-decoration: none; }
.ai-fields a::after { content: "›"; color: var(--accent); font-size: 22px; line-height: 1; }
.ai-fields a:hover { background: var(--accent-soft); }
.ai-panel .fine { color: #c9d3e0; }
.ai-fields-label { margin-bottom: 12px; }
.ai-panel .ai-fields-label strong { color: #fff; }
@media (min-width: 960px) { .ai-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: var(--s6); } .ai-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 分野トップの探し方 ───────────────────────────────────────────────── */
.howto { display: grid; gap: var(--s2); }
.howto-block { padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.howto-block h3 { margin-bottom: 12px; font-size: 19px; }
.howto-block > p { margin: -4px 0 12px; color: var(--sub); font-size: 15px; }
.howto-wide { grid-column: 1 / -1; }
@media (min-width: 960px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-grid, .pref-links { display: grid; gap: var(--s1); list-style: none; }
.link-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pref-links { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.link-grid a, .pref-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.45; text-decoration: none; transition: border-color .15s, background-color .15s; }
.link-grid a::after, .pref-links a::after { content: "›"; flex: none; color: var(--accent); font-size: 20px; line-height: 1; }
.link-grid a:hover, .pref-links a:hover { border-color: var(--navy); background: var(--soft); }
.tips { display: grid; gap: 12px; margin-top: var(--s3); list-style: none; }
.tip { padding: var(--s2) 20px; background: #fff; border-left: 4px solid var(--accent); border-radius: 0 var(--r-input) var(--r-input) 0; }
.tip h3 { font-size: 17px; }
.tip p { margin-top: 4px; color: var(--sub); font-size: 15px; }
@media (min-width: 960px) { .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* エリア（JSなしでは全地域を表示。JSがあれば地域タブ） */
.area-form { margin-bottom: 20px; }
.region-tablist { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s2); }
.region-tablist[hidden] { display: none; }
.region-tablist [role="tab"] { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; cursor: pointer; }
.region-tablist [role="tab"][aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.region-panel h3 { margin: 20px 0 var(--s1); font-size: 16px; }
.region-tablist + .region-panel h3 { margin-top: 0; }
.is-tabbed .region-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 見本（デモ）表示：架空であることを常に明示 ───────────────────────────── */
.sample-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); padding: var(--s2) 20px; background: #fff; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); color: var(--ink); font-size: 15px; }
.sample-note p { flex: 1 1 280px; }
.badge-sample, .demo-chip, .rk-chip-demo { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid #b9c3d1; border-radius: 8px; background: #e8ecf2; color: var(--navy); font-size: 13px; font-weight: 800; white-space: nowrap; }
.demo-banner { margin: 0; padding: 10px 16px; background: var(--soft-2); border-bottom: 1px solid var(--line); color: var(--navy); font-size: 14px; line-height: 1.6; text-align: center; }
.demo-banner strong { margin-right: 8px; }

/* ── よくある質問 ─────────────────────────────────────────────────────── */
.faq-list { max-width: 840px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; min-height: 56px; padding: var(--s2) 44px var(--s2) 0; color: var(--navy); font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; top: 50%; right: 10px; width: 11px; height: 11px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq-list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-list details > p { margin: 0 0 18px; }

/* ── 共通フッター ─────────────────────────────────────────────────────── */
.site-footer { padding: var(--s8) 0 var(--s3); background: var(--navy); color: #e6ebf2; font-size: 15px; }
.footer-grid { display: grid; gap: var(--s4); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand span { color: var(--accent-on-dark); }
.footer-brand p { margin-top: 6px; color: #c9d2de; font-size: 14px; }
.site-footer h2 { margin: 0 0 6px; color: #fff; font-size: 15px; }
.site-footer ul { list-style: none; }
.site-footer a { display: inline-block; padding: 9px 0; color: #e6ebf2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid rgba(255, 255, 255, .18); color: #c9d2de; font-size: 13px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); } }

/* ==========================================================================
   事業者ページ（トップ・料金・掲載イメージ・プラン詳細）
   ========================================================================== */
.biz-hero .hero-grid { align-items: center; }
.biz-points { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); list-style: none; }
.biz-points li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; }
.biz-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.page-title { padding: var(--s5) 0 var(--s4); background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); }
.page-title h1 { font-size: clamp(30px, 6.4vw, 48px); line-height: 1.3; }
.page-title p { margin-top: var(--s1); max-width: 760px; color: var(--sub); font-size: 18px; }

/* 料金の注記（確定文言。帯として独立させ、ヘッダーに重ねない） */
.price-note { padding: var(--s2) 20px; border: 1px solid #f3d3c1; border-radius: var(--r-card); background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.75; }

/* キャンペーン（濃紺の面） */
.campaign { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); border-radius: var(--r-hero); background: var(--navy); color: #e8edf4; }
.campaign h2 { color: #fff; font-size: clamp(22px, 4.6vw, 30px); }
.campaign p { margin-top: var(--s1); }
.campaign strong { color: var(--accent-on-dark); }
.campaign ul { display: grid; gap: 6px; margin-top: var(--s2); list-style: none; }
.campaign li { display: flex; gap: 10px; }
.campaign li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; background: var(--accent-on-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%2313294b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.campaign small { display: block; margin-top: var(--s2); color: #c9d3e0; font-size: 13px; line-height: 1.7; }
.campaign-price { align-self: center; padding: var(--s3); border-radius: var(--r-card); background: #fff; color: var(--ink); text-align: center; }
.campaign-price .plan-name { color: var(--navy); font-size: 15px; font-weight: 800; }
.campaign-price s { display: block; margin-top: 4px; color: var(--sub); font-size: 14px; }
.campaign-price b { display: block; color: var(--accent); font-size: 44px; line-height: 1.2; }
.campaign-price p { color: var(--sub); font-size: 13px; }
@media (min-width: 960px) { .campaign { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); padding: var(--s6); } }

/* 料金カード */
.price-cards { display: grid; gap: var(--s2); list-style: none; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: var(--s4) var(--s3) var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.price-card.is-featured { border: 2px solid var(--navy); box-shadow: var(--shadow-2); }
.price-flag { position: absolute; top: -14px; left: var(--s3); padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; }
.price-card h3 { font-size: 26px; letter-spacing: .04em; }
.price-card .tagline { color: var(--sub); font-size: 15px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price b { color: var(--navy); font-size: 36px; line-height: 1.2; letter-spacing: .01em; }
.price small { color: var(--sub); font-size: 14px; font-weight: 700; }
.price-tax { margin-top: -8px; color: var(--sub); font-size: 14px; }
.price-term { padding-top: 10px; border-top: 1px dashed var(--line); }
.price-term .price b { font-size: 22px; }
.price-card ul { display: grid; gap: 6px; margin: 4px 0 0; list-style: none; }
.price-card li { display: flex; gap: 8px; font-size: 15px; }
.price-card li::before { content: "○"; flex: none; color: var(--navy); font-weight: 800; }
.price-card .btn { margin-top: auto; }
@media (min-width: 960px) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }

/* 比較表（狭い画面は横スクロール） */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.cmp { width: 100%; min-width: 600px; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp thead th { position: sticky; top: 0; background: var(--navy); color: #fff; font-size: 15px; letter-spacing: .04em; }
.cmp thead th:first-child { text-align: left; }
.cmp tbody th { color: var(--navy); font-weight: 700; text-align: left; }
.cmp tbody tr:nth-child(even) { background: var(--soft); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--navy); font-weight: 800; }
.cmp .no { color: var(--sub); }
.cmp .is-featured { background: rgba(19, 41, 75, .05); }
.table-note { margin-top: var(--s1); color: var(--sub); font-size: 14px; }

/* 一覧の表示順（段の図） */
.tiers { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); border-radius: var(--r-hero); background: var(--soft); }
.tiers-copy p { margin-top: var(--s1); color: var(--sub); }
.tiers-copy ol { display: grid; gap: 8px; margin-top: var(--s2); list-style: none; }
.tiers-copy li { display: flex; gap: 10px; }
.tiers-copy li b { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; }
.tiers-copy small { display: block; margin-top: var(--s2); color: var(--sub); font-size: 14px; }
.tier-figure { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; }
.tier-label { color: var(--navy); font-size: 13px; font-weight: 800; line-height: 1.4; }
.tier-label b { display: block; font-size: 15px; letter-spacing: .04em; }
.tier-row { display: grid; gap: 8px; }
.tier-1 .tier-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tier-2 .tier-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tier-3 .tier-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tier-card { position: relative; display: grid; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tier-card i { display: block; height: 6px; border-radius: 3px; background: var(--soft-2); }
.tier-card i.ph { height: 44px; border-radius: 6px; background: linear-gradient(135deg, #c9d3e0, #e3e8ef); }
.tier-1 .tier-card i.ph { height: 64px; }
.tier-card em { position: absolute; top: 6px; right: 6px; padding: 0 6px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
@media (min-width: 960px) { .tiers { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding: var(--s6); } }

/* 特長カード・掲載までの流れ */
.feature-grid { display: grid; gap: 12px; list-style: none; }
.feature { padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 6px; color: var(--sub); font-size: 16px; }
.feature-no { display: block; margin-bottom: 8px; color: var(--accent); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 業種ポータル（写真の四角を流用） */
.portal-squares .square { aspect-ratio: 4 / 3; }

/* 掲載イメージ（プラン別の見本カード） */
.showcase { display: grid; gap: var(--s3); list-style: none; }
.show-card { display: grid; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.show-card.is-featured { border: 2px solid var(--navy); box-shadow: var(--shadow-2); }
.show-shot { position: relative; display: block; background: var(--soft); }
.show-shot img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top center; }
.show-shot .plan-pill { position: absolute; top: 12px; left: 12px; }
.show-body { display: flex; flex-direction: column; gap: 10px; padding: var(--s3); }
.show-body h3 { font-size: 24px; letter-spacing: .04em; }
.show-body h3 small { display: block; margin-top: 2px; color: var(--sub); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.show-body p { color: var(--sub); font-size: 15px; }
.show-body ul { display: grid; gap: 6px; list-style: none; }
.show-body li { display: flex; gap: 8px; font-size: 15px; }
.show-body li::before { content: "○"; flex: none; color: var(--navy); font-weight: 800; }
.show-more { font-size: 14px; }
/* 写真の量をそのまま見せる（PREMIUM 10枚／PLUS 3枚／FREE 1枚。高さをそろえ、枚数の差だけが見えるように） */
.qty { display: grid; gap: 4px; height: 200px; margin: 0; padding: 8px; background: var(--soft); list-style: none; }
.qty li { min-width: 0; min-height: 0; overflow: hidden; border-radius: 8px; background: var(--soft-2); }
.qty img { width: 100%; height: 100%; object-fit: cover; }
.qty-premium { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.qty-premium li:first-child { grid-column: span 3; grid-row: span 2; }
.qty-plus { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.qty-plus li:first-child { grid-row: span 2; }
.qty-free { grid-template-columns: 1fr; }
@media (min-width: 960px) { .qty { height: 240px; } }
.plan-pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.plan-pill.is-plus { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.plan-pill.is-free { background: var(--soft-2); color: var(--navy); }
@media (min-width: 960px) { .showcase { grid-template-columns: 1.25fr 1fr 1fr; align-items: start; } .showcase.is-two { grid-template-columns: 1.25fr 1fr; } }

/* サンプル画面（Analytics。数値は架空と明記） */
.mock { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); border-radius: var(--r-hero); background: var(--navy); color: #e8edf4; }
.mock h2 { color: #fff; font-size: clamp(22px, 4.6vw, 30px); }
.mock p { margin-top: var(--s1); color: #c9d3e0; }
.mock-ui { display: grid; gap: 12px; padding: var(--s2); border-radius: var(--r-card); background: #fff; color: var(--ink); }
.mock-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mock-stats div { padding: 10px; border-radius: 10px; background: var(--soft); }
.mock-stats small { display: block; color: var(--sub); font-size: 12px; }
.mock-stats b { color: var(--navy); font-size: 22px; }
.mock-bars { display: flex; align-items: end; gap: 6px; height: 96px; padding: 8px; border-radius: 10px; background: var(--soft); }
.mock-bars i { flex: 1; height: 60%; border-radius: 4px 4px 0 0; background: var(--navy-3); }
.mock-bars i:nth-child(1), .mock-bars i:nth-child(3) { height: 40%; }
.mock-bars i:nth-child(2) { height: 50%; }
.mock-bars i:nth-child(6), .mock-bars i:nth-child(7) { height: 70%; }
.mock-bars i:nth-child(8), .mock-bars i:nth-child(9), .mock-bars i:nth-child(11) { height: 80%; }
.mock-bars i:nth-child(10) { height: 90%; }
.mock-bars i:nth-child(12) { height: 100%; background: var(--accent); }
@media (min-width: 720px) { .mock-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .mock { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; padding: var(--s6); } }

/* 締めの帯 */
.closing { padding: var(--s5) var(--s3); border-radius: var(--r-hero); background: var(--soft); text-align: center; }
.closing h2 { font-size: clamp(22px, 4.8vw, 32px); }
.closing .actions { justify-content: center; }

/* ==========================================================================
   求人一覧（Worker が描画）・AI診断
   ========================================================================== */
.worker-main { padding: var(--s3) 0 var(--s8); }
.worker-main > * { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.worker-main > .shell { width: auto; }
.page-head, .page-intro { margin-top: var(--s2); margin-bottom: var(--s3); }
.page-head h1, .page-intro h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.3; }
.page-head > p, .page-intro > p { margin-top: var(--s1); color: var(--sub); }
.list-layout { display: grid; gap: var(--s3); }
@media (min-width: 1080px) { .list-layout { grid-template-columns: 340px minmax(0, 1fr); align-items: start; } .list-layout .search-panel { position: sticky; top: 88px; } }
.search-panel, .results-search, .medical-refine { padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); }
.search-panel h2 { font-size: 19px; }
.search-panel .search-heading p { margin-top: 4px; color: var(--sub); font-size: 14px; }
.search-form, .results-search, .medical-filter-fields { display: grid; gap: 12px; margin-top: var(--s2); }
.results-search { margin-bottom: var(--s3); }
.search-form label, .results-search label, .f { display: grid; gap: 6px; color: var(--navy); font-size: 15px; font-weight: 700; }
.f > span { color: var(--navy); }
.search-form button, .results-search button { width: 100%; }
@media (min-width: 720px) and (max-width: 1079px) { .search-form, .medical-filter-fields { grid-template-columns: 1fr 1fr; } .search-form button { grid-column: 1 / -1; } }
.medical-refine summary, .medical-role-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; color: var(--navy); font-weight: 800; cursor: pointer; list-style: none; }
.medical-refine summary::-webkit-details-marker, .medical-role-filter summary::-webkit-details-marker { display: none; }
.medical-refine summary strong, .medical-role-filter summary strong { color: var(--sub); font-size: 14px; }
.medical-role-filter { margin-bottom: 12px; padding: 8px var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.medical-role-filter div div { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 12px; }
.medical-role-filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-weight: 700; text-decoration: none; }
.medical-role-filter a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.medical-clear { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--navy-2); font-weight: 700; }
.medical-count, .results-count, .list-count { margin: var(--s2) 0 var(--s1); color: var(--navy); font-weight: 800; }
.results-count strong { font-size: 22px; }
.medical-note { margin-bottom: var(--s2); color: var(--sub); font-size: 14px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: var(--s2); }
.section-heading h2 { font-size: 22px; }
.section-heading p { color: var(--sub); font-weight: 700; }

/* 求人カード（給与・勤務地・雇用形態を明確な階層で） */
.job-grid, .card-grid, .match-list { display: grid; gap: 12px; margin-bottom: var(--s2); }
.job-card { display: grid; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow-1); }
.job-card-photo { display: block; background: var(--soft); }
.job-card-photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.job-card-body { display: grid; gap: 4px; padding: var(--s2) 20px 20px; }
.job-card h2, .job-card h3 { order: 0; font-size: 19px; line-height: 1.5; }
.job-card h2 a, .job-card h3 a { color: var(--navy); text-decoration: none; }
.job-card h2 a::after, .job-card h3 a::after { content: ""; }
.job-card h2 a:hover, .job-card h3 a:hover { text-decoration: underline; }
.job-card-area { color: var(--sub); font-size: 14px; font-weight: 700; }
.job-card .job-pay { color: var(--ink); font-size: 17px; font-weight: 800; }
.job-card p { font-size: 15px; }
.job-card .tags { margin-top: 6px; }
.job-card.is-featured { border: 2px solid var(--navy); }
.listing-priority { justify-self: start; display: inline-flex; padding: 1px 8px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.listing-priority.listing-showcase { background: #e8ecf2; color: var(--navy); border: 1px solid #b9c3d1; }
.au-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.medical-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; list-style: none; }
.medical-tags li { padding: 2px 10px; border-radius: 8px; background: var(--soft); color: var(--navy); font-size: 13px; font-weight: 700; }
.rk-chips { display: flex; gap: 6px; }
.rk-blurb { color: var(--sub); }
.rk-more { color: var(--accent-hover); font-size: 14px; font-weight: 800; }
@media (min-width: 720px) {
  .job-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-card.is-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: var(--s3) 0; }
.pagination span { color: var(--sub); font-weight: 700; }
/* 0件・空の状態は空と分かる形で */
.empty-state, .field-empty, .reference-jobs-empty, .empty, .is-empty { padding: var(--s4) var(--s3); border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); background: var(--soft); text-align: center; }
.empty-state h3, .field-empty h2, .reference-jobs-empty h2 { font-size: 19px; }
.empty-state p, .field-empty p, .reference-jobs-empty p { margin-top: 6px; color: var(--sub); }
.empty-state .btn, .field-empty a { margin-top: 12px; }
/* 一覧の応募についての注記 */
.apply-note { display: grid; gap: 8px; margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-card); background: var(--soft); }
.apply-note h2 { font-size: 18px; }
.apply-note p { color: var(--sub); font-size: 15px; }
.status-chip { justify-self: start; display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: 13px; font-weight: 800; }

/* AI診断（入口・質問・結果） */
.ai-step, .rk-ai, .rk-ai-step { max-width: 760px; margin: var(--s3) auto 0; padding: var(--s4) var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-hero); box-shadow: var(--shadow-2); }
.ai-step h1, .rk-ai h1, .rk-ai-step h1 { font-size: clamp(24px, 5vw, 34px); line-height: 1.4; }
.ai-step > p { margin-top: var(--s1); color: var(--sub); }
.ai-step form { margin-top: var(--s3); }
.ai-step progress, .ai-progress { width: 100%; height: 10px; margin: 8px 0 var(--s2); border: 0; border-radius: 999px; background: var(--soft-2); accent-color: var(--accent); }
.ai-step progress::-webkit-progress-bar { border-radius: 999px; background: var(--soft-2); }
.ai-step progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
.ai-step progress::-moz-progress-bar { border-radius: 999px; background: var(--accent); }
.ai-options { display: grid; gap: 8px; margin: var(--s2) 0; padding: 0; border: 0; }
.ai-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r-input); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.ai-option:hover { border-color: var(--navy); }
.ai-option input { width: 22px; height: 22px; accent-color: var(--navy); }
.ai-option:has(input:checked) { border-color: var(--navy); background: var(--soft); box-shadow: inset 0 0 0 1px var(--navy); }
.ai-select select { width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-input); background: #fff; }
.ai-privacy { margin-top: var(--s2); color: var(--sub); font-size: 14px; }
.ai-start-list { display: grid; gap: 10px; margin: var(--s3) 0 0; list-style: none; }
.ai-start-list li { display: flex; gap: 12px; }
.ai-start-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ai-start-actions { display: grid; gap: 12px; margin-top: var(--s3); }
.ai-start-actions .text-link { justify-content: center; }
.match-result, .match-card { padding: var(--s3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.match-result h2 { font-size: 20px; }
.match-result h2 a { color: var(--navy); }
.match-result h3 { margin-top: 12px; font-size: 16px; }
.match-result ul, .match-why, .match-confirm { display: grid; gap: 4px; margin-top: 6px; padding-left: 1.2em; }
.match-score { display: inline-flex; margin-top: 8px; padding: 2px 12px; border-radius: 999px; background: var(--soft-2); color: var(--navy); font-weight: 800; }
.match-note { color: var(--sub); font-size: 14px; }

.ai-count, .rk-ai-step { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--sub); font-size: 14px; font-weight: 700; }
.rk-ai-help { margin-top: var(--s1); color: var(--sub); }
.rk-ai-actions { margin-top: var(--s2); }
.rk-ai form button, .ai-step form > button { min-width: 200px; }
.ai-again, .actions.ai-again { display: flex; flex-wrap: wrap; gap: var(--s1); margin: var(--s3) 0; }
.rk-secondary { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border: 2px solid var(--navy); border-radius: var(--r-input); color: var(--navy); font-weight: 700; text-decoration: none; }
.rk-secondary:hover { background: var(--soft); }
.match-cards { display: grid; gap: var(--s2); }
.match-card { display: grid; gap: var(--s2); overflow: hidden; padding: 0; }
.match-card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.match-card-main { display: grid; gap: 8px; padding: 0 var(--s3) var(--s3); }
.match-card:not(:has(.match-card-photo)) .match-card-main { padding-top: var(--s3); }
.match-card h3 { font-size: 20px; }
.match-card h3 a { color: var(--navy); }
.match-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-chip, .relax-chip { display: inline-flex; padding: 2px 10px; border-radius: 8px; background: var(--soft-2); color: var(--navy); font-size: 13px; font-weight: 800; }
.match-card-employer { color: var(--sub); font-size: 15px; }
.match-card .match-score b { font-size: 20px; }
.match-why section { margin-top: 8px; }
.match-why h4 { color: var(--navy); font-size: 15px; }
.match-why ul { padding-left: 1.2em; }
.match-card .primary { justify-self: start; }
@media (min-width: 960px) { .match-card { grid-template-columns: 300px minmax(0, 1fr); } .match-card-photo img { height: 100%; aspect-ratio: auto; } .match-card-main { padding: var(--s3); } }
/* 医療の検索（医師の働き方・勤務日カレンダー） */
.medical-doctor-mode { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.medical-doctor-mode a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 700; text-decoration: none; }
.medical-doctor-mode a[aria-current="page"] { background: var(--navy); color: #fff; }
.medical-role-filter section h2 { margin-top: 8px; font-size: 14px; color: var(--sub); }
.medical-checks { margin: 0; padding: 0; border: 0; }
.medical-checks legend, .medical-checks summary { color: var(--navy); font-size: 15px; font-weight: 700; cursor: pointer; }
.medical-checks div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.medical-checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.medical-checks input { width: 18px; height: 18px; accent-color: var(--navy); }
.medical-calendar { margin-bottom: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.medical-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.medical-calendar-head h2 { font-size: 20px; }
.medical-calendar-head a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-input); color: var(--navy); font-weight: 800; text-decoration: none; }
.medical-calendar-note { margin: 8px 0 12px; color: var(--sub); font-size: 14px; }
.medical-calendar table { width: 100%; table-layout: fixed; text-align: center; }
.medical-calendar th { padding: 4px 0; color: var(--sub); font-size: 13px; }
.medical-calendar td { padding: 2px; }
.medical-calendar td a, .medical-calendar td .is-empty { display: grid; place-items: center; min-height: 44px; padding: 2px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; }
.medical-calendar td a { background: var(--soft); color: var(--navy); text-decoration: none; }
.medical-calendar td a small { display: block; color: var(--accent-hover); font-size: 11px; }
.medical-calendar td a[aria-current="date"] { background: var(--navy); color: #fff; }
.medical-calendar td a[aria-current="date"] small { color: var(--accent-on-dark); }
.medical-calendar td .is-empty { color: #9aa5b1; }
.medical-date { color: var(--navy); font-size: 14px; font-weight: 700; }

/* 公開側の Worker 画面（企業登録・ログイン・応募フォーム・求人詳細の事業所紹介） */
.console-form, .jd { width: 100%; }
.console-form { max-width: 720px; margin: var(--s3) auto 0; padding: var(--s4) var(--s3); border: 1px solid var(--line); border-radius: var(--r-hero); background: #fff; box-shadow: var(--shadow-1); }
.console-form h1, .jd h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.35; }
.console-form > p, .console-form form > p { margin-top: var(--s1); }
.console-form form, .jd form { display: grid; gap: var(--s2); margin-top: var(--s3); }
.console-form label, .jd form label { display: grid; gap: 6px; color: var(--navy); font-size: 15px; font-weight: 700; }
.console-form label small, .jd form label small { color: var(--accent-hover); font-size: 12px; font-weight: 800; }
.console-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .console-form select, .console-form textarea,
.jd form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .jd form select, .jd form textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-input); background: #fff; color: var(--ink); font-size: 17px; }
.console-form textarea, .jd form textarea { min-height: 140px; }
.console-form .check, .jd form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink); }
.console-form .check input, .jd form .check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy); }
.form-grid { display: grid; gap: var(--s2); }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.muted { color: var(--sub); font-size: 15px; }
.notice, [role="status"]#form-status:not(:empty) { padding: 12px 16px; border-radius: var(--r-input); background: var(--soft-2); color: var(--navy); }
.badge { display: inline-flex; padding: 2px 10px; border-radius: 8px; background: var(--soft-2); color: var(--navy); font-size: 13px; font-weight: 800; }
.panel { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.panel h2 { font-size: 20px; margin-bottom: 12px; }
.panel dl { display: grid; gap: 4px 16px; margin: 0; }
.panel dt { color: var(--navy); font-weight: 700; }
.panel dd { margin: 0 0 8px; }
.facility-profile h3 { margin-top: var(--s2); font-size: 17px; }
.facility-description { line-height: 1.85; }
.facility-staff { display: grid; gap: 6px; padding-left: 1.2em; }
.facility-qa dt { margin-top: 8px; }
.facility-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s2); }
.facility-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.jd-photos figure { margin: 0; }
.jd-aside .card .primary, .jd-aside .card .text-link { justify-content: center; }

/* 旧殻から来る文書ページ・汎用の本文 */
.shell { width: min(100% - 32px, var(--wrap)); margin-inline: auto; padding: var(--s4) 0 var(--s8); }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(28px, 6vw, 40px); }
.prose h2 { margin-top: var(--s5); font-size: 24px; }
.prose h3 { margin-top: var(--s3); font-size: 19px; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: var(--s2); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose table { width: 100%; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--navy); }

/* 法務・運営者ページ（本文はそのまま。見た目の系統だけ合わせる） */
.doc-main { max-width: 860px; }
.doc-main .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--sub); font-size: 14px; }
.doc-main .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sub); }
.doc-main .page-head { margin: var(--s2) 0 var(--s3); }
.doc-main .page-head h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.35; }
.doc-main .page-head p { margin-top: var(--s1); color: var(--sub); }
.legal-meta { color: var(--sub); font-size: 14px; }
.legal-toc { margin-top: var(--s3); padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--soft); }
.legal-toc ol, .legal-toc ul { display: grid; gap: 4px; padding-left: 1.4em; }
.legal-toc a { display: inline-block; padding: 4px 0; }
.legal-section, .company-section { margin-top: var(--s5); }
.legal-section h2, .company-section h2 { padding-bottom: 8px; border-bottom: 2px solid var(--soft-2); font-size: 22px; }
.legal-section h3 { margin-top: var(--s3); font-size: 18px; }
.legal-section p, .legal-section ul, .legal-section ol, .company-section p, .company-section ul { margin-top: 12px; }
.legal-section ul, .legal-section ol, .company-list { padding-left: 1.4em; }
.legal-callout, .company-banner { margin-top: var(--s3); padding: var(--s2) 20px; border-left: 4px solid var(--navy); border-radius: 0 var(--r-input) var(--r-input) 0; background: var(--soft); }
.legal-table-wrap { margin-top: var(--s2); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; min-width: 560px; font-size: 15px; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--navy); color: #fff; }
.legal-table tbody th { background: var(--soft); color: var(--navy); }
.company-dl { display: grid; margin: var(--s3) 0 0; border-top: 1px solid var(--line); }
.company-dl > div { display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company-dl dt { color: var(--navy); font-weight: 700; }
.company-dl dd { margin: 0; }
.company-pending { display: inline-flex; padding: 2px 10px; border-radius: 8px; background: var(--soft-2); color: var(--sub); font-size: 14px; font-weight: 700; }
.company-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: var(--s3); }
.company-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ==========================================================================
   デモ事業所ページ（FREE／PLUS／PREMIUM）と求人詳細
   field-demo.mjs が出力するマークアップ。落差は「量」で付ける（色や装飾で水増ししない）
   ========================================================================== */
.fac { padding-bottom: var(--s8); }
.fac-planbar { padding: 10px 0; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.fac-planbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.fac-planbar ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; color: var(--sub); }
.fac-planbar b { color: var(--navy); }
.fac-head { padding: var(--s4) 0 var(--s3); }
.fac-head h1 { font-size: clamp(26px, 5.6vw, 42px); line-height: 1.3; }
.fac-meta { margin-top: 6px; color: var(--sub); font-weight: 700; }
.fac-catch { margin-top: var(--s2); max-width: 760px; font-size: 18px; }
.fac-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s2); list-style: none; }
.fac-facts li { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--navy); font-size: 14px; font-weight: 700; }
.fac-facts b { font-size: 16px; }
.fac-nav { position: sticky; top: 64px; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.fac-nav ul { display: flex; gap: 4px; overflow-x: auto; list-style: none; }
.fac-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.fac-sec { padding: var(--s6) 0 0; }
.fac-sec > .wrap > h2, .fac-sec h2.fac-h { margin-bottom: var(--s2); font-size: clamp(22px, 4.4vw, 30px); }
.fac-text p + p { margin-top: var(--s2); }

/* 写真の量。PREMIUM は最初の画面に10枚のグリッド、PLUS は3枚、FREE は1枚 */
.gallery { display: grid; gap: 8px; margin: 0; list-style: none; }
.gallery li { margin: 0; overflow: hidden; border-radius: 14px; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-premium { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 72px; grid-auto-flow: dense; }
.gallery-premium li:nth-child(1) { grid-column: span 4; grid-row: span 3; border-radius: var(--r-card); }
.gallery-premium li:nth-child(n+2) { grid-row: span 1; }
.gallery-premium li:nth-child(n+6) { display: none; }
/* スマートフォンでは5枚目に「ほか○枚」を重ね、残りの枚数が量として見えるようにする */
.gallery-more { position: relative; }
.gallery-more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19, 41, 75, .64); color: #fff; font-size: 15px; font-weight: 800; }
@media (min-width: 720px) { .gallery-more::after { content: none; } }
@media (min-width: 720px) {
  .gallery-premium { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 92px; gap: 10px; }
  .gallery-premium li:nth-child(1) { grid-column: span 3; grid-row: span 3; }
  .gallery-premium li:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
  .gallery-premium li:nth-child(n+6) { display: block; }
  .gallery-premium li:nth-child(2), .gallery-premium li:nth-child(3) { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1080px) { .gallery-premium { grid-auto-rows: 104px; } }
.gallery-plus { grid-template-columns: 2fr 1fr; grid-auto-rows: 120px; }
.gallery-plus li:nth-child(1) { grid-row: span 2; border-radius: var(--r-card); }
@media (min-width: 720px) { .gallery-plus { grid-auto-rows: 170px; } }
.gallery-free { grid-template-columns: 1fr; }
.gallery-free li { aspect-ratio: 16 / 9; max-height: 360px; border-radius: var(--r-card); }
.gallery-empty { display: grid; place-items: center; min-height: 160px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); color: var(--sub); text-align: center; }
.gallery-caption { margin-top: 8px; color: var(--sub); font-size: 13px; }
.fac-premium .fac-head { padding-top: var(--s3); }
.fac-hero-premium { display: grid; gap: var(--s3); }
@media (min-width: 1080px) { .fac-hero-premium { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: start; } }

/* プラン差の早見（最初の画面で量が分かる） */
.plan-meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.plan-meter li { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.plan-meter b { display: block; color: var(--navy); font-size: 22px; line-height: 1.2; }
.plan-meter small { color: var(--sub); font-size: 12px; font-weight: 700; }
.plan-meter .is-none b { color: var(--sub); }

/* スタッフ・Q&A・1日の流れ・アクセス */
.staff { display: grid; gap: 12px; list-style: none; }
.staff li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s2); padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r-card); }
.staff img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.staff h3 { font-size: 17px; }
.staff p { margin-top: 4px; color: var(--sub); font-size: 15px; }
@media (min-width: 960px) { .staff { grid-template-columns: repeat(3, minmax(0, 1fr)); } .staff li { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 0; list-style: none; border-left: 3px solid var(--soft-2); margin-left: 8px; }
.timeline li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 8px 0 8px 20px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); }
.timeline time { color: var(--navy); font-weight: 800; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--navy); font-weight: 700; }
.facts dd { margin: 0; }
.facts dd ul { padding-left: 1.2em; }
.locked { padding: var(--s2) 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); color: var(--sub); font-size: 15px; }
.locked b { color: var(--navy); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.social-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-input); color: var(--navy); font-weight: 700; text-decoration: none; }
.video-frame { position: relative; overflow: hidden; border-radius: var(--r-card); background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 求人詳細 */
.jd-head { padding: var(--s4) 0 var(--s3); }
.jd-head h1 { font-size: clamp(24px, 5.4vw, 38px); line-height: 1.35; }
.jd-employer { margin-top: 6px; color: var(--sub); font-weight: 700; }
.jd-key { display: grid; gap: 0; margin-top: var(--s3); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.jd-key > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px var(--s2); border-bottom: 1px solid var(--line); }
.jd-key > div:last-child { border-bottom: 0; }
.jd-key dt { color: var(--sub); font-size: 14px; font-weight: 700; }
.jd-key dd { margin: 0; color: var(--ink); font-weight: 700; }
.jd-key .jd-pay dd { color: var(--navy); font-size: 22px; font-weight: 800; line-height: 1.4; }
@media (min-width: 720px) { .jd-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jd-key > div { grid-template-columns: 1fr; gap: 4px; border-bottom: 0; border-right: 1px solid var(--line); } .jd-key > div:last-child { border-right: 0; } .jd-key .jd-licenses { grid-column: 1 / -1; border-top: 1px solid var(--line); } }
.jd-layout { display: grid; gap: var(--s4); }
@media (min-width: 1080px) { .jd-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .jd-aside { position: sticky; top: 88px; } }
.jd-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.jd-photos li:first-child { grid-column: 1 / -1; }
.jd-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.jd-section { margin-top: var(--s5); }
.jd-section h2 { margin-bottom: 12px; font-size: 22px; }
.jd-aside .card { display: grid; gap: 12px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-1); }
.jd-aside .card h2 { font-size: 18px; }
.jd-aside .card p { color: var(--sub); font-size: 15px; }
.jd-license-note { margin-top: 6px; color: var(--sub); font-size: 13px; font-weight: 400; }

/* デモの一覧（都道府県・事業所カード） */
.fac-cards { display: grid; gap: 12px; list-style: none; }
.fac-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.fac-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fac-card-body { display: grid; gap: 4px; padding: var(--s2) 20px 20px; }
.fac-card h3 { font-size: 18px; }
.fac-card h3 a { color: var(--navy); text-decoration: none; }
.fac-card h3 a:hover { text-decoration: underline; }
.fac-card p { color: var(--sub); font-size: 14px; }
@media (min-width: 720px) { .fac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .fac-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan-group + .plan-group { margin-top: var(--s5); }
.plan-group > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--s2); font-size: 22px; }
.fac-planbar p { margin: 0; color: var(--navy); font-weight: 700; }
.fac-planbar a { margin-left: auto; font-weight: 700; }
.fac-hero-premium .fac-head { padding-bottom: var(--s2); }
.fac-premium .fac-hero-premium aside .plan-meter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1080px) { .fac-premium .fac-hero-premium aside { position: sticky; top: 128px; margin-top: var(--s4); } .fac-premium .fac-hero-premium aside .plan-meter { grid-template-columns: 1fr; } }
.jd-main > .jd-section:first-of-type { margin-top: var(--s4); }
.fac-text p + p { margin-top: var(--s2); }

/* ==========================================================================
   2026-11-10 ブラッシュアップ（まとめトップ・4分野トップ・事業者5ページ・一覧・求人詳細・AI診断）
   セクション間は広く、内側は締める。見出しの強弱をはっきりさせる。写真は並べるだけでなく「置く」
   ========================================================================== */
/* 余白のリズム：PCではセクション間を広げる。.section-tight は PC でも上の余白を詰める
   （以前は後の @media の .section が .section-tight を上書きし、PCだけ上に96pxの余白が出ていた） */
@media (min-width: 960px) {
  .section { padding: 120px 0; }
  .section-tight { padding-top: 0; }
  .section-head { margin-bottom: var(--s6); }
}
.hero h1, .page-title h1, .section-head h2, .closing h2 { text-wrap: balance; }
.section-head h2 { letter-spacing: .005em; }
.section-head p, .hero-lead, .page-title p { line-height: 1.85; text-wrap: pretty; }
/* 写真：奥に淡い面を重ねて「置く」。キャプションは、写っている場面を一言で（イメージである旨は残す） */
.hero-photo img { box-shadow: 12px 12px 0 var(--soft-2), var(--shadow-2); }
.hero-photo figcaption { margin-top: var(--s3); font-size: 12px; line-height: 1.6; }
.cap-line { display: block; max-width: 540px; margin-bottom: 4px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.75; }
/* 応募の流れ：番号を大きな数字にして、4つの段の順番を目で追えるようにする */
.step { padding: var(--s3) var(--s3) var(--s4); }
.step-no { width: auto; height: auto; place-items: start; background: none; color: var(--navy); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.step-no::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--accent); }
.step h3 { margin-top: var(--s2); }
/* 求人詳細：給与をいちばん大きく */
.jd-key .jd-pay dd { font-size: clamp(22px, 3vw, 28px); letter-spacing: .01em; }
/* AI診断：選んだ答えとキーボードの位置を、色以外（枠の太さ）でも分かるように */
.ai-option:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; }
.ai-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--navy); }
.faq-list summary:hover { color: var(--navy-2); }

/* ==========================================================================
   PREMIUM／PLUS の事業所ページ（2026-11-10 作り直し・docs/TEMPLATE_SPEC_PREMIUM_PLUS.md）
   豊かさは色ではなく、構成・分量・写真の物語で作る。セクション間は広く、内側は締める。
   動きの階段：FREE＝静／PLUS＝出現のフェード／PREMIUM＝生きている（ヒーローのズーム・浮き上がり・視差・アコーディオン・動画の置き場）
   ========================================================================== */
.fac-premium, .fac-pro { padding-bottom: 0; }
.fb-sec { padding: var(--s10) 0; }
.fb-soft { background: var(--soft); }
.fb-sec-head { max-width: 780px; margin-bottom: var(--s5); }
.fb-sec-head .eyebrow { margin-bottom: 12px; }
.fb-sec-head h2 { font-size: clamp(26px, 5.2vw, 44px); line-height: 1.32; letter-spacing: .005em; text-wrap: balance; }
.fb-sec-head > p:not(.eyebrow) { margin-top: var(--s2); color: var(--sub); font-size: 17px; line-height: 1.85; }
@media (min-width: 960px) { .fb-sec { padding: 128px 0; } .fb-sec-head { margin-bottom: var(--s8); } }

/* 写真（角丸はカード20px。キャプションは小さく静かに） */
.fb-fig { margin: 0; }
.fb-media { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--soft-2); }
.fb-media img { width: 100%; height: 100%; object-fit: cover; }
.fb-fig figcaption { margin-top: 10px; color: var(--sub); font-size: 13px; line-height: 1.65; transition: color .3s; }
.fb-fig:hover figcaption { color: var(--ink); }
img.focus-l { object-position: 10% 50%; }
img.focus-r { object-position: 90% 50%; }
.fb-prose p { font-size: 17px; line-height: 1.95; }
.fb-prose p + p { margin-top: 1.1em; }
.fb-prose .fb-lead { color: var(--navy); font-size: clamp(18px, 2.2vw, 21px); font-weight: 700; line-height: 1.8; }

/* PREMIUM：ヒーロー（大きな写真1枚・名前・一言・ボタン1つ） */
.fb-hero { position: relative; isolation: isolate; width: min(100% - 16px, 1440px); margin: 8px auto 0; overflow: hidden; border-radius: var(--r-hero); background: var(--navy); }
.fb-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.fb-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; transform-origin: 60% 40%; }
.fb-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 41, 75, .08) 8%, rgba(19, 41, 75, .5) 44%, rgba(19, 41, 75, .92) 100%); }
/* 高さは「最初の画面で、下の量の早見バーの数字が見える」ところまでに抑える（DESIGN_SYSTEM §5） */
.fb-hero-body { display: flex; align-items: flex-end; min-height: 460px; padding: 96px 0 var(--s4); }
.fb-hero-body .wrap { color: #fff; }
.fb-hero-labels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.fb-hero-labels li { padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(19, 41, 75, .35); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.6; }
.fb-hero-labels .is-sample { border-color: #fff; background: #fff; color: var(--navy); }
.fb-hero h1 { margin-top: var(--s2); color: #fff; font-size: clamp(34px, 7.6vw, 80px); line-height: 1.14; letter-spacing: .01em; text-wrap: balance; }
.fb-hero h1 small { display: block; margin-top: 12px; font-size: clamp(16px, 2.4vw, 24px); font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.fb-hero-catch { max-width: 680px; margin-top: var(--s3); color: #fff; font-size: clamp(18px, 2.3vw, 23px); font-weight: 700; line-height: 1.7; text-shadow: 0 1px 12px rgba(19, 41, 75, .35); }
.fb-hero-actions { margin-top: var(--s4); }
.fb-hero-note { position: absolute; top: 14px; right: 18px; color: rgba(255, 255, 255, .86); font-size: 12px; text-shadow: 0 1px 6px rgba(19, 41, 75, .5); }
@media (min-width: 720px) { .fb-hero { width: min(100% - 32px, 1440px); margin-top: 16px; } .fb-hero-body { min-height: min(68vh, 700px); padding-bottom: var(--s6); } .fb-hero::after { background: linear-gradient(180deg, rgba(19, 41, 75, 0) 30%, rgba(19, 41, 75, .38) 58%, rgba(19, 41, 75, .9) 100%); } }

/* 量の早見バー（PREMIUM は濃紺の帯、PLUS は淡い帯。落差を最初に見せる） */
.fb-qty { width: min(100% - 16px, 1440px); margin: 12px auto 0; }
.fb-qty-in { display: grid; gap: var(--s3); padding: var(--s3) 20px; border-radius: var(--r-card); }
.is-premium .fb-qty-in { background: var(--navy); color: #e8edf4; }
.is-plus .fb-qty-in { border: 1px solid var(--line); background: var(--soft); color: var(--ink); }
.fb-qty-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fb-qty-head h2 { font-size: 15px; letter-spacing: .04em; }
.is-premium .fb-qty-head h2 { color: #fff; }
.is-premium .fb-qty-head .plan-pill { background: #fff; color: var(--navy); }
.fb-qty-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) 12px; list-style: none; }
.fb-qty-list li { display: grid; align-content: start; gap: 4px; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .24); }
.is-plus .fb-qty-list li { border-left-color: #c7d1de; }
.fb-qty-list b { color: #fff; font-size: clamp(32px, 6vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.is-plus .fb-qty-list b { color: var(--navy); }
.fb-qty-list b small { margin-left: 3px; font-size: 15px; letter-spacing: 0; }
.fb-qty-list span { font-size: 14px; font-weight: 700; line-height: 1.5; }
.fb-qty-list em { display: block; margin-top: 2px; font-size: 12px; font-style: normal; font-weight: 400; opacity: .82; }
.fb-qty-list .is-none b { color: var(--sub); }
.fb-qty-list li:last-child { grid-column: 1 / -1; }
.fb-qty-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; }
.fb-qty-strip li { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: var(--navy-2); }
.fb-qty-strip img { width: 100%; height: 100%; object-fit: cover; }
.fb-qty-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; font-size: 13px; }
.fb-qty-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.is-premium .fb-qty-foot a { color: #fff; }
.is-premium :focus-visible { outline-color: #fff; }
@media (min-width: 720px) { .fb-qty { width: min(100% - 32px, 1440px); } .fb-qty-in { padding: var(--s3) var(--s4); } .fb-qty-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } .fb-qty-list li:last-child { grid-column: auto; } .fb-qty-strip { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .fb-qty-in { grid-template-columns: 200px minmax(0, 1fr); align-items: center; column-gap: var(--s5); padding: 28px 40px; } .fb-qty-head { flex-direction: column; align-items: flex-start; } .fb-qty-strip, .fb-qty-foot { grid-column: 1 / -1; } }

/* ページ内の目次（今いる節に印） */
.fac-premium .fac-nav { margin-top: var(--s3); }
.fac-nav a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--accent); }

/* この事業所について */
.fb-about-grid { display: grid; gap: var(--s6); }
.fb-about-photos { position: relative; }
.fb-about-photos .fb-fig:first-child { width: 86%; }
.fb-about-photos .fb-fig:first-child .fb-media { aspect-ratio: 4 / 5; }
.fb-about-photos .fb-fig:first-child figcaption { max-width: 44%; }
.fb-about-photos .fb-fig:nth-child(2) { position: relative; width: 58%; margin: -26% 0 0 auto; }
.fb-about-photos .fb-fig:nth-child(2) .fb-media { aspect-ratio: 4 / 3; box-shadow: 0 0 0 8px #fff, var(--shadow-2); }
.fb-sign { display: grid; gap: var(--s5); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); }
.fb-sign blockquote { margin: 0; }
.fb-sign blockquote p { color: var(--navy); font-size: clamp(18px, 2.4vw, 23px); font-weight: 700; line-height: 1.9; }
.fb-sign blockquote p::before { content: "“"; display: block; height: 40px; color: var(--accent); font-size: 64px; line-height: 1; }
.fb-sign cite { display: block; margin-top: 12px; color: var(--sub); font-size: 14px; font-style: normal; font-weight: 700; }
.fb-values-title { margin-bottom: 8px; color: var(--sub); font-size: 14px; font-weight: 700; }
.fb-values { display: grid; list-style: none; counter-reset: fbv; border-top: 1px solid var(--line); }
.fb-values li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; counter-increment: fbv; }
.fb-values li::before { content: counter(fbv, decimal-leading-zero); color: var(--accent); font-weight: 800; letter-spacing: .04em; }
@media (min-width: 960px) {
  .fb-about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: var(--s10); }
  .fb-about-photos { margin-top: -24px; }
  .fb-sign { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s10); margin-top: 112px; }
}

/* 特徴・強み（3点・写真と文章が交互に入れ替わる） */
.fb-strengths { display: grid; gap: var(--s8); list-style: none; }
.fb-str { display: grid; gap: var(--s3); align-items: center; }
.fb-str .fb-media { aspect-ratio: 4 / 3; }
.fb-str-no { display: flex; align-items: baseline; gap: 14px; color: var(--accent); font-size: 15px; font-weight: 800; letter-spacing: .1em; }
.fb-str-no span { color: var(--sub); font-size: 14px; letter-spacing: .02em; }
.fb-str h3 { margin-top: 10px; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.38; }
.fb-str-body > p:not(.fb-str-no) { margin-top: var(--s2); line-height: 1.95; }
.fb-figs { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid #d3dae3; }
.fb-figs div { display: grid; gap: 2px; }
.fb-figs dt { color: var(--sub); font-size: 13px; font-weight: 700; }
.fb-figs dd { margin: 0; color: var(--navy); font-size: clamp(34px, 5vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.fb-figs dd small { margin-left: 3px; font-size: 16px; letter-spacing: 0; }
@media (min-width: 960px) {
  .fb-strengths { gap: 120px; }
  .fb-str { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--s10); }
  .fb-str:nth-child(even) { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .fb-str:nth-child(even) .fb-str-media { order: 2; }
}

/* 職場の雰囲気（大きさと縦横比に変化をつけた4枚。整列グリッドにしない） */
.fb-atm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) 12px; }
.fb-atm-a, .fb-atm-d { grid-column: 1 / -1; }
.fb-atm-a .fb-media { aspect-ratio: 4 / 3; }
.fb-atm-b .fb-media { aspect-ratio: 3 / 4; }
.fb-atm-c { align-self: end; }
.fb-atm-c .fb-media { aspect-ratio: 1 / 1; }
.fb-atm-d .fb-media { aspect-ratio: 16 / 10; }
.fb-atm .fb-media img { transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.fb-atm .fb-fig:hover .fb-media img { scale: 1.05; }
@media (min-width: 960px) {
  .fb-atm { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s6) var(--s3); }
  .fb-atm-a { grid-column: 1 / 8; }
  .fb-atm-a .fb-media { aspect-ratio: 5 / 4; }
  .fb-atm-b { grid-column: 9 / 13; margin-top: 112px; }
  .fb-atm-c { grid-column: 2 / 6; align-self: start; }
  .fb-atm-c .fb-media { aspect-ratio: 4 / 5; }
  .fb-atm-d { grid-column: 7 / 13; margin-top: 72px; }
  .fb-atm-d .fb-media { aspect-ratio: 4 / 3; }
}

/* スタッフ紹介（顔写真＋声の温度が伝わる一文） */
.fb-staff { display: grid; gap: var(--s4); list-style: none; }
.fb-person { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: var(--s2); }
.fb-person-photo { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r-card); background: var(--soft-2); }
.fb-person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.fb-person:hover .fb-person-photo img { scale: 1.04; }
.fb-person-role { color: var(--sub); font-size: 14px; font-weight: 700; }
.fb-person h3 { font-size: 21px; }
.fb-person-q { margin-top: var(--s2); color: var(--accent-hover); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.fb-person blockquote { margin: 4px 0 0; }
.fb-person blockquote p { color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.85; }
.fb-person-meta { margin-top: 12px; color: var(--sub); font-size: 13px; line-height: 1.6; }
@media (min-width: 720px) {
  .fb-staff:not(.is-single) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .fb-staff:not(.is-single) .fb-person { grid-template-columns: 1fr; }
  .fb-staff:not(.is-single) .fb-person-photo { aspect-ratio: 4 / 5; }
  .fb-staff:not(.is-single) .fb-person:nth-child(2) { margin-top: 64px; }
  .fb-staff.is-single .fb-person { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--s6); align-items: center; }
  .fb-staff.is-single .fb-person blockquote p { font-size: 19px; }
}

/* 募集中の求人（写真つきカード）・ある1日の流れ・働き方と制度 */
.fb-jobs-layout { display: grid; gap: var(--s5); }
.fb-jobs { display: grid; gap: var(--s3); }
.fb-job { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; transition: border-color .2s, box-shadow .2s, translate .2s; }
.fb-job:hover { border-color: var(--navy-3); box-shadow: var(--shadow-2); translate: 0 -2px; }
.fb-job-photo { position: relative; display: block; background: var(--soft); }
.fb-job-photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fb-job-count { position: absolute; left: 12px; bottom: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(19, 41, 75, .84); color: #fff; font-size: 12px; font-weight: 800; }
.fb-job-body { display: grid; align-content: start; gap: 6px; padding: 20px 22px 24px; }
.fb-job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--sub); font-size: 14px; font-weight: 700; }
.fb-job h3 { font-size: 20px; line-height: 1.5; }
.fb-job h3 a { color: var(--navy); text-decoration: none; }
.fb-job h3 a:hover { text-decoration: underline; }
.fb-job-pay { color: var(--ink); font-size: 19px; font-weight: 800; }
.fb-job-place { font-size: 15px; }
.fb-job .tags { margin-top: 4px; }
.fb-job-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; list-style: none; }
.fb-job-thumbs li { width: 56px; height: 40px; overflow: hidden; border-radius: 6px; }
.fb-job-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .fb-job { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); } .fb-job-photo img { aspect-ratio: auto; min-height: 240px; } }
.fb-day { padding: var(--s3); border-radius: var(--r-card); background: var(--soft); }
.fb-day h3 { margin-bottom: 12px; font-size: 18px; }
.fb-day .timeline { border-left-color: #d3dae3; }
.fb-day-plus { margin-top: var(--s6); }
@media (min-width: 1080px) { .fb-jobs-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: var(--s6); } .fb-jobs-layout .fb-day { position: sticky; top: 132px; } .fb-day-plus { max-width: 760px; } }
.fb-rules-wrap { margin-top: var(--s8); }
.fb-rules-wrap > h3 { margin-bottom: var(--s3); font-size: clamp(21px, 3vw, 27px); }
.fb-rules { display: grid; gap: 0 var(--s5); margin: 0; border-top: 1px solid var(--line); }
.fb-rules > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fb-rules dt { color: var(--navy); font-size: 15px; font-weight: 800; }
.fb-rules dd { margin: 6px 0 0; font-size: 16px; line-height: 1.85; }
@media (min-width: 720px) { .fb-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 採用Q&A（PREMIUM は開閉アニメーション） */
.fb-qa-wrap { display: grid; gap: var(--s2); }
.fb-qa summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.fb-qa-cat { flex: none; min-width: 64px; color: var(--accent-hover); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.fb-qa-q { flex: 1 1 220px; }
.fb-qa .qa-a { overflow: hidden; }
.fb-qa .qa-a p { margin: 0 0 20px; line-height: 1.9; }
.fb-qa details.is-closing summary::after { transform: translateY(-70%) rotate(45deg); }
@media (min-width: 720px) { .fb-qa .qa-a p { padding-left: 78px; } }
@media (min-width: 1080px) { .fb-qa-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: var(--s10); } .fb-qa-wrap .fb-sec-head { position: sticky; top: 140px; margin-bottom: 0; } }

/* SNS・動画（濃紺の面。動画の置き場はゆっくり動く写真と脈打つ再生の印で「生きた要素」に） */
.fb-navy { background: var(--navy); color: #e8edf4; }
.fb-navy h2, .fb-navy h3 { color: #fff; }
.fb-navy .eyebrow, .fb-navy .fb-sec-head > p:not(.eyebrow) { color: #c9d3e0; }
.fb-media-grid { display: grid; gap: var(--s5); }
.fb-media-grid .fb-sec-head { margin-bottom: 0; }
.fb-video-stage { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: #0d1d36; color: #fff; text-decoration: none; }
.fb-video-stage img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.fb-video-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 29, 54, .05) 30%, rgba(13, 29, 54, .8) 100%); }
.fb-play { position: absolute; left: 50%; top: 44%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255, 255, 255, .95); }
.fb-play::before { content: ""; margin-left: 6px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid var(--navy); }
.fb-play::after { content: ""; position: absolute; inset: -10px; border: 2px solid rgba(255, 255, 255, .65); border-radius: 50%; }
a.fb-video-stage:hover .fb-play { background: #fff; }
/* 動画がない置き場：再生の印は出さず、点線の枠で「置き場」と分かるようにする（押せそうに見せない） */
.fb-video-empty { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); padding: 8px 18px; border: 2px dashed rgba(255, 255, 255, .75); border-radius: 999px; background: rgba(13, 29, 54, .45); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.fb-video-label { position: absolute; left: 20px; right: 20px; bottom: 16px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; }
.fb-video-note { margin-top: 12px; color: #c9d3e0; font-size: 13px; }
.fb-sns { display: grid; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.fb-sns a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; transition: padding-left .2s, color .2s; }
.fb-sns a::after { content: "↗"; color: var(--accent-on-dark); font-size: 18px; }
.fb-sns a:hover { padding-left: 12px; color: var(--accent-on-dark); }
@media (min-width: 1080px) { .fb-media-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; column-gap: var(--s8); } .fb-media-grid .fb-video { grid-column: 2; grid-row: 1 / span 2; } .fb-media-grid .fb-sns { align-self: start; } }

/* アクセス */
.fb-access { display: grid; gap: var(--s3); }
.fb-access .fb-sec-head { margin-bottom: 0; }
.fb-access-card { padding: var(--s4) var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-1); }
.fb-address { color: var(--navy); font-size: clamp(20px, 3vw, 26px); font-weight: 800; line-height: 1.5; }
.fb-access-card > p:not(.fb-address) { margin-top: 8px; }
.fb-access-card .facts { margin-top: var(--s3); }
.fb-access-card .btn { margin-top: var(--s3); }
@media (min-width: 960px) { .fb-access { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: var(--s8); } .fb-access-card { padding: var(--s5); } }

/* 締めのCTA（PREMIUM は写真の上に濃紺。ボタンは1つ） */
.fb-closing { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.fb-closing-media { position: absolute; inset: 0; z-index: -2; }
.fb-closing-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 38%; }
.fb-closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19, 41, 75, .95) 0%, rgba(19, 41, 75, .86) 52%, rgba(19, 41, 75, .6) 100%); }
.fb-closing-body { max-width: 720px; padding: 104px 0; }
.fb-closing .eyebrow { color: #c9d3e0; }
.fb-closing h2 { color: #fff; font-size: clamp(28px, 5.4vw, 48px); line-height: 1.3; text-wrap: balance; }
.fb-closing-body > p:not(.eyebrow) { margin-top: var(--s2); color: #e3e9f1; }
.fb-closing .btn { margin-top: var(--s4); }
.fb-closing-body .fb-closing-note { color: #c9d3e0; font-size: 13px; }
.fb-closing :focus-visible { outline-color: #fff; }
@media (min-width: 960px) { .fb-closing-body { padding: 152px 0; } }
.fb-closing-plus { padding-top: 0; }

/* PLUS：ヒーロー（写真1枚＋名前＋基本情報。PREMIUM より簡素に、顔は見える） */
.fb-hero-plus { padding: var(--s3) 0 var(--s5); }
.fb-hp-grid { display: grid; gap: var(--s4); align-items: center; }
.fb-hero-labels.is-light li { border-color: var(--line); background: var(--soft); color: var(--navy); }
.fb-hero-labels.is-light .is-sample { border-color: #b9c3d1; background: #e8ecf2; }
.fb-hero-plus h1 { margin-top: var(--s2); font-size: clamp(30px, 6vw, 52px); line-height: 1.22; text-wrap: balance; }
.fb-hero-plus h1 small { display: block; margin-top: 8px; color: var(--sub); font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; letter-spacing: .04em; }
.fb-hp-catch { max-width: 560px; margin-top: var(--s3); font-size: 18px; line-height: 1.85; }
.fb-hp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); list-style: none; }
.fb-hp-facts li { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--navy); font-size: 14px; font-weight: 700; }
.fb-hp-photo { margin: 0; }
.fb-hp-photo .fb-media { aspect-ratio: 4 / 3; border-radius: var(--r-hero); }
.fb-hp-photo figcaption { margin-top: 8px; color: var(--sub); font-size: 13px; }
@media (min-width: 960px) { .fb-hero-plus { padding: var(--s5) 0 var(--s6); } .fb-hp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s8); } }
/* PLUS：紹介文の中に写真を分けて置く */
.fb-intro { display: grid; gap: var(--s6); }
.fb-intro-row { display: grid; gap: var(--s3); align-items: center; }
.fb-intro-row .fb-fig { width: 78%; margin-left: auto; }
.fb-intro-row.is-rev .fb-fig { margin-left: 0; }
.fb-intro-row .fb-media { aspect-ratio: 4 / 5; }
@media (min-width: 960px) {
  .fb-intro-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--s8); }
  .fb-intro-row.is-rev { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
  .fb-intro-row.is-rev .fb-fig { order: -1; }
  .fb-intro-row .fb-fig { width: 100%; }
}

/* 動き：出現。CSS の既定では何も隠さない（JSなし・撮影・印刷・動きを減らす設定では最初から全部表示）。
   隠すのは、JS が「まだ画面に入っていない」と判定して .is-pending を付けた要素だけ。画面に入ると JS が外す */
@media (prefers-reduced-motion: no-preference) {
  .motion-on [data-reveal] { transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .motion-on [data-reveal].is-pending { opacity: 0; }
  .motion-on body[data-motion="premium"] [data-reveal].is-pending { transform: translate3d(0, 32px, 0); }
  .motion-on [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .motion-on [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .motion-on [data-reveal]:nth-child(4) { transition-delay: .24s; }
  /* PREMIUM：視差（写真を少し大きくして、スクロールに合わせて上下にずらす） */
  .motion-on body[data-motion="premium"] [data-parallax] img { scale: 1.12; translate: 0 var(--py, 0px); }
  .motion-on body[data-motion="premium"] .fb-atm .fb-fig:hover [data-parallax] img { scale: 1.17; }
  /* PREMIUM：ヒーロー写真が息づく程度にズームし、文字が順に浮かぶ */
  .fb-hero-media img { animation: fb-breathe 26s ease-in-out infinite alternate; }
  .fb-hero-body .wrap > * { animation: fb-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .fb-hero-body .wrap > :nth-child(2) { animation-delay: .12s; }
  .fb-hero-body .wrap > :nth-child(3) { animation-delay: .24s; }
  .fb-hero-body .wrap > :nth-child(4) { animation-delay: .36s; }
  /* PREMIUM：動画の置き場 */
  .fb-video-stage img { animation: fb-drift 18s ease-in-out infinite alternate; }
  .fb-play::after { animation: fb-pulse 2.6s ease-out infinite; }
}
@keyframes fb-breathe { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1.2%, -.8%, 0); } }
/* 文字の浮き上がりは位置だけ動かす（透明から始めない＝どの瞬間に撮っても読める） */
@keyframes fb-rise { from { transform: translate3d(0, 24px, 0); } to { transform: none; } }
@keyframes fb-drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(1.6%, -1.6%, 0); } }
@keyframes fb-pulse { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }

/* ── 動きを減らす設定では装飾の動きを止める ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .square:hover, .square:hover img, .btn:hover .arrow { transform: none; }
  .fb-atm .fb-fig:hover .fb-media img, .fb-person:hover .fb-person-photo img { scale: none; }
  .fb-job:hover, .fb-sns a:hover { translate: none; padding-left: 4px; }
}

/* ── 印刷 ─────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .publication-status, .menu, .subnav, .fac-nav { display: none !important; }
  [data-reveal], [data-reveal].is-pending { opacity: 1 !important; transform: none !important; }
  body { font-size: 12pt; }
}
