@charset "UTF-8";
/*
Theme Name: Yachin Navi
Theme URI: https://yachin-navi.com/
Author: 家賃保証会社ナビ
Author URI: https://yachin-navi.com/
Description: 家賃保証会社の審査に不安がある人が、自分の属性（就業状況・信用情報・在留資格・年齢など）に合った保証会社の系統と公的制度を見つけられる情報サイト用テーマ。属性診断ツール、保証会社データベース、属性別ガイドを備えています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: yachin-navi
Tags: blog, custom-menu, custom-logo, translation-ready, two-columns
*/

/* =========================================================
   1. デザイントークン
   ========================================================= */
:root {
  /* 面 */
  --bg:          #ffffff;
  --bg-soft:     #f5f7f9;
  --bg-softer:   #fafbfc;
  --bg-ink:      #12202e;
  --bg-ink-soft: #1b2d3f;

  /* 文字 */
  --text:        #17222e;
  --text-mid:    #4a5866;
  --text-dim:    #6d7a87;
  --text-on-ink: #eef3f7;
  --text-on-ink-dim: #a3b3c1;

  /* アクセント：不安を煽らない、落ち着いた緑青 */
  --accent:      #12756a;
  --accent-deep: #0d5a51;
  --accent-soft: #e6f2f0;
  --accent-line: #b7d9d3;

  /* 補助色 */
  --warn:        #a8620a;
  --warn-soft:   #fdf3e4;
  --warn-line:   #f0d9b3;
  --info:        #1f5f9e;
  --info-soft:   #eaf2fa;
  --info-line:   #c2d9ef;
  --danger:      #a33131;
  --danger-soft: #fbeeee;
  --danger-line: #eecccc;

  /* 罫線 */
  --line:        #e2e7ec;
  --line-strong: #ccd5dd;

  /* かたち */
  --radius-s: 6px;
  --radius:   10px;
  --radius-l: 16px;
  --shadow:   0 1px 2px rgba(18, 32, 46, .05), 0 4px 16px rgba(18, 32, 46, .06);
  --shadow-l: 0 2px 6px rgba(18, 32, 46, .06), 0 12px 40px rgba(18, 32, 46, .10);

  /* 寸法 */
  --wrap:      1120px;
  --wrap-text: 760px;
  --header-h:  64px;

  /* 文字組み */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Meiryo, sans-serif;
  --font-num: "Helvetica Neue", Arial, var(--font);
}

/* =========================================================
   2. リセット / ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.5; letter-spacing: .005em; font-weight: 700; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--bg-ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =========================================================
   3. レイアウト
   ========================================================= */
