/* ============================================================
   薬剤師の教科書 – design system 「教科書と台帳」
   紙 #FBFAF6 / 墨 #22262E / 主色 #2f6d52 / 差し色 #b8562f
   見出し: Shippori Mincho B1 / 本文: Zen Kaku Gothic New
   モチーフ: 帳簿の罫線・章立て・確認日の朱印
   ============================================================ */
:root {
  --paper: #fbfaf6;
  --paper-shade: #f4f2eb;
  --white: #ffffff;
  --ink: #22262e;
  --ink-soft: #6e7480;
  --ai: #2f6d52;
  --ai-deep: #204c39;
  --ai-pale: #e9f2ed;
  --shu: #b8562f;
  --shu-deep: #95421f;
  --shu-pale: #f9ede7;
  --rule: #dfe5ee;      /* 帳簿の淡青罫線 */
  --hairline: #e5e2d8;  /* 紙の折り目色の罫線 */
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --radius: 4px;
  --card-shadow: 0 1px 2px rgba(34, 38, 46, 0.05);

  /* **--lp-* は9か所で使われているのに、どこにも定義が無かった。**(2026-09-07 に発見)
     予備値を持つのは2か所だけで、残る7か所は無効値。結果として
       .shindan-sec  背景が付いていなかった（このサイトの主役の節）
       .sh-opt など  border-color が currentColor に落ちて、意図より重い枠になっていた
       .shindan-box  影が付いていなかった
     **エラーは出ない。**CSSの無効値は黙って捨てられるだけなので、
     「表示できている」で通っていた（付則A-12「壊れていないかだけを見る検査は、無いものを合格にする」）。
     値は既存の紙・罫線の色に合わせる。 */
  --lp-bg-soft: var(--paper-shade);
  --lp-line: var(--hairline);
  --lp-radius: 14px;
  --lp-shadow-lg: 0 2px 6px rgba(16, 32, 56, .08), 0 24px 56px -20px rgba(16, 32, 56, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
  padding-bottom: 84px; /* room for the fixed CTA */
  font-feature-settings: "palt";
}
img { max-width: 100%; height: auto; }
a { color: var(--ai); }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 2px; }

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

/* ---------------- 確認日の朱印 (site signature) ---------------- */
.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 2px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  transform: rotate(-8deg);
  font-family: var(--serif);
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  user-select: none;
}
.stamp b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  margin-bottom: 2px;
}
.stamp i { font-style: normal; font-size: 9.5px; font-weight: 700; }
.stamp-sm { width: 62px; height: 62px; }
.stamp-sm b { font-size: 12.5px; }
.stamp-sm i { font-size: 8.5px; }

/* ---------------- fixed header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand svg { display: block; }
.brand-text { line-height: 1.25; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: block;
}
.brand-tag {
  display: block;
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.global-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.global-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.global-nav a:hover { color: var(--ai); border-bottom-color: var(--ai); }
.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ai);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.35;
  padding: 9px 16px;
  border-radius: var(--radius);
}
.header-cta:hover { background: var(--ai-deep); }
.header-cta svg { flex-shrink: 0; }

.header-offset { height: 68px; }

.ad-notice {
  font-size: 10px;
  color: var(--ink-soft);
  background: var(--paper-shade);
  border-bottom: 1px solid var(--hairline);
  padding: 3px 16px;
  text-align: right;
}

/* ---------------- hero: 罫線ノートの上の宣言 ---------------- */
.hero {
  position: relative;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    var(--rule) 35px,
    var(--rule) 36px
  );
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.hero::before {
  /* ノートの赤い縦罫 */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: max(16px, calc((100% - 1200px) / 2));
  width: 1px;
  background: var(--shu);
  opacity: 0.4;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 16px 56px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}
.hero-copy { padding-left: 26px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ai-deep);
  letter-spacing: 0.04em;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 3px 12px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.hero-lede {
  margin-top: 18px;
  font-size: 14.5px;
  color: #454b57;
  max-width: 560px;
  font-weight: 500;
  background: rgba(251, 250, 246, 0.85);
}
/* search box */
.hero-search {
  margin-top: 24px;
  max-width: 540px;
  position: relative;
}
.hero-search-row {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-search-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: var(--paper-shade);
  border-right: 1px solid var(--hairline);
  white-space: nowrap;
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  padding: 13px 14px;
  font-family: inherit;
  min-width: 0;
  background: var(--white);
}
.hero-search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  padding: 0 22px;
  cursor: pointer;
  font-family: inherit;
}
.hero-search button:hover { background: var(--ai-deep); }
.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(34, 38, 46, 0.14);
  overflow: hidden;
  display: none;
  z-index: 30;
}
.search-suggest a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover { background: var(--ai-pale); color: var(--ai-deep); }
/* 目的別クイックナビ(着地直後に「欲しい情報の場所」を示す) */
.intent-band {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0 26px;
}
.char { display: inline-block; line-height: 0; }
.char svg { display: block; }
.char img {
  display: block;
  height: auto;
  /* 生成画像の白背景を紙色に溶かす */
  mix-blend-mode: multiply;
}
.intent-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.intent-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 26px;
}
.intent-bubble {
  display: inline-block;
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 8px 18px;
}
.intent-bubble::before {
  content: "";
  position: absolute;
  left: -6.5px;
  bottom: 12px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.intent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.intent-card:hover { border-color: var(--ai); background: var(--ai-pale); }
.intent-card svg { flex-shrink: 0; }
.intent-q {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
}
.intent-go {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ai);
}
.intent-card:hover .intent-go { text-decoration: underline; }

/* hero right: 実データの台帳カード */
.ledger-card {
  position: relative;
  background: var(--white);
  border: 1px solid #c9cfdb;
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 rgba(33, 81, 143, 0.08);
  padding: 20px 22px 16px;
}
.ledger-card .stamp {
  position: absolute;
  top: -16px;
  right: -12px;
}
.ledger-card-head {
  border-bottom: 3px double var(--ai);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.ledger-no {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ai);
}
.ledger-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.ledger-rows { margin: 0; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--rule);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row dt { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); flex-shrink: 0; }
.ledger-row dd {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  line-height: 1.5;
}
.ledger-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 10.5px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.04em;
}
.hero-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 8px;
}
.hero-table th {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: left;
  padding: 4px 2px;
  border-bottom: 1px solid var(--ink);
}
.hero-table td {
  padding: 8px 2px;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.hero-table td a {
  color: var(--ai);
  text-decoration: none;
  font-weight: 800;
}
.hero-table td a:hover { text-decoration: underline; }
.ledger-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ai);
  text-decoration: none;
}
.ledger-more:hover { text-decoration: underline; }

/* ---------------- layout ---------------- */
main { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

/* 目次(教科書の巻頭目次。点線のリーダー罫付き) */
.mokuji {
  background: var(--white);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  border-radius: 1px;
  max-width: 640px;
  margin: 44px auto 8px;
  padding: 20px 28px 22px;
}
.mokuji-title {
  font-family: var(--serif);
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink);
  margin-bottom: 12px;
}
.mokuji ol { list-style: none; margin: 0; padding: 0; }
.mokuji li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  color: var(--ink);
}
.mokuji-no {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--shu);
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.mokuji-label { font-size: 13.5px; font-weight: 700; }
.mokuji li a:hover .mokuji-label { color: var(--ai); }
.mokuji-leader {
  flex: 1;
  border-bottom: 2px dotted #b9c3d4;
  transform: translateY(-4px);
}

/* 章見出し(教科書の章扉) */
.chapter-head {
  margin: 60px 0 22px;
  padding-bottom: 12px;
  border-bottom: 3px double #b9c3d4;
  position: relative;
}
.chapter-chars {
  position: absolute;
  right: 6px;
  bottom: 8px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
}
.chapter-no {
  display: inline-block;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--shu);
  border: 1px solid var(--shu);
  padding: 1px 10px;
  margin-bottom: 8px;
}
.chapter-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.chapter-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------------- pickup company cards ---------------- */
.pickup-band {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 26px 22px;
  margin-bottom: 10px;
}
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.pickup-card { text-align: center; min-width: 0; }
.pickup-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  height: 104px;
  padding: 10px;
  margin-bottom: 10px;
}
.pickup-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pickup-fee {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 4px 0 10px;
}
.pickup-fee b { color: var(--shu-deep); font-size: 15px; font-weight: 900; }
.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--shu);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  width: 100%;
  transition: background 0.2s;
}
.btn-teal:hover { background: var(--shu-deep); }
.pickup-detail-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-soft);
}

/* ---------------- さくいん (条件から探す) ---------------- */
.cat-scroller {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cat-box {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ai);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 16px 14px;
  min-width: 0;
}
.cat-box h3 {
  font-family: var(--serif);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.04em;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  text-decoration: none;
}
.cat-row:last-of-type { border-bottom: 0; }
.cat-initial {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}
.cat-row-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}
.cat-row-sub { font-size: 11px; color: var(--ink-soft); display: block; font-weight: 500; }
.cat-row:hover .cat-row-name { color: var(--ai); }
.cat-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ai);
  text-decoration: none;
}
.cat-more:hover { text-decoration: underline; }

/* ---------------- tabs (クリックでその場絞り込み) ---------------- */
.tabbar {
  display: flex;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--paper-shade);
}
.tabbar button {
  flex: 1;
  text-align: center;
  padding: 13px 6px;
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--hairline);
  white-space: nowrap;
  cursor: pointer;
}
.tabbar button:last-child { border-right: 0; }
.tabbar button.active { background: var(--ai); color: #fff; }
.tabbar button:not(.active):hover { background: var(--white); color: var(--ai); }
.tab-count {
  display: inline-block;
  margin-left: 5px;
  font-size: 10.5px;
  font-weight: 900;
  background: rgba(33, 81, 143, 0.12);
  color: var(--ai-deep);
  border-radius: 999px;
  padding: 0 7px;
}
.tabbar button.active .tab-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.co-card[hidden] { display: none; }

/* ---------------- company record cards ---------------- */
.co-list {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.co-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.co-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.co-head-logo {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}
.co-head h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.co-head .co-sub { font-family: var(--sans); font-size: 11px; color: var(--ink-soft); font-weight: 500; display: block; }

/* 帳簿型の主要4項目+朱印 */
.rec-ledger {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 10px 4px;
}
.rec-cells {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}
.rec-cell {
  text-align: center;
  padding: 2px 8px;
  border-right: 1px solid var(--rule);
}
.rec-cell:last-child { border-right: 0; }
.rec-cell dt { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.rec-cell dd {
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ai-deep);
  line-height: 1.4;
  margin-top: 2px;
}
.co-desc { font-size: 13.5px; color: var(--ink); margin: 10px 0; }
.co-specline {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--ai-pale);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 12px 0 10px;
  line-height: 1.8;
}
.co-specline b { color: var(--ai-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--ai-deep);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2px 10px;
}
.co-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--shu);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  padding: 15px 10px;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 var(--shu-deep);
  transition: all 0.15s;
}
.co-cta:hover { transform: translateY(1px); box-shadow: 0 1px 0 var(--shu-deep); }
.co-detail-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------------- sidebar ---------------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.side-banner {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--shu);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.side-banner-char { display: flex; justify-content: center; margin-bottom: 4px; }
.side-banner-head {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--shu);
  border-bottom: 1px solid var(--shu);
  padding-bottom: 3px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.side-banner p { font-size: 12.5px; font-weight: 500; line-height: 1.8; color: var(--ink); }
.side-banner .big {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  margin: 4px 0 8px;
  letter-spacing: 0.04em;
}
.side-banner-cta {
  display: block;
  margin-top: 12px;
  background: var(--ai);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 13.5px;
  border-radius: var(--radius);
  padding: 11px;
}
.side-banner-cta:hover { background: var(--ai-deep); }
.side-alert {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.side-alert-head {
  font-family: var(--serif);
  color: var(--shu);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 9px 8px;
  border-bottom: 2px solid var(--shu);
}
.side-alert-body { padding: 14px 16px; }
.side-alert-body li {
  list-style: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px dashed var(--rule);
}
.side-alert-body li:last-child { border-bottom: 0; }
.side-alert-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--shu);
  border-radius: 50%;
}
.side-alert-link {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ai);
  padding: 0 16px 14px;
}
.side-articles {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
}
.side-articles h3 {
  font-family: var(--serif);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.side-article {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.side-article:last-child { border-bottom: 0; }
.side-thumb {
  width: 74px;
  height: 52px;
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
  padding: 2px;
  text-align: center;
  line-height: 1.35;
}
.side-article span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.side-article:hover span { color: var(--ai); }

/* ---------------- article grid ---------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 10px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(34, 38, 46, 0.12); }
.article-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 14px;
  text-align: center;
  line-height: 1.6;
}
.article-card-body { padding: 14px 16px 16px; }
.article-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.55;
}
.article-card-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--ai-deep);
  color: #ccd6e4;
  margin-top: 64px;
  padding: 40px 16px 90px;
  font-size: 13px;
}
.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-brand .brand-name { color: #fff; font-size: 19px; }
.footer-brand p { font-size: 11.5px; color: #93a5bd; margin-top: 8px; line-height: 1.8; }
.footer-cols h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2c4a70;
}
.footer-cols a {
  display: block;
  color: #ccd6e4;
  font-size: 12px;
  margin: 7px 0;
  text-decoration: none;
}
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.copyright {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid #2c4a70;
  font-size: 11px;
  color: #93a5bd;
  text-align: center;
}

/* ---------------- fixed CTA (bottom right) ---------------- */
.float-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ai);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--ai-deep);
  box-shadow: 0 4px 12px rgba(23, 57, 95, 0.35);
  white-space: nowrap;
}
.float-cta:hover { background: var(--ai-deep); }

