/* ==================================================================
   よねかわ法律事務所 — style.css
   紺／青／朱（落款）の配色と、BIZ UDP明朝 × Noto Sans JP × EB Garamond の
   組み合わせはそのままに、文字組み・余白・操作性をデジタル庁デザインシステム
   （DADS v2）の規定に合わせて組み直したもの。

   【DADS に合わせている点】
   1. 文字サイズ  … 14/16/17/18/20/22/24/26/28/32/36/45/48/64 のみ。14px 未満は使わない
                   （例外：SP は 2026-11-21 から全体を一段小さくしている。--fs-* の段を参照。本文 14px）
   2. 行間        … 1.4 / 1.5 / 1.6 / 1.7 / 1.75 / 1.0(1行UI) のみ
   3. 余白        … 基準単位 8px の倍数のみ
   4. フォーカス  … 内側 2px 黄 + 外側 4px 黒（公式コードスニペットと同じ重ね方）
   5. タップ領域  … 操作要素はすべて 44px 以上
   6. リンク      … 本文中のリンクは下線を既定に

   【意図的な逸脱（1点）】
   字間は DADS が 0 / 0.01em / 0.02em の 3 段。本文・UI はこれに従うが、
   明朝の大見出しと欧文 eyebrow は広い字間が書体の表情そのものなので
   従来のトラッキングを残している。可読性に影響しない大きさに限定。

   【配色について】
   全組み合わせのコントラスト比を実測し AA を満たすことを確認済みのため、
   配色そのものは変更していない。
   ================================================================== */

/* ------------------------------------------------------------------
   0. トークン
------------------------------------------------------------------ */
:root {

  /* 文字サイズの段（2026-11-21）。PC は名前どおりの大きさ。SP（640px 以下）は全ページ通して一段ずつ小さくする（本文 15→14px など）。
     入力欄の 16px（iOS の拡大防止）と、画面幅に合わせて縮める min()/calc() の指定は対象外 */
  --fs-14: 14px; --fs-15: 15px; --fs-16: 16px; --fs-17: 17px; --fs-18: 18px; --fs-19: 19px; --fs-20: 20px; --fs-21: 21px; --fs-22: 22px; --fs-24: 24px; --fs-25: 25px; --fs-26: 26px; --fs-28: 28px; --fs-30: 30px; --fs-32: 32px;
  --navy-900: #17355C;   /* テーマの紺（2026-09-26 に #0F2440 から一段明るく） */
  --navy-rgb: 23,53,92;   /* --navy-900 の RGB。影・重ねの半透明に使う */
  --navy-deep: #1B2A6B;   /* 締めのCTA・SP の下部バーに使う紺（旧サイトの色） */
  --navy-deep-rgb: 27,42,107;
  --blue-700: #1D4E89;
  --blue-500: #2F6DB5;
  --blue-100: #DCE5F0;
  --bg:       #F3F3F3;
  --white:    #FFFFFF;
  --ink:      #000000;
  --ink-soft: #5B6270;
  --line:     #E3E8EF;
  --radius-card: 20px;   /* カード・囲み枠の角丸（サイト共通） */
  --radius-leaf-size: 48px;   /* 左上・右下の丸みの大きさ（20px → 32px → 48px と広げて弧をゆったりさせた） */
  --radius-leaf: var(--radius-leaf-size) 0;   /* カード・囲み枠の形（2026-11-21〜サイト共通）：左上と右下だけ丸める */
  --seal:     #B3402C;
  --seal-dark:#8E3122;

  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "EB Garamond", Georgia, "Times New Roman", serif;

  /* DADS：フォーカスリング */
  --focus-ring: #FFD43D;

  /* DADS：余白は 8px の倍数だけを使う */
  --sp-1: 8px;   --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-5: 40px;  --sp-6: 48px;  --sp-7: 64px;  --sp-8: 80px;
  --sp-9: 96px;  --sp-10: 120px;

  /* DADS：操作要素の最小タップ領域 */
  --tap: 44px;

  --logo-symbol-h: 48px;
  --logo-word-w: 240px;
  --logo-gap: 16px;
  --side-w: 260px;   /* PC の左メニューの幅。1440px 幅で約 18% */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);   /* easeOutQuart */

  /* Hero の写真送り。JS 側の切り替え時間と必ず揃える */
  --hero-fade: 1.1s;
}

@media (max-width: 640px) { :root { --fs-14: 13px; --fs-15: 14px; --fs-16: 15px; --fs-17: 16px; --fs-18: 17px; --fs-19: 18px; --fs-20: 18px; --fs-21: 19px; --fs-22: 20px; --fs-24: 22px; --fs-25: 22px; --fs-26: 24px; --fs-28: 26px; --fs-30: 28px; --fs-32: 28px; } }

/* ------------------------------------------------------------------
   1. リセット・ベース
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* 慣性スクロール（Lenis）が動いているときは、ブラウザ標準のなめらかスクロールを切る（二重に効いてカクつくため） */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);          /* DADS 基準値。本番の 15px から引き上げ */
  line-height: 1.7;         /* DADS の Web 本文（std-16N-170） */
  letter-spacing: 0.02em;   /* DADS の小サイズ帯 */
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
strong { font-weight: 700; }
small { font-size: var(--fs-14); }   /* DADS：14px 未満を作らない（既定の 0.83em を上書き） */
body.is-locked { position: fixed; width: 100%; overflow: hidden; }

/* DADS：フォーカスは内側 2px 黄 + 外側 4px 黒。地色に関係なく視認できる */
:focus-visible {
  outline: 4px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-ring);
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -200px; left: var(--sp-2); z-index: 10000;
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: var(--sp-1) var(--sp-2);
  background: var(--navy-900); color: #fff; font-size: var(--fs-14); text-decoration: underline;
}
.skip-link:focus { top: var(--sp-2); }


@media (max-width: 640px) { .pc-only { display: none !important; } }
@media (min-width: 641px) { .sp-only { display: none !important; } }

/* ------------------------------------------------------------------
   2. 骨格
------------------------------------------------------------------ */
.page-body { position: relative; z-index: 98; background: var(--bg); }
.wrapper { display: flex; }
.main { width: 100%; overflow: hidden; }
.side-col { flex: 0 0 var(--side-w); width: var(--side-w); }

.inner { width: min(960px, 100% - var(--sp-7)); margin-inline: auto; }
@media (max-width: 1439px) { :root { --logo-word-w: 200px; } }
@media (max-width: 1169px) { :root { --logo-symbol-h: 40px; --logo-word-w: 176px; --logo-gap: 8px; --side-w: 230px; } }
/* SP の文字ロゴ（SP バーと Hero で共通）。上限は左右余白 32px＋ハンバーガー分 56px＋シンボル 40px＋gap 8px を引いた幅 */
@media (max-width: 767px)  { :root { --side-w: 0px; --sp-logo-word-w: min(196px, 100vw - 136px); } .side-col { display: none; } }
@media (max-width: 640px)  { .inner { width: calc(100% - var(--sp-5)); } }

/* ------------------------------------------------------------------
   3. ブランド
------------------------------------------------------------------ */
.brand {
  --brand-symbol-h: var(--logo-symbol-h);
  --brand-word-w: var(--logo-word-w);
  --brand-gap: var(--logo-gap);
  display: inline-flex; align-items: center; gap: var(--brand-gap);
  min-height: var(--tap);   /* SP バーと Hero でロゴが 32px になるため 44px を下限に */
}
.brand__symbol { width: auto; height: var(--brand-symbol-h); }
.brand__wordmark { width: var(--brand-word-w); height: auto; }

/* ------------------------------------------------------------------
   4. PC 左固定メニュー（配置は本番のまま／タップ領域を 44px に）
------------------------------------------------------------------ */
.side-nav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  width: var(--side-w); overflow-y: auto;
  background: var(--navy-900); color: #fff;   /* 左の列はテーマの紺で塗る */
}
/* ロゴは縦組み（シンボル → よねかわ → 法律事務所）。筆文字 2 枚は元の 1 枚と同じ縮尺で並べる */
.side-brand {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: var(--sp-8) var(--sp-3) var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.side-brand__symbol { width: 76px; height: auto; margin-bottom: 6px; }
.side-brand__name   { width: 108px; height: auto; }   /* 265px 幅の素材 */
.side-brand__office { width: 145px; height: auto; }   /* 356px 幅の素材（右端の朱の点を含む） */
.side-nav nav { padding: var(--sp-5) var(--sp-3); }
.side-nav__link {
  position: relative; display: inline-flex; align-items: center;
  min-height: 36px;                            /* DADS の 44px から意図的に詰める（WCAG 2.5.8 の 24px は満たす） */
  font-family: var(--font-display); font-size: var(--fs-16); font-weight: 400;
  line-height: 1.5; letter-spacing: 0.08em; color: #fff; text-align: left;
  isolation: isolate;                          /* 帯を文字の背面に閉じ込める */
  transition: color 0.8s var(--ease-soft);
}
/* ホバー：文字の背面に白の帯が左から伸び（文字は紺に反転）、離すと右へ抜ける */
.side-nav__link::before {
  content: ""; position: absolute; inset: 4px -4px; z-index: -1;
  background: #fff; transform: scaleX(0); transform-origin: right top;
  transition: transform 0.8s var(--ease-soft);   /* 出だしは素直に、終わりをゆっくり着地させる */
}
.side-nav__link:hover { color: var(--navy-900); }
.side-nav__link:hover::before { transform: scaleX(1); transform-origin: left top; }
@media (prefers-reduced-motion: reduce) { .side-nav__link, .side-nav__link::before { transition: none; } }
/* 下層（弁護士紹介・取扱業務・解決事例）：項目名のクリックで、項目の下に小さく縦に開閉する。
   その下層のページを見ている間は、最初から開いておく */
.side-nav__toggle::after {
  content: ""; width: 5px; height: 5px; margin: -3px 0 0 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.5;
  transition: transform 0.3s ease;
}
.side-nav__sub {
  display: grid; gap: 2px; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
  padding-left: var(--sp-2); border-left: 1px solid rgba(255,255,255,0.3); margin-left: 4px;
  transition: max-height 0.45s var(--ease), opacity 0.3s ease, margin 0.3s ease, visibility 0.45s;
}
.side-nav__list .has-sub.is-open > .side-nav__sub { max-height: 320px; opacity: 1; visibility: visible; margin-block: 4px var(--sp-1); transition: max-height 0.45s var(--ease), opacity 0.3s ease, margin 0.3s ease, visibility 0s; }
.side-nav__list .has-sub.is-open > .side-nav__toggle::after { transform: rotate(225deg); margin-top: 4px; }
.side-nav__sub a { display: inline-block; padding: 3px 0; font-size: 13px; line-height: 1.5; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); transition: color 0.2s ease; }
.side-nav__sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.side-nav__sub a[aria-current="page"] { color: #fff; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .side-nav__sub, .side-nav__toggle::after { transition: none; } }
@media (max-width: 1169px) {
  .side-brand { padding-block: var(--sp-6) var(--sp-5); }
  .side-nav nav { padding-inline: var(--sp-2); }
  .side-nav__link { font-size: var(--fs-15); letter-spacing: 0.04em; }
}
@media (max-width: 767px) { .side-nav { display: none; } }

/* ------------------------------------------------------------------
   5. CTA（朱＝落款。サイト内で朱を使うのは CTA だけ）
------------------------------------------------------------------ */
/* PC は左メニューに「ご相談・お問い合わせ」が常にあるので固定CTAは置かない。SP の下部固定CTA だけ */
body.is-contact .sp-cta, body.is-news .sp-cta { display: none !important; }   /* お問い合わせ・お知らせ（一覧・記事）は下部CTAを出さない */

/* ------------------------------------------------------------------
   6. SP ヘッダー
------------------------------------------------------------------ */
.sp-header { display: none; }
@media (max-width: 767px) {
  .sp-header { display: block; }

  .nav-toggle {
    position: fixed; top: var(--sp-1); right: var(--sp-1); z-index: 9999;
    width: var(--tap); height: var(--tap); display: grid; place-items: center;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .nav-toggle span {
    grid-area: 1 / 1; width: 24px; height: 2px; background: var(--navy-900);
    transition: transform 0.3s var(--ease), opacity 0.3s, background 0.3s;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-7px); }
  .nav-toggle span:nth-child(3) { transform: translateY(7px); }
  body.is-home:not(.is-scrolled) .nav-toggle span,
  .nav-toggle[aria-expanded="true"] span { background: #fff; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .sp-bar {
    position: fixed; top: 0; left: 0; z-index: 400;
    width: 100%; height: 64px; padding: 0 var(--sp-2); display: flex; align-items: center;
    background: rgba(243,243,243,0.96); border-bottom: 1px solid var(--line);   /* ページ地色 --bg に合わせる */
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
  }
  .sp-bar.is-visible, body.is-sub .sp-bar { opacity: 1; visibility: visible; }
  /* フッターに着いたらバーとハンバーガーを退場させる */
  body.is-at-footer .sp-bar,
  body.is-at-footer .nav-toggle { opacity: 0; visibility: hidden; }
  .sp-bar .brand { --brand-symbol-h: 32px; --brand-word-w: var(--sp-logo-word-w); --brand-gap: 8px; padding-right: 56px; }

  .sp-menu {
    position: fixed; inset: 0; z-index: 9000;
    background: var(--navy-900); color: #fff;
    padding: 0 var(--sp-3) var(--sp-5); overflow-y: auto;
    opacity: 0; transition: opacity 0.35s ease;
  }
  .sp-menu[hidden] { display: none; }
  .sp-menu.is-open { opacity: 1; }
  .sp-menu__list li { border-bottom: 1px solid rgba(255,255,255,0.3); }
  /* 上部のロゴ：上部バーと同じ位置・大きさ（閉じるボタンは右上に重なる） */
  .sp-menu__brand { display: flex; align-items: center; height: 64px; margin-bottom: var(--sp-1); }
  .sp-menu__brand .brand { --brand-symbol-h: 32px; --brand-word-w: var(--sp-logo-word-w); --brand-gap: 8px; }
  .sp-menu__list a {
    display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 0;
    font-family: var(--font-display); font-size: var(--fs-16); line-height: 1.5; letter-spacing: 0.08em;
  }
  /* 各項目の左端に小さな ＞ */
  .sp-menu__list a::before {
    content: ""; flex: none; width: 6px; height: 6px; margin-left: 2px;
    border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.8;
  }
  .sp-menu__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
  /* ＋ で下層を開閉。行の右端に置く */
  .sp-menu__row { display: flex; align-items: center; justify-content: space-between; }
  .sp-menu__row > a { flex: 1; }
  .sp-menu__more { position: relative; flex: none; width: var(--tap); height: var(--tap); padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
  .sp-menu__more span::before, .sp-menu__more span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px; background: currentColor; transition: transform 0.45s var(--ease-soft); }
  .sp-menu__more span::after { transform: rotate(90deg); }
  .sp-menu__more[aria-expanded="true"] span::after { transform: rotate(0deg); }
  .sp-menu__sub { padding: 0 0 var(--sp-1) var(--sp-2); }
  /* ＋での開閉：高さは JS が 0 ⇔ 中身の高さで付け替える。開くときはすっと出てゆっくり収まり、閉じるときは素直に畳む。
     中身は開くとき少し遅れて上からふわっと現れ、閉じるときは先に消える */
  .sp-menu__sub.is-moving { overflow: hidden; transition: height 0.35s var(--ease), padding 0.35s var(--ease); }
  .sp-menu__sub.is-moving.is-open { transition: height 0.5s var(--ease-soft), padding 0.5s var(--ease-soft); }
  .sp-menu__sub.is-prep, .sp-menu__sub.is-closing { padding-bottom: 0; }
  .sp-menu__sub.is-prep li, .sp-menu__sub.is-closing li { opacity: 0; transform: translateY(-6px); }
  .sp-menu__sub.is-open li { transition: opacity 0.4s ease 0.08s, transform 0.5s var(--ease-soft) 0.08s; }
  .sp-menu__sub.is-closing li { transition: opacity 0.2s ease, transform 0.2s ease; }
  .sp-menu__sub a { min-height: 36px; padding: 4px 0; font-family: var(--font-body); font-size: 13px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
  .sp-menu__sub li { border-bottom: 0; }
  /* 連絡先の枠（細い白線）：案内 → 白地の電話番号 → 受付時間 */
  .sp-menu__contact {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin: var(--sp-4) var(--sp-2) 0; padding: var(--sp-2) var(--sp-2) 12px;
    border: 1px solid rgba(255,255,255,0.55); text-align: center;
  }
  .sp-menu__contact-lead { font-size: 13px; letter-spacing: 0.06em; }
  .sp-menu__contact-tel {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 var(--sp-2);
    background: #fff; color: var(--navy-900);
    font-family: var(--font-en); font-size: var(--fs-24); letter-spacing: 0.08em; line-height: 1;
  }
  .sp-menu__contact-tel svg { width: 24px; height: 24px; }
  .sp-menu__contact-hours { font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
  /* 画面下に固定する 2 分割バー（電話｜お問い合わせ）。メニュー本文が隠れないよう下に余白を取る */
  .sp-menu { padding-bottom: 72px; }
  .sp-menu__bar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #fff; }   /* 左右とも旧サイトの紺。間の 3px は白で区切る */
  .sp-menu__bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 var(--sp-1); font-size: var(--fs-14); letter-spacing: 0.04em; color: #fff; }
  .sp-menu__bar-tel { background: var(--navy-deep); font-family: var(--font-en); font-weight: 400; font-size: var(--fs-17) !important; letter-spacing: 0.06em !important; }
  .sp-menu__bar-tel svg { width: 22px; height: 22px; }
  .sp-menu__bar-form { background: var(--navy-deep); font-weight: 400; }
  /* ハンバーガーメニュー内のバーだけは元の配色（紺の区切り・電話は青・お問い合わせは朱） */
  .sp-menu > .sp-menu__bar { gap: 2px; background: var(--navy-900); }
  .sp-menu > .sp-menu__bar .sp-menu__bar-tel { background: var(--blue-700); }
  .sp-menu > .sp-menu__bar .sp-menu__bar-form { background: var(--seal); }

  /* 常時表示の下部CTA：メニュー内と同じ 2 分割バーを画面下の端から端まで */
  .sp-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
  }
  .sp-cta .sp-menu__bar { position: static; padding-bottom: env(safe-area-inset-bottom); }
  .sp-cta.is-visible, body.is-sub .sp-cta { opacity: 1; visibility: visible; }
  .sp-cta.is-away, body.is-sub .sp-cta.is-away { opacity: 0; visibility: hidden; }   /* 下層でも大CTAが見えたら退場 */
  body.is-sub .main { padding-top: 64px; }
}

/* ------------------------------------------------------------------
   7. Hero（構造・縦組みキャッチは本番のまま）
------------------------------------------------------------------ */
/* Hero は画面 1 枚分の高さ。スクロールすればそのまま本文が続く */
.hero { position: relative; height: 100vh; min-height: 620px; }
@media (max-width: 767px) { .hero { min-height: 560px; } }
.hero__inner {
  position: absolute; top: 0; left: 0; z-index: 10;
  width: 100%; height: 100%;
  background: var(--navy-900); color: #fff; overflow: hidden;
}

.hero__brand { position: absolute; top: var(--sp-5); left: var(--sp-5); z-index: 3; }
.hero__place {
  position: absolute; top: var(--sp-5); right: var(--sp-6); z-index: 3; text-align: right;
  font-family: var(--font-display);   /* メイン・サブコピーと同じ明朝 */
  font-size: var(--fs-14); line-height: 1.6; letter-spacing: 0.16em; color: rgba(255,255,255,0.85);
}
.hero__place span { display: block; }
.hero__place-en { font-family: var(--font-en); font-size: var(--fs-14); letter-spacing: 0.24em; }

/* 写真は画面の左端から右端まで敷く。object-fit: cover なので伸びずに切れる */
.hero__photo { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; }
/* 1 枠＝1 スロット。スロットを重ねて置き、クラスの付け替えだけでクロスフェードする。
   .is-active＝いま見せている枠、.is-prev＝その下でじっとしている直前の枠 */
.hero__photo picture { display: contents; }   /* picture 自体は箱を作らせない */
.hero__slot { position: absolute; inset: 0; z-index: 0; opacity: 0; }
.hero__slot.is-prev   { z-index: 1; opacity: 1; transition: none; }
.hero__slot.is-active { z-index: 2; opacity: 1; transition: opacity var(--hero-fade) ease; }
.hero__slot:only-child { opacity: 1; }
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* 帯を出さず端まで敷く。枠の比率は閲覧環境ごとに変わるので、上を基準に切る */
  object-fit: cover; object-position: center top;
}
/* 動画は下端を基準に合わせ（切れるのは上の空の側）、左右を反転して使う。
   ポスター画像も video 要素が描くので一緒に反転する */
.hero__photo video.hero__media { object-position: center bottom; transform: scaleX(-1); }
/* PC の 2 枠目も下端を基準に合わせる（切れるのは上の側） */
.hero__slot:nth-child(2) .hero__media { object-position: center bottom; }

/* PC は動画、SP は写真に出し分ける */
.hero__media--sp { display: none; }
/* コピーが乗る左側だけを紺で沈める。写真の主題は右 3 割に残す。
   サブコピーは街並みの上に掛かるので、左下にもう一段紺を重ねて読みやすくする */
.hero__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background:
    radial-gradient(ellipse 85% 54% at 0% 100%, rgba(var(--navy-rgb),0.80) 0%, rgba(var(--navy-rgb),0.55) 50%, rgba(var(--navy-rgb),0) 100%),
    linear-gradient(90deg,
    rgba(var(--navy-rgb),0.92) 0%,
    rgba(var(--navy-rgb),0.80) 19%,
    rgba(var(--navy-rgb),0.40) 37%,
    rgba(var(--navy-rgb),0.12) 52%,
    rgba(var(--navy-rgb),0) 63%);   /* 紺は左 6 割強。写真の見える幅を少し広げた */
}

