/* ==========================================================================
   記事本文のスタイル
   WordPress（JIN:R）が吐いたクラスをそのまま受けて、こちらで組み直す。
   本文は中年の読者を想定して 17px / 行間 2.0 を基準にする。
   ========================================================================== */

.article { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 56px; align-items: start; }

/* ── 記事ヘッダー ─────────────────────────── */
.ah { margin-bottom: 36px; }
.ah__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ah__date { font-size: 14px; color: #a8a49c; }
.ah__cat {
  font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent-tint); padding: 4px 12px; border-radius: 2px;
}
.ah h1 {
  margin: 0 0 24px; font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700; line-height: 1.55; letter-spacing: .01em;
  overflow-wrap: anywhere;
}
/* WordPress由来の埋め込みiframe。JSがないため常に非表示のまま横幅だけ広げるので消す
   （見えているのは直前のblockquoteのリンクの方） */
iframe.wp-embedded-content { display: none; }
.ah__hero { aspect-ratio: 16/9; margin-bottom: 8px; width: 100%; object-fit: cover; border-radius: 2px; }

/* ── パンくず ─────────────────────────────── */
.crumb { font-size: 13px; color: var(--faint); padding: 18px var(--gut) 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--faint); }
.crumb a:hover { color: var(--accent); }

/* ── 本文 ─────────────────────────────────── */
.body { font-size: 18px; line-height: 2.0; font-weight: 500; color: var(--body); overflow-wrap: anywhere; }
.body > *:first-child { margin-top: 0; }

.body p { margin: 0 0 1.6em; }

.body h2 {
  margin: 2.6em 0 1em; padding: 0 0 .5em;
  font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.6;
  color: var(--ink); border-bottom: 2px solid var(--accent);
}
.body h3 {
  margin: 2.2em 0 .9em; font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 700; line-height: 1.65; color: var(--ink);
  padding-left: 14px; border-left: 3px solid var(--accent);
}
.body h4 {
  margin: 1.9em 0 .8em; font-size: 18px; font-weight: 700;
  line-height: 1.7; color: var(--ink);
}

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

.body strong, .body .d--bold { font-weight: 700; color: var(--ink); }

/* JIN:R のマーカー表現をこちらで再現する */
.body .yellowline,
.body .d--marker1 {
  background: linear-gradient(transparent 62%, #fbe6a2 62%);
  font-weight: 700; color: var(--ink);
}

/* リスト */
.body ul, .body ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.body li { margin-bottom: .5em; }
.body ul.jinr-list { list-style: none; padding-left: 0; }
.body ul.jinr-list > li {
  position: relative; padding-left: 1.5em;
}
.body ul.jinr-list > li::before {
  content: ''; position: absolute; left: .2em; top: .85em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
/* 「制作実績」バッジ付きの項目は、バッジの高さで行が伸びてドットとずれるため、
   flex にしてドットを最初の行の上端に固定する */
.body ul.jinr-list > li.jl--badge {
  display: flex; align-items: baseline; gap: 0; padding-left: 1.5em;
}
.body ul.jinr-list > li.jl--badge::before { position: static; flex: none; margin: 0 .8em 0 -1.5em; }

/* 画像 */
.body figure { margin: 2em 0; }
.body img { border-radius: 2px; }
.body figcaption {
  margin-top: 10px; font-size: 14px; color: var(--faint); text-align: center;
}

/* 引用 */
.body blockquote {
  margin: 2em 0; padding: 20px 24px;
  background: var(--surface-soft); border-left: 3px solid var(--rule-strong);
  font-size: 16px;
}
.body blockquote p:last-child { margin-bottom: 0; }

/* 表 */
.body .tablewrap { overflow-x: auto; margin: 2em 0; }
.body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.body th, .body td {
  border: 1px solid var(--hairline); padding: 12px 14px; text-align: left; vertical-align: top;
}
.body th { background: var(--surface-soft); font-weight: 700; color: var(--ink); }

/* 動画埋め込み */
.body .embed { position: relative; margin: 2em 0; padding-top: 56.25%; }
.body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 2px; }

/* ── 記事内リンクカード（JIN:R の blogcard を組み直す）── */
.body .b--jinr-blogcard { margin: 2em 0; }
.body .o--blogcard-link {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; border: 1px solid var(--hairline); border-radius: 2px;
  background: var(--surface-soft); text-decoration: none;
  transition: border-color .12s cubic-bezier(.2,.7,.2,1);
}
.body .o--blogcard-link:hover { border-color: var(--rule-strong); }
.body .c--blogcard-image { flex: none; width: 128px; }
.body .c--blogcard-image img { width: 128px; height: 72px; object-fit: cover; border-radius: 2px; }
.body .a--blogcard-title {
  font-size: 16px; font-weight: 700; line-height: 1.65; color: var(--ink);
}
.body .a--blogcard-excerpt { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── サイドバー ───────────────────────────── */
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 32px; }
.side__ttl {
  font-size: 12px; font-weight: 600; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 14px;
}
.side__row {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline);
}
.side__row .ph { width: 76px; height: 44px; flex: none; font-size: 9px; }
.side__row span { font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--ink); }

/* ── 関連記事 ─────────────────────────────── */
.rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }

@media (max-width: 1080px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .side { position: static; }
  .rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .body { font-size: 17px; line-height: 1.95; }
  .body .o--blogcard-link { flex-direction: column; align-items: stretch; }
  .body .c--blogcard-image, .body .c--blogcard-image img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .rel { grid-template-columns: 1fr; }
  .crumb { font-size: 12px; }
}

/* ==========================================================================
   JIN:R のブロックを組み直す
   （吹き出し・囲みボックス・ボタン・アイコンボックス・タイムライン）
   ========================================================================== */

/* ── 吹き出し（会話）──────────────────────── */
.body .b--jinr-fukidashi { margin: 2.2em 0; }
.body .o--jinr-fukidashi {
  display: flex; align-items: flex-start; gap: 16px;
}
.body .o--jinr-fukidashi.d--fukidashi-right { flex-direction: row-reverse; }

.body .c--fukidashi-img-box {
  flex: none; width: 72px; display: flex; flex-direction: column;
  align-items: center; gap: 6px; position: relative;
}
.body .a--fukidashi-img {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--hairline); background: var(--surface-soft);
}
.body .a--fukidashi-img img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; margin: 0;
}
.body .a--fukidashi-icon-name {
  font-size: 12px; color: var(--faint); line-height: 1.4; text-align: center;
}
.body .a--fukidashi-img-circle { display: none; }   /* 装飾用の空要素 */

.body .c--fukidashi-contents {
  position: relative; flex: 1 1 auto;
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 16px 20px; background: #fff;
}
/* 吹き出しの三角 */
.body .c--fukidashi-contents::before,
.body .c--fukidashi-contents::after {
  content: ''; position: absolute; top: 24px; width: 0; height: 0;
  border: 9px solid transparent;
}
.body .d--fukidashi-left .c--fukidashi-contents::before {
  left: -18px; border-right-color: var(--hairline);
}
.body .d--fukidashi-left .c--fukidashi-contents::after {
  left: -16px; border-right-color: #fff;
}
.body .d--fukidashi-right .c--fukidashi-contents::before {
  right: -18px; border-left-color: var(--hairline);
}
.body .d--fukidashi-right .c--fukidashi-contents::after {
  right: -16px; border-left-color: #fff;
}
.body .o--fukidashi-inner > p:last-child { margin-bottom: 0; }
.body .o--fukidashi-inner p { font-size: 16px; }

