/* =========================================================
   浜松町歩法務事務所 債務整理サイト
   デザインシステム / main.css
   コンセプト: 誠実・信頼・落ち着き（重すぎない軽やかさ）
   - 明るめのフォレストグリーン(信頼) + 温かいクリーム地 + 十分な余白
   - CTAのみ朱橙で導線を明確化
   ========================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* Brand（黄緑 / 明るく前向き・相談しやすい印象）
     ★2026-07-31 クライアント指示①：メインカラーを #81c50a に変更。
       雰囲気は参考LP（saimu22 系）の「黄緑のベタ帯＋白抜き見出し」に寄せる。

     ▼ 重要：#81c50a は明度が高く、白背景に置いた文字色としても、
       白文字を載せる地色としてもコントラスト比 2.1 しかなく AA(4.5) を大きく割ります。
       そのため役割を分けています。
         --brand    … 面で使う色（バッジ・塗り・罫線・アイコン地）。文字色には使わない
         --brand-d  … 文字が乗る／文字として使う緑（白背景 5.0・白文字 5.0 でAA）
         --brand-dd … フッターなど最も濃い面
       「指定色をそのまま使う」のは面だけ、という切り分けです。 */
  --brand: #4ba02b;
  /* クライアント指定色。面・バッジ・罫線用（文字色にはしない） */
  --brand-d: #4ba02b;
  /* 見出し・リンク・白文字を載せる帯。白背景でコントラスト比 5.0（AA） */
  --brand-dd: #5fb240;
  /* フッター等の最も濃い面。白文字で 8.4（AAA） */
  --brand-l: #a3dc3c;
  /* 装飾専用（罫線・グラデ末端）。文字色には使わない */
  --brand-100: #eaf6cf;
  --brand-50: #f6fbe9;
  /* 後方互換エイリアス：旧 --navy* 名は brand(緑) を指します（テンプレの inline var も自動追従）
     ★重要：--navy は「見出し文字」「白文字を載せるボタン地」の両方に使われているため、
       指定色そのもの(--brand)ではなく、AAを満たす --brand-d に向けています。
       #81c50a を面で使いたい箇所は --brand を直接指定してください。 */
  --navy: var(--brand-d);
  --navy-d: var(--brand-dd);
  --navy-l: var(--brand-l);
  --navy-100: var(--brand-100);
  --navy-50: var(--brand-50);

  /* Ink & neutrals（黄緑に合わせ、わずかに緑を含んだニュートラルグレー） */
  --ink: #000;
  --ink-soft: #000;
  --muted: #000;
  /* 白背景でコントラスト比 4.7（AA） */
  --line: #e8ece0;
  --line-strong: #d6dcc9;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f6faec;
  /* 黄緑をごく薄く敷いた地。--section--soft の交互背景に使う */

  /* Accents */
  --gold: #a9812f;
  /* 品格・細線・見出し補助（細線用なので明度は据え置き） */
  --gold-l: #e0bd72;
  /* 緑地の上に載る金。地色が明るくなった分だけ明るく */
  --cta: #D84315;
  /* 行動喚起（黄緑に映える朱橙。参考LPの赤ボタン相当。導線なので彩度は維持） */
  --cta-d: #b5432a;
  --green: #35916c;
  /* 肯定・◯（ブランド黄緑とは別系統の成功色。◯✖の判別用） */
  --amber: #b7791f;
  /* 注意・△ */
  --danger: #c0392b;
  /* 危険・✖ */
  --tel: #F57C00;
  /* 電話ボタン専用。SP追従バーの電話（.fcta--tel）と同じオレンジ。サイト内で「電話＝オレンジ」に統一 */
  --tel-d: #d06f0d;
  /* 同ホバー */

  /* Type（ゴシック中心。ロゴのみ明朝で品格の署名を残す） */
  --serif: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック体", YuGothic, Meiryo, sans-serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック体", YuGothic, Meiryo, sans-serif;
  --mincho: "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "游明朝", serif;

  /* Shape
     ★2026-07-31 クライアント指示③：「明朝体ベースから、ゴシック体がハマるような
       やわらかいデザインに」。従来の角丸なし・影なし（硬質・書類的）をやめ、
       角丸＋やわらかい影に切り替える。影は黄緑寄りの暗色を薄く落として、
       グレーの影で濁らないようにしている。 */
  --radius: 12px;
  --radius-s: 8px;
  --radius-l: 20px;
  --shadow: 0 2px 10px rgba(58, 90, 4, .07);
  --shadow-l: 0 10px 30px rgba(58, 90, 4, .13);
  --wrap: 1080px;
  --wrap-narrow: 800px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'BIZ UDPGothic', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* リンク文字は --brand-d。指定色の --brand(#81c50a) と --brand-l は
   白背景でのコントラストが足りないため、いずれも装飾（面・罫線）専用にしている */
a {
  color: var(--brand-d);
  text-decoration: none;
  transition: color .2s, background .2s, opacity .2s;
}

a:hover {
  color: var(--brand-dd);
}

h1, h2, h3, h4 {
  line-height: 1.45;
  margin: 0 0 .6em;
  font-weight: 700;
  color: var(--navy);
  /* 日本語見出しの改行位置の調整。
     text-wrap: balance … 各行の長さを揃え、最終行に1〜2文字だけ落ちる「取り残され改行」を防ぐ
     word-break: auto-phrase … 文節の切れ目で折り返す（「選ばれる理／由」のような分断を避ける）
     どちらも未対応ブラウザでは単に無視され、従来どおりの折り返しになる。 */
  text-wrap: balance;
  word-break: auto-phrase;
}

p {
  margin: 0 0 1.2em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 0;
}

li {
  margin-bottom: .35em;
}

strong, b {
  font-weight: 700;
  color: var(--navy-d);
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 3px solid var(--gold-l);
  outline-offset: 2px;
}

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

.wrap--narrow {
  width: min(100% - 40px, var(--wrap-narrow));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--bg-soft);
}

/* --navy は現在ブランド黄緑(#81c50a)を指すエイリアスで、白文字を載せると
   コントラストが 2.1 しか出ない。反転セクションの地色は --brand-d を使う。 */
.section--navy {
  background: var(--brand-d);
  color: #f2f8e4;
}

.section--navy h2, .section--navy h3 {
  color: #fff;
}

.section--tight {
  padding: 48px 0;
}

.stack>*+* {
  margin-top: 1.1em;
}

/* セクション見出し
   ★2026-07-31 クライアント指示②「セクションごとの区切りをはっきり表示したい」＋
     指示①「雰囲気を添付のLPのように」への対応。
     参考LPと同じ〈ベタ帯＋白抜き見出し〉にして、見出し自体をセクションの境界線にする。
     地色に --brand（#81c50a）をそのまま使うと白文字が読めないため --brand-d を使い、
     指定色の #81c50a は帯の下端のアクセントラインとして見える形で残している。 */
.sec-head {
  text-align: center;
  margin-bottom: 40px;
}

.sec-head .eyebrow {
  display: block;
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .6em;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.8vw, 1.95rem);
  letter-spacing: .02em;
  position: relative;
  display: block;
  margin: 0;
  padding: .62em 1.1em .68em;
  background: var(--brand-d);
  color: #fff;

}

/* 帯にしたので、旧デザインの金色の下線は不要 */
.sec-head h2::after {
  content: none;
}

.sec-head p {
  color: var(--ink-soft);
  margin-top: 1.1em;
}

/* 反転セクション（濃い地の上）では帯が背景に埋もれるため、白抜き＋透過地に切り替える */
.section--navy .sec-head h2 {
  background: rgba(255, 255, 255, .12);
  border-bottom-color: var(--brand-l);
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .82rem;
}