.hero__copy {
  position: absolute; z-index: 2; left: 9%; top: 50%; transform: translateY(-46%);
  display: flex; align-items: flex-end; gap: var(--sp-6);
}
.hero__catch {
  text-shadow: 0 2px 14px rgba(var(--navy-rgb),0.5);
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-display); font-weight: 500;
  font-size: 45px;              /* DADS の最大見出しサイズ帯 */
  line-height: 2; letter-spacing: 0.2em;
  color: #fff; white-space: nowrap;
}
.hero__sub {
  position: relative; top: min(var(--sp-10), 12vh);   /* 縦書きキャッチの足元から一段下げる（画面が低いときは控えめに） */
  text-shadow: 0 1px 10px rgba(var(--navy-rgb),0.6);
  max-width: 40em; padding-bottom: var(--sp-1);
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-18); line-height: 1.75; letter-spacing: 0.08em; color: rgba(255,255,255,0.88);
}
.hero__sub strong { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }   /* 「39年」も前後と同じ大きさ・太さで */
/* サブコピーの改行：「虎ノ門で39年。」の後は常に折る。
   さらに SP だけ「債権回収を、」の後でも折って 3 行にする */
.hero__br-sp { display: none; }
@media (max-width: 767px) { .hero__br-sp { display: inline; } }
/* 幅 334px 未満だと 2 行目が溢れるので、字間だけ詰めて 3 行を保つ */

/* SCROLL：写真の枠の右下を地色で切り欠いた箱（60×188）。
   横組みの「SCROLL」を左へ 90° 倒し、その下の細い溝の中を濃い線が上から下へ流れ続ける */
.hero__scroll {
  position: absolute; right: var(--sp-5); bottom: var(--sp-5); z-index: 3;
  width: 60px; height: 188px;
  background: var(--bg); border-top-left-radius: var(--hero-radius);
}
.hero__scroll-text {
  position: absolute; top: 51px; left: 35px;   /* 文字の中心を下の線の真上に置く */
  transform: translate(-50%, -50%) rotate(-90deg);
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  line-height: 18px; letter-spacing: 0.05em; white-space: nowrap; color: var(--ink);
}
.hero__scroll-line {
  position: absolute; top: 90px; left: 34px;
  width: 2px; height: 78px; overflow: hidden;
  background: #C7C7C7;
}
.hero__scroll-line::before {
  content: ""; position: absolute; inset: 0;
  background: #525252;
  animation: scroll-line 2s infinite;
}
@keyframes scroll-line {
  0%   { transform: translate3d(0, -100%, 0); }
  15%  { transform: translate3d(0, -98%, 0); }
  85%  { transform: translate3d(0, 98%, 0); }
  100% { transform: translate3d(0, 100%, 0); }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-line::before { animation: none; transform: translate3d(0, -50%, 0); } }

/* ロゴ（.hero__brand）は開いた瞬間から表示するので、ここには含めない */
.hero__place, .hero__photo, .hero__scroll {
  animation: hero-in 0.9s var(--ease) both;
}
.hero__photo { animation-delay: 0.05s; }
.hero__place { animation-delay: 0.7s; }
.hero__scroll { animation-delay: 1.1s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* メインコピー：1 行目が出てから 2 行目。境目はぼかして、左から右へ通す。
   静止状態（= モーション抑制時）は必ず「全部見えている」側に置く */
.hero__catch span {
  display: inline-block;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 33%, transparent 50%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 33%, transparent 50%, transparent 100%);
  -webkit-mask-size: 300% 100%;   mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0;    mask-position: 0% 0;
  animation: catch-line-h 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero__catch span:nth-of-type(1) { animation-delay: 0.3s; }
.hero__catch span:nth-of-type(2) { animation-delay: 1.5s; }   /* 1 行目の終わり際に重ねる */

@keyframes catch-line-h {
  from { opacity: 0; transform: translateX(-16px);
         -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  25%  { opacity: 1; }
  to   { opacity: 1; transform: none;
         -webkit-mask-position: 0% 0;   mask-position: 0% 0; }
}
@keyframes catch-sweep {
  from {
    opacity: 0;
    transform: translateX(-20px);
    -webkit-mask-position: 100% 0; mask-position: 100% 0;
  }
  30% { opacity: 1; }
  to {
    opacity: 1;
    transform: none;
    -webkit-mask-position: 0% 0; mask-position: 0% 0;
  }
}

/* サブコピー：開いた瞬間から表示（アニメーションなし）。動くのはメインコピーだけ */
.hero__sub span { display: inline-block; }

@media (max-width: 1400px) { .hero__catch { font-size: 3.1vw; } }
@media (max-width: 1023px) {
  .hero__copy { gap: var(--sp-4); left: 7%; }
  .hero__sub { font-size: var(--fs-16); max-width: 38em; }
}
/* PC：左メニューは Hero の時点から出しておき、Hero はその右に収める（ロゴは左メニューのものを使う）。
   写真は地色の余白で囲んだ角丸の枠に入れ、コピーは写真の上に白文字で重ねる。
   右下は小さく切り欠いて SCROLL を置く */
@media (min-width: 768px) {
  .hero__inner { --hero-radius: 10px; left: var(--side-w); width: calc(100% - var(--side-w)); background: var(--bg); color: var(--ink); }   /* 角丸はカード（20px）より控えめに */
  .hero__brand { display: none; }
  .hero__photo { inset: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-5); width: auto; height: auto; border-radius: var(--hero-radius); overflow: hidden; }
  /* 左上の所在地と、写真に重ねるメインコピーが読める程度に、上と左だけ薄く沈める */
  .hero__photo::after {
    background:
      linear-gradient(180deg, rgba(var(--navy-rgb),0.45) 0%, rgba(var(--navy-rgb),0) 26%),
      linear-gradient(90deg, rgba(var(--navy-rgb),0.40) 0%, rgba(var(--navy-rgb),0.15) 40%, rgba(var(--navy-rgb),0) 60%);
  }
  /* 2 人が並ぶ写真は、枠が縦長になっても 2 人の顔が残る位置で切る */
  .hero__slot:nth-child(2) .hero__media { object-position: 85% bottom; }
  .hero__place { top: calc(var(--sp-5) + var(--sp-4)); left: calc(var(--sp-5) + var(--sp-4)); right: auto; text-align: left; }

  /* コピーは写真の左寄り・少し上に、メイン → サブの順で白文字を縦に積む */
  .hero__copy {
    --catch-size: clamp(36px, 4vw, 56px);
    left: calc(var(--sp-5) + var(--sp-7)); top: calc(50% + var(--catch-size)); transform: translateY(-50%);   /* 中央からメインコピー 1 文字分下げる */
    max-width: calc(100% - var(--sp-5) * 2 - var(--sp-7) - 120px);   /* 右下の SCROLL の切り欠きと間を空ける */
    flex-direction: column; align-items: flex-start; gap: var(--sp-3);
  }
  .hero__catch { writing-mode: horizontal-tb; font-size: var(--catch-size); line-height: 1.6; letter-spacing: 0.12em; }
  .hero__sub {
    top: 0; max-width: none; margin-left: 1em;   /* メインコピーのすぐ下に置き、頭は 1 文字分右へ */
    color: #fff;
    /* ビル群の上でも読めるよう、紺の影を文字のすぐ周りに集める（明朝の細い線でも効くよう、ぼかしは小さめを重ねる） */
    text-shadow: 0 0 4px rgba(var(--navy-rgb),0.9), 0 1px 8px rgba(var(--navy-rgb),0.8), 0 0 16px rgba(var(--navy-rgb),0.6);
  }
}

/* PC の出だし（時間はすべてページを開いてからの秒数）
   0.3s 写真が左から開く（1.4s）→ 1.3s メインコピー 1 行目、2.5s 2 行目が白で左から浮かぶ（各 1.6s）
   → 3.6s SCROLL が右から入り、所在地が浮かぶ（1.5s）→ 3.9s メインコピーが出そろう頃に、サブコピーがふわっと浮かぶ（0.9s）
   写真の送りは JS 側で 5.1s まで待たせる（main.js の INTRO_MS と揃える）。モーション抑制の設定では演出を省く */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: hero-wipe 1.4s cubic-bezier(0, 0, 0, 0.99) 0.3s both; }
  .hero__catch span:nth-of-type(1) { animation-delay: 1.3s; }
  .hero__catch span:nth-of-type(2) { animation-delay: 2.5s; }
  .hero__sub    { animation: hero-in 0.9s var(--ease) 3.9s both; }   /* 2 行目（2.5s＋1.6s）が出終わる頃 */
  .hero__scroll { animation: hero-from-right 1.5s cubic-bezier(0.2, 0.6, 0.6, 1) 3.6s both; }
  .hero__place  { animation: hero-fade 1.5s cubic-bezier(0.2, 0.6, 0.6, 1) 3.6s both; }
}
@keyframes hero-wipe {
  from { clip-path: inset(0 100% 0 0 round var(--hero-radius)); }
  to   { clip-path: inset(0 0 0 0 round var(--hero-radius)); }
}
@keyframes hero-from-right { from { transform: translateX(calc(100% + var(--sp-5))); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) {
  .hero__inner { display: block; }
  .hero__brand { top: var(--sp-2); left: var(--sp-2); }
  .hero__brand .brand { --brand-symbol-h: 32px; --brand-word-w: var(--sp-logo-word-w); --brand-gap: 8px; }
  .hero__brand img, body.is-home:not(.is-scrolled) .nav-toggle span { filter: drop-shadow(0 1px 6px rgba(var(--navy-rgb),0.45)); }   /* 上の紺を外したぶん、白いロゴとハンバーガーを空から浮かせる */
  .hero__place { display: none; }
  /* SP も PC と同じく写真を画面いっぱいに敷き、コピーを上に重ねる */
  .hero__photo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; }
  .hero__media--pc { display: none; }
  .hero__media--sp { display: block; }
  .hero__slot:nth-child(2) .hero__media { object-position: center top; }
  .hero__photo::after {
    background: linear-gradient(180deg,
      rgba(var(--navy-rgb),0) 0%,       /* 上側の紺は掛けない（ロゴは影で読ませる） */
      rgba(var(--navy-rgb),0) 50%,      /* 紺は下 半分だけ。メインコピーには薄く掛かる程度 */
      rgba(var(--navy-rgb),0.38) 68%,
      rgba(var(--navy-rgb),0.72) 82%,   /* サブコピーの辺りで読める濃さに */
      rgba(var(--navy-rgb),0.88) 100%);
  }
  /* 紺を薄くしたぶん、メインコピーは影で写真から浮かせる */
  .hero__catch { text-shadow: 0 1px 12px rgba(var(--navy-rgb),0.55); }
  .hero__copy {
    /* 下端に揃えているので、間隔を広げるとサブはそのままでキャッチだけ上がる */
    position: absolute; z-index: 2; inset: auto 6% 96px 6%; transform: none;   /* メインとサブをまとめて下端から 96px */
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5);
    padding: 0; margin: 0;
  }
  /* サブコピーは各行の頭を 1 文字分ぶん下げる */
  .hero__sub span { margin-left: 1em; }
  .hero__catch {
    writing-mode: horizontal-tb; font-size: var(--fs-28); line-height: 1.6; letter-spacing: 0.1em; white-space: normal;
  }
  .hero__sub { top: auto; font-size: var(--fs-16); line-height: 1.75; max-width: none; padding: 0; }
  /* SP では送りインジケータと SCROLL を出さない */
  .hero__scroll { display: none; }
}
/* 幅 360px 未満では 3 行に収まらないため、サブコピーだけ少し詰める。
   余白や字下げは他の機種と揃えたいので、文字サイズと字間で逃がす（下限 14px は守る） */
@media (max-width: 359px) {
  .hero__sub { font-size: var(--fs-15); letter-spacing: 0; }
}
@media (max-width: 400px) { .hero__catch { font-size: var(--fs-24); } }

/* ------------------------------------------------------------------
   8. 共通パーツ
------------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-en); font-size: var(--fs-14); font-weight: 600;
  letter-spacing: 0.28em; color: var(--blue-500); line-height: 1.5; text-transform: uppercase;
}
.eyebrow--center { text-align: center; }
/* セクション名（見出しの上の欧文）は大きめに。行の高さを詰め、見出しとの間も少し狭める */
.sec-head .eyebrow { font-size: var(--fs-20); line-height: 1.2; }
.eyebrow--light { color: rgba(255,255,255,0.85); }

