@charset "UTF-8";

/* =============================================================================
 * sales-rirekisho.jp — 営業の履歴書作成ツール
 *
 * ⚠️ このファイルがこのサイトの見た目のすべて。本体の /assets/css/app.css は読んでいない。
 *    共有で読むのは /base.css（構造とモーダル論理だけ・自動生成）のみ。
 *    したがって .field / .item / .btn / .authm__* / .mpm__* / .pm-* / .modal__* /
 *    .edu-modal__* など、共有JSが生成・参照するクラスもここで面倒を見る。
 *
 * ⚠️ 日本語Webフォントは読み込まない。1書体で1〜4MBあり、LCPが確実に悪化する。
 *    system-ui 系のスタックで字面を寄せる。
 *
 * ページ別アクセント：履歴書=ブルー / 職務経歴書=グリーン。
 *    body.page-resume / body.page-career で --accent 系だけ差し替える。
 *    それ以外（余白・タイポ・カード・罫線・角丸）は2ページで完全に共通。
 * ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --bg: #ffffff;
  --bg-tint: #f6f8fb;
  --surface: #ffffff;
  --line: #e3e8ef;
  --line-soft: #eef2f7;

  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;

  /* アクセント（既定＝履歴書のブルー。page-career で上書き） */
  --accent: #1d4ed8;
  --accent-hover: #1a43b8;
  --accent-soft: #eef2ff;
  --accent-line: #c7d2fe;
  --on-accent: #ffffff;

  /* 意味色（アクセントとは独立に使う） */
  --ng: #b42318;
  --ng-soft: #fef3f2;
  --ok: #067647;
  --ok-soft: #ecfdf3;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 4px 16px rgba(16, 24, 40, .07);

  --page: 1180px;
  --gutter: 20px;
  --sec-gap: 44px;
  --input-h: 46px;
  --btn-h: 48px;
  --hd-h: 60px;

  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo,
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.page-career {
  --accent: #0f7a52;
  --accent-hover: #0c6544;
  --accent-soft: #ecfdf3;
  --accent-line: #a6e6c8;
}

@media (min-width: 768px)  { :root { --gutter: 24px; --sec-gap: 64px; } }
@media (min-width: 1100px) { :root { --sec-gap: 80px; --hd-h: 68px; } }

/* ------------------------------------------------------------------ base -- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { line-height: 1.45; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 12px; color: var(--on-accent); }

/* --------------------------------------------------------------- header --- */
.hd {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.hd__inner {
  max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--hd-h); display: flex; align-items: center; gap: 12px;
}
.hd__brand {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  color: var(--ink); text-decoration: none; font-weight: 700;
}
.hd__mark { color: var(--accent); flex: 0 0 auto; }
.hd__name { font-size: 15px; white-space: nowrap; }

.hd__burger {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.hd__burger-bars, .hd__burger-bars::before, .hd__burger-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.hd__burger-bars { position: relative; }
.hd__burger-bars::before, .hd__burger-bars::after { content: ""; position: absolute; left: 0; }
.hd__burger-bars::before { top: -6px; }
.hd__burger-bars::after  { top: 6px; }

.hd__menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 18px; box-shadow: var(--shadow);
}
.hd__menu.is-open { display: block; }
.hd__nav { display: flex; flex-direction: column; }
.hd__nav a {
  display: block; padding: 12px 4px; color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-soft);
}
.hd__nav a[aria-current="page"] { color: var(--accent); }
.hd__cta { margin-top: 14px; width: 100%; }

@media (min-width: 1000px) {
  .hd__burger { display: none; }
  .hd__menu {
    display: flex; position: static; align-items: center; gap: 18px;
    padding: 0; border: 0; box-shadow: none; background: none;
  }
  .hd__nav { flex-direction: row; gap: 18px; }
  .hd__nav a { padding: 4px 0; border: 0; font-size: 14px; white-space: nowrap; }
  .hd__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
  .hd__cta { margin-top: 0; width: auto; }
}

/* authbar：中身は共有 auth.js が innerHTML ごと差し替える。ここは受け皿のスタイルだけ。 */
.authbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.authbar a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.authbar a:hover { color: var(--accent); text-decoration: underline; }
.authbar__btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); padding: 8px 14px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.authbar__btn:hover { border-color: var(--accent); color: var(--accent); }
.authbar__email {
  font-size: 13px; color: var(--ink-3); max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 1000px) { .authbar { margin-top: 0; } }

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 22px;
  border-radius: var(--r); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn--ghost:hover { background: var(--surface); }