/* ---------- 4. ボタン ---------- */
.btn {
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  /* ラベル（電話番号など）と <small>（営業時間）はそれぞれ途中で折り返さないが、
     両方が横に並びきらないときは <small> を2段目へ送る。
     これをしないと、幅の狭い端末で中身がボタンからはみ出し、
     左右のパディングが潰れて文字が枠線に接してしまう。 */
  white-space: nowrap;
  flex-wrap: wrap;

  /* ぼかし0のソリッドな影。カード類の「影なし」方針は維持したまま、
     ボタンだけを押せる面として立体的に見せる。
     色は各バリエーションが --btn-shadow で上書きする（既定はニュートラルな暗色）。 */
  --btn-shadow: rgba(35, 48, 43, .22);
  box-shadow: 0 4px 0 var(--btn-shadow);
  transition: background .2s, color .2s, border-color .2s, transform .12s ease, box-shadow .12s ease;
}

/* ホバーで半分沈み、クリックで影の分だけ完全に沈む。
   影の高さと translateY の量は必ず一致させる（合計が変わると位置がずれて見える）。 */
.btn:hover {
  box-shadow: 0 2px 0 var(--btn-shadow);
  transform: translateY(2px);
}

.btn:active {
  box-shadow: 0 0 0 var(--btn-shadow);
  transform: translateY(4px);
}

.btn small {
  font-weight: 500;
  font-size: .78em;
  opacity: .9;
}

.btn--cta {
  background: var(--cta);
  color: #fff;
  --btn-shadow: #93321c;
}

.btn--cta:hover {
  background: var(--cta-d);
  color: #fff;
}

.btn--line {
  background: #00C853;
  color: #fff;
  --btn-shadow: #04913e;
}

.btn--line:hover {
  background: #05a648;
  color: #fff;
}

.btn--tel {
  background: var(--navy);
  color: #fff;
  --btn-shadow: var(--brand-d);
}

.btn--tel:hover {
  background: var(--navy-d);
  color: #fff;
}

/* このクラスは電話ボタン専用（CTA帯とフッターの「電話番号で無料相談する」）。
   白地のままだと緑地のCTA帯に埋もれるため、青の面にして他の2ボタンと並べても目立つようにしている */
.btn--ghost {
  background: var(--tel);
  color: #fff;
  border-color: var(--tel);
  --btn-shadow: var(--tel-d);
}

.btn--ghost:hover {
  background: var(--tel-d);
  border-color: var(--tel-d);
  color: #fff;
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  --btn-shadow: #7d5d21;
}

.btn--gold:hover {
  background: #96712a;
  color: #fff;
}

.btn--lg {
  padding: 18px 100px;
  font-size: 1.08rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* 赤の遷移リンク（「〜とは」→用語集へ 等） */
.jump-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--cta);
  font-weight: 700;
}

.jump-link::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
}

.jump-link:hover {
  color: var(--cta-d);
}

/* ---------- 5. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  min-height: 64px;
}

/* min-width:0 + flex:1 で、狭い画面ではロゴ側が縮んで折り返し・はみ出しを防ぐ */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
  min-width: 0;
  flex: 1 1 auto;
}

/* ロゴ画像（403×50・横長）。
   height は指定せず max-width で縮めるため、どの幅でも比率が崩れない。
   親(.brand)が flex で縮むので、狭い画面でも自動的に収まる。
   .custom-logo は管理画面でロゴを設定した場合にWordPressが出力する画像。 */
.brand__logo,
.brand .custom-logo {
  width: 380px;
  max-width: 100%;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav__link:hover {
  color: var(--navy);
  background: var(--navy-50);
}

/* 英語サブラベルはPCでは非表示（横並びナビは日本語のみ） */
.nav__en {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-tel {
  text-align: right;
  line-height: 1.25;
}

.header-tel a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy);
}

.header-tel span {
  display: block;
  font-size: .68rem;
  color: var(--muted);
}

/* ハンバーガー／閉じるボタン
   枠線・角丸をなくした細線タイプ。× の状態でも見た目の横幅が縮まないよう、
   回転時に scaleX で伸ばして視覚上の幅をハンバーガーと揃えている。 */
.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 1.5px;
  margin: -0.75px 0 0 -13px;
  background: var(--navy);
  border-radius: 2px;
  transition: background .2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), top .32s cubic-bezier(.4, 0, .2, 1);
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

/* 開いている間は中央の線を消し、上下の線を × に */
.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg) scaleX(1.4);
}

.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg) scaleX(1.4);
}

/* ドロワー内の閉じるボタンは常に × 表示（参考デザインに合わせて細く大きめに） */
.nav-toggle--close {
  display: none;
  width: 48px;
  height: 48px;
}

.nav-toggle--close span {
  background: transparent;
  width: 30px;
  margin-left: -15px;
}

.nav-toggle--close span::before {
  top: 0;
  transform: rotate(45deg) scaleX(1.4);
}

.nav-toggle--close span::after {
  top: 0;
  transform: rotate(-45deg) scaleX(1.4);
}

.nav-toggle--close span::before,
.nav-toggle--close span::after {
  height: 1px;
  background: var(--ink-soft);
}

/* 背景オーバーレイ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  /* 追従CTA(60)より上に重ねる */
  background: rgba(34, 60, 48, .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s ease, visibility .32s ease;
}

.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* ドロワー上部・下部（スマホのみ表示） */
.drawer-head,
.drawer-foot {
  display: none;
}

/* ---------- 6. ヒーロー(MV) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(160deg, var(--brand-dd) 0%, var(--brand-d) 100%);
  color: #f2f8e4;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 100% 34px;
  opacity: .5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 66px 0 60px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  line-height: 1.4;
  letter-spacing: .02em;
  margin-bottom: .6em;
}

.hero h1 .accent {
  color: var(--gold-l);
}

.hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.06rem;
  font-weight: 600;
  color: #f2f8e4;
}

.hero__points li::before {
  content: "✓";
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 700;
}

.hero__urgent {
  background: rgba(200, 56, 44, .14);
  border: 1px solid rgba(200, 56, 44, .5);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-weight: 700;
  color: #ffe3e0;
  max-width: 620px;
}

.hero__urgent strong {
  color: #fff;
}

.hero .btn-row {
  justify-content: flex-start;
}

/* ---------- 6a-0. LINE告知バンド（MVの直上） ----------
   クライアント指示の「24時間LINEで相談予約受付中（もちろん無料です）」。
   LINE公式カラー(#06c755)地に白文字（コントラスト比 3.1）のため、
   小さい注記まで読ませられるよう一段暗い #05a648 を使っている（白文字で 4.5・AA）。 */
.line-band {
  display: none;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 .3em;
  color: #fff;
  text-align: center;
  line-height: 1.5;
}

.line-band:hover {
  background: #048c3d;
  color: #fff;
}

.line-band__main {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .02em;
}

.line-band__sub {
  font-weight: 600;
  font-size: .84rem;
}

@media (max-width: 480px) {
  .line-band {

    display: flex;
  }

  .line-band__main {
    font-size: .94rem;
  }

  .line-band__sub {
    font-size: .78rem;
  }
}

/* ---------- 6a. ヒーローMV（PC / SP それぞれ1枚の静止画） ---------- */
.hero-mv {
  background: var(--bg-soft);
  line-height: 0;
}

/* MV画像を囲む h1。見出し既定のマージンを消して画像だけの見た目にする */
.hero-mv h1 {
  margin: 0;
  font-size: inherit;
}

.hero-mv__img {
  display: block;
  width: 100%;
  max-width: 1819px;
  height: auto;
  margin: 0 auto;
}

/* ---------- 6b. 信頼バンド（実績の数値化） ---------- */
/* 全幅の緑帯。指定色の #81c50a では白文字が読めないため、地は --brand-d。 */
.stat-band {
  background: var(--brand-d);
}

.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: 28px 14px;
  position: relative;
}

.stat+.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255, 255, 255, .16);
}

/* ★指示③「明朝体ベースからゴシック体へ」。数字も明朝(--mincho)をやめてゴシックに統一 */
.stat__num {
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
}

