/* ============================================================
   HUBバイザー サービスサイト — スタイルシート
   出典: fdpm-site-template（PM Quest から抽出した「AIっぽくない」
   デザインシステム）を移植し、HUBバイザー用に配色のみ差し替え。
   DESIGN.md のルールに従い、差し色(accent)は1色のみ・濃い影や
   虹色グラデーション・全セクション同型カードは避けている。

   ▼ 事業ごとに変えているのはこの3変数のみ（DESIGN.md準拠）
     --primary   … 青（見出し・ヘッダー帯・ロゴ）
     --accent    … 黄色（CTA・強調。1色のみ、少量で使用）
     --grad-main … primary基調のグラデ（hero背景・CTA帯のみで使用）
   ▼ 触っていないもの（"AIっぽくなさ"の下地。テンプレートのまま）
     --text 系 / --bg / --surface / --border / --shadow-* / フォント
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary: 青（HUBバイザーの主役色。見出し・kicker・ロゴ・タグなど強調全般はこちら） */
  --primary:      #163A63;
  --primary-dk:   #0A1D36;
  --primary-lt:   #EAF1FB;
  --primary-bd:   #C9DBF2;
  --primary-glow: #6FB1F0; /* 濃い背景上のテキスト用・明るい青 */

  /* Accent: 黄色 — CTAボタンなど、ごく一部の強調のみに限定して使う
     2026-07-29 神部さん指示で山吹色を蛍光寄りの黄緑（#DDDF00 / RGB 221,223,0 / HSL 61,100%,44%）に変更 */
  --accent:       #DDDF00;
  --accent-dk:    #A3A600;
  --accent-lt:    #FAFBD1;

  /* Gradient（primary基調、hero背景とCTA帯のみで使用） */
  --grad-main: linear-gradient(135deg, #163A63 0%, #2C5FA8 100%);

  /* Neutrals（触らない） */
  --text:         #0D1117;
  --text-sec:     #4b5563;
  --text-muted:   #9ca3af;
  --bg:           #F8FAFC;
  --surface:      #ffffff;
  --border:       #EAEDF0;
  --border-light: #F3F5F7;

  --radius:    12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.08), 0 10px 20px -6px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.site-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
}
.site-logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--primary); flex-shrink: 0;
}
/* グラデ文字はAIっぽさの定番のため単色に（2026-07-14） */
.site-logo-name {
  font-weight: 900; font-size: 17px; letter-spacing: -0.4px;
  color: var(--primary);
}
.header-nav { display: flex; gap: 2px; flex: 1; align-items: center; justify-content: center; }
.header-nav a {
  padding: 8px 10px; font-size: 13px; font-weight: 500;
  color: var(--text-sec); text-decoration: none;
  border-radius: var(--radius-sm); transition: all 0.15s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--primary); background: var(--primary-lt); }
/* 「企業様はこちら」はデスクトップでは header-actions のボタンで見せるため、
   ナビ内の重複リンクは隠す。モバイル（ハンバーガー）ではボタンを隠す代わりに表示する。 */
@media (min-width: 861px) { .nav-company-link { display: none; } }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.hdr-btn {
  padding: 9px 18px; border-radius: 100px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
  text-decoration: none; font-family: inherit; border: none;
  display: inline-block;
}
.hdr-btn-ghost { border: 1.5px solid var(--border); color: var(--text-sec); background: transparent; }
.hdr-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hdr-btn-primary { background: var(--accent); color: var(--primary-dk); }
.hdr-btn-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
/* 企業様向け導線。診断（黄色）と差別化するためネイビーの塗り。 */
.hdr-btn-company { background: var(--primary); color: #fff; }
.hdr-btn-company:hover { background: var(--primary-dk); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 16px; height: 2px;
  background: var(--text); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

@media (max-width: 860px) {
  .header-nav {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 6px 20px 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  }
  .header-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .header-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border-light); font-size: 14.5px; }
  .hdr-btn-ghost, .hdr-btn-company { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===== HERO =====
   背景は assets/images/hero-hub-career-lines.png を使用。
   画像が明るい配色のため、文字色はダーク基調に切り替えている。 */
.hm-hero {
  position: relative; overflow: hidden; padding: 76px 0 68px; color: var(--text);
  background: #fbfdff;
}
.hm-hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hm-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.32) 40%, rgba(255,255,255,0.05) 66%, transparent 82%);
}
.hm-hero .container { position: relative; z-index: 2; max-width: 1160px; }
.hm-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 3px; color: var(--primary);
  margin-bottom: 22px; text-transform: uppercase;
}
.hm-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,183,5,0.22); }
.hm-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; line-height: 1.38; letter-spacing: -1.4px; margin: 0 0 22px; color: var(--text); }
.hm-hero h1 em { font-style: normal; color: var(--primary); }
.hm-hero-sub { font-size: 16px; color: var(--text-sec); line-height: 1.95; max-width: 560px; margin-bottom: 30px; }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hm-btn-primary {
  background: var(--accent); color: var(--primary-dk); font-size: 15px; font-weight: 800;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, background .15s, color .15s; border: none; cursor: pointer; font-family: inherit;
}
.hm-btn-primary:hover { transform: translateY(-1px); background: var(--accent-dk); color: #fff; }
.hm-btn-ghost {
  background: rgba(255,255,255,0.6); color: var(--text); border: 1px solid rgba(22,58,99,0.25);
  font-size: 14.5px; font-weight: 700; padding: 14px 24px; border-radius: 999px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s; backdrop-filter: blur(6px);
}
.hm-btn-ghost:hover { background: rgba(255,255,255,0.85); border-color: var(--primary); transform: translateY(-2px); }

.hm-hero-facts { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(22,58,99,0.16); }
.hm-hf .v { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.3; }
.hm-hf .l { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; font-weight: 500; }

.hm-hero-note-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none;
}
.hm-hero-note-link:hover { color: var(--primary); }

/* ヒーロー右側の診断訴求ブロック */
.hm-hero-diag-promo {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(22,58,99,0.14); border-radius: 20px; padding: 34px 30px;
  box-shadow: var(--shadow-lg);
}
.hm-hero-diag-promo-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 100px;
  background: var(--primary-lt); color: var(--primary); font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px;
}
.hm-hero-diag-promo-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hm-hero-diag-promo h2 { font-size: 21px; font-weight: 900; color: var(--text); line-height: 1.5; letter-spacing: -0.4px; margin-bottom: 12px; }
.hm-hero-diag-promo p { font-size: 13px; color: var(--text-sec); line-height: 1.8; margin-bottom: 22px; }
.hm-hero-diag-promo .hm-btn-primary { width: 100%; justify-content: center; }

@media (max-width: 980px) {
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-diag-promo { max-width: 440px; }
}