.sec-head { text-align: center; margin-bottom: var(--sp-7); }
.sec-head.sec-head--tight { margin-bottom: var(--sp-3); }   /* 見出しと中身の間を詰める（よくあるご質問） */
.sec-title {
  margin-top: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-32);
  line-height: 1.5; letter-spacing: 0.1em; color: var(--ink);
}
.sec-lead { max-width: 40em; margin: var(--sp-3) auto 0; text-align: left; }
.sec-lead--center { text-align: center; }
/* 改行位置を指定した冒頭文：子の span 1 つが 1 行。SP は 25 字の行が 1 行に収まる大きさにし、入りきらない行は文節単位で釣り合わせて折り返す */
.sec-lead--lines > span { display: block; text-wrap: balance; word-break: auto-phrase; }   /* 入りきらない行は文節で釣り合わせて折り返す */
.sec-lead--lines .nowrap { white-space: nowrap; }   /* 語の途中で折り返させない */
/* 費用・顧問料「LABOR ADVISORY」：幅に余裕のある PC は 1・2 行目、3・4 行目をつなげて 2 行に（入りきらない幅では 4 行のまま） */
@media (min-width: 1280px) {
  .sec-lead--2l { max-width: none; }
  .sec-lead--2l > span { display: inline; }
  .sec-lead--2l > span:nth-child(3)::before { content: "\A"; white-space: pre; }
}
@media (min-width: 641px) and (max-width: 1279px) { .sec-lead--2l .lead-comma { display: none; } }
.br-wide { display: none; }
@media (min-width: 1280px) { .br-wide { display: inline; } }   /* 2 行表示の PC だけ改行（費用・顧問料「FOR CLIENTS」） */
@media (min-width: 1280px) { .sec-lead--wide { max-width: none; } }   /* 右側が空く PC は本文を列の幅いっぱいまで広げる */   /* 4 行表示の PC は「料金設定で」の後で改行するので読点なし */
@media (max-width: 640px) {
  .sec-lead--lines { font-size: min(15px, calc((100vw - 32px) / 24.6)); }
}
.sec-lead--practice { max-width: 44em; text-align: center; }   /* 取扱業務一覧の冒頭文：中央揃え。PC は指定の改行位置で 3 行に収める */
@media (max-width: 640px) { .sec-lead--practice { font-size: var(--fs-14); } }   /* SP は指定の改行位置で 1 行ずつ収まる大きさに */
@media (max-width: 640px) {
  .sec-head { margin-bottom: var(--sp-5); }
  .sec-title { font-size: var(--fs-24); letter-spacing: 0.06em; }
}

/* 小ボタン：右端が丸い紺の札＋白い円。円に線と点が掛かり、ホバーで円が膨らみ線が流れる
   .btn-s__line / .btn-s__ring の素の指定はお知らせ一覧の矢印でも使う */
.btn-s__line { position: absolute; right: var(--sp-5); top: 50%; width: 24px; height: 1px; overflow: hidden; }
.btn-s__line::before { content: ""; display: block; width: 100%; height: 1px; background: currentColor; }
.btn-s__ring {
  position: absolute; right: var(--sp-3); top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 1.5px solid currentColor; border-radius: 50%;
  transition: transform 0.4s var(--ease);
}

.btn-s {
  --btn-bg: var(--navy-900); --btn-fg: #fff;
  position: relative; width: max-content; min-width: 280px; max-width: 100%;   /* 長い文言は幅を伸ばして 1 行に */
  background: var(--btn-bg); border-radius: 8px 30px 30px 8px;   /* 右端は高さ 60px の半分で半円 */
}
.btn-s a {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 60px; padding: var(--sp-2) 72px var(--sp-2) var(--sp-3);
  border-radius: inherit;
  font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.02em; line-height: 1.5; color: var(--btn-fg);
}
/* 円の外側に出る線（札の上なので文字色）。入口カードの矢印（.entry__arrow）も同じ形 */
.btn-s .btn-s__line, .entry__arrow .btn-s__line { z-index: 1; right: 36px; width: 30px; height: 2px; margin-top: -1px; }
.btn-s .btn-s__line::before, .entry__arrow .btn-s__line::before { height: 2px; background: var(--btn-fg); }
/* 白い円。膨らんでも中の線と点は動かないよう、変形ではなく大きさで広げる */
.btn-s .btn-s__ring, .entry__arrow .btn-s__ring {
  z-index: 2; right: 22px; width: 26px; height: 26px; margin-top: -13px;   /* 参考は 30px。紺地では白が膨らんで見えるため一回り小さく */
  border: 0; background: var(--btn-fg); overflow: hidden;
  transition: right 0.4s ease, width 0.4s ease, height 0.4s ease, margin-top 0.4s ease;
}
/* 円の内側に入った線（円で切り抜いて地の色に）。外側の線と同じ枠の中だけで流し、点より右へ抜けないようにする */
.btn-s .btn-s__ring::before, .entry__arrow .btn-s__ring::before {
  content: ""; position: absolute; right: calc(50% + 1px); top: calc(50% - 1px);
  width: 30px; height: 2px;
  background: linear-gradient(var(--btn-bg), var(--btn-bg)) no-repeat 0 0 / 100% 100%;
}
.btn-s .btn-s__ring::after, .entry__arrow .btn-s__ring::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--btn-bg);
}
.btn-s a:hover .btn-s__ring, .entry__card:hover .entry__arrow .btn-s__ring, .practice__card:hover .entry__arrow .btn-s__ring { right: 18px; width: 34px; height: 34px; margin-top: -17px; transform: none; }
.btn-s a:hover .btn-s__line::before, .entry__card:hover .entry__arrow .btn-s__line::before, .practice__card:hover .entry__arrow .btn-s__line::before { animation: btn-line 0.8s var(--ease); }
.btn-s a:hover .btn-s__ring::before, .entry__card:hover .entry__arrow .btn-s__ring::before, .practice__card:hover .entry__arrow .btn-s__ring::before { animation: btn-line-bg 0.8s var(--ease); }
.btn-s--center { margin: var(--sp-7) auto 0; }
/* 紺地の上に置く版：白い札・紺の円 */
.btn-s--light { --btn-bg: #fff; --btn-fg: var(--navy-900); }
@media (prefers-reduced-motion: reduce) {
  .btn-s .btn-s__ring, .entry__arrow .btn-s__ring { transition: none; }
  .btn-s a:hover .btn-s__line::before, .btn-s a:hover .btn-s__ring::before,
  .entry__card:hover .entry__arrow .btn-s__line::before, .entry__card:hover .entry__arrow .btn-s__ring::before,
  .practice__card:hover .entry__arrow .btn-s__line::before { animation: none; }
}
@keyframes btn-line {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(110%); }
  41%  { transform: translateX(-110%); }
  100% { transform: translateX(0); }
}
/* btn-line と同じ動きを背景位置で（要素の枠で切り抜くため） */
@keyframes btn-line-bg {
  0%   { background-position: 0 0; }
  40%  { background-position: 33px 0; }
  41%  { background-position: -33px 0; }
  100% { background-position: 0 0; }
}
@media (max-width: 640px) { .btn-s { margin-inline: auto; } }

/* 大ボタン（締めの CTA） */
.btn-l { width: 600px; max-width: 100%; margin: 0 auto; }
.btn-l a, .btn-l button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 96px; padding: var(--sp-2) var(--sp-6) var(--sp-2) var(--sp-2);
  background: var(--seal); color: #fff; border-radius: 2px;
  font-size: var(--fs-22); font-weight: 700; line-height: 1.5; letter-spacing: 0.1em;
  outline: 1px solid rgba(255,255,255,0.45); outline-offset: -6px;
  transition: background 0.3s ease;
}
.btn-l a:hover, .btn-l button:hover { background: var(--seal-dark); text-decoration: underline; }
.btn-l a:focus-visible, .btn-l button:focus-visible {
  outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring);
}
.btn-l__line { position: absolute; right: var(--sp-7); top: 50%; width: var(--sp-5); height: 1px; overflow: hidden; }
.btn-l__line::before { content: ""; display: block; width: 100%; height: 1px; background: #fff; }
.btn-l__ring {
  position: absolute; right: var(--sp-4); top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 1.5px solid #fff; border-radius: 50%; transition: transform 0.4s var(--ease);
}
.btn-l a:hover .btn-l__line::before, .btn-l button:hover .btn-l__line::before { animation: btn-line 0.8s var(--ease); }
.btn-l a:hover .btn-l__ring, .btn-l button:hover .btn-l__ring { transform: scale(1.25); }
@media (max-width: 1079px) { .btn-l { width: 544px; } .btn-l a, .btn-l button { min-height: 80px; font-size: var(--fs-20); } }
@media (max-width: 640px) {
  .btn-l { width: 100%; }
  .btn-l a, .btn-l button { min-height: 72px; font-size: var(--fs-17); letter-spacing: 0.06em; padding: var(--sp-2); }
  .btn-l__line { display: none; }
  .btn-l__ring { right: var(--sp-3); }
}

/* テキストリンク＋リング：本文リンク扱いなので下線を既定に */
.link-ring {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: var(--tap);
  font-size: var(--fs-16); font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; color: var(--blue-700);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-ring::after {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--blue-700); transition: background 0.3s ease;
}
a:hover .link-ring, .link-ring:hover { text-decoration-thickness: 3px; }
a:hover .link-ring::after, .link-ring:hover::after { background: var(--blue-700); }
/* ○の代わりに「事例を読む」と同じ紺の円＋白い＞（.news-strip__icon）を置く版 */
.link-ring--go::after { content: none; }
.link-ring--go:hover .news-strip__icon { transform: translateX(3px); }

/* 画像のマスク開き */
/* 文字のまとまりのフェードイン（main.js が .fx-in を付けたものだけ。JS が動かない・動きを減らす設定では付かない） */
.fx-in { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.fx-in.is-shown { opacity: 1; transform: none; }
.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { opacity: 0; transition: opacity 0.9s ease 0.2s; }
.img-reveal::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bg);
  transition: transform 1.2s var(--ease);
}
.img-reveal.is-revealed img { opacity: 1; }
.img-reveal.is-revealed::before { transform: translateX(101%); }

/* ------------------------------------------------------------------
   9. ホーム：2つの入口
------------------------------------------------------------------ */
.entry { padding: var(--sp-9) 0 var(--sp-5); }   /* Hero 直後の先頭セクション */
/* カードが狭くなりすぎる幅（本文列 800px 未満）では 1 列に */
.entry__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: var(--sp-3); max-width: 800px; margin-inline: auto; }   /* お知らせの帯（本文幅）より一回り細く */
/* 紺の細枠＋左上の三角。右側に写真を斜めに切って置き、文字側へ溶かす */
.entry__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: var(--sp-4) var(--sp-4) var(--sp-3);   /* 上下を詰めて横長に */
  background: #FBFBFA;
  border: 1px solid var(--navy-900); border-radius: 2px;
  box-shadow: 0 10px 24px rgba(var(--navy-rgb),0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.entry__card::before {
  content: ""; position: absolute; top: 0; left: 0; z-index: 1;
  width: 36px; height: 36px; background: var(--navy-900);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.entry__card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(var(--navy-rgb),0.12); }
.entry__photo {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 44%;
  background: var(--entry-photo, linear-gradient(160deg, #E4E9F0, #C9D3E0)) center / cover no-repeat;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 55%);
          mask-image: linear-gradient(to right, transparent 5%, #000 55%);
}
.entry__card--advisory { --entry-photo: url("/assets/img/entry/entry-advisory.webp"); --entry-photo-pos: 55% 70%; }
.entry__card--trouble  { --entry-photo: url("/assets/img/entry/entry-trouble.webp");  --entry-photo-pos: 75% 55%; }
.entry__photo { background-position: var(--entry-photo-pos, center); }
/* 写真に斜めの光の帯を 1 本 */
.entry__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.45) 38% 52%, transparent 52%);
}
.entry__eyebrow {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-size: var(--fs-14); line-height: 1.5; letter-spacing: 0.24em; color: var(--ink);
}
.entry__eyebrow::after { content: ""; width: 72px; height: 1px; background: #B7A57C; }
.entry__title {
  margin-top: 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22);
  line-height: 1.5; letter-spacing: 0.04em; color: var(--ink);
}
.entry__price { margin: -8px 0 -6px; font-family: var(--font-display); font-size: var(--fs-16); line-height: 1; letter-spacing: 0.04em; }
.entry__price b { font-family: var(--font-display); font-size: var(--fs-25); font-weight: 700; line-height: 1; margin: 0 2px; }   /* 周りの「月額」「万円」と同じ明朝にそろえる（欧文書体だと細く浮く） */
.entry__price small { font-size: 13px; color: var(--ink-soft); }
.entry__desc { max-width: 19em; font-size: var(--fs-14); line-height: 1.8; color: var(--ink-soft); }
.entry__more { position: relative; align-self: flex-start; display: flex; align-items: flex-end; margin-top: auto; padding-top: 4px; }
.entry__more-text {
  padding-bottom: 10px;
  font-size: var(--fs-16); font-weight: 700; line-height: 1.5; letter-spacing: 0.06em; color: var(--ink);
}
/* 線と円（小ボタンと同じ形を、カードの地色の上に紺で）。
   横棒を文字の下から円まで 1 本で引き、下線を兼ねる（ホバーで流れるのも 1 本ごと） */
.entry__arrow { --btn-bg: #FBFBFA; --btn-fg: var(--navy-900); flex: none; width: 72px; height: 2px; }
.entry__arrow .btn-s__line { left: 0; right: 36px; width: auto; top: auto; bottom: 0; margin-top: 0; }
.entry__arrow .btn-s__ring {
  top: auto; bottom: -12px; margin-top: 0;   /* 円の中心を横棒に合わせる（26px の円） */
  transition: right 0.4s ease, width 0.4s ease, height 0.4s ease, bottom 0.4s ease;
}
.entry__card:hover .entry__arrow .btn-s__ring, .practice__card:hover .entry__arrow .btn-s__ring { bottom: -16px; margin-top: 0; }   /* 34px に膨らんでも中心は横棒の上 */
/* 円の中の白い線：小ボタンの切り抜き（33px だけ動く）だと長い横棒と歩調がずれるので使わず、
   同じ横棒をもう 1 本重ねて円の内側（左端〜中心）だけ白で見せる。動きは紺の横棒と完全に同じになる */
.entry__arrow .btn-s__ring::before { display: none; }
.entry__arrow .entry__arrow-cut { z-index: 3; clip-path: inset(0 0 0 calc(100% - 12px)); transition: clip-path 0.4s ease; }   /* 円の左端〜中心（26px の円で 12px） */
.entry__arrow .entry__arrow-cut::before { background: var(--btn-bg); }
.entry__card:hover .entry__arrow .entry__arrow-cut, .practice__card:hover .entry__arrow .entry__arrow-cut { clip-path: inset(0 0 0 calc(100% - 16px)); }   /* 34px の円で 16px */
@media (prefers-reduced-motion: reduce) { .entry__arrow .btn-s__ring, .entry__arrow .entry__arrow-cut { transition: none; } }
@media (max-width: 767px) {
  .entry { padding: var(--sp-6) 0 var(--sp-4); }
  /* SP もお知らせの帯より一回り細く（左右 16px ずつ内側）、中身もそれに合わせて小さく */
  .entry__grid { gap: var(--sp-2); max-width: calc(100% - 32px); }
  .entry__card { gap: 8px; padding: 20px 20px 16px; }
  .entry__card::before { width: 24px; height: 24px; }
  .entry__photo { width: 38%; }   /* 文字に写真が掛からないよう細めに */
  .entry__eyebrow { font-size: 12px; letter-spacing: 0.2em; }
  .entry__eyebrow::after { width: 48px; }
  .entry__desc { font-size: 12px; line-height: 1.7; }
  .entry__price { font-size: var(--fs-14); }
  .entry__price b { font-size: var(--fs-22); }
  .entry__more-text { padding-bottom: 8px; font-size: var(--fs-14); }
}

/* ------------------------------------------------------------------
   10. ホーム：選ばれる理由
------------------------------------------------------------------ */
/* 番号・ラベル・2行の見出しを文字側に、イラストは枠なしで区切り線の上に立たせる。
   イラストは透過画像を想定（地色に溶けるよう角丸・切り抜きはしない）。
   見出しの大きさと並べ方は本文列の幅で切り替える（左の固定メニュー分、画面幅とずれるため） */
.reasons { padding: calc(var(--sp-7) + var(--sp-4)) 0; overflow-x: clip; }   /* 大きめのイラストで横スクロールを出さない。上下のセクションとの間は広めに */
.reasons .inner { container-type: inline-size; }
.reasons .sec-head { margin-bottom: var(--sp-5); }   /* 見出しを 01 に近づける */
.reason {
  position: relative;
  display: grid; grid-template-columns: 54fr 46fr; column-gap: var(--sp-5); align-items: center;
  padding-block: var(--sp-4);   /* 01〜03 の間隔（区切り線の上下） */
  border-bottom: 1px solid rgba(var(--navy-rgb),0.14);
}
.reason:first-child { padding-top: 0; }   /* 見出しの下の余白は sec-head 側だけにする */
.reason:last-child { padding-bottom: 0; border-bottom: 0; }
.reasons .btn-s--center { margin-top: var(--sp-5); }   /* 03 のすぐ下に「弁護士紹介」を置く */
.reason--rev { grid-template-columns: 46fr 54fr; }
.reason--rev .reason__text { order: -1; }

/* 番号（白抜き）はイラストに描き込み済み。
   イラストは列より大きくし（外側へ多め・文字側へ少なめ）、はみ出した分は文字の後ろに回す（文字の配置は列幅のまま） */
/* 外側へのはみ出しは本文列の外の余白（最小 32px）から 16px 残した分まで。狭い PC で番号が画面端で切れないように */
.reasons { --reason-out: calc(max(32px, (100vw - var(--side-w) - 960px) / 2) - 16px); }
.reason__img { z-index: 0; margin-inline: max(-16%, -1 * var(--reason-out)) -4%; }
.reason--rev .reason__img { margin-inline: -4% max(-16%, -1 * var(--reason-out)); }
.reason__img img { width: 100%; height: auto; }
.reason__text { position: relative; z-index: 1; }
.reason__label {
  margin-bottom: var(--sp-1); padding-left: 12px; border-left: 3px solid var(--navy-900);
  font-family: var(--font-display); font-size: var(--fs-18); font-weight: 400; line-height: 1.4; letter-spacing: 0.08em; color: var(--ink);
}
/* 見出しは 2 行固定。いちばん長い行（13 字）が 1 行に収まる大きさを列幅ごとに選ぶ。3 項目とも同じ大きさ */
.reason__title {
  margin-bottom: var(--sp-3);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22);
  line-height: 1.5; letter-spacing: 0.04em; color: var(--ink);
  white-space: nowrap;
}
.reason__text p:not([class]) { font-size: var(--fs-16); line-height: 1.75; }
@container (min-width: 740px) { .reason__title { font-size: var(--fs-24); } }
@container (min-width: 800px) { .reason__title { font-size: var(--fs-26); } .reason__label { font-size: var(--fs-20); } }
@container (min-width: 860px) { .reason__title { font-size: var(--fs-28); } }

/* 狭い本文列（タブレット縦・SP）：文字 → イラストの順に縦積み。イラストは区切り線の上に立たせる */
@container (max-width: 679px) {
  .reason, .reason--rev { grid-template-columns: 1fr; align-items: end; padding-block: var(--sp-5) 0; }
  .reason__img, .reason--rev .reason__img { margin-inline: 0; }
  .reason:first-child { padding-top: 0; }
  .reason__text, .reason--rev .reason__text { order: -1; padding-bottom: var(--sp-4); }
  .reason__title { font-size: var(--fs-26); }
}
@container (max-width: 345px) { .reason__title { font-size: var(--fs-24); } }
@container (max-width: 319px) { .reason__title { font-size: var(--fs-22); } }
@media (max-width: 640px) {
  .reason__img { width: min(100%, 440px); margin-inline: auto; }
}

/* ------------------------------------------------------------------
   11. ホーム：取り扱い実務
------------------------------------------------------------------ */
.practice { padding: calc(var(--sp-7) + var(--sp-3)) 0 calc(var(--sp-7) + var(--sp-4)); }   /* 上は選ばれる理由との間を少し広めに */
/* 左：紺の面。固定メニューから離すため本文列の左端から 24px だけ外へ塗り延ばし、文字は面の左端に寄せる。
   面の右側はカード列の下まで 160px 塗り延ばす（カードの上下に紺がのぞく）。カード列は本文列の右端より 36px 外まで出す */
.practice__wrap { display: grid; grid-template-columns: 15fr 17fr; margin-bottom: var(--sp-4); }
.practice .btn-s--center { margin-top: 0; }   /* ボタンはカード（紺の面）のすぐ下に */
.practice__head {
  padding: var(--sp-6) var(--sp-5) var(--sp-6) var(--sp-3); color: #fff;
  border-image: linear-gradient(var(--navy-900) 0 0) fill 0 // 0 160px 0 24px;
}
.practice__head .sec-head { margin-bottom: 0; }
.practice__head .eyebrow { color: #8FB4E3; }
.practice__head .sec-title { color: #fff; font-size: var(--fs-28); word-break: keep-all; }
.practice__head .sec-lead { color: rgba(255,255,255,0.85); }
/* 先方指定の改行位置（PC・SP 共通）。紺の面が広い PC はそれ以外で改行しない。
   狭い画面では入りきらない行だけ文節で釣り合わせて折り返す（1 行に固定すると面ごと横にはみ出すため） */
.practice__lead > span { display: block; text-wrap: balance; word-break: auto-phrase; }
@media (min-width: 1180px) { .practice__lead > span { white-space: nowrap; } }
.practice__lead .nowrap { white-space: nowrap; }   /* 語の途中で折り返させない */
.practice__list { position: relative; display: grid; gap: var(--sp-3); align-content: center; margin: var(--sp-5) -36px var(--sp-5) 0; }

/* カード：入口カードと同じ作り（紺の細枠・左上の三角・右に斜めに溶ける写真） */
.practice__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; row-gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  background: #FBFBFA; border: 1px solid var(--navy-900); border-radius: 2px;
  box-shadow: 0 10px 24px rgba(var(--navy-rgb),0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.practice__card::before { content: ""; position: absolute; top: 0; left: 0; z-index: 1; width: 32px; height: 32px; background: var(--navy-900); clip-path: polygon(0 0, 100% 0, 0 100%); }
.practice__card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(var(--navy-rgb),0.12); }
.practice__photo {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -1; width: 46%;
  /* 写真が入るまでは淡い青の地に斜めの細線（下層ページの写真帯と同じ仮の枠） */
  background: var(--practice-photo, repeating-linear-gradient(135deg, transparent 0 22px, rgba(29,78,137,0.07) 22px 23px) #DCE3EC) center / cover no-repeat;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);   /* 入口カードと同じ切り方・溶かし方 */
  -webkit-mask-image: linear-gradient(to right, transparent 5%, #000 55%); mask-image: linear-gradient(to right, transparent 5%, #000 55%);
}
/* 写真に斜めの光の帯を 1 本（入口カードと同じ） */
.practice__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.45) 38% 52%, transparent 52%);
}
.practice__cat { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display); font-size: var(--fs-15); letter-spacing: 0.24em; color: var(--ink); }
/* 分野名の横の線を、入口カードと同じ線と円（.entry__arrow）にする。円の中心は線の上 */
.practice__cat .entry__arrow { position: relative; width: 88px; }
.practice__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22); line-height: 1.5; letter-spacing: 0.04em; color: var(--ink); }
.practice__text { max-width: 22em; font-size: var(--fs-15); line-height: 1.8; color: var(--ink-soft); }