.stat__num .u {
  font-size: .5em;
  margin-left: .12em;
  color: var(--gold-l);
  font-family: var(--sans);
}

.stat__label {
  font-size: .8rem;
  color: #eef7dd;
  margin-top: .5em;
  letter-spacing: .05em;
}

/* ---------- 7. カード / グリッド ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
}

.card--link {
  display: block;
  color: inherit;
}

/* 影を使わないため、ホバーは罫線の色変化のみで示す（浮き上がる動きもやめる） */
.card--link:hover {
  border-color: var(--navy-l);
  color: inherit;
}

.card__tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: .5em;
}

/* 上部にビジュアルを持つカード（クライアント指示の画像挿入用）。
   画像をカードの角まで届かせるため、パディングは .card__text 側に移す。 */
.card--visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__visual {
  line-height: 0;
  background: var(--brand-50);
}

.card__visual img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: inherit;
}

/* 写真ではなくアイコンを大きく置く版（⚠️）。黄色地の中央にアイコンを浮かせる */
.card__visual--icon {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fff6d6 0%, #ffeaa6 100%);
}



.card__text {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card__text>*:last-child {
  margin-top: auto;
}

/* セクション見出しの頭に付ける小さいアイコン（⚠️など） */
.h2-icon {
  display: inline-block;
  vertical-align: -.18em;
  width: 1.1em;
  height: 1.1em;
  margin-right: .35em;
}

/* 用語(とは)への遷移ボタン群 */
/* 「債務整理とは」の手続き一覧。
   ★2026-07-31 クライアント支給の参考デザインに合わせて全面的に組み直し。
     ・カードの箱をやめ、画像／見出し／本文／ボタンを地の上に直接置く
     ・手続きごとにアクセント色を割り当て、画像の枠・見出し・番号バッジを同じ色で揃える
     ・PCは横並び、スマホは「画像左＋テキスト右」の行レイアウト
   アクセント色は各カードの --accent（modifier クラスで指定）から全パーツが参照する。
   4色とも白背景でコントラスト比 5.0 以上（AA）を確保している。 */
.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}

.term-card {
  --accent: var(--brand-d);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.term-card--ninui {
  --accent: #4f7a05;
}

/* 任意整理：ブランドの黄緑（白背景で 5.0） */
.term-card--kojin {
  --accent: #1f6fa8;
}

/* 個人再生：青（5.4） */
.term-card--hasan {
  --accent: #1f7a5e;
}

/* 自己破産：緑（5.2） */
.term-card--kabarai {
  --accent: #b03a7a;
}

/* 過払金：マゼンタ（5.6） */

/* 画像枠。支給画像は 3:2 と 4:3 が混在するため、枠の比率を 3:2 に固定し
   object-fit:contain で中身を収める。cover にすると画像内の文字が切れてしまう。 */
.term-card__media {
  aspect-ratio: 3 / 2;
  border: 3px solid var(--accent);
  border-radius: var(--radius-s);
  background: #fff;
  overflow: hidden;
  line-height: 0;
}

.term-card__media img {
  width: 100%;
}

.term-card__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.term-card h3 {
  margin: 0;
  font-size: 1.06rem;
  font-family: var(--serif);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: .1em;
}

.term-card .num {
  background: var(--accent);
}

.term-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* 「詳しく見る」ボタン。参考デザインに合わせ、細い罫線＋右向き山括弧の控えめな見た目 */
.term-card__more {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 700;
  transition: border-color .2s, color .2s;
}

.term-card__more::after {
  content: "›";
  color: var(--accent);
  font-size: 1.2em;
  line-height: 1;
}

.term-card:hover {
  color: inherit;
}

.term-card:hover .term-card__more {
  border-color: var(--accent);
  color: var(--accent);
}

.term-card:hover .term-card__media {
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .term-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {

  /* スマホは参考デザイン（1枚目）と同じ「画像左・テキスト右」の行レイアウト。
     「詳しく見る」は行の下段に回して右寄せする。 */
  .term-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .term-card {
    display: grid;
    grid-template-columns: 124px 1fr;
    grid-template-areas:
      "media main"
      "more  more";
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
  }

  .term-card__media {
    grid-area: media;
    aspect-ratio: auto;
  }

  .term-card__main {
    grid-area: main;
  }

  .term-card__more {
    grid-area: more;
    justify-self: end;
    margin-top: 0;
  }
}

/* 写真（figure）。--md は元画像が 640px 幅のため拡大させず中央寄せで使う */
.photo {
  margin: 0 0 30px;
}

.photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo--md {
  max-width: 640px;
  margin-inline: auto;
}

.photo figcaption {
  margin-top: .7em;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

/* トップの安心訴求「経験豊富なスタッフが…」の一文。
   muted small のままだと4行のリード文の下で埋もれるため、薄緑地＋ブランド緑の枠のバッジにする。
   文字色は黒のまま（緑地に緑文字にせず、コントラストを確保するため） */
.staff-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  max-width: 100%;
  margin: 22px auto 0;
  padding: 14px 30px;
  background: var(--brand-50);
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  position: absolute;
  width: 48%;
  left: 50%;
  transform: translateX(-50%);
  top: -8px;
}

/* 折り返しても丸が潰れないよう、アイコンは縮小させない */
.staff-note__icon {
  flex: 0 0 auto;
}

/* 解決事例カード（企画書【解決事例】シート準拠：金額は赤字で強調） */

/* 事例の並び。SP・タブレットは1カラム、PC（901px以上）で2カラムにする（下部のレスポンシブ節を参照）。
   カード間の余白は gap で取るので、grid 直下では .case-card の margin を打ち消す */
.case-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.case-grid>.case-card {
  margin: 0;
}

.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow);
  margin: 0 0 28px;
  overflow: hidden;
  /* 全幅バナーの角をカードの角丸に合わせて切る */
}

.case-card:last-of-type {
  margin-bottom: 0;
}

/* カード上部の全幅バナー。負のマージンでカードのパディングを打ち消す。
   事例ごとに縦横比の違う写真が入っても高さが揃うよう、枠を 1672:644 に固定して
   画像は cover で切り抜く（object-position は上寄りにして人物の顔が切れないようにする） */
.case-card__banner {
  margin: -32px -34px 24px;
  line-height: 0;
  aspect-ratio: 1672 / 644;
  overflow: hidden;
}

.case-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.case-card__title {
  font-family: var(--serif);
  font-size: 1.42rem;
  margin-bottom: .6em;
}

.case-figures {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.case-figure {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
}

/* 「返済総額」「毎月の返済額」の見出し。
   ブランド緑のピル型ラベルにして、金額（赤）とぶつからないようにしている */
.case-figure__title {
  display: inline-block;
  margin: 0 0 .9em;
  padding: 5px 20px;
  background: var(--brand-d);
  color: #fff;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
}

.case-figure__lead {
  margin: 0 0 .5em;
  font-size: .95rem;
  color: var(--ink-soft);
}

.case-figure__row,
.case-figure__result {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .15em .35em;
}

.case-figure__result {
  margin-top: .35em;
  font-size: 1.55rem;
}

.case-figure__amount {
  color: var(--danger);
  font-size: 1.9rem;
  font-family: var(--serif);
}

.case-figure__result .case-figure__amount {
  font-size: 2.1rem;
}

.case-figure__conj {
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
}

/* ---------- 8. チェックリスト(スクリーニング) ---------- */
.check-box {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--cta);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

.check-box>h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  text-align: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

/* ★重要：ここを display:flex にしてはいけない。
   項目の本文には <span class="em-accent">２００万円</span> のような強調が混ざるため、
   flex にすると「借入総額が」「２００万円」「以上ある」がそれぞれ独立した flex アイテムになり、
   語句ごとに別々の折り返し＋アイテム間の gap が入って文章がバラバラに見える。
   マーカーは絶対配置にして、本文は通常のインライン flow のまま流す。 */
.check-list li {
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--navy-50);
  border-radius: var(--radius-s);
  padding: 12px 12px 12px 48px;
}