/* ---------------- breadcrumb ---------------- */
/* **パンくずのリンクは、押せる大きさが無かった。**(2026-09-08 実画面で発見)
   `a` が素のインライン要素で、11.5px の文字ぶん **高さ16px** しか無かった。
   実測: **50枚中49枚**・320〜428 の6幅すべてで指摘（延べ294件。単独で最多）。
   **見えてはいるので、画面を見るだけでは気づかない。**押せるかどうかは別の話だった。
   → `inline-block` + 縦の余白で **34px** にする。**負の margin は使わない**（§11-B-9）。
   帯の高さは 28px → 38px に増えるが、そのぶん上の余白を詰めて相殺している。 */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 2px 16px 0;
}
.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
  padding: 9px 2px;
}
.breadcrumb a:hover { color: var(--ai); }
.breadcrumb .sep { margin: 0 6px; color: #b3b8c2; }

/* ---------------- article / post pages ---------------- */
.post-wrap {
  max-width: 860px;
  margin: 18px auto 0;
  padding: 0 16px;
}
.post {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 34px 38px 44px;
}
.post h1 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin: 6px 0 14px;
}
.post { counter-reset: post-section; }
.post h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--ai);
  padding: 0 2px 8px;
  margin: 44px 0 16px;
  position: relative;
  counter-increment: post-section;
}
.post h2::before {
  content: counter(post-section);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  background: var(--ai);
  color: #fff;
  font-size: 14px;
  border-radius: 2px;
  transform: translateY(-2px);
}
.post h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--shu);
}
.post h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ai-deep);
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.post p { margin: 12px 0; }
.post ul, .post ol { padding-left: 24px; margin: 12px 0; }
.post .date { font-size: 12px; color: var(--ink-soft); }
/* **表を横スクロールさせない(2026-08-29、資金の教科書に合わせた)。**
   ユーザーの指示: **「枠内スクロールは見づらさにつながるからなし。スマホでもやめてくれ」**
   実測(2026-08-29): DIV.tbl-wrap の中で **中身419px > 枠341px** が14枚。
   **文書は広がらないので、documentElement.scrollWidth を見る検査では0件に見える**(fuku2 の指摘)。
   display:block + overflow-x:auto + white-space:nowrap の3点セットが原因。**3つとも外す。** */
.post table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  font-size: 13.5px;
  margin: 14px 0;
}
.post th, .post td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; white-space: normal; }
.post th { background: var(--ai-deep); color: #fff; font-weight: 700; }
.post tr:nth-child(even) td { background: var(--paper); }
.post blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--shu-pale);
  border-left: 3px solid var(--shu);
  font-size: 13.5px;
}
.toc {
  background: var(--paper-shade);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13.5px;
  position: relative;
}
.toc-char { float: right; margin: -4px 0 4px 12px; }
.toc-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 6px;
}
.toc ol { margin: 0; padding-left: 22px; }
.toc ul {
  list-style: none;
  margin: 4px 0 6px;
  padding-left: 4px;
}
.toc ul li {
  font-size: 12.5px;
  padding: 2px 0 2px 14px;
  position: relative;
}
.toc ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--ai);
  opacity: 0.5;
}
.toc ul a { font-weight: 500; color: var(--ink); }
.toc ul a:hover { color: var(--ai); }
/* **目次のリンクは押す導線。**当たり判定が 20px しか無かった（2026-09-08 の実画面で 1,770件の一部）。
   本文中のリンクと違い、**目次は一覧そのものが操作面**なので、行の高さで上げてよい。
   `padding` ではなく `line-height` を使うのは、番号（ol のマーカー）との基線をずらさないため。 */
.toc a { color: var(--ai); text-decoration: none; font-weight: 700; display: inline-block; line-height: 2.4; }
.toc a:hover { text-decoration: underline; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ai-deep);
  background: var(--ai-pale);
  border: 1px solid var(--ai);
  border-radius: 2px;
  padding: 2px 12px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--shu);
  color: #fff !important;
  font-weight: 900;
  font-size: 15px;
  padding: 14px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 2px 0 var(--shu-deep);
}
.btn-primary:hover { transform: translateY(1px); box-shadow: 0 1px 0 var(--shu-deep); }
.cta-wrap { text-align: center; margin: 28px 0; }
/* 記事末尾のCTAに添える但し書き。確認日を必ず添えて、鮮度の限界を隠さない */
.cta-note {
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: -14px 0 30px;
  line-height: 1.7;
}
.related {
  margin-top: 40px;
  background: var(--paper-shade);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.related h2 {
  font-family: var(--serif);
  border-bottom: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 16px;
}
.related h2::after { display: none; }
.related h2::before { display: none; }
.related ul { padding-left: 20px; margin: 6px 0; }
.related a { color: var(--ai); font-weight: 700; }
.fix-request { font-size: 11.5px; color: var(--ink-soft); margin-top: 30px; }
.fix-request a { color: var(--ink-soft); }
/* 記事本文に埋め込む台帳の抜粋表 */
.embed-table {
  border: 1px solid var(--ai);
  border-top: 3px solid var(--ai);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  margin: 22px 0;
  background: var(--white);
}
.embed-table-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  line-height: 1.7;
}
.embed-table table { margin: 0; font-size: 13px; }
.embed-table-more {
  margin: 10px 0 0;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
}
.embed-table-more a { color: var(--ai); text-decoration: none; }
.embed-table-more a:hover { text-decoration: underline; }

.filter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.filter-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.filter-card::before { content: "▶ "; color: var(--ai); font-size: 10px; }
.filter-card:hover { border-color: var(--ai); color: var(--ai-deep); background: var(--ai-pale); }

/* ============================================================
   mobile
   ============================================================ */
@media (max-width: 1000px) {
  body { padding-bottom: 76px; }
  .header-inner { height: 56px; gap: 10px; }
  .header-offset { height: 56px; }
  .brand-name { font-size: 17px; }
  .brand-tag { display: none; }
  .global-nav { display: none; }
  .header-cta {
    margin-left: auto;
    font-size: 11px;
    padding: 7px 12px;
  }

  .hero::before { left: 16px; }
  .hero-inner {
    padding: 36px 16px 42px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy { padding-left: 12px; }
  .hero h1 { font-size: 23px; letter-spacing: 0.01em; }
  .hero-eyebrow { font-size: 11px; padding: 3px 9px; }
  .hero-lede { font-size: 13px; }
  .hero-search-label { display: none; }
  .intent-band { padding: 16px 0 18px; }
  .intent-grid { grid-template-columns: 1fr; gap: 8px; }
  .intent-card {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
  }
  .intent-q { font-size: 12.5px; }
  .intent-go { white-space: nowrap; }
  /* 急いでいるモバイル利用者は装飾より導線: プレビューカードは畳む */
  .hero .ledger-card { display: none; }
  .hero-inner { gap: 0; }

  /* minmax(0,1fr) にしないとグリッド子要素が内容幅で膨らみ、ページ全体が横に伸びる */
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .two-col > * { min-width: 0; }
  .sidebar { position: static; }
  .chapter-head { margin-top: 44px; }
  .chapter-title { font-size: 21px; }
  .intent-head .char svg, .intent-head .char img { width: 64px; height: auto; }
  .intent-bubble { padding: 6px 12px; }
  .intent-title { margin-bottom: 14px; font-size: 13.5px; }
  .chapter-chars svg, .chapter-chars img { width: 48px; height: auto; }

  .pickup-band { padding: 18px 14px; }
  .pickup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .pickup-logo { height: 84px; margin-bottom: 8px; }
  .pickup-name { min-height: 0; font-size: 12px; }
  .btn-teal { font-size: 12px; padding: 9px 6px; }

  .cat-scroller {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
  }
  .cat-box { flex: 0 0 260px; }

  .tabbar { overflow-x: auto; }
  .tabbar button { flex: 0 0 auto; padding: 12px 16px; font-size: 12.5px; }
  .mokuji { margin: 32px auto 4px; padding: 16px 16px 18px; }
  .mokuji-label { font-size: 12.5px; }
  .co-list { padding: 14px; }
  .co-card { padding: 16px 14px 18px; }
  .co-head h3 { font-size: 16px; }
  .rec-ledger { flex-direction: column; gap: 10px; padding: 10px 0; position: relative; }
  .rec-cells { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .rec-cell { padding: 6px 4px; }
  .rec-cell:nth-child(2n) { border-right: 0; }
  .rec-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .rec-cell dd { font-size: 14px; }
  .rec-ledger .stamp-sm { align-self: flex-end; margin-right: 4px; }

  .article-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .float-cta {
    left: 16px;
    right: 16px;
    bottom: 12px;
    justify-content: center;
    font-size: 13px;
    padding: 12px;
  }

  .post-wrap { padding: 0 10px; }
  .post { padding: 22px 16px 30px; }
  .post h1 { font-size: 21px; }
  .post h2 { font-size: 17.5px; }
}

@media (min-width: 1001px) {
  .hero-inner { padding-top: 72px; }
}

/* ---------------- 台帳の一覧表(トップ) ----------------
   135社をカードで並べていたときはスマホで約153画面あった。
   一覧は「横に並べて見比べる」ためのものなので表にしている。
   セルが折り返すと行の境目が消えて読めなくなるので、
   数値列は折り返さず、はみ出すぶんは表ごと横スクロールさせる。 */
.co-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.co-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.co-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--ai-deep); color: #fff; font-weight: 700;
  padding: 10px 8px; text-align: left; white-space: nowrap; font-size: 13px;
}
.co-table td { border-bottom: 1px solid var(--rule); padding: 11px 8px; vertical-align: middle; }
.co-table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.018); }
.co-row-name a { color: var(--ai); text-decoration: none; font-weight: 700; line-height: 1.4; }
.co-row-name a:hover { text-decoration: underline; }
.co-row-num { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.co-row-mark { text-align: center; font-weight: 700; width: 2.4em; }
.co-table-note { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin: 10px 2px 0; }

/* ---------------- 見積もり導線 ---------------- */
.quote-links { margin: 26px 0; }
.quote-links .pr-label {
  font-size: 12px; line-height: 1.7; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px;
}
.quote-links table { width: 100%; border-collapse: collapse; font-size: 13px; }
.quote-links th {
  background: var(--ai-deep); color: #fff; padding: 9px 7px; text-align: left; white-space: nowrap; font-size: 12px;
}
.quote-links td { border-bottom: 1px solid var(--rule); padding: 10px 7px; vertical-align: middle; }
.quote-links td:nth-child(2), .quote-links td:nth-child(3) { white-space: nowrap; }
.quote-links td:nth-child(4) { text-align: center; font-weight: 700; }
.btn-sm { display: inline-block; padding: 8px 10px; font-size: 12px; white-space: nowrap; border-radius: 6px; }

/* ボタンの下に置く1行。押した先で何が起きるかを書く。
   資金繰りで急いでいる人は「押したら契約させられるのでは」を最も警戒する。 */
.cta-note-inline {
  display: block; margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--ink-3);
}

/* 会社ページの仕様表。390pxでラベル列が狭すぎて「買取可能額」が4行に縦積みになっていた */
.post table th { white-space: normal; word-break: normal; }   /* nowrap だと表が畳めない */

@media (max-width: 480px) {
  .co-table { font-size: 13px; }
  .co-table td { padding: 10px 6px; }
  .co-table thead th { padding: 9px 6px; font-size: 12px; }
  .post table th { white-space: normal; min-width: 5.2em; }
  .quote-links table { font-size: 12px; }
}