.btn--ai { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.btn--ai::before { content: "✦"; font-size: 13px; }
.btn--ai:hover { background: var(--surface); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn:disabled { opacity: .55; cursor: default; }

.linklike {
  border: 0; background: none; padding: 0; color: var(--ink-3);
  font-size: 13px; text-decoration: underline; cursor: pointer;
}
.linklike:hover { color: var(--ng); }

/* --------------------------------------------------------------- badges --- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badges--center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 9px 14px;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.badge__mark {
  display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px;
  border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 800;
}

/* ------------------------------------------------------------------ top --- */
/* モバイル：H1 → 短い説明 → 入力フォーム の順（クリックさせずに入力へ到達させる）。
   デスクトップ：左にコピー、右に完成イメージ、その下に幅いっぱいの入力エリア。 */
.top {
  max-width: var(--page); margin: 0 auto; padding: 22px var(--gutter) 0;
  display: flex; flex-direction: column; gap: 18px;
}
.top__copy { order: 1; }
.builder    { order: 2; }
.badges     { order: 3; }
.top__cta   { order: 4; display: none; }
.top__doc   { order: 5; display: none; }

.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumb a { color: var(--ink-3); }

.top__h1 { font-size: clamp(25px, 6.4vw, 30px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.top__tagline { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.top__lede { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.top__doc-cap { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

@media (min-width: 1000px) {
  .top {
    display: grid; gap: 0 40px; padding-top: 44px; align-items: start;
    grid-template-columns: minmax(0, 1fr) 430px;
    grid-template-areas:
      "copy    doc"
      "badges  doc"
      "cta     doc"
      "builder builder";
  }
  .top__copy { grid-area: copy; }
  .badges    { grid-area: badges; margin-top: 22px; }
  .top__cta  { grid-area: cta; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
  .top__doc  { grid-area: doc; display: block; margin: 0; }
  .builder   { grid-area: builder; margin-top: 48px; }
  .top__h1   { font-size: clamp(32px, 3.2vw, 42px); }
  .top__tagline { font-size: 19px; }
  .top__lede { font-size: 15.5px; max-width: 46ch; }
}

/* -------------------------------------------------------------- builder --- */
.builder {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-tint); padding: 18px 14px 20px;
}
.builder__head { margin-bottom: 16px; }
.builder__eyebrow {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft);
}
.builder__title { font-size: 20px; font-weight: 800; scroll-margin-top: calc(var(--hd-h) + 12px); }
.builder__lead { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
/* スマホでは説明を出さず、最初の入力欄をファーストビューに入れる（MAKE系検索意図を優先）。
   同じ情報は入力欄の下の .formnav__note に残してあるので、消えるわけではない。 */
@media (max-width: 999px) {
  .builder__eyebrow, .builder__lead { display: none; }
  .builder__head { margin-bottom: 12px; }
}
@media (min-width: 768px)  { .builder { padding: 26px 24px 28px; } }
@media (min-width: 1000px) { .builder__title { font-size: 24px; } }

/* 進捗：6ステップを崩さず出すため横スクロールにする */
.progress { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.progress::-webkit-scrollbar { height: 4px; }
.progress::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.progress li { flex: 0 0 auto; }
.progress__step {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
}
.progress__step::before {
  content: attr(data-n);
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--line-soft); color: var(--ink-3); font-size: 11px; font-weight: 800;
}
.progress__step.is-done { border-color: var(--accent-line); color: var(--accent); }
.progress__step.is-done::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.progress__step.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.progress__step.is-active::before { background: rgba(255, 255, 255, .25); color: var(--on-accent); }

/* 様式切替 */
.variant { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.variant__btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: var(--r-sm); padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.variant__btn:hover { border-color: var(--accent-line); }
.variant__btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.builder__body { display: flex; flex-direction: column; gap: 18px; }
/* プレビュー列の幅は「見た目の好み」ではなく描画倍率を決める値。
   共有 app.js の renderPdfPages() が targetCss = Math.min(480, wrap.clientWidth) で
   PDF の描画倍率を決めるため、列が細いとPDFがそのまま縮小されて読めなくなる。
   .preview の内寸 = 列幅 - .pane の padding 14×2 - border 1×2 = 列幅 - 30。
   よって 480px で描かせるには列に 510px が要る。狭い画面では入力欄が潰れるので段階的に広げる。 */
@media (min-width: 1000px) {
  .builder__body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
}
@media (min-width: 1200px) {
  .builder__body { grid-template-columns: minmax(0, 1fr) 510px; gap: 32px; }
}

/* ----------------------------------------------------------------- form --- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
@media (min-width: 768px) { .form { padding: 26px 24px; } }

.step { display: none; }
.step.is-active { display: block; }
.step__title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.step__lead { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }

.fgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .fgrid { grid-template-columns: 1fr 1fr; } }

.field { display: block; margin-bottom: 14px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.fgrid .field { margin-bottom: 0; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field__hint { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.7; margin-top: 5px; }
.field__hint--block { margin: 0 0 12px; }
.field__label + .field__hint { margin-top: -2px; margin-bottom: 6px; }

.field input, .field select, .field textarea,
.authm__box input, .authm__box select, .authm__box textarea,
.modal__body input, .modal__body textarea {
  width: 100%; min-height: var(--input-h); padding: 11px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 16px; line-height: 1.6;
}
.field textarea, .modal__body textarea, .authm__box textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa4b2; }
.field input:focus, .field select:focus, .field textarea:focus,
.authm__box input:focus, .modal__body input:focus, .modal__body textarea:focus {
  outline: 3px solid var(--accent-line); outline-offset: 0; border-color: var(--accent);
}
.field select {
  appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

.chip-chk { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chip-chk input { width: 18px; height: 18px; accent-color: var(--accent); }

/* 連絡先の開閉（.collapse.is-open{display:block} は base.css が持っている） */
.subhead--toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  margin-top: 18px; padding: 12px 14px; cursor: pointer; text-align: left;
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  background: var(--bg-tint); color: var(--ink); font-size: 13.5px; font-weight: 700;
}
.subhead--toggle:hover { border-color: var(--accent-line); color: var(--accent); }
.chev { display: inline-block; transition: transform .15s; font-size: 14px; }
.collapse { display: none; margin-top: 14px; }

/* 行（学歴・職歴・免許・スキル） */
.items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.item { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-tint); padding: 16px 14px 14px; }
.item .field:last-of-type { margin-bottom: 0; }
.item__del {
  /* ⚠️ 中に子要素を入れないこと。app.js は e.target.classList に item__del があるかで判定する。 */
  margin-top: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
  border-radius: var(--r-sm); padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.item__del:hover { border-color: var(--ng); color: var(--ng); }
.addrow {
  width: 100%; border: 1px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent);
  border-radius: var(--r-sm); padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.addrow:hover { background: var(--surface); }

.final-edu-note {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px; color: var(--ink-2); margin-bottom: 14px;
}
.final-edu-note:empty { display: none; }

/* 証明写真 */
.photo-area { grid-column: 1 / -1; }
.photo { display: flex; gap: 14px; align-items: flex-start; }
.photo__thumb {
  flex: 0 0 auto; width: 96px; height: 128px; overflow: hidden;
  border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--bg-tint);
  display: grid; place-items: center;
}
.photo__thumb img { width: 100%; height: 100%; object-fit: cover; }
#photoPlaceholder { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.photo__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }

/* 曜日 */
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day {
  min-width: 44px; min-height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: 14px; font-weight: 700; cursor: pointer; user-select: none;
}
.day.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* 提出日 */
.submitdate { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 20px 0 0; }
.submitdate__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.submitdate__row input { width: 84px; min-width: 0; }
.submitdate__row span { font-size: 13.5px; color: var(--ink-2); }

/* ナビ */
.formnav { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.formnav .btn { width: 100%; }
.btn--prev.is-hidden { display: none; }
.formnav__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
@media (min-width: 560px) {
  .formnav { flex-direction: row; flex-wrap: wrap; }
  .formnav .btn { width: auto; }
  .btn--prev { order: 1; flex: 0 0 auto; }
  #doPreview  { order: 2; flex: 1 1 180px; }
  .btn--next  { order: 3; flex: 1 1 200px; }
}

/* --------------------------------------------------- プレビュー / 完成例 --- */
.pane { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 14px; }
.pane__head { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.pane__note { font-size: 12.5px; color: var(--ok); background: var(--ok-soft); border-radius: var(--r-sm); padding: 6px 10px; margin-bottom: 8px; }
.pane__foot { margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.75; }
.preview { min-height: 220px; }
@media (min-width: 1000px) { .pane { position: sticky; top: calc(var(--hd-h) + 16px); } }

/* app.js がプレビュー実行時に生成する枠 */
.preview .paper {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); min-height: 260px; padding: 40px 16px 16px;
  display: grid; place-items: center; text-align: center;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
}
.preview .a4tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: var(--accent); background: var(--accent-soft);
}

/* 完成イメージ（画像ではなく HTML/CSS で組む） */
.docsample { position: relative; }
.docsample__tag {
  position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; background: var(--ink); color: #fff;
}
.docsample__paper {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  box-shadow: var(--shadow-sm); padding: 14px 12px;
  font-size: 9.5px; line-height: 1.65; color: #1b2430;
}
.docsample__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1.5px solid #1b2430; padding-bottom: 6px; margin-bottom: 8px; }
.docsample__title { font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.docsample__date { font-size: 8.5px; color: #5b6572; }
.docsample__idrow { display: flex; gap: 8px; align-items: flex-start; }
.docsample__id { flex: 1 1 auto; min-width: 0; }
.docsample__kv { display: flex; gap: 6px; border-bottom: 1px solid #e6eaef; padding: 3px 0; }
.docsample__kv span { flex: 0 0 52px; color: #6b7684; font-size: 8.5px; }
.docsample__kv b { font-weight: 700; min-width: 0; }
.docsample__kv--name b { font-size: 12px; }
.docsample__photo {
  flex: 0 0 auto; width: 52px; height: 68px; border: 1px dashed #c4ccd6; border-radius: 3px;
  display: grid; place-items: center; text-align: center; font-size: 7.5px; color: #8a94a1; line-height: 1.5;
}
.docsample__tbl { width: 100%; border-collapse: collapse; margin: 8px 0; }
.docsample__tbl th, .docsample__tbl td { border-bottom: 1px solid #e6eaef; padding: 3px 4px; text-align: left; font-weight: 400; vertical-align: top; }
.docsample__tbl th { width: 58px; color: #6b7684; font-variant-numeric: tabular-nums; white-space: nowrap; }
.docsample__block { margin-top: 8px; }
.docsample__h { font-weight: 800; font-size: 9px; color: #1b2430; border-left: 2px solid var(--accent); padding-left: 5px; margin-bottom: 3px; }
.docsample__co { font-weight: 700; margin-top: 5px; }
.docsample__block ul { list-style: disc; padding-left: 15px; }
.docsample__block li { margin-bottom: 1px; }
@media (min-width: 1000px) {
  .top__doc .docsample__paper { font-size: 11px; padding: 20px 18px; }
  .top__doc .docsample__title { font-size: 16px; }
  .top__doc .docsample__photo { width: 66px; height: 88px; }
}

/* ------------------------------------------------------------- sections --- */
.section { max-width: var(--page); margin: 0 auto; padding: var(--sec-gap) var(--gutter); }
.section--tint { max-width: none; background: var(--bg-tint); border-block: 1px solid var(--line-soft); }
.section--tint > * { max-width: var(--page); margin-inline: auto; }
.section__h {
  font-size: clamp(21px, 4.6vw, 30px); font-weight: 800; letter-spacing: -.01em;
  margin-bottom: 12px; scroll-margin-top: calc(var(--hd-h) + 12px);
}
.section__lede { font-size: 14.5px; color: var(--ink-2); max-width: 62ch; margin-bottom: 26px; }
.section__cta { margin-top: 22px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px)  { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px)  { .cards--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--5 { grid-template-columns: repeat(5, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85;
}
.card__n { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .08em; margin-bottom: 4px; }
.card__h { font-size: 15.5px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 34px; }
  .split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.notelist { display: flex; flex-direction: column; gap: 10px; }
.notelist li {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 14px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
}
.notelist b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

.ba { margin-top: 30px; }
.ba__h { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.ba__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 800px) { .ba__grid { grid-template-columns: 1fr 1fr; } }
.ba__col { border-radius: var(--r); padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.ba__col--ng { background: var(--ng-soft); border-color: #fecdca; }
.ba__col--ok { background: var(--ok-soft); border-color: #a9e5c3; }
.ba__tag { font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.ba__col--ng .ba__tag { color: var(--ng); }
.ba__col--ok .ba__tag { color: var(--ok); }
.ba__text { font-size: 14px; line-height: 1.85; }
.ba__why { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.howto { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px)  { .howto { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .howto { grid-template-columns: repeat(3, 1fr); } }
.howto__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.howto__h { font-size: 15px; font-weight: 800; margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.howto__item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; line-height: 1.75; }
.tbl thead th { background: var(--bg-tint); font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.tbl tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl--diff td { color: var(--ink-2); }

.side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.side__h { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.side__lede { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.side__list { display: flex; flex-direction: column; gap: 10px; }
.side__list li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.side__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.side__list b { display: block; color: var(--ink); }
.side__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.callout { margin-top: 22px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r); padding: 18px 16px; }
.callout__h { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; }
.callout p { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

/* タブ：CSSだけで切り替える。中身は全部HTMLに置いたまま＝クロールできる。 */
.tabs__set { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs__label {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.tabs__label:hover { border-color: var(--accent-line); color: var(--accent); }
.tabs__radio:focus-visible + .tabs__label { outline: 3px solid var(--accent); outline-offset: 2px; }
.tabs__panel { display: none; flex-basis: 100%; order: 99; }
#extab1:checked ~ .tabs__label[for="extab1"], #extab2:checked ~ .tabs__label[for="extab2"],
#extab3:checked ~ .tabs__label[for="extab3"], #extab4:checked ~ .tabs__label[for="extab4"],
#cxtab1:checked ~ .tabs__label[for="cxtab1"], #cxtab2:checked ~ .tabs__label[for="cxtab2"],
#cxtab3:checked ~ .tabs__label[for="cxtab3"], #cxtab4:checked ~ .tabs__label[for="cxtab4"],
#cxtab5:checked ~ .tabs__label[for="cxtab5"], #cxtab6:checked ~ .tabs__label[for="cxtab6"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
#extab1:checked ~ .tabs__panel:nth-of-type(1), #extab2:checked ~ .tabs__panel:nth-of-type(2),
#extab3:checked ~ .tabs__panel:nth-of-type(3), #extab4:checked ~ .tabs__panel:nth-of-type(4),
#cxtab1:checked ~ .tabs__panel:nth-of-type(1), #cxtab2:checked ~ .tabs__panel:nth-of-type(2),
#cxtab3:checked ~ .tabs__panel:nth-of-type(3), #cxtab4:checked ~ .tabs__panel:nth-of-type(4),
#cxtab5:checked ~ .tabs__panel:nth-of-type(5), #cxtab6:checked ~ .tabs__panel:nth-of-type(6) {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px;
}
@media (min-width: 800px) {
  #extab1:checked ~ .tabs__panel:nth-of-type(1), #extab2:checked ~ .tabs__panel:nth-of-type(2),
  #extab3:checked ~ .tabs__panel:nth-of-type(3), #extab4:checked ~ .tabs__panel:nth-of-type(4),
  #cxtab1:checked ~ .tabs__panel:nth-of-type(1), #cxtab2:checked ~ .tabs__panel:nth-of-type(2),
  #cxtab3:checked ~ .tabs__panel:nth-of-type(3), #cxtab4:checked ~ .tabs__panel:nth-of-type(4),
  #cxtab5:checked ~ .tabs__panel:nth-of-type(5), #cxtab6:checked ~ .tabs__panel:nth-of-type(6) {
    grid-template-columns: 1fr 1fr;
  }
}
.excol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.excol__h { font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.excol__t { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.tabs__note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* FAQ：details＝中身をDOMに残したまま折りたたむ */
.faq { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 800px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq__item summary { position: relative; cursor: pointer; list-style: none; padding: 14px 42px 14px 16px; font-size: 14px; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "＋"; position: absolute; right: 16px; top: 13px; color: var(--accent); font-weight: 800; }
.faq__item[open] summary::after { content: "－"; }
.faq__item p { padding: 0 16px 16px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

.finalcta { background: var(--bg-tint); border-top: 1px solid var(--line-soft); padding: var(--sec-gap) var(--gutter); text-align: center; }
.finalcta__h { font-size: clamp(20px, 4.6vw, 28px); font-weight: 800; margin-bottom: 18px; letter-spacing: .02em; }
.finalcta .badges { margin-bottom: 22px; }
.finalcta__btns { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; }
@media (min-width: 640px) { .finalcta__btns { flex-direction: row; justify-content: center; } }

/* --------------------------------------------------------------- footer --- */
.ft { background: #0f1720; color: #cbd5e1; padding: 40px var(--gutter) 26px; }
.ft__inner { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 800px) { .ft__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; } }
.ft__name { font-size: 15px; font-weight: 800; color: #fff; }
.ft__desc { margin-top: 8px; font-size: 12.5px; line-height: 1.85; color: #94a3b8; max-width: 40ch; }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 560px) { .ft__nav { grid-template-columns: repeat(3, 1fr); } }
.ft__col { display: flex; flex-direction: column; gap: 8px; }
.ft__h { font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .04em; margin-bottom: 2px; }
.ft__col a { font-size: 13px; color: #cbd5e1; text-decoration: none; }
.ft__col a:hover { color: #fff; text-decoration: underline; }
.ft__copy { max-width: var(--page); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid #1e293b; font-size: 12px; color: #94a3b8; }

/* 追従CTA（スマホのみ） */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); transition: transform .15s;
}
.stickycta .btn { width: 100%; }
body { padding-bottom: 78px; }
/* 入力中はキーボードとCTAが重なるので退避させる */
body:has(.form :focus) .stickycta { transform: translateY(120%); pointer-events: none; }
@media (min-width: 1000px) {
  .stickycta { display: none; }
  body { padding-bottom: 0; }
}

/* 文例データ：視覚的には隠すが、DOMと読み上げには残す */
.seo-samples {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ============================ 共有JSが出す・参照するUI（モーダル類） ======== */
.authm, .pmodal, .modal, .edu-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal { display: none; }
.modal.is-open { display: flex; }
.authm__backdrop, .pmodal__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); }
.authm__box, .pmodal__box, .modal__box, .edu-modal__box {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(16, 24, 40, .28);
  padding: 26px 22px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal__box { max-width: 560px; }
.modal--ex .modal__box { max-width: 620px; }
.authm__box--mp { max-width: 520px; }
.authm__x, .pmodal__x, .modal__close, .edu-modal__x {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 0; background: none; color: var(--ink-3); font-size: 24px; line-height: 1; cursor: pointer;
}
.authm__x:hover, .modal__close:hover, .edu-modal__x:hover, .pmodal__x:hover { background: var(--bg-tint); color: var(--ink); }
.modal__head, .pmodal__title, .edu-modal__box h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 14px; padding-right: 36px;
}
.modal__body { margin-bottom: 16px; }
.modal__foot, .edu-modal__foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.modal__foot button, .edu-modal__apply, .edu-modal__cancel, .pm-btn {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
#modalAction, .edu-modal__apply, .pm-btn--prim, .authm__submit {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
#modalAction:hover, .edu-modal__apply:hover, .pm-btn--prim:hover, .authm__submit:hover { background: var(--accent-hover); }
.pm-btn--ai { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.pm-btn--ghost { color: var(--ink-2); }

.edu-modal__box > label { display: block; margin-bottom: 12px; font-size: 13.5px; font-weight: 700; }
.edu-modal__box select, .edu-modal__box input[type="number"] {
  width: 100%; min-height: var(--input-h); padding: 10px 12px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 16px; font-family: inherit;
}
.edu-modal__box > label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-right: 8px; vertical-align: middle; }
#eduSub { margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.edu-sub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.edu-sub-lbl { flex: 0 0 auto; min-width: 168px; font-weight: 700; }
.edu-sub-row input { width: 84px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; }
.edu-sub-hint { font-size: 11.5px; color: var(--ink-3); }
.edu-cheat__h { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.edu-cheat__row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid var(--line-soft); }
.edu-cheat__note { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

/* 認証・マイページ */
.authm__title { font-size: 19px; font-weight: 800; text-align: center; margin: 0 0 6px; }
.authm__lead { font-size: 12.5px; color: var(--ink-2); text-align: center; margin: 0 0 18px; line-height: 1.8; }
.authm__box .field { margin-bottom: 12px; }
.authm__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.7; margin-bottom: 14px; }
.authm__consent input, .authm__optin input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.authm__optin { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 10px 0 4px; cursor: pointer; }
.authm__optin-desc { font-size: 13px; color: var(--accent); font-weight: 800; text-align: center; line-height: 1.6; margin: 4px 0 8px; }
.authm__note { font-size: 11.5px; color: var(--ink-3); line-height: 1.75; margin: 0 0 14px; }
.authm__msg { color: var(--ng); font-size: 12.5px; line-height: 1.7; min-height: 1em; margin: 2px 0 10px; }
.authm__msg.is-ok { color: var(--ok); }
.authm__msg:empty { min-height: 0; margin: 0; }
.authm__submit { width: 100%; min-height: var(--btn-h); border-radius: var(--r); font-size: 15px; }
.authm__skip { display: block; width: 100%; margin-top: 10px; border: 0; background: none; color: var(--ink-3); font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.authm__switch { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 16px; line-height: 1.9; }
.authm__switch a, .authm__forgot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.authm__switch a:hover, .authm__forgot a:hover { text-decoration: underline; }
.authm__forgot { text-align: right; font-size: 12.5px; margin: -4px 0 12px; }
.authm__forgot-lead { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin: 0 0 14px; }
.authm__google { width: 100%; min-height: var(--btn-h); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); font-weight: 700; font-size: 14px; cursor: pointer; }
.authm__or { text-align: center; font-size: 11.5px; color: var(--ink-3); margin: 12px 0; }

.mpm__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mpm__head .authm__title { text-align: left; margin: 0; }
.mpm__logout { border: 0; background: none; color: var(--ink-3); text-decoration: underline; cursor: pointer; font-size: 13px; }
.mpm__email { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpm__body { margin-top: 14px; }
.mpm__list { display: flex; flex-direction: column; gap: 10px; }
.mpm__item { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mpm__meta { flex: 1 1 200px; min-width: 0; }
.mpm__type { display: inline-block; font-weight: 800; font-size: 11px; color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 999px; padding: 1px 9px; margin-bottom: 4px; }
.mpm__fmt { font-weight: 700; font-size: 13.5px; }
.mpm__date { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.mpm__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mpm__btn:hover { border-color: var(--accent); color: var(--accent); }
.mpm__btn--dl, .mpm__btn--edit { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mpm__btn--dl:hover, .mpm__btn--edit:hover { background: var(--accent-hover); color: var(--on-accent); }
.mpm__empty { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.mpm__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
.mpm__new { font-size: 13px; color: var(--accent); font-weight: 700; text-decoration: none; }
.mpm__foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; }
.mpm__delete { border: 0; background: none; color: var(--ink-3); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.mpm__delete:hover { color: var(--ng); }

/* 証明写真モーダル */
.pmodal__lead { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.8; }
.pm-sec { display: block; }
.pm-sec[hidden] { display: none; }
.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pm-actions--col { flex-direction: column; }
.pm-actions--col .pm-btn { width: 100%; }
.pm-canvas-wrap { display: grid; place-items: center; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; }
.pm-canvas-wrap canvas { max-width: 100%; height: auto; touch-action: none; }
.pm-preview { display: grid; place-items: center; }
.pm-preview img, .pm-compare img { border: 1px solid var(--line); border-radius: var(--r-sm); }
.pm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-pick { display: grid; place-items: center; gap: 8px; text-align: center; font-size: 12.5px; }
.pm-pick.is-selected img { outline: 3px solid var(--accent); outline-offset: 2px; }
.pm-gender { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0; }
.pm-gender__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.pm-gender__label input { width: 18px; height: 18px; accent-color: var(--accent); }
.pm-note { font-size: 12px; color: var(--ink-3); line-height: 1.75; margin-top: 10px; }
.pm-loading { display: grid; place-items: center; gap: 12px; padding: 26px 0; text-align: center; }
.pm-spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: pmspin .8s linear infinite; }
@keyframes pmspin { to { transform: rotate(360deg); } }

/* 文例モーダル */
.exsel { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 560px) { .exsel { grid-template-columns: 1fr 1fr; } }
.exsel select { width: 100%; min-height: var(--input-h); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; font-family: inherit; }
.excard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--bg-tint); }
.excard__label { font-size: 12.5px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.excard__main { display: flex; align-items: center; gap: 10px; }
.excard__arrow { flex: 0 0 auto; min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); cursor: pointer; font-size: 16px; }
.excard__arrow:disabled { opacity: .4; cursor: default; }
.excard__text { flex: 1 1 auto; min-width: 0; max-height: 240px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; }
.excard__empty { color: var(--ink-3); }
.excard__count { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; }
.exconfirm { font-size: 13px; color: var(--ng); background: var(--ng-soft); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px; }

/* ============================== 記事ページ（職種別・状況別の書き方） ============= */
/* 記事は app.js を読まない。フォーム系のクラスは使わず、この節と共通部品（.tbl .faq .callout .ba .cards）で組む。 */
.art { max-width: var(--page); margin: 0 auto; padding: 22px var(--gutter) 0; }
.art__wrap { max-width: 780px; }
@media (min-width: 1100px) {
  .art { display: grid; grid-template-columns: minmax(0, 780px) 300px; gap: 48px; align-items: start; }
  .art__wrap { grid-column: 1; }
  .art__side { grid-column: 2; position: sticky; top: calc(var(--hd-h) + 16px); }
}
.art__head { margin: 10px 0 22px; }
.art__eyebrow { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); }
.art__h1 { font-size: clamp(24px, 5.4vw, 34px); font-weight: 800; letter-spacing: -.01em; line-height: 1.45; }
.art__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.art__meta time { font-variant-numeric: tabular-nums; }

/* 直答ブロック：検索した人が最初に読む一段落。AI要約にも引かれる位置。 */
.art__answer {
  border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); border-radius: var(--r);
  background: var(--accent-soft); padding: 16px 18px; margin: 0 0 18px;
}
.art__answer-h { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--accent); margin-bottom: 6px; }
.art__answer p { font-size: 15px; line-height: 1.9; color: var(--ink); margin: 0; }
.art__answer p + p { margin-top: 8px; }

/* ハブへの受け渡し：この記事が扱う範囲を宣言し、全体構成はハブへ送る。 */
.art__handoff {
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-tint);
  padding: 14px 16px; margin: 0 0 30px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8;
}
.art__handoff p { margin: 0; flex: 1 1 320px; }
.art__handoff .btn { flex: 0 0 auto; }

.art__toc { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0 0 30px; background: var(--surface); }
.art__toc-h { font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 8px; }
.art__toc ol { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.art__toc a { font-size: 13.5px; color: var(--ink); text-decoration: none; }
.art__toc a:hover { color: var(--accent); text-decoration: underline; }
.art__toc ol ol { padding-left: 16px; margin-top: 5px; gap: 3px; }
.art__toc ol ol a { font-size: 12.5px; color: var(--ink-2); }

.art__body h2 { font-size: clamp(20px, 4.4vw, 25px); font-weight: 800; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); scroll-margin-top: calc(var(--hd-h) + 12px); }
.art__body h3:not(.card__h) { font-size: 17px; font-weight: 800; margin: 30px 0 10px; padding-left: 11px; border-left: 3px solid var(--accent); scroll-margin-top: calc(var(--hd-h) + 12px); }
.art__body h4 { font-size: 15px; font-weight: 700; margin: 22px 0 8px; }
.art__body p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.95; }
.art__body ul:not(.cards), .art__body ol:not(.cards) { margin: 0 0 16px; padding-left: 1.4em; }
.art__body ul:not(.cards) { list-style: disc; }
.art__body ol:not(.cards) { list-style: decimal; }
.art__body .cards { margin: 18px 0 22px; }
.art__body .cards li { list-style: none; margin: 0; }
.art__body .card p { margin: 0 0 10px; font-size: 13.5px; }
.art__body .card p:last-child { margin: 0; }
.art__body li { margin-bottom: 7px; line-height: 1.9; font-size: 15px; }
.art__body strong { font-weight: 700; }
.art__body .tblwrap { margin: 18px 0 22px; }
.art__body .callout, .art__body .ba { margin: 22px 0; }
.art__body .faq { margin: 18px 0; }

/* 記入例ブロック：数値は記入例だと必ず分かるように、枠自体にラベルを持たせる */
.ex {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 18px 16px 16px; margin: 20px 0 24px;
}
.ex::before {
  content: "記入例"; position: absolute; top: -10px; left: 14px; padding: 1px 9px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
}
.ex__t { font-size: 14px; line-height: 1.95; white-space: pre-wrap; font-family: inherit; margin: 0; }
.ex--ng { border-color: #fecdca; background: var(--ng-soft); }
.ex--ng::before { content: "改善前"; background: var(--ng); }
.ex--ok { border-color: #a9e5c3; background: var(--ok-soft); }
.ex--ok::before { content: "改善後（記入例）"; background: var(--ok); }
.ex__why { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }

.art__foot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.art__cta { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 22px 20px; text-align: center; }
.art__cta-h { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.art__cta p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
.art__cta .btn { min-width: 260px; }
.art__sources { margin-top: 26px; font-size: 13px; color: var(--ink-2); }
.art__sources-h { font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 6px; }
.art__sources ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.art__sources a { word-break: break-all; }
.art__pub { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.art__pub b { color: var(--ink-2); font-weight: 700; }

/* 記事索引（ハブに置く。build.mjs が生成する） */
.aidx { margin-top: 30px; }
.aidx__h { font-size: 17px; font-weight: 800; margin: 0 0 14px; }
.aidx__group { margin-bottom: 18px; }
.aidx__g { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .02em; margin: 0 0 8px; }
.aidx ul { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .aidx ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .aidx ul { grid-template-columns: repeat(3, 1fr); } }
.aidx a {
  display: block; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 12px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s;
}
.aidx a:hover { border-color: var(--accent); }
.aidx b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.aidx span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* 関連記事（記事末尾・同クラスタ） */
.art__rel { margin-top: 30px; }
.art__rel-h { font-size: 15px; font-weight: 800; margin-bottom: 10px; }

/* 索引：クラスタは details で畳む（クロール到達性は保ちつつ、ハブの見た目を膨らませない） */
.aidx details { border-top: 1px solid var(--line); padding: 8px 0 12px; margin: 0; }
.aidx details:last-of-type { border-bottom: 1px solid var(--line); }
.aidx summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; font-weight: 800; color: var(--accent); }
.aidx summary::-webkit-details-marker { display: none; }
.aidx summary::before { content: "＋"; font-weight: 800; color: var(--ink-3); }
.aidx details[open] summary::before { content: "－"; }
.aidx__n { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.aidx details ul { margin-top: 8px; }
.aidx__all { margin-top: 14px; font-size: 14px; font-weight: 700; }

/* 記事：メタ行の著者リンク・対リンク・区分チップ・訂正・本文内の完成記入例 */
.art__meta a { color: var(--ink-2); text-decoration: underline; }
.art__pair { margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.art__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.art__chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); text-decoration: none; background: var(--surface); }
a.art__chip:hover { border-color: var(--accent); color: var(--accent); }
.art__correction { border-left: 3px solid var(--ng); background: var(--ng-soft); padding: 10px 14px; margin: 22px 0; font-size: 13.5px; }
.art__body dfn { font-style: normal; font-weight: 800; }
.art__body .docsample { margin: 18px 0 26px; max-width: 520px; }
.art__body .docsample__paper { font-size: 11px; padding: 18px 16px; }

/* ハブの運営者ブロック */
.hubpub { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) var(--sec-gap); display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.hubpub b { color: var(--ink-2); }
.hubpub a { color: var(--accent); }

/* 一覧ページ（/shokumu-keirekisho/ichiran/・/rirekisho/ichiran/）。中身はビルドが生成する。 */
.art__wrap--wide { max-width: 960px; }
.ichiran .ichiran__h { font-size: 20px; font-weight: 800; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.ichiran .ichiran__h--axis { margin-top: 56px; border-bottom-color: var(--accent); }
.ichiran__list { display: grid; grid-template-columns: 1fr; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
@media (min-width: 700px) { .ichiran__list { grid-template-columns: 1fr 1fr; } }
.ichiran__list a { display: block; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 12px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.ichiran__list a:hover { border-color: var(--accent); }
.ichiran__list b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.ichiran__list span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.ichiran__tag { font-size: 14px; font-weight: 800; margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); display: flex; align-items: baseline; gap: 8px; scroll-margin-top: calc(var(--hd-h) + 12px); }
.ichiran__list--compact { display: flex; flex-wrap: wrap; gap: 6px; }
.ichiran__list--compact li { list-style: none; }
.ichiran__list--compact a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ichiran__empty { color: var(--ink-3); font-size: 14px; }