.check-list li::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: .9rem;
  line-height: 1;
}

/* .check-box 内のマーカーは、ページ上部の .staff-note__icon（緑丸＋白チェック）と
   同じ絵柄に揃える。::before に SVG タグは書けないので data URI で同じパスを持たせている。
   円の #4ba02b は --brand と同値（data URI 内では var() が使えないためベタ書き）。
   「事務所選びのポイント」の .check-list は従来の「！」のまま。 */
.check-box .check-list li::before {
  content: "";
  top: 12px;
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%234ba02b'/%3E%3Cpath d='M7 12.4l3.1 3.1L17 8.7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px 26px no-repeat;
}

.check-box__note {
  color: var(--ink-soft);
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.45;
}

/* チェック項目 → 結論文への流れを示す▼。
   文字の▼だとフォント依存で大きさが安定しないため、border で三角形を作る。 */
.check-box__note::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto 12px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--brand);
}

/* ---------- 9. ノート / 注意ボックス ---------- */
.note {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 1.2em;
  background: var(--navy-50);
}

.note p:last-child {
  margin-bottom: 0;
}

.note--anshin .note__label {
  color: var(--green);
}

.note--warn .note__label {
  color: var(--amber);
}

.note--danger .note__label {
  color: var(--danger);
}

.note__label {
  display: block;
  font-weight: 800;
  margin-bottom: .3em;
  font-size: .95rem;
}

/* ---------- 10. テーブル(早見表・比較表) ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.4em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.data-table {
  min-width: 720px;
  font-size: .92rem;
  background: #fff;
}

/* 項目名＋値の2列だけの表（運営者情報など）。720pxの下限を外して
   スマホでも横スクロールせずに収まるようにする */
.data-table--narrow {
  min-width: 0;
}

.data-table--narrow th {
  width: 34%;
}

/* 左右パディングは控えめに。早見表のように列数が多い表では、
   1セルあたりの余白の差が1行に入る文字数に効いてくる */
.data-table th, .data-table td {
  padding: 13px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

/* 1列目（項目名）の最低幅。
   日本語は文字単位で折り返せるため、auto レイアウトだと本文の多い列に幅を取られて
   1列目が「取り扱い可能金額」のように1文字ずつの縦並びになってしまう。
   ※2列だけの表（--narrow）は th に width:34% を指定済みなので対象外。 */
.data-table:not(.data-table--narrow) th:first-child {
  min-width: 160px;
}

.data-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

/* 行見出しは折り返す（nowrap だと長い見出しでテーブルが横に伸びて崩れるため） */
.data-table tbody th {
  background: var(--navy-50);
  color: var(--navy);
  font-weight: 700;
  white-space: normal;
}

.data-table tbody th .small {
  font-weight: 400;
}

.data-table tbody tr:nth-child(even) td {
  background: #fbfdfb;
}

.data-table .col-own {
  background: #fbf6ea !important;
}

.data-table thead .col-own {
  background: var(--gold) !important;
}

.mark-o {
  color: var(--green);
  font-weight: 800;
}

.mark-x {
  color: var(--danger);
  font-weight: 800;
}

.mark-t {
  color: var(--amber);
  font-weight: 800;
}

/* フェーズ表(危険度) */
.phase-table td.level {
  white-space: nowrap;
  font-weight: 800;
}

.phase-lv1 {
  color: var(--green);
}

.phase-lv2 {
  color: var(--amber);
}

.phase-lv3 {
  color: var(--cta);
}

.phase-lv4 {
  color: var(--danger);
}

/* ---------- 11. アコーディオン(Q&A / メリデメ) ---------- */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.accordion+.accordion {
  margin-top: 14px;
}

.ac-item {
  border-top: 1px solid var(--line);
}

.ac-item:first-child {
  border-top: 0;
}

.ac-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
  padding: 18px 52px 18px 54px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  font-family: inherit;
  line-height: 1.6;
}

.ac-q::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 26px;
  height: 26px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
}

.ac-q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}

.ac-q[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(-135deg);
}

/* 回答のスムース開閉。
   grid-template-rows を 0fr → 1fr にトランジションさせることで、
   高さを JS で計算せずに滑らかに開閉できる（内容の量が変わっても自動対応）。
   このトランジションに未対応のブラウザでは、アニメーションなしで即座に開閉します。 */
.ac-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s cubic-bezier(.4, 0, .2, 1);
}

.ac-item.is-open .ac-a {
  grid-template-rows: 1fr;
}

.ac-a__inner {
  overflow: hidden;
  padding: 0 24px 0 54px;
  position: relative;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity .28s ease, padding .34s cubic-bezier(.4, 0, .2, 1);
}

.ac-item.is-open .ac-a__inner {
  padding-top: 4px;
  padding-bottom: 22px;
  opacity: 1;
}

.ac-a__inner::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 2px;
  width: 26px;
  height: 26px;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
}

.ac-a p:last-child {
  margin-bottom: 0;
}

/* メリット・デメリットの箇条 */
.mdlist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 12px;
}

.mdlist li {
  padding: 16px 18px 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.mdlist--merit li {
  border-left: 4px solid var(--green);
}

.mdlist--demerit li {
  border-left: 4px solid var(--amber);
}

.mdlist li>strong:first-child {
  display: block;
  margin-bottom: .3em;
  color: var(--navy-d);
}

/* ---------- 12. 手続きの流れ(ステップ) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  position: relative;
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 78px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}

.steps li h3 {
  margin: 0 0 .3em;
  font-size: 1.1rem;
}

.steps li p {
  margin: 0;
  color: var(--ink-soft);
}

/* ステップのアイコン（右上に控えめに配置。番号バッジと役割が競合しないようにする） */
.steps__icon {
  position: absolute;
  right: 20px;
  top: 22px;
  width: 34px;
  height: 34px;
  opacity: .38;
}

.steps li {
  padding-right: 68px;
}

@media (max-width: 680px) {

  /* 幅が狭いとアイコンが本文に重なるため非表示 */
  .steps__icon {
    display: none;
  }

  .steps li {
    padding-right: 22px;
  }
}

/* ---------- 13. 埋め込みCTA ---------- */
.cta-embed {
  /* 小さめの文字が乗るため、明るい側は --brand-d まで（これより明るいとAAを割る） */
  background: linear-gradient(160deg, var(--brand-dd) 0%, var(--brand-d) 100%);
  color: #f2f8e4;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-l);
}

.cta-embed h2 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
}

.cta-embed .cta-lead {
  color: #f4faea;
  max-width: 640px;
  margin: 0 auto 8px;
}

.cta-embed .cta-urgent {
  color: #fff176;
  font-weight: 700;
  margin-bottom: 22px;
  font-size: 2rem;
}

.cta-embed .btn-row {
  margin-top: 8px;
}

.cta-embed .cta-hours {
  margin: 16px 0 0;
  font-size: .86rem;
  color: #e8f2d5;
}

/* ---------- 14. 追従CTA ---------- */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(58, 90, 4, .97);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: none;
}

.floating-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.fcta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 4px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

/* 時刻が「10:00〜」「19:00」のように途中で折り返さないようにする */
.fcta small {
  font-size: .62rem;
  font-weight: 500;
  opacity: .85;
  text-align: center;
  white-space: nowrap;
}

.fcta--tel {
  background: #F57C00;
}

.fcta--line {
  background: #00C853;
}

.fcta--mail {
  background: var(--cta);
}