/* 記事の末尾に置く「次の一歩」。読み終えた人に、やることを1つだけ渡す */
.next-step {
  margin: 34px 0 8px;
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--shu);
  border-radius: var(--radius);
}
.next-step-lead {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.next-step p:last-child { margin: 0; line-height: 1.9; }
.next-step a { color: var(--ai); }

/* 見積もり導線の表は、スマホでは1社=1カードに組み替える。
   5列のまま出すと最終列(ボタン)が画面外に出て、成果地点への導線が押せなくなる。
   2026-08-18に実際にそうなっていた。documentレベルの横スクロール検査では
   要素の内側のはみ出しは拾えないので、目で見るまで気づけなかった。 */
@media (max-width: 640px) {
  .quote-links table,
  .quote-links tbody,
  .quote-links tr,
  .quote-links td { display: block; width: 100%; }
  .quote-links thead { display: none; }
  .quote-links tr {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 12px 14px 14px;
    margin-bottom: 12px;
    background: var(--white);
  }
  .quote-links td { border: 0; padding: 3px 0; }
  .quote-links td[data-label]:not(.quote-cta)::before {
    content: attr(data-label) "：";
    color: var(--ink-3);
    font-size: 12px;
    margin-right: 4px;
  }
  .quote-links td:first-child { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
  /* デスクトップ用の中央寄せ(個人事業主の欄)は、カードにすると不自然になる */
  .quote-links td:nth-child(4) { text-align: left; font-weight: 400; }
  .quote-links td:first-child::before { display: none; }
  .quote-links td.quote-cta { text-align: center; margin-top: 10px; }
  .quote-links td.quote-cta .btn-sm {
    display: block;
    width: 100%;
    padding: 13px 10px;
    font-size: 14px;
    font-weight: 800;
  }
}

/* 長いURLをリンク文字にしている箇所(参考にした公的資料)の保険。
   ここが折り返せないと横幅を押し広げる。
   日本語は自由に折り返せるので、URLや英数の連続だけを途中で切る。
   break-all にすると日本語の途中でも切れて読みにくくなるので anywhere を使う。 */
main a,
main li,
main ul,
main ol,
main p,
main td,
main th {
  overflow-wrap: anywhere;
}


/* 融資(ビジネスローン)の案内ブロック。
   ファクタリングの表と見た目を変える。同じ見た目にすると、
   売買と借入が同じものに見えてしまう。 */
.loan-box {
  border: 1px solid var(--rule, #d9d3c7);
  border-left: 4px solid #7a6a4f;
  background: #fcfaf5;
  padding: 14px 16px;
  margin: 22px 0;
  border-radius: 3px;
}
.loan-box h3 { margin: 10px 0 6px; font-size: 17px; }
.loan-terms { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; }
.loan-terms th,
.loan-terms td { border: 1px solid var(--rule, #d9d3c7); padding: 7px 9px; text-align: left; vertical-align: top; }
.loan-terms th { width: 34%; background: #f4efe4; font-weight: 700; white-space: nowrap; }
.loan-fit { font-size: 14px; background: #fff; border: 1px dashed #b9a97f; padding: 9px 11px; margin: 10px 0; }

@media (max-width: 480px) {
  .loan-box { padding: 12px 11px; }
  .loan-terms { font-size: 13px; }
  .loan-terms th { width: 38%; white-space: normal; }
}

/* コードブロックは中身を折り返せないので、ブロックの中だけを横スクロールさせる。
   これをしないとページ全体が横に伸びて、本文まで読めなくなる(mitsumoriで680px)。 */
main pre {
  overflow-x: auto;
  max-width: 100%;
}

/* **長い半角の塊を折り返す(2026-08-20)。**
   台帳の散文にはリンクになっていないURLがそのまま書いてあることがある。
   日本語は自動で折り返すが半角の連続は折り返せず、幅411pxの画面で
   中身499pxの横スクロールが出る(看護師サイトで実際に発生)。
   overflow-wrap:anywhere は「はみ出すときだけ」折るので、
   ふつうの日本語の見た目は変わらない。break-word と違い
   表のセルが縮めるようになるのでこちらを使う。
   seo-check は「表が包んであるか」しか見ないので、これは
   mobile-check(実ブラウザ)でしか出ない(§5.51)。 */
.wrap, td, th, li, p { overflow-wrap: anywhere; }

/* ---------------- .tbl-wrap（3サイト共通の表の包み） ----------------
   **資金の教科書は .co-table-wrap、この3サイトのHTMLは .tbl-wrap を使う。**
   CSSを移植したとき .tbl-wrap の定義が無く、包んであるのに横スクロールできず
   幅411pxの画面で中身442pxがはみ出していた（2026-08-21に mobile-check が検出）。
   **seo-check は「包んであるか」しか見ないので、これは実ブラウザでしか出ない（§5.108）。** */
.tbl-wrap {
  /* **overflow-x:auto を外した(2026-08-29)。**包んで横スクロールさせると、
     中身が切れているのに文書は広がらず、**検査からは無事に見える。**
     表そのものを畳める形にしたので、包みはもう逃がす必要がない。 */
  margin: 18px 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}
.tbl-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0; }
.tbl-wrap th, .tbl-wrap td {
  border-bottom: 1px solid var(--rule);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.85;
}
.tbl-wrap thead th, .tbl-wrap tr:first-child th {
  background: var(--paper-shade);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tbl-wrap tr:last-child th, .tbl-wrap tr:last-child td { border-bottom: none; }
.tbl-wrap tbody th { font-weight: 500; white-space: nowrap; }

/* 台帳の表は列が多いので、最低幅を持たせて「潰れて読めない」状態を防ぐ。
   包みの側でスクロールできるので、はみ出しても事故にならない。 */
.tbl-wrap table { min-width: 460px; }

/* 表の中の注記（比較できない数字の理由など） */
.note-cell { color: var(--ink-soft); font-size: 12px; line-height: 1.75; display: block; }

/* 確認日・出典の1行 */
.checked {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.85;
  border-left: 3px solid var(--rule);
  padding: 8px 0 8px 12px;
  margin: 14px 0 22px;
}

/* 引用ボックスと調査方法（tools/citation.mjs・2026-09-15 全fuku共通指示）
   ★ボタンは block + text-align:center。inline-flex にすると中の裸の文字が縮まず 320px で溢れる（A-17）。
   ★並びは grid の minmax(0,1fr)。1fr だけだと最小幅が中身で決まる（memory: grid-1fr-auto-minimum）。
   ★「データ」の面なので本文より一段強い罫線と淡い藍。CTA（朱）とは色で分ける。 */
.cite-box {
  margin: 22px 0 30px;
  padding: 16px 16px 12px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--ai);
  border-radius: var(--radius);
}
.cite-head { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.6; }
.cite-badge { font-size: 12px; color: var(--white); background: var(--ai); padding: 1px 8px; border-radius: 3px; white-space: nowrap; }
.cite-name { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; line-height: 1.6; color: var(--ink); text-wrap: balance; }
.cite-body { margin: 0 0 12px; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.cite-btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* 3つが1行に入る幅だけ横に並べる。auto-fit だと 430〜560px で「2つ＋半端な1つ」になった（2026-09-15 実測） */
@media (min-width: 600px) { .cite-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cite-btn {
  display: block; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px;
  font: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center;
  color: var(--ai-deep); background: var(--ai-pale); border: 1px solid var(--ai); border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
}
.cite-btn:hover { background: var(--white); text-decoration: none; }
.cite-btn:focus-visible { outline: 2px solid var(--ai-deep); outline-offset: 2px; }
.cite-btn--sub { background: var(--white); border-color: var(--hairline); color: var(--ink); font-weight: 500; }
.cite-done { margin: 8px 0 0; min-height: 1.6em; font-size: 13px; font-weight: 700; color: var(--ai-deep); }
.cite-peek { font-size: 13px; color: var(--ink-soft); }
.cite-peek summary { cursor: pointer; padding: 4px 0; }
.cite-pre { margin: 8px 0 0; padding: 10px 12px; background: var(--paper-shade); border-radius: var(--radius); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.cite-method { margin: 36px 0 24px; }
.cite-method dl { margin: 0; border-top: 1px solid var(--hairline); }
.cite-method dl > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.cite-method dt { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.cite-method dd { margin: 0; font-size: 14.5px; line-height: 1.85; min-width: 0; }
@media (max-width: 560px) {
  .cite-method dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* <wbr> を入れさせない見出し（build 側で data-nowbr）は文節でしか折れないので、行の長さを揃える。
   無いと 360px で「…働けることは／別」と1文字が落ちた（/chosa/・2026-09-15 実測） */
h2[data-nowbr] { text-wrap: balance; }

/* 条件から探すカード（.cards / .card） */
.cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 18px 0 26px;
}
.card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--card-shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--ai); transform: translateY(-1px); }

/* 外部リンクの囲み（.cta-wrap / .btn-primary / .cta-note） */
.cta-wrap {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--card-shadow);
}
.cta-note { display: block; margin-top: 11px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }

/* ==== ここから、資金の教科書と同じ節の様式(2026-08-23) ==== */


/* ---- 実績の帯 ---- */
.proof-band{
  background:var(--ai-deep); color:#fff;
  padding:22px 0; margin:0 0 8px;
}
.proof-inner{
  display:grid; gap:14px 26px;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  align-items:start;
}
.proof{display:flex; flex-direction:column; gap:3px}
.proof b{
  font-family:var(--serif); font-size:30px; font-weight:700; line-height:1.1;
  font-variant-numeric:tabular-nums; letter-spacing:.01em;
}
.proof span{font-size:11.5px; line-height:1.6; color:rgba(255,255,255,.82)}
.proof-date b{font-size:20px; padding-top:8px}

/* ---- 節の共通 ---- */
.sec-title{
  font-family:var(--serif); font-weight:700;
  font-size:clamp(21px,3.6vw,29px); line-height:1.4;
  margin:0 0 10px; text-align:center; text-wrap:balance;
}
.sec-lede{
  text-align:center; color:var(--ink-soft); font-size:14.5px;
  line-height:1.9; max-width:56ch; margin:0 auto 30px;
}

/* ---- 3つの決まり ---- */
.rules{padding:56px 0; background:var(--paper-shade)}
.rule-grid{
  display:grid; gap:20px;
  grid-template-columns:repeat(auto-fit,minmax(268px,1fr));
}
.rule-card{
  background:#fff; border:1px solid var(--hairline); border-radius:4px;
  padding:26px 22px 20px; position:relative;
  display:flex; flex-direction:column;
  box-shadow:0 1px 2px rgba(34,38,46,.05), 0 10px 28px -20px rgba(23,57,95,.3);
}
.rule-no{
  position:absolute; top:14px; right:18px;
  font-family:var(--serif); font-size:34px; font-weight:700;
  color:var(--ai-pale); line-height:1; font-variant-numeric:tabular-nums;
}
.rule-char{display:block; margin:0 0 6px}
.rule-char img{mix-blend-mode:multiply}
.rule-card h3{
  font-family:var(--serif); font-size:18px; font-weight:700;
  margin:0 0 10px; line-height:1.5; padding-right:2.2em;
}
.rule-card p{font-size:14px; line-height:1.95; margin:0 0 16px; color:var(--ink)}
.rule-go{
  margin-top:auto; font-size:13px; font-weight:700;
  color:var(--ai); text-decoration:none;
}
.rule-go:hover{text-decoration:underline}

/* ---- 比較表 ---- */
.vs{padding:56px 0}
.scroll-x{overflow-x:auto; -webkit-overflow-scrolling:touch}
.vs-table{
  width:100%; border-collapse:collapse; font-size:14px;
  background:#fff; border:1px solid var(--hairline);
}
.vs-table th,.vs-table td{
  padding:14px 16px; text-align:left; vertical-align:top;
  border-bottom:1px solid var(--rule); line-height:1.8;
}
.vs-table tr:first-child th{
  background:var(--paper-shade); font-family:var(--serif);
  font-size:14px; white-space:nowrap;
}
.vs-table tr:first-child th.vs-us{background:var(--ai-deep); color:#fff}
.vs-table th{width:9em; font-weight:700; white-space:nowrap; color:var(--ink-soft); font-size:13px}
.vs-table td.vs-us{background:var(--ai-pale)}
.vs-table tr:last-child th,.vs-table tr:last-child td{border-bottom:none}
.vs-note{
  font-size:13px; color:var(--ink-soft); line-height:1.9;
  margin:16px auto 0; max-width:64ch;
}

/* ---- 4ステップ ---- */
.steps{padding:56px 0; background:var(--paper-shade)}
.step-list{
  list-style:none; padding:0; margin:0;
  display:grid; gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(232px,1fr));
}
.step-list li{
  background:#fff; border:1px solid var(--hairline); border-radius:4px;
  padding:22px 20px 18px; position:relative;
  display:flex; flex-direction:column;
}
.step-no{
  display:grid; place-items:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--ai); color:#fff;
  font-family:var(--serif); font-weight:700; font-size:16px;
  margin-bottom:12px; font-variant-numeric:tabular-nums;
}
.step-list h3{font-family:var(--serif); font-size:16.5px; margin:0 0 9px; font-weight:700}
.step-list p{font-size:13.5px; line-height:1.95; margin:0 0 14px}
.step-go{margin-top:auto; font-size:12.5px; font-weight:700; color:var(--ai); text-decoration:none}
.step-go:hover{text-decoration:underline}

/* ---- FAQ ---- */
.faq{padding:56px 0}
.faq-list{max-width:760px; margin:0 auto}
.faq details{
  background:#fff; border:1px solid var(--hairline);
  border-radius:4px; margin-bottom:10px; overflow:hidden;
}
.faq summary{
  cursor:pointer; padding:16px 46px 16px 18px;
  font-family:var(--serif); font-weight:700; font-size:15.5px;
  line-height:1.6; position:relative; list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"＋"; position:absolute; right:18px; top:50%;
  transform:translateY(-50%); color:var(--ai); font-weight:700; font-size:15px;
}
.faq details[open] summary::after{content:"−"}
.faq details[open] summary{border-bottom:1px solid var(--rule)}
.faq details p{margin:0; padding:16px 18px; font-size:14px; line-height:1.95}
.faq-go{
  display:inline-block; margin:0 18px 16px; font-size:13px;
  font-weight:700; color:var(--ai); text-decoration:none;
}
.faq-go:hover{text-decoration:underline}

/* ---- 最終CTA ---- */
.last-cta{background:var(--ai-deep); color:#fff; padding:48px 0}
.last-inner{
  display:flex; gap:28px; align-items:center;
  justify-content:space-between; flex-wrap:wrap;
}
.last-copy{flex:1 1 380px}
.last-copy h2{
  font-family:var(--serif); font-size:clamp(20px,3.2vw,27px);
  margin:0 0 10px; line-height:1.45; text-wrap:balance;
}
.last-copy p{margin:0; font-size:14px; line-height:1.95; color:rgba(255,255,255,.85)}
.last-copy strong{color:#fff}
.last-btns{display:flex; flex-direction:column; gap:10px; flex:0 0 auto}
.last-btns .btn-primary{background:var(--shu); border-color:var(--shu); color:#fff}
.last-btns .btn-primary:hover{background:var(--shu-deep); border-color:var(--shu-deep)}
.btn-ghost{
  display:inline-block; padding:13px 26px; border-radius:3px;
  border:1px solid rgba(255,255,255,.6); color:#fff;
  text-decoration:none; font-weight:700; font-size:14px; text-align:center;
}
.btn-ghost:hover{background:rgba(255,255,255,.12)}

@media (max-width:640px){
  .proof b{font-size:25px}
  .rules,.vs,.steps,.faq{padding:40px 0}
  .last-btns{width:100%}
  .last-btns a{width:100%}
}

/* ヒーローの実写(Higgsfield生成)。角丸+影で右カラムの上に置く */
.hero-photo{
  display:block; width:100%; height:auto;
  border-radius:var(--lp-radius, 14px);
  box-shadow:var(--lp-shadow-lg, 0 2px 6px rgba(16,32,56,.08), 0 24px 56px -20px rgba(16,32,56,.22));
  margin:0 0 18px; object-fit:cover; aspect-ratio:3/2;
}
@media (max-width:900px){ .hero-photo{margin-bottom:14px} }

/* **ヒーローの画像が小さすぎた。**カードと並べたせいで潰れていた。
   **右半分を画像で埋める。**カードは外し、下の節が役目を持つ。 */
.hero-inner{
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) !important;
  align-items:center; gap:48px !important;
  padding-top:64px !important; padding-bottom:64px !important;
}
.hero-photo{
  margin:0 !important; aspect-ratio:4/3 !important;
  object-fit:cover; object-position:center 30%;
  border-radius:18px !important;
}
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr !important; gap:30px !important}
  .hero-photo{aspect-ratio:16/10 !important}
}

/* **メリハリが無かった。**中黒で並べた長い名詞句が1行に入っていた。
   h1 は「条件に合う / ◯◯を、/ N社から絞る。」の3行に割り、
   3行目を大きく・濃くして視線を落とす。 */
.hero h1{
  font-size:clamp(27px,3.4vw,40px) !important;
  line-height:1.45 !important;
  letter-spacing:.01em;
}
.hero-lede{
  font-size:16.5px !important; line-height:1.95 !important;
  color:#4a5261 !important;
}
.hero-lede strong{color:var(--ink); font-weight:700}
.hero-eyebrow{font-size:12px !important; letter-spacing:.08em !important}
.hero-proof{font-size:12px !important; color:#9aa0ab !important; margin-top:16px !important}
.hero-proof strong{color:#6e7480}

/* ============================================================
   ヒーロー: 色帯 + 背景を抜いた人物を全高で右に
   **参考にした作り: 全幅の色帯／左に大見出し＋朱の大ボタン1つ／
     右に切り抜いた人物を帯の下端に接地させて置く。**
   色は各サイトの識別色を薄くしたもの。藍・朱・明朝は捨てない。
   ============================================================ */
.band-hero{
  background:#e3ece5 !important;
  background-image:none !important;
  border-bottom:none !important;
  overflow:hidden; position:relative;
}
.band-hero::before{display:none !important}
.band-hero .hero-inner{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.86fr);
  gap:20px; align-items:end;
  padding:0 20px !important;
  min-height:520px;
}
.band-hero .hero-copy{padding:70px 0 76px !important; align-self:center}
.band-hero .hero-eyebrow{
  background:rgba(255,255,255,.7) !important; border:none !important;
  color:var(--ai-deep) !important; border-radius:100px;
  padding:6px 16px !important; font-size:12px !important; letter-spacing:.06em !important;
}
.band-hero h1{
  font-family:var(--sans) !important;
  font-size:clamp(30px,4.4vw,52px) !important;
  font-weight:700 !important; line-height:1.32 !important;
  letter-spacing:.005em !important; margin:18px 0 0 !important;
  color:#1b1f26 !important;
}
.band-hero .hero-lede{
  margin:20px 0 0 !important; font-size:16px !important;
  line-height:1.9 !important; color:#4a5261 !important;
  background:none !important; max-width:30em;
}
.band-hero .hero-lede strong{color:var(--shu-deep); font-weight:700}
.hero-main-cta{
  margin-top:28px; font-size:17px !important;
  padding:19px 40px !important; border-radius:6px !important;
}
.hero-main-cta span{margin-left:10px}
.band-hero .hero-proof{
  margin-top:18px !important; font-size:12px !important;
  color:#7b8291 !important; line-height:1.8;
}
.band-hero .hero-proof strong{color:#5a616e}
.hero-visual{align-self:end; display:flex; justify-content:flex-end}
.hero-cut{
  display:block; width:auto; height:auto;
  max-height:520px; max-width:100%;
  object-fit:contain; object-position:bottom;
}
@media (max-width:900px){
  .band-hero .hero-inner{grid-template-columns:1fr; min-height:0; gap:0}
  .band-hero .hero-copy{padding:44px 0 28px !important}
  .hero-visual{justify-content:center}
  .hero-cut{max-height:300px}
  .hero-main-cta{width:100%; text-align:center}
}

/* **医療3枚は横長(頭と肩の切り抜き)なので、幅で先に頭打ちになり
   327〜357pxしか出ていなかった。**高さを基準にし、はみ出す分は
   帯の右端で切る(帯は全幅なので中央寄せの内側より右に余地がある)。 */
.hero-visual{position:relative; overflow:visible}
.hero-cut{
  height:520px !important; width:auto !important;
  max-width:none !important; max-height:none !important;
  margin-right:-40px;
}
@media (max-width:900px){
  .hero-cut{height:300px !important; margin-right:0}
}

/* 大きい塗りボタン。**医療3サイトに .lp-btn が無く、
   ヒーローの主CTAが素のリンクになっていた。** */
.lp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--sans); font-weight:700; font-size:16px;
  padding:17px 32px; border-radius:8px; text-decoration:none !important;
  border:2px solid transparent; line-height:1.4; text-align:center;
  transition:transform .12s ease, box-shadow .12s ease;
}
.lp-btn-main{
  background:var(--shu); color:#fff !important; border-color:var(--shu);
  box-shadow:0 4px 14px -4px rgba(0,0,0,.28);
}
.lp-btn-main:hover{transform:translateY(-1px); box-shadow:0 8px 22px -6px rgba(0,0,0,.32)}
.lp-btn-sub{background:#fff; color:var(--ai-deep) !important; border-color:var(--ai)}
.lp-btn-sub:hover{background:var(--ai-pale)}
/* ============================================================
   絞り込み診断  2026-08-23
   **このサイトの主役。**135社は主役ではなく、絞り込みの裏側。
   ============================================================ */
.shindan-sec{background:var(--lp-bg-soft); padding:80px 0}
.shindan-box{
  max-width:760px; margin:0 auto; background:#fff;
  border-radius:16px; box-shadow:var(--lp-shadow-lg);
  padding:38px 34px 34px; min-height:280px;
}
.sh-progress{height:5px; background:var(--lp-line); border-radius:100px; overflow:hidden; margin-bottom:22px}
.sh-progress span{display:block; height:100%; background:var(--ai); border-radius:100px; transition:width .25s ease}
.sh-step{font-size:12.5px; color:var(--ink-soft); letter-spacing:.08em; margin:0 0 10px; font-variant-numeric:tabular-nums}
.sh-q{
  font-family:var(--sans); font-size:clamp(19px,2.8vw,25px); font-weight:700;
  line-height:1.55; margin:0 0 24px;
}
.sh-opts{display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.sh-opt{
  font-family:var(--sans); font-size:16px; font-weight:700;
  padding:20px 18px; border-radius:12px; cursor:pointer;
  background:#fff; border:2px solid var(--lp-line); color:var(--ink);
  transition:all .12s ease; line-height:1.5;
}
.sh-opt:hover{border-color:var(--ai); background:var(--ai-pale); transform:translateY(-1px)}
.sh-back{
  margin-top:22px; background:none; border:none; cursor:pointer;
  color:var(--ink-soft); font-size:13.5px; padding:6px 0;
}
.sh-back:hover{color:var(--ai); text-decoration:underline}

/* 結果 */
.sh-result-head{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:14px}
.sh-count{font-family:var(--sans); font-size:19px; font-weight:700; margin:0}
.sh-count b{font-size:32px; color:var(--shu-deep); font-variant-numeric:tabular-nums; margin:0 4px}
.sh-maybe-n{font-size:13px; font-weight:400; color:var(--ink-soft)}
.sh-again{
  background:none; border:1.5px solid var(--lp-line); border-radius:8px;
  padding:9px 16px; cursor:pointer; font-size:13.5px; color:var(--ink-soft);
}
.sh-again:hover{border-color:var(--ai); color:var(--ai)}
.sh-lede{font-size:14px; line-height:1.9; color:var(--ink-soft); margin:0 0 20px}
.sh-sorts{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px}
.sh-sort{
  font-size:13px; padding:9px 15px; border-radius:100px; cursor:pointer;
  background:#fff; border:1.5px solid var(--lp-line); color:var(--ink-soft);
}
.sh-sort.on{background:var(--ai); border-color:var(--ai); color:#fff; font-weight:700}
.sh-cards{display:grid; gap:14px}
.sh-card{border:1px solid var(--lp-line); border-radius:12px; padding:20px 20px 18px; background:#fff}
.sh-card-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px}
.sh-name{font-family:var(--sans); font-size:18px; font-weight:700; color:var(--ink); text-decoration:none}
.sh-name:hover{color:var(--ai); text-decoration:underline}
.sh-pick{display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--ink-soft); cursor:pointer; white-space:nowrap}
.sh-pick input{width:16px; height:16px; cursor:pointer; accent-color:var(--ai)}
.sh-spec{display:grid; gap:8px 18px; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); margin:0 0 16px}
.sh-spec div{display:flex; gap:8px; align-items:baseline; font-size:13.5px; line-height:1.7}
.sh-spec dt{color:var(--ink-soft); font-size:12px; white-space:nowrap; min-width:5em}
.sh-spec dd{margin:0; font-weight:700}
.sh-go{
  display:block; text-align:center; background:var(--shu); color:#fff;
  padding:15px 20px; border-radius:10px; text-decoration:none;
  font-weight:700; font-size:15px; line-height:1.5;
}
.sh-go:hover{background:var(--shu-deep)}
.sh-pr{display:block; font-size:11.5px; color:var(--ink-soft); margin-top:9px; line-height:1.7}
.sh-rest,.sh-maybe{margin-top:18px}
.sh-rest summary,.sh-maybe summary{
  cursor:pointer; font-size:14px; font-weight:700; color:var(--ai);
  padding:12px 0; list-style:none;
}
.sh-rest summary::-webkit-details-marker,.sh-maybe summary::-webkit-details-marker{display:none}
.sh-rest summary::before,.sh-maybe summary::before{content:"▸ "}
.sh-rest[open] summary::before,.sh-maybe[open] summary::before{content:"▾ "}
.sh-maybe p{font-size:13.5px; line-height:1.9; color:var(--ink-soft)}
.sh-maybe-list{columns:2; gap:20px; padding-left:1.2em; font-size:13.5px; line-height:2}
.sh-maybe-list a{color:var(--ai)}
.sh-none{font-size:15px; line-height:1.95}

/* 相見積もりのかご */
.sh-basket{
  margin-top:22px; background:var(--ai-pale); border-radius:12px;
  padding:22px 22px 20px; border:1.5px solid var(--ai);
}
.sh-basket-t{font-family:var(--sans); font-size:16px; font-weight:700; margin:0 0 14px}
.sh-basket-t b{font-size:24px; color:var(--ai-deep); font-variant-numeric:tabular-nums; margin:0 3px}
.sh-basket-list{list-style:none; padding:0; margin:0 0 14px; display:grid; gap:10px}
.sh-basket-list li{display:flex; align-items:center; gap:12px}
.sh-basket-no{
  flex:0 0 auto; width:28px; height:28px; border-radius:50%;
  background:var(--ai); color:#fff; display:grid; place-items:center;
  font-size:13px; font-weight:700; font-variant-numeric:tabular-nums;
}
.sh-basket-go{
  flex:1; background:#fff; border:1.5px solid var(--ai); border-radius:8px;
  padding:12px 16px; text-decoration:none; color:var(--ai-deep);
  font-weight:700; font-size:14px; line-height:1.5;
}
.sh-basket-go:hover{background:var(--ai); color:#fff}
.sh-basket-note{font-size:12.5px; line-height:1.85; color:var(--ink-soft); margin:0}
.sh-basket-note a{color:var(--ai); font-weight:700}

.hero-proof{
  margin-top:18px; font-size:12.5px; color:var(--ink-faint, #9aa0ab);
  line-height:1.8;
}

@media (max-width:560px){
  .shindan-box{padding:26px 20px 24px; border-radius:12px}
  .shindan-sec{padding:52px 0}
  .sh-opts{grid-template-columns:1fr}
  .sh-maybe-list{columns:1}
}


/* 看護師サイトの診断カードに足すもの。
   **長い説明は読ませない。**一言 + 印 + CTA だけ。詳しくは会社ページへ。 */
.sh-one{
  display:block; font-size:12.5px; color:var(--ai);
  font-weight:700; margin-top:5px;
}
.sh-tags{
  list-style:none; padding:0; margin:0 0 16px;
  display:flex; flex-wrap:wrap; gap:6px;
}
.sh-tags li{
  font-size:12px; background:var(--ai-pale); color:var(--ai-deep);
  padding:5px 11px; border-radius:100px; line-height:1.5;
}
/* **PR は CTA の横に統一する。**提携なしとの違いが分かる形にする */
.sh-pr-tag{
  display:inline-block; margin-left:9px; font-size:10.5px;
  background:rgba(255,255,255,.28); border-radius:3px;
  padding:2px 6px; letter-spacing:.06em; vertical-align:2px;
}
.sh-detail{
  display:block; text-align:center; margin-top:11px;
  font-size:12.5px; color:var(--ink-soft); text-decoration:none;
}
.sh-detail:hover{color:var(--ai); text-decoration:underline}
.sh-card-head{display:block}

/* 該当数で分けた段の見出し。**順位ではなく「いくつ当てはまったか」。** */
.sh-group{
  font-family:var(--sans); font-size:16px; font-weight:700;
  margin:22px 0 14px; padding-bottom:9px;
  border-bottom:2px solid var(--ai-pale); color:var(--ink);
}
.sh-note{
  font-size:12.5px; line-height:1.85; color:var(--ink-soft);
  margin:20px 0 0; padding-top:16px; border-top:1px dotted var(--rule);
}

/* ============================================================
   ヒーロー: 色帯 + 背景を抜いた人物を全高で右に
   **参考にした作り: 全幅の色帯／左に大見出し＋朱の大ボタン1つ／
     右に切り抜いた人物を帯の下端に接地させて置く。**
   色は各サイトの識別色を薄くしたもの。藍・朱・明朝は捨てない。
   ============================================================ */
.band-hero{
  background:#e3ece5 !important;
  background-image:none !important;
  border-bottom:none !important;
  overflow:hidden; position:relative;
}
.band-hero::before{display:none !important}
.band-hero .hero-inner{
  max-width:1180px; margin:0 auto;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.86fr);
  gap:20px; align-items:end;
  padding:0 20px !important;
  min-height:520px;
}
.band-hero .hero-copy{padding:70px 0 76px !important; align-self:center}
.band-hero .hero-eyebrow{
  background:rgba(255,255,255,.7) !important; border:none !important;
  color:var(--ai-deep) !important; border-radius:100px;
  padding:6px 16px !important; font-size:12px !important; letter-spacing:.06em !important;
}
.band-hero h1{
  font-family:var(--sans) !important;
  font-size:clamp(30px,4.4vw,52px) !important;
  font-weight:700 !important; line-height:1.32 !important;
  letter-spacing:.005em !important; margin:18px 0 0 !important;
  color:#1b1f26 !important;
}
.band-hero .hero-lede{
  margin:20px 0 0 !important; font-size:16px !important;
  line-height:1.9 !important; color:#4a5261 !important;
  background:none !important; max-width:30em;
}
.band-hero .hero-lede strong{color:var(--shu-deep); font-weight:700}
.hero-main-cta{
  margin-top:28px; font-size:17px !important;
  padding:19px 40px !important; border-radius:6px !important;
}
.hero-main-cta span{margin-left:10px}
.band-hero .hero-proof{
  margin-top:18px !important; font-size:12px !important;
  color:#7b8291 !important; line-height:1.8;
}
.band-hero .hero-proof strong{color:#5a616e}
.hero-visual{align-self:end; display:flex; justify-content:flex-end}
.hero-cut{
  display:block; width:auto; height:auto;
  max-height:520px; max-width:100%;
  object-fit:contain; object-position:bottom;
}
@media (max-width:900px){
  .band-hero .hero-inner{grid-template-columns:1fr; min-height:0; gap:0}
  .band-hero .hero-copy{padding:44px 0 28px !important}
  .hero-visual{justify-content:center}
  .hero-cut{max-height:300px}
  .hero-main-cta{width:100%; text-align:center}
}


/* **狭い画面で切り抜きがはみ出していた**(幅411pxで中身527px)。
   薬剤師は横1522pxと最も横長で、高さ300px指定だと幅が余る。
   **狭い画面では幅を基準にする。** */
@media (max-width:900px){
  .band-hero{overflow:hidden}
  .band-hero .hero-inner{overflow:hidden}
  .hero-visual{width:100%; overflow:hidden; justify-content:center}
  .hero-cut{
    height:auto !important; width:100% !important;
    max-width:100% !important; margin-right:0 !important;
  }
}

/* **狭い画面で hero-copy が465pxに膨らんでいた。**
   後から入れた .hero-inner の grid-template-columns が
   1fr / 1.05fr のまま残り、1カラムに畳めていなかった。
   **帯のヒーローは狭い画面で必ず1カラムにする。** */
@media (max-width:900px){
  .band-hero .hero-inner{
    grid-template-columns:100% !important;
    max-width:100%; min-width:0;
  }
  .band-hero .hero-copy,
  .band-hero .hero-visual{min-width:0; max-width:100%; width:100%}
}

/* 狭い画面の最終調整。**切り抜きは枠に収め、表は箱の中で横に送る。** */
@media (max-width:900px){
  .band-hero .hero-cut{
    width:100% !important; height:auto !important;
    max-width:100% !important; display:block;
  }
  .band-hero .hero-visual{max-width:100%; overflow:hidden}
  /* **`.tbl-wrap` をここから外した(2026-08-29)。**上で外したのに、
     この行が**メディアクエリの中でもう一度 `overflow-x:auto` を当てていた。**
     1か所直して「直った」と思ったが、狭い幅でだけ元に戻る形で残っていた。
     **同じセレクタが2か所にあるときは、両方見る。** */
  .scroll-x, .scroll{overflow-x:auto; max-width:100%; -webkit-overflow-scrolling:touch}
  .tbl-wrap{max-width:100%}
  .tbl-wrap table, .scroll-x table{min-width:0}
}

/* **診断が「何を数えているか」を本人に言う一文。**
   sh-note(明示なしを対応なしと読み替えない)とは別物なので、色で分ける。
   **注意ではなく開示。**赤にはしない。 */
.sh-warn {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--paper-2, #f6f4ef);
  border-left: 3px solid var(--ai, #2f4f7f);
  border-radius: var(--radius, 6px);
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.sh-warn a { color: var(--ai, #2f4f7f); }

/* **画像が文に重なっていた(2026-08-24 朝)。**

   ---- 何が起きていたか ----
   実測(幅1024): **帯そのものが977pxしかない**のに、画像が806px。
   文に残るのは171px。**2カラムに収まる幅ではなかった。**
   幅1280でも 帯1217px - 画像806px = 411px しか残らず、
   文(526px)が115pxはみ出して h1 と重なる。

   前夜の `max-width:none !important` は「横長の切り抜きが幅で頭打ちになり
   327pxしか出ない」問題を直したもので、**高さを基準にしたぶん幅が伸びた。**
   医療3サイトの切り抜きは 1395〜1522 x 900 で、高さ520pxにすると幅806〜879pxになる。

   ---- 直し方 ----
   (1) **画像を小さくする。**高さ520→430px(幅806→667px)。
       文に残るのは 1217-667=550px で、文(526px)が収まる。
   (2) **1カラムに畳む閾値を 900→1150px に上げる。**
       横長の切り抜きなので、2カラムに収まるのは1150px以上。
   (3) **境界はマスクで柔らかくする。**帯は単色なので継ぎ目が見えない。
       **切るためではなく、重なりが出たときの保険。**
   (4) **画像はクリックを透過させる。**万一CTAに重なっても押せなくならない。 */
.band-hero{position:relative}
.band-hero .hero-visual{position:static; min-height:430px}
.band-hero .hero-cut{
  position:absolute; right:0; bottom:0;
  height:430px !important; width:auto !important;
  max-width:none !important; max-height:none !important;
  margin-right:0 !important;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(to left,#000 0,#000 62%,transparent 92%);
  mask-image:linear-gradient(to left,#000 0,#000 62%,transparent 92%);
}
.band-hero .hero-inner{min-height:430px}

/* **1150px未満は1カラム。**画像は文の下に、普通に置く。
   **絶対配置のままだと文の上に乗るので、必ず static に戻す。** */
@media (max-width:1150px){
  .band-hero .hero-inner{
    grid-template-columns:100% !important;
    min-height:0; gap:0;
    max-width:100%; min-width:0;
  }
  .band-hero .hero-copy,
  .band-hero .hero-visual{min-width:0; max-width:100%; width:100%}
  .band-hero .hero-copy{padding:40px 0 22px !important}
  .band-hero .hero-visual{position:relative; min-height:0; justify-content:center}
  .band-hero .hero-cut{
    position:static; right:auto; bottom:auto;
    height:250px !important; margin:0 auto !important;
    -webkit-mask-image:none; mask-image:none;
  }
  .hero-main-cta{width:100%; text-align:center}
}

/* **狭い画面でCTAの文字が2行に折れていた。**
   width:100% にしたぶん幅は足りているのに、左右の padding が32pxずつ
   取られて中身が入らなかった。**幅ではなく余白が原因。** */
@media (max-width:1150px){
  .band-hero .hero-main-cta{
    padding-left:16px !important; padding-right:16px !important;
    gap:6px; font-size:15px !important;
  }
}

/* **狭い画面で画像が画面からはみ出していた(横スクロール)。**
   高さ250pxでも、薬剤師の切り抜き(1522x900)は**幅423px**になり
   390pxの画面から出る。**1カラムのときは幅を画面に収める。**
   高さは自動で縮むので、縦横比は崩れない。 */
@media (max-width:1150px){
  .band-hero .hero-cut{
    max-width:100% !important;
    height:auto !important; max-height:250px !important;
    object-fit:contain;
  }
}

/* ============================================================
   文節で折る  2026-08-25   (資金の教科書から移植)

   日本語は既定(word-break:normal)だと**かなとかなの間ならどこでも折れる**。
   だから「入金してほ / しい日」「今日中に資金化し / たい」のような、
   単語の途中での改行が全ページで出る。
   auto-phrase は文節の切れ目でだけ折り、入らないときだけ通常の折り返しに
   落ちるので、**溢れさせずに語を割らない**。keep-all と違い横スクロールを
   生まない。

   上の .wrap, td, th, li, p の overflow-wrap:anywhere は、URLのような
   切れ目の無い長い半角を折るために要る。ただし**最小幅を1文字にする**ので、
   表のセルの中で語を1文字ずつ刻む原因にもなる。そこで anywhere は
   URLが入りうる場所にだけ残す。
   ============================================================ */
body, p, li, dd, dt, td, th, summary, figcaption, blockquote, label,
h1, h2, h3, h4, h5, h6, span, strong, em, small, a, button, .wrap {
  word-break: auto-phrase;
  overflow-wrap: normal;
  line-break: strict;
}
code, pre, .mono, .url,
a[href^="http"]:not(.btn):not(.btn-primary):not(.btn-ghost):not(.btn-cta):not(.float-cta) {
  overflow-wrap: anywhere;
}
/* サービス名は固有名詞。表の中で割らせない。折ってよい位置は build 側が示す。 */
.tbl-wrap td:first-child a, td[data-label="サービス"] a, .sv-row-name a {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* ============================================================
   表が潰れて語が割れるのを止める  2026-08-25(資金の教科書から移植)

   実測でいちばん多かった原因は**セルの幅**だった。
   幅74pxのセルに「株式会社アンカー」(108px)を入れると、
   どんな指定をしても「株式会 / 社」と割れる。
   列に最小幅を与えれば、潰れる代わりに表が横に流れる。

   **keep-all は使わない。**折り位置の間の塊が箱に入らないとき、
   禁則を無視して小書きカナや長音符を行頭に出す(3回試して3回とも壊れた)。
   ============================================================ */
.post table th, .post table td,
.tbl-wrap table th, .tbl-wrap table td { min-width: 10em; }
.post table th:first-child, .post table td:first-child,
.tbl-wrap table th:first-child, .tbl-wrap table td:first-child { min-width: 11em; }
/* セルの中のサービス名リンクは1かたまりのまま。折るなら行ごと次に送る。 */
.post table a, .tbl-wrap table a { white-space: nowrap; }

/* 最終行に1文字だけ落ちるのを減らす */
p, li, dd, dt, td, th, blockquote, figcaption { text-wrap: pretty; }
/* 記事の見出しは行の長さを揃える。無いと「…答えるのは／4社」「…いない／こと」と最後の1〜2字が落ちた（2026-09-15・10幅×7枚で実測） */
article h2, article h3 { text-wrap: balance; }
/* H1 は長く、320〜360pxで7行を超えると balance が効かない（Chrome は6行まで）。pretty は行数の上限が無く、最終行の1〜2字を避ける */
article h1 { text-wrap: pretty; }

/* ============================================================
   ヘッダーが横に溢れていた  2026-08-25

   幅1400pxで中身1476px / 枠1385px。**全62ページで出ていた。**
   原因は、これまで `overflow-wrap: anywhere` が全要素に効いていて
   ロゴ脇の説明文が1文字幅まで縮めたこと。語を割らない設定に変えたぶん、
   説明文が縮まなくなり、そのまま横に押し出していた。

   **正しい直し方は「縮ませる」ではなく「折り返させる」。**
   説明文に上限の幅を与え、案内は入らなければ2段に回す。
   ============================================================ */
.brand { flex-shrink: 1; min-width: 0; }
.brand-text { min-width: 0; }
.brand-tag { max-width: 24em; }
.global-nav { min-width: 0; flex-wrap: wrap; }

/* 10字までの強調は行をまたがせない(build 側で class を付けている)。
   数字と単位も離さない。「108 ⏎ 社」と割れると意味の塊が壊れる。 */
.nw { white-space: nowrap; }
.stat-n, .quick-n, .ring-n { white-space: nowrap; }

/* ページ全体のわずかな横はみ出しを止める。`clip` はスクロールの入れ物を
   作らないので position:sticky のヘッダーはそのまま効く。
   要素ごとのはみ出し検査は残してあるので、本物の崩れは今までどおり見つかる。 */
html, body { overflow-x: clip; }

/* ============================================================
   狭い画面では2列をやめて、項目名の下に値を置く  2026-08-25
   (資金の教科書から移植)

   2列のままだと幅の取り合いになる。実測(375px)で値の列が約190pxしかなく、
   「派遣社員向けe / ラーニング研修システム」のように8〜10文字ごとに
   折り返して読めなかった。積めば値が画面幅をすべて使える。

   **積むのは「項目名＋値」の2列表だけ。**一覧表まで積むと縦に伸びすぎる。
   全行が th+td の表だけを `:has()` で選ぶ。

   **文字色も一緒に変えること。**th は濃紺の地に白文字なので、
   背景だけ薄くすると白地に白になって項目名が消える(資金の教科書で30か所やった)。
   ============================================================ */
@media (max-width: 560px) {
  .post table:has(tr > th:first-child + td:last-child),
  .post table:has(tr > th:first-child + td:last-child) tbody,
  .post table:has(tr > th:first-child + td:last-child) tr,
  .tbl-wrap table:has(tr > th:first-child + td:last-child),
  .tbl-wrap table:has(tr > th:first-child + td:last-child) tbody,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) tr { display: block; width: 100%; }

  .post table:has(tr > th:first-child + td:last-child) tr,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) tr {
    border-bottom: 1px solid var(--rule, #e5e1d8); padding: 2px 0;
  }
  .post table:has(tr > th:first-child + td:last-child) tr:last-child,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) tr:last-child { border-bottom: 0; }

  .post table:has(tr > th:first-child + td:last-child) th,
  .post table:has(tr > th:first-child + td:last-child) td,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) th,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) td {
    display: block; width: auto; min-width: 0; white-space: normal;
    border: 0; padding: 6px 10px;
  }
  .post table:has(tr > th:first-child + td:last-child) th,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) th {
    background: var(--paper-shade, #f4f2ec);
    color: var(--ink, #1c1c1c);      /* 白地に白文字にしない */
    font-size: 12px; padding-bottom: 2px;
  }
  .post table:has(tr > th:first-child + td:last-child) td,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) td { padding-top: 2px; }
}

/* **条件のさくいんは、三本線を押すと縦に出す(2026-08-29、資金の教科書から移植)。**
   ユーザーの指示:
   > **「枠内スクロールは見づらさにつながるからなし。スマホでもやめてくれ」**
   > **「バーせん三本で押したらたてにメニューがずらっとでるやつ」**

   元は `.sp-tabbar` で横スクロールしていた。**実測(2026-08-29):**
     全62枚 / 320〜430px のすべてで **中身705px > 枠305〜415px**
     → **右側が切れて読めない。**しかも**文書は広がらないので、
       `documentElement.scrollWidth` を見る検査では0件に見える**(fuku2 の指摘)。
   **「横スクロールが無い」で合格にしてはいけない**のは、この形があるため。

   details/summary で作る。**JSが動かなくても押せば開く。**
   PCでは開いた状態を既定にして、押す手間を増やさない。 */
.cond-menu {
  margin: 0;
  background: var(--ai-deep, #17395f);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.cond-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  /* **44px以上を確保する。**タップ領域が32px未満だと機械QAが拾う */
  min-height: 46px;
  padding: 0 14px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cond-menu > summary::-webkit-details-marker { display: none; }
.cond-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 17px; }
.cond-bars i { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .18s, opacity .18s; }
/* 開いたら×に変える。**いま開いているかが分かる** */
.cond-menu[open] .cond-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.cond-menu[open] .cond-bars i:nth-child(2) { opacity: 0; }
.cond-menu[open] .cond-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.cond-count { margin-left: auto; font-size: 11.5px; font-weight: 700; opacity: .78; }

.cond-list { display: flex; flex-direction: column; padding: 2px 0 8px; }
.cond-list > a {
  /* **1行1件。**縦にずらっと出す */
  display: block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 14px 0 30px;
  color: rgba(255, 255, 255, .93);
  font-size: 13.5px;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, .10);
  position: relative;
}
.cond-list > a::before {
  content: "\203A";
  position: absolute; left: 15px; top: 0;
  opacity: .5; font-weight: 700;
}
.cond-list > a:active { background: rgba(255, 255, 255, .12); }
.cond-list > .cond-sep { margin-top: 6px; border-top: 2px solid rgba(255, 255, 255, .22); font-weight: 800; }

/* PCは開いたままにして、2列で見せる（押す手間を作らない） */
@media (min-width: 768px) {
  .cond-menu > summary { display: none; }
  .cond-list {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 6px 10px;
  }
  .cond-list > a {
    min-height: 34px; line-height: 34px;
    padding: 0 12px 0 22px;
    border-top: 0;
    font-size: 12.5px;
  }
  .cond-list > a::before { left: 8px; }
  .cond-list > .cond-sep { margin-top: 0; border-top: 0; }
}


/* ---------------- 2列の表は、スマホで縦に積む（2026-08-29、資金の教科書から移植） ----------------
   横スクロールを外したので、狭い幅では列が潰れる。**積めば値が画面幅をすべて使える。**

   **積むのは「項目名＋値」の2列表だけ。**一覧表（見出し行 th×6／データ行 td×6）まで
   積むと、資金の教科書では 23,532px → 37,429px に伸びた（実測）。
   2列表は全行が th+td なので、:has() でそこだけを選ぶ。 */
@media (max-width: 720px) {
  .post table:has(tr > th:first-child + td:last-child),
  .post table:has(tr > th:first-child + td:last-child) tbody,
  .post table:has(tr > th:first-child + td:last-child) tr { display: block; width: 100%; }
  .post table:has(tr > th:first-child + td:last-child) tr {
    border-bottom: 1px solid var(--rule); padding: 2px 0;
  }
  .post table:has(tr > th:first-child + td:last-child) tr:last-child { border-bottom: 0; }
  .post table:has(tr > th:first-child + td:last-child) th,
  .post table:has(tr > th:first-child + td:last-child) td {
    display: block;
    width: auto;
    min-width: 0;
    white-space: normal;
    border: 0;
    padding: 6px 10px;
  }
  .post table:has(tr > th:first-child + td:last-child) th {
    background: var(--paper-shade, #f4f2eb);
    /* **文字色も一緒に変える。**`.post th` は濃紺の地に白文字という組で指定されている。
       背景だけ薄くすると**白地に白**になり、項目名が消える。
       資金の教科書では実際に30箇所を消していた（コントラスト比1.12で検出）。
       **背景を変えるときは、その地に載っている文字色も必ず見る。** */
    color: var(--ink);
    font-size: 12px;
    padding-bottom: 2px;
  }
  .post table:has(tr > th:first-child + td:last-child) td { padding-top: 2px; }

  /* 包みの中の表も同じ扱いにする（.tbl-wrap は横スクロールを外したので、
     中身が入りきらないと切れるのではなく潰れる） */
  .tbl-wrap table { table-layout: fixed; max-width: 100%; }
  .tbl-wrap th, .tbl-wrap td { white-space: normal; word-break: normal; }
}

/* **比較表を狭い幅で折り返す(2026-08-29)。**
   元は .scroll-x で包んで横スクロールさせていた。実測: 320pxで **中身290px > 枠241px**。
   ユーザーの指示: **「枠内スクロールは見づらさにつながるからなし。スマホでもやめてくれ」**
   中身は文章なので折り返せる。**white-space:nowrap を外し、幅の決め打ちもやめる。** */
@media (max-width: 560px) {
  .vs-table { table-layout: fixed; }
  .vs-table th, .vs-table td { padding: 10px 8px; font-size: 12.5px; line-height: 1.7; }
  .vs-table tr:first-child th { white-space: normal; font-size: 12.5px; }
  .vs-table th { width: auto; white-space: normal; }
}

/* ============================================================
   3列以上の表を、狭い画面では1行＝1枚のカードに畳む  2026-09-02
   ------------------------------------------------------------
   **実測（実ブラウザ・kaigyou）:**
     320px  崩れ538 / 語割れ128 / 溢れ15 / 孤立115
     390px  崩れ165 / 語割れ 89 / 溢れ15 / 孤立 43
   5列の表が **1列54px＝4文字** になり、`<td>` の中で
   「パ ／ ー」「遣 ／ 」」のような禁則違反が大量に出ていた。

   畳む規則は既にあったが `:has(tr > th:first-child + td:last-child)` で、
   **2列の表（項目名｜値）にしか当たらない。**3列以上は素通りしていた。

   **横スクロールで逃がす案は採らない。**このリポジトリは 2026-08-29 に
   `.tbl-wrap` から `overflow-x:auto` を外している（切れているのに検査からは
   無事に見える、という理由）。**逃がす先も畳む先も無い状態が、多列表だけ残っていた。**

   ラベルは build.mjs が `data-label` としてセルに配る（見出し行の語）。
   **ラベルが無いまま縦に積むと、どの数字が何なのか分からなくなる。**
   ============================================================ */
@media (max-width: 560px) {
  .tbl-wrap table.tbl-multi,
  .tbl-wrap table.tbl-multi tbody,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi tbody { display: block; width: 100%; }

  /* 見出し行はラベルに置き換わるので隠す。**表の意味は失わない**
     ★**`tr:first-child` だけで書いてはいけない(2026-09-02 実測で事故)。**
     `<thead>` がある表では **`tbody` の最初のデータ行も `tr:first-child`** に当たる。
     実際に「派遣の区分がある 18社」「有料職業紹介の許可番号あり 24社」が
     **320pxの画面から消えていた。**見出しを隠すつもりで、中身を1行ずつ隠していた。
     → **thead があるならそれを隠す。無いときだけ最初の行を隠す。** */
  .tbl-wrap table.tbl-multi thead,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi thead { display: none; }

  .tbl-wrap table.tbl-multi:not(:has(thead)) > tbody > tr:first-child,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi:not(:has(thead)) > tbody > tr:first-child { display: none; }

  .tbl-wrap table.tbl-multi tr,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi tr {
    display: block; width: 100%;
    border: 1px solid var(--rule, #e5e1d8);
    border-radius: var(--radius, 4px);
    background: var(--white, #fff);
    margin: 0 0 10px; padding: 4px 0;
  }
  .tbl-wrap table.tbl-multi tr:last-child,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi tr:last-child { margin-bottom: 0; }

  .tbl-wrap table.tbl-multi td,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi td {
    display: block; width: auto; min-width: 0;
    white-space: normal; word-break: auto-phrase;
    border: 0; border-top: 1px solid var(--rule, #e5e1d8);
    padding: 8px 12px 10px; line-height: 1.85;
  }
  .tbl-wrap table.tbl-multi tr > td:first-child,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi tr > td:first-child { border-top: 0; }

  /* **項目名は必ず出す。**白地に白にしない（資金の教科書で30か所やった） */
  .tbl-wrap table.tbl-multi td[data-label]::before,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--ink-soft, #6b6b6b);
    margin-bottom: 2px;
  }
  /* 1列目（サービス名）は見出しとして大きく。ラベルは要らない */
  .tbl-wrap table.tbl-multi tr > td:first-child,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi tr > td:first-child {
    font-size: 15px; font-weight: 700; padding-top: 10px;
  }
  .tbl-wrap table.tbl-multi tr > td:first-child::before,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi tr > td:first-child::before { display: none; }

  /* 畳んだので、列の最小幅は要らない。**残すと1行が横に伸びる** */
  .tbl-wrap table.tbl-multi th,
  .tbl-wrap table.tbl-multi td,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi th,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi td { min-width: 0; }
  .tbl-wrap table.tbl-multi { min-width: 0; table-layout: auto; }
}

/* **畳んだ表のセルは、もう「どこでも折る」必要が無い(2026-09-02 実測)。**
   2列の表は `:has(tr > th:first-child + td:last-child)` で既にカードに畳まれていて、
   **セル幅は271px（画面いっぱい）**ある。それなのに
   `.tbl-wrap th, .tbl-wrap td { word-break: normal }` と `overflow-wrap: anywhere` が残っていて、
   「単発派遣を数え ／ ていた」「資 ／ 本金は」と**語の途中で折れていた。**
   どちらも**列が潰れていた時代の指定**で、畳んだ今は害しかない。
   **潰れる前提の指定を、畳んだあとも残さない。**
   URLのような切れ目の無い半角は `code` `.url` 側の anywhere が受けるので、ここでは戻す。 */
@media (max-width: 560px) {
  .tbl-wrap table:has(tr > th:first-child + td:last-child) th,
  .tbl-wrap table:has(tr > th:first-child + td:last-child) td,
  .post table:has(tr > th:first-child + td:last-child) th,
  .post table:has(tr > th:first-child + td:last-child) td,
  .tbl-wrap table.tbl-multi th,
  .tbl-wrap table.tbl-multi td,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi th,
  .fk-table-wrap table.tbl-multi,
  .post table.tbl-multi td {
    word-break: auto-phrase;
    overflow-wrap: normal;
  }
}


/* ============================================================
   D-6b（2026-09-05）: サービスページに足した「決めるための節」
   結論3行 / 公式で確認する3点 / 料金 / 登録前に確かめること(3列) / 向いている人 / 流れ / FAQ / 横並び表
   数字は台帳の列の引用だけ。口コミ・星は無い。
   横並び表は既存の .tbl-wrap と表の折りたたみに載せる（**枠内スクロールは使わない**・2026-08-29 のオーナー指示）。
   ============================================================ */
.ketsuron { margin: 18px 0 22px; padding: 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--shu); background: var(--white); border-radius: 3px; }
.ketsuron h2 { margin: 0 0 10px; font-size: 17px; word-break: auto-phrase; }
.ketsuron dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; }
.ketsuron dt { font-weight: 800; font-size: 13px; color: var(--ai-deep); white-space: nowrap; }
.ketsuron dd { margin: 0; font-size: 13.5px; line-height: 1.8; word-break: auto-phrase; min-width: 0; }
.ketsuron-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.8; word-break: auto-phrase; }
@media (max-width: 430px) {
  .ketsuron dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .ketsuron dd { margin-bottom: 6px; }
}
.official-3 { margin: 14px 0 4px; font-size: 13.5px; line-height: 1.85; word-break: auto-phrase; }
.official-3-list { margin: 0 0 12px; padding-left: 1.4em; font-size: 13.5px; line-height: 1.85; }
.official-3-list li { word-break: auto-phrase; }
.fee-line { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.85; word-break: auto-phrase; }
.fit-list { margin: 0 0 18px; padding-left: 1.3em; }
.fit-list li { font-size: 13.5px; line-height: 1.9; word-break: auto-phrase; }
.flow { margin: 0 0 8px; padding-left: 1.4em; }
.flow li { font-size: 13.5px; line-height: 1.85; margin-bottom: 6px; word-break: auto-phrase; }
.flow-note, .compare-note { font-size: 12px; color: var(--ink-soft); line-height: 1.8; margin: 4px 0 14px; word-break: auto-phrase; }

/* 登録前に確かめること（資金の教科書の .check-before と同じ形） */
.check-before { margin: 26px 0; }
.check-before h2 { word-break: auto-phrase; }
.check-note { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.8; word-break: auto-phrase; }
.check-col { border: 1px solid var(--rule); border-radius: 3px; padding: 13px 15px; margin: 0 0 12px; }
.check-col h3 { margin: 0 0 8px; font-size: 14px; }
.check-col ul { margin: 0; padding-left: 1.2em; }
.check-col li { font-size: 13.5px; line-height: 1.9; word-break: auto-phrase; }
.check-col p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--ink-soft); }
.check-good { background: var(--paper-shade, #f4f2eb); }
.check-care { background: var(--white); border-left: 3px solid var(--ai-deep); }
.compare-near td.co { font-weight: 700; }
.compare-near tbody tr:first-child td.co { border-left: 3px solid var(--shu); }
/* 一覧の結論: dt に社名(長い)が入るので縦積み */
.ketsuron-list dl { display: block; }
.ketsuron-list dt { white-space: normal; margin-top: 8px; font-size: 14px; word-break: auto-phrase; }
.ketsuron-list dt:first-child { margin-top: 0; }
.ketsuron-list dd { margin: 2px 0 0; }

/* 隣接案件（2026-09-06）: 横並び表の社名入り CTA */
.btn-mini { display: inline-block; padding: 6px 10px; border-radius: 3px; background: var(--shu); color: #fff !important; font-size: 12.5px; font-weight: 700; line-height: 1.5; text-decoration: none; word-break: auto-phrase; }
.btn-mini:hover { background: var(--shu-deep); }
.btn-mini-plain { background: var(--white); color: var(--ai-deep) !important; border: 1px solid var(--ai-deep); }
.cta-cell { min-width: 11em; }
.src { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.adjacent { margin: 28px 0; }
.adjacent h2 { word-break: auto-phrase; }
.pr-label { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; margin: 6px 0 10px; word-break: auto-phrase; }
/* 横並び表は6列（公式列を足した）。.post table の min-width:10em×6 では 721〜1023px で枠を越える（768px 実測・2026-09-06）。
   枠内スクロールは使わない方針なので、列の最小幅を外して折り返す。 */
table.compare-near th, table.compare-near td { min-width: 0; padding: 7px 8px; font-size: 12.5px; word-break: auto-phrase; }
table.compare-near td.co { min-width: 6em; }
table.compare-near .cta-cell { min-width: 0; }
table.compare-near .btn-mini { white-space: normal; padding: 5px 8px; font-size: 12px; }
/* ============ サービステンプレ v2（2026-09-06）: 共通D（ファクログ水準）・共通C ランキング ============ */
.btn-primary, .btn-mini { background: #f07a1a; }
.btn-primary:hover, .btn-mini:hover { background: #d3660f; }
.btn-card { display: block; width: 100%; text-align: center; margin-top: 8px; padding: 11px 10px; min-height: 44px; font-size: 13.5px; }
.score-frame { margin: 14px 0 18px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 3px; background: #eaf1fb; }
.score-total { font-size: 15px; margin: 0 0 8px; color: #1a1a1a; }
.score-total b { font-size: 20px; color: #1e4fa3; }
.score-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: 12.5px; margin: 4px 0; }
.score-label { color: var(--ink-soft); white-space: nowrap; }
.score-bar { display: block; height: 8px; background: #fff; border: 1px solid #c9d6ea; border-radius: 4px; overflow: hidden; min-width: 0; }
.score-bar i { display: block; height: 100%; background: #1e4fa3; }
.score-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.score-val small, .score-total small, .score-note { font-size: 11.5px; color: var(--ink-soft); }
.score-note { margin: 8px 0 0; line-height: 1.7; word-break: auto-phrase; }
@media (max-width: 430px) { .score-row { grid-template-columns: minmax(0, 1fr) auto; } .score-label { grid-column: 1 / -1; } }
.cta-card { margin: 12px 0 18px; padding: 12px 14px; border: 1px solid #f0c9a8; border-radius: 3px; background: #fff7f0; }
.cta-card-plain { background: var(--white); border-color: var(--rule); }
.official-link { margin: 6px 0 0; font-size: 13.5px; word-break: auto-phrase; }
.official-link small { display: block; font-size: 12px; color: var(--ink-soft); }
.aff-cards { margin: 18px 0 22px; }
.aff-cards h2 { font-size: 17px; word-break: auto-phrase; }
.aff-card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.aff-card { border: 1px solid var(--rule); border-radius: 3px; padding: 12px; background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.aff-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 700; font-size: 15px; word-break: auto-phrase; }
.aff-rank { font-size: 11.5px; color: #1e4fa3; white-space: nowrap; }
.aff-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; margin: 8px 0 0; font-size: 12.5px; }
.aff-card dt { color: var(--ink-soft); white-space: nowrap; }
.aff-card dd { margin: 0; min-width: 0; word-break: auto-phrase; }
.aff-card-date { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-soft); }
.sister-list li, .related-articles li { line-height: 1.9; font-size: 13.5px; word-break: auto-phrase; }
.sister-list small { color: var(--ink-soft); font-size: 12px; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0; font-size: 13px; flex-wrap: wrap; }
.prev-next a { word-break: auto-phrase; }
.phone-box { margin: 14px 0 18px; padding: 12px 14px; border: 1px solid var(--rule); border-left: 4px solid #1e4fa3; background: var(--white); border-radius: 3px; }
.phone-box h2 { font-size: 16px; margin: 0 0 6px; word-break: auto-phrase; }
.phone-box p { margin: 4px 0; font-size: 13.5px; line-height: 1.8; word-break: auto-phrase; }
/* 721〜1023px: 折りたたみも枠内スクロールも無い帯。6列表は固定レイアウトで枠に収める（768px 実測・2026-09-06） */
@media (min-width: 721px) and (max-width: 1023px) { table.tbl-multi.compare-near { table-layout: fixed; width: 100%; } table.tbl-multi.compare-near th, table.tbl-multi.compare-near td { min-width: 0; font-size: 12px; padding: 6px 6px; } table.tbl-multi.compare-near .btn-mini { font-size: 11.5px; padding: 4px 6px; } }

/* B-7（2026-09-06）: 40字を超えるセルは折りたたみ */
.cell-more { margin: 0; }
.cell-more summary { cursor: pointer; list-style: none; color: var(--ai-deep); word-break: auto-phrase; }
.cell-more summary::-webkit-details-marker { display: none; }
.cell-more summary::after { content: " ▾全文"; font-size: 11px; color: var(--ink-soft); } /* nowrap を外した: トップの5列表が 768px で 1px 溢れた(2026-09-06) */
.cell-more[open] summary { display: none; }
.cell-more summary, .cell-more span { overflow-wrap: anywhere; } /* 開いた全文に折り返せない語があると 768px の5列表が 1px 溢れる(2026-09-06 実測) */
.cell-more span { word-break: auto-phrase; }


/* ============================================================
   faclog-kit の申込ボタンの色を上書きする  2026-09-06
   **kit の `.fk-cta` は #fff on #f07a1a で、コントラスト 2.80。**
   基準 4.5 を割っている（大きい文字の 3.0 も割る）。**実際に本番に出ている**
   （資金2枚・薬剤師1枚）ので、こちらで上書きする。
   **kit.css は fuku6 の正本なので触らない。**上書きなら kit を更新しても残る。
   #fff on #b8560c = 4.8。**白文字のままボタンに見える濃さで、基準を満たす最小の変更。**
   ※ こちらの kit.css は色が古い版（--fk-primary #1e4fa3・pale #eaf1fb）なので、
     fuku6 の道具が出した .fk-tag 3.15 はこちらには当たらない（実測 9.52）。
   ============================================================ */
.fk-cta { background: #b8560c; }
.fk-cta:hover { background: #a34c0a; }


/* ============================================================
   淡い地の上の小さい文字を、基準(4.5)まで濃くする  2026-09-06
   **fuku6 の「明るい面は文字を濃くする」に合わせた。**地は変えない。
   実測（この style.css の色で計算）:
     .ad-notice           #6e7480 on #f4f2eb = **4.19**（10px・**広告の断り書き**）
     .band-hero .hero-proof  #9aa0ab on 淡い地 = **2.04**（12px・トップの第1画面）
     .band-hero .hero-proof strong  #6e7480 on 淡い地 = **3.64**
     .ended-note small    #6e7480 on #faede9 = **4.1**
   → いずれも --ink-mid(#5d636e) 以上にすると 4.69〜5.39 で通る。
   **広告の断り書きが読みにくいのは、飾りの問題ではない。**
   ※ CSS なので実験群・対照群の全ページに等しく当たる。浅い汚染として記録済み。
   ============================================================ */
:root { --ink-mid: #5d636e; }
.ad-notice { color: var(--ink-mid); }
.band-hero .hero-proof { color: var(--ink-mid) !important; }
.band-hero .hero-proof strong { color: #4e535c; }
.ended-note small { color: var(--ink-mid); }

/* ============================================================
   診断のたたみ込み ＋ 順位ブロック  2026-09-07
   オーナー指示:
     「あなたにお勧めの会社を検索する⇒みたいなボタンを設置して押したら開く形に。
      今は条件がずらーと並んでて冗長だわ」
     「ランキングがないじゃん？」「あなたの条件を教えてくださいの下にこれ設置して」
   **faclog の CSS・色・マークアップは写していない**（§11-E で丸写しは禁止）。
   借りたのは情報設計（重要な順に、カード／順位／CTA を面で分ける）だけで、
   色も字も寸法もこのサイトの紙と藍のトークンを使う。
   **星・評価点・口コミ件数の欄は作らない。**持っていないものは置かない（§11-A-1）。
   ============================================================ */

/* ---- 診断を1本のボタンに畳む ---- */
.shindan-open { max-width: 760px; margin: 0 auto; }
.shindan-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;   /* **1fr は縮まない。**minmax(0,…) で潰す */
  align-items: center;
  gap: 16px;
  background: var(--ai);
  color: #fff;
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-lg);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;                              /* 11-B-7 タップ高 */
}
.shindan-trigger::-webkit-details-marker { display: none; }
.shindan-trigger:hover { background: var(--ai-deep); }
.shindan-trigger-text { min-width: 0; }
.shindan-trigger-text b {
  display: block;
  font-family: var(--sans);
  font-size: clamp(17px, 2.6vw, 21px);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}
.shindan-trigger-text small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  opacity: .88;
  line-height: 1.5;
}
.shindan-trigger-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease;
}
.shindan-open[open] .shindan-trigger { border-radius: var(--lp-radius) var(--lp-radius) 0 0; box-shadow: none; }
.shindan-open[open] .shindan-trigger-arrow { transform: rotate(90deg); }
.shindan-inner {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-top: 0;
  border-radius: 0 0 var(--lp-radius) var(--lp-radius);
  box-shadow: var(--lp-shadow-lg);
  padding: 28px 22px 26px;
}
.shindan-inner .sec-title { margin-top: 0; }
.shindan-inner .shindan-box { box-shadow: none; border-radius: 0; padding: 22px 0 0; max-width: none; }

/* ---- 広告の表示（節の単位）---- */
.promo-label {
  margin: -6px 0 18px;
  font-size: 12px;
  color: var(--ink-mid);
  letter-spacing: .02em;
}

/* ---- 上位カードの並び ---- */
.rank-pick { background: var(--paper-shade); padding: 64px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.rank-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 24px 0 20px;
}
.rank-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;        /* 順位・社名枠・事実・CTA。CTA を下端で揃える */
  gap: 10px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px 14px 14px;
  min-width: 0;
}
.rank-badge {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.rank-badge b { font-family: var(--serif); font-size: 21px; color: var(--shu); margin: 0 2px; }
.rank-name { margin: 0; }
.rank-mark-link { display: block; text-decoration: none; }
.rank-mark-link:hover .rank-mark { border-color: var(--ai); background: var(--ai-pale); color: var(--ai-deep); }
.rank-mark {
  display: grid;
  place-items: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  background: var(--paper-shade);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: .02em;
  padding: 8px;
  min-width: 0;
}
/* **「入らないから縮める」ではなく、ロゴ枠として段を決める**（付則A-1）。折る位置は wbrName に任せる */
.rank-mark-s1 { font-size: 20px; }
.rank-mark-s2 { font-size: 17px; }
.rank-mark-s3 { font-size: 14px; }
.rank-mark-s4 { font-size: 12px; }
.rank-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);    /* A-7: ラベルと値の2列。文章にしない */
  gap: 2px 10px;
  margin: 0;
  font-size: 12.5px;
  align-content: start;
}
.rank-facts dt { color: var(--ink-soft); }
.rank-facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rank-facts dd small { font-weight: 500; color: var(--ink-soft); }
.rank-cta {
  display: block;                                 /* A-17: flex にしない。無名フレックス要素で縮まなくなる */
  text-align: center;
  background: var(--ai);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  border-radius: var(--radius);
  padding: 12px 10px;
  min-height: 44px;
}
.rank-cta:hover { background: var(--ai-deep); }
.rank-cta-plain { background: #fff; color: var(--ai); border: 1.5px solid var(--ai); }
.rank-cta-plain:hover { background: var(--ai-pale); }
.rank-pr {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  font-size: 10.5px;
  letter-spacing: .06em;
}
.rank-note {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-mid);
}

/* ---- 軸別の順位（カテゴリ枠 ＋ 横にオススメ記事）2026-09-07 ---- */
.rank-axes { padding: 64px 0; }
/* 広い画面: 順位の面と、記事の面を横に並べる */
.rank-axes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;   /* **1fr は縮まない。**minmax(0,…) で潰す */
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.axis-main { min-width: 0; }
.axis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0 0 20px;
}
/* タブは狭い画面だけ。広い画面では全カテゴリを同時に出す（オーナー指示） */
.axis-radio { position: absolute; opacity: 0; pointer-events: none; }
.axis-tabbar { display: none; }
.axis-box {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
  min-width: 0;
}
.axis-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  border-bottom: 2px solid var(--ai-pale);
  padding-bottom: 8px;
}
.axis-n { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 500; color: var(--ink-soft); margin-top: 3px; }
.axis-list { list-style: none; margin: 0; padding: 0; }
.axis-item {
  display: grid;                                  /* A-17: 裸のテキストを flex に置かない */
  grid-template-columns: 2.6em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 13.5px;
}
.axis-item:last-child { border-bottom: 0; }
.axis-rank { font-family: var(--serif); font-weight: 800; color: var(--shu); font-variant-numeric: tabular-nums; }
.axis-name { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.45; }
.axis-name:hover { color: var(--ai); text-decoration: underline; }
.axis-val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.axis-pr {
  grid-column: 3;
  font-size: 10px;
  font-weight: 700;
  color: var(--shu-deep);
  background: var(--shu-pale);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: .06em;
}
.axis-tel {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--ai-pale);
  border-left: 3px solid var(--ai);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  line-height: 1.85;
}
.axis-tel b { font-variant-numeric: tabular-nums; }

/* 320〜360px: カードを1列にし、数字の桁で潰れないようにする */
@media (max-width: 380px) {
  .rank-pick, .rank-axes { padding: 44px 0; }
  .shindan-trigger { padding: 16px 16px; gap: 10px; }
  .rank-row, .axis-grid { gap: 12px; }
  .axis-item { grid-template-columns: 2.4em minmax(0, 1fr); }
  .axis-val { grid-column: 2; text-align: right; }
  .axis-pr { grid-column: 2; justify-self: end; }
}

/* ---- ヒーローのロゴ（2026-09-07 オーナー指示でCTAボタンと置換）---- */
.hero-logo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 6px 0 18px;
}
.hero-logo-mark {
  display: block;
  width: clamp(64px, 12vw, 104px);
  color: var(--ai);
}
.hero-logo-mark svg { display: block; width: 100%; height: auto; }
.hero-logo-text { min-width: 0; }
.hero-logo-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 6.4vw, 54px);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.hero-logo-tag {
  display: block;
  margin-top: 8px;
  font-size: clamp(11.5px, 1.5vw, 13.5px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-mid);
}

/* ---- ランキング横のオススメ記事 ---- */
.rank-aside {
  min-width: 0;
  background: var(--paper-shade);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.aside-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  border-bottom: 2px solid var(--shu-pale);
  padding-bottom: 8px;
}
.aside-list { list-style: none; margin: 0 0 12px; padding: 0; }
.aside-item + .aside-item { margin-top: 10px; }
.aside-link {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);   /* サムネと題。文章にしない */
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.aside-thumb {
  display: block;
  width: 84px;
  height: auto;
  aspect-ratio: 320 / 168;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: #fff;
}
.aside-text {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  min-width: 0;
}
.aside-link:hover .aside-text { color: var(--ai); text-decoration: underline; }
.aside-more {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ai);
  text-decoration: none;
}
.aside-more:hover { text-decoration: underline; }

/* ---- 狭い画面: 記事は順位の下へ。カテゴリはタブにする ---- */
@media (max-width: 900px) {
  .rank-axes-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .aside-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
  .aside-item + .aside-item { margin-top: 0; }
}
@media (max-width: 768px) {
  /* **タブは radio + :checked だけで切り替える。**JSが動かなくても効く */
  /* **横に逃がさない。**(2026-09-08)
     最初は `overflow-x: auto` で逃がしていたが、実画面で 320〜428 の6幅すべてで
     `label.axis-tab` が right=433 まで出ていた。**逃がせば数字は消えるが、読む人は3つ目に気づかない。**
     オーナーは枠内スクロールを禁じている（.cond-menu の注記）:
     > **「枠内スクロールは見づらさにつながるからなし。スマホでもやめてくれ」**
     → **折り返す。**名前も「求人数／雇用形態／拠点数」に短くしたので、狭い幅でも2行に収まる。 */
  .axis-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
  }
  .axis-tab {
    flex: 0 1 auto;
    min-width: 0;
    display: inline-block;
    padding: 10px 14px;
    min-height: 44px;                 /* 11-B-7 タップ高 */
    line-height: 24px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-mid);
    cursor: pointer;
    white-space: nowrap;
  }
  .axis-grid { display: block; }
  .axis-box { display: none; }
  /* 選ばれたタブに色を付け、対応する枠だけ出す */
  #axis-tab-kyujin:checked ~ .axis-tabbar label[for="axis-tab-kyujin"],
  #axis-tab-koyou:checked  ~ .axis-tabbar label[for="axis-tab-koyou"],
  #axis-tab-kyoten:checked ~ .axis-tabbar label[for="axis-tab-kyoten"] {
    background: var(--ai); border-color: var(--ai); color: #fff;
  }
  #axis-tab-kyujin:checked ~ .axis-grid .axis-box-kyujin,
  #axis-tab-koyou:checked  ~ .axis-grid .axis-box-koyou,
  #axis-tab-kyoten:checked ~ .axis-grid .axis-box-kyoten { display: block; }
  /* **キーボードでタブを移動できるようにする。**radio は隠しているので、選択中の枠に輪郭を出す */
  .axis-radio:focus-visible ~ .axis-tabbar label { outline: 2px solid var(--ai); outline-offset: 2px; }
}
@media (max-width: 380px) {
  .hero-logo { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .aside-link { grid-template-columns: 72px minmax(0, 1fr); }
  .aside-thumb { width: 72px; }
}

/* ---- 表のセルが丸ごと押せるようにする（2026-09-08・実画面の指摘 1,626件のうち最大群）----
   実測: `20px:ファルマスタッフ` のような**表の中の社名リンクが 889件**。
   セルは `padding:10px 13px` を持っているのに、**当たり判定は文字の行ボックス（約20px）だけ**だった。
   ★**余白を足すのではなく、セルの余白をリンクへ移す。**
     高さは1pxも増えない（同じ余白が場所を変えるだけ）のに、当たり判定は約20px → 約40px になる。
   「入らないから縮める／足りないから足す」の前に、**いま在るものを配り直せないか**を見る。
   `:has()` はこのファイルの 2492行で既に使っている（同じ土俵）。 */
.tbl-wrap td:has(> a:only-child),
.tbl-wrap th:has(> a:only-child) { padding: 0; }
.tbl-wrap td > a:only-child,
.tbl-wrap th > a:only-child { display: block; padding: 10px 13px; }
/* 記事の中の表も同じ扱い。**片方だけ直すと、同じ表が場所で違う挙動になる** */
.post table td:has(> a:only-child) { padding: 0; }
.post table td > a:only-child { display: block; padding: 10px 13px; }

/* ---- 関連サービスのカードの社名リンク（2026-09-08・実画面 360件）----
   `.aff-card-head` は 15px の flex で、中の `a` の当たり判定が **29px**。あと3px 足りない。
   ★**余白ではなく行の高さで上げる。**`.aff-card-head` は `align-items: baseline` なので、
   `padding` を足すと隣の `.aff-rank` との基線がずれる。**行の高さなら基線は動かない。** */
.aff-card-head a { display: inline-block; line-height: 2.2; }

/* ---- kit の表を、このサイトの規則に合わせる（2026-09-08・実画面のP0）----
   `/service/haken/` の1枚だけが kit.css を読んでいる（fk- クラス700回以上の本格実装で、
   放棄された残骸ではない。**外すとページが壊れる**）。
   実測: `table.tbl-multi.fk-table` が **320〜428 の6幅すべてで left=17 / right=657**。
   原因は kit 側の2行:
       kit.css:139  .fk-table { min-width: 640px }        ← 縮まない
       kit.css:138  .fk-table-wrap { overflow-x: auto }   ← 横スクロールで逃がす設計
   **このサイトは 2026-08-29 に、まさにその「逃がす」形を .tbl-wrap から外している。**
   （切れているのに検査からは無事に見える、という理由。オーナーも枠内スクロールを禁じている）
   表自身は `tbl-multi` を持ち、`data-label` も `thead` も揃っていた。
   **包みのクラス名が違うだけで、サイト本来の縦積みから外れていた。**
   → 祖先の一覧に `.fk-table-wrap` を足し、ここでは kit 側の固定幅と nowrap と sticky を解く。 */
@media (max-width: 560px) {
  .fk-table-wrap { overflow-x: visible; }
  .fk-table-wrap table.tbl-multi.fk-table { min-width: 0; width: 100%; }
  .fk-table-wrap table.tbl-multi.fk-table th,
  .fk-table-wrap table.tbl-multi.fk-table td { white-space: normal; position: static; box-shadow: none; }
}

/* ---- kit のタブも折り返す（2026-09-08・実画面のP0 6件）----
   `button.fk-tab` が 320〜428 の6幅すべてで right=339 / 451 まで出ていた。
   `kit.css:146` の `.fk-tabs { overflow-x: auto }` が横に逃がす設計。
   ★**同じ形をトップで直したのに、同じページの別部品を見ていなかった。**
   `.fk-table-wrap` は直して `.fk-tabs` を見ていない——**直したことで安心した形。**
   → 逃がすのをやめて折り返す。名前も build.mjs 側で「求人数／雇用形態／拠点数」に短くした。 */
.fk-tabs { flex-wrap: wrap; overflow-x: visible; }
.fk-tab { flex: 0 1 auto; min-width: 0; min-height: 44px; }   /* 11-B-7 タップ高 */

/* ============================================================
   条件で選ぶ（タブ＋詳しい順位カード）  2026-09-08
   オーナー指示「いくつかタブつくって、その条件にあてはまるランキングごとに
   めっちゃ詳しく情報書いて」。faclog の情報設計を借り、**中身はうちの数字だけ**。
   ★星・評価点・口コミ件数の欄は作らない。持っていないので（§11-A-1）。
   ★背景は無地にしない。ただし**網目・マス目は使わない**（オーナー指示）。
     使うのは**にじみ（放射グラデーション）**だけ。線を1本も引かない。
   ============================================================ */
.rk {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(60% 45% at 12% 0%, rgba(47,109,82,.10), transparent 70%),
    radial-gradient(50% 40% at 92% 18%, rgba(184,86,47,.09), transparent 72%),
    radial-gradient(70% 50% at 50% 108%, rgba(47,109,82,.07), transparent 70%),
    var(--paper);
}
.rk-radio { position: absolute; opacity: 0; pointer-events: none; }
.rk-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.rk-tab {
  flex: 0 1 auto; min-width: 0; min-height: 44px;
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  font-family: var(--sans); font-size: 13.5px; font-weight: 800;
  color: var(--ink-mid); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.rk-tab:hover { transform: translateY(-1px); border-color: var(--ai); color: var(--ai-deep); }
.rk-panels { display: block; }
.rk-panel { display: none; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* ---- カード ---- */
.rk-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  min-width: 0;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(34,38,46,.04), 0 18px 40px -28px rgba(34,38,46,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rk-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(34,38,46,.05), 0 26px 54px -26px rgba(34,38,46,.42); }
.rk-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px; }
.rk-place { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; }
.rk-place b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--shu); }
.rk-chip-link { display: block; text-decoration: none; }
/* 会社の識別。**社名から色を決める**ので、同じ会社はどこでも同じ色になる */
.rk-chip {
  display: grid; place-items: center; text-align: center;
  width: 62px; height: 62px; padding: 6px;
  border-radius: 12px;
  background: linear-gradient(150deg, hsl(var(--h) 42% 94%), hsl(var(--h) 38% 87%));
  border: 1px solid hsl(var(--h) 30% 80%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  font-family: var(--serif); font-weight: 800; line-height: 1.05;
  font-size: 24px; letter-spacing: .02em;
  color: hsl(var(--h) 46% 26%);
}
.rk-chip-link:hover .rk-chip { border-color: hsl(var(--h) 40% 62%); }
.rk-title { min-width: 0; }
.rk-title h3 { margin: 0; font-family: var(--sans); font-size: 15.5px; font-weight: 800; line-height: 1.4; text-wrap: balance; }
.rk-title a { color: var(--ink); text-decoration: none; }
.rk-title a:hover { color: var(--ai); text-decoration: underline; }
.rk-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rk-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--ai-deep); background: var(--ai-pale);
  border-radius: 999px; padding: 2px 9px;
}
/* ---- 順位バー（星のかわり。**出どころは公式サイトの数字だけ**）---- */
.rk-bars { display: grid; gap: 7px; }
.rk-bar { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: 12px; }
.rk-bar-label { color: var(--ink-soft); }
.rk-bar-track { height: 7px; border-radius: 999px; background: var(--paper-shade); overflow: hidden; }
.rk-bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ai), #4f9b78); }
.rk-bar-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-bar-rank { font-size: 10.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rk-desc { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-mid); }
.rk-date { margin: 0; font-size: 11px; color: var(--ink-soft); }
.rk-cta {
  display: block; text-align: center;
  min-height: 46px; padding: 13px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ai), var(--ai-deep));
  color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: 13px; font-weight: 800; line-height: 1.4;
  box-shadow: 0 10px 22px -14px rgba(47,109,82,.9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rk-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(47,109,82,.95); }
.rk-cta-plain { background: #fff; color: var(--ai-deep); border: 1.5px solid var(--ai); box-shadow: none; }
.rk-cta-plain:hover { background: var(--ai-pale); }
.rk-pr {
  display: inline-block; margin-left: 7px; padding: 1px 6px;
  border-radius: 999px; background: rgba(255,255,255,.24);
  font-size: 10px; letter-spacing: .06em;
}
.rk-cta-plain .rk-pr { background: var(--ai-pale); }

@media (max-width: 380px) {
  .rk { padding: 48px 0; }
  .rk-head { grid-template-columns: auto minmax(0, 1fr); }
  .rk-place { grid-column: 1 / -1; }
  .rk-bar { grid-template-columns: 4.4em minmax(0, 1fr) auto; }
  .rk-bar-rank { grid-column: 2 / -1; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-card, .rk-cta, .rk-tab { transition: none; }
  .rk-card:hover, .rk-cta:hover, .rk-tab:hover { transform: none; }
}

/* ---- 背景を無地にしない（2026-09-08 オーナー指示）----
   > **「サイトデザインが無地背景ばっかりで寂しいわ。でも網目とかマス目とかもいやだけど」**
   ★**線を1本も引かない。**使うのは放射グラデーションのにじみだけ。
   ★節ごとに違う位置・違う濃さにして、スクロールすると色がゆっくり移る。
     同じ模様を繰り返さない（繰り返すと「網目」に見えはじめる）。 */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(48% 30% at 8% 2%, rgba(47,109,82,.085), transparent 68%),
    radial-gradient(42% 26% at 96% 12%, rgba(184,86,47,.07), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.rank-pick {
  background:
    radial-gradient(58% 42% at 88% 4%, rgba(184,86,47,.10), transparent 70%),
    radial-gradient(52% 38% at 6% 92%, rgba(47,109,82,.09), transparent 72%),
    var(--paper-shade);
}
.shindan-sec {
  background:
    radial-gradient(60% 44% at 50% 0%, rgba(47,109,82,.12), transparent 72%),
    var(--lp-bg-soft);
}
/* ヒーロー: 罫線の背景をやめ、Codex に描かせた抽象画（水彩のにじみ・格子なし）を敷く。
   ★画像は**左に色が寄り、右が明るい**構図で描かせてあるので、文字は右に置いても読める。
   ★`background-size: cover` で、狭い幅では左の濃い側が切れる。**文字の下に色が来ない側を残す。** */
.hero.band-hero {
  background-color: var(--paper);
  background-image:
    linear-gradient(100deg, rgba(251,250,246,.24) 0%, rgba(251,250,246,.68) 46%, rgba(251,250,246,.9) 100%),
    url("/hero/hero-art.webp");
  background-size: cover, cover;
  background-position: center, 18% center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero.band-hero {
    background-image:
      linear-gradient(180deg, rgba(251,250,246,.42) 0%, rgba(251,250,246,.86) 62%, var(--paper) 100%),
      url("/hero/hero-art.webp");
    background-position: center, 30% top;
  }
}

/* ---- 記事一覧 /kiji/（2026-09-08 オーナー指示で新設）---- */
.kj-n { margin-left: 10px; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.kj-list { list-style: none; margin: 0 0 34px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kj-item { min-width: 0; }
.kj-link {
  display: grid; grid-template-rows: auto 1fr; gap: 0;
  height: 100%; min-width: 0;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 2px rgba(34,38,46,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kj-link:hover { transform: translateY(-2px); border-color: var(--ai); box-shadow: 0 16px 34px -22px rgba(34,38,46,.4); }
.kj-thumb { display: block; width: 100%; height: auto; aspect-ratio: 480 / 252; object-fit: cover; background: var(--paper-shade); }
.kj-thumb-none { display: block; width: 100%; aspect-ratio: 480 / 252; background: linear-gradient(140deg, var(--ai-pale), var(--paper-shade)); }
.kj-body { display: grid; gap: 6px; padding: 14px 15px 16px; align-content: start; min-width: 0; }
.kj-cat { font-size: 10.5px; font-weight: 700; color: var(--ai-deep); background: var(--ai-pale); border-radius: 999px; padding: 2px 9px; justify-self: start; }
.kj-title { font-family: var(--sans); font-size: 14px; font-weight: 800; line-height: 1.55; text-wrap: balance; }
.kj-link:hover .kj-title { color: var(--ai); }
.kj-lede { font-size: 12px; line-height: 1.85; color: var(--ink-mid); }

/* ---- 一番下（台帳と記事一覧への導線＋広告の表示）---- */
.tail { padding: 56px 0 40px; border-top: 1px solid var(--hairline); background: var(--paper-shade); }
.tail-inner { display: grid; gap: 18px; justify-items: center; text-align: center; }
.tail-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ad-foot { margin: 0; font-size: 11.5px; color: var(--ink-soft); }

/* ---- ボタンは全部同じ見た目にする（2026-09-08 オーナー指示）----
   > **「ボタン全部デザイン同じにして。PRだけ区別するとかやめて」**
   提携しているかどうかで塗りと枠を変えていたのをやめる。**PR は文字で示す。**
   §11-B-8「色だけで区別しない」にも沿う（もともと文字も出していた）。 */
.rk-cta-plain,
.rank-cta-plain {
  background: linear-gradient(180deg, var(--ai), var(--ai-deep));
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px -14px rgba(47,109,82,.9);
}
.rk-cta-plain:hover,
.rank-cta-plain:hover {
  background: linear-gradient(180deg, var(--ai), var(--ai-deep));
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(47,109,82,.95);
}
.rk-cta-plain .rk-pr { background: rgba(255,255,255,.24); }
.btn-primary { min-height: 46px; }

/* ---- 記事の先頭の1枚（2026-09-09・⑧の差分「画像 相手44 / うち0」を受けて）---- */
.post-art { margin: 18px 0 22px; }
.post-art img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 640 / 360; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--hairline);
  background: var(--paper-shade);
}

/* ===== 口コミの器（2026-09-16）=====
   ★**件数を売り文句にしない。**0件のときは0件と書く枠がここ。
   ★断り書き（本人確認をしていない）は、口コミより先に読める位置に置く。 */
.kk { margin: 2.4rem 0 1.6rem; padding: 1.1rem 1.1rem 1.3rem; border: 1px solid var(--line, #d9d5cc); border-radius: 10px; background: var(--paper2, #fbfaf7); }
.kk h2 { margin-top: 0; text-wrap: balance; }
.kk-note { font-size: .88rem; line-height: 1.75; color: var(--muted, #5b5750); background: var(--paper, #fff); border-left: 3px solid var(--line, #d9d5cc); padding: .7rem .9rem; margin: 0 0 1rem; }
.kk-zero { margin: 0 0 1rem; padding: .9rem; background: var(--paper, #fff); border: 1px dashed var(--line, #d9d5cc); border-radius: 8px; }
.kk-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; }
.kk-item { background: var(--paper, #fff); border: 1px solid var(--line, #d9d5cc); border-radius: 8px; padding: .9rem; }
.kk-item p { margin: 0 0 .5rem; }
.kk-item p:last-child { margin-bottom: 0; }
.kk-meta { font-size: .84rem; color: var(--muted, #5b5750); display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.kk-date { margin-left: auto; }
.kk-form-wrap { border-top: 1px solid var(--line, #d9d5cc); padding-top: .9rem; }
.kk-form-wrap > summary { cursor: pointer; font-weight: 600; padding: .5rem 0; min-height: 44px; display: flex; align-items: center; }
.kk-form { display: grid; gap: .8rem; margin-top: .6rem; }
.kk-form-note { font-size: .86rem; color: var(--muted, #5b5750); margin: 0; }
.kk-form label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 600; }
.kk-form input[type="text"], .kk-form input:not([type]), .kk-form textarea {
  font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid var(--line, #d9d5cc); border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; min-height: 44px;
}
.kk-form textarea { min-height: 88px; resize: vertical; }
.kk-form .kk-check { grid-template-columns: auto 1fr; align-items: start; gap: .5rem; font-weight: 400; font-size: .88rem; line-height: 1.6; }
.kk-form .kk-check input { min-height: auto; margin-top: .2rem; }
.kk-form button { font: inherit; font-weight: 700; min-height: 44px; padding: .6rem 1.4rem; border: 0; border-radius: 6px; background: var(--ink, #1f3a5f); color: #fff; cursor: pointer; justify-self: start; }
.kk-form button[disabled] { opacity: .6; cursor: default; }
.kk-msg { margin: 0; font-size: .9rem; min-height: 1.4em; }
@media (max-width: 560px) { .kk { padding: .9rem .8rem 1.1rem; } .kk-date { margin-left: 0; } }