/* ── 囲みボックス ─────────────────────────── */
.body .b--jinr-box, .body .b--jinr-block-container { margin: 2.2em 0; }
.body .c--simple-box-inner,
.body .o--simple-box,
.body .d--simple-box1, .body .d--simple-box2, .body .d--simple-box3 {
  background: var(--surface-soft); border-radius: 4px; padding: 22px 24px;
}
.body .c--simple-box-inner > *:last-child,
.body .o--simple-box > *:last-child { margin-bottom: 0; }
.body .c--simple-box-title, .body .a--simple-box-title {
  font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 17px;
}

/* ── アイコン付きボックス（注意書きなど）──── */
.body .b--jinr-iconbox { margin: 2.2em 0; }
.body .b--jinr-iconbox > div {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface-soft); border-radius: 4px; padding: 20px 22px;
}
.body .b--jinr-iconbox i { display: none; }          /* テーマのアイコンフォントは使えない */
.body .b--jinr-iconbox > div::before {
  content: '!'; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; line-height: 26px; text-align: center;
  margin-top: 2px;
}
.body .a--jinr-iconbox > *:last-child { margin-bottom: 0; }
.body .a--jinr-iconbox p { font-size: 16px; }

/* ── ボタン ───────────────────────────────── */
.body .b--jinr-button { margin: 2.2em 0; }
.body .o--button-inner { display: flex; }
.body .o--button-inner.d--button-center { justify-content: center; }
.body .o--button-inner.d--button-right { justify-content: flex-end; }
/* テーマ（JIN:R）のボタンも、トップページの .btn--fill と同じ見た目にそろえる。
   角丸・枠線・ホバー・右向き矢印まで合わせる。
   横幅（padding の左右）はページごとにあえて広げているものがあるので変えない。 */
.body .b--jinr-button a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  padding: 15px 34px; border-radius: 2px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: background .12s cubic-bezier(.2,.7,.2,1), border-color .12s, color .12s;
}
.body .b--jinr-button a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* テーマのアイコンフォント頼みの疑似要素は使わず、.btn と同じ矢印を描く */
.body .b--jinr-button a::after {
  content: '' !important; flex: none; width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── 見出しブロック ───────────────────────── */
.body .b--jinr-h { margin: 2.4em 0 1em; }

/* ── タイムライン ─────────────────────────── */
.body .b--jinr-timeline { margin: 2.2em 0; padding-left: 22px; border-left: 2px solid var(--hairline); }
.body .b--jinr-timeline > * { position: relative; }

@media (max-width: 720px) {
  .body .o--jinr-fukidashi { gap: 12px; }
  .body .c--fukidashi-img-box { width: 54px; }
  .body .a--fukidashi-img { width: 48px; height: 48px; }
  .body .c--fukidashi-contents { padding: 14px 16px; }
  .body .b--jinr-button a { display: block; text-align: center; }
}

.side__row img, .side__thumb { width: 76px; height: 44px; object-fit: cover; border-radius: 2px; flex: none; }
.rel img { aspect-ratio: 16/10; width: 100%; object-fit: cover; border-radius: 2px; }

/* ==========================================================================
   固定ページ
   本文の構造は元サイトのまま。見出し（英字ラベル＋日本語）だけ組み直す。
   ========================================================================== */

/* ── メインビジュアル ───────────────────────
   marugoto-support と同じ組み方。写真の上に暗幕をかけ、
   大きな明朝の見出し・説明文・3つのポイントを重ねる。
   固定ページはすべてこの形でそろえる。 */
.pv {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: 26px; padding: 30px var(--gut) 52px; background: #232220;
}
/* 説明文を1行に収める指定（短い文を書いたページだけに付ける）*/
.pv--oneline .pv__lead { max-width: none; white-space: nowrap; }
@media (max-width: 1080px) { .pv--oneline .pv__lead { white-space: normal; } }

.pv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.pv__veil { position: absolute; inset: 0; background: rgba(35, 34, 32, .62); }
.pv__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,34,32,.42) 0%, rgba(35,34,32,0) 26%,
              rgba(35,34,32,.62) 62%, rgba(35,34,32,.88) 100%);
}
.pv__head, .pv__in { position: relative; width: 100%; }
.pv__kick {
  margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .2em; color: #fff;
}
/* ページタイトルは本文と同じ書体・同じ大きさで全ページそろえる。
   （明朝＋900だと、ページごとに大きさがばらついて見えていた） */
.pv h1 {
  margin: 0; font-family: inherit; font-weight: 700;
  font-size: clamp(33px, 3.6vw, 48px); line-height: 1.45; letter-spacing: .01em;
  color: #faf9f5;
  /* 画面が狭いときの折り返しを整える。
     strict：長音符「ー」や小書き仮名が行頭に来るのを止める（見出しは短いので副作用が出ない）
     balance：最終行に1〜2文字だけ取り残されるのを防ぐ */
  line-break: strict; text-wrap: balance;
}
.pv__lead {
  margin: 24px 0 0; max-width: 46em;
  font-size: clamp(18px, 1.4vw, 21px); line-height: 2; font-weight: 600; color: #faf9f5;
}