/* デスクトップ用サイド追従 */
.side-cta {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* .btn 側のソリッドな影をそのまま使うため、ここでは box-shadow を上書きしない */

/* ---------- 15. ページヘッダー(下層) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--brand-dd) 0%, var(--brand-d) 100%);
  color: #f2f8e4;
  padding: 54px 0;
  text-align: center;
}

.page-hero .eyebrow {
  color: var(--gold-l);
}

.page-hero h1 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  margin: .3em 0 .2em;
}

.page-hero p {
  color: #f4faea;
  margin: 0;
}

/* パンくず */
.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  padding: 12px 0;
}

.breadcrumb a {
  color: var(--brand-d);
}

.breadcrumb span {
  margin: 0 .4em;
  color: var(--line-strong);
}

/* 目次 */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}

.toc h2 {
  font-size: 1.05rem;
  margin: 0 0 .6em;
  font-family: var(--serif);
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 32px;
}

.toc a {
  color: var(--ink-soft);
  font-weight: 600;
}

.toc a:hover {
  color: var(--navy);
}

/* 記事本文の見出し */
.entry h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-top: 0;
  padding-left: 16px;
  border-left: 5px solid var(--gold);
}

.entry h3 {
  font-size: 1.2rem;
  margin-top: 1.8em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--line);
}

.entry h4 {
  font-size: 1.05rem;
  color: var(--brand-d);
  margin-top: 1.4em;
}

.term-block {
  margin-bottom: 56px;
  scroll-margin-top: 130px;
}

/* 2段ヘッダー分の余白 */
.section>.wrap>.entry:last-child>*:last-child {
  margin-bottom: 0;
}

/* 差別化ポイント */
.diff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.diff-list>li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 24px 30px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  position: relative;
}

.diff-list h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  margin-top: 0;
}

.price-box {
  background: var(--navy-50);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.price-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
}

.price-box dt {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.price-box dd {
  margin: 0;
}

/* 金額の直前に置く「月額」バッジ（クライアント指示：月額表記が無く総額と誤読されうる）。
   金額そのものは strong で一段大きく見せ、単位はバッジで先に読ませる。 */
.price-box__unit {
  display: inline-block;
  margin-right: .25em;
  padding: 1px 8px;
  background: var(--brand-d);
  color: #fff;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.7;
  vertical-align: .08em;
}

.price-box dd strong {
  font-size: 1.12em;
  color: var(--brand-d);
}

/* ---------- 15a. 監修者情報（E-E-A-T） ----------
   トップページ下部の「このページの監修者」枠。
   顔写真は任意（assets/img/kondo.png があるときだけ front-page.php 側が出力する）ため、
   画像が無くても崩れないように flex + wrap で組んでいる。 */
.supervisor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px 34px;
  box-shadow: var(--shadow);
}

.supervisor__head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* 支給画像 kondo.png は 500×500 の「全身の似顔絵イラスト（背景あり）」。
   顔写真ではないため円形トリミングにはしない（頭と足元が欠けるため）。
   正方形のまま角丸で全体を見せ、背景の空色と地の白の境目を細い罫線で締める。 */
.supervisor__photo {
  flex: none;
  margin: 0;
  width: 148px;
}

.supervisor__photo img {
  width: 148px;
  height: 148px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--brand-50);
}

.supervisor__name {
  min-width: 0;
}

.supervisor__office {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}

.supervisor__person {
  margin: .2em 0 0;
  font-size: 1.05rem;
  color: var(--brand-d);
}

.supervisor__person strong {
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--brand-d);
}

.supervisor__creed-lead {
  margin-bottom: .5em;
  font-weight: 700;
}

.supervisor__creed {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: grid;
  gap: 10px;
}

.supervisor__creed li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--brand-50);
  border-radius: var(--radius-s);
  font-weight: 600;
  line-height: 1.75;
}

/* 番号ではなくチェックの丸バッジ。理念の並列（順序なし）であることを示す */
.supervisor__creed li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.supervisor__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
  font-size: .88rem;
}

.supervisor__meta dt {
  color: var(--muted);
  font-weight: 700;
}

.supervisor__meta dd {
  margin: .15em 0 0;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 680px) {
  .supervisor {
    padding: 26px 20px;
  }

  .supervisor__head {
    gap: 16px;
    justify-content: center;
  }

  .supervisor__photo,
  .supervisor__photo img {
    width: 108px;
  }

  .supervisor__photo img {
    height: 108px;
  }

  .supervisor__meta {
    grid-template-columns: 1fr;
  }
}

/* ---------- 15b. お問い合わせフォーム（Contact Form 7） ----------
   CF7 が出力するクラス（.wpcf7-*）と、フォーム本文に自前で書くクラス
   （.form-row / .form-label / .req 等）の両方をここで面倒を見る。
   フォームの中身は CONTACT-FORM-7.md のマークアップを CF7 の
   「フォーム」タブに貼る前提。マークアップを変えるときは両方を揃えること。 */

/* 電話・LINEの直通導線（フォームより上に置く箱） */
.contact-direct {
  margin: 40px 0 0;
  padding: 26px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}

.contact-direct h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: .4em;
}

.contact-direct p {
  font-size: .95rem;
  color: var(--ink-soft);
}

.contact-direct .btn-row {
  margin-bottom: 0;
}

.contact-form-block {
  margin-top: 48px;
}

.contact-form-block>h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
}

/* 入力欄。カード類と同じく角丸なし・影なしで、罫線と余白で構造を見せる */
.wpcf7 .form-row {
  margin-bottom: 22px;
}

.wpcf7 fieldset.form-row {
  border: 0;
  padding: 0;
  margin-inline: 0;
}

.wpcf7 .form-label {
  display: block;
  margin-bottom: .5em;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}

/* 必須／任意バッジ */
.wpcf7 .req,
.wpcf7 .opt {
  display: inline-block;
  margin-left: .7em;
  padding: 2px 9px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
  border-radius: 999px;
  vertical-align: middle;
}

.wpcf7 .req {
  background: var(--cta);
  color: #fff;
}

.wpcf7 .opt {
  background: var(--brand-100);
  color: var(--brand-d);
}

.wpcf7 .form-note {
  margin: .5em 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 1rem;
  /* 16px 未満だと iOS が入力時にズームするため下げない */
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #a3aea7;
}

/* select は appearance:none で矢印が消えるため、自前の▼を背景に描く */
.wpcf7 select {
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-d) 50%),
    linear-gradient(135deg, var(--brand-d) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand-100);
  outline-offset: 0;
}

/* チェックボックス群（現在の状況）。1行1項目で、タップ領域を広く取る */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
  display: grid;
  gap: 8px;
}

.wpcf7 .wpcf7-checkbox .wpcf7-list-item,
.wpcf7 .wpcf7-radio .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  background: var(--brand-50);
  border: 1px solid var(--line);
  font-size: .95rem;
  line-height: 1.6;
}

.wpcf7 .wpcf7-list-item label:hover {
  border-color: var(--brand-l);
}

.wpcf7 .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-list-item input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: .15em;
  accent-color: var(--brand-d);
}

/* 同意チェック */
.wpcf7 .form-consent {
  margin: 30px 0 26px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-align: center;
}

.wpcf7 .form-consent .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .form-consent label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.wpcf7 .form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-d);
}

.wpcf7 .form-submit {
  text-align: center;
}

/* CF7 の送信ボタンは <input> なので、.btn の inline-flex ではなく inline-block で扱う */
.wpcf7 .form-submit .btn {
  display: inline-block;
  min-width: 280px;
}

.wpcf7 .form-submit .btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

/* 送信中スピナー */
.wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

/* バリデーションエラー（項目ごと） */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: .45em;
  font-size: .84rem;
  font-weight: 700;
  color: var(--danger);
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--danger);
  background: #fdf7f6;
}

/* 送信結果メッセージ。CF7 5.x は form の状態クラスで色分けする */
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: var(--radius);
  font-weight: 700;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--green);
  background: #eff7f2;
  color: var(--brand-d);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--amber);
  background: #fdf6ea;
  color: #7a5310;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: var(--danger);
  background: #fdeeec;
  color: #8f2b20;
}