.wrap  { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-text { width: min(100% - 32px, var(--wrap-text)); margin-inline: auto; }

.site-main { display: block; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding-block: 40px 72px;
}
.layout--single { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

.section { padding-block: 56px; }
.section--soft { background: var(--bg-soft); }
.section--ink  { background: var(--bg-ink); color: var(--text-on-ink); }
.section--ink a { color: #9fd8cf; }

.section-head { margin-bottom: 28px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 8px;
}
.section--ink .section-head .eyebrow { color: #7fc9bd; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(21px, 3.2vw, 28px); }
.section-head p  { margin: 0; color: var(--text-mid); font-size: 15px; }
.section--ink .section-head p { color: var(--text-on-ink-dim); }

/* =========================================================
   4. ヘッダー
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}

.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.site-brand__mark { flex: none; }
.site-brand__name { font-size: 17px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.site-brand__tag  { display: block; font-size: 11px; font-weight: 400; color: var(--text-dim); letter-spacing: .02em; }
.site-brand img { max-height: 40px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: var(--text-mid); text-decoration: none; border-radius: var(--radius-s);
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav .current-menu-item > a { color: var(--accent-deep); font-weight: 700; }

.header-cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #fff !important;
  font-size: 14px; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--accent-deep); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--text); transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none; padding: 8px 16px 20px;
  }
  .nav.is-open { display: block; }
  .nav > ul { width: 100%; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav .header-cta { display: inline-flex; margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* =========================================================
   5. ヒーロー
   ========================================================= */
.hero {
  background:
    radial-gradient(1000px 420px at 82% -10%, rgba(18, 117, 106, .10), transparent 62%),
    linear-gradient(180deg, var(--bg-softer), var(--bg));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 7vw, 76px);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 9px; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; color: var(--accent-deep);
  font-size: 12.5px; font-weight: 700;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.45; letter-spacing: -.005em;
  text-wrap: balance;
}
.hero h1 .mark {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding-inline: 2px;
}
/* 語のまとまりの途中で改行させない */
.hero h1 .nobr { display: inline-block; }
.hero__lead { margin: 0 0 26px; font-size: 16px; color: var(--text-mid); line-height: 1.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 18px 0 0; font-size: 12.5px; color: var(--text-dim); }

/* ヒーロー内のチェックリストカード */
.hero__card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: 26px 26px 22px;
}
.hero__card h2 { margin: 0 0 4px; font-size: 15px; }
.hero__card > p { margin: 0 0 16px; font-size: 13px; color: var(--text-dim); }
.hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hero__list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 14.5px; line-height: 1.6;
}
.hero__list li:last-child { border-bottom: 0; }
.hero__list li::before {
  content: ""; flex: none; margin-top: 5px;
  width: 15px; height: 15px; border-radius: 4px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312756a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* =========================================================
   6. ボタン
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: .18s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn--ink { background: #fff; color: var(--bg-ink); }
.btn--ink:hover { color: var(--bg-ink); transform: translateY(-1px); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

/* =========================================================
   7. 属性グリッド（状況から探す）
   ========================================================= */
.situation-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px;
}
.situation-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); transition: .18s;
}
.situation-card:hover {
  border-color: var(--accent-line); box-shadow: var(--shadow);
  transform: translateY(-2px); color: var(--text);
}
.situation-card__icon {
  width: 34px; height: 34px; margin-bottom: 4px;
  display: grid; place-items: center;
  background: var(--accent-soft); border-radius: 9px; color: var(--accent-deep);
}
.situation-card__title { font-size: 15px; font-weight: 700; }
.situation-card__desc  { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.situation-card__more  { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent-deep); }

/* =========================================================
   8. 記事カード
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 24px; }

.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .18s;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.post-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { margin: 0; font-size: 16px; line-height: 1.6; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--accent-deep); }
.post-card__excerpt { margin: 0; font-size: 13.5px; color: var(--text-mid); line-height: 1.8; }
.post-card__meta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }

.post-card--row { flex-direction: row; align-items: stretch; }
.post-card--row .post-card__thumb { flex: none; width: 168px; aspect-ratio: auto; }
@media (max-width: 600px) {
  .post-card--row { flex-direction: column; }
  .post-card--row .post-card__thumb { width: 100%; aspect-ratio: 16 / 9; }
}

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--text-mid); text-decoration: none;
  line-height: 1.7;
}
a.pill:hover { border-color: var(--accent-line); color: var(--accent-deep); background: var(--accent-soft); }
.pill--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-deep); }
.pill--info   { background: var(--info-soft);   border-color: var(--info-line);   color: var(--info); }
.pill--warn   { background: var(--warn-soft);   border-color: var(--warn-line);   color: var(--warn); }
.pill--danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }

/* =========================================================
   9. 診断ツール
   ========================================================= */
.shindan {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow);
  overflow: hidden;
}
.shindan__head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); background: var(--bg-softer); }
.shindan__head h2 { margin: 0 0 6px; font-size: 19px; }
.shindan__head p  { margin: 0; font-size: 13.5px; color: var(--text-mid); }

.shindan__progress { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-bottom: 1px solid var(--line); }
.shindan__bar { flex: 1; height: 5px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.shindan__bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .28s ease; }
.shindan__step { flex: none; font-size: 12.5px; font-weight: 700; color: var(--text-dim); font-family: var(--font-num); }