/* 3つのポイント */
.pv__pts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 38px;
}
.pt {
  min-width: 0; padding: 30px 26px 34px; border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.pt__l {
  margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: .14em;
  color: rgba(255, 255, 255, .9); text-align: center;
}
.pt__v {
  margin: 0; font-size: clamp(28px, 2.7vw, 40px); font-weight: 700; line-height: 1.3;
  letter-spacing: -.01em; color: #fff; text-align: center;
}

/* 実績（ポイントの代わりに数字を出すページ用）*/
.pg-stats {
  position: relative; margin-top: 34px;
  display: grid; grid-template-columns: repeat(var(--stat-cols, 3), minmax(0, 1fr));
  gap: 4px 16px;
}
@media (max-width: 1080px) { .pg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .pg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-stats .stat { border-bottom-color: rgba(255, 255, 255, .28); }
.pg-stats .stat__l, .pg-stats .stat__n { color: #fff !important; }

/* ── 本文の見出し（JIN:R の h2rich をそのまま受ける）───────
   <section class="b--jinr-h ...">
     <div class="c--h2rich-contents">
       <span class="a--h2rich-subcopy">Lawyer</span>
       <h2 class="a--h2rich-maincopy">弁護士業務</h2>
     </div>
   </section>                                                        */
/* 本文は 18px を基準にする（中年の読者を想定）。写真の上はもう一段大きく。 */
.pg-body { font-size: 19px; line-height: 2.0; font-weight: 500; }
.pg-body .pgphoto { font-size: 20px; }
.pg-body .pgphoto p, .pg-body .pgphoto li { font-size: 20px; }
.pg-body .b--jinr-box p, .pg-body .a--jinr-iconbox p,
.pg-body .o--fukidashi-inner p { font-size: 18px; }

.pg-body .b--jinr-h2rich { margin: 3.2em 0 1.5em; text-align: left; }
.pg-body .b--jinr-h2rich:first-child { margin-top: 0; }
.pg-body .c--h2rich-contents { position: relative; text-align: left; }
/* 節の見出し（左のレールに載るもの）だけ、通し番号のぶんを空ける */
.pg-body .b--jinr-h2rich[id] .c--h2rich-contents { padding-left: 148px; }
.pg-body .a--h2rich-subcopy {
  display: block; font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent-deep); margin-bottom: 10px;
}
/* テーマが入れた文字サイズ指定に負けないようにする */
.pg-body .a--h2rich-subcopy * {
  font-size: inherit !important; font-weight: inherit; letter-spacing: inherit;
}
.pg-body .b--jinr-h2rich h2 {
  margin: 0; padding: 0; border: 0;
  font-size: clamp(24px, 2.5vw, 34px); font-weight: 700;
  line-height: 1.45; letter-spacing: .005em; color: var(--ink);
}
/* 本文中に直接置かれた h2。節の見出し（左のレールに載るもの）は、
   h2rich と同じ見え方にそろえる。 */
.pg-body > h2.wp-block-heading {
  margin: 2.8em 0 1.1em; padding: 0 0 .5em;
  font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.5;
  border-bottom: 2px solid var(--accent);
}
.pg-body > h2.wp-block-heading[id] {
  position: relative; margin: 3.2em 0 1.5em; padding: 0 0 0 148px; border: 0;
  font-size: clamp(24px, 2.5vw, 34px); line-height: 1.45; letter-spacing: .005em;
}
.pg-body > h2.wp-block-heading[id][data-no]::before {
  content: attr(data-no);
  position: absolute; left: 0; top: 0; bottom: 18px;
  display: flex; align-items: center;
  font-family: 'Poppins', Arial, sans-serif; font-style: italic;
  font-size: 92px; font-weight: 600; line-height: 1;
  letter-spacing: -.01em; color: var(--accent-deep); opacity: .42;
}
.pg-body > h2.wp-block-heading[id]::after {
  content: ''; display: block; width: 44px; height: 2px;
  background: var(--accent); margin-top: 16px;
}
.pg-body h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; }
.pg-body h4 { font-size: 19px; line-height: 1.6; margin: 1.8em 0 .7em; }
/* 通し番号を見出しの左に添える。
   番号の高さの中に「英字のあしらい＋タイトル」がちょうど収まるようにする。
   下の 18px は見出し下の罫（margin-top:16px + 高さ2px）のぶん。 */
.pg-body .b--jinr-h2rich[id] h2[data-no]::before {
  content: attr(data-no);
  position: absolute; left: 0; top: 0; bottom: 18px;
  display: flex; align-items: center;
  font-family: 'Poppins', Arial, sans-serif; font-style: italic;
  font-size: 92px; font-weight: 600; line-height: 1;
  letter-spacing: -.01em; color: var(--accent-deep); opacity: .42;
}
/* あしらいはタイトルよりはっきり小さく */
.pg-body .b--jinr-h2rich[id] .a--h2rich-subcopy { margin-bottom: 8px; }
.pg-body .b--jinr-h2rich[id] .a--h2rich-subcopy .dotmark { height: 13px; }
/* 見出しの下に細い罫を引く */
.pg-body .c--h2rich-contents::after {
  content: ''; display: block; width: 44px; height: 2px;
  background: var(--accent); margin-top: 16px; margin-left: 0;
}
/* テーマの全幅コンテナが本文からはみ出さないようにする */
.pg-body .d--fullwidth-max, .pg-body .t--main-width { max-width: 100%; margin: 0; padding: 0; }

@media (max-width: 720px) {
  .pg-stats { grid-template-columns: repeat(min(var(--stat-cols, 3), 2), minmax(0, 1fr)); gap: 4px 26px; }
  .pg-body .b--jinr-h2rich[id] .c--h2rich-contents { padding-left: 0; padding-top: 62px; }
  .pg-body > h2.wp-block-heading[id] { padding-left: 0; padding-top: 62px; }
  .pg-body .b--jinr-h2rich[id] h2[data-no]::before,
  .pg-body > h2.wp-block-heading[id][data-no]::before {
    top: 0; bottom: auto; height: 54px; font-size: 54px;
  }
}

/* 固定ページ本体。左に見出しの索引（追従）＋右に本文 */
/* 左右の余白はヘッダー・メインビジュアルと同じ 64px にそろえる。
   本文だけは行が長くなりすぎないよう上限を持たせる。 */
.band.pg-wrap { max-width: none; padding-left: var(--gut); padding-right: var(--gut); }
.pg-wrap .cend { margin-top: 64px; }

.pg {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: auto auto; gap: 0 56px; align-items: start;
}
.pg > .pg-body { grid-column: 2; grid-row: 1; max-width: 1120px; }
.pg > .cend    { grid-column: 2; grid-row: 2; max-width: 1120px; }
.pg--norail { display: block; }
.pg--norail .pg-body, .pg--norail .cend { max-width: 880px; margin-left: auto; margin-right: auto; }

/* ── 左のレール（スクロールに追従する見出し索引）──────── */
.pgrail { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 96px; }
.pgrail__ttl {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 4px;
}
.pgrail__list { list-style: none; margin: 0; padding: 0; }
.pgrail__list a {
  display: grid; grid-template-columns: 26px minmax(0, 1fr);
  gap: 0 10px; align-items: baseline;
  padding: 11px 0 11px 12px; margin-left: -12px;
  border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none;
  transition: color .16s cubic-bezier(.2,.7,.2,1), border-color .16s cubic-bezier(.2,.7,.2,1);
}
.pgrail__list i {
  grid-row: 1 / span 2; font-style: normal;
  font-size: 13px; font-weight: 700; letter-spacing: 0;
  color: var(--rule-strong); transition: color .16s;
}
.pgrail__list span {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--faint); display: block; margin-bottom: 2px;
}
.pgrail__list b { font-size: 16px; font-weight: 700; line-height: 1.6; }
.pgrail__list a:hover { color: var(--ink); }
.pgrail__list a:hover i { color: var(--muted); }
.pgrail__list a.is-here { color: var(--ink); border-left-color: var(--accent); }
.pgrail__list a.is-here i,
.pgrail__list a.is-here span { color: var(--accent); }

/* 追従ヘッダーの下に見出しが潜らないようにする */
.pg-body [id] { scroll-margin-top: 96px; }

/* ── 写真を敷いた全幅ブロック（黒の半透過をかける）──── */
.pg-body .b--jinr-fullwidth-container { margin: 2.6em 0; }
.pg-body .b--jinr-fullwidth-container > *:first-child { margin-top: 0; }
.pg-body .b--jinr-fullwidth-container > *:last-child { margin-bottom: 0; }

