@charset "utf-8";
/* ==========================================================================
   顧問弁護士.jp 業界特化ページ 共通スタイル
   （IT企業向け・訪問介護事業者向けなど、各業界の特化ページと関連記事で共用）

   色を変えたいときは、すぐ下の :root の値だけを書き換えてください。
   レイアウトの考え方：パソコンでは「左に見出し・右に本文」の2段組、
   スマホでは1段。紺を基調に、事務所カラーの青を差し色、黄色は申込みボタン専用。
   ========================================================================== */
:root {
  color-scheme: light;
  --navy: #1b365d;        /* 基調色（美容ページと共通の紺） */
  --navy-deep: #13294b;
  --blue: #3886c8;        /* 事務所カラーの青（差し色） */
  --ink: #1c2530;         /* 本文の文字色 */
  --ink-soft: #4b5a6b;    /* 補足の文字色 */
  --paper: #ffffff;
  --mist: #f2f6fb;        /* 薄い青みの背景 */
  --line: #d4dde9;        /* 罫線 */
  --link: #1c5a9c;        /* 文中リンク */
  --action: #f6c244;      /* 申込みボタン専用の黄色 */
  --action-deep: #d6a01c;
  --font-display: "Hiragino Mincho ProN", "Noto Serif JP", "Noto Serif CJK JP", "Yu Mincho", YuMincho, "BIZ UDPMincho", serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 60px;
}
@media (min-width: 1000px) {
  :root { --gutter: 32px; --header-h: 68px; }
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
p, ul, ol, table { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-wrap: balance;
}
svg { max-width: 100%; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 700; }

/* 文節の途中で改行させない（見出し・ボタンなど短い文） */
.bx { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; max-width: 100%; }

/* 別タブで開くリンクの目印 */
a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.28em;
  vertical-align: -0.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 3H3v10h10V9.5M9.5 2.5h4v4M13.5 2.5l-6 6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 3H3v10h10V9.5M9.5 2.5h4v4M13.5 2.5l-6 6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--action); color: #1a2942; box-shadow: 0 2px 0 var(--action-deep); }