.wpcf7 form.spam .wpcf7-response-output {
  border-color: var(--danger);
  background: #fdeeec;
  color: #8f2b20;
}

@media (max-width: 680px) {
  .contact-direct {
    padding: 22px 18px;
  }

  .wpcf7 .form-submit .btn {
    min-width: 0;
    width: 100%;
  }
}

/* ---------- 16. フッター ---------- */
.site-footer {
  background: var(--brand-dd);
  color: #e8f2d5;
  padding: 56px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* フッターのロゴ。濃緑背景で読めるよう、透過ロゴを白一色に反転して表示する。
   brightness(0) で真っ黒（アルファは保持）→ invert(1) で白。地は透過のまま。 */
.footer-logo__img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.footer-logo__sub {
  display: block;
  margin-top: 9px;
  font-size: .72rem;
  letter-spacing: .1em;
  color: #e8f2d5;
  font-weight: 500;
}

.footer-brand p {
  font-size: .88rem;
  margin-top: 16px;
}

.footer-col h3 {
  color: #fff;
  font-size: .98rem;
  font-family: var(--serif);
  margin-bottom: 1em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: .6em;
}

.footer-col a {
  color: #fff;
  font-size: .9rem;
}

/* 電話ボタンは青地・白文字。フッター内リンクの色指定に上書きされないようにする */
.footer-col a.btn--ghost {
  color: #fff;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col a.btn--ghost:hover {
  color: #fff;
}


.footer-tel {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

.footer-note {
  font-size: .78rem;
  color: #d9e8bd;
  padding: 22px 0 96px;
  line-height: 1.9;
}

.footer-note a {
  color: #f4faea;
}

/* 運営者情報・プライバシーポリシー。注意書きより先に、行を分けて置く */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-size: .9rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright {
  text-align: center;
}

/* ---------- 17. ユーティリティ ---------- */
.tc {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: .86rem;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 48px 0;
}

.pill {
  display: inline-block;
  background: var(--navy-100);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

/*
 * 番号バッジ（クライアント指示⑤「頭の番号が①…のものを、画像のような丸バッジに」）
 * 見出しの先頭に <span class="num">1</span> を置いて使います。
 *   例）<h3><span class="num">1</span>任意整理とは</h3>
 * ・幅と高さは em 基準なので、見出しのサイズが変わっても円が崩れません。
 * ・地色は指定色の #81c50a ではなく --brand-d。白抜きの数字を読ませるためです
 *   （#81c50a に白文字はコントラスト比 2.1 で AA を大きく割ります）。
 * ・flex/grid の見出しでも、通常の行の中でも同じ見た目になるよう inline-grid にしています。
 */
.num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.85em;
  height: 1.85em;
  margin-right: .45em;
  border-radius: 50%;
  background: var(--brand-d);
  color: #fff;
  font-family: var(--sans);
  font-size: .78em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: .08em;
}

.diff-list .num {
  position: absolute;
  left: -13px;
  top: -20px;
  width: 2.85em;
  height: 2.85em;
}

/* 濃い地の上（反転セクション・見出し帯の中）では、白地に濃緑の数字へ反転させる。
   #81c50a 地に濃緑文字だと 3.7 しか出ず AA を割るため、地は白にしている。 */
.section--navy .num,
.sec-head .num {
  background: #fff;
  color: var(--brand-d);
}

/* 見出しが2行以上に折り返したとき、2行目がバッジの下に回り込まないようにする。
   :has() 未対応のブラウザでは通常のインライン配置になり、回り込むだけで崩れはしない。 */
h2:has(> .num),
h3:has(> .num) {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

h2:has(> .num)>.num,
h3:has(> .num)>.num {
  margin-top: .12em;
}

.anchor {
  position: relative;
  top: -80px;
  visibility: hidden;
}

/*
 * 改行位置の調整用。
 * 語句をこれで囲むと「語句の途中で行が切れる」のを防ぎ、
 * 入り切らない場合は語句ごと次の行へ送られます（＝クライアント指定の改行位置）。
 * white-space:nowrap と違い、語句自体は必要に応じて折り返すので横スクロールは起きません。
 */
.nb {
  display: inline-block;
}

/* 強調（クライアント指定の「色を変える」箇所） */
.em-accent {
  color: var(--cta);
  font-weight: 700;
}

.em-red {
  color: var(--danger);
  font-weight: 700;
}

ul {
  list-style: none;
}

/* ---------- 18. レスポンシブ ---------- */

/* PC：ナビ項目が8つあり1行に収まらないため、ロゴ／電話・CTAの下にナビを独立した段で配置 */
@media (min-width: 901px) {
  .header-bar {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-bottom: 0;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }

  /* 項目をインナー幅いっぱいに等間隔配置（両端の文字はコンテンツ左右端に揃える） */
  .header-nav .nav__list {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -12px;
    gap: 0;
  }

  .nav__link {
    padding: 10px 12px;
  }

  /* 解決事例はPCのみ2カラム。minmax(0,1fr) は、金額など折り返せない要素で
     カラムが 1fr を超えて広がる（列幅がずれる）のを防ぐため */
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand__logo, .brand .custom-logo {
    width: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .toc ol {
    columns: 1;
  }

  .header-tel {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* ★重要：backdrop-filter を持つ要素は position:fixed の子孫の「包含ブロック」になるため、
     これを外さないとドロワーの高さがヘッダーの高さに制限されてしまう。
     スマホでは半透明ブラーをやめて白背景にする（見た目の差はほぼ無い）。 */
  .site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* ドロワーは .site-header の重なり文脈(z-index:50)の内側にあるため、
     開いている間はヘッダー自体をオーバーレイ(65)より前面に上げる。 */
  body.nav-open .site-header {
    z-index: 80;
  }

  /* ---- 右からスライドインするドロワーメニュー ---- */
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 70;
    width: min(86%, 400px);
    display: block;
    padding: 0;
    background: #fff;
    box-shadow: -10px 0 34px rgba(34, 108, 76, .13);
    transform: translateX(101%);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-open .header-nav {
    transform: translateX(0);
  }

  /* ドロワー上部：ロゴ ＋ 閉じるボタン */
  .drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 24px 22px;
  }

  .drawer-head__logo {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .drawer-head__logo img {
    width: 100%;
    max-width: 232px;
    height: auto;
  }

  .nav-toggle--close {
    display: block;
    margin: -8px -10px 0 0;
  }

  /* メニュー項目：英語（大）＋日本語（小）の2段。細い区切り線で仕切る */
  .header-nav .nav__list {
    display: block;
    padding: 0 24px;
    margin: 0;
  }

  .header-nav .nav__item {
    margin: 0;
    border-top: 1px solid var(--line);
  }

  .header-nav .nav__item:last-child {
    border-bottom: 1px solid var(--line);
  }

  .header-nav .nav__link {
    display: block;
    padding: 17px 26px 17px 2px;
    border-radius: 0;
    background: none;
    position: relative;
  }

  .header-nav .nav__link:hover,
  .header-nav .nav__link:focus-visible {
    background: none;
  }

  /* 右端の「›」 */
  .header-nav .nav__link::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    transform: rotate(45deg);
  }

  .header-nav .nav__en {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.3;
    color: var(--navy);
    font-family: var(--serif);
  }

  .header-nav .nav__ja {
    display: block;
    margin-top: 3px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--muted);
  }

  /* ドロワー下部：電話とLINE */
  .drawer-foot {
    display: block;
    padding: 26px 24px 40px;
  }

  .drawer-foot__tel {
    display: block;
    text-align: center;
    margin-bottom: 16px;
    color: inherit;
  }

  .drawer-foot__label {
    display: block;
    font-size: .74rem;
    letter-spacing: .1em;
    color: var(--gold);
    font-weight: 700;
  }

  .drawer-foot__num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
  }

  .drawer-foot__note {
    display: block;
    font-size: .74rem;
    color: var(--muted);
  }

  /* ドロワーが開いている間は背面をスクロールさせない */
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 52px 0 20px 0;
  }

  .grid--2, .grid--3, .grid--4, .term-grid {
    grid-template-columns: 1fr;
  }

  .stat-band .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2)::before {
    display: none;
  }

  .brand__logo, .brand .custom-logo {
    width: 262px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero__inner {
    padding: 48px 0 44px;
  }

  .cta-embed {
    padding: 32px 8px;
  }

  /* SPは2行に折り返すため、丸みを抑えて左右のパディングも詰める */
  .staff-note {
    gap: .5em;
    padding: 13px 18px;
    font-size: 1rem;
    width: 90%;
  }

  .case-card {
    padding: 26px 20px;
  }

  .case-card__banner {
    margin: -26px -20px 20px;
  }

  /* カードのパディング変更に合わせる */
  .case-card__title {
    font-size: 1.2rem;
  }

  .case-figure {
    padding: 18px 14px;
  }

  .case-figure__amount {
    font-size: 1.5rem;
  }

  .case-figure__result {
    font-size: 1.25rem;
  }

  .case-figure__result .case-figure__amount {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
  }

  /* スマホではボタンが幅いっぱいになるため、左右40pxのパディングだと
     「0120-847-014 平日・土曜 10:00〜19:00」のような長いラベルが入り切らない。
     余白を詰めて、文字と枠線の間隔を確保する。 */
  .btn--lg {
    padding: 16px 22px;
  }

  .btn-row {
    flex-direction: column;
  }

  .hero .btn-row {
    flex-direction: column;
  }

  .floating-cta {
    display: block;
  }

  /* トップページはファーストビューでは出さず、「債務整理とは」が見えたら
     JS（main.js）が .is-visible を付けてせり上がらせる */
  .floating-cta--reveal {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }

  .floating-cta--reveal.is-visible {
    transform: none;
    visibility: visible;
  }

  .side-cta {
    display: none;
  }

  /* 追従CTA分の余白 */
  /* ドロワーのボタンは btn--block 側で幅100%にするため、汎用の width:100% を打ち消す */
  .drawer-foot .btn {
    width: 100%;
  }

  .case-figure__title {
    font-size: 1.3rem;
  }

  .cta-embed .cta-urgent {
    font-size: 1rem;
  }

  .header-actions {
    display: none;
  }
  .check-box__note {
    text-align: center;
        font-size: 1.3rem;
  }
}

@media (max-width: 380px) {
  .brand__logo, .brand .custom-logo {
    width: 220px;
  }
}

@media (min-width: 681px) {
  .side-cta {
    display: flex;
  }
}

/* 動きを減らす設定の環境ではアニメーションを無効化 */
@media (prefers-reduced-motion: reduce) {
  .ac-a, .ac-a__inner, .ac-q::after, .btn, .floating-cta--reveal {
    transition: none;
  }

  /* 沈み込みを止める。影の高さも据え置き（移動なしで影だけ縮むと不自然なため） */
  .btn:hover, .btn:active {
    transform: none;
    box-shadow: 0 4px 0 var(--btn-shadow);
  }
}

/* 印刷 */
@media print {
  .site-header, .floating-cta, .side-cta, .cta-embed, .nav-toggle {
    display: none !important;
  }

  body {
    padding: 0;
  }
}
/* =========================================================
   19. 記事（コラム）
   一覧 home.php / カテゴリ category.php / 詳細 single.php で使用。
   AIO向けに「要点 → 目次 → 本文 → FAQ → 監修者」の順で読ませる構成。
   ========================================================= */

/* ---- 19a. 記事カード / 一覧グリッド ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
  margin-bottom: 40px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}

.post-card:hover {
  border-color: var(--brand-l);
  box-shadow: var(--shadow-l);
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.post-card__link:hover {
  color: inherit;
}

/* サムネイルは 16:9 で統一。画像の縦横比がまちまちでもカードの高さが揃う */
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--brand-50);
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* アイキャッチ未設定のときは、書類アイコンを中央に置いた薄い緑地にする */
.post-card__thumb--none {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--brand-50) 0%, var(--brand-100) 100%);
}