.pg-body .pgphoto {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(44px, 4.4vw, 68px) clamp(26px, 3.2vw, 52px);
  margin: 3.2em 0;
}
/* メインビジュアルと同じ落とし方で、上下を締める */
.pg-body .pgphoto::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(35,34,32,.34) 0%, rgba(35,34,32,0) 30%,
              rgba(35,34,32,0) 66%, rgba(35,34,32,.42) 100%);
}
.pg-body .pgphoto .b--jinr-h2rich h2 { color: var(--on-dark); }
/* 元サイトで中央寄せだった見出しは、中央のまま出す（本文だけ中央で見出しが左だと崩れて見える）*/
.pg-body .pgphoto .d--h2rich-center .c--h2rich-contents { text-align: center; padding-left: 0; }
.pg-body .pgphoto .d--h2rich-center .c--h2rich-contents::after { margin-left: auto; margin-right: auto; }
/* 写真の上では大きな通し番号は出さない（読みにくいだけになる）*/
.pg-body .pgphoto .b--jinr-h2rich[id] h2[data-no]::before { content: none; }
.pg-body .pgphoto .b--jinr-h2rich[id] .c--h2rich-contents { padding-left: 0; }
.pg-body .pgphoto .a--jinr-fullwidth-image,
.pg-body .pgphoto .a--jinr-fullwidth-overlay { position: absolute; inset: 0; z-index: -1; }
.pg-body .pgphoto .a--jinr-fullwidth-image-clip,
.pg-body .pgphoto .a--jinr-fullwidth-image img {
  width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0;
}
.pg-body .pgphoto .a--jinr-fullwidth-overlay { background: rgba(20,20,19,.5) !important; opacity: 1 !important; }
/* 写真の上は白抜き */
.pg-body .pgphoto, .pg-body .pgphoto p, .pg-body .pgphoto li,
.pg-body .pgphoto strong, .pg-body .pgphoto h2, .pg-body .pgphoto h3 { color: var(--on-dark); }
.pg-body .pgphoto .b--jinr-h2rich h2[data-no]::before { color: rgba(250,249,245,.42); }
.pg-body .pgphoto .c--h2rich-contents::after { background: var(--on-dark); }
.pg-body .pgphoto .a--h2rich-subcopy { color: var(--on-dark) !important; }
.pg-body .pgphoto .wp-block-spacer { display: none; }

/* ── 段組み（WordPress の columns）──────────────── */
/* 元サイトの 60% / 40% などの比率は、要素に直接書かれているので活かす。
   折り返すと縦積みになってしまうので、横並びのまま縮める。 */
.pg-body .wp-block-columns {
  display: flex; flex-wrap: nowrap; gap: 32px 40px; align-items: flex-start; margin: 2.4em 0;
}
.pg-body .wp-block-column { flex: 1 1 0; min-width: 0; }
.pg-body .wp-block-column.is-vertically-aligned-center { align-self: center; }
.pg-body .wp-block-column > *:first-child { margin-top: 0; }
.pg-body .wp-block-column > *:last-child { margin-bottom: 0; }
.pg-body .wp-block-column figure { margin: 0; }

/* 装飾用の空要素はテーマのCSSが無いと意味を成さない。数字が入っているものだけ残す */
.pg-body .c--h2rich-decoration { display: none; }
.pg-body .c--h2rich-decoration:has(.a--h2rich-number) { display: block; text-align: center; }
.pg-body .a--h2rich-number {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.04em;
}
/* テーマのアイコンフォントは読み込めないので出さない */
.pg-body .jin-icons, .pg-body .jif, .pg-body [class*="jin-ifont-"],
.pg-body .a--h2rich-icon { display: none !important; }

/* ── 囲みカード（背景ブロック）──────────────────
   .a--background-color / .a--background-image は中身の“うしろ”に敷く層。 */
.pg-body .b--jinr-background { position: relative; isolation: isolate; margin: 2.2em 0; }
.pg-body .a--background-color,
.pg-body .a--background-image { position: absolute; inset: 0; z-index: -1; border-radius: 4px; }
.pg-body .a--background-image { display: none; }   /* 模様はテーマの画像頼み */
.pg-body .c--background-inner { padding: 20px 20px 4px; border-radius: 6px; }
.pg-body .b--jinr-background .b--jinr-h2rich { margin: 0 0 .8em; }
.pg-body .b--jinr-background p { margin-bottom: .8em; font-size: 17px; line-height: 1.9; }
.pg-body .b--jinr-background li { font-size: 17px; line-height: 1.9; }
.pg-body .b--jinr-background .c--h2rich-contents::after { margin-top: 10px; width: 34px; }
.pg-body .b--jinr-background .a--h2rich-subcopy { margin-bottom: 6px; letter-spacing: .14em; }
/* 囲みの中では大きな通し番号は出さない（左のレールで位置は分かる）*/
.pg-body .b--jinr-background .b--jinr-h2rich[id] h2[data-no]::before { content: none; }
.pg-body .b--jinr-background .b--jinr-h2rich[id] .c--h2rich-contents { padding-left: 0; }
.pg-body .d--border-solid { border-style: solid; }
.pg-body .d--border-1px { border-width: 1px; }
.pg-body .t--round { border-radius: 4px; }
.pg-body .b--jinr-background .b--jinr-h2rich,
.pg-body .b--jinr-background .c--h2rich-contents { text-align: center; }
.pg-body .b--jinr-background .c--h2rich-contents::after { margin-left: auto; margin-right: auto; }
.pg-body .b--jinr-background .b--jinr-h2rich { margin-top: 0; }

/* 囲みカードの中の英字あしらいは、カードの右下に置く。
   .dotmark は display:block なので text-align:center では中央に来ない。
   .c--h2rich-contents が relative のままだと見出し基準になるので static に戻す。 */
.pg-body .c--background-inner:has(.a--h2rich-subcopy) { position: relative; padding-bottom: 46px; }
.pg-body .c--background-inner:has(.a--h2rich-subcopy) .c--h2rich-contents { position: static; }
.pg-body .c--background-inner > .b--jinr-h2rich .a--h2rich-subcopy {
  position: absolute; right: 18px; bottom: 16px;
  width: auto; margin: 0; line-height: 1;
}
.pg-body .c--background-inner > .b--jinr-h2rich .a--h2rich-subcopy .dotmark { height: 13px; margin: 0; }

/* カードは並び順で3色を回す（テラコッタ→ブルー→グリーン）*/
.pg-body { --card: var(--accent); }
.pg-body .wp-block-columns > .wp-block-column:nth-child(3n+2) { --card: var(--blue); }
.pg-body .wp-block-columns > .wp-block-column:nth-child(3n+3) { --card: var(--green); }
.pg-body .c--background-inner { border-color: var(--card); }
.pg-body .b--jinr-background .b--jinr-h2rich h2 { font-size: clamp(19px, 1.7vw, 21px); }
.pg-body .b--jinr-background .a--h2rich-number,
.pg-body .b--jinr-background .a--h2rich-subcopy,
.pg-body .b--jinr-background .a--h2rich-maincopy { color: var(--card); }
.pg-body .b--jinr-background .c--h2rich-contents::after { background: var(--card); }