/* PC：縦に長くならないよう、カードと余白を詰め、本文は一回り小さく・行を長めに */
@media (min-width: 890px) {
  .practice__head { padding-block: var(--sp-5); }
  .practice__list { gap: var(--sp-2); margin-block: var(--sp-4); }
  .practice__card { row-gap: 4px; padding: var(--sp-3) var(--sp-4) var(--sp-2); }
  .practice__name { font-size: var(--fs-21); }
  .practice__photo { width: 44%; }   /* 入口カードと同じ幅 */
  .practice__text { max-width: 24em; font-size: var(--fs-14); line-height: 1.7; }
}
/* 狭い PC：右の余白が少ないのでカードは本文列の右端まで。写真を細くして本文と重ならないようにする */
@media (min-width: 890px) and (max-width: 1169px) {
  .practice__list { margin-right: 0; }
  .practice__photo { width: 34%; }
  .practice__text { max-width: 17em; }
}
@media (max-width: 889px) {
  .practice { padding-top: var(--sp-3); }
  .practice__wrap { grid-template-columns: 1fr; }
  .practice__head .sec-lead { margin-top: var(--sp-2); font-size: 13px; line-height: 1.8; }
  .practice__head { padding: var(--sp-5) 0 80px; border-image: linear-gradient(var(--navy-900) 0 0) fill 0 // 0 100vw; }
  .practice__list { gap: 12px; margin: -48px 0 0; }
  .practice__card { row-gap: 4px; padding: 20px var(--sp-3) var(--sp-2); }
  .practice__photo { width: 42%; }
  .practice__name { font-size: var(--fs-19); }
  .practice__text { max-width: 17em; font-size: 13px; line-height: 1.7; }
}

/* 取扱業務一覧でも使うラベル */
.practice__label {
  display: inline-block; margin-bottom: var(--sp-2); padding: 2px var(--sp-2);
  background: var(--navy-900); color: #fff;
  font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.16em; line-height: 1.6;
}

/* ------------------------------------------------------------------
   13. ホーム・一覧：お知らせ
------------------------------------------------------------------ */
/* ホーム：横長の細い帯。左に見出し、中央に最新3件（1行ずつ）、右に一覧へ */
.news.news--strip { padding: 0 0 var(--sp-5); }
.news-strip {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5); background: var(--white); border-radius: var(--radius-leaf);
}
.news-strip__head { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--sp-3) var(--sp-3) 0; border-right: 1px solid var(--line); }   /* 下の余白で「NEWS／お知らせ」を中央より少し上に（右下の「一覧を見る」とも離す） */
.news-strip__head .eyebrow { font-size: 13px; letter-spacing: 0.2em; line-height: 1.2; }
.news-strip__title { margin-top: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); line-height: 1.2; letter-spacing: 0.1em; }
.news-strip__list { min-width: 0; }   /* 長いタイトルは省略記号で切り、右の「一覧を見る」を押し出さない */
.news-strip__list .news__item a { min-height: 0; padding: 6px 0; border-bottom: 0; gap: var(--sp-2); }
.news-strip__list .news__cat { margin-right: var(--sp-1); }
.news-strip__list .news__title { font-size: var(--fs-15); }
/* 一覧を見る：紺の塗りの円に白い「＞」を先頭に置く */
.news-strip__more { position: absolute; right: var(--sp-3); bottom: -4px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px;   /* 見出しの枠の右下（枠の高さは変えない） */ white-space: nowrap; font-size: 12px; letter-spacing: 0.08em; }
.news-strip__icon { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--navy-900); transition: transform 0.3s var(--ease); }
.news-strip__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -3px 0 0 -4px;
  border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: rotate(45deg);
}
.news-strip__more:hover { color: var(--blue-700); }
.news-strip__more:hover .news-strip__icon { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .news-strip__icon { transition: none; } }
@media (max-width: 999px) {
  .news-strip { grid-template-columns: 1fr; gap: var(--sp-1); padding: var(--sp-3); }
  /* 見出し2行を左に、一覧を見るを右下に */
  .news-strip__head { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 0 0 var(--sp-1); border-right: 0; border-bottom: 1px solid var(--line); }
  .news-strip__head .eyebrow, .news-strip__title { grid-column: 1; }
  .news-strip__more { position: static; grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
@media (max-width: 767px) {
  .news.news--strip { padding-bottom: var(--sp-4); }
  .news-strip__list .news__item:nth-child(n+3) { display: none; }   /* SP は最新 2 件まで */
  .news-strip__list .news__item a { flex-wrap: wrap; gap: 4px var(--sp-2); }
  .news-strip__list .news__meta { width: auto; }
  .news-strip__list .news__title { flex-basis: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* SP はタイトル 1 行、はみ出しは … */
  .news-strip__title { font-size: var(--fs-18); }
}

.news { padding: var(--sp-7) 0; }
.news__box { padding: var(--sp-7) var(--sp-8) var(--sp-6); background: var(--white); border-radius: var(--radius-leaf); }
.news__item a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  min-height: var(--tap);                      /* DADS：44px 確保 */
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--line);
}
.news__meta { display: flex; align-items: center; flex: 0 0 auto; }
.news__date {
  width: 112px; font-family: var(--font-en); font-size: var(--fs-17); font-weight: 600;
  line-height: 1.7; letter-spacing: 0.02em; color: var(--blue-700);
}
.news__cat {
  min-width: 92px; padding: 2px var(--sp-1); margin-right: var(--sp-4);
  background: var(--navy-900); color: #fff;
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em; line-height: 1.8; text-align: center;
}
.news__title { flex: 1 1 auto; font-size: var(--fs-16); line-height: 1.7; transition: color 0.3s ease; }
.news__item a:hover .news__title { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
/* 各行の右端：ホームの「一覧を見る」と同じ紺の塗りの円に ＞ */
.news__go { margin-left: auto; width: 24px; height: 24px; }
.news__go::after { width: 7px; height: 7px; margin: -4px 0 0 -5px; border-width: 2px; }
.news__item a:hover .news__go { transform: translateX(3px); }
.news__more { margin-top: var(--sp-3); text-align: right; }
@media (max-width: 999px) { .news__box { padding: var(--sp-5) var(--sp-3) var(--sp-4); } }
@media (max-width: 889px) {
  .news__item a { flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
  .news__meta { width: 100%; }
  .news__title { flex-basis: calc(100% - 80px); }
}
@media (max-width: 640px) {
  .news__box { padding: var(--sp-4) var(--sp-3) var(--sp-3); }
  .news__date { width: 96px; font-size: var(--fs-16); }
  .news__cat { min-width: 84px; margin-right: 0; font-size: 12px; }
  .news__title { flex-basis: 100%; }
  .news-list .news__title { flex-basis: calc(100% - 40px); }   /* 右端の ＞ の円を同じ行に残す */
}

/* ------------------------------------------------------------------
   14. ホーム：アクセス・締め
------------------------------------------------------------------ */
.access { padding: var(--sp-7) 0 0; }
.access__addr { margin-top: var(--sp-2); font-size: var(--fs-16); line-height: 1.7; letter-spacing: 0.02em; }
.access__map {
  height: 320px; margin: 0 0 var(--sp-5); overflow: hidden;   /* 地図の角は直角 */
  display: grid; place-items: center;
  background-color: #DFE6EF;
  background-image: linear-gradient(rgba(29,78,137,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,137,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--blue-700); font-size: var(--fs-14); line-height: 1.5; letter-spacing: 0.02em;
}
.access__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.access__routes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-16); }
.access__routes li { position: relative; padding-left: 0.9em; line-height: 1.7; }
.access__routes li::before { content: ""; position: absolute; left: 0; top: calc(0.85em - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--blue-500); }
@media (max-width: 640px) {
  .access__map { height: 240px; }
  .access__routes { grid-template-columns: 1fr; }
}

/* ホーム：左に住所・連絡先・最寄駅、右に地図の 2 列 */
.access { padding-bottom: var(--sp-8); }
.access__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-6); align-items: stretch; }
.access__info .sec-head { margin-bottom: var(--sp-2); }
.access__grid .access__map { height: auto; min-height: 380px; margin: 0; }
.access__gmap { width: 100%; height: 100%; }
/* マーカーを押すと出る吹き出しの中身。枠と閉じるボタンは Google 側のまま */
.gmap-info { padding: 2px 4px 4px; color: var(--ink); font-family: var(--font-body); text-align: left; }
.gmap-info__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-15); line-height: 1.5; letter-spacing: 0.06em; }
.gmap-info__addr { margin-top: 2px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.gmap-info__route {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 13px; font-weight: 500; color: var(--navy-deep);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(var(--navy-deep-rgb),0.35);
}
.gmap-info__route::after { content: "↗"; font-size: 12px; text-decoration: none; }
.gmap-info__route:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.access__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); line-height: 1.5; letter-spacing: 0.08em; color: var(--ink); }
.access__info .access__addr { margin-top: 0; font-size: var(--fs-15); }
/* リンクと分かるよう下線を付ける */
.access__addr a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(var(--navy-rgb),0.35); }
.access__addr a:hover { color: var(--blue-700); text-decoration-color: currentColor; }
.access__info .access__routes { grid-template-columns: 1fr; gap: 6px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid rgba(var(--navy-rgb),0.14); font-size: var(--fs-14); }
@media (max-width: 1169px) {
  .access__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .access__grid .access__map { min-height: 0; height: 320px; }
}
@media (max-width: 640px) {
  .access__grid .access__map { height: 260px; }
  .access__name { font-size: var(--fs-18); }
  .access__info .access__addr { font-size: var(--fs-14); }
  .access__info .access__routes { font-size: 13px; }
}

.closing { padding: 0 0 var(--sp-9); }

/* 締めのCTA（全ページ共通）：薄い帯 1 本に ロゴ（縦積み）｜電話・受付時間｜フォームへの細枠の箱 */
.closing--band { text-align: left; }
.cta-band {
  display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: center; gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6); background: #E6EBF1;
  white-space: nowrap;   /* 3 つのかたまりの中では改行させない */
}
.cta-band__brand { display: grid; justify-items: center; gap: 6px; }
.cta-band__symbol { width: auto; height: 56px; }
.cta-band__wordmark { width: 180px; height: auto; margin-top: 4px; }
.cta-band__en { font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; color: var(--navy-900); }
.cta-band__tel { display: grid; justify-items: start; gap: 6px; }
.cta-band__lead { font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.1em; color: var(--navy-900); }
.cta-band__hours { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-17); letter-spacing: 0.06em; color: var(--navy-900); }
.cta-band__tag { padding: 2px 12px; background: var(--navy-900); color: #fff; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; line-height: 1.6; }
.cta-band__note { margin-top: -2px; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }
.cta-band__num {
  margin-top: 2px; font-family: var(--font-display); font-size: var(--fs-32); line-height: 1.2; letter-spacing: 0.1em; color: var(--navy-900);
}
.cta-band__num:hover { color: var(--blue-700); }
.cta-band__box {
  display: block; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--navy-900);
  font-family: var(--font-display); font-size: var(--fs-17); line-height: 1.7; letter-spacing: 0.06em; text-align: center; color: var(--navy-900);
  transition: background 0.3s ease, color 0.3s ease;
}
.cta-band__box b { font-size: var(--fs-20); font-weight: 700; }
.cta-band__box small { font-size: 13px; }
.cta-band__box:hover { background: var(--navy-900); color: #fff; }
@media (max-width: 1169px) {
  .cta-band { grid-template-columns: auto auto; justify-content: center; gap: var(--sp-4) var(--sp-6); padding: var(--sp-5); }
  .cta-band__brand { display: none; }
}
@media (max-width: 767px) {
  .cta-band { grid-template-columns: 1fr; justify-items: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-3); white-space: normal; }
  .cta-band__brand { display: grid; }
  .cta-band__symbol { height: 44px; }
  .cta-band__wordmark { width: 160px; }
  .cta-band__tel { justify-items: center; }
  .cta-band__hours { font-size: var(--fs-15); }
  .cta-band__num { font-size: var(--fs-30); letter-spacing: 0.08em; }
  .cta-band__box { width: 100%; font-size: var(--fs-15); }
  .cta-band__box b { font-size: var(--fs-18); }
  .cta-band__box small { display: block; font-size: 12px; }
}