.post-card__thumb--none img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: .55;
}

.post-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.post-card__cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-100);
  color: var(--brand-d);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: .6em;
}

.post-card__title {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
  margin: 0 0 .5em;
}

.post-card__excerpt {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 1em;
}

.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  font-size: .8rem;
}

.post-card__date {
  color: var(--muted);
  letter-spacing: .04em;
}

.post-card__foot .jump-link {
  font-size: .8rem;
}

/* ---- 19b. カテゴリの絞り込みナビ ---- */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.cat-nav__item {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.5;
}

.cat-nav__item:hover {
  border-color: var(--brand-d);
  color: var(--brand-d);
}

.cat-nav__item.is-current {
  background: var(--brand-d);
  border-color: var(--brand-d);
  color: #fff;
}

.cat-nav__count {
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
}

.cat-nav__item.is-current .cat-nav__count {
  color: #eaf6cf;
}

/* ---- 19c. カテゴリ索引（一覧ページ下部） ---- */
.cat-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cat-index__item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 20px 22px;
  color: inherit;
}

.cat-index__item:hover {
  border-color: var(--brand-l);
  border-left-color: var(--brand-d);
  color: inherit;
}

.cat-index__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 .4em;
  display: flex;
  align-items: baseline;
  gap: .6em;
}

.cat-index__count {
  font-size: .76rem;
  font-weight: 700;
  color: var(--muted);
}

.cat-index__desc {
  font-size: .86rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- 19d. アーカイブ共通のこまごま ---- */
.archive-desc {
  max-width: var(--wrap-narrow);
  margin: 0 auto 28px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: .94rem;
  line-height: 1.9;
}

.archive-count {
  margin-bottom: 16px;
}

.archive-back {
  text-align: center;
  margin: 32px 0 0;
}

.post-intro {
  max-width: var(--wrap-narrow);
  margin: 0 auto 32px;
}

.breadcrumb__current {
  margin: 0;
  color: var(--muted);
}

/* 検索フォーム */
.search-box {
  margin-bottom: 32px;
}

.search-box .search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
}

.search-box .search-field {
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: 1rem;
}

.search-box .search-submit {
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--brand-d);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---- 19e. ページ送り ---- */
.pagination {
  margin-top: 8px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .92rem;
}

.pagination .page-numbers:hover {
  border-color: var(--brand-d);
  color: var(--brand-d);
}

.pagination .page-numbers.current {
  background: var(--brand-d);
  border-color: var(--brand-d);
  color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ---- 19f. 記事ヘッダー ---- */
.article__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.article__cats {
  margin: 0 0 .8em;
}

.cat-badge {
  display: inline-block;
  background: var(--brand-d);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 14px;
  border-radius: 999px;
}

.cat-badge:hover {
  background: var(--brand-dd);
  color: #fff;
}

.article__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.4vw, 2.05rem);
  line-height: 1.5;
  margin: 0 0 .5em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .03em;
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
}

.article__by {
  margin: .9em 0 0;
  font-size: .88rem;
  color: var(--ink-soft);
}

.article__thumb {
  margin: 0 0 32px;
}

.article__thumb img {
  width: 100%;
  border-radius: var(--radius);
}

/* ---- 19g. この記事の要点（結論の先出し） ----
   AI検索に最初に読ませたい結論を置く枠。本文より前・目次より前に配置する。 */
.points {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 32px;
}

.points__title {
  font-family: var(--serif);
  font-size: 1.12rem;
  margin: 0 0 .7em;
  padding: 0;
  border: 0;
  color: var(--brand-d);
}

.points__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.points__list li {
  position: relative;
  padding-left: 1.7em;
  margin: 0;
  line-height: 1.85;
}

.points__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  background: var(--brand-d);
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .78em;
  font-weight: 700;
  line-height: 1;
  margin-top: .35em;
}