.btn--primary:hover { background: #fbd368; color: #1a2942; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--mist); color: var(--navy); }
.btn--ghost-inv { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn--ghost-inv:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: 13px; box-shadow: none; }
@media (min-width: 400px) {
  .btn--sm { font-size: 14px; padding: 6px 18px; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  color: var(--navy);
  line-height: 1.2;
  text-decoration: none;
}
.brand__logo { display: block; width: auto; height: 36px; }
.brand__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.brand__sub { display: none; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
@media (min-width: 640px) {
  .brand__sub { display: block; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); }
}
.site-header .btn { flex: none; white-space: nowrap; }
.site-nav { display: none; }
/* 案内（ナビ）が出はじめる幅では横幅が足りないので、ロゴ横の「IT企業の顧問弁護士」を一時的に隠す */
@media (min-width: 1000px) and (max-width: 1099.98px) {
  .brand__sub { display: none; }
}
/* ロゴ横のページ名が長いページ（「訪問介護事業者の顧問弁護士」など）は、もう少し広い幅まで隠す */
@media (min-width: 1000px) and (max-width: 1159.98px) {
  .brand__sub--long { display: none; }
}
/* ロゴ横のページ名を2行に分けるページ（「医療機関・クリニックの／顧問弁護士」） */
.brand__sub--2l { line-height: 1.5; }
.brand__sub--2l > span { display: block; }
@media (max-width: 399.98px) {
  .brand__logo { height: 32px; }
  .brand__name { font-size: 15px; letter-spacing: 0.02em; }
  .site-header .btn { padding: 6px 12px; }
}
@media (max-width: 339.98px) {
  :root { --gutter: 14px; }
  .brand__logo { height: 30px; }
  .brand__name { font-size: 14px; }
  .site-header .btn { padding: 6px 9px; font-size: 12px; }
}
@media (min-width: 1000px) {
  .brand__logo { height: 46px; }
  .brand__name { font-size: 20px; }
  .site-nav { display: flex; gap: 26px; }
  .site-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .site-nav a:hover { border-bottom-color: var(--blue); color: var(--navy); }
}

/* ---------- ファーストビュー ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero::before {
  /* 方眼（仕様書の罫）を薄く敷く */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(110deg, transparent 5%, #000 60%, transparent 100%);
  mask-image: linear-gradient(110deg, transparent 5%, #000 60%, transparent 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px var(--gutter) 56px;
}
.hero__title { color: #fff; font-size: clamp(27px, 7.2vw, 44px); line-height: 1.42; letter-spacing: 0.02em; }
.hero__title--split .t-part { display: block; }
.hero__title--split .t-sub { margin-top: 0.62em; padding-top: 0.6em; border-top: 1px solid rgba(255, 255, 255, 0.3); width: fit-content; max-width: 100%; color: rgba(255, 255, 255, 0.94); font-size: 0.56em; letter-spacing: 0.06em; line-height: 1.6; }
.hero__lead { margin-top: 18px; color: rgba(255, 255, 255, 0.93); font-size: 16px; line-height: 2; }
.voice {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 26px 0 16px;
  padding: 13px 20px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px 16px 16px 3px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.9vw, 23px);
  font-weight: 700;
  line-height: 1.6;
}
/* 本文の節の書き出しに置く発言（白い背景用） */
.voice--paper {
  margin: 0 0 14px;
  border-color: #b4c5db;
  background: var(--mist);
  color: var(--navy);
  font-size: clamp(17px, 4.7vw, 21px);
}
.plan-card {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 44px rgba(6, 18, 40, 0.38);
}
.plan-card__photo { position: relative; }
.plan-card__photo img { display: block; width: 100%; }
.plan-card__photo .photo-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 16px 9px;
  background: linear-gradient(rgba(12, 24, 46, 0), rgba(12, 24, 46, 0.74));
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.plan-card__body { --pc-x: 22px; --pc-y: 22px; padding: var(--pc-y) var(--pc-x) 24px; }
.plan-card__wm { display: flex; margin: calc(var(--pc-y) * -1) calc(var(--pc-x) * -1) 18px; }
.plan-card__wm .wordmark { flex: 1; padding: 13px 16px 14px; border-radius: 0; font-size: 23px; }
.plan-card__facts { padding: 0; list-style: none; }
.fact { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.fact:first-child { padding-top: 0; border-top: 0; }
.fact--price { display: flex; flex-wrap: wrap; align-items: baseline; color: var(--navy); font-size: 16px; font-weight: 700; }
.fact--note { margin-top: -7px; padding-top: 0; border-top: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; }
.fact--key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; color: var(--navy); font-size: 17px; font-weight: 700; }
.fact__num {
  margin: 0 5px 0 4px;
  font-family: var(--font-display);
  font-size: 50px;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.1;
}
.fact__tax { margin-left: 3px; font-size: 14px; font-feature-settings: "palt"; letter-spacing: 0.02em; white-space: nowrap; }
.fact__amt { font-weight: 700; }
/* 「無制限」の強調：大きな明朝体＋蛍光ペン風の下線 */
.fact__em {
  padding: 0 4px;
  background: linear-gradient(transparent 58%, #ffe394 58%, #ffe394 93%, transparent 93%);
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
/* 「…は回数 無制限」の前の文が長いとき：2行に分け、最後の文節を「無制限」と同じ行に置く */
.fact--long { row-gap: 0; }
.fact__last { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.plan-card__cta { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 388px;
    align-items: center;
    gap: 64px;
    padding-top: 48px;
    padding-bottom: 60px;
  }
  .plan-card__body { --pc-x: 28px; padding-bottom: 28px; }
  .plan-card .fact__num { margin-right: 3px; font-size: 46px; }   /* 「（税込10,780円）」まで1行に収める */
  .plan-card .fact { padding-top: 11px; padding-bottom: 11px; }
  .plan-card .fact:first-child, .plan-card .fact--note { padding-top: 0; }
  .plan-card .btn { min-height: 52px; }
}
/* タブレット幅では、写真を左・料金を右に並べる */
@media (min-width: 600px) and (max-width: 959.98px) {
  .plan-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .plan-card__photo { height: 100%; }
  .plan-card__photo img { height: 100%; object-fit: cover; object-position: 58% 20%; }
  .plan-card__body { --pc-x: 28px; --pc-y: 26px; padding-bottom: 28px; }
}

/* ---------- 「えそらプラン」のロゴ風表示（青い帯に白い丸ゴシック。文字の形は wordmark.json） ---------- */
.wm-defs { position: absolute; }
.vh { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.15em 0.54em;
  border-radius: 0.3em;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}
.wordmark svg { display: block; width: auto; height: 1em; fill: currentColor; }
.sec__wm { margin-bottom: 18px; }
.wordmark--sec { font-size: 19px; }

/* ---------- えそらプランの3つの特徴 ---------- */
.planband { padding: 40px 0 44px; background: #fff; }
.planband__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.planband__title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: clamp(22px, 5.6vw, 28px); line-height: 1.4; }
.planband__title .wordmark { font-size: clamp(22px, 6vw, 27px); }
.planfeats { display: grid; margin-top: 24px; padding: 0; border-top: 2px solid var(--navy); list-style: none; counter-reset: planfeat; }
.planfeat { position: relative; padding: 22px 0 24px 44px; border-bottom: 1px solid var(--line); counter-increment: planfeat; }
.planfeat::before {
  content: counter(planfeat);
  position: absolute;
  left: 0;
  top: 24px;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  color: var(--link);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
}
.planfeat__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; font-family: var(--font-body); font-size: 17px; line-height: 1.5; }
.planfeat__big { font-family: var(--font-display); font-size: 38px; letter-spacing: 0.05em; line-height: 1.2; }
.planfeat__sub { font-size: 14px; }
.planfeat__price { display: flex; flex-wrap: wrap; align-items: baseline; margin-top: 2px; color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.4; }
.planfeat__num { margin: 0 3px 0 4px; font-family: var(--font-display); font-size: 38px; font-variant-numeric: lining-nums tabular-nums; line-height: 1.2; }
.planfeat__tax { margin-left: 3px; font-size: 14px; font-feature-settings: "palt"; letter-spacing: 0.02em; white-space: nowrap; }
.planfeat__body { margin-top: 10px; font-size: 15px; line-height: 1.9; }
.planfeat__note { margin-top: 6px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.planfeat__more { margin-top: 10px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.planfeat__more a { display: inline-flex; align-items: center; gap: 8px; }
.planfeat__more a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); }
@media (min-width: 860px) {
  .planband { padding: 52px 0 60px; }
  .planfeats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planfeat { padding: 26px 26px 28px 26px; border-bottom: 0; border-left: 1px solid var(--line); }
  .planfeat:first-child { padding-left: 0; border-left: 0; }
  .planfeat:last-child { padding-right: 0; }
  .planfeat::before { position: static; display: block; margin-bottom: 12px; }
}

/* ---------- 本文セクション（左：見出し／右：本文） ---------- */
.sec { padding: 60px 0; border-top: 1px solid var(--line); }
.sec--first { border-top: 0; }
.sec--mist { background: var(--mist); }
.sec--navy { border-top: 0; background: var(--navy); color: #fff; }
.sec__inner {
  display: grid;
  gap: 26px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sec__title { padding-left: 16px; border-left: 4px solid var(--blue); font-size: clamp(22px, 5.6vw, 28px); line-height: 1.5; }
.sec--navy .sec__title { color: #fff; }
/* 見出しが「前置き　本題」の2つの部分でできているセクション：前置きを小さく上に置く */
.sec__title--split .sec__kicker { display: block; margin-bottom: 8px; color: var(--link); font-family: var(--font-body); font-size: 14px; letter-spacing: 0.08em; line-height: 1.5; }
.sec__title--split .sec__q { display: block; }
.sec__body > * + * { margin-top: 1.5em; }
@media (min-width: 960px) {
  .sec { padding: 96px 0; }
  .sec__inner { grid-template-columns: 300px minmax(0, 720px); justify-content: space-between; gap: 56px; }
  .sec__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* 相談できる場面 */
.scenes { display: grid; gap: 36px 44px; }
.scene__icon { display: block; width: 34px; height: 34px; margin-bottom: 12px; color: var(--blue); }
.scene__title { margin-bottom: 8px; font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
.scene__text { font-size: 15px; line-height: 1.95; }
.scene__more { margin-top: 12px; font-size: 15px; line-height: 1.7; }
@media (min-width: 640px) {
  .scenes { grid-template-columns: 1fr 1fr; }
}
/* 場面が3つのページ用：1件ずつ横長に並べ、左にアイコンを置く */
.scenes--rows { gap: 0; }
.scenes--rows .scene { padding: 30px 0; border-top: 1px solid var(--line); }
.scenes--rows .scene:first-child { padding-top: 0; border-top: 0; }
.scenes--rows .scene:last-child { padding-bottom: 0; }
.scenes--rows .scene__title { font-size: 18px; }
@media (min-width: 640px) {
  .scenes--rows { grid-template-columns: 1fr; }
  .scenes--rows .scene { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; padding: 34px 0; }
  .scenes--rows .scene__icon { grid-row: 1 / span 4; width: 38px; height: 38px; margin: 0; }
  .scenes--rows .scene > :not(.scene__icon) { grid-column: 2; }
}

/* 事務所の紹介（写真つき） */
.about { display: grid; gap: 22px; }
.about__photo { max-width: 250px; }
.about__photo img { display: block; width: 100%; border-radius: 8px; }
.about__photo .photo-cap { margin-top: 8px; color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; line-height: 1.5; }
.about__text > * + * { margin-top: 1.5em; }
@media (min-width: 640px) {
  .about { grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 36px; }
  .about__photo { max-width: none; }
}

/* チャット相談例（右：相談する会社側／左：弁護士側） */
.example__title { font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
.chat { display: grid; gap: 22px; padding: 24px 16px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.chat__msg { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px; }
.chat__msg--client { grid-template-columns: minmax(0, 1fr) 44px; }
.chat__msg--client .chat__avatar { order: 2; }
.chat__avatar { display: grid; place-items: center; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; background: #dbe5f1; color: var(--navy); }
.chat__avatar svg { width: 25px; height: 25px; }
.chat__avatar--firm { border: 1px solid var(--line); background: #fff; }
.chat__avatar--firm img { display: block; width: 100%; height: 100%; }
.chat__main { display: grid; gap: 7px; min-width: 0; }
.chat__msg--client .chat__main { justify-items: end; }
.chat__who { color: var(--navy); font-size: 13px; line-height: 1.5; }
.chat__bubble { position: relative; width: fit-content; max-width: 100%; padding: 14px 18px 15px; border-radius: 18px; font-size: 16px; line-height: 1.85; }
.chat__bubble::before { content: ""; position: absolute; top: 0; width: 13px; height: 15px; background: inherit; }
.chat__msg--client .chat__bubble { border-top-right-radius: 3px; background: var(--navy); color: #fff; }
.chat__msg--client .chat__bubble::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.chat__msg--lawyer .chat__bubble { border-top-left-radius: 3px; background: #e6eef8; color: var(--ink); }
.chat__msg--lawyer .chat__bubble::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.thread__who { margin-bottom: 8px; color: var(--navy); font-size: 14px; line-height: 1.5; }
.thread__note {
  max-width: 660px;
  padding: 20px 24px 22px;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(27, 54, 93, 0.07);
}
.thread__note .thread__who { margin-bottom: 6px; font-size: 15px; }
.thread__note > p:not(.thread__who) + p { margin-top: 0.9em; }
/* 相談例：名前の行やメモの題が、原稿で見出し3になっているページ（見た目は従来の名前の行と同じ） */
h3.chat__who, h3.thread__who { font-family: var(--font-body); font-weight: 700; text-wrap: wrap; }
/* 文例の枠を、色つきの背景の欄（相談例）に置くとき */
.sample--paper { max-width: 660px; background: #fff; }
.sec__body > .example__title--next { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line); }
@media (min-width: 640px) {
  .chat { padding: 30px 28px 32px; }
  .chat__msg--client { padding-left: 64px; }
  .chat__msg--lawyer { padding-right: 64px; }
}
@media (max-width: 639.98px) {
  .chat__msg { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .chat__msg--client { grid-template-columns: minmax(0, 1fr) 38px; }
  .chat__avatar { width: 38px; height: 38px; }
  .chat__avatar svg { width: 22px; height: 22px; }
  .chat__bubble { padding: 12px 15px 13px; font-size: 15px; }
  .thread__note { padding: 18px 18px 20px; }
}

/* 記事へのリンク一覧 */
.doc-links { padding: 0; border-top: 1px solid var(--line); list-style: none; }
.doc-links li { border-bottom: 1px solid var(--line); }
.doc-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 10px 17px 4px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}
.doc-links a:hover { background: var(--mist); }
.doc-links svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.doc-links a::after,
.arrow-link::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
}
.doc-links a::after { margin-left: auto; }
.doc-links__t { display: block; }
.doc-links__sub { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.t-gap { display: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
/* 代表弁護士の紹介へのリンク（小さな顔写真つき） */
.profile-link a { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; line-height: 1.6; }
.profile-link__img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.profile-link__text::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 9px; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); vertical-align: 0.1em; }
/* 2行以上になりうる長いリンクは、矢印を文末に続けて置く */
.arrow-link--flow { display: inline; }
.arrow-link--flow::after { display: inline-block; margin-left: 9px; vertical-align: 0.1em; }

/* 表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.tbl th, .tbl td { padding: 11px 8px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl thead th { border-color: var(--navy); border-right-color: rgba(255, 255, 255, 0.28); background: var(--navy); color: #fff; font-family: var(--font-body); font-weight: 700; }
.tbl thead th:last-child { border-right-color: var(--navy); }
.tbl tbody th { background: var(--mist); color: var(--navy); font-weight: 700; }
.tbl .num { margin: 0 1px; color: var(--navy); font-family: var(--font-display); font-size: 1.45em; font-weight: 700; line-height: 1.2; }
.tbl .is-none { color: #6b7887; }
.tbl__sub { display: block; margin-top: 3px; }
.tbl__tag { display: inline-block; margin-right: 4px; padding: 0 7px 1px; border: 1px solid var(--blue); border-radius: 4px; color: var(--link); font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 0.22em; white-space: nowrap; }
.tbl .bx { overflow-wrap: normal; }
.tbl--price tbody th, .tbl--center tbody th { white-space: nowrap; }
.tbl--center td { text-align: center; white-space: nowrap; }
.tbl--center tbody th { text-align: center; }
@media (min-width: 640px) {
  .tbl { font-size: 15px; }
  .tbl th, .tbl td { padding: 14px 18px; }
}
/* 列の多い表は、スマホでは1行ずつカード状に並べ替える（横スクロールさせない） */
@media (max-width: 639.98px) {
  .tbl--stack { background: transparent; font-size: 15px; }
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl--stack, .tbl--stack tbody, .tbl--stack tr, .tbl--stack tbody th, .tbl--stack td { display: block; }
  .tbl--stack tr { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .tbl--stack tr + tr { margin-top: 12px; }
  .tbl--stack tbody th { padding: 9px 16px; border: 0; background: var(--navy); color: #fff; font-size: 16px; text-align: left; }
  .tbl--stack tbody th::before { content: attr(data-label) "\3000"; font-size: 13px; font-weight: 400; opacity: 0.85; }
  .tbl--stack td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: right;
  }
  .tbl--stack td::before { content: attr(data-label); flex: none; color: var(--ink-soft); font-size: 13px; text-align: left; }
  .tbl--stack .tbl__val { min-width: 0; }
  .tbl--stack td { white-space: normal; }
}

/* 料金の補足説明 */
.detail { padding-top: 26px; border-top: 1px solid var(--line); }
.detail__title { margin-bottom: 10px; font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
.detail__body > * + * { margin-top: 1em; }

/* よくあるご質問 */
.faq { border-top: 1px solid var(--line); }
.faq__item { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.faq__q, .faq__a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.faq__q { font-family: var(--font-body); font-size: 17px; line-height: 1.7; }
.faq__q::before { content: "Q"; color: var(--blue); font-family: var(--font-display); font-size: 23px; line-height: 1.26; }
.faq__a { margin-top: 10px; }
.faq__a::before { content: "A"; color: var(--ink-soft); font-family: var(--font-display); font-size: 23px; font-weight: 700; line-height: 1.4; }

/* お申込み */
.sec--navy p { color: rgba(255, 255, 255, 0.93); }
.sec--navy a:not(.btn) { color: #fff; }
.cta-row { display: grid; gap: 12px; margin-top: 30px; }
@media (min-width: 640px) {
  .cta-row { grid-template-columns: auto auto; justify-content: start; }
}

/* ---------- フッター ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.site-footer__inner { display: grid; gap: 22px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-footer__name { color: var(--navy); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 0; list-style: none; }
.site-footer__links a { color: var(--ink-soft); }
.site-footer__copy { font-size: 12px; }
@media (min-width: 800px) {
  .site-footer__links { padding-top: 16px; border-top: 1px solid var(--line); }
}

/* ---------- 記事ページ ---------- */
.crumbs { max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter) 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #9aa8b8; }
.crumbs a { color: var(--ink-soft); }
.article { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 32px var(--gutter) 72px; }
.article__title { font-size: clamp(24px, 6.2vw, 34px); line-height: 1.45; }
.article__title .t-part { display: block; }
.article__title .t-sub { margin-top: 0.55em; color: var(--ink); font-size: 0.66em; line-height: 1.6; }
.article__meta { margin-top: 18px; color: var(--ink-soft); font-size: 13px; }
.prose { margin-top: 30px; }
.prose > * + * { margin-top: 1.55em; }
.prose h2 { margin-top: 2.5em; padding-left: 14px; border-left: 4px solid var(--blue); font-size: clamp(20px, 5vw, 25px); line-height: 1.55; }
.prose h3 { margin-top: 2em; font-family: var(--font-body); font-size: 18px; }
.toc { padding: 20px 24px 22px; border-radius: 8px; background: var(--mist); font-size: 15px; line-height: 1.7; }
.toc__title { margin-bottom: 8px; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.toc ol { display: grid; gap: 6px; padding-left: 1.5em; }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose .tbl tbody th { width: 38%; }
.prose .tbl--stack tbody th { width: auto; white-space: nowrap; }   /* 3列以上の表：1列目（時刻など）は中身の幅に合わせる */
.prose .tbl--headwide tbody th { width: 46%; }                         /* 行の見出しが長い文の表：見出しの列を広げる */
@media (max-width: 639.98px) {
  /* 記事の中の3列以上の表は、スマホでは項目名の下に内容を左寄せで置く（内容が文になるため） */
  .prose .tbl--stack td { display: block; text-align: left; }
  .prose .tbl--stack td::before { display: block; margin-bottom: 1px; }
}
@media (max-width: 639.98px) {
  /* 行の見出しが長い文の2列の表は、スマホでは1行ずつカードにして、見出し → 内容の順に縦に並べる（細い列に文を押し込まない） */
  .prose .tbl--headwide { background: transparent; font-size: 15px; }
  .prose .tbl--headwide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose .tbl--headwide, .prose .tbl--headwide tbody, .prose .tbl--headwide tr, .prose .tbl--headwide tbody th, .prose .tbl--headwide td { display: block; }
  .prose .tbl--headwide tr { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .prose .tbl--headwide tr + tr { margin-top: 12px; }
  .prose .tbl--headwide tbody th { width: auto; padding: 12px 16px 13px; border: 0; }
  .prose .tbl--headwide td { padding: 12px 16px 13px; border: 0; border-top: 1px solid var(--line); }
  .prose .tbl--headwide tbody th::before,
  .prose .tbl--headwide td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.5; }
}
.sample {
  padding: 16px 20px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: var(--mist);
  font-size: 15px;
  line-height: 1.9;
}
.sample__label { margin-bottom: 8px; color: var(--link); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.sample__head { margin-bottom: 8px; color: var(--link); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.sample__subject { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #b8c5d6; font-weight: 700; }
.sample p + p { margin-top: 0.9em; }
.sample .sample__label + p, .sample .sample__head + p, .sample .sample__subject + p { margin-top: 0; }
.callout { margin-top: 3.2em; padding: 26px 24px 28px; border-radius: 10px; background: var(--navy); color: #fff; }
.callout p { color: rgba(255, 255, 255, 0.94); }
.callout .callout__wm { margin-bottom: 14px; }
.wordmark--callout { font-size: 17px; }
.callout__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--action);
  box-shadow: 0 2px 0 var(--action-deep);
  color: #1a2942;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.callout__link:hover { background: #fbd368; color: #1a2942; }
.others { margin-top: 44px; }
.others__title { margin-bottom: 10px; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
@media (min-width: 640px) {
  .article { padding-top: 44px; }
  .callout { padding: 32px 34px 34px; }
}

/* ---------- 図解（記事ページ） ----------
   紺・青＝当初の合意・予定・計画の範囲、勤怠に計上する時間
   朱＝範囲の外にあるもの（追加費用・別途見積り・予定外の依頼・漏れていた時間）と注意書き
   破線・灰＝数えないもの（通勤、自由に過ごせた時間） */
.fig {
  --alt: #b83a26;
  --alt-tint: #fdf1ee;
  --alt-line: #e6b5aa;
  --node: #9fb3cc;
  --wash: #e8f0f9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #f8fafd;
  background-image: radial-gradient(circle, #d9e2ee 1px, transparent 1.3px);
  background-size: 18px 18px;
  font-size: 14px;
  line-height: 1.7;
}
.prose > .fig { margin-top: 2em; }
.prose > .fig + p, .prose > .fig + .sample, .prose > .fig + .table-wrap, .prose > .fig + .toc { margin-top: 2em; }
.fig ul, .fig ol { padding: 0; list-style: none; }
.fig small { font-size: 12px; }
.fig__cap { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: #fff; }
.fig__no {
  display: grid;
  flex: none;
  place-items: center;
  padding: 0 13px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fig__title { padding: 10px 14px 11px; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.5; }
.fig__body { display: grid; gap: 14px; padding: 18px 14px 20px; }
.fig__body > * { min-width: 0; }
.fig__note {
  padding: 11px 14px 13px;
  border-top: 1px dashed #c3cfdf;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}
@media (min-width: 600px) {
  .fig__title { padding: 11px 18px 12px; font-size: 16px; }
  .fig__body { gap: 16px; padding: 22px 22px 24px; }
  .fig__note { padding: 12px 22px 14px; }
}

/* 小見出し・地の文・箇条書き */
.flabel { display: flex; gap: 8px; margin-bottom: -6px; color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.6; }
.flabel::before { content: ""; flex: none; width: 12px; height: 3px; margin-top: 0.62em; border-radius: 2px; background: var(--blue); }
.fplain { color: var(--navy); font-weight: 700; line-height: 1.65; }
.fdots { display: grid; gap: 5px; }
.fdots li { position: relative; padding-left: 15px; }
.fig__body > .fdots { padding: 10px 14px 12px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fdots li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* 発言・メールの文面（吹き出し） */
.fquote {
  justify-self: start;
  max-width: 100%;
  padding: 9px 15px 10px 11px;
  border: 1.5px solid var(--navy);
  border-radius: 14px 14px 14px 3px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.65;
}
.fquote__who { display: block; padding-left: 5px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

/* 札（書類・項目の列挙） */
.fchips { display: flex; flex-wrap: wrap; gap: 7px 8px; }
.fchips li {
  max-width: 100%;
  padding: 4px 12px 5px;
  border: 1px solid var(--node);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.fchips--doc li { position: relative; padding-left: 31px; border-radius: 6px; }
.fchips--doc li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0.42em;
  width: 16px;
  height: 16px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 番号つきの手順 */
.fsteps { counter-reset: fstep; }
.fsteps > li { position: relative; padding: 0 0 14px 40px; counter-increment: fstep; }
.fsteps > li:last-child { padding-bottom: 0; }
.fsteps > li::before {
  content: counter(fstep);
  position: absolute;
  left: 0;
  top: 7px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.fsteps > li::after { content: ""; position: absolute; left: 13px; top: 35px; bottom: -7px; width: 2px; background: var(--node); }
.fsteps > li:last-child::after { display: none; }
.fsteps__card { padding: 10px 14px 12px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fsteps__t { display: block; color: var(--navy); font-size: 15px; line-height: 1.55; }
.fsteps__b { display: grid; gap: 9px; margin-top: 8px; }
.fsteps__b > * { min-width: 0; }

/* 日付の並び（スマホは縦、広い画面は横） */
.ftl > li { position: relative; display: grid; gap: 1px; padding: 0 0 16px 30px; }
.ftl > li:last-child { padding-bottom: 0; }
.ftl > li::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: -8px; width: 2px; background: var(--node); }
.ftl > li:last-child::before { display: none; }
.ftl > li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px #f8fafd;
}
.ftl > li.is-sub::after { background: #fff; }
.ftl > li.is-sub::before { background: repeating-linear-gradient(to bottom, var(--node) 0 5px, transparent 5px 9px); }
.ftl__when { color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.65; }
.ftl__t { color: var(--navy); font-size: 15px; line-height: 1.55; }
.ftl__n { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.ftl > li.is-sub .ftl__when, .ftl > li.is-sub .ftl__t { color: var(--ink-soft); }
@media (min-width: 600px) {
  .ftl { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
  .ftl > li, .ftl > li:last-child { align-content: start; padding: 0 14px 0 0; }
  .ftl > li::before { left: 8px; right: 0; top: 42px; bottom: auto; width: auto; height: 2px; }
  .ftl > li.is-sub::before { background: repeating-linear-gradient(to right, var(--node) 0 5px, transparent 5px 9px); }
  .ftl > li::after { left: 0; top: 36px; }
  .ftl__when { height: 30px; margin-bottom: 30px; font-size: 18px; }
}

/* 問い → 場合分け */
.fcases { display: grid; }
.fcases__q {
  position: relative;
  justify-self: center;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 8px 18px 9px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}
.fcases__q::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; margin-left: -1px; background: var(--node); }
.fcases__list { position: relative; display: grid; gap: 10px; }
.fcase { position: relative; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fcase__if { padding: 8px 14px 9px; border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; background: var(--wash); color: var(--navy); font-weight: 700; line-height: 1.55; }
.fcase__then { display: grid; gap: 7px; padding: 10px 14px 13px; }
.fcase--alt { border-color: var(--alt-line); }
.fcase--alt .fcase__if { border-bottom-color: var(--alt-line); background: var(--alt-tint); color: var(--alt); }
@media (min-width: 600px) {
  .fcases__q { margin-bottom: 24px; }
  .fcases__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .fcases__list::before { content: ""; position: absolute; top: -12px; left: calc((100% - 16px) / 4); right: calc((100% - 16px) / 4); height: 2px; background: var(--node); }
  .fcase::before { content: ""; position: absolute; left: 50%; top: -12px; width: 2px; height: 11px; margin-left: -1px; background: var(--node); }
}

/* 左の事柄 → 右の対応 */
.fmap { display: grid; gap: 14px; }
.fmap__row { display: grid; }
.fmap__from { justify-self: start; max-width: 100%; padding: 7px 14px 8px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; line-height: 1.55; }
.fmap__to { position: relative; display: grid; gap: 7px; margin-top: 18px; padding: 10px 14px 13px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fmap__to::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -16px;
  width: 12px;
  height: 14px;
  background: var(--blue);
  clip-path: polygon(38% 0, 62% 0, 62% 50%, 100% 50%, 50% 100%, 0 50%, 38% 50%);
}
.fmap__row--alt .fmap__from { background: var(--alt); }
.fmap__row--alt .fmap__to { border-color: var(--alt-line); }
.fmap__row--alt .fmap__to::before { background: var(--alt); }
@media (min-width: 600px) {
  .fmap__row { grid-template-columns: minmax(0, 30%) minmax(0, 1fr); gap: 30px; align-items: start; }
  .fmap__from { justify-self: stretch; margin-top: 4px; }
  .fmap__to { margin-top: 0; }
  .fmap__to::before { left: -23px; top: 15px; width: 16px; height: 12px; clip-path: polygon(0 38%, 55% 38%, 55% 0, 100% 50%, 55% 100%, 55% 62%, 0 62%); }
}

/* 項目と内容の対応表 */
.frows { overflow: hidden; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.frow { display: grid; gap: 4px; padding: 10px 14px 12px; }
.frow + .frow { border-top: 1px solid var(--line); }
.frow__k { color: var(--navy); font-weight: 700; line-height: 1.6; }
.frow__v { display: grid; gap: 7px; min-width: 0; }
.frow--alt { background: var(--alt-tint); }
.frow--alt .frow__k { color: var(--alt); }
@media (min-width: 600px) {
  .frow { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 18px; align-items: baseline; }
}

/* 矢印でつなぐ並び（スマホは縦、広い画面は横） */
.fchain { display: grid; gap: 22px; }
.fchain > li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 8px 12px 9px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.fchain > li + li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 12px;
  height: 14px;
  margin-left: -6px;
  background: var(--blue);
  clip-path: polygon(38% 0, 62% 0, 62% 50%, 100% 50%, 50% 100%, 0 50%, 38% 50%);
}
.fchain small { color: var(--ink-soft); font-weight: 700; line-height: 1.5; }
.fchain--row { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 24px; }
.fchain--row > li { padding-right: 8px; padding-left: 8px; }
.fchain--row > li + li::before { left: -19px; top: 50%; width: 14px; height: 12px; margin: -6px 0 0; clip-path: polygon(0 38%, 55% 38%, 55% 0, 100% 50%, 55% 100%, 55% 62%, 0 62%); }
.fchain > li.is-plain { border: 1px solid var(--node); }
.fchain > li.is-alt { border-color: var(--alt); background: var(--alt-tint); color: var(--alt); }
.fchain > li.is-alt small { color: var(--alt); }
@media (min-width: 600px) {
  .fchain:not(.fchain--long) { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 26px; }
  .fchain:not(.fchain--long) > li + li::before { left: -21px; top: 50%; width: 16px; height: 12px; margin: -6px 0 0; clip-path: polygon(0 38%, 55% 38%, 55% 0, 100% 50%, 55% 100%, 55% 62%, 0 62%); }
}
@media (min-width: 800px) {   /* 4つ以上つなぐ並びは、幅に余裕があるときだけ横に並べる */
  .fchain--long { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 26px; }
  .fchain--long > li + li::before { left: -21px; top: 50%; width: 16px; height: 12px; margin: -6px 0 0; clip-path: polygon(0 38%, 55% 38%, 55% 0, 100% 50%, 55% 100%, 55% 62%, 0 62%); }
}

/* 箱・箱の横並び・下向きの矢印 */
.fsplit { display: grid; gap: 10px; }
.fbox { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 10px 14px 12px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fbox__h { color: var(--navy); font-size: 14.5px; line-height: 1.55; }
.fbox--alt { border-color: var(--alt-line); background: var(--alt-tint); }
.fbox--alt .fbox__h { color: var(--alt); }
@media (min-width: 600px) {
  .fsplit { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 14px; }
}
.farrow { justify-self: center; width: 16px; height: 20px; background: var(--blue); clip-path: polygon(38% 0, 62% 0, 62% 52%, 100% 52%, 50% 100%, 0 52%, 38% 52%); }

/* 番号つきの要点 */
.fpoints { display: grid; gap: 10px; counter-reset: fpoint; }
.fpoints > li {
  position: relative;
  padding: 10px 14px 11px 48px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  counter-increment: fpoint;
}
.fpoints > li::before {
  content: counter(fpoint);
  position: absolute;
  left: 12px;
  top: 9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}
@media (min-width: 600px) {
  .fpoints { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .fpoints > li { padding: 46px 12px 14px; text-align: center; }
  .fpoints > li::before { left: 50%; top: 12px; margin-left: -13px; }
}
@media (min-width: 600px) {
  /* 2列に並べる指定（項目が4つのときなど）：番号は左に置いたまま */
  .fpoints--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fpoints--c2 > li { padding: 11px 14px 12px 50px; text-align: left; }
  .fpoints--c2 > li::before { left: 13px; top: 10px; margin-left: 0; }
}

/* 注意書き・用語・適用範囲 */
.fwarn { position: relative; padding: 9px 14px 10px 42px; border: 1px solid var(--alt-line); border-radius: 8px; background: var(--alt-tint); color: #7a2415; font-weight: 700; line-height: 1.65; }
.fwarn::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 0.72em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--alt);
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.fdef { padding: 10px 14px 12px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fdef b { display: inline-block; margin-right: 10px; padding: 0 10px 1px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 13px; }
.fscope { justify-self: start; padding: 3px 12px 4px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.6; }

/* 工数の内訳（帯の長さ＝人日）と合計 */
.fbar { display: flex; gap: 3px; }
.fbar > span { display: grid; align-content: center; justify-items: center; min-width: 0; padding: 7px 4px 8px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.fbar > span:first-child { border-radius: 8px 0 0 8px; }
.fbar > span:last-child { border-radius: 0 8px 8px 0; }
.fbar b { display: block; font-size: 15px; white-space: nowrap; }
.fsum { margin-top: -6px; padding: 9px 12px 10px; border: 1.5px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; line-height: 1.6; text-align: center; }
.fsum b { margin-left: 2px; color: var(--alt); font-size: 21px; line-height: 1.2; }
.fsum small { font-weight: 400; }
@media (max-width: 359.98px) {
  .fchain--row { gap: 22px; }
  .fchain--row > li { padding-right: 6px; padding-left: 6px; }
  .fchain--row > li + li::before { left: -18px; }
}

/* 公開日ごとの予定表 */
.flanes { display: grid; gap: 6px; padding: 12px 12px 14px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.flanes__head, .flanes__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flanes__head span { padding-bottom: 5px; border-bottom: 2px solid var(--node); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1.5; text-align: center; }
.flanes__name { margin-top: 8px; color: var(--navy); font-weight: 700; line-height: 1.55; }
.flanes__cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 5px;
  min-height: 46px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--wash);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.flanes__cell.is-empty { border: 1.5px dashed #c3cfdf; background: none; }
.ftag { padding: 1px 8px 2px; border-radius: 4px; background: var(--navy); color: #fff; font-size: 12.5px; white-space: nowrap; }
.ftag--alt { background: var(--alt); }
.fig .flegend { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #c3cfdf; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; }
.flegend li { position: relative; padding-left: 18px; }
.flegend li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 11px; height: 11px; border-radius: 3px; background: var(--navy); }
.flegend li.is-alt::before { background: var(--alt); }

/* 起点 →（期間）→ 終点 */
.fspan { display: grid; }
.fspan__end { padding: 8px 14px 9px; border: 1.5px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; line-height: 1.5; text-align: center; }
.fspan__mid { position: relative; padding: 12px 0 14px 36px; color: var(--navy); font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.fspan__mid::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 3px;
  bottom: 3px;
  width: 12px;
  background: var(--blue);
  clip-path: polygon(38% 0, 62% 0, 62% calc(100% - 9px), 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px), 38% calc(100% - 9px));
}
@media (min-width: 600px) {
  .fspan { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .fspan__end { padding: 12px 18px 13px; }
  .fspan__mid { padding: 0 16px 18px; text-align: center; }
  .fspan__mid::before { left: 5px; right: 5px; top: auto; bottom: 0; width: auto; height: 12px; clip-path: polygon(0 38%, calc(100% - 9px) 38%, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, calc(100% - 9px) 62%, 0 62%); }
}

/* 右寄せの吹き出し（やり取りの返事側） */
.fquote--right { justify-self: end; border-radius: 14px 14px 3px 14px; background: var(--wash); }

/* 帯グラフ：見出しつきの枠、朱の帯（差・漏れ）、白抜きの帯（確かめる部分）、長さをそろえる空き */
.fbarbox { display: grid; gap: 6px; }
.fbar__cap { color: var(--navy); font-size: 13.5px; font-weight: 700; line-height: 1.55; }
.fbar > span.is-alt { background: var(--alt); }
.fbar > span.is-key { border: 2px solid var(--navy); background: #fff; color: var(--navy); }
.fbar > span.is-gap { visibility: hidden; padding: 0; }
.fbar > span.is-end { border-radius: 0 8px 8px 0; }

/* 足し算の並び（数える時間を「＋」でつなぎ、合計を示す） */
.fcalc { display: grid; gap: 10px; padding: 11px 14px 12px; border: 1px solid var(--node); border-radius: 8px; background: #fff; }
.fcalc__name { color: var(--navy); font-weight: 700; line-height: 1.55; }
.fcalc__terms { display: flex; flex-wrap: wrap; gap: 8px 5px; }
.fcalc__terms > li { display: flex; align-items: center; gap: 5px; }
.fcalc__op { color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1; }
.fcalc__t {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 50px;
  padding: 4px 8px 5px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  line-height: 1.35;
  text-align: center;
}
.fcalc__t small { font-size: 11.5px; }
.fcalc__t b { font-size: 16px; white-space: nowrap; }
.fcalc__t.is-key { background: #fff; color: var(--navy); }
.fcalc__t.is-off { border: 1.5px dashed #a3b2c6; background: none; color: var(--ink-soft); }
.fcalc__t.is-off b { font-size: 14px; }
.fcalc__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; padding-top: 9px; border-top: 1px dashed #c3cfdf; color: var(--navy); font-weight: 700; line-height: 1.4; }
.fcalc__total b { font-size: 22px; line-height: 1.2; }
.fcalc__total small { font-size: 13px; font-weight: 400; }

/* 起点 → 終点：数えない移動（通勤）は灰色 */
.fspan--off .fspan__end { border: 1px solid var(--node); color: var(--ink); }
.fspan--off .fspan__mid { color: var(--ink-soft); }
.fspan--off .fspan__mid::before { background: #9aa8b8; }

/* 帯グラフ：数えない帯（破線）、短い帯でも文字が収まる幅を確保する指定 */
.fbar > span.is-off { border: 1.5px dashed #94a5bb; background: #fff; color: var(--ink-soft); }
.fbar--min > span { min-width: 4.9em; }

/* 区切りごとの箱の並び（長さは比例させない） */
.fsegs { display: flex; flex-wrap: wrap; gap: 6px; }
.fsegs__i {
  display: grid;
  flex: 1 1 6.2em;
  align-content: center;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  padding: 7px 8px 8px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  line-height: 1.4;
  text-align: center;
}
.fsegs__i small { font-size: 12px; }
.fsegs__i b { font-size: 17px; white-space: nowrap; }
.fsegs__i.is-key { background: #fff; color: var(--navy); }
.fsegs__i.is-alt { border-color: var(--alt); background: var(--alt); }
.fsegs__i.is-off { border: 1.5px dashed #94a5bb; background: #fff; color: var(--ink-soft); }
@media (max-width: 599.98px) {
  /* 箱が4つのときは、2つずつ2段に（3つ＋1つに割れて、最後の1つだけ大きく見えるのを避ける） */
  .fsegs--n4 .fsegs__i { flex-basis: calc(50% - 3px); }
}

/* 数えないものの箱（破線） */
.fbox--off { border: 1.5px dashed #94a5bb; }

/* 起点 ⇄ 終点：互いに（両向きの矢印） */
.fspan--both .fspan__mid::before { clip-path: polygon(50% 0, 100% 9px, 62% 9px, 62% calc(100% - 9px), 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px), 38% calc(100% - 9px), 38% 9px, 0 9px); }
@media (min-width: 600px) {
  .fspan--both .fspan__mid::before { clip-path: polygon(0 50%, 9px 0, 9px 38%, calc(100% - 9px) 38%, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, calc(100% - 9px) 62%, 9px 62%, 9px 100%); }
}