.shindan__body { padding: 26px; }
.shindan__q { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.shindan__title { margin: 0 0 6px; font-size: clamp(18px, 2.6vw, 21px); line-height: 1.5; }
.shindan__hint { margin: 0 0 20px; font-size: 13px; color: var(--text-dim); }

.shindan__options { display: grid; gap: 10px; }
.shindan__option {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; text-align: left; transition: .16s; width: 100%;
}
.shindan__option:hover { border-color: var(--accent); background: var(--accent-soft); }
.shindan__option.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.shindan__option input { position: absolute; opacity: 0; pointer-events: none; }
.shindan__option .box {
  flex: none; margin-top: 3px; width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff;
  display: grid; place-items: center;
}
.shindan__option[data-multi="1"] .box { border-radius: 5px; }
.shindan__option.is-selected .box { border-color: var(--accent); background: var(--accent); }
.shindan__option.is-selected .box::after {
  content: ""; width: 9px; height: 9px; border-radius: inherit; background: #fff;
}
.shindan__option[data-multi="1"].is-selected .box::after {
  width: 11px; height: 11px; border-radius: 0; background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.shindan__option .label { font-size: 15px; font-weight: 600; line-height: 1.6; }
.shindan__option .sub   { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--text-dim); line-height: 1.7; }

.shindan__nav { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.shindan__nav .spacer { flex: 1; }
.shindan__back {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}
.shindan__back:hover { color: var(--text); }

/* 診断結果 */
.shindan-result__lead {
  padding: 22px 26px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-line);
}
.shindan-result__lead h2 { margin: 0 0 6px; font-size: 20px; color: var(--accent-deep); }
.shindan-result__lead p  { margin: 0; font-size: 13.5px; color: var(--text-mid); }

.result-block { padding: 24px 26px; border-bottom: 1px solid var(--line); }
.result-block:last-child { border-bottom: 0; }
.result-block__label {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--text-dim);
}

.rec { display: grid; gap: 12px; }
.rec-item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  background: #fff;
}
.rec-item--best { border-color: var(--accent); background: var(--accent-soft); }
.rec-item--avoid { border-color: var(--warn-line); background: var(--warn-soft); }
.rec-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.rec-item__name { font-size: 16px; font-weight: 700; margin: 0; }
.rec-item__why  { margin: 0; font-size: 13.5px; color: var(--text-mid); line-height: 1.85; }
.rec-item__list { margin: 10px 0 0; padding-left: 1.2em; font-size: 13.5px; color: var(--text-mid); line-height: 1.9; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.75; color: var(--text-mid);
}
.doc-list li::before {
  content: ""; flex: none; margin-top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

/* =========================================================
   10. 保証会社データ
   ========================================================= */
.guarantor-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px 22px; transition: .18s;
}
.guarantor-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.guarantor-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.guarantor-card__name { margin: 0; font-size: 17px; }
.guarantor-card__name a { color: var(--text); text-decoration: none; }
.guarantor-card__name a:hover { color: var(--accent-deep); }
.guarantor-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.75; }
.spec-table th { width: 34%; background: var(--bg-soft); font-weight: 700; color: var(--text-mid); white-space: nowrap; }
@media (max-width: 560px) {
  .spec-table th { width: 40%; white-space: normal; }
  .spec-table th, .spec-table td { padding: 9px 10px; font-size: 13px; }
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }

/* =========================================================
   11. 記事本文
   ========================================================= */
.entry-header { padding-block: 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.entry-header__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 12.5px; color: var(--text-dim); }
.entry-title { margin: 0 0 12px; font-size: clamp(23px, 4vw, 32px); line-height: 1.48; }
.entry-lead { margin: 0; font-size: 15px; color: var(--text-mid); line-height: 1.95; }