/* 段組みのカードは高さをそろえる */
.pg-body .wp-block-columns { align-items: stretch; }
.pg-body .wp-block-column.is-vertically-aligned-center { align-self: center; }
.pg-body .wp-block-column > .b--jinr-background { height: 100%; }
.pg-body .wp-block-column > .b--jinr-background > .o--background-container,
.pg-body .wp-block-column > .b--jinr-background .c--background-inner { height: 100%; }

/* 写真の上に置いたカードは、中身だけ通常の文字色に戻す（白抜きのままだと読めない）*/
.pg-body .pgphoto .b--jinr-background,
.pg-body .pgphoto .b--jinr-background p,
.pg-body .pgphoto .b--jinr-background li,
.pg-body .pgphoto .b--jinr-background strong { color: var(--body); }
.pg-body .pgphoto .b--jinr-background h2,
.pg-body .pgphoto .b--jinr-background h3,
.pg-body .pgphoto .b--jinr-background h4 { color: var(--ink); }
.pg-body .pgphoto .b--jinr-background .a--h2rich-subcopy { color: var(--card) !important; }
.pg-body .pgphoto .b--jinr-background .a--h2rich-maincopy { color: var(--ink); }
.pg-body .pgphoto .b--jinr-background .c--h2rich-contents::after { background: var(--card); }
.pg-body .pgphoto .b--jinr-background .b--jinr-h2rich h2[data-no]::before { color: var(--rule-strong); }

/* ── 写真＋文章の並び（media-text）──────────────── */
.pg-body .wp-block-media-text {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px;
  align-items: center; margin: 2.4em 0;
}
.pg-body .wp-block-media-text__media { margin: 0; }
.pg-body .wp-block-media-text__content > *:first-child { margin-top: 0; }
.pg-body .wp-block-media-text__content > *:last-child { margin-bottom: 0; }