/* ---- 19h. 目次 ---- */
.toc--article {
  margin-bottom: 40px;
}

.toc__title {
  font-size: 1.05rem;
  font-family: var(--serif);
  margin: 0 0 .6em;
  padding: 0;
  border: 0;
}

.toc--article .toc__list {
  counter-reset: toc;
  list-style: none;
  columns: initial;
  margin: 0;
  padding: 0;
}

.toc__item {
  margin-bottom: .35em;
}

/* 折り返した2行目が番号の下に潜り込まないよう、ぶら下げインデントにする */
.toc__item--h2 {
  counter-increment: toc;
  font-weight: 700;
  padding-left: 1.7em;
  text-indent: -1.7em;
}

.toc__item--h2>a::before {
  content: counter(toc) ".";
  color: var(--brand-d);
  font-weight: 700;
  margin-right: .5em;
}

.toc__item--h3 {
  padding-left: 3em;
  text-indent: -1.2em;
  font-size: .92em;
}

.toc__item--h3>a::before {
  content: "\2014";
  color: var(--line-strong);
  margin-right: .4em;
}

.toc--article a {
  color: var(--ink-soft);
  font-weight: inherit;
}

.toc--article a:hover {
  color: var(--brand-d);
  text-decoration: underline;
}

/* ---- 19i. 本文 ----
   グローバルの ul{list-style:none} を記事本文だけ元に戻す。
   記事は管理画面から自由に書かれるため、標準的なHTMLがそのまま読める状態にしておく。 */

/* 追従ヘッダーに隠れないよう、目次からのジャンプ位置をずらす */
.post-body h2,
.post-body h3 {
  scroll-margin-top: 120px;
}

/* .entry h2 は「セクションの先頭に置く」前提で margin-top:0 になっている。
   記事本文では h2 が何度も現れるため、章の切れ目として上の余白を戻す。 */
.post-body h2 {
  margin-top: 2.4em;
}

.post-body>h2:first-child {
  margin-top: 0;
}

.post-body>*:last-child {
  margin-bottom: 0;
}

.post-body ul {
  list-style: disc;
  padding-left: 1.6em;
}

.post-body ol {
  list-style: decimal;
  padding-left: 1.6em;
}

.post-body li {
  margin-bottom: .5em;
}

.post-body a {
  text-decoration: underline;
  font-weight: 600;
}

.post-body img {
  border-radius: var(--radius);
}

.post-body figure {
  margin: 0 0 1.6em;
}

.post-body figcaption {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .5em;
  text-align: center;
}

/* 見出しはすべて緑（--navy）のため、h3 と h4 は罫線と字下げで階層差をつける。
   h4 まで緑にすると h3 と見分けがつかず、章立てが読み取れなくなる。 */
.post-body h3 {
  border-bottom: 2px solid var(--brand-100);
  padding-bottom: .35em;
}

.post-body h4 {
  color: var(--ink);
  font-size: 1rem;
  margin-top: 1.6em;
  padding-left: 14px;
  position: relative;
}

.post-body h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--brand);
}

/* 引用。出典（cite）を書ける前提のデザインで、地の文と明確に区別する。 */
.post-body blockquote {
  position: relative;
  margin: 0 0 1.6em;
  padding: 18px 22px 18px 52px;
  background: var(--bg-soft);
  border-left: 4px solid var(--brand-l);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-soft);
}

.post-body blockquote::before {
  content: "\201C";
  position: absolute;
  left: 14px;
  top: 2px;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand-l);
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* 引用ブロックの「引用元を追加」に入れた出典 */
.post-body blockquote cite,
.post-body blockquote .wp-block-quote__citation {
  display: block;
  margin-top: .8em;
  font-size: .84rem;
  font-style: normal;
  color: var(--muted);
}

.post-body blockquote cite::before,
.post-body blockquote .wp-block-quote__citation::before {
  content: "出典：";
}

/* 表は幅が足りないときだけ横スクロールさせる */
.post-body .wp-block-table {
  overflow-x: auto;
}

.post-body table {
  margin-bottom: 1.6em;
  font-size: .94rem;
}

.post-body th,
.post-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.post-body th {
  background: var(--bg-soft);
  color: var(--navy-d);
  white-space: nowrap;
}

/* ---- 19j. よくある質問（FAQPage） ---- */
.faq {
  margin-top: 48px;
}

.faq__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  padding-left: 16px;
  border-left: 5px solid var(--gold);
  margin-bottom: .8em;
}

.faq__list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.faq__q {
  position: relative;
  padding-left: 2.2em;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
}

.faq__a {
  position: relative;
  margin: .8em 0 0;
  padding-left: 2.2em;
  color: var(--ink-soft);
  line-height: 1.9;
}

.faq__q::before,
.faq__a::before {
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.6em;
  height: 1.6em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .86em;
  line-height: 1;
}

.faq__q::before {
  content: "Q";
  background: var(--brand-d);
}

.faq__a::before {
  content: "A";
  background: var(--gold);
}

/* ---- 19j-2. 出典・参考にした情報 ----
   一次情報の所在を明示する枠。AIが記事の信頼度を判断する材料になる。 */
.sources {
  margin-top: 44px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sources__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 .7em;
  padding: 0;
  border: 0;
}

.sources__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9rem;
}

.sources__item {
  padding-left: 1.3em;
  text-indent: -1.3em;
  margin-bottom: .5em;
  line-height: 1.7;
  color: var(--ink-soft);
}

.sources__item:last-child {
  margin-bottom: 0;
}

.sources__item::before {
  content: "\2014";
  color: var(--gold);
  margin-right: .5em;
}

.sources__item a {
  text-decoration: underline;
  word-break: break-all;
}

/* ---- 19k. タグ・注記・監修者 ---- */
.article-tags {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
}

.article-tags__label {
  font-weight: 700;
  color: var(--muted);
  margin-right: .4em;
}

.article-tags a {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}

.article-tags a:hover {
  border-color: var(--brand-d);
  color: var(--brand-d);
}

.article-note {
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-s);
  line-height: 1.8;
}

.article-author {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.article-author__title {
  font-size: 1rem;
  font-family: var(--serif);
  margin: 0 0 .9em;
  padding: 0;
  border: 0;
}

.article-author__body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-author__photo {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-50);
}

.article-author__name {
  margin: 0 0 .4em;
}

.article-author__role {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}

.article-author__name strong {
  font-size: 1.1rem;
}

.article-author__desc {
  font-size: .86rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---- 19l. 前後の記事 ---- */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.post-nav__item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: inherit;
}

.post-nav__item:hover {
  border-color: var(--brand-l);
  color: inherit;
}

.post-nav__item--next {
  text-align: right;
  grid-column: 2;
}

.post-nav__label {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: .3em;
}

.post-nav__title {
  display: block;
  font-size: .92rem;
  line-height: 1.6;
  font-weight: 700;
}

/* ---- 19m. レスポンシブ ---- */
@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .post-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cat-index {
    grid-template-columns: 1fr;
  }

  /* スマホでは画像左・テキスト右の横並びにして、1画面に入る件数を増やす */
  .post-card__link {
    flex-direction: row;
  }

  /* 横並びでは高さをカードいっぱいに伸ばす。
     aspect-ratio を残すと 116px 角のままになり、本文が長いカードで下に隙間ができる。 */
  .post-card__thumb {
    flex: none;
    width: 116px;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .post-card__body {
    padding: 14px 16px;
  }

  .post-card__title {
    font-size: .98rem;
  }

  .post-card__excerpt {
    display: none;
  }

  .points,
  .article-author,
  .faq__item {
    padding: 18px;
  }

  .article-author__body {
    gap: 14px;
  }

  .article-author__photo {
    width: 64px;
    height: 64px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav__item--next {
    grid-column: 1;
  }

  .toc__item--h3 {
    padding-left: 2.2em;
  }
}