/* 診断導線セクション右カード内の「サービスの流れ」表示 */
.hm-flow-card-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
}
.hm-flow-steps { display: flex; flex-direction: column; }
.hm-flow-step { display: flex; gap: 14px; padding: 14px 0; }
.hm-flow-step + .hm-flow-step { border-top: 1px solid rgba(22,58,99,0.1); }
.hm-flow-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--text); background: rgba(22,58,99,0.08);
  border: 1px solid rgba(22,58,99,0.14);
}
.hm-flow-step.is-active .hm-flow-num { background: var(--accent); border-color: transparent; color: var(--primary-dk); }
.hm-flow-step h4 { font-size: 14px; font-weight: 700; color: var(--text); }
.hm-flow-step p { margin-top: 4px; font-size: 12.5px; color: var(--text-sec); line-height: 1.7; }

@media (max-width: 640px) {
  .hm-hero { padding: 52px 0 48px; }
  .hm-hero h1 { letter-spacing: -0.8px; }
  .hm-hero-facts { gap: 20px; }
}

/* ===== SECTION scaffold ===== */
.hm-sec { padding: 88px 0; }
.hm-sec-alt { background: var(--primary-lt); }
.hm-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.hm-head.is-left { text-align: left; margin: 0 0 40px; }
.hm-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.6px; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; }
.hm-h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--text); line-height: 1.45; letter-spacing: -0.5px; margin: 0 0 14px; }
.hm-h2 em { font-style: normal; color: var(--primary); }
.hm-lead { font-size: 15.5px; color: var(--text-sec); line-height: 1.9; }

@media (max-width: 640px) {
  .hm-sec { padding: 60px 0; }
}

/* ===== サービスの特徴 / 選ばれる理由・求人カード（共通） =====
   2026-07-14: 均等3列をやめ1枚目を横長の主役に。影は廃止して1px枠のみ。 */
.job-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.job-cat-grid .job-cat-card:first-child { grid-column: 1 / -1; padding: 32px; }
.job-cat-grid .job-cat-card:first-child h3 { font-size: 19px; }
.job-cat-grid .job-cat-card:first-child p { max-width: 560px; }
.job-cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.2s;
}
.job-cat-card:hover { border-color: rgba(22,58,99,.3); }
.job-cat-num { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 12px; font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; }
.job-cat-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.job-cat-card p { font-size: 13px; color: var(--text-sec); line-height: 1.75; }
.job-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.job-cat-tags span { font-size: 11px; font-weight: 600; color: var(--text-sec); background: none; border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.jobs-footnote { margin-top: 32px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

@media (max-width: 560px) { .job-cat-grid { grid-template-columns: 1fr; } }

/* ===== 利用の流れセクション ===== */
.diag-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-md);
}
.flow-panel { max-width: 760px; margin: 0 auto; }
.flow-note { max-width: 640px; margin: 28px auto 0; font-size: 13px; color: var(--text-muted); line-height: 1.9; text-align: center; }
.faq-more-link { font-size: 13.5px; font-weight: 600; color: var(--primary); }
.faq-more-link:hover { text-decoration: underline; }

/* ===== 面談予約セクション ===== */
.interview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.interview-points { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.interview-point { display: flex; gap: 12px; }
.interview-point .n {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: var(--primary-lt); color: var(--primary); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.interview-point p { font-size: 13.5px; color: var(--text-sec); line-height: 1.8; }

/* ===== 求人一覧・詳細（CSVテスト掲載・2026-07-14） =====
   配色はネイビー＋黄1色の規律のまま。カードは白面＋1px枠（影は使わない）。 */
.jobs-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 34px 0 26px; }
.jobs-filter button {
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border);
  background: #fff; font-size: 12.5px; font-weight: 700; color: var(--text-sec);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.jobs-filter button:hover { border-color: var(--primary); color: var(--primary); }
.jobs-filter button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.jobs-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.job-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 28px; text-decoration: none;
  transition: border-color .2s;
}
.job-card:hover { border-color: var(--job-color, var(--primary)); }
/* サムネイル＝診断結果の職種タイプイラストを流用（2026-07-22）。
   イラストは白地なので面は白のまま、枠と淡い面でタイプ色を出す */
.job-card-thumb {
  flex: 0 0 124px; width: 124px; height: 124px; border-radius: 12px;
  border: 2px solid var(--job-color-bd, var(--primary-bd));
  background: var(--job-color-soft, var(--primary-lt));
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.job-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.job-card-body { flex: 1; min-width: 0; }
.job-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.job-card-tags span {
  font-size: 11px; font-weight: 700; color: var(--text-sec);
  border: 1px solid var(--border); border-radius: 100px; padding: 3px 10px;
}
.job-card-tags .job-card-cat {
  color: var(--job-color, var(--primary));
  border-color: var(--job-color-bd, var(--primary-bd));
  background: var(--job-color-soft, var(--primary-lt));
}
@media (max-width: 560px) {
  .job-card { gap: 16px; padding: 20px 18px; }
  .job-card-thumb { flex-basis: 84px; width: 84px; height: 84px; }
}
.job-card h3 { font-size: 16.5px; font-weight: 800; color: var(--text); line-height: 1.6; margin-bottom: 6px; }
.job-card-company { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }
.job-card-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-sec); }
.job-card-meta b { font-weight: 700; color: var(--text-muted); font-size: 11px; display: block; margin-bottom: 2px; }
.job-card-more { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--primary); }
.jobs-note { max-width: 860px; margin: 26px auto 0; font-size: 11.5px; color: var(--text-muted); line-height: 1.85; }

.job-detail { max-width: 860px; margin: 0 auto; }
.job-detail-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; margin-bottom: 18px; }
.job-detail-back:hover { text-decoration: underline; }