/* ------------------------------------------------------------------
   15. フッター
------------------------------------------------------------------ */
/* 締めのCTAは旧サイトの紺。中の紺もまとめて切り替えるため変数ごと上書きする */
.closing { --navy-900: var(--navy-deep); --navy-rgb: var(--navy-deep-rgb); }
/* フッターは本文と同じ地色。本文との境は細い線で分ける */
.site-footer { position: relative; padding: var(--sp-5) 0 0; background: var(--bg); color: var(--ink); border-top: 1px solid rgba(0,0,0,0.12); }
/* PC は左メニュー（紺の列）がフッターまで通るので、フッターの中身はその右側に収める */
@media (min-width: 768px) { .site-footer { padding-left: var(--side-w); } }
.site-footer__inner {
  width: 960px; margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5);
}
.site-footer__office { display: flex; align-items: center; gap: var(--sp-4); }
.site-footer__brand .brand { --brand-symbol-h: 32px; --brand-word-w: 168px; --brand-gap: 10px; }
.site-footer__addr { padding-left: var(--sp-4); border-left: 1px solid rgba(0,0,0,0.12); font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.site-footer__addr a { font-family: var(--font-en); font-size: var(--fs-15); letter-spacing: 0.04em; color: var(--ink); }
.site-footer__addr a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 住所は Google マップへのリンク（アクセス欄と同じく薄い下線で押せると分かるように） */
.site-footer__addr a.site-footer__map { font-family: inherit; font-size: inherit; letter-spacing: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0,0,0,0.25); }
.site-footer__addr a.site-footer__map:hover { color: var(--ink); text-decoration-color: currentColor; }
.site-footer__hours { margin-left: var(--sp-2); }
/* メニューは 2 列の小さな文字。下線は付けず、ホバーで下線 */
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--sp-3); }
.site-footer__nav a { display: inline-block; padding: 3px 0; font-size: 13px; line-height: 1.5; letter-spacing: 0.04em; color: var(--ink-soft); transition: color 0.3s; }
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; width: 960px; margin: var(--sp-4) auto 0; padding: 12px 0 var(--sp-2); border-top: 1px solid rgba(0,0,0,0.12); }
.site-footer__copy { font-family: var(--font-en); font-size: 12px; line-height: 1.5; letter-spacing: 0.08em; color: var(--ink-soft); }
.site-footer__copy small { font-size: inherit; }

.pagetop {
  position: absolute; right: var(--sp-4); bottom: var(--sp-3);
  width: var(--tap); height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.pagetop__line { width: 1px; height: var(--sp-4); background: var(--ink); transition: transform 0.4s var(--ease); }
.pagetop__ring { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--ink); }
.pagetop:hover .pagetop__line { transform: translateY(-8px); }
@media (max-width: 1127px) { .site-footer__inner, .site-footer__bottom { width: calc(100% - var(--sp-7)); } }
@media (max-width: 999px) {
  .site-footer__office { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .site-footer__addr { padding-left: 0; border-left: 0; }
}
@media (max-width: 799px) {
  .site-footer { padding-top: var(--sp-5); }
  .site-footer__inner, .site-footer__bottom { width: calc(100% - var(--sp-5)); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .site-footer__hours { display: block; margin-left: 0; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); }
  .site-footer__nav a { padding: 8px 0; }
  .site-footer__bottom { margin-top: var(--sp-3); }
  .pagetop { display: none; }   /* SP はページトップを出さない */
}


/* ------------------------------------------------------------------
   16. モーション抑制
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .img-reveal img { opacity: 1; }
  .img-reveal::before { display: none; }
}

/* ==================================================================
   下層ページ
   ================================================================== */

/* ------------------------------------------------------------------
   17. タイトル帯
------------------------------------------------------------------ */
.mv-sub { position: relative; }
/* 写真帯：写真が入るまでは淡い青の地に斜めの細線（仮）。
   高さではなく縦横比で固定し、画面の幅が変わっても写真の構図が変わらないようにする（2026-11-17 全下層ページで統一）。
   写真は PC 2172×724（3:1）、SP 780×400 で用意する。SP 用は front matter の mvImageSp */
.mv-sub__photo {
  aspect-ratio: 3 / 1; overflow: hidden;
  background: #DCE3EC repeating-linear-gradient(135deg, transparent 0 22px, rgba(29,78,137,0.06) 22px 23px);
}
.mv-sub__photo picture { display: contents; }   /* SP 用の写真を出し分けるときの picture は箱を作らせない */
.mv-sub__photo img { width: 100%; height: 100%; object-fit: cover; }
/* 個人ページ：参考サイトの弁護士ページと同じ作り（写真帯 550px・上端基準で切り取り、名前は帯の下に右寄せ） */
.mv-sub--person .mv-sub__photo { height: 550px; aspect-ratio: auto; }   /* 個人ページだけは高さ固定のまま */
.mv-sub--person .mv-sub__photo img { object-position: center top !important; }
/* 社労士の個人ページは米川氏と左右反転：名前は左寄せ（PC のみ。SP は中央揃えのまま） */
.mv-sub--person.mv-sub--rev .mv-sub__head { justify-content: start; justify-items: start; text-align: left; }
.mv-sub--person.mv-sub--rev .mv-sub__name { margin-right: 0; margin-left: -9px; }
/* 名前の下はローマ字（小文字）。欧文ラベル・肩書は出さない */
.mv-sub--person .mv-sub__en { margin-top: 2px; font-family: var(--font-en); font-style: italic; font-weight: 400; font-size: var(--fs-17); letter-spacing: 0.3em; text-transform: none; color: var(--navy-900); }
/* 写真帯なし（お知らせ記事）：ページ名だけを上に置く */
.mv-sub--plain .mv-sub__head { margin-top: var(--sp-7); }
.mv-sub--plain + .main-body > .sec:first-child { padding-top: var(--sp-5); }
/* 弁護士紹介の冒頭文：中央揃え。PC は 2 行に収め、狭い画面では 2 行目を折り返す */
.member-lead { max-width: none; text-align: center; }
@media (max-width: 640px) { .member-lead { margin-top: var(--sp-2); font-size: 13px; line-height: 1.8; } }
/* 弁護士紹介：先頭の見出しの欧文を外したぶん、ページ名との間を詰める */
.mv-sub--low + .main-body > #member { padding-top: var(--sp-5); }
/* ページ名：本文列の右端にそろえ、写真には重ねずにすぐ下へ置く（2026-09-29 内部レビューで重なりを解消） */
.mv-sub__head {
  position: relative; width: min(960px, 100% - var(--sp-7)); margin: var(--sp-2) auto 0;
  /* かたまり（ページ名・一行説明）は右寄せ。中身はページ名を軸に中央そろえ（列の幅は長い方に合わせる） */
  display: grid; justify-content: end; justify-items: center; text-align: center;
}
.mv-sub__title {
  font-family: var(--font-display); font-weight: 400; font-size: 44px;
  line-height: 1.3; letter-spacing: 0.2em; padding-left: 0.2em; color: var(--navy-900);   /* 字間の片寄りを左の余白で打ち消して中央をそろえる */
}
/* 右寄せのページ名（和文・欧文・一行説明のかたまり）は、本文列の右端より少し右へ出す（PC のみ。SP は余白が狭いのでそのまま） */
@media (min-width: 768px) { .mv-sub:not(.mv-sub--rev) .mv-sub__head { left: var(--sp-5); } }
/* 和文タイトルと欧文は中央そろえ（一行説明とも中心をそろえるので、左右にはずらさない） */
.mv-sub__name { display: flex; flex-direction: column; align-items: center; }
.mv-sub__en { margin-top: 4px; font-family: var(--font-en); font-weight: 600; font-size: var(--fs-18); line-height: 1.3; letter-spacing: 0.28em; padding-left: 0.28em; text-transform: uppercase; color: var(--blue-500); }   /* 各セクションの欧文（REASON など）と同じ書体・色 */
.mv-sub__lead { margin-top: var(--sp-1); font-size: var(--fs-14); line-height: 1.7; letter-spacing: 0.04em; color: var(--ink-soft); }
@media (max-width: 767px) {
  .mv-sub__photo { aspect-ratio: 780 / 400; }
  .mv-sub--person .mv-sub__photo { height: 210px; }   /* 参考サイトの SP と同じ */
  /* SP は全下層ページでページ名（和文・欧文・一行説明）を画面の中央にそろえる（PC は右寄せ）（2026-11-17） */
  .mv-sub .mv-sub__head, .mv-sub.mv-sub--rev .mv-sub__head { justify-content: center; justify-items: center; text-align: center; }
  .mv-sub--person .mv-sub__name, .mv-sub--person.mv-sub--rev .mv-sub__name { margin: 0; }
  .mv-sub__head { width: calc(100% - var(--sp-5)); margin-top: var(--sp-2); }
  .mv-sub--plain .mv-sub__head { margin-top: var(--sp-5); }
  .mv-sub--person .mv-sub__en { font-size: 13px; letter-spacing: 0.24em; }
  .mv-sub__title { font-size: var(--fs-28); letter-spacing: 0.14em; padding-left: 0.14em; }
  .mv-sub__en { font-size: var(--fs-15); }
  .mv-sub__lead { margin-top: 4px; font-size: 13px; }
}

/* ------------------------------------------------------------------
   18. 本文セクション・見出し
------------------------------------------------------------------ */
.sec { padding: var(--sp-8) 0; }
.sec--tight { padding: var(--sp-5) 0; }
.sec + .sec { padding-top: 0; }
.page-fees .sec { padding-bottom: var(--sp-10); }   /* 費用・顧問料ページだけ、セクションの間を広く（80→120px） */
@media (max-width: 767px) { .page-fees .sec { padding-bottom: 88px; } }   /* SP は 64→88px */
.sec-head--left { text-align: left; margin-bottom: var(--sp-5); }
.sec-head--left .sec-lead { margin-left: 0; }
.h3-line {
  margin-bottom: 12px; padding-left: var(--sp-2); border-left: 3px solid var(--blue-700);   /* 見出しと本文の間は詰める（2026-11-17 24px→12px） */
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22);
  line-height: 1.5; letter-spacing: 0.06em; color: var(--ink);
}
.h4 { margin-bottom: var(--sp-1); font-size: var(--fs-17); font-weight: 700; line-height: 1.7; letter-spacing: 0.02em; color: var(--ink); }
.prose > p + p, .prose > p + .h3-line, .prose > * + .h4 { margin-top: var(--sp-3); }
.prose > * + .h3-line { margin-top: var(--sp-6); }
.prose > p + .table-wrap { margin-top: var(--sp-2); }   /* 前置きの文と表の間 */
.prose > .table-wrap + .note { margin-top: var(--sp-1); }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 3px; }
.prose ul { margin: var(--sp-2) 0; }
.prose ul li { position: relative; padding-left: 0.9em; line-height: 1.7; }   /* 行頭は小さな「・」（サイト共通） */
.prose ul li + li { margin-top: var(--sp-1); }
/* SP は各項目を必ず 1 行で（費用・顧問料「顧問料に含まれる業務」）。字間を詰め、最長の項目（25 字）が収まる範囲でなるべく大きく */
@media (max-width: 640px) {
  .prose ul.list-1line li { white-space: nowrap; letter-spacing: 0; font-size: min(15px, calc((100vw - 64px) / 24.7)); }
  .box.box--wide-sp { padding-inline: var(--sp-2); }   /* この箱だけ SP の左右余白を 16px に詰めて本文の幅を稼ぐ */
}
.prose ul li::before { content: ""; position: absolute; left: 0; top: calc(0.85em - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--blue-500); }
.note { font-size: var(--fs-14); line-height: 1.7; color: var(--ink-soft); }
.note--lines > span { display: block; text-wrap: balance; word-break: auto-phrase; }   /* 1 文ごとに改行。入りきらない文は文節で釣り合わせて折り返す */
@media (max-width: 640px) { .note--lines { font-size: 12px; } }   /* SP はひと回り小さく */
/* 改行位置を指定した注記（費用・顧問料の労務顧問）：指定の位置以外では改行せず、箱の幅に入りきらないときは文字を縮める。
   箱を container にして内側の幅（100cqi）に合わせる。縮めても約 11.5px を下回る狭い箱（タブレットの 2 列など）では、14px のまま自然に折り返す */
.box:has(> .note--fit) { container-type: inline-size; }
@container (min-width: 290px) { .note--fit { white-space: nowrap; font-size: min(14px, 100cqi / 25.4); } }      /* 最長の行 25.2em */
@container (min-width: 225px) { .note--fit-s { white-space: nowrap; font-size: min(14px, 100cqi / 19.6); } }   /* 最長の行 約 19.4em */
.lead-quote {
  margin: var(--sp-5) 0 0; padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--navy-900); background: var(--white);
  font-family: var(--font-display); font-size: var(--fs-17); line-height: 1.75; letter-spacing: 0.04em; color: var(--ink);
}
@media (max-width: 767px) {
  .sec { padding: var(--sp-7) 0; }
  .h3-line { font-size: var(--fs-20); }
  .lead-quote { padding: var(--sp-3); font-size: var(--fs-16); }
}
/* 改行位置を指定した引用（費用・顧問料の月額プラン）：1180px 未満は 4 行の改行を使う。
   SP は指定の行で必ず収まるよう、枠を白い箱の左右いっぱいに広げ、文字を画面幅に合わせて縮める（最長 21 字） */
@media (min-width: 1180px) { .br-narrow { display: none; } }
@media (min-width: 1350px) { .br-1350 { display: none; } }   /* 費用・顧問料「事業規模や〜」：1 行目が入りきらない幅では「なく、」の後でも改行 */
@media (max-width: 640px) {
  .lead-quote.lead-quote--fit { margin-inline: calc(var(--sp-2) * -1); padding-inline: var(--sp-2); white-space: nowrap; font-size: min(16px, calc((100vw - 67px) / 22.2)); }   /* 箱（.box--wide-sp、左右 16px）の端まで広げる */
}

/* 白カード */
.box { padding: var(--sp-6) var(--sp-7); background: var(--white); border-radius: var(--radius-leaf); }
.box + .box { margin-top: var(--sp-3); }
@media (max-width: 999px) { .box { padding: var(--sp-5) var(--sp-4); } }
@media (max-width: 640px) { .box { padding: var(--sp-4) var(--sp-3); } }

/* 表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-16); line-height: 1.7; }
.table th, .table td { padding: var(--sp-2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--navy-900); color: #fff; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.table tbody th { width: 32%; background: var(--blue-100); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table--num td:last-child, .table--num td:nth-child(2) { font-family: var(--font-en); font-size: var(--fs-17); letter-spacing: 0.02em; }
/* 行を詰めた料金表（費用・顧問料の労務顧問・着手金／報酬金）：行の高さを抑え、罫線の代わりに一行おきの淡い地色で行を追わせる */
.table.table--compact th, .table.table--compact td { padding: 6px var(--sp-2); border-bottom: 0; line-height: 1.6; }
.table.table--compact thead th { padding-block: 10px; }
.table--compact tbody tr:nth-child(even) td { background: var(--bg); }
.table--compact.table--num th:last-child, .table--compact.table--num td:last-child { text-align: right; }   /* 金額だけの列は右揃え */
.table--compact tbody th { width: auto; background: transparent; font-weight: 500; }   /* 行の見出し（金額帯）は地色なし。一行おきの地色に合わせる */
.table--compact tbody tr:nth-child(even) th { background: var(--bg); }
/* SP：3 列では狭いので、金額帯ごとに「着手金」「報酬金」を縦に並べる（着手金・報酬金の算定基準） */
@media (max-width: 640px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr { display: block; }
  .table--stack tr { padding: var(--sp-1) 0; }
  .table--stack tbody th, .table--stack td { display: grid; grid-template-columns: 4em 1fr; gap: var(--sp-1); }
  .table.table--stack tbody th { display: block; width: auto; padding-bottom: 2px; white-space: normal; font-weight: 700; color: var(--navy-900); }
  .table.table--stack td { padding-block: 2px; }
  .table--stack td::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
  .table--stack tbody tr:nth-child(even) { background: var(--bg); }
  .table--stack tbody tr:nth-child(even) th, .table--stack tbody tr:nth-child(even) td { background: transparent; }
}
.table strong { color: var(--ink); }
.table a {
  display: inline-flex; align-items: center; min-height: var(--tap);   /* DADS：44px */
  color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .table { font-size: var(--fs-14); }
  .table th, .table td { padding: var(--sp-2) var(--sp-1); }
  .table tbody th { width: 36%; white-space: normal; }
}
/* 事務所概要：意味の切れ目（.nb）の途中では折り返さない */
.table--profile .nb { display: inline-block; }
/* SP は項目名の列を文字幅ぶんまで詰め、本文を少し小さくして各行を 2 行以内に収める（取扱分野を除く） */
@media (max-width: 640px) {
  .box:has(> .table-wrap > .table--profile) { padding-inline: var(--sp-2); }   /* 表の箱だけ左右の余白を詰めて本文の幅を稼ぐ */
  .table.table--profile { font-size: 13px; line-height: 1.65; }   /* SP の文字サイズ一括指定（.table 15px）より強くする */
  .table--profile tbody th { width: 1%; padding-inline: 10px; white-space: nowrap; }   /* 列幅は一番長い「対応エリア」ぶんだけ */
  .table--profile td { padding-inline: 10px 0; }
}
@media (max-width: 374px) {
  .table.table--profile { font-size: 12.5px; letter-spacing: 0; }   /* 360px 幅でも名称の 2 行目が 1 行に収まるように */
}

/* 数値の見せ場 */
.price-hero {
  display: flex; align-items: baseline; gap: var(--sp-1); flex-wrap: wrap;
  font-family: var(--font-display); font-size: var(--fs-22); line-height: 1.5; letter-spacing: 0.06em; color: var(--ink);
}
.price-hero .num { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1.4; }   /* ホームの入口カードと同じく、周りと同じ明朝の太字 */
.price-hero .unit { font-size: var(--fs-22); }
.price-hero .tax { font-size: var(--fs-14); color: var(--ink-soft); }