/* ── サービスの流れ（タイムライン）──────────────── */
.pg-body .b--jinr-timeline { margin: 2.4em 0; padding-left: 0; border-left: 0; }
.pg-body .o--timeline-list { position: relative; padding-left: 34px; }
.pg-body .o--timeline-list::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--rule-strong);
}
.pg-body .c--timeline-item { position: relative; margin-bottom: 2.4em; }
.pg-body .c--timeline-item:last-child { margin-bottom: 0; }
.pg-body .c--timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--canvas); border: 3px solid var(--accent);
}
.pg-body .c--timeline-heading { margin-bottom: 12px; }
.pg-body .a--timeline-step-original {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--accent-deep);
}
.pg-body .a--timeline-label { font-size: 20px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.pg-body .c--timeline-contents > *:last-child { margin-bottom: 0; }

/* ── よくいただくご質問（開閉）────────────────── */
.pg-body .b--jinr-accordion { margin: 2.4em 0; border-top: 1px solid var(--hairline); }
.pg-body .qa { border-bottom: 1px solid var(--hairline); }
.pg-body .qa summary {
  display: flex; gap: 14px; align-items: flex-start; position: relative;
  padding: 18px 40px 18px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 700; line-height: 1.7; color: var(--ink);
}
.pg-body .qa summary::-webkit-details-marker { display: none; }
.pg-body .qa__q {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 26px; text-align: center;
  margin-top: 2px;
}
.pg-body .qa summary::after {
  content: ''; position: absolute; right: 10px; top: 26px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .18s cubic-bezier(.2,.7,.2,1);
}
.pg-body .qa[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pg-body .qa__a { padding: 0 40px 20px 40px; }
.pg-body .qa__a > *:last-child { margin-bottom: 0; }

/* ── WordPress の指定クラス ──────────────────── */
.pg-body .has-text-align-center { text-align: center; }
.pg-body .has-text-align-right { text-align: right; }
.pg-body .has-white-color { color: var(--on-dark); }
.pg-body .has-black-color { color: var(--ink); }
.pg-body .d--fontsize-13px { font-size: 13px; }
.pg-body .d--fontsize-18px { font-size: 18px; }
.pg-body .d--fontsize-24px { font-size: 24px; }
.pg-body .d--fontsize-36px { font-size: clamp(24px, 3vw, 34px); }

/* WordPressから移ってきた「先頭の空きブロック」は、本文の頭に余分な空白を作るだけなので消す
   （about / voice-ai-support / voice-client-hp の3ページが該当）*/
.pg-body > .wp-block-spacer:first-child,
.body > .wp-block-spacer:first-child { display: none; }

@media (max-width: 1080px) {
  .pg { display: block; }
  .pgrail {
    position: static; margin-bottom: 40px;
    padding-bottom: 8px; border-bottom: 1px solid var(--hairline);
  }
  .pgrail__list { display: flex; flex-wrap: wrap; gap: 0 26px; }
  .pgrail__list a { padding: 8px 0; margin-left: 0; border-left: 0; border-bottom: 2px solid transparent; }
  .pgrail__list a.is-here { border-left: 0; border-bottom-color: var(--accent); }
  .pg-body { max-width: 880px; }
}
@media (max-width: 720px) {
  .pg-body .wp-block-media-text { grid-template-columns: 1fr; gap: 20px; }
  .pg-body .qa__a { padding-left: 0; }
  .pg-body .wp-block-columns { flex-wrap: wrap; gap: 22px; }
  .pg-body .wp-block-column { flex-basis: 100% !important; }
  .pgrail__list b { font-size: 14px; }
}


/* ── 表・ボタン（固定ページ）──────────────────── */
.pg-body table { font-size: 18px; }
.pg-body th, .pg-body td { padding: 16px 18px; }
.pg-body th { font-size: 17px; letter-spacing: .02em; }
/* 固定ページのボタンは大きめ。角丸だけはトップの .btn--fill と同じ2pxにそろえる */
.pg-body .b--jinr-button a {
  padding: 19px 44px; font-size: 18px; border-radius: 2px;
}
.pg-body .pgphoto .b--jinr-button a { box-shadow: 0 10px 30px rgba(0,0,0,.28); }


/* ==========================================================================
   固定ページ：読みやすさとメリハリの調整
   ========================================================================== */

/* ── サポート事例など、見出し付きの列はカードにする ────── */
.pg-body .wp-block-column:has(> h3) {
  background: var(--surface-soft); border-radius: 6px; padding: 24px 26px 20px;
}
.pg-body .wp-block-column:has(> h3) > h3 {
  margin-top: 0; margin-bottom: .8em;
}
.pg-body .wp-block-column:has(> h3) > *:last-child { margin-bottom: 0; }

/* ── 動画は隣の箱と同じ幅（半分）で置く ─────────── */
.pg-body .wp-block-columns:has(.embed) { align-items: center; }
.pg-body .wp-block-columns:has(.embed) .wp-block-spacer { display: none; }
.pg-body .embed { margin: 0; }

/* ── 講座の見本画像は並べすぎない ─────────────── */
.pg-body .c--timeline-contents .wp-block-columns { max-width: 760px; gap: 16px; }

/* ── 料金表は列幅をそろえる（3プランを並べて比べる表）── */
.pg-body table:has(th:nth-child(4)),
.pg-body table:has(td:nth-child(4)) { table-layout: fixed; }
.pg-body table:has(td:nth-child(4)) td:first-child,
.pg-body table:has(th:nth-child(4)) th:first-child { width: 21%; }
.pg-body .tablewrap { margin: 1.8em 0 2.4em; }

/* ── 写真の上のカードは、余白を締めて縦を短くする ────── */
.pg-body .pgphoto .c--background-inner { padding: 20px 20px 4px; }
.pg-body .pgphoto .wp-block-columns { gap: 20px; }

/* 見出し付きカードの中では、見出しの縦線は使わない（中央寄せと相性が悪い）*/
.pg-body .wp-block-column:has(> h3) > h3 {
  padding-left: 0; border-left: 0; padding-bottom: .7em;
  border-bottom: 1px solid var(--rule-strong);
}

/* 本文に単体で置かれた写真は、大きくなりすぎないよう幅を抑えて中央に置く。
   サイト全体を撮った縦長のスクリーンショットは、上部だけ見せて高さを抑える。 */
.pg-body > figure.wp-block-image,
.pg-body > .wp-block-image {
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.pg-body > .wp-block-image figure { margin: 0; }
.pg-body > figure.wp-block-image img,
.pg-body > .wp-block-image img {
  width: 100%; max-height: 520px; object-fit: cover; object-position: top center;
}

/* ── 制作実績ギャラリー（チラシ実績など）────────────
   元データは縦長チラシと横長バナーが混在し、列によって大きさがバラつく。
   グループごとに実際の縦横比に合わせた枠で揃えるため、縦長／横長どちらも
   余白ができず、切り取られもしない。クリックで拡大表示できる（site.js）。
   現状ギャラリーを使うのは flyer-portfolio ページだけなので番号で直接指定する。 */
.pg-body .wp-block-gallery {
  display: grid; gap: 14px; margin: 1.6em 0;
}
.pg-body .wp-block-gallery .wp-block-image {
  margin: 0; background: var(--surface-soft); border-radius: 4px; overflow: hidden;
}
.pg-body .wp-block-gallery .wp-block-image img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
}

/* 01 イベント・相談会：縦長チラシ25枚は1列4枚、横長の告知バナー2枚は1列2枚で大きく */
.pg-body .wp-block-gallery-1 { grid-template-columns: repeat(4, 1fr); }
.pg-body .wp-block-gallery-1 .wp-block-image img { aspect-ratio: 210 / 297; }
.pg-body .wp-block-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.pg-body .wp-block-gallery-2 .wp-block-image img { aspect-ratio: 4 / 3; }

/* 02 法律事務所紹介：縦長パンフ2枚は1列2枚、横長チラシ2枚も1列2枚で大きく */
.pg-body .wp-block-gallery-3 { grid-template-columns: repeat(2, 1fr); }
.pg-body .wp-block-gallery-3 .wp-block-image img { aspect-ratio: 210 / 297; }
.pg-body .wp-block-gallery-4 { grid-template-columns: repeat(2, 1fr); }
.pg-body .wp-block-gallery-4 .wp-block-image img { aspect-ratio: 4 / 3; }

/* 03 会員等募集：縦長チラシ3枚は1列3枚 */
.pg-body .wp-block-gallery-5 { grid-template-columns: repeat(3, 1fr); }
.pg-body .wp-block-gallery-5 .wp-block-image img { aspect-ratio: 210 / 297; }

/* 04 バナー・サムネイル：横長バナー4枚は1列2枚で大きく */
.pg-body .wp-block-gallery-6 { grid-template-columns: repeat(2, 1fr); }
.pg-body .wp-block-gallery-6 .wp-block-image img { aspect-ratio: 16 / 9; }

/* ── 関連リンクを2列のボタンにする（/hp/ の制作実績・クライアントの声）── */
.body .hp-btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2.2em 0; }
.body .hp-btnrow .btn { width: 100%; justify-content: center; }
/* ボタンが1つだけの案件は、2列のうちの1列分の幅で中央に置く */
.body .hp-btnrow--one { grid-template-columns: minmax(0, calc(50% - 8px)); justify-content: center; }
/* ボタンが3つの案件は、3つ目を次の行の中央に置く（幅は他と同じ） */
.body .hp-btnrow--3 > :nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
@media (max-width: 640px) {
  .body .hp-btnrow, .body .hp-btnrow--one { grid-template-columns: 1fr; }
  .body .hp-btnrow--3 > :nth-child(3) { width: 100%; }
}

/* ── 3つのコンセプト（要約カード。押すと各節へ飛ぶ索引を兼ねる）────── */
.body .hp-concept {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin: 2.4em 0 3.2em;
}
.body .hp-concept > a.hp-concept__c {
  --c: var(--accent);
  display: block; padding: 20px 22px 22px; border-radius: 4px;
  background: var(--canvas); color: var(--body); text-decoration: none;
  border: 1px solid var(--hairline); border-top: 3px solid var(--c);
  transition: transform .16s cubic-bezier(.2,.7,.2,1), border-color .16s cubic-bezier(.2,.7,.2,1);
}
.body .hp-concept > a.hp-concept__c:nth-child(2) { --c: var(--blue); }
.body .hp-concept > a.hp-concept__c:nth-child(3) { --c: var(--green); }
.body .hp-concept > a.hp-concept__c:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--rule-strong); }
.body .hp-concept__n {
  display: block; font-weight: 700; font-style: italic;
  font-size: 28px; line-height: 1; letter-spacing: .04em;
  color: var(--c); margin-bottom: 12px;
}
.body .hp-concept__en {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: var(--faint);
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.body .hp-concept p { margin: 0; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.75; }

/* ── ①②③の見出し。カードと同じ色を引き継いで、どの話かひと目で分かるようにする ── */
.body h3.hp-step {
  --c: var(--accent); --ct: var(--accent-tint);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch;
  margin: 3.2em 0 1.2em; padding: 0;
  border: 0; border-radius: 4px; overflow: hidden;
  background: var(--ct); scroll-margin-top: 96px;
}
.body h3.hp-step--02 { --c: var(--blue);  --ct: var(--blue-tint); }
.body h3.hp-step--03 { --c: var(--green); --ct: var(--green-tint); }
.body .hp-step__n {
  display: flex; align-items: center; justify-content: center;
  min-width: 68px; padding: 0 14px;
  background: var(--c); color: #fff;
  font-size: 23px; font-weight: 700; font-style: italic;
  line-height: 1; letter-spacing: .04em;
}
.body .hp-step__t { display: block; padding: 15px 24px 17px; }
.body .hp-step__en {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: var(--muted); margin-bottom: 5px;
}

/* ── 3つのコンセプトの締め（番号のない補足なので、色は使わずトーン面で） ── */
.body .hp-note {
  margin: 3em 0; padding: 22px 26px 20px;
  background: var(--surface-soft); border-left: 3px solid var(--accent); border-radius: 4px;
}
.body .hp-note__k { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--accent-deep); }
.body .hp-note h3.hp-note__t {
  margin: 0 0 10px; padding: 0; border: 0;
  font-size: clamp(18px, 1.6vw, 20px); font-weight: 700; line-height: 1.6; color: var(--ink);
}
.body .hp-note > p:last-child { margin: 0; font-size: 17px; line-height: 1.9; }