.entry-content { font-size: 16.5px; line-height: 2.0; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 {
  margin-top: 2.4em; margin-bottom: .9em; padding: 12px 0 12px 16px;
  font-size: 21px; border-left: 4px solid var(--accent); background: var(--bg-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.entry-content h3 { margin-top: 2em; margin-bottom: .7em; font-size: 18.5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.entry-content h4 { margin-top: 1.8em; margin-bottom: .6em; font-size: 16.5px; color: var(--accent-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li + li { margin-top: .5em; }
.entry-content a { color: var(--accent-deep); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
  margin-inline: 0; padding: 4px 20px; border-left: 3px solid var(--line-strong);
  color: var(--text-mid); font-size: 15.5px;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg-soft); font-weight: 700; }
.entry-content code {
  padding: 2px 6px; border-radius: 4px; background: var(--bg-soft);
  font-size: .92em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* 注意ボックス（エディタ用ユーティリティ） */
.note {
  padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid var(--info-line); background: var(--info-soft);
  font-size: 14.5px; line-height: 1.9;
}
.note strong { color: var(--info); }
.note--warn { border-color: var(--warn-line); background: var(--warn-soft); }
.note--warn strong { color: var(--warn); }
.note--danger { border-color: var(--danger-line); background: var(--danger-soft); }
.note--danger strong { color: var(--danger); }
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }

/* 目次 */
.toc {
  margin: 32px 0; padding: 18px 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc__title { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.9; }
.toc ol ol { padding-left: 1.1em; margin-top: .3em; font-size: 13.5px; }
.toc a { color: var(--text-mid); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

/* パンくず */
.breadcrumb { padding-block: 12px; font-size: 12.5px; color: var(--text-dim); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--line-strong); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); text-decoration: underline; }

/* 著者・監修・更新日 */
.entry-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

.disclaimer {
  margin-top: 32px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-softer);
  font-size: 12.5px; line-height: 1.9; color: var(--text-dim);
}
.disclaimer strong { display: block; margin-bottom: 5px; color: var(--text-mid); font-size: 13px; }
.disclaimer p { margin: 0 0 .6em; }
.disclaimer p:last-child { margin-bottom: 0; }

/* =========================================================
   12. サイドバー
   ========================================================= */
.sidebar { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 980px) { .sidebar { position: static; } }

.widget {
  padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.widget__title { margin: 0 0 14px; font-size: 14px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.widget li + li { margin-top: 2px; }
.widget li a { display: block; padding: 7px 0; color: var(--text-mid); text-decoration: none; line-height: 1.7; }
.widget li a:hover { color: var(--accent-deep); }

.widget--cta { background: var(--bg-ink); border-color: var(--bg-ink); color: var(--text-on-ink); text-align: center; }
.widget--cta .widget__title { border-bottom-color: rgba(255,255,255,.14); color: #fff; }
.widget--cta p { margin: 0 0 16px; font-size: 13px; color: var(--text-on-ink-dim); line-height: 1.85; text-align: left; }

/* 検索フォーム */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 10px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: #fff; font-size: 14px;
}
.search-form input[type="search"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.search-form button {
  flex: none; padding: 10px 16px; border: 0; border-radius: var(--radius-s);
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.search-form button:hover { background: var(--accent-deep); }

/* =========================================================
   13. ページネーション
   ========================================================= */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding-inline: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 14px; font-weight: 600; color: var(--text-mid); text-decoration: none;
  background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-deep); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; background: #fff;
}
.post-nav a:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.post-nav .dir { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.post-nav .ttl { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.post-nav .next { text-align: right; }

/* =========================================================
   14. CTA 帯
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--bg-ink), var(--bg-ink-soft));
  color: var(--text-on-ink);
  border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
}
@media (max-width: 780px) { .cta-band { grid-template-columns: minmax(0, 1fr); text-align: left; } }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(19px, 3vw, 25px); color: #fff; }
/* 本文中にショートコードで置いたとき、記事見出しの装飾を引き継がせない */
.entry-content .cta-band h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  border-radius: 0;
}
.entry-content .cta-band p { margin: 0; }
.entry-content .cta-band > * + * { margin-top: 0; }
.cta-band p  { margin: 0; font-size: 14.5px; color: var(--text-on-ink-dim); line-height: 1.9; }

/* =========================================================
   15. フッター
   ========================================================= */
.site-footer { margin-top: 0; background: var(--bg-ink); color: var(--text-on-ink-dim); }
.site-footer__top { padding-block: 48px 36px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 820px) { .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

.site-footer__brand .site-brand__name { color: #fff; }
.site-footer__brand p { margin: 14px 0 0; font-size: 13px; line-height: 1.9; }
.site-footer h3 { margin: 0 0 12px; font-size: 13px; color: #fff; letter-spacing: .05em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.site-footer li + li { margin-top: 2px; }
.site-footer a { color: var(--text-on-ink-dim); text-decoration: none; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10); padding-block: 18px 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.site-footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-block: 20px; font-size: 11.5px; line-height: 1.85; color: #7d8e9c;
}

/* =========================================================
   16. 汎用ユーティリティ
   ========================================================= */
.stack   { display: grid; gap: 16px; }
.stack-l { display: grid; gap: 28px; }
.center  { text-align: center; }
.muted   { color: var(--text-dim); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-sm { font-size: 13.5px; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 40px; }

.archive-head { padding-block: 34px 0; }
.archive-head h1 { margin: 0 0 10px; font-size: clamp(22px, 3.6vw, 30px); }
.archive-head p  { margin: 0; font-size: 14.5px; color: var(--text-mid); line-height: 1.9; max-width: 68ch; }

.no-results { padding: 48px 24px; text-align: center; color: var(--text-dim); }

@media print {
  .site-header, .site-footer, .sidebar, .cta-band, .shindan__nav { display: none !important; }
}