/* カラム */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
/* 間隔は gap に任せる（縦積み用の .box + .box の余白が付くと、2 枚目だけ下にずれて高さがそろわない） */
.cols-2 > .box + .box, .cols-3 > .box + .box { margin-top: 0; }
/* 詰めたカード（費用・顧問料「FOR CLIENTS」）：余白・見出し・本文をひと回り小さく */
.box.box--compact { padding: var(--sp-4) var(--sp-5); }
.box--compact .h3-line { font-size: var(--fs-19); letter-spacing: 0.04em; }
.box--compact p { font-size: var(--fs-15); line-height: 1.75; }
@media (max-width: 640px) {
  .box.box--compact { padding: var(--sp-3) var(--sp-2); }
  .box--compact .h3-line { font-size: var(--fs-17); }
  .box--compact p { font-size: var(--fs-14); }
}
@media (max-width: 889px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   19. 事務所紹介
------------------------------------------------------------------ */
.strength { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-7); align-items: start; }
.strength + .strength { margin-top: var(--sp-8); }
.strength__head { grid-column: 1 / -1; }
.strength__num { font-family: var(--font-en); font-size: var(--fs-16); font-weight: 600; line-height: 1.5; letter-spacing: 0.28em; color: var(--blue-500); }
.strength__title {
  margin-top: var(--sp-1); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--navy-900);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-28);
  line-height: 1.5; letter-spacing: 0.06em; color: var(--ink);
}
.strength__lead { grid-column: 1 / -1; }
.strength__item .h4 { padding-left: var(--sp-2); border-left: 2px solid var(--blue-500); }
.strength__item p:not(.h4) { font-size: var(--fs-16); line-height: 1.7; }
@media (max-width: 889px) {
  .strength { grid-template-columns: 1fr; gap: var(--sp-3); }
  .strength__title { font-size: var(--fs-22); }
}

@media (max-width: 767px) {
}

.history { border-top: 1px solid var(--line); }
.history li { display: flex; gap: var(--sp-4); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-16); line-height: 1.7; }
.history li .year { flex: 0 0 112px; font-family: var(--font-en); font-size: var(--fs-17); font-weight: 600; letter-spacing: 0.02em; color: var(--blue-700); }
@media (max-width: 640px) { .history li { gap: var(--sp-2); } .history li .year { flex-basis: 80px; } }

.access-block { margin-top: var(--sp-7); }   /* 中身はホームと共通（partials/access.njk） */

/* ------------------------------------------------------------------
   20. 取り扱い実務・解決事例
------------------------------------------------------------------ */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-7); align-items: start; }
.area + .area { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--line); }
.area__head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-3); }
.area__label {
  flex: 0 0 auto; padding: var(--sp-1) var(--sp-2); background: var(--navy-900); color: #fff;
  font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.16em; line-height: 1.5;
}
.area__title {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-26);
  line-height: 1.5; letter-spacing: 0.06em; color: var(--ink);
}
.area__lead { grid-column: 1 / -1; }
.area__item .h4 { padding-left: var(--sp-2); border-left: 2px solid var(--blue-500); }
.area__item p:not(.h4) { font-size: var(--fs-16); line-height: 1.7; }
.area__note {
  grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
  padding: var(--sp-2) var(--sp-3); background: var(--white); border-left: 3px solid var(--blue-700);
  font-size: var(--fs-16); line-height: 1.7;
}
@media (max-width: 889px) {
  .area { grid-template-columns: 1fr; gap: var(--sp-3); }
  .area + .area { margin-top: var(--sp-7); padding-top: var(--sp-7); }
  .area__head { flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
  .area__title { font-size: var(--fs-22); }
}

/* ページ内ジャンプ：チップも 44px 確保 */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1); }   /* ボタン一式は中央揃え */
.jump a {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: var(--tap); padding: var(--sp-1) var(--sp-2);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-14); font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
  transition: border-color 0.3s, color 0.3s;
}
/* アイコンは「事例を読む」と同じ紺の円＋白い＞（.news-strip__icon）を文字の前に置く */
.jump a:hover .news-strip__icon { transform: translateX(3px); }
.jump a:hover { border-color: var(--blue-500); color: var(--blue-700); text-decoration-thickness: 3px; }

.case { padding: var(--sp-5) var(--sp-6); background: var(--white); border-radius: var(--radius-leaf); border-top: 3px solid var(--blue-700); }
.case + .case { margin-top: var(--sp-3); }
.case__meta { display: flex; gap: var(--sp-1); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.case__tag { padding: 2px var(--sp-2); background: var(--blue-100); color: var(--navy-900); font-size: var(--fs-14); font-weight: 700; line-height: 1.6; letter-spacing: 0.02em; }
.case__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22); line-height: 1.5; letter-spacing: 0.04em; color: var(--ink); }
.case__body { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.case__body dt { margin-bottom: var(--sp-1); font-size: var(--fs-14); font-weight: 700; line-height: 1.5; letter-spacing: 0.16em; color: var(--blue-700); }
.case__body dd { margin: 0; font-size: var(--fs-16); line-height: 1.7; }
.case__body ul li { position: relative; padding-left: 0.9em; }
.case__body ul li::before { content: ""; position: absolute; left: 0; top: calc(0.85em - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--blue-500); }
.case__body dd.result { padding: var(--sp-2); background: var(--bg); border-radius: 2px; font-weight: 500; color: var(--ink); }
@media (max-width: 889px) { .case__body { grid-template-columns: 1fr; gap: var(--sp-3); } }
@media (max-width: 640px) { .case { padding: var(--sp-4) var(--sp-3); } .case__title { font-size: var(--fs-20); } }

/* ------------------------------------------------------------------
   21. 企業顧問料：FAQ・流れ
------------------------------------------------------------------ */
/* よくあるご質問：質問を押すと答えが開くアコーディオン（details/summary）。開閉の緩急は main.js */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q, .faq__a { display: flex; gap: var(--sp-3); align-items: flex-start; }
.faq__q {
  padding: var(--sp-3) 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--fs-17); line-height: 1.7; color: var(--ink); letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.faq__item:first-child .faq__q { padding-top: 0; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text { flex: 1; padding-top: 2px; }
.faq__q:hover { color: var(--blue-700); }
.faq__q:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring); }
/* 右端の「＋」。開くと縦棒が寝て「−」になる */
.faq__toggle { position: relative; flex: none; width: 32px; height: 32px; }
.faq__toggle::before, .faq__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px;
  background: var(--navy-900); transition: transform 0.45s var(--ease-soft);
}
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open]:not(.is-closing) .faq__toggle::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body .faq__a { padding-bottom: var(--sp-3); }
@media (prefers-reduced-motion: reduce) { .faq__toggle::before, .faq__toggle::after { transition: none; } }
@media (max-width: 640px) { .faq__q, .faq__a { gap: 12px; } .faq__toggle { width: 24px; } }   /* SP は質問文の幅を広く */
.faq__a { font-size: var(--fs-16); line-height: 1.7; }
.faq__q::before, .faq__a::before {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en); font-size: var(--fs-17); font-weight: 600; line-height: 1;
}
.faq__q::before { content: "Q"; background: var(--navy-900); color: #fff; }
.faq__a::before { content: "A"; border: 1.5px solid var(--blue-500); color: var(--blue-700); }

/* ご契約・ご相談までの流れ：縦のタイムライン（費用・顧問料／お問い合わせ）
   左の番号の丸を縦線でつなぐ。JS が動く環境では、スクロールに合わせて紺の線が下へ伸び、
   線が届いた工程の丸が紺に塗られ、本文が浮かび上がる（main.js「流れのタイムライン」）。
   JS なし・動きを減らす設定では、最初から全工程が塗られた状態で表示する */
/* 中身（文字）の幅に合わせて縮める白い箱。見出しに合わせて中央に置く（費用・顧問料「ご契約までの流れ」） */
.box.box--fit { width: fit-content; max-width: 100%; margin-inline: auto; }
.flow { --flow-dot: 60px; counter-reset: step; }
.flow__step {
  position: relative; display: grid; grid-template-columns: var(--flow-dot) 1fr; column-gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}
.flow__step:last-child { padding-bottom: 0; }
.flow__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: relative; z-index: 1;
  width: var(--flow-dot); height: var(--flow-dot); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-900); border: 1px solid var(--navy-900); color: #fff;
  font-family: var(--font-en); font-size: var(--fs-22); font-weight: 500; line-height: 1; letter-spacing: 0.04em;
  transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft);
}
/* 丸と丸をつなぐ線：下地（淡い青）と、伸びていく紺の線（.flow__fill、JS が差し込む） */
.flow__step:not(:last-child)::after,
.flow__fill {
  content: ""; position: absolute; left: calc(var(--flow-dot) / 2); top: var(--flow-dot); bottom: 0;
  width: 1px; margin-left: -0.5px; background: var(--blue-100);
}
.flow__fill { z-index: 1; background: var(--navy-900); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.flow__title {
  margin: calc((var(--flow-dot) - 1.5em) / 2) 0 var(--sp-1);   /* 1 行目を丸の中心の高さにそろえる */
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-21); letter-spacing: 0.06em; color: var(--ink); line-height: 1.5;
}
.flow__step p:not(.flow__title) { max-width: 40em; font-size: var(--fs-16); line-height: 1.8; color: var(--ink-soft); }
/* JS が動くとき：届く前の丸は白地に細い枠、本文は控えておく */
.flow.is-live .flow__step::before { background: var(--white); border-color: var(--blue-100); color: var(--blue-500); }
.flow.is-live .flow__step > div { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); }
.flow.is-live .flow__step.is-reached::before { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.flow.is-live .flow__step.is-reached > div { opacity: 1; transform: none; transition-delay: 0.12s; }
/* 小さい版（お問い合わせの右欄）：スクロールの演出はなし */
.flow--compact { --flow-dot: 34px; }
.flow--compact .flow__step { column-gap: 14px; padding-bottom: var(--sp-3); }
.flow--compact .flow__step::before { font-size: var(--fs-14); }
.flow--compact .flow__title { margin-bottom: 2px; font-size: var(--fs-15); }
.flow--compact .flow__step p:not(.flow__title) { font-size: 13px; line-height: 1.7; }
@media (max-width: 640px) {
  .flow { --flow-dot: 48px; }
  .flow__step { column-gap: var(--sp-2); padding-bottom: var(--sp-5); }
  .flow__step::before { font-size: var(--fs-18); }
  .flow__title { font-size: var(--fs-18); }
}
}

/* ------------------------------------------------------------------
   22. お問い合わせフォーム
------------------------------------------------------------------ */
.notice {
  padding: var(--sp-3); background: var(--white); border-left: 3px solid var(--navy-900);
  font-size: var(--fs-16); line-height: 1.7;
}
.notice strong { color: var(--ink); }
.notice--lines { text-align: center; }   /* お問い合わせ冒頭の案内は中央揃え */
.notice--lines > span { display: block; text-wrap: balance; word-break: auto-phrase; }   /* 1 文ごとに改行。入りきらない文は文節で折り返す */
.notice__note { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }   /* 有料の注記は小さく */
.tel-panel {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5); background: var(--navy-900); color: #fff; border-radius: var(--radius-leaf);
}
.tel-panel__label { font-size: var(--fs-16); line-height: 1.7; letter-spacing: 0.06em; }
.tel-panel__num {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-family: var(--font-en); font-size: 36px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4;
  text-decoration: underline; text-underline-offset: 4px;
}
.tel-panel__hours { font-size: var(--fs-14); line-height: 1.7; color: rgba(255,255,255,0.88); }
@media (max-width: 640px) { .tel-panel { padding: var(--sp-3); } .tel-panel__num { font-size: var(--fs-32); } }

/* お問い合わせ：幅の広い PC は 2 列（左にフォーム、右に電話・ご相談の流れ）。右欄は画面に収まる高さなら追従する。
   狭い画面は 1 列で、フォーム → 電話 → ご相談の流れ の順 */
.contact__layout { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.contact__side { display: grid; gap: var(--sp-3); align-content: start; }
/* お電話（お問い合わせの右欄）：SP メニュー内の連絡先の枠（.sp-menu__contact）と同じ並び。
   紺地の中央に 案内 → 白地の電話番号 → 受付時間 */
.tel-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 10px; padding: 22px 14px; background: var(--navy-900); color: #fff; text-align: center;   /* 以前の白線の枠の大きさ（外側を 10px ずつ詰めた）。角は直角 */
}
.tel-card__label { font-size: var(--fs-14); letter-spacing: 0.06em; }
.tel-card__num {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 var(--sp-3);
  background: #fff; color: var(--navy-900);
  font-family: var(--font-en); font-size: var(--fs-28); letter-spacing: 0.08em; line-height: 1; text-decoration: none;
  transition: background 0.3s ease;
}
.tel-card__num svg { flex: none; width: 24px; height: 24px; }
.tel-card__num:hover { background: var(--blue-100); }
.tel-card__hours { font-size: 13px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
@media (max-width: 640px) { .tel-card__num { font-size: var(--fs-26); } .tel-card__hours { font-size: 12px; } }
.box.contact__flow { padding: var(--sp-4); border-radius: 0; }   /* 角は直角（電話のカードとそろえる） */
.box.contact__form { padding: var(--sp-4); border-radius: 0; }   /* フォームの箱の内側の余白は控えめに。角は右欄とそろえて直角 */
@media (max-width: 640px) { .box.contact__form { padding: var(--sp-3) var(--sp-2); } }
.contact__side-title { margin-bottom: var(--sp-3); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-18); letter-spacing: 0.06em; color: var(--ink); }
.contact__fees { margin-top: var(--sp-2); }
.contact__fees .link-ring { font-size: var(--fs-15); }
@media (min-width: 1180px) {
  .contact__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-4); align-items: start; }
}
@media (min-width: 1180px) and (min-height: 940px) {   /* 右欄（約 880px）が画面に収まるときだけ追従 */
  .contact__side { position: sticky; top: var(--sp-4); }
}

.form__row { padding: 10px 0; }   /* 2026-11-17 詰めた（24px＋罫線 → 10px、罫線なし） */
/* PC は短い項目を 2 つずつ横に並べる（会社名・お名前／メール・電話） */
@media (min-width: 768px) { .form__pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-3); } }
.form__label { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: 6px; font-size: var(--fs-15); font-weight: 700; line-height: 1.7; letter-spacing: 0.02em; color: var(--ink); }
.form__req, .form__opt { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.6; }
.form__req { background: var(--seal); color: #fff; }
.form__opt { background: var(--blue-100); color: var(--navy-900); }
.form__help { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 640px) { #files-help { font-size: 12px; } }   /* 添付の注釈は SP だけ小さく（PC は 14px のまま） */
.form__input, .form__select, .form__textarea {
  width: 100%; min-height: 48px;                /* DADS Medium 相当 */
  padding: 10px 14px; font: inherit; font-size: 16px; line-height: 1.7; letter-spacing: 0.02em;   /* 文字は 16px のまま（iOS で入力時に拡大されない大きさ） */
  color: var(--ink); background: var(--white); border: 1px solid #7B8798; border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input:focus-visible, .form__select:focus-visible, .form__textarea:focus-visible {
  outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring);
}
.form__select {
  appearance: none; -webkit-appearance: none; padding-right: var(--sp-5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5 7 9.5 11.5 5' fill='none' stroke='%231D4E89' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");   /* 右端は下向きの「∨」（選択肢が開くことを示す） */
  background-repeat: no-repeat; background-position: right var(--sp-2) center;
}
.form__textarea { min-height: 160px; resize: vertical; }
.form__file { font-size: var(--fs-16); }
.form__file::file-selector-button {
  margin-right: var(--sp-2); min-height: var(--tap); padding: var(--sp-1) var(--sp-2);
  font: inherit; font-size: var(--fs-14); font-weight: 700;
  color: var(--navy-900); background: var(--white); border: 1px solid var(--navy-900); border-radius: 4px; cursor: pointer;
}
/* 複数添付：JS が効いているときは本物の入力欄を隠し、「ファイルを選ぶ」ボタン＋選んだファイルの一覧にする */
.files.is-enhanced .files__input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.files__pick {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-15); font-weight: 700; color: var(--navy-900); background: var(--white);
  border: 1px solid var(--navy-900); border-radius: 4px; cursor: pointer; transition: background 0.2s;
}
.files__pick:hover { background: var(--blue-100); }
.files__input:focus-visible + .files__pick { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring); }
.files__list { margin-top: var(--sp-2); border-top: 1px solid var(--line); }
.files__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-2);
  padding: var(--sp-1) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-15); line-height: 1.6;
}
.files__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.files__size { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.files__remove {
  min-height: var(--tap); padding: 0 var(--sp-1); font: inherit; font-size: var(--fs-14); color: var(--blue-700);
  background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.files__remove:hover { color: var(--navy-900); }
.files__sum { margin-top: var(--sp-1); font-size: var(--fs-14); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* 入力の不足・送信の失敗 */
.form__error { margin-top: var(--sp-1); font-size: var(--fs-14); font-weight: 700; line-height: 1.7; color: var(--seal-dark); }
.form__input[aria-invalid="true"], .form__select[aria-invalid="true"], .form__textarea[aria-invalid="true"] { border-color: var(--seal); border-width: 2px; }
.form__alert {
  margin: 0 auto var(--sp-3); max-width: 40em; padding: var(--sp-2) var(--sp-3); text-align: left;
  font-size: var(--fs-15); font-weight: 700; line-height: 1.7; color: var(--seal-dark); background: #FBF1EF; border-left: 4px solid var(--seal);
}
.form__turnstile { margin-top: var(--sp-3); }
.form button[type="submit"]:disabled { opacity: 0.7; cursor: progress; }
/* 送信ボタン：角を丸めた朱の面に、右端の白い丸と朱の「＞」。ホバーで丸が右へ、押すと少し沈む */
.btn-send { display: flex; justify-content: center; }   /* ボタンの幅は文字に合わせる */
.btn-send button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: auto; min-height: 54px; padding: 12px 58px 12px 32px;   /* 右は丸の分を空ける */
  background: var(--seal); color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: var(--fs-16); font-weight: 700; line-height: 1.5; letter-spacing: 0.1em;
  transition: background 0.3s ease, transform 0.2s var(--ease-soft);
}
.btn-send__icon {
  position: absolute; right: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: #fff; transition: transform 0.45s var(--ease-soft);
}
.btn-send__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -5px;
  border-top: 2px solid var(--seal); border-right: 2px solid var(--seal); transform: rotate(45deg);
}
.btn-send button:hover { background: var(--seal-dark); }
.btn-send button:hover .btn-send__icon { transform: translateX(5px); }
.btn-send button:active { transform: translateY(2px); }
.btn-send button:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring); }
@media (prefers-reduced-motion: reduce) { .btn-send button, .btn-send__icon { transition: none; } }
.form__check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 4px 0; font-size: var(--fs-15); line-height: 1.7; }
.form__check > span { white-space: nowrap; }   /* 「プライバシーポリシーに同意のうえ送信します。」は 1 行で */
@media (max-width: 640px) { .form__check { font-size: min(15px, calc((100vw - 100px) / 21.6)); } }   /* SP は 1 行に収まる大きさに縮める */
/* 同意のチェック：押すと箱が少し沈み、紺に塗られながらチェックが弾むように現れる */
.form__check input {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center;
  width: 24px; height: 24px; margin: 0; cursor: pointer;
  background: var(--white); border: 1.5px solid #7B8798; border-radius: 4px;
  transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.form__check input::before {
  content: ""; width: 12px; height: 6px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);   /* 少し行き過ぎて戻る */
}
.form__check input:active { transform: scale(0.88); }
.form__check input:checked { background: var(--navy-900); border-color: var(--navy-900); }
.form__check input:checked::before { transform: rotate(-45deg) scale(1); }
.form__check input:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-ring); }
.form__check input[aria-invalid="true"] { border-color: var(--seal); border-width: 2px; }
@media (prefers-reduced-motion: reduce) { .form__check input, .form__check input::before { transition: none; } }
.form__check a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.form__submit { margin-top: var(--sp-4); text-align: center; }
.form__submit .note { margin-top: var(--sp-2); }
/* 送信後の案内：指定の位置（PC 2 行・SP 3 行）以外では改行しない。文字は添付の注記（#files-help）と同じ PC 13px／SP 12px。
   箱が狭くて入りきらない幅では、箱の内側の幅（100cqi）に合わせて縮める（最長の行 約 32em） */