/* ── 費用の一覧。面を敷かず、罫線と文字の大小だけで組む ────────── */
.body .hp-fee { margin: 2.6em 0; }
.body .hp-fee__lead { border-top: 2px solid var(--ink); padding-top: 22px; }
.body .hp-fee__kick { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--accent-deep); }
.body .hp-fee__label { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--muted); }
.body .hp-fee__fig {
  margin: 0 0 12px; font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; line-height: 1.25;
  letter-spacing: .01em; color: var(--ink);
}
.body .hp-fee__fig span { font-size: .4em; font-weight: 700; color: var(--faint); margin-left: .5em; letter-spacing: 0; }
.body .hp-fee__note { margin: 0; font-size: 15px; line-height: 1.85; color: var(--faint); }

.body .hp-fee__cap {
  margin: 2.4em 0 0; padding-bottom: 11px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--muted);
}
.body .hp-fee__cap .en {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: var(--accent-deep); margin-bottom: 7px;
}
.body .hp-fee__rows { margin: 0; padding: 0; }
.body .hp-fee__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--hairline);
}
.body .hp-fee__row dt { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--ink); }
.body .hp-fee__row dt em { display: block; font-style: normal; font-size: 14px; font-weight: 500; color: var(--faint); margin-top: 1px; }
.body .hp-fee__row dd { margin: 0; }
.body .hp-fee__row dd b {
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  font-size: 21px; font-weight: 700; line-height: 1.5; color: var(--ink);
}
.body .hp-fee__row dd > span { font-size: 14px; color: var(--faint); margin-left: .3em; }
.body .hp-fee__row dd em {
  display: block; font-style: normal; font-size: 14px; line-height: 1.8;
  color: var(--muted); margin-top: 7px; padding-left: 12px;
  border-left: 2px solid var(--accent-tint);
}
.body .hp-fee--sub .hp-fee__row dd b { font-size: 19px; }
.body .hp-fee__foot { margin: 15px 0 0; font-size: 15px; line-height: 1.85; color: var(--faint); }

/* ── 費用が回収できる根拠。ここだけトーン面で囲って、費用の一覧と分ける ── */
.body .hp-roi { margin: 2.6em 0; padding: 24px 26px; background: var(--surface-soft); border-radius: 4px; }
.body .hp-roi__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.body .hp-roi__tags > li {
  margin: 0; padding: 6px 14px; border-radius: 4px;
  background: var(--canvas); border: 1px solid var(--rule-strong);
  font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--muted);
}
.body .hp-roi__a { margin: 0; font-size: 17px; line-height: 1.95; }

@media (max-width: 640px) {
  .body .hp-concept { grid-template-columns: 1fr; gap: 12px; }
  .body .hp-concept > a.hp-concept__c { padding: 18px 20px 20px; }
  .body .hp-concept__n { font-size: 26px; margin-bottom: 10px; }
  .body h3.hp-step { margin: 2.6em 0 1em; }
  .body .hp-step__n { min-width: 54px; padding: 0 10px; font-size: 19px; }
  .body .hp-step__t { padding: 13px 16px 15px; }
  .body .hp-note { padding: 18px 18px 16px; }
  .body .hp-fee__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .body .hp-fee__row dd b { font-size: 20px; }
  .body .hp-roi { padding: 20px 18px; }
}

@media (max-width: 720px) {
  .pg-body .wp-block-gallery-1,
  .pg-body .wp-block-gallery-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── 画像の拡大表示（クリックで全体を見る）────────── */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vh 5vw;
  background: rgba(20, 19, 19, .88);
}
.lb.is-open { display: flex; }
.lb__img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb__close {
  position: absolute; top: 22px; right: 26px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.lb__close:hover { background: rgba(255, 255, 255, .22); }

/* ── インタビュー形式の囲み（クライアントの声）────────
   テーマは白ボックスで組んでいるが、クリーム地に白は置かない決まりなので
   トーン面＋ヘアラインに置き換える。吹き出しの三角も使わない。 */
.pg-body .d--fukidashi-interview { display: block; }
.pg-body .d--fukidashi-interview .c--fukidashi-contents {
  position: relative; border-radius: 6px; padding: 30px 32px 24px;
  border: 1px solid var(--rule-strong) !important;
  background: var(--surface-soft) !important;
}
.pg-body .d--fukidashi-interview .c--fukidashi-contents::before,
.pg-body .d--fukidashi-interview .c--fukidashi-contents::after { content: none; }
.pg-body .a--fukidashi-parts-before,
.pg-body .a--fukidashi-parts-after,
.pg-body .a--fukidashi-img-circle { display: none; }
.pg-body .d--fukidashi-interview .o--fukidashi-inner { padding-right: 92px; }
.pg-body .d--fukidashi-interview .o--fukidashi-inner > *:first-child { margin-top: 0; }
.pg-body .d--fukidashi-interview .o--fukidashi-inner > *:last-child { margin-bottom: 0; }
.pg-body .d--fukidashi-interview .c--fukidashi-img-box {
  position: absolute; top: 28px; right: 30px; width: 64px;
}
.pg-body .d--fukidashi-interview .a--fukidashi-img { width: 64px; height: 64px; }
.pg-body .b--jinr-fukidashi { margin: 2.6em 0; }
/* 囲みの中の見出しは、外の節見出しほど大きくしない */
.pg-body .d--fukidashi-interview .b--jinr-h2rich { margin: 0 0 1.2em; }
.pg-body .d--fukidashi-interview .b--jinr-h2rich h2 { font-size: clamp(21px, 2vw, 27px); }

@media (max-width: 720px) {
  .pg-body .d--fukidashi-interview .o--fukidashi-inner { padding-right: 0; }
  .pg-body .d--fukidashi-interview .c--fukidashi-img-box { position: static; margin-bottom: 14px; }
  .pg-body .d--fukidashi-interview .c--fukidashi-contents { padding: 24px 20px 20px; }
}

/* 写真だけの列は、写真の大きさに合わせて幅を決める。
   元データの 60%/40% をそのまま使うと、小さな写真の横が大きく空いてしまう。 */
.pg-body .wp-block-columns > .wp-block-column:has(> figure.wp-block-image:only-child),
.pg-body .wp-block-columns > .wp-block-column:has(> .wp-block-image:only-child) {
  flex: 0 1 auto !important; max-width: 46%;
}
.pg-body .wp-block-column figure.wp-block-image { text-align: center; }

/* ── 問い合わせフォームへの導線 ─────────────── */
.pg-body .formcta {
  margin: 2.6em 0; padding: 40px 32px;
  background: var(--surface-soft); border-radius: 6px; text-align: center;
}
.pg-body .formcta__l { margin: 0 0 24px; font-size: 18px; }
.pg-body .formcta__b { font-size: 18px; padding: 19px 48px; }
.pg-body .formcta__n { margin: 18px 0 0; font-size: 15px; color: var(--faint); }

/* ボタンの文字に下線を出さない（本文リンクの指定が効いてしまうため）*/
.pg-body .btn, .pg-body .b--jinr-button a { text-decoration: none; }
/* 枠線タイプのボタンは、塗りのボタンと役割を分ける */
.pg-body .o--button-inner.d--button-outline a {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--rule-strong);
}
.pg-body .o--button-inner.d--button-outline a:hover {
  background: var(--ink); color: var(--canvas) !important; border-color: var(--ink);
}

