/* ============================================================
   医師の転職台帳 – design system 「教科書と台帳」
   紙 #FBFAF6 / 墨 #22262E / 主色 #1f4a6b / 差し色 #b5443a
   見出し: Shippori Mincho B1 / 本文: Zen Kaku Gothic New
   モチーフ: 帳簿の罫線・章立て・確認日の朱印
   ============================================================ */
:root {
  --paper: #fbfaf6;
  --paper-shade: #f4f2eb;
  --white: #ffffff;
  --ink: #22262e;
  --ink-soft: #6e7480;
  --ai: #1f4a6b;
  --ai-deep: #153449;
  --ai-pale: #e9f0f6;
  --shu: #b5443a;
  --shu-deep: #93332b;
  --shu-pale: #faece9;
  --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);
}

* { 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; }

/* mobile index-tab bar (under header) */
.sp-tabbar { display: none; }

.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 ---------------- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 12px 16px 0;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.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); }
.post table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13.5px;
  margin: 14px 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.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); }
.toc a { color: var(--ai); text-decoration: none; font-weight: 700; }
.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;
  }
  /* 藍色のさくいんタブ(本の小口インデックス風) */
  .sp-tabbar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--ai-deep);
    scrollbar-width: none;
  }
  .sp-tabbar::-webkit-scrollbar { display: none; }
  .sp-tabbar a {
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    padding: 10px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
    white-space: nowrap;
  }

  .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: 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; }
}

/* 条件タブ(sp-tabbar)は固定ヘッダーの外に出す。
   ロゴ行56px + タブ行41px が常時貼りついていて、画面下の固定CTAと合わせると
   スマホの縦844pxのうち約200px(24%)がナビで埋まっていた。読む場所を返す。
   横に続きがあることが分からない問題もあったので、右端に影を出す。 */
@media (max-width: 1000px) {
  .sp-tabbar {
    position: relative;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
  }
}

/* 記事の末尾に置く「次の一歩」。読み終えた人に、やることを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;
  -webkit-overflow-scrolling: touch;
  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;
}

/* 条件から探すカード（.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; }