/* ヘッダーカード：タイトル＋要点4タイル（年収・勤務地・休日・雇用形態）を最初に見せる */
.job-detail-head {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 34px 28px; margin-bottom: 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 26px; align-items: center;
}
.job-detail-head-main { min-width: 0; }
.job-detail-thumb {
  width: 132px; height: 132px; border-radius: 14px;
  border: 2px solid var(--job-color-bd, var(--primary-bd));
  background: var(--job-color-soft, var(--primary-lt));
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.job-detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.job-detail-head .job-fact-grid { grid-column: 1 / -1; margin-top: 14px; }
.job-detail h1 { font-size: clamp(20px, 3vw, 27px); font-weight: 900; color: var(--text); line-height: 1.65; letter-spacing: -0.4px; margin: 14px 0 8px; }
.job-detail-company { font-size: 13.5px; font-weight: 700; color: var(--text-sec); margin-bottom: 22px; }
.job-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.job-fact { background: var(--primary-lt); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.job-fact b { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 5px; }
.job-fact span { display: block; font-size: 15px; font-weight: 800; color: var(--primary-dk); line-height: 1.5; }
.job-fact:first-child { background: var(--accent-lt); }
.job-fact:first-child span { font-size: 16px; }

/* 本文セクション：白カードに収めて、見出しは黄マーカー＋大きめで区切りを明確に */
.job-detail-sec {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 34px; margin: 18px 0;
}
.job-detail-sec h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: -0.3px;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.job-detail-sec h2::before {
  content: ""; flex-shrink: 0; width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent);
}
.job-detail-sec p { font-size: 14px; color: var(--text-sec); line-height: 2.05; white-space: pre-line; overflow-wrap: break-word; }
.job-detail-company-summary { margin-top: 18px; }

/* 募集要項・企業情報のテーブル */
.job-detail-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.job-detail-summary > div { display: flex; border-bottom: 1px solid var(--border-light); }
.job-detail-summary > div:nth-last-child(-n+2) { border-bottom: none; }
.job-detail-summary dt {
  flex-shrink: 0; width: 108px; padding: 14px 16px; font-size: 12.5px; font-weight: 800;
  color: var(--primary-dk); background: var(--primary-lt);
  display: flex; align-items: center;
}
.job-detail-summary dd { padding: 14px 18px; font-size: 13.5px; color: var(--text); line-height: 1.8; }

.job-detail-cta {
  background: linear-gradient(160deg, var(--primary-dk), var(--primary) 80%);
  border-radius: 16px; padding: 30px 32px; margin: 18px 0; text-align: center;
}
.job-detail-cta p { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); line-height: 2; margin-bottom: 18px; }
.job-detail-cta .hm-btn-primary { background: var(--accent); color: var(--primary-dk); }
.job-detail-cta .hm-btn-primary:hover { background: var(--accent-dk); color: #fff; }
.job-detail-cta .hm-btn-ghost { background: #fff; color: var(--primary-dk); border: 1px solid #fff; }
.job-detail-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .job-card { padding: 22px 20px; }
  .job-detail-head { padding: 24px 22px 22px; grid-template-columns: 1fr; }
  .job-detail-thumb { width: 96px; height: 96px; order: -1; }
  .job-detail-sec { padding: 24px 22px; }
  .job-fact-grid { grid-template-columns: 1fr 1fr; }
  .job-detail-summary { grid-template-columns: 1fr; }
  .job-detail-summary > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--border-light); }
  .job-detail-summary > div:last-child { border-bottom: none; }
  .job-detail-summary dt { width: 92px; }
}

/* ===== コラム一覧（サムネイル付きグリッドカード・2026-07-29）=====
   求人カードと同じ「タイプ色を淡く使う」規律をサムネイル部に適用。
   サムネイルは画像ではなくCSSで生成（カテゴリ色のドット柄＋記事タイトルの大見出し）。
   記事データにカテゴリさえあれば自動で色・柄がつくため、記事追加ごとの手作業は不要。 */
.column-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1160px; margin: 0 auto; }
@media (max-width: 900px) { .column-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .column-grid { grid-template-columns: 1fr; } }

/* 重要記事の上部固定表示（2026-07-29 堤様MTG決定・カテゴリ絞り込みの影響を受けない） */
.column-pinned { max-width: 1160px; margin: 0 auto 38px; }
.column-pinned-label {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  color: var(--primary); letter-spacing: .5px; margin-bottom: 14px;
}
.column-pinned-label::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }

.col-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s;
}
.col-card:hover { border-color: var(--cc, var(--primary)); transform: translateY(-2px); }
.col-card-thumb {
  position: relative; padding: 22px 20px 20px; min-height: 148px;
  background:
    radial-gradient(circle, var(--cc, var(--primary)) 1.4px, transparent 1.4px) 0 0 / 16px 16px,
    var(--cc-soft, var(--primary-lt));
  border-bottom: 1px solid var(--border-light);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.col-card-thumb-eyebrow {
  align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px;
  color: #fff; background: var(--cc, var(--primary)); padding: 5px 12px; border-radius: 100px;
}
.col-card-thumb-title {
  font-size: 19px; font-weight: 900; color: var(--text); line-height: 1.45; letter-spacing: -0.3px;
}
.col-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.col-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.col-card-meta .cat { font-weight: 800; color: var(--cc, var(--primary)); }
.col-card-body .column-card-desc { margin-bottom: 16px; }
.col-card-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--cc, var(--primary)); }

/* ===== コラム（求人一覧と同じカード様式を流用し、本文タイポグラフィのみ追加） ===== */
.column-card-desc { font-size: 13px; color: var(--text-sec); line-height: 1.9; }
.column-body { font-size: 14.5px; color: var(--text); line-height: 2.1; margin: 30px 0 10px; }
.column-body h2 {
  font-size: 19px; font-weight: 900; color: var(--text); margin: 40px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--primary);
}
.column-body h3 { font-size: 16px; font-weight: 800; color: var(--text); margin: 30px 0 10px; }
.column-body p { margin-bottom: 18px; color: var(--text-sec); }
.column-body ul, .column-body ol { margin: 0 0 18px 22px; color: var(--text-sec); }
.column-body li { margin-bottom: 6px; }

.reg-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 30px; }
.reg-card h3 { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.reg-card .form-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; }
.rf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
/* hidden属性がdisplay:flexに負けないようにする（例: 法人フォームの「その他」入力欄） */
.rf-group[hidden] { display: none; }
.rf-group label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.rf-group input, .rf-group select, .rf-group textarea {
  padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 14px; font-family: inherit; color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.rf-group input:focus, .rf-group select:focus, .rf-group textarea:focus {
  border-color: var(--accent-dk); box-shadow: 0 0 0 3px rgba(242,183,5,0.18); background: #fff;
}
.rf-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; }
.rf-check input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.rf-check label { font-size: 12.5px; color: var(--text-sec); line-height: 1.7; }
.rf-check a { color: var(--accent-dk); font-weight: 600; text-decoration: underline; }
.rf-submit {
  width: 100%; padding: 13px 24px; background: var(--accent); color: var(--primary-dk); border: none;
  border-radius: 999px; font-size: 14.5px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background 0.15s, transform 0.12s, color 0.15s;
}
.rf-submit:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.rf-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.rf-success {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--accent-lt); border: 1px solid rgba(242,183,5,0.4); color: var(--accent-dk);
  font-size: 12.5px; font-weight: 600; line-height: 1.7;
}
.rf-success.is-visible { display: block; }
.rf-note { font-size: 11.5px; color: var(--text-muted); text-align: center; margin-top: 14px; }

@media (max-width: 880px) { .interview-grid { grid-template-columns: 1fr; } }

/* ===== 法人向け：小さめの採用コンサル言及帯 ===== */
.company-consult-note {
  max-width: 760px; margin: 28px auto 0; text-align: center;
  font-size: 13px; color: var(--text-sec); line-height: 1.8;
}
.company-consult-note strong { color: var(--primary); font-weight: 700; }