/* ── 発信（YouTube / X / note）3カラム ───────────
   媒体名とアイコンだけを大きく並べる。説明文は載せない。 */
.pg-body .sns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin: 2em 0 2.6em;
}
.pg-body .sns .snsc {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 38px 20px 34px;
  background: var(--surface-soft); border-radius: 8px;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .14s cubic-bezier(.2,.7,.2,1), border-color .14s;
}
.pg-body .sns .snsc:hover { transform: translateY(-3px); border-color: var(--rule-strong); }
.pg-body .sns .snsc__ic { display: block; width: 46px; height: 46px; }
.pg-body .sns .snsc__ic svg { width: 100%; height: 100%; display: block; }
.pg-body .sns .snsc--youtube .snsc__ic { height: 33px; }
.pg-body .sns .snsc__nm {
  font-size: 19px; font-weight: 700; letter-spacing: .01em; color: var(--ink);
}
@media (max-width: 720px) {
  .pg-body .sns { grid-template-columns: 1fr; gap: 12px; }
  .pg-body .sns .snsc { flex-direction: row; justify-content: flex-start; padding: 20px 24px; }
}

/* ── 実績の箇条書きにメリハリをつける ─────────────
   囲みの中の一覧を、1件ずつの行に分けて読ませる。
   数字と「制作実績」への導線を、本文と別の高さに置く。 */
.pg-body .c--simple-box-inner > ul.jinr-list { margin: 0; }
.pg-body .c--simple-box-inner > ul.jinr-list > li {
  padding: 18px 0 18px 26px; margin: 0;
  border-top: 1px solid var(--rule-strong);
  font-size: 18px; line-height: 1.85;
}
.pg-body .c--simple-box-inner > ul.jinr-list > li:first-child { border-top: none; padding-top: 4px; }
.pg-body .c--simple-box-inner > ul.jinr-list > li:last-child { padding-bottom: 4px; }
.pg-body .c--simple-box-inner > ul.jinr-list > li::before {
  left: 0; top: 1.5em; width: 8px; height: 8px;
}
.pg-body .c--simple-box-inner > ul.jinr-list > li:first-child::before { top: .85em; }
/* 「制作実績」への導線だけを、オレンジ線で囲ったボタンに見せる。
   本文に混ざるリンク（弁護士ドットコム等）はそのまま。 */
.pg-body .c--simple-box-inner > ul.jinr-list > li a.worklink {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 12px; vertical-align: 2px;
  padding: 7px 18px; border-radius: 999px;
  background: var(--canvas); border: 1px solid var(--accent);
  font-size: 15px; font-weight: 700; color: var(--accent-deep) !important;
  text-decoration: none; transition: background .14s, color .14s;
}
.pg-body .c--simple-box-inner > ul.jinr-list > li a.worklink:hover {
  background: var(--accent); color: #fff !important; border-color: var(--accent);
}

/* ── 略歴などの表は、罫線を下線だけにする ───────── */
.pg-body table.has-fixed-layout,
.pg-body .wp-block-flexible-table-block-table table {
  border-collapse: collapse; background: transparent;
}
.pg-body table.has-fixed-layout td,
.pg-body .wp-block-flexible-table-block-table table td {
  border: none; border-bottom: 1px solid var(--rule-strong);
  padding: 20px 8px; background: transparent; vertical-align: top;
}
.pg-body table.has-fixed-layout tr:first-child td,
.pg-body .wp-block-flexible-table-block-table table tr:first-child td {
  border-top: 1px solid var(--rule-strong);
}
.pg-body table.has-fixed-layout td:first-child,
.pg-body .wp-block-flexible-table-block-table table td:first-child {
  width: 22%; font-weight: 700; color: var(--faint);
  font-family: 'Poppins', 'Noto Sans JP', sans-serif; white-space: nowrap;
}
.pg-body .wp-block-flexible-table-block-table figcaption { text-align: left; }
@media (max-width: 720px) {
  .pg-body table.has-fixed-layout td,
  .pg-body .wp-block-flexible-table-block-table table td { padding: 14px 6px; font-size: 16px; }
  .pg-body table.has-fixed-layout td:first-child,
  .pg-body .wp-block-flexible-table-block-table table td:first-child { width: 27%; }
}

/* サービス一覧のカードは、本文リンクの下線を引き継がない */
.pg-body .svc a, .pg-body .svc__c { text-decoration: none; }
.pg-body .svc__ja, .pg-body .svc__en { text-decoration: none; }

/* 見出しを控えめにするページ（中身が短く、大見出しだと不釣り合いなもの）*/
/* ページタイトルの大きさは .pv h1 に一本化した（全ページ同じ）。
   以前ここにあった .pv--small / .pv--tiny の文字サイズ指定は、
   ページごとに大きさがばらつく原因だったので外している。
   ヒーローの「高さ」を変える指定は下にそのまま残してある。 */

/* カードを主役にするページは、読み幅の制限を外して広く使う */
.pg--wide.pg--norail .pg-body,
.pg--wide.pg--norail .cend { max-width: none; }

/* ── クライアントの声（HP制作）ページ専用 ── */
/* .pv--voice の文字サイズ指定も外した（タイトルは全ページ .pv h1 で統一） */

.vc-card { margin: 3em 0; }
.vc-card + .vc-card { padding-top: 3em; border-top: 1px solid var(--hairline); }
.vc-card__top { display: flex; align-items: center; gap: 28px; margin-bottom: 1.4em; }
.vc-card__photo { flex: none; width: 184px; height: 184px; border-radius: 14px; overflow: hidden; }
.vc-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-card__office { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 4px; }
.vc-card__top .vc-card__person {
  margin: 0; padding: 0; border-bottom: none;
  font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; line-height: 1.5; color: var(--ink);
}
.vc-card__body { display: flex; flex-direction: column; gap: 2em; }
.vc-card__col { min-width: 0; }
.vc-card__col > *:first-child { margin-top: 0; }
.vc-card__col > *:last-child { margin-bottom: 0; }
.vc-card__name { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vc-card__name .vc-card__link { margin-top: 0; }

@media (max-width: 720px) {
  .vc-card__top { gap: 16px; }
  .vc-card__photo { width: 96px; height: 96px; }
  .vc-card__office { font-size: 15px; }
  .vc-card__top .vc-card__person { font-size: clamp(19px, 4.6vw, 24px); }
  .vc-card__name .vc-card__link { padding: 10px 20px; font-size: 14px; }
}