.box.contact__form { container-type: inline-size; }
.form__after { white-space: nowrap; font-size: min(13px, 100cqi / 32); }
@media (max-width: 640px) { .form__after { font-size: min(12px, 100cqi / 18.5); } }   /* SP の最長の行は 約 18em */

/* ------------------------------------------------------------------
   23. お知らせ一覧・記事・完了・ポリシー
------------------------------------------------------------------ */
.news-list .news__item a { padding: var(--sp-3) 0; }
.post { padding: var(--sp-7) var(--sp-8); background: var(--white); border-radius: var(--radius-leaf); }
.post__meta { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.post__title {
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-28); line-height: 1.5; letter-spacing: 0.06em; color: var(--ink);
}
.post__body h2 { margin: var(--sp-5) 0 var(--sp-2); font-family: var(--font-display); font-size: var(--fs-22); letter-spacing: 0.06em; color: var(--ink); line-height: 1.5; }
.post__body h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-18); line-height: 1.6; color: var(--ink); }
.post__body p { margin: 0 0 var(--sp-3); }
.post__body ul, .post__body ol { margin: 0 0 var(--sp-3) 1.4em; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { line-height: 1.7; }
.post__body a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
/* 記事末尾：前の記事｜一覧を見る｜次の記事 */
.post-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line);
}
.post-nav__side { display: flex; align-items: center; min-width: 0; }
.post-nav__side--right { justify-content: flex-end; }
.post-nav__link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); }
.post-nav__link:hover { color: var(--blue-700); }
.post-nav__dir { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-15); font-weight: 700; letter-spacing: 0.06em; }
.post-nav__link--left .news-strip__icon { transform: scaleX(-1); }   /* 〇＞ を左向きに */
.post-nav__link--right:hover .news-strip__icon { transform: translateX(3px); }
.post-nav__link--left:hover .news-strip__icon { transform: scaleX(-1) translateX(3px); }
.post-nav__back { display: flex; }
/* 一覧へは向きを持たないので矢印を付けず、文字と下線だけ */
.post-nav__back a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--fs-15); font-weight: 700; letter-spacing: 0.06em; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-nav__back a:hover { color: var(--blue-700); }
.post-nav .news-strip__icon { width: 24px; height: 24px; }
.post-nav .news-strip__icon::after { width: 7px; height: 7px; margin: -4px 0 0 -5px; border-width: 2px; }
@media (max-width: 640px) {   /* SP も 1 行。文字を一回り小さく */
  .post-nav { gap: var(--sp-1); }
  .post-nav__dir { gap: 6px; font-size: 13px; letter-spacing: 0.02em; }
  .post-nav__back a { font-size: 13px; letter-spacing: 0.02em; }
  .post-nav .news-strip__icon { width: 20px; height: 20px; }
}

/* お知らせ一覧のページ送り（JS で生成。1 ページに収まるときは出さない）：‹ 戻る　1 / N　次へ › */
.pager[hidden] { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--sp-6); margin-top: var(--sp-5); }
.pager__step {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap);
  font-size: var(--fs-16); font-weight: 700; letter-spacing: 0.06em; color: var(--ink);
}
a.pager__step:hover { color: var(--blue-700); }
.pager__step.is-disabled { color: #B4B9C1; }
.pager__chev { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.pager__step--prev .pager__chev { transform: rotate(-135deg); margin-left: 4px; }
.pager__step--next .pager__chev { transform: rotate(45deg); margin-right: 4px; }
.pager__count { min-width: 4.5em; font-size: var(--fs-17); font-weight: 700; letter-spacing: 0.04em; color: var(--ink); text-align: center; }
@media (max-width: 767px) { .pager { gap: var(--sp-4); } }
@media (max-width: 767px) { .post { padding: var(--sp-4) var(--sp-3); } .post__title { font-size: var(--fs-22); } }

.thanks { text-align: center; }
.thanks__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-28); line-height: 1.5; letter-spacing: 0.1em; color: var(--ink); margin-bottom: var(--sp-3); }

.policy h2 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-18); font-weight: 700; line-height: 1.6; letter-spacing: 0.02em; color: var(--ink); }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: var(--fs-16); line-height: 1.7; }
.policy ol { margin: var(--sp-1) 0 var(--sp-1) 1.4em; list-style: decimal; }
.policy a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------
   SP（767px 以下）の詰め：画面が小さいぶん、文字を一回り小さく・余白を一段詰める。
   余白は 40px 以上のトークンを一段ずつ下げてサイト全体に効かせる（8px の倍数は維持）。
   文字は本文 16 → 15px、見出しは 2〜4px 下げる。フォームの入力欄は iOS の拡大を避けるため 16px のまま
------------------------------------------------------------------ */
@media (max-width: 767px) {
  :root { --sp-5: 32px; --sp-6: 40px; --sp-7: 48px; --sp-8: 56px; --sp-9: 64px; --sp-10: 80px; }

  body { font-size: var(--fs-15); }
  .link-ring, .entry__more-text,
  .news__title, .news__date, .access__addr, .access__routes,
  .lead-quote, .table, .strength__item p:not(.h4),
  .history li, .area__item p:not(.h4), .area__note, .case__body dd, .faq__a, .flow__step p:not(.flow__title),
  .notice, .tel-panel__label, .policy p, .policy li, .hero__sub { font-size: var(--fs-15); }
  .reason__label { font-size: var(--fs-17); }
  .sec-head .eyebrow { font-size: var(--fs-17); }
  .reason__text p:not([class]) { font-size: var(--fs-14); line-height: 1.8; }
  /* イラストは大きさそのままで本文の下へ引き上げ、白抜きの番号を本文の最後の行に重ねる（イラストは本文の背面） */
  .reason .reason__text { padding-bottom: 0; }
  .reason .reason__img { margin-top: -24px; }

  .sec-title { font-size: var(--fs-22); }
  .reason__title { font-size: var(--fs-22); }
  .entry__title { font-size: var(--fs-18); }
  .practice__title, .case__title, .h3-line { font-size: var(--fs-18); }
  .area__title, .strength__title, .post__title, .price-hero, .price-hero .unit { font-size: var(--fs-20); }
  .price-hero .num { font-size: 48px; }
  .h4, .faq__q, .year, .policy h2 { font-size: var(--fs-16); }
  /* .flow__title の SP の大きさは「流れのタイムライン」側で指定 */
  .tel-panel__num { font-size: var(--fs-28); }
}
@media (max-width: 345px) { .reason__title { font-size: var(--fs-20); } }

/* ------------------------------------------------------------------
   取扱業務（一覧・分野ページ）と解決事例（一覧・個別）
------------------------------------------------------------------ */
.sec.sec--tight { padding-top: 0; }
/* 一覧：重点3分野を大きめの行、その他は控えめの行 */
.practice-index { display: grid; gap: var(--sp-2); }
.practice-index__item {
  display: grid; grid-template-columns: 10.5em 1fr auto; grid-template-areas: "label name go" "label catch go";   /* 左列は最長の「その他の企業法務」が 1 行に収まる幅 */
  align-items: center; column-gap: var(--sp-4); row-gap: 4px;
  padding: var(--sp-4) var(--sp-5); background: var(--white); border-radius: var(--radius-leaf);
  transition: box-shadow 0.3s ease;
}
.practice-index__item:hover { box-shadow: 0 12px 30px rgba(var(--navy-rgb),0.10); }
.practice-index__item .practice__label { grid-area: label; align-self: center; justify-self: start; margin: 0; min-width: 6.5em; text-align: center; white-space: nowrap; }
.practice-index__name { grid-area: name; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-22); line-height: 1.5; letter-spacing: 0.04em; }
.practice-index__catch { grid-area: catch; font-size: var(--fs-15); line-height: 1.7; color: var(--ink-soft); }
.practice-index__item .news__go { grid-area: go; }
.practice-index__item:hover .practice-index__name { text-decoration: underline; text-underline-offset: 4px; }
.practice-index__item:hover .news__go { transform: translateX(3px); }
.practice-index__item--sub { padding-block: var(--sp-3); }
.practice-index__item--sub .practice__label { background: var(--ink-soft); }
.practice-index__item--sub .practice-index__name { font-size: var(--fs-18); }

/* 分野ページ下：ほかの取扱業務 */
.practice-other { padding: var(--sp-4) var(--sp-5); background: var(--white); border-radius: var(--radius-leaf); }
.practice-other__title { margin-bottom: var(--sp-2); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-17); letter-spacing: 0.08em; }
.practice-other ul { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); }
.practice-other a { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--tap); font-size: var(--fs-15); }
.practice-other a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

/* 解決事例：一覧カード */
.case-list__lead { margin: 0 auto var(--sp-4); text-align: center; font-size: var(--fs-14); color: var(--ink-soft); }
.case-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--sp-3); }
.case-card {
  display: flex; flex-direction: column; gap: var(--sp-2); height: 100%;
  padding: var(--sp-4); background: var(--white); border-radius: var(--radius-leaf); border-top: 3px solid var(--blue-700);
  transition: box-shadow 0.3s ease;
}
.case-card:hover { box-shadow: 0 12px 30px rgba(var(--navy-rgb),0.10); }
.case-card .case__meta { margin: 0; }
.case-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-18); line-height: 1.6; letter-spacing: 0.04em; }
.case-card__result { font-size: var(--fs-14); line-height: 1.7; color: var(--ink-soft); }
.case-card__more { display: inline-flex; align-items: center; gap: var(--sp-1); margin-top: auto; font-size: var(--fs-14); letter-spacing: 0.06em; }
.case-card:hover .case-card__title { text-decoration: underline; text-underline-offset: 4px; }
.case-card:hover .news-strip__icon { transform: translateX(3px); }

/* 解決事例：個別ページ */
.case__note { margin-top: var(--sp-3); font-size: 13px; color: var(--ink-soft); }
.case-links { margin-top: var(--sp-5); }   /* 見た目は「ほかの取扱業務」（.practice-other）と共通 */

@media (max-width: 767px) {
  .practice-index__item { grid-template-columns: 1fr auto; grid-template-areas: "label go" "name go" "catch go"; column-gap: var(--sp-2); padding: var(--sp-3); }
  .practice-index__item .practice__label { justify-self: start; min-width: 0; margin-bottom: 4px; }
  .practice-index__name { font-size: var(--fs-19); }
  .practice-other { padding: var(--sp-3); }
  .practice-other ul { flex-direction: column; gap: 0; }
  .case-card { padding: var(--sp-3); }
}

/* 分野ページ：こんなお悩みはありませんか（紺の見出し帯＋チェックの箇条） */
.worries { overflow: hidden; background: var(--white); border-radius: var(--radius-leaf); }
.worries__title { padding: var(--sp-2) var(--sp-5); background: var(--navy-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-18); line-height: 1.5; letter-spacing: 0.1em; }
.worries__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1) var(--sp-4); padding: var(--sp-4) var(--sp-5) 0; }
.worries__list li { position: relative; padding: 6px 0 6px 28px; font-size: var(--fs-15); line-height: 1.7; border-bottom: 1px dashed var(--line); }
.worries__list li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700); transform: rotate(-45deg);
}
.worries__foot { padding: var(--sp-3) var(--sp-5) var(--sp-4); font-size: var(--fs-14); color: var(--ink-soft); }
@media (max-width: 767px) {
  .worries__title { padding: 12px var(--sp-3); font-size: var(--fs-16); }
  .worries__list { grid-template-columns: 1fr; gap: 0; padding: var(--sp-2) var(--sp-3) 0; }
  .worries__list li { font-size: var(--fs-14); }
  .worries__foot { padding: var(--sp-2) var(--sp-3) var(--sp-3); font-size: 13px; }
}

/* ------------------------------------------------------------------
   弁護士紹介：一覧カードと個人ページ
------------------------------------------------------------------ */
/* 一覧：二人を同じ大きさで横並び。写真の右上に、枠を付けずに肩書き・名前・ローマ字を重ねる */
.lawyer-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); max-width: 900px; margin-inline: auto; }
.lawyer-card { position: relative; display: block; padding-bottom: var(--sp-2); }
.lawyer-card__photo { display: block; width: 64%; overflow: hidden; background: var(--white); }
.lawyer-card__photo img { width: 100%; aspect-ratio: 14 / 15; object-fit: cover; object-position: center 15%; transition: transform 0.8s var(--ease); }
.lawyer-card:hover .lawyer-card__photo img { transform: scale(1.04); }
.lawyer-card__body { position: absolute; right: 12%; top: var(--sp-4); display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }   /* 写真の右端に寄せて重ねる */
.lawyer-card__role { font-size: 12px; letter-spacing: 0.14em; color: var(--blue-700); }
.lawyer-card__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-30); line-height: 1.25; letter-spacing: 0.12em; padding-left: 0.12em; margin: 4px 0 2px; color: var(--ink); }   /* 字間の片寄りを左の余白で打ち消す */
/* 名前とローマ字は中央そろえ。かたまりごと右に寄せる */
.lawyer-card__nm { display: flex; flex-direction: column; align-items: center; margin-right: -4px; }
.lawyer-card__roman { font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; padding-left: 0.24em; text-transform: lowercase; color: var(--ink); }   /* 欧文の見出しと同じ立った書体（小文字） */
.lawyer-card:hover .lawyer-card__name { color: var(--blue-700); }

/* 個人ページ：左に縦書きの一言、右にメッセージ */
.lawyer-intro { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-8); align-items: start; }
.lawyer-intro__catch {
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-size: var(--fs-22); line-height: 2.2; letter-spacing: 0.2em; color: var(--navy-900);
}
.lawyer-intro__catch span { display: block; }   /* 1 行ずつ右から左へ列を並べる */
.lawyer-intro__message p { font-size: var(--fs-16); line-height: 2; }
.lawyer-intro__message p + p { margin-top: var(--sp-3); }
/* 社労士の個人ページは左右反転：本文が左、縦書きの一言が右 */
.lawyer-intro--rev { grid-template-columns: 1fr auto; }
.lawyer-intro--rev .lawyer-intro__catch { order: 2; }

/* 個人ページ：写真＋プロフィール表 */
.lawyer-profile { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-6); align-items: start; padding: var(--sp-6); background: var(--white); border-radius: var(--radius-leaf); }
.lawyer-profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.lawyer-profile__list > div { display: grid; grid-template-columns: 8em 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.lawyer-profile__list > div:first-child { padding-top: 0; }
.lawyer-profile__list dt { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-15); letter-spacing: 0.1em; color: var(--navy-900); }
.lawyer-profile__list dd { margin: 0; font-size: var(--fs-15); line-height: 1.8; }
.lawyer-profile__list dd a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.lawyer-profile__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); letter-spacing: 0.16em; margin-right: var(--sp-2); }
.lawyer-profile__roman { font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: lowercase; color: var(--ink-soft); }