/* ===== YouCanBookMe 埋め込み（iframe・API連携なし） ===== */
.ycbm-embed {
  max-width: 880px; margin: 28px auto 0; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
/* 高さはJS(initYcbmAutoResize)がYCBMからの通知で自動調整する。
   通知が来る前・来なかった場合のフォールバックとして控えめな初期値を持たせる。 */
.ycbm-embed iframe { display: block; width: 100%; height: 620px; border: 0; transition: height 0.2s ease; }

/* 法人向けお問い合わせフォームは1カラム中央寄せで使う */
.company-contact-form { max-width: 620px; margin: 40px auto 0; }
.company-form-divider {
  max-width: 620px; margin: 40px auto 0; text-align: center;
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== FAQ ===== */
.faq-categories { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.faq-category-title {
  font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: 0.5px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.hm-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-categories .hm-faq { margin: 0; }
.hm-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px; }
.hm-faq summary { font-size: 14.5px; font-weight: 700; color: var(--text); padding: 17px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; font-size: 20px; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.hm-faq details[open] summary::after { content: '\2212'; }
.hm-faq p { font-size: 13.5px; color: var(--text-sec); line-height: 1.9; padding: 0 0 18px; margin: 0; }

/* ===== CTA帯 ===== */
.cta-band {
  background: linear-gradient(150deg, #0A1B33 0%, #163A63 100%);
  padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band .container { position: relative; z-index: 1; max-width: 880px; text-align: center; color: #fff; }
.cta-band .hm-kicker { color: var(--primary-glow); }
.cta-band h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 900; line-height: 1.5; margin: 0 0 14px; letter-spacing: -0.5px; }
.cta-band p { font-size: 14.5px; color: rgba(255,255,255,0.78); line-height: 1.9; margin-bottom: 26px; }
.cta-band .hm-cta { justify-content: center; }

/* ===== FOOTER ===== */
.footer { background: #0b0f15; border-top: 1px solid rgba(255,255,255,0.06); padding: 54px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1fr 2.6fr; gap: 40px; margin-bottom: 36px; }
.footer-brand .footer-wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; color: #fff; letter-spacing: -0.4px; text-decoration: none; margin-bottom: 12px; }
.footer-brand .footer-wordmark .mark { width: 24px; height: 24px; border-radius: 7px; background: var(--primary-glow); flex-shrink: 0; }
.footer-brand p { font-size: 12.5px; color: rgba(255,255,255,0.42); line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fl-col h4 { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.fl-col ul { display: flex; flex-direction: column; gap: 8px; }
.fl-col ul li { font-size: 13px; color: rgba(255,255,255,0.45); }
.fl-col ul a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.15s; }
.fl-col ul a:hover { color: rgba(255,255,255,0.85); }
.footer-disclaimer { font-size: 11.5px; color: rgba(255,255,255,0.28); line-height: 1.9; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== 職種タイプ診断アプリ（diagnosis.html） =====
   2026-07-14 脱AIっぽさ改修：背景画像・大きな影・色ピルを廃止し、
   白ベース＋1px枠＋黒見出し（ジャンプ率UP）に整理。
   同日 media-fleet（ヤマネさん東海サイト系テンプレ）参考のリッチ化：
   背景の巨大文字スライド3列・開始カードの統計チップ＋オーロラCTA＋浮遊チップ・
   丸型5段階スケール回答・10問ごとのステージ配色。 */
/* 最下層レイヤーはネイビーグラデ（開始・設問中）。
   最終結果画面のみ body.qz-mode-result で淡色に反転する（2026-07-14 神部さんFB） */
.qz-sec {
  position: relative; overflow: hidden;
  padding: 64px 0 110px;
  background: linear-gradient(160deg, #0A1D36, #163A63 78%);
}
body.qz-mode-result .qz-sec { background: #F7F8FC; }
.qz-container { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.qz-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 44px; }

/* ---- 背景の巨大アウトライン文字（3列＋結果画面のみ追加12列・位置をずらして低速スライド）----
   space-between でページ全高に分散させ、縦に長い最終結果画面でも
   どこまでスクロールしても常にどこかで文字が流れている状態にする（2026-07-14 神部さんFB） */
.qz-wall {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 60px 0;
  overflow: hidden;
}
.qz-wall-row {
  white-space: nowrap; font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-weight: 900;
  font-size: clamp(72px, 11vw, 150px); line-height: 1; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.22); /* ネイビー背景用の白線 */
}
/* 追加セット（.ext）は最終結果画面だけで表示（開始・設問の短い画面では3列のまま） */
.qz-wall-row.ext { display: none; }
body.qz-mode-result .qz-wall-row.ext { display: block; }
/* 最終結果画面は淡色背景のため、線をネイビーに反転して埋もれないようにする */
body.qz-mode-result .qz-wall-row { -webkit-text-stroke: 1.5px rgba(22,58,99,.18); }
.qz-wall-track { display: inline-block; animation: qzWall var(--ws, 90s) linear infinite; animation-delay: var(--wd, 0s); }
.qz-wall-row.rev .qz-wall-track { animation-direction: reverse; }
@keyframes qzWall { to { transform: translateX(-50%); } }

.qz-status {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--accent-dk); font-size: 11px; font-weight: 800;
  font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', 'Noto Sans JP', sans-serif;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 20px;
}
.qz-status .dot { width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.qz-card h1 { font-size: clamp(24px, 3.4vw, 33px); font-weight: 900; line-height: 1.45; letter-spacing: -0.8px; margin-bottom: 18px; }

/* ---- 開始カードの浮遊チップ（media-fleet .float-el 参考。PC幅のみ） ---- */
.qz-float {
  position: absolute; z-index: 2; background: #fff;
  border: 1px solid var(--primary-bd); border-radius: 14px; padding: 12px 18px;
  box-shadow: 0 14px 30px -22px rgba(22,58,99,.4);
  animation: qzFloaty var(--fd, 7s) ease-in-out infinite alternate;
}
.qz-float .k { display: block; font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--accent-dk); margin-bottom: 3px; }
.qz-float .t { font-size: 12.5px; font-weight: 800; color: var(--text); line-height: 1.4; }
.qz-float.f1 { top: -22px; right: -34px; --rot: 2deg; }
.qz-float.f2 { bottom: 34px; left: -38px; --fd: 8.5s; --rot: -2deg; }

/* 開始カードはセンター組み（media-fleet sd-start 参考）。
   箇条書きだけは読みやすさ優先で左揃えのまま中央に配置する。
   面は白のまま（背景ネイビー化に伴い2026-07-14再決定）。 */
[data-qz-start] { text-align: center; }
[data-qz-start] .qz-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
[data-qz-start] .qz-points { max-width: 520px; margin-left: auto; margin-right: auto; text-align: left; }
[data-qz-start] .qz-meta { justify-content: center; }
[data-qz-start] .cta-pills { justify-content: center !important; }
@keyframes qzFloaty { from { transform: translateY(0) rotate(var(--rot, 0deg)); } to { transform: translateY(-12px) rotate(var(--rot, 0deg)); } }
@media (max-width: 1023px) { .qz-float { display: none; } }

/* ---- 開始ボタン：白ベタ＋濃色文字（2026-07-14 神部さんFBでオーロラグラデ廃止） ---- */
[data-qz-start-btn] {
  background: #fff; color: var(--primary-dk);
  border: 2px solid var(--primary-dk);
  padding: 14px 42px; font-size: 16px; letter-spacing: .5px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), background .2s, color .2s;
}
[data-qz-start-btn]:hover {
  transform: translateY(-2px); background: var(--primary-dk); color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .qz-wall-track, .qz-float, [data-qz-start-btn] { animation: none !important; }
}
html.fx-off .qz-wall-track, html.fx-off .qz-float, html.fx-off [data-qz-start-btn] { animation: none !important; }
.qz-lead { font-size: 14.5px; color: var(--text-sec); line-height: 1.9; margin-bottom: 26px; }
.qz-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.qz-point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-sec); line-height: 1.7; }
.qz-point .n {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--primary-lt);
  color: var(--primary); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
/* 統計チップ（media-fleet .sd-stats 参考） */
.qz-meta { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.qz-meta div {
  background: #fff; border: 1px solid var(--primary-bd); border-radius: 12px;
  padding: 10px 22px; min-width: 104px; text-align: center;
  font-size: 11.5px; color: var(--text-sec); font-weight: 700;
}
.qz-meta strong { display: block; font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', 'Noto Sans JP', sans-serif; font-size: 20px; color: var(--primary); font-weight: 800; line-height: 1.35; }

.qz-progress-track { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.qz-progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s cubic-bezier(.16,1,.3,1), background-color .5s ease; }
.qz-progress-label { font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', 'Noto Sans JP', sans-serif; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 26px; }
.qz-question-text { font-size: clamp(18px, 2.4vw, 21px); font-weight: 800; color: var(--text); line-height: 1.7; margin-bottom: 12px; text-align: center; }

/* ---- 回答UI：丸型5段階スケール（16personalities型。2026-07-14 神部さん指示）
   DOM順＝「全くそう思わない」→「とてもそう思わない」なので左端＝そう思わない（ネイビー）、
   右端＝そう思う（ゴールド）。中央は中立グレー。ラベルはボタン内に残るため
   スクリーンリーダーでは全文が読まれる（見た目のみ円形化）。 ---- */
.qz-choices {
  position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: clamp(10px, 2.6vw, 20px); padding: 22px 0 18px; margin-bottom: 18px;
}
/* 両端ラベルは丸のすぐ隣に置き、上下中央で揃える（2026-07-14 神部さんFB） */
.qz-choices::before, .qz-choices::after {
  font-size: 12.5px; font-weight: 800; letter-spacing: .5px; flex: 0 0 auto;
}
.qz-choices::before { content: "そう思わない"; color: var(--primary); }
.qz-choices::after { content: "そう思う"; color: var(--accent-dk); }
/* モバイルは横幅が足りないためラベルを行の下（両端寄り）に逃がす */
@media (max-width: 560px) {
  .qz-choices { padding: 16px 0 42px; }
  .qz-choices::before, .qz-choices::after { position: absolute; bottom: 10px; font-size: 12px; }
  .qz-choices::before { left: 10%; }
  .qz-choices::after { right: 10%; }
}
.qz-choice {
  flex: 0 0 auto; padding: 0; font-size: 0; color: transparent; overflow: hidden;
  border-radius: 50%; background: #fff; cursor: pointer; font-family: inherit;
  border: 2.5px solid var(--c, var(--border));
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.qz-choice:nth-child(1) { --c: #163A63; width: 58px; height: 58px; }
.qz-choice:nth-child(2) { --c: #56779E; width: 46px; height: 46px; }
.qz-choice:nth-child(3) { --c: #B4BCC6; width: 34px; height: 34px; border-width: 2px; }
.qz-choice:nth-child(4) { --c: #E0B23F; width: 46px; height: 46px; }
.qz-choice:nth-child(5) { --c: #D99E06; width: 58px; height: 58px; }
.qz-choice:hover { background: color-mix(in srgb, var(--c) 16%, #fff); transform: scale(1.08); }
.qz-choice:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.qz-choice .mark { display: none; }
.qz-choice.is-selected { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
@media (max-width: 480px) {
  .qz-choice:nth-child(1), .qz-choice:nth-child(5) { width: 48px; height: 48px; }
  .qz-choice:nth-child(2), .qz-choice:nth-child(4) { width: 38px; height: 38px; }
  .qz-choice:nth-child(3) { width: 28px; height: 28px; }
  .qz-choices::before { left: 0; }
  .qz-choices::after { right: 0; }
}
.qz-nav { display: flex; justify-content: space-between; gap: 12px; }
.qz-nav button[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---- 10問ごとのステージ配色（redesign.js の initQuizStages がクラスを付与）
   序盤=白×ライトネイビー → 中盤=薄ブルー×ブルー → 終盤=薄ゴールド×ゴールド。
   設問カードの面と進捗バーの色で「いま何合目か」を体感させる。 ---- */
[data-qz-question] { transition: background-color .6s ease, border-color .6s ease; }
[data-qz-question].qz-stage-1 { background: #fff; border-color: var(--border); }
.qz-stage-1 .qz-progress-fill { background: #9FBEE6; }
.qz-stage-1 .qz-progress-label { color: #6E93BE; }
[data-qz-question].qz-stage-2 { background: #E9F1FB; border-color: #A9C6EC; }
.qz-stage-2 .qz-progress-fill { background: #2C5FA8; }
.qz-stage-2 .qz-progress-label { color: #2C5FA8; }
[data-qz-question].qz-stage-3 { background: #FBF3D9; border-color: #E4C86A; }
.qz-stage-3 .qz-progress-fill { background: var(--accent); }
.qz-stage-3 .qz-progress-label { color: var(--accent-dk); }
/* 色付き面の上でも丸の視認性を保つ（中盤・終盤は丸の下地を白のまま維持） */
.qz-stage-2 .qz-choice, .qz-stage-3 .qz-choice { background: #fff; }
.qz-stage-2 .qz-choice:hover, .qz-stage-3 .qz-choice:hover { background: color-mix(in srgb, var(--c) 16%, #fff); }
.qz-stage-2 .qz-choice.is-selected, .qz-stage-3 .qz-choice.is-selected { background: var(--c); }

/* 結果は data-qz-result 要素に --result-color / --result-color-soft を
   JS側（diagnosis.js）でタイプごとに設定し、この中で参照する。
   2026-07-14 脱AIっぽさ改修：色ベタ背景→白背景＋全辺の色枠に。
   タイプ色はバッジ・枠・タグ枠のみに絞り、見出しは黒に戻す。 */
/* 1位はいちばん目立たせる：背景は白（イラストの白地が浮かない）＋全辺の色枠＋
   タイプ色の大きめの影で「浮遊」させて強調（2026-07-14 神部さんFB） */
.qz-result-hero {
  display: flex; align-items: center; gap: 28px;
  background: #fff;
  border: 2px solid var(--result-color, var(--primary-bd));
  border-radius: 14px; padding: 34px 30px; margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 28px 56px -28px var(--result-color, rgba(22,58,99,.5)),
              0 10px 24px -16px rgba(13,17,23,.12);
}
.qz-result-hero-text { flex: 1; min-width: 0; }
/* 1位イラスト：白箱に収めず、枠なしで面の右下に裁ち落とし気味に置く */
.qz-result-hero-image {
  flex-shrink: 0; width: clamp(210px, 36%, 264px); aspect-ratio: 1 / 1;
  align-self: flex-end; margin: -12px -14px -30px 0;
}
.qz-result-hero-image img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }

/* 結果上部の無料相談導線（2026-07-14 MTG）。下部のYCBM埋め込み・レポート内CTAは残したまま併設する */
.qz-result-topcta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 26px; padding: 16px 20px;
  background: var(--primary-lt); border: 1px solid var(--primary-bd); border-radius: 12px;
}
.qz-result-topcta p { font-size: 13.5px; font-weight: 700; color: var(--primary-dk); line-height: 1.7; margin: 0; flex: 1 1 300px; }
.qz-result-topcta .hm-btn-primary { background: var(--accent); color: var(--primary-dk); flex-shrink: 0; }
.qz-result-topcta .hm-btn-primary:hover { background: var(--accent-dk); color: #fff; }
@media (max-width: 560px) {
  .qz-result-topcta { justify-content: center; text-align: center; }
}

.qz-result-eyebrow {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}
.qz-result-type { font-size: clamp(25px, 3.6vw, 34px); font-weight: 900; color: var(--text); line-height: 1.4; letter-spacing: -0.8px; margin-bottom: 12px; }
.qz-result-desc { font-size: 14px; color: var(--text-sec); line-height: 1.9; margin-bottom: 16px; }
.qz-result-hero-text .job-cat-tags span {
  background: #fff; color: var(--text-sec); border: 1px solid var(--result-color, var(--primary-bd));
}

.qz-result-sub {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-sec); margin: 0 0 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.qz-subtype-chip {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  background: var(--sub-color-soft, var(--primary-lt)); color: var(--sub-color, var(--primary));
}
.qz-result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 44px 0; }
/* 左辺のみの色ボーダーはAIっぽさの元（2026-07-14 神部さん指示）→ 全辺の色枠に。
   タイトル（人を巻き込み…等）は主役として大きく、上下余白もゆったり取る（2026-07-14 FB） */
.qz-result-card {
  background: var(--surface); border-radius: var(--radius); padding: 30px 28px;
  border: 2px solid var(--result-color, var(--primary-bd));
  /* 1位カードと同じ「浮遊」感（タイプ色の影）で枠を立たせる（2026-07-14 FB） */
  box-shadow: 0 22px 44px -26px var(--result-color, rgba(22,58,99,.45)),
              0 8px 18px -14px rgba(13,17,23,.10);
}
.qz-result-card-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.qz-result-card h3 { font-size: clamp(17px, 2vw, 20px); font-weight: 900; color: var(--text); margin-bottom: 12px; line-height: 1.55; letter-spacing: -0.4px; }
.qz-result-card p { font-size: 13px; color: var(--text-sec); line-height: 1.9; }
.qz-value-bar { height: 6px; border-radius: 4px; background: var(--border); margin: 10px 0 6px; overflow: hidden; }
.qz-value-bar-fill { height: 100%; background: var(--result-color, var(--accent)); border-radius: 4px; }
.qz-value-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); margin-bottom: 12px; }
/* 注意書きは色箱をやめてプレーンな小さい文字に（色で区切らず余白で区切る） */
.qz-note-box {
  padding: 0; background: none; border: none;
  font-size: 11.5px; color: var(--text-muted); line-height: 1.85; margin-bottom: 44px;
}
.qz-result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* CTAまでタイプ色に連動させない（色はバッジと枠のみ）。CTAは共通の黄1色 */
.qz-result-actions .hm-btn-primary {
  background: var(--accent); color: var(--primary-dk);
}
.qz-result-actions .hm-btn-primary:hover { background: var(--accent-dk); color: #fff; }

/* ===== 30問版 結果画面（上位3位・仕事スタイル・面談埋め込み） ===== */
.qz-rank-badge {
  flex-shrink: 0; width: 92px; height: 92px; border-radius: 50%;
  background: var(--result-color, var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.qz-rank-badge span { font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-weight: 900; font-size: 44px; line-height: 1; }
.qz-rank-badge small { font-size: 14px; font-weight: 800; }

/* 2位・3位：横1列（2カラム）で並べる（2026-07-14 神部さんFB）。
   左辺のみの色ボーダーは全辺の色枠に（2026-07-14 神部さん指示）。 */
.qz-rank-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 44px; }
.qz-rank-item {
  display: flex; gap: 14px; align-items: center; padding: 15px 18px;
  border: 2px solid var(--rank-color, var(--primary-bd));
  border-radius: var(--radius); background: var(--surface);
}
.qz-rank-no {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--rank-color, var(--primary)); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-weight: 900; font-size: 17px;
}
.qz-rank-no small { font-size: 10px; font-weight: 800; }
/* 2位・3位の小サムネイル（枠・箱に入れず切り抜き風に見せる） */
.qz-rank-thumb {
  flex-shrink: 0; width: 62px; height: 62px;
  overflow: hidden;
}
.qz-rank-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qz-rank-body h3 { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.5; margin-bottom: 3px; }
.qz-rank-body p { font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }

/* 均等3列をやめ、1枚目（仕事スタイル）を横長の主役に＝大小ミックス */
.qz-result-cards-3 { grid-template-columns: 1fr 1fr; }
.qz-result-cards-3 .qz-result-card:first-child { grid-column: 1 / -1; }
.qz-result-cards-3 .qz-result-card:first-child p { max-width: 520px; }

/* ===== 詳細分析（無料ゾーン）: レーダーチャート＋マッチ度ランキング =====
   設計: docs/diagnosis-detail-report-design-2026-07-14.md F1/F2 */
.qz-detail { margin-bottom: 26px; }
.qz-detail-title { font-size: 17px; font-weight: 900; color: var(--primary); margin-bottom: 14px; }
/* 詳細分析はメインページの帯（.hm-sec-alt）のように淡い色面のセクションにする（2026-07-14 FB） */
.qz-detail {
  background: rgba(234,241,251,.55); border-radius: 16px;
  padding: 28px 24px; margin: 0 -6px 44px;
}
/* 右（マッチ度）をさらに広めに（2026-07-14 FB）。カードは全辺の色枠。
   レーダーチャートは flex＋margin:auto で右カードの高さに対して上下中央に置く。 */
.qz-detail-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: stretch; }
@media (max-width: 700px) { .qz-detail-grid { grid-template-columns: 1fr; } }
.qz-detail-card {
  background: var(--surface); border: 2px solid var(--result-color, var(--primary-bd));
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column;
}
.qz-radar { width: 100%; max-width: 320px; margin: auto; }
.qz-radar svg { width: 100%; height: auto; display: block; }
.qz-match-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.qz-match-row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.qz-match-row .qm-rank {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-lt);
  color: var(--primary); font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-weight: 800; font-size: 10.5px;
  display: flex; align-items: center; justify-content: center;
}
.qz-match-row.is-top .qm-rank { background: var(--result-color, var(--primary)); color: #fff; }
/* タイプ名は折り返さず1行で見せる（2026-07-14 FB）。バー側が縮んで調整する */
.qz-match-row .qm-name { flex: 0 0 auto; min-width: 208px; white-space: nowrap; font-weight: 700; color: var(--text-sec); line-height: 1.4; }
.qz-match-row.is-top .qm-name { color: var(--text); font-weight: 800; }
.qz-match-row .qm-bar { flex: 1; min-width: 60px; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.qz-match-row .qm-bar i { display: block; height: 100%; border-radius: 999px; }
.qz-match-row .qm-pct { flex: 0 0 38px; text-align: right; font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-weight: 800; color: var(--text-sec); }
.qz-match-row.is-top .qm-pct { color: var(--result-color, var(--primary)); }
@media (max-width: 700px) {
  .qz-match-row .qm-name { min-width: 0; white-space: normal; flex: 0 0 130px; font-size: 11px; }
}
.qz-detail-note { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin-top: 12px; }

/* ===== 詳細レポート（入力後に解放されるゲートコンテンツ） =====
   設計: docs/diagnosis-detail-report-design-2026-07-14.md R1〜R7 */
.qz-report {
  counter-reset: report-sec;
  border: 2px solid var(--result-color, var(--primary-bd)); border-radius: 16px;
  padding: 0 clamp(24px, 5vw, 52px) 44px; margin-bottom: 44px; background: var(--surface);
  box-shadow: 0 18px 40px -26px var(--result-color, rgba(22,58,99,.4));
  overflow: hidden;
}
/* 表紙ヘッダー：タイプ色の淡い色面の帯で「レポートの表紙」らしく大きく見せる
   （バッジ1つだと小さくボタンと誤認される＝2026-07-14 FB） */
.qz-report-head {
  text-align: center; padding: 40px clamp(24px, 5vw, 52px) 34px;
  margin: 0 calc(-1 * clamp(24px, 5vw, 52px)) 14px;
  background: linear-gradient(180deg, var(--result-color-soft, var(--primary-lt)), rgba(255,255,255,0));
  border-bottom: 1px solid var(--border-light);
}
.qz-report-title { font-size: clamp(23px, 3vw, 30px); font-weight: 900; color: var(--text); letter-spacing: -0.8px; line-height: 1.4; margin-bottom: 10px; }
.qz-report-headsub { font-size: 13.5px; font-weight: 700; color: var(--text-sec); }
.qz-report-mailnote { font-size: 11.5px; color: var(--text-muted); margin-top: 12px; }
/* セクション間はレポートらしくゆったり区切る（余白多め＋細い罫線）。
   見出しには通し番号チップを付けて章立て感を出す */
.qz-report-sec { padding: 34px 0; border-top: 1px solid var(--border-light); }
.qz-report-sec:first-of-type { border-top: none; }
/* 見出しはflexで番号チップとテキストの縦位置を揃える（テキスト側は .ht で1ノードに包む）。
   番号は「1,2,…」表記（2026-07-14 FB） */
.qz-report-sec h4 {
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 900; color: var(--text); margin-bottom: 18px; line-height: 1.6; letter-spacing: -0.3px;
}
.qz-report-sec h4::before {
  counter-increment: report-sec; content: counter(report-sec);
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--result-color, var(--primary)); color: #fff;
  font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-size: 15px; font-weight: 800;
}
.qz-report-sec h4 .ht { min-width: 0; }
.qz-report-sec h5 { font-size: 12.5px; font-weight: 800; color: var(--text-sec); margin-bottom: 10px; }
.qz-report-sec p { font-size: 13.5px; color: var(--text-sec); line-height: 2.0; margin-bottom: 8px; }
.qz-report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .qz-report-cols { grid-template-columns: 1fr; } }
.qz-report-sec ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.qz-report-sec ul li {
  font-size: 13px; color: var(--text-sec); line-height: 1.9; padding-left: 18px; position: relative;
}
.qz-report-sec ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--result-color, var(--accent));
}
/* 引用箱: 左だけの色ボーダー禁止ルールに合わせ色なしの箱＋大きな引用符で「例文」らしく */
.qz-report-quote {
  position: relative;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px 20px 56px; font-size: 13.5px; color: var(--text);
  line-height: 2.0;
}
.qz-report-quote::before {
  content: "\201C"; position: absolute; left: 16px; top: 2px;
  font-family: Georgia, serif; font-size: 46px; line-height: 1;
  color: var(--result-color, var(--primary)); opacity: .55;
}
/* 環境／つまずきの2カラムは面で区切ってカード化 */
.qz-report-cols > div {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 20px;
}

/* R1「なぜこのタイプか」: 本文の右に1位タイプのイラストを大きく添える */
.qz-report-why-grid { display: flex; gap: 30px; align-items: center; }
.qz-report-why-grid > div { flex: 1; min-width: 0; }
.qz-report-why-img { flex-shrink: 0; width: clamp(160px, 24%, 210px); aspect-ratio: 1/1; object-fit: contain; }
@media (max-width: 640px) { .qz-report-why-grid { flex-direction: column; } }
/* 中心軸のスコアをドットスケール＋大きな数字で見せる
   （「タイプ基準」との比較は統計があるかのような誤解を招くため廃止＝2026-07-14 FB） */
.qz-why-stats { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.qz-why-stat {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 14px 20px;
}
.qz-why-stat .qws-label { flex: 0 0 96px; font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.4; }
.qz-why-stat .qws-dots { flex: 1; display: flex; gap: 8px; align-items: center; }
.qz-why-stat .qws-dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--border); }
.qz-why-stat .qws-dots i.on { background: var(--result-color, var(--primary)); }
.qz-why-stat .qws-score {
  flex: 0 0 auto; font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-size: 24px; font-weight: 900;
  color: var(--result-color, var(--primary)); line-height: 1;
}
.qz-why-stat .qws-score small { font-size: 11px; font-weight: 800; color: var(--text-muted); margin-left: 2px; }

/* 2位・3位のミニプロフィール（画像つき） */
.qz-report-subranks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
@media (max-width: 700px) { .qz-report-subranks { grid-template-columns: 1fr; } }
.qz-report-subrank {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  border: 2px solid var(--rank-color, var(--primary-bd)); border-radius: var(--radius);
  background: var(--surface);
}
.qz-report-subrank > img { flex-shrink: 0; width: 84px; height: 84px; object-fit: contain; }
.qz-subrank-body { min-width: 0; }
.qz-subrank-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.qz-subrank-no {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--rank-color, var(--primary)); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  font-family: 'Futura PT', 'futura-pt', Futura, 'Jost', sans-serif; font-weight: 900; font-size: 13px;
}
.qz-subrank-no small { font-size: 9px; font-weight: 800; }
.qz-subrank-head h5 { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.5; margin: 0; }
.qz-report-subrank p { font-size: 12px; color: var(--text-sec); line-height: 1.85; margin-bottom: 10px; }
.qz-subrank-jobs { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-subrank-jobs span {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #fff; color: var(--text-sec); border: 1px solid var(--rank-color, var(--border));
}
/* キャリアパス相談CTA（解説セクションの代わりに面談導線へ振り切る帯） */
.qz-report-cta {
  text-align: center; background: var(--result-color-soft, var(--primary-lt));
  border-radius: 16px; padding: 38px 28px;
}
.qz-report-cta-title {
  justify-content: center;
  font-size: clamp(22px, 3vw, 29px); font-weight: 900; color: var(--text);
  line-height: 1.6; margin-bottom: 14px; letter-spacing: -0.6px;
}
.qz-report-cta-title::before { display: none !important; content: none !important; }
.qz-report-cta-lead { font-size: 13px; color: var(--text-sec); line-height: 1.95; max-width: 520px; margin: 0 auto 22px; }
.qz-report-cta-btn { display: inline-block; }

.qz-report-checklist ul li { padding-left: 0; }
.qz-report-checklist ul li::before { display: none; }
/* チェック項目は1つずつカード化してタップしやすく・リッチに */
.qz-report-checklist label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: border-color .15s, background .15s;
}
.qz-report-checklist label:hover { border-color: var(--result-color, var(--primary-bd)); background: #fff; }
.qz-report-checklist input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--result-color, var(--accent)); flex-shrink: 0; }
.qz-report-checklist span { font-size: 13px; color: var(--text); line-height: 1.8; }
.qz-report-check-note {
  margin-top: 16px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--result-color-soft, var(--primary-lt)); font-size: 12.5px; color: var(--text); line-height: 1.85;
}

/* ===== ゲート前ブリッジ「さらに詳細を見たい方へ」 =====
   詳細分析とフォームの間で「診断はまだ終わりではない」ことを伝える。
   詳細レポートのぼかしプレビューで中身を予感させ、フォームへ視線を落とす。 */
.qz-teaser { text-align: center; margin: 72px 0; }
.qz-teaser-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 2px;
  color: var(--accent-dk); background: var(--accent-lt); padding: 6px 18px; border-radius: 999px;
  margin-bottom: 14px;
}
.qz-teaser-title { font-size: clamp(18px, 2.4vw, 22px); font-weight: 900; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.qz-teaser-title em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 62%, rgba(242,183,5,.36) 62%); padding: 0 2px; }
.qz-teaser-lead { font-size: 13px; color: var(--text-sec); line-height: 1.95; max-width: 560px; margin: 0 auto 20px; }
.qz-teaser-preview {
  position: relative; max-width: 620px; margin: 0 auto; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; background: var(--surface); text-align: left;
}
.qz-teaser-fake { padding: 24px 26px; filter: blur(5px); user-select: none; pointer-events: none; }
.qz-teaser-fake h4 { font-size: 14.5px; font-weight: 900; color: var(--text); margin: 14px 0 6px; }
.qz-teaser-fake h4:first-child { margin-top: 0; }
.qz-teaser-fake p { font-size: 12.5px; color: var(--text-sec); line-height: 1.9; }
.qz-teaser-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: flex-end; padding-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.94) 100%);
}
.qz-teaser-veil span { font-size: 12.5px; font-weight: 800; color: var(--text); }
.qz-teaser-arrow { font-style: normal; font-size: 18px; color: var(--accent-dk); animation: qzTeaserBob 1.6s ease-in-out infinite; }
@keyframes qzTeaserBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ===== 診断結果の受け取りフォーム（リード獲得導線） =====
   文言・項目・必須/任意は diagnosis.js の LEAD_FORM_CONFIG で制御する。 */
.qz-leadform {
  padding: 52px clamp(28px, 5vw, 56px); border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 26px;
}
.qz-leadform-title { font-size: 18px; font-weight: 900; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.qz-leadform-lead { font-size: 13px; color: var(--text-sec); line-height: 1.9; margin-bottom: 18px; }
.qz-leadform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 7px 0; /* 入力欄ブロックの上下に7px余白（2026-07-14 神部さんFB） */ }
@media (max-width: 640px) { .qz-leadform-grid { grid-template-columns: 1fr; } }
.qz-req {
  display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; background: var(--accent-lt); color: var(--accent-dk);
  vertical-align: 1px;
}
.qz-req.is-optional { background: var(--primary-lt); color: var(--primary); }
/* 送信ボタンは全幅にせず中央の通常サイズに（2026-07-14 FB） */
.qz-leadform .rf-submit { display: block; width: auto; margin: 4px auto 0; padding: 14px 52px; }

/* 面談予約ブロック：色ベタの薄青箱をやめ、白＋枠＋余白で区切る */
.qz-booking {
  padding: 28px 24px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  scroll-margin-top: 96px; margin: 44px 0 8px;
}
.qz-booking-title { font-size: 18px; font-weight: 900; color: var(--text); line-height: 1.5; margin-bottom: 8px; }
.qz-booking-lead { font-size: 13px; color: var(--text-sec); line-height: 1.9; margin-bottom: 18px; }
.qz-booking .hm-btn-primary { background: var(--accent); color: var(--primary-dk); }
.qz-booking .hm-btn-primary:hover { background: var(--accent-dk); color: #fff; filter: none; }
.ycbm-embed#qz-ycbm-cal { scroll-margin-top: 96px; margin-top: 20px; }
.qz-booking-alt { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--primary); text-decoration: underline; }
.qz-result-actions-end { margin-top: 22px; }

@media (max-width: 640px) {
  .qz-result-hero { flex-direction: column; }
  .qz-result-hero-image { align-self: center; margin: 4px auto -30px; width: min(240px, 78%); }
  .qz-rank-badge { width: 72px; height: 72px; }
  .qz-rank-badge span { font-size: 34px; }
}

@media (max-width: 640px) {
  .qz-card { padding: 32px 22px; }
  .qz-result-cards, .qz-result-cards-3, .qz-rank-rest { grid-template-columns: 1fr; }
}