@media (max-width: 999px) {
  .lawyer-intro { gap: var(--sp-5); }
  .lawyer-profile { grid-template-columns: 1fr; padding: var(--sp-4); }
  .lawyer-profile__photo { width: min(280px, 70%); }
}
@media (max-width: 767px) {
  .lawyer-cards { grid-template-columns: 1fr; gap: var(--sp-4); }
  .lawyer-card__photo { width: 66%; }
  .lawyer-card__body { top: var(--sp-3); right: 6%; }
  .lawyer-card__name { font-size: var(--fs-24); }
  /* SP は縦に並ぶので左右交互に。2 人目は写真を右、名前を左に置く */
  .lawyer-cards li:nth-child(even) .lawyer-card__photo { margin-left: auto; }
  .lawyer-cards li:nth-child(even) .lawyer-card__body { right: auto; left: 6%; align-items: flex-start; text-align: left; }
  .lawyer-cards li:nth-child(even) .lawyer-card__nm { margin-right: 0; margin-left: -4px; }
  .lawyer-intro, .lawyer-intro--rev { grid-template-columns: 1fr; gap: var(--sp-4); }
  .lawyer-intro--rev .lawyer-intro__catch { order: 0; }
  .lawyer-intro__catch { justify-self: center; font-size: var(--fs-19); }
  .lawyer-intro__message p { font-size: var(--fs-15); line-height: 1.9; }
  .lawyer-profile { padding: var(--sp-3); gap: var(--sp-3); }
  .lawyer-profile__list > div { grid-template-columns: 1fr; gap: 4px; }
}




/* ==================================================================
   本文の列を Hero の写真の枠（左右 40px）にそろえる（2026-09-29 試作 A を採用）。
   PC のみ。列は最大 1200px。文章の段落は各所の max-width（40em など）で行長を抑えたまま、箱・カードの面だけ広がる。
   このブロックを消せば、以前の 960px の列に戻る
================================================================== */
@media (min-width: 768px) {
  .inner, .mv-sub__head, .site-footer__inner, .site-footer__bottom { width: min(1200px, 100% - var(--sp-5) * 2); }   /* フッターも同じ列にそろえる */
  .reasons { --reason-out: calc(max(32px, (100vw - var(--side-w) - min(1200px, 100vw - var(--side-w) - 80px)) / 2) - 16px); }
  .entry__grid { max-width: none; }
  /* 取扱業務：列が Hero の枠まで広がったので、紺の面・カードを列の外へ張り出さない */
  .practice__head { padding-left: var(--sp-5); border-image: linear-gradient(var(--navy-900) 0 0) fill 0 // 0 160px 0 0; }
  .practice__list { margin-right: 0; }
  /* ページ名は列の右端（＝ Hero の枠の右端）にそろえる。列が広がったので、右へずらす指定は外す */
  .mv-sub:not(.mv-sub--rev) .mv-sub__head { left: 0; }
  /* フッター下段は右下の「ページ上部へ戻る」と重ならないよう、右に余白を取る */
  .site-footer__bottom { padding-right: var(--sp-7); }
}

/* ------------------------------------------------------------------
   費用・顧問料：労務顧問の 3 コース（2026-11-21）
------------------------------------------------------------------ */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* コースのカード：角のない面。ロゴの水色（#2880C0）を基準に A→B→C の順にグレーへ寄せる。
   色は料金表の見出しと共通（--course-a/b/c）。ロゴの色そのままでは白文字が AA に届かない（4.25）ため一段だけ締めている（白文字 4.8／4.6／4.6）。
   カードの下には、そのコースに含まれる業務だけを白い角丸タグで並べる */
:root { --course-a: #2277B5; --course-b: #3F7BA6; --course-c: #62788A; }
.course-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.course { --course-bg: var(--course-a); display: flex; flex-direction: column; padding: var(--sp-4); background: var(--course-bg); color: #fff; }
/* 右端を大きな A／B／C の形にくり抜く：ページの地の色で文字を置き、カードの縁からはみ出た分は切り落とす */
.course { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-leaf); }   /* 左上と右下の角だけ丸める */
.course[data-letter="A"]::after { bottom: -0.2em; }   /* A だけ少し低い位置のまま */
.course[data-letter="C"]::after { right: -0.03em; }   /* C だけ少し左に（開きが切れると O に見えるため） */
.course::after {
  content: attr(data-letter); position: absolute; z-index: -1; right: -0.06em; bottom: -0.16em;   /* 右は文字の形がわかるところまで見せる（C の開きが切れると O に見えるため。A・B もそろえる） */
  font-family: var(--font-en); font-size: 200px; font-weight: 500; line-height: 1; color: var(--bg);
  pointer-events: none;
}
.course:nth-child(2) { --course-bg: var(--course-b); }
.course:nth-child(3) { --course-bg: var(--course-c); }
.course__label { font-size: var(--fs-14); font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; color: #fff; }
.course__name { margin-top: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 33px; letter-spacing: 0.04em; color: #fff; }
.course { container-type: inline-size; }
/* くり抜きの文字（地の薄いグレー）に白文字が重なっても読めるよう、見出しと本文に斜め右下へ落ちるぼかしのない影。
   タグは文字ではなくタグ自身に同じ向きの影 */
.course__name, .course__desc { text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.course__scope li { box-shadow: 2px 2px 0 rgba(0,0,0,.6); }
/* 説明文：改行位置は先方指定。1 行（span）ごとに折り返さず、カードの幅に合わせて文字を縮める。
   右の余白と、くり抜きの文字には重なってよい（先方了承）。3 枚とも同じ大きさにそろえる */
.course__desc { margin-top: var(--sp-2); line-height: 1.7; letter-spacing: 0; font-size: min(14px, calc((100cqi + 38px) / 24.5)); }   /* PC：最長 24 字（A の 2 行目）。左へ 14px＋右の余白 24px まで使う */
.course__desc > span { display: block; white-space: nowrap; }
.course__desc--wrap-pc > span { display: inline; white-space: normal; }   /* C は PC では自然に折り返す */
.course__desc--wrap-pc { word-break: auto-phrase; text-wrap: pretty; }
@media (min-width: 641px) {
  .course__name, .course__desc { margin-left: -14px; }   /* PC：見出しと本文を 1 文字分左へ */
  .course__scope { margin-left: -7px; }   /* タグは 0.5 文字分左へ */
}
@media (max-width: 640px) {
  /* SP：文字は 13px（--fs-14）に戻す。指定の位置で改行し、入りきらない行は文節で折り返す */
  .course__desc { font-size: var(--fs-14); letter-spacing: 0.02em; }
  .course__desc > span, .course__desc--wrap-pc > span { display: block; white-space: normal; word-break: auto-phrase; text-wrap: pretty; }
}
.course__scope { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: auto; padding-top: var(--sp-3); border-top: 0; font-size: var(--fs-14); line-height: 1.5; font-weight: 700; color: #fff; }
.course__scope li { display: inline-flex; align-items: center; padding: 2px 12px; background: #fff; color: var(--course-bg); border: 1px solid #fff; border-radius: 999px; }   /* 含まれる業務を角丸の小さなタグで。白の塗りに、文字はカードの色（AA：4.6〜4.8） */
@media (max-width: 999px) { .course-list { grid-template-columns: 1fr; gap: var(--sp-2); } .course__scope { margin-top: 0; } }
@media (max-width: 640px) { .course { padding: var(--sp-3) var(--sp-2); } .course__name { font-size: 20px; line-height: 27px; } }   /* 見出しの行の高さは大きくする前（PC 22px×1.5／SP 18px×1.5）のまま固定し、カードの大きさを変えない */

/* 料金表：A の 2 列を見出しでまとめ、C は区分ごとに縦に結合 */
/* 表の左上（「人数」の見出し）だけ丸める。セルの角丸は罫線を重ねる設定（collapse）では効かないので、罫線を分ける設定にする（線は各セルの下と左だけなので二重にならない） */
.table.table--labor { border-collapse: separate; border-spacing: 0; }
.table.table--labor thead tr:first-child th:first-child { border-top-left-radius: var(--radius-leaf-size); }
.labor-fee .h3-line + .note, .labor-fee .note.sp-only { margin-bottom: var(--sp-1); }
.table--labor th, .table--labor td { text-align: right; white-space: nowrap; }
.table--labor td { font-family: "EB Garamond", var(--font-display); font-size: var(--fs-17); letter-spacing: 0.02em; }   /* 「円」は明朝で受ける */
.table.table--labor thead th { text-align: center; }
.table.table--labor thead tr:first-child th[colspan] { border-bottom: 1px solid rgba(255,255,255,.35); }
.table--labor .yen { margin-left: 1px; font-size: 0.8em; }   /* 単位の「円」は数字より一回り小さく */
.table.table--labor tbody th { width: auto; text-align: center; white-space: nowrap; }   /* 人数は列の中央に */
/* 境目を細い線で：行は下線、列は縦線（見出しは白の半透明線） */
.table.table--labor tbody th, .table.table--labor tbody td { border-bottom: 1px solid var(--line); }
.table.table--labor tbody td { border-left: 1px solid var(--line); }
.table.table--labor thead th + th, .table.table--labor thead tr:last-child th { border-left: 1px solid rgba(255,255,255,.3); }
.table.table--labor tbody tr:first-child > * { border-top: 0; }
.table.table--labor td.is-span { vertical-align: middle; background: var(--white); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table.table--labor td.is-text { text-align: center; font-family: var(--font-body); font-size: var(--fs-16); }
/* B・C の見出しの下に、対象業務の小さな注記 */
.table--labor .th-note { display: block; margin-top: 2px; font-size: var(--fs-14); font-weight: 400; line-height: 1.4; letter-spacing: 0; }
.table--labor .th-note span { display: inline-block; }
.table--labor thead tr:last-child th, .table--labor thead tr:first-child th:nth-child(n+3) { width: 20%; }   /* 金額の 4 列は同じ幅に（注記の分だけ B が広がらないように）。人数の列は残りの 20% */
.table.table--labor thead th[rowspan] { vertical-align: middle; }   /* 人数・B・C の見出しは 2 段ぶんの高さの中で上下中央に */
.table.table--labor tbody th { font-weight: 400; }   /* 金額を目立たせるため、人数は太字にしない */
/* 表の本体（人数・要協議）も金額と同じ書体に。漢字は Garamond にないので明朝で受ける */
.table.table--labor tbody th, .table.table--labor td.is-text { font-family: "EB Garamond", var(--font-display); font-size: var(--fs-17); letter-spacing: 0.02em; }
@media (max-width: 640px) { .table--labor .th-note { display: none; } }   /* SP は列が狭いので、表の上の注記（.sp-only）に任せる */
/* 見出しの色はコースのカードと合わせる。人数の列はサイト共通の紺に白文字 */
.table.table--labor thead tr:first-child th:nth-child(2), .table.table--labor thead tr:last-child th { background: var(--course-a); }
.table.table--labor thead tr:first-child th:nth-child(3) { background: var(--course-b); }
.table.table--labor thead tr:first-child th:nth-child(4) { background: var(--course-c); }
@media (max-width: 640px) {
  /* SP：人数の列を左に固定し、A・B・C は横にスクロールして見る。画面幅に押し込めない分、文字は大きく（金額・人数 16px） */
  .table.table--labor { width: max-content; min-width: 100%; }
  .labor-fee .table-wrap { border-top-left-radius: var(--radius-leaf-size); }   /* スクロール枠ごと左上を丸め、流れる見出しが角の外に透けないようにする */
  .table--labor thead tr:last-child th, .table--labor thead tr:first-child th:nth-child(n+3) { width: auto; }
  .table.table--labor th, .table.table--labor td { padding-inline: 12px; }
  .table.table--labor thead th { font-size: 14px; white-space: nowrap; line-height: 1.4; }
  .table.table--labor tbody th, .table.table--labor thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 2; }
  .table.table--labor tbody tr:nth-child(odd) th { background: var(--white); }   /* 固定した列の下を金額が流れるので、地色を必ず塗る */
  .table.table--labor tbody th { box-shadow: 1px 0 0 var(--line), 4px 0 6px -2px rgba(var(--navy-rgb), .12); }   /* 固定列の右端に区切り線と薄い影 */
}
@media (max-width: 640px) {
  .box.labor-fee { margin-inline: calc(50% - 50vw); }   /* SP は白い箱を画面の左右いっぱいまで広げる（表は箱の内側の余白 16px を残す） */
  .page-fees .h3-line { font-size: 22px; word-break: auto-phrase; text-wrap: balance; }   /* 費用・顧問料ページの見出しは SP でもひと回り大きくそろえる。入りきらないものは文節で釣り合わせて折り返す */
}
.labor-fee__terms { margin-top: var(--sp-4); border-top: 1px solid var(--line); }
.labor-fee__terms > div { display: grid; grid-template-columns: 7em 1fr; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.labor-fee__terms dt { font-weight: 700; color: var(--navy-900); line-height: 1.7; }
.labor-fee__terms dd { margin: 0; }
.labor-fee__terms dd p { font-size: var(--fs-15); line-height: 1.7; }
.labor-fee__terms dd p + p { margin-top: 4px; }
/* SP：条件の欄は文字を小さく、行間・余白を詰めてコンパクトに */
@media (max-width: 640px) {
  .labor-fee__terms { margin-top: var(--sp-3); }
  .labor-fee__terms > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .labor-fee__terms dt { font-size: 13px; line-height: 1.5; }
  .labor-fee__terms dd p { font-size: 12px; line-height: 1.6; }
  .labor-fee__terms dd p { word-break: auto-phrase; text-wrap: pretty; }   /* 折り返しは文節で。最後の 1〜2 字だけが次の行に落ちないように */
  .labor-fee__1line-sp { display: block; }   /* A の人数加算：「勤怠の集計も〜」は次の行に送る。文字の大きさはほかの行と同じ 12px（縮めない） */
  .labor-fee__terms dd p + p { margin-top: 2px; }
}
/* SP の表の上の注記：必ず 1 行。画面幅に合わせて縮める（28 字＋余裕。360px 幅で約 10px） */
.labor-fee + .labor-scope { margin-top: var(--sp-3); }
.box.labor-fee { border-radius: 0; }   /* 料金表の白い箱だけは角を立てる */

/* 含まれる業務：業務のまとまりごとに、対象コースを小さな四角で示す */
.scope-group + .scope-group { margin-top: var(--sp-4); }
.scope-group__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); font-weight: 700; font-size: var(--fs-17); line-height: 1.6; color: var(--ink); }
.scope-tags { display: inline-flex; gap: 4px; }
.scope-tags span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--navy-900); color: #fff; font-family: var(--font-en); font-size: var(--fs-15); font-weight: 500; line-height: 1; }
.scope-tags .is-a { background: var(--course-a); }   /* 対象コースの四角はコースのカードと同じ色 */
.scope-tags .is-b { background: var(--course-b); }
.scope-tags .is-c { background: var(--course-c); }
.scope-group > ul { margin-top: var(--sp-1); }
.scope-group > p:not(.scope-group__title) { margin-top: 4px; font-size: var(--fs-15); line-height: 1.75; }
.scope-dl { margin-top: var(--sp-1); }
.scope-dl > div { display: grid; grid-template-columns: 5em 1fr; gap: var(--sp-1); padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-15); line-height: 1.7; }
.scope-dl dd { margin-left: 16px; }   /* ブラウザ既定の 40px から少し詰める（SP は下で 0） */
.scope-dl dt { font-weight: 700; color: #2B7A62; }   /* 労働保険・雇用保険・社会保険の見出しは青みの緑（白地で 5.2:1） */
@media (max-width: 640px) { .scope-dl > div { grid-template-columns: auto 1fr; column-gap: 12px; } .scope-dl dd { margin-left: 0; font-size: 13px; } }   /* SP は見出し（労働保険など）の列を文字幅ぶんに詰め、ブラウザ既定の dd の左余白 40px も外して内容を左へ寄せる */
.labor-scope__note { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-15); line-height: 1.75; }
@media (max-width: 640px) { .labor-scope__note { font-size: 13px; } }   /* SP はもう一段小さく。改行は 1 文ごと、入りきらない分は自然に折り返す */
/* 箱の幅に合わせて縮める行（指定の位置以外で改行しない） */
.labor-scope > .box { container-type: inline-size; }
.labor-scope.cols-2 { align-items: start; }   /* 左右の箱を同じ高さに引き伸ばさない（含まれない業務の箱は中身の高さで終える） */
.scope-group__lead > span { display: block; white-space: nowrap; }
.scope-group > p.scope-group__lead { font-size: min(var(--fs-15), 100cqi / 28.6); letter-spacing: 0; }   /* 最長 28 字（1 行目） */
.labor-scope__spot { white-space: nowrap; letter-spacing: 0; font-size: min(14px, 100cqi / 36.4); }   /* PC：1 行（36 字） */
@media (max-width: 640px) { .labor-scope__spot { white-space: normal; font-size: 12px; } }   /* SP：「など、」の後で改行し、ひと回り小さく */
/* 含まれる／含まれない業務のリストは行間を詰める */
.labor-scope .prose ul li, .labor-scope.cols-2 > .prose ul li { line-height: 1.6; }
.labor-scope .prose ul li + li { margin-top: 2px; }
@media (max-width: 640px) { .labor-scope ul.scope-list-1line li { white-space: nowrap; letter-spacing: 0; font-size: min(var(--fs-15), 100cqi / 24.2); } }   /* SP：労務相談の 3 項目は各 1 行（最長 23 字＋行頭の点）。箱の幅に合わせて縮める */
@media (max-width: 999px) { .labor-scope.cols-2 { grid-template-columns: 1fr; } }
