@charset "UTF-8";
/* ==========================================================================
   tekt2610.css
   弁護士相談サービス / お問い合わせ 追加スタイル（素のCSS・ビルド不要）
   読み込み対象：/lawyer /lawyer-form /contact のみ（inc/tekt-2610.php）
   ========================================================================== */

/* --------------------------------------------------------------------------
   カラー変数（暫定：デザイン確定後に調整）
   -------------------------------------------------------------------------- */
:root {
  --lw-primary: #1b3a5b;      /* 濃紺 */
  --lw-primary-dark: #122a43;
  --lw-accent: #ea6a1e;       /* オレンジ */
  --lw-accent-dark: #cc5510;
  --lw-accent-light: #fdf0e8;
  --lw-base: #ffffff;
  --lw-bg-light: #eef5fb;     /* 淡い水色（セクション背景） */
  --lw-bg-chip: #e1eef9;      /* 淡い水色（アイコンチップ・プレースホルダ） */
  --lw-border: #d6e3ef;       /* 淡い水色系ボーダー */
  --lw-text: #333333;
  --lw-muted: #666666;
  --lw-shadow: 0 4px 16px rgba(27, 58, 91, 0.08);
  --lw-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* --------------------------------------------------------------------------
   限定リセット（既存 global CSS のしみ出しを打ち消す）
   -------------------------------------------------------------------------- */
body.lawyer .lawyer-lp,
body.lawyer .lawyer-lp *,
body.lawyer .lawyer-lp *::before,
body.lawyer .lawyer-lp *::after {
  box-sizing: border-box;
}

body.lawyer .lawyer-lp {
  display: block;
  color: var(--lw-primary); /* 本文は原則 紺に統一（白抜きボタン等は個別指定で除外） */
  font-family: var(--lw-font);
  font-size: 16px;
  line-height: 1.7;
}

body.lawyer .lawyer-lp section,
body.lawyer .lawyer-lp h1,
body.lawyer .lawyer-lp h2,
body.lawyer .lawyer-lp h3,
body.lawyer .lawyer-lp p,
body.lawyer .lawyer-lp ol,
body.lawyer .lawyer-lp ul,
body.lawyer .lawyer-lp li {
  margin: 0;
  padding: 0;
  line-height: 1.7;
  /* テキストは紺で統一。グローバルの要素セレクタ（p{} li{} 等）に負けないよう
     ベース継承ではなく要素単位でも紺を明示（白抜きボタン/CTAは高詳細度の#fffが優先） */
  color: var(--lw-primary);
}

body.lawyer .lawyer-lp ul,
body.lawyer .lawyer-lp li {
  list-style: none;
}

body.lawyer .lawyer-lp h1,
body.lawyer .lawyer-lp h2,
body.lawyer .lawyer-lp h3 {
  font-size: inherit;
  font-weight: 700;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   ヘッダー（header-lawyer.php）
   ※/lawyer-form でも使うため body クラスではなく独自クラスで指定
   -------------------------------------------------------------------------- */
.lawyer-header {
  position: relative;
  z-index: 10;
  background: var(--lw-base);
  border-bottom: 1px solid var(--lw-border);
  font-family: var(--lw-font);
}

.lawyer-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  box-sizing: border-box;
}

.lawyer-header__logo {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.lawyer-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: var(--lw-primary);
  text-decoration: none;
}

.lawyer-header__logo-link:hover {
  color: var(--lw-primary);
  opacity: 0.85;
}

.lawyer-header .lawyer-header__logo-img {
  display: block;
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: 44px;
}

.lawyer-header__logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.lawyer-header__logo-org {
  font-size: 12px;
  font-weight: 400;
}

.lawyer-header__logo-name {
  font-size: 16px;
  font-weight: 400; /* ロゴ名は通常太さ（/lawyer・/lawyer-form 両方に適用） */
}

.lawyer-header__cta {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  padding: 10px 40px 10px 24px;
  border-radius: 0; /* 下部CTAと同形に統一 */
  background: var(--lw-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s;
}

.lawyer-header__cta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.lawyer-header__cta:hover,
.lawyer-header__cta:focus-visible {
  background: var(--lw-accent-dark);
  color: #fff;
  opacity: 1;
}

@media (max-width: 768px) {
  .lawyer-header__inner {
    gap: 10px;
    padding: 8px 12px;
  }

  .lawyer-header__logo-link {
    gap: 8px;
  }

  .lawyer-header .lawyer-header__logo-img {
    height: 32px;
  }

  .lawyer-header__logo-org {
    font-size: 9px;
  }

  .lawyer-header__logo-name {
    font-size: 12px;
  }

  .lawyer-header__cta {
    padding: 8px 28px 8px 14px;
    font-size: 12px;
  }

  .lawyer-header__cta::after {
    right: 13px;
    width: 6px;
    height: 6px;
  }
}

/* 極小幅：会社名は折り返しを許可（ロゴ・CTAは縮めない） */
@media (max-width: 400px) {
  .lawyer-header__logo-org,
  .lawyer-header__logo-name {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   弁護士相談TOP（page-lawyer.php）
   ※リセットより優先させるため body.lawyer .lawyer-lp .lawyer-lp__xxx で指定
   ========================================================================== */

/* --------------------------------------------------------------------------
   共通：inner / セクション / 見出し / 注記 / ボタン / アイコンチップ
   -------------------------------------------------------------------------- */
body.lawyer .lawyer-lp .lawyer-lp__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

body.lawyer .lawyer-lp .lawyer-lp__target,
body.lawyer .lawyer-lp .lawyer-lp__service,
body.lawyer .lawyer-lp .lawyer-lp__flow,
body.lawyer .lawyer-lp .lawyer-lp__notes,
body.lawyer .lawyer-lp .lawyer-lp__cta {
  padding: 22px 0; /* 余白圧縮（上下を半減） */
}

/* 背景リズム：ご利用内容は背景なし（白）、注意事項のみ淡い水色 */
body.lawyer .lawyer-lp .lawyer-lp__target,
body.lawyer .lawyer-lp .lawyer-lp__service,
body.lawyer .lawyer-lp .lawyer-lp__flow {
  background: var(--lw-base);
}

body.lawyer .lawyer-lp .lawyer-lp__notes {
  background: var(--lw-bg-light);
}

/* 注意事項セクションの余白 */
body.lawyer .lawyer-lp .lawyer-lp__notes {
  padding: 10px 0 22px 0;
}

/* セクション見出し：左寄せ＋左の縦バー */
body.lawyer .lawyer-lp .lawyer-lp__heading {
  position: relative;
  margin-bottom: 14px; /* 見出し下の余白（旧28px → 14px） */
  padding-left: 18px;
  color: var(--lw-primary);
  font-size: 28px;
  line-height: 1.4;
  text-align: left;
}

body.lawyer .lawyer-lp .lawyer-lp__heading::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 6px;
  border-radius: 3px;
  background: var(--lw-accent);
}

body.lawyer .lawyer-lp .lawyer-lp__note {
  margin-top: 24px;
  color: var(--lw-primary);
  font-size: 13px;
}

body.lawyer .lawyer-lp .lawyer-lp__button {
  position: relative;
  display: inline-block;
  min-width: 300px;
  padding: 18px 60px 18px 40px;
  border-radius: 0; /* 角丸撤去（ヘッダーCTAと統一） */
  background: var(--lw-accent);
  box-shadow: 0 6px 16px rgba(234, 106, 30, 0.28);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

body.lawyer .lawyer-lp .lawyer-lp__button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

body.lawyer .lawyer-lp .lawyer-lp__button:hover,
body.lawyer .lawyer-lp .lawyer-lp__button:focus-visible {
  background: var(--lw-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

/* アイコンチップ：背景塗りつぶしは無し（透過）。線アイコン＋濃紺グリフのみ */
body.lawyer .lawyer-lp .lawyer-lp__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 32px; /* 長方形の強調：チップを低くする（アイコンは align-items:center で上下中央を維持） */
  border-radius: 12px;
  background: transparent;
  color: var(--lw-primary);
  font-size: 24px;
  line-height: 1;
}

/* 流れのアイコンも背景塗りつぶし無し（透過） */
body.lawyer .lawyer-lp .lawyer-lp__flow-icon {
  background: transparent;
}

/* アウトライン（線）アイコン：Feather/Lucide系。
   currentColor 継承では親の色落ち時に紺化が取りこぼれるため、線色を紺で明示する。 */
body.lawyer .lawyer-lp .lawyer-lp__icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  color: var(--lw-primary);
  fill: none;
  stroke: var(--lw-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* 子要素（path/circle/line 等）に直書き stroke/fill があっても紺に追従させる */
body.lawyer .lawyer-lp .lawyer-lp__icon [stroke],
body.lawyer .lawyer-lp .lawyer-lp__icon path,
body.lawyer .lawyer-lp .lawyer-lp__icon circle,
body.lawyer .lawyer-lp .lawyer-lp__icon rect,
body.lawyer .lawyer-lp .lawyer-lp__icon line,
body.lawyer .lawyer-lp .lawyer-lp__icon polyline,
body.lawyer .lawyer-lp .lawyer-lp__icon polygon {
  stroke: var(--lw-primary);
}

/* --------------------------------------------------------------------------
   1) ヒーロー（2カラム：左コピー＋バッジ／右ビジュアル）
   -------------------------------------------------------------------------- */
body.lawyer .lawyer-lp .lawyer-lp__hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 56px 0 24px; /* 下余白を半減（上はヒーロー高を維持） */
  background: linear-gradient(160deg, var(--lw-bg-light) 0%, var(--lw-bg-chip) 55%, var(--lw-base) 100%);
}

/* 背景：建設イラスト（左下・淡く） */
body.lawyer .lawyer-lp .lawyer-lp__hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(640px, 50vw);
  height: 58%;
  background: url(../images/lawyer/bg-construction.png) no-repeat left bottom;
  background-size: contain;
  opacity: 0.18; /* 新ヒーロー画像と干渉しないよう薄く */
  pointer-events: none;
  z-index: 0;
}

/* 右：メインビジュアル（写真）を画面右端までフルブリード */
body.lawyer .lawyer-lp .lawyer-lp__hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  max-width: 700px;
  background-color: var(--lw-bg-chip); /* 写真未設置時の無地フォールバック */
  background-image: url(../images/lawyer/hero-lawyer.jpg);
  background-size: cover;
  background-position: center 30%; /* 横構図：人物が切れないよう中央〜やや上 */
  background-repeat: no-repeat;
  z-index: 1;
}

/* 写真の左端をヒーロー背景へなじませる */
body.lawyer .lawyer-lp .lawyer-lp__hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--lw-bg-light) 0%, rgba(255, 255, 255, 0) 16%);
  pointer-events: none;
}

/* テキスト列（写真に被らないよう左側に配置） */
body.lawyer .lawyer-lp .lawyer-lp__hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

body.lawyer .lawyer-lp .lawyer-lp__hero-text {
  max-width: 560px;
}

body.lawyer .lawyer-lp .lawyer-lp__hero-cta {
  margin-top: 32px;
}

/* 小見出し：前に短いオレンジの横線 */
body.lawyer .lawyer-lp .lawyer-lp__hero-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lw-primary);
  font-size: 18px;
  font-weight: 700;
}

body.lawyer .lawyer-lp .lawyer-lp__hero-sub::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--lw-accent);
}

body.lawyer .lawyer-lp .lawyer-lp__hero-title {
  margin-top: 12px;
  color: var(--lw-primary);
  font-size: 46px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

body.lawyer .lawyer-lp .lawyer-lp__hero-lead {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.9;
}

/* 特徴バッジ：白カード・角丸・薄い影 */
body.lawyer .lawyer-lp .lawyer-lp__badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

body.lawyer .lawyer-lp .lawyer-lp__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
  color: var(--lw-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

body.lawyer .lawyer-lp .lawyer-lp__badge-icon {
  color: var(--lw-primary);
  font-size: 24px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   2) ご利用いただける方
   -------------------------------------------------------------------------- */
body.lawyer .lawyer-lp .lawyer-lp__target-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

body.lawyer .lawyer-lp .lawyer-lp__target-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
}

body.lawyer .lawyer-lp .lawyer-lp__target-text {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

body.lawyer .lawyer-lp .lawyer-lp__target-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--lw-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3) ご利用内容
   -------------------------------------------------------------------------- */
/* 4列横並び・各カードは縦長の長方形（アイコン上／見出し・本文下） */
body.lawyer .lawyer-lp .lawyer-lp__service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

body.lawyer .lawyer-lp .lawyer-lp__service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "text text";
  align-items: center;
  justify-items: start;
  column-gap: 10px;
  row-gap: 4px;
  padding: 12px 20px 8px; /* カード長方形の強調（上下を圧縮） */
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
  text-align: left;
}

/* ラッパは見た目に影響させない（見出し・本文を直接カードのgrid子に） */
body.lawyer .lawyer-lp .lawyer-lp__service-body {
  display: contents;
}

/* アイコンは見出しの左隣（1行目左）、見出しは1行目右、本文は2行目へ */
body.lawyer .lawyer-lp .lawyer-lp__service-card .lawyer-lp__service-icon {
  grid-area: icon;
  margin: 0;
}

/* 「追加対応」カードの文字色は他カードと統一（オレンジ着色撤去）。枠は他の線と同色・控えめな 1px 点線で差別化 */
body.lawyer .lawyer-lp .lawyer-lp__service-card--paid {
  border: 1px dashed var(--lw-border);
}

body.lawyer .lawyer-lp .lawyer-lp__service-label {
  grid-area: title;
  margin: 0;
  color: var(--lw-primary);
  font-size: 18px;
}

body.lawyer .lawyer-lp .lawyer-lp__service-text {
  grid-area: text;
  margin: 0;
  justify-self: stretch; /* 本文のみ左右中央寄せ（アイコン＋見出し行は左寄せのまま） */
  font-size: 15px;
  text-align: center;
}

body.lawyer .lawyer-lp .lawyer-lp__service-em {
  font-size: inherit;
  font-weight: inherit;
  color: var(--lw-primary);
}

/* --------------------------------------------------------------------------
   4) ご利用の流れ
   -------------------------------------------------------------------------- */
/* 4列横並び・各カードは縦長の長方形（番号・アイコン上／テキスト下） */
body.lawyer .lawyer-lp .lawyer-lp__flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.lawyer .lawyer-lp .lawyer-lp__flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* 番号は absolute で上枠に重ねるため、カード高さは service-card と同じリズムに。
     padding-top 14px は上枠にまたがる番号の下半分（約11px）と干渉しないための最小値。 */
  padding: 14px 18px 8px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
  list-style: none;
}

/* 最終ステップも他ステップと同じ実線に統一（点線は --paid サービスカードへ移設） */
body.lawyer .lawyer-lp .lawyer-lp__flow-step:last-child {
  border: 1px solid var(--lw-border);
}

/* ステップ間の矢印（PC：右向き） */
body.lawyer .lawyer-lp .lawyer-lp__flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 10px solid var(--lw-accent);
  transform: translateY(-50%);
}

/* ステップ番号：absolute でカード上枠中央に重ねる（高さに影響させない）。
   白地のパッド付きで上枠の線が番号を横切らないようにし視認性を確保（紺・中央）。 */
body.lawyer .lawyer-lp .lawyer-lp__flow-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 8px;
  background: var(--lw-base);
  color: var(--lw-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* ステップ見出し（上＝状況／下＝アクション） */
body.lawyer .lawyer-lp .lawyer-lp__flow-text {
  margin-top: 0;
  color: var(--lw-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

body.lawyer .lawyer-lp .lawyer-lp__flow-text-sub {
  display: block;
}

/* ①〜⑤ 詳細テキスト（注意事項本文と同じサイズ＝14px） */
body.lawyer .lawyer-lp .lawyer-lp__flow-detail {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

body.lawyer .lawyer-lp .lawyer-lp__flow-detail-item {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.0; /* 流れの説明文（番号付きリスト）の行間を詰める */
}

body.lawyer .lawyer-lp .lawyer-lp__flow-detail-item + .lawyer-lp__flow-detail-item {
  margin-top: 8px;
}

body.lawyer .lawyer-lp .lawyer-lp__flow-detail-num {
  flex-shrink: 0;
  color: var(--lw-primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5) ご利用にあたっての注意事項（2列3段・番号/アイコンなし）
   -------------------------------------------------------------------------- */
body.lawyer .lawyer-lp .lawyer-lp__notes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

body.lawyer .lawyer-lp .lawyer-lp__notes-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 26px; /* 注意事項カードの内側余白 */
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
  font-size: 14px;
  line-height: 1.85;
}

body.lawyer .lawyer-lp .lawyer-lp__notes-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 26px;
  color: var(--lw-primary);
  font-size: 20px;
  line-height: 1;
}

body.lawyer .lawyer-lp .lawyer-lp__notes-text {
  flex: 1;
  min-width: 0;
}

/* 残りテキストの紺化：継承に頼らずクラス明示で紺に固定（子要素も含む）。
   ※白抜き（下部CTA＝.lawyer-lp__cta-copy/__button/__cta-sublink）はより高詳細度の #fff が優先され影響なし。 */
body.lawyer .lawyer-lp .lawyer-lp__badge-text,
body.lawyer .lawyer-lp .lawyer-lp__flow-text-sub,
body.lawyer .lawyer-lp .lawyer-lp__flow-detail,
body.lawyer .lawyer-lp .lawyer-lp__flow-detail *,
body.lawyer .lawyer-lp .lawyer-lp__flow-detail-text,
body.lawyer .lawyer-lp .lawyer-lp__notes-text {
  color: var(--lw-primary);
}

/* --------------------------------------------------------------------------
   6) 下部CTA
   -------------------------------------------------------------------------- */
body.lawyer .lawyer-lp .lawyer-lp__cta {
  position: relative;
  /* 街並み画像を敷き、上に紺色半透明オーバーレイ（白文字の可読性確保） */
  background:
    linear-gradient(rgba(27, 58, 91, 0.6), rgba(27, 58, 91, 0.6)),
    url(../images/lawyer/cta-cityscape.jpg) center 68% / cover no-repeat;
  background-color: var(--lw-primary); /* 画像読込前のフォールバック */
  color: #fff;
}

body.lawyer .lawyer-lp .lawyer-lp__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

body.lawyer .lawyer-lp .lawyer-lp__cta-copy {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

body.lawyer .lawyer-lp .lawyer-lp__cta-sublink {
  color: #fff;
  font-size: 14px;
  text-decoration: underline;
}

body.lawyer .lawyer-lp .lawyer-lp__cta-sublink:hover,
body.lawyer .lawyer-lp .lawyer-lp__cta-sublink:focus-visible {
  color: #fff;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   レスポンシブ：タブレット（〜1024px）
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.lawyer .lawyer-lp .lawyer-lp__hero-visual {
    width: 40%;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-text {
    max-width: 480px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-title {
    font-size: 36px;
  }

  /* ご利用内容：2列 */
  body.lawyer .lawyer-lp .lawyer-lp__service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ご利用の流れ：4列のまま間隔を詰める */
  body.lawyer .lawyer-lp .lawyer-lp__flow-list {
    gap: 16px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__flow-step:not(:last-child)::after {
    right: -13px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__flow-text {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ：SP（768px以下で1カラム化）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body.lawyer .lawyer-lp .lawyer-lp__target,
  body.lawyer .lawyer-lp .lawyer-lp__service,
  body.lawyer .lawyer-lp .lawyer-lp__flow,
  body.lawyer .lawyer-lp .lawyer-lp__notes,
  body.lawyer .lawyer-lp .lawyer-lp__cta {
    padding: 22px 0; /* 余白圧縮（上下を半減） */
  }

  body.lawyer .lawyer-lp .lawyer-lp__heading {
    margin-bottom: 24px;
    padding-left: 14px;
    font-size: 22px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__heading::before {
    width: 5px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__button {
    width: 100%;
    min-width: 0;
    max-width: 400px;
    padding: 16px 48px 16px 32px;
    font-size: 16px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__chip {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 20px;
  }

  /* ヒーロー：写真を上部バナー → コピー（SP） */
  body.lawyer .lawyer-lp .lawyer-lp__hero {
    display: block;
    min-height: 0;
    padding: 0 0 24px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero::before {
    width: 70%;
    height: 40%;
    opacity: 0.35;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-visual {
    position: relative;
    width: 100%;
    max-width: none;
    height: 240px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-visual::before {
    display: none;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-inner {
    padding-top: 36px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-text {
    max-width: none;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-cta {
    text-align: center;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-sub {
    gap: 10px;
    font-size: 15px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-sub::before {
    width: 24px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-title {
    font-size: 30px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__hero-lead {
    margin-top: 18px;
    font-size: 15px;
  }

  /* バッジ：横長カード1列（アイコン左・テキスト右） */
  body.lawyer .lawyer-lp .lawyer-lp__badges {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__badge {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 18px;
    font-size: 15px;
    text-align: left;
  }

  body.lawyer .lawyer-lp .lawyer-lp__badge-icon {
    width: 1em;
    font-size: 20px;
    text-align: center;
  }

  body.lawyer .lawyer-lp .lawyer-lp__target-list,
  body.lawyer .lawyer-lp .lawyer-lp__notes-list {
    grid-template-columns: 1fr;
  }

  body.lawyer .lawyer-lp .lawyer-lp__target-card {
    gap: 16px;
    padding: 20px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__target-text {
    font-size: 16px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__service-card {
    padding: 28px 20px 24px;
  }

  /* 流れ：縦並び（アイコン左＋テキスト右）＋下向き矢印 */
  body.lawyer .lawyer-lp .lawyer-lp__flow-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__flow-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 18px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__flow-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -21px;
    left: 50%;
    border-top: 10px solid var(--lw-accent);
    border-right: 9px solid transparent;
    border-bottom: 0;
    border-left: 9px solid transparent;
    transform: translateX(-50%);
  }

  /* SPは横並び（アイコン左＋テキスト右）。番号は通常フローに戻して左に inline 配置 */
  body.lawyer .lawyer-lp .lawyer-lp__flow-num {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    padding: 0;
    background: none;
    margin-bottom: 0;
    font-size: 20px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__flow-text {
    margin-top: 0;
    font-size: 14px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__notes-item {
    padding: 18px 20px;
  }

  body.lawyer .lawyer-lp .lawyer-lp__cta-copy {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ：スマホ（ご利用内容 1列）
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  body.lawyer .lawyer-lp .lawyer-lp__service-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   弁護士相談フォーム（page-lawyer-form.php）
   body.lawyer-form 配下にスコープ。TOP（.lawyer-lp）とトーン統一。
   フォーム本体（MW WP Form）は次依頼で作成。ここでは
   ・見出し／ステップ／2カラム枠／サイドバー
   ・MW出力に効く input/label/必須バッジ/エラー/確認/ボタンの先行スタイル
   を用意する。詳細度は LP と同様 body.lawyer-form .lawyer-form .xxx（0,3,1）で統一。
   ========================================================================== */

/* --------------------------------------------------------------------------
   限定リセット（既存 global CSS のしみ出しを打ち消す）
   -------------------------------------------------------------------------- */
body.lawyer-form .lawyer-form,
body.lawyer-form .lawyer-form *,
body.lawyer-form .lawyer-form *::before,
body.lawyer-form .lawyer-form *::after {
  box-sizing: border-box;
}

body.lawyer-form .lawyer-form {
  display: block;
  color: var(--lw-primary); /* 本文は原則 紺に統一（白抜きボタン等は個別指定で除外） */
  font-family: var(--lw-font);
  font-size: 16px;
  line-height: 1.7;
  background: var(--lw-base);
}

/* アウトライン（線）アイコン：/lawyer と同系。線色は文字色（紺）に追従 */
body.lawyer-form .lawyer-form .lawyer-form__icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

body.lawyer-form .lawyer-form section,
body.lawyer-form .lawyer-form aside,
body.lawyer-form .lawyer-form h1,
body.lawyer-form .lawyer-form h2,
body.lawyer-form .lawyer-form h3,
body.lawyer-form .lawyer-form p,
body.lawyer-form .lawyer-form ul,
body.lawyer-form .lawyer-form ol,
body.lawyer-form .lawyer-form li {
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

body.lawyer-form .lawyer-form ul,
body.lawyer-form .lawyer-form ol,
body.lawyer-form .lawyer-form li {
  list-style: none;
}

body.lawyer-form .lawyer-form h1,
body.lawyer-form .lawyer-form h2,
body.lawyer-form .lawyer-form h3 {
  font-size: inherit;
  font-weight: 700;
  line-height: 1.4;
}

/* 既存 global（img{width:100%} / a:hover{opacity:.7}）の打ち消し */
body.lawyer-form .lawyer-form img {
  width: auto;
  max-width: 100%;
}

body.lawyer-form .lawyer-form a {
  transition: color 0.2s, background-color 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   共通：inner（最大幅）
   -------------------------------------------------------------------------- */
body.lawyer-form .lawyer-form .lawyer-form__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --------------------------------------------------------------------------
   1) ページ見出しエリア
   -------------------------------------------------------------------------- */
/* 背景塗りは全幅（フルブリード）には当てず、inner 要素内だけに限定する */
body.lawyer-form .lawyer-form .lawyer-form__head {
  padding: 32px 0;
  background: none;
}

body.lawyer-form .lawyer-form .lawyer-form__head-inner {
  padding: 32px 24px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--lw-bg-light) 0%, var(--lw-bg-chip) 60%, var(--lw-base) 100%);
}

body.lawyer-form .lawyer-form .lawyer-form__head-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lw-primary);
  font-size: 14px;
  font-weight: 700;
}

body.lawyer-form .lawyer-form .lawyer-form__head-sub::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--lw-primary); /* アクセントバーも紺に統一 */
}

body.lawyer-form .lawyer-form .lawyer-form__head-title {
  margin-top: 10px;
  color: var(--lw-primary);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

body.lawyer-form .lawyer-form .lawyer-form__head-lead {
  margin-top: 18px;
  color: var(--lw-primary); /* テキスト紺に統一 */
  font-size: 15px;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   2) ステップ表示（① フォーム入力 → ② 内容確認 → ③ 送信完了）
   -------------------------------------------------------------------------- */
/* ステップ表示も全幅の塗り・全幅の区切り線をやめる（コンテナ端まで塗らない） */
body.lawyer-form .lawyer-form .lawyer-form__steps-wrap {
  padding: 24px 0;
  background: none;
}

body.lawyer-form .lawyer-form .lawyer-form__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: var(--lw-primary); /* コンテナ基調を紺に統一。各ステップの未到達グレー／現在地紺は .lawyer-form__step 側の指定で維持 */
}

body.lawyer-form .lawyer-form .lawyer-form__step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lw-muted);
  font-size: 16px;
  font-weight: 700;
}

/* ステップ間のつなぎ線 */
body.lawyer-form .lawyer-form .lawyer-form__step:not(:last-child)::after {
  content: "";
  width: 48px;
  height: 2px;
  margin: 0 8px;
  background: var(--lw-border);
}

body.lawyer-form .lawyer-form .lawyer-form__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lw-bg-chip);
  color: var(--lw-muted);
  font-size: 16px;
  line-height: 1;
}

/* 現在地（①）を強調 */
body.lawyer-form .lawyer-form .lawyer-form__step.is-active {
  color: var(--lw-primary);
}

body.lawyer-form .lawyer-form .lawyer-form__step.is-active .lawyer-form__step-num {
  background: var(--lw-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(27, 58, 91, 0.25);
}

/* これから（②③） */
body.lawyer-form .lawyer-form .lawyer-form__step.is-upcoming .lawyer-form__step-num {
  background: var(--lw-base);
  border: 2px solid var(--lw-border);
  color: var(--lw-muted);
}

/* --------------------------------------------------------------------------
   3) 2カラム本体（左：フォーム／右：サイドバー）
   -------------------------------------------------------------------------- */
body.lawyer-form .lawyer-form .lawyer-form__body {
  padding: 24px 0 56px;
  background: none;
}

/* 背景塗りは inner 内だけに限定（全幅には当てない） */
body.lawyer-form .lawyer-form .lawyer-form__body-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding: 32px;
  border-radius: 12px;
  background: var(--lw-bg-light);
}

/* 左カラム：フォームが入る領域 */
body.lawyer-form .lawyer-form .lawyer-form__main {
  padding: 40px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
}

body.lawyer-form .lawyer-form .lawyer-form__main-title {
  position: relative;
  margin-bottom: 28px;
  padding-left: 16px;
  color: var(--lw-primary);
  font-size: 24px;
  line-height: 1.4;
}

body.lawyer-form .lawyer-form .lawyer-form__main-title::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 6px;
  border-radius: 3px;
  background: var(--lw-primary); /* アクセントバーも紺に統一 */
}

/* --------------------------------------------------------------------------
   4) サイドバー（カード3種）
   -------------------------------------------------------------------------- */
body.lawyer-form .lawyer-form .lawyer-form__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.lawyer-form .lawyer-form .lawyer-form__card {
  padding: 24px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-base);
  box-shadow: var(--lw-shadow);
}

body.lawyer-form .lawyer-form .lawyer-form__side-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-left: 14px;
  color: var(--lw-primary);
  font-size: 19px;
  line-height: 1.4;
}

/* カード見出しのアイコン（人物／書類／電話）：アウトラインSVG・紺 */
/* ※3見出し（ご利用条件／ご利用内容／ご不明点）のアイコンは非表示にして左詰め（アクセントバー::before は残す） */
body.lawyer-form .lawyer-form .lawyer-form__side-title-icon {
  display: none;
  color: var(--lw-primary);
  font-size: 22px;
}

body.lawyer-form .lawyer-form .lawyer-form__side-title::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: var(--lw-primary); /* アクセントバーも紺に統一（指定どおり） */
}

body.lawyer-form .lawyer-form .lawyer-form__side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--lw-primary); /* 内部テキスト（side-item）まで紺に統一 */
}

body.lawyer-form .lawyer-form .lawyer-form__side-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

body.lawyer-form .lawyer-form .lawyer-form__side-check {
  flex-shrink: 0;
  margin-top: 0.15em;
  color: var(--lw-primary);
  font-size: 16px;
}

body.lawyer-form .lawyer-form .lawyer-form__side-note {
  margin-top: 14px;
  color: var(--lw-primary);
  font-size: 12px;
  line-height: 1.7;
  padding-left: 1em;
  text-indent: -1em;
}

/* (C) お問い合わせカード */
body.lawyer-form .lawyer-form .lawyer-form__card--contact {
  background: var(--lw-bg-light);
}

body.lawyer-form .lawyer-form .lawyer-form__side-company {
  font-size: 14px;
  font-weight: 700;
}

body.lawyer-form .lawyer-form .lawyer-form__side-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--lw-primary);
}

body.lawyer-form .lawyer-form .lawyer-form__side-tel-icon {
  color: var(--lw-primary);
  font-size: 20px;
}

body.lawyer-form .lawyer-form .lawyer-form__side-tel-link {
  color: var(--lw-primary);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
}

body.lawyer-form .lawyer-form .lawyer-form__side-tel-link:hover,
body.lawyer-form .lawyer-form .lawyer-form__side-tel-link:focus-visible {
  color: var(--lw-primary);
  opacity: 0.8;
}

body.lawyer-form .lawyer-form .lawyer-form__side-hours {
  margin-top: 8px;
  color: var(--lw-primary);
  font-size: 13px;
  line-height: 1.7;
}

/* メールでのお問い合わせ（電話行に倣う。文字サイズは控えめに） */
body.lawyer-form .lawyer-form .lawyer-form__side-mail-label {
  margin-top: 18px;
  color: var(--lw-primary);
  font-size: 13px;
  font-weight: 700;
}

body.lawyer-form .lawyer-form .lawyer-form__side-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--lw-primary);
}

body.lawyer-form .lawyer-form .lawyer-form__side-mail-icon {
  color: var(--lw-primary);
  font-size: 18px;
}

body.lawyer-form .lawyer-form .lawyer-form__side-mail-link {
  color: var(--lw-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
}

body.lawyer-form .lawyer-form .lawyer-form__side-mail-link:hover,
body.lawyer-form .lawyer-form .lawyer-form__side-mail-link:focus-visible {
  color: var(--lw-primary);
  opacity: 0.8;
}

/* ==========================================================================
   フォーム入力要素の先行スタイル
   次依頼で MW WP Form が左カラム（.lawyer-form__main）に出力する HTML に効く。
   MW既定クラス（.mw_wp_form / .error 等）と、こちらで付与予定の BEM クラス
   （.lawyer-form__field / __label / __control / .req 等）の両方を用意。
   ========================================================================== */

/* フォーム行：PCはラベル左・入力右の2カラム、SPは縦積み */
body.lawyer-form .lawyer-form .lawyer-form__field {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--lw-border);
}

body.lawyer-form .lawyer-form .lawyer-form__field:first-child {
  padding-top: 0;
}

/* ラベル */
body.lawyer-form .lawyer-form .lawyer-form__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  color: var(--lw-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* 必須バッジ：オレンジ地＋白文字で小さめ */
body.lawyer-form .lawyer-form .req,
body.lawyer-form .lawyer-form .lawyer-form__req {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--lw-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* 任意バッジ：淡色・サブ配色 */
body.lawyer-form .lawyer-form .lawyer-form__optional {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--lw-bg-chip);
  color: var(--lw-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* 入力欄コンテナ */
body.lawyer-form .lawyer-form .lawyer-form__control {
  min-width: 0;
}

/* input / select / textarea 共通 */
body.lawyer-form .lawyer-form .lawyer-form__main input[type="text"],
body.lawyer-form .lawyer-form .lawyer-form__main input[type="email"],
body.lawyer-form .lawyer-form .lawyer-form__main input[type="tel"],
body.lawyer-form .lawyer-form .lawyer-form__main input[type="number"],
body.lawyer-form .lawyer-form .lawyer-form__main input[type="url"],
body.lawyer-form .lawyer-form .lawyer-form__main select,
body.lawyer-form .lawyer-form .lawyer-form__main textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--lw-border);
  border-radius: 8px;
  background: var(--lw-base);
  color: var(--lw-text);
  font-family: var(--lw-font);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

body.lawyer-form .lawyer-form .lawyer-form__main textarea {
  min-height: 160px;
  resize: vertical;
}

body.lawyer-form .lawyer-form .lawyer-form__main select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--lw-primary) 50%), linear-gradient(135deg, var(--lw-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* プレースホルダ */
body.lawyer-form .lawyer-form .lawyer-form__main input::placeholder,
body.lawyer-form .lawyer-form .lawyer-form__main textarea::placeholder {
  color: #a9b4bf;
}

/* フォーカス時に枠色 */
body.lawyer-form .lawyer-form .lawyer-form__main input[type="text"]:focus,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="email"]:focus,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="tel"]:focus,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="number"]:focus,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="url"]:focus,
body.lawyer-form .lawyer-form .lawyer-form__main select:focus,
body.lawyer-form .lawyer-form .lawyer-form__main textarea:focus {
  outline: none;
  border-color: var(--lw-accent);
  box-shadow: 0 0 0 3px rgba(234, 106, 30, 0.15);
}

/* 補助テキスト（例・注記） */
body.lawyer-form .lawyer-form .lawyer-form__help {
  margin-top: 6px;
  color: var(--lw-primary);
  font-size: 12px;
  line-height: 1.6;
}

/* textarea 文字数カウンタ */
body.lawyer-form .lawyer-form .lawyer-form__counter {
  margin-top: 6px;
  color: var(--lw-primary);
  font-size: 12px;
  text-align: right;
}

/* エラーメッセージ（MW既定 .error ＋ BEM 両対応） */
body.lawyer-form .lawyer-form .lawyer-form__main .error,
body.lawyer-form .lawyer-form .lawyer-form__error {
  display: block;
  margin-top: 6px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

/* エラー時の入力枠 */
body.lawyer-form .lawyer-form .lawyer-form__main input.error,
body.lawyer-form .lawyer-form .lawyer-form__main textarea.error,
body.lawyer-form .lawyer-form .lawyer-form__field.is-error input,
body.lawyer-form .lawyer-form .lawyer-form__field.is-error textarea,
body.lawyer-form .lawyer-form .lawyer-form__field.is-error select {
  border-color: #c0392b;
  background: #fdf3f2;
}

/* チェックボックス／ラジオ（同意欄など）
   グローバル側の appearance:none リセット等で“空の箱”になるのを防ぎ、
   ネイティブ描画を復帰させる（auto＝種別どおりに描画。ラジオは丸のまま） */
body.lawyer-form .lawyer-form .lawyer-form__main input[type="checkbox"],
body.lawyer-form .lawyer-form .lawyer-form__main input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  opacity: 1;
  vertical-align: -3px;
}
/* チェックボックスのチェック色は紺に。ラジオ等は従来の状態色を維持（影響させない） */
body.lawyer-form .lawyer-form .lawyer-form__main input[type="checkbox"] {
  accent-color: var(--lw-primary);
}
body.lawyer-form .lawyer-form .lawyer-form__main input[type="radio"] {
  accent-color: var(--lw-accent);
}

/* 同意ブロック */
body.lawyer-form .lawyer-form .lawyer-form__agree {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--lw-border);
  border-radius: 10px;
  background: var(--lw-bg-light);
  color: var(--lw-primary); /* 内部テキスト（同意文）まで紺に統一。.req白抜き／.errorエラー赤は各自の色を維持 */
}

/* ===== /lawyer-form 同意チェック 確定版（実DOM検証済み） =====
   実DOM構造：
     <div class="lawyer-form__agree-item">
       <span class="mwform-checkbox-field horizontal-item">
         <label><input type="checkbox"><span class="mwform-checkbox-field-text">同意文…</span></label>
       </span>
       <input type="hidden"><input type="hidden">
       <span class="req">必須</span>
     </div>
   ・チェックボックスは label 内ネイティブ input 1個のみ。
   ・画面上の“もう1つの□”は .mwform-checkbox-field-text::before が描くテーマの擬似CB → 除去。
   前ラウンドの flex/inline ハック（display:flex・flex-wrap・gap・flex:1 1 auto・text-indent 等）は撤去。
   同意文を紺にした color 指定（.lawyer-form__agree）はそのまま維持。 */
body.lawyer-form .lawyer-form .lawyer-form__agree-item {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 14px;   /* 同意文サイズを維持 */
  line-height: 1.8;  /* 同意文行間を維持 */
}
/* ネイティブ以外のカスタム擬似チェックボックス（二重表示の原因）を除去 */
body.lawyer-form .lawyer-form .lawyer-form__agree-item .mwform-checkbox-field-text::before {
  content: none !important;
}
/* 文章ラッパを全幅inline-blockからinlineへ（入力の押し出し・必須の改行を解消） */
body.lawyer-form .lawyer-form .lawyer-form__agree-item .mwform-checkbox-field,
body.lawyer-form .lawyer-form .lawyer-form__agree-item .mwform-checkbox-field label {
  display: inline;
}
body.lawyer-form .lawyer-form .lawyer-form__agree-item .mwform-checkbox-field-text {
  display: inline;
  width: auto;
  color: var(--lw-primary); /* 同意文を紺に明示（ラッパ自前色対策） */
}
/* チェックボックスは左に絶対配置＝1個・18px・紺・ぶら下げインデント両立 */
body.lawyer-form .lawyer-form .lawyer-form__agree-item input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  margin: 0;
  display: inline-block; /* テーマの display:none を上書きしてCBを再表示 */
  accent-color: var(--lw-primary);
}
/* 必須バッジは同意文の文末・行内（見た目は既存 .req を継承） */
body.lawyer-form .lawyer-form .lawyer-form__agree-item .req {
  display: inline-block;
  margin-left: 6px;
  vertical-align: baseline;
  white-space: nowrap;
}
/* バリデーションエラーは改行して下に表示 */
body.lawyer-form .lawyer-form .lawyer-form__agree-item .error {
  display: block;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   確認画面（MW: body/form に mw_wp_form_confirm が付く）
   入力値をテキスト表示するレイアウト
   -------------------------------------------------------------------------- */
body.lawyer-form.mw_wp_form_confirm .lawyer-form .lawyer-form__field,
body.lawyer-form .lawyer-form .mw_wp_form_confirm .lawyer-form__field {
  align-items: center;
}

body.lawyer-form .lawyer-form .lawyer-form__confirm-value {
  padding-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

body.lawyer-form .lawyer-form .lawyer-form__confirm-note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--lw-border); /* 淡い紺系ボーダー */
  border-radius: 8px;
  background: var(--lw-bg-light); /* 淡水色地 */
  color: var(--lw-primary);       /* 紺文字 */
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   ボタン（送信／確認＝大きめオレンジ・中央／戻る＝サブ配色）
   MW の input[type=submit] / button[type=submit] と BEM クラス両対応
   -------------------------------------------------------------------------- */
body.lawyer-form .lawyer-form .lawyer-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

/* 主ボタン（確認する／送信する） */
body.lawyer-form .lawyer-form .lawyer-form__submit,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"],
body.lawyer-form .lawyer-form .lawyer-form__main button[type="submit"] {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  padding: 18px 40px;
  border: none;
  border-radius: 999px;
  background: var(--lw-accent);
  box-shadow: 0 6px 16px rgba(234, 106, 30, 0.28);
  color: #fff;
  font-family: var(--lw-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

body.lawyer-form .lawyer-form .lawyer-form__submit:hover,
body.lawyer-form .lawyer-form .lawyer-form__submit:focus-visible,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"]:hover,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"]:focus-visible,
body.lawyer-form .lawyer-form .lawyer-form__main button[type="submit"]:hover,
body.lawyer-form .lawyer-form .lawyer-form__main button[type="submit"]:focus-visible {
  background: var(--lw-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

/* サブボタン（戻る／クリア） */
body.lawyer-form .lawyer-form .lawyer-form__back,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="button"],
body.lawyer-form .lawyer-form .lawyer-form__main button[type="button"] {
  display: inline-block;
  min-width: 220px;
  padding: 13px 32px;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  background: var(--lw-base);
  color: var(--lw-primary);
  font-family: var(--lw-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

body.lawyer-form .lawyer-form .lawyer-form__back:hover,
body.lawyer-form .lawyer-form .lawyer-form__back:focus-visible,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="button"]:hover,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="button"]:focus-visible,
body.lawyer-form .lawyer-form .lawyer-form__main button[type="button"]:hover,
body.lawyer-form .lawyer-form .lawyer-form__main button[type="button"]:focus-visible {
  background: var(--lw-bg-light);
  color: var(--lw-primary);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   レスポンシブ：タブレット（〜1024px）2カラム→1カラム
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.lawyer-form .lawyer-form .lawyer-form__body-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__head-title {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ：SP（〜768px）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body.lawyer-form .lawyer-form .lawyer-form__head {
    padding: 24px 0;
  }

  body.lawyer-form .lawyer-form .lawyer-form__head-inner {
    padding: 28px 20px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__head-sub {
    gap: 10px;
    font-size: 14px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__head-sub::before {
    width: 24px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__head-title {
    font-size: 22px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__head-lead {
    font-size: 14px;
  }

  /* ステップ：簡略表示（つなぎ線を短く・ラベル小さめ） */
  body.lawyer-form .lawyer-form .lawyer-form__steps-wrap {
    padding: 24px 0;
  }

  body.lawyer-form .lawyer-form .lawyer-form__steps {
    gap: 4px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__step {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    text-align: center;
  }

  body.lawyer-form .lawyer-form .lawyer-form__step:not(:last-child)::after {
    width: 24px;
    margin: 0 2px;
    align-self: flex-start;
    margin-top: 16px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__step-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__body {
    padding: 24px 0 40px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__body-inner {
    padding: 20px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__main {
    padding: 24px 18px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__main-title {
    margin-bottom: 20px;
    font-size: 20px;
  }

  /* フォーム行：ラベル上・入力下の縦積み */
  body.lawyer-form .lawyer-form .lawyer-form__field {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  body.lawyer-form .lawyer-form .lawyer-form__label {
    padding-top: 0;
  }

  body.lawyer-form .lawyer-form .lawyer-form__confirm-value {
    padding-top: 0;
  }

  /* iOS ズーム防止のため入力は16px維持（変更しない） */
  body.lawyer-form .lawyer-form .lawyer-form__agree {
    padding: 18px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__submit,
  body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"],
  body.lawyer-form .lawyer-form .lawyer-form__main button[type="submit"] {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* ==========================================================================
   弁護士相談フォーム 本文markup 用 追加スタイル（依頼⑥）
   MW WP Form 本文（claude/mwform_弁護士相談_本文.txt）で使用するフックのうち、
   依頼④未定義だったものを追加。すべて body.lawyer-form .lawyer-form スコープ・
   :root 変数準拠（新色の直書きなし）。
   ========================================================================== */

/* 任意バッジ（.any 単体用。本文は .any + .lawyer-form__optional の併記で暫定対応済み） */
body.lawyer-form .lawyer-form .any {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--lw-bg-chip);
  color: var(--lw-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* A. ご入力にあたってのお願い（淡い水色の情報ボックス） */
body.lawyer-form .lawyer-form .lawyer-form__notice {
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--lw-bg-light);
}
body.lawyer-form .lawyer-form .lawyer-form__notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lw-primary);
  font-size: 15px;
  font-weight: 700;
}
body.lawyer-form .lawyer-form .lawyer-form__notice-title i {
  color: var(--lw-primary); /* アイコンも紺に統一 */
}
body.lawyer-form .lawyer-form .lawyer-form__notice-list {
  margin-top: 10px;
  padding-left: 1.2em;
  list-style: disc;
  color: var(--lw-primary); /* 内部テキスト（li）まで紺に統一 */
}
body.lawyer-form .lawyer-form .lawyer-form__notice-list li {
  list-style: disc;
  margin-top: 6px;
  color: var(--lw-primary); /* 要素レベルで紺を明示（自前色が勝つケースの対策） */
  font-size: 13px;
  line-height: 1.8;
}

/* B. 個人情報の取扱い */
body.lawyer-form .lawyer-form .lawyer-form__privacy {
  margin-top: 28px;
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--lw-primary);
  font-size: 18px;
  font-weight: 700;
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-title i {
  color: var(--lw-primary); /* アイコンも紺に統一 */
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-lead {
  color: var(--lw-primary); /* テキスト紺に統一 */
  font-size: 14px;
  line-height: 1.9;
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-link {
  margin-top: 10px;
}
body.lawyer-form .lawyer-form .lawyer-form__link {
  color: var(--lw-primary);
  font-weight: 700;
  text-decoration: underline;
}
body.lawyer-form .lawyer-form .lawyer-form__link:hover,
body.lawyer-form .lawyer-form .lawyer-form__link:focus-visible {
  color: var(--lw-primary);
  opacity: 0.8;
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-box {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--lw-border);
  border-radius: 10px;
  background: var(--lw-bg-light);
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-box-title {
  color: var(--lw-primary);
  font-size: 14px;
  font-weight: 700;
}
body.lawyer-form .lawyer-form .lawyer-form__privacy-box-text {
  margin-top: 8px;
  color: var(--lw-primary); /* テキスト紺に統一 */
  font-size: 13px;
  line-height: 1.85;
}

/* privacy文の改行位置：PC(≥768px)は「当社」の直後で1回だけ折返す2行（各スパンを nowrap）。
   SP(<768px)は normal で自然折返し（横溢れなし）。 */
body.lawyer-form .lawyer-form .lawyer-form__privacy-box-text .lawyer-form__nw {
  white-space: normal;
}
@media (min-width: 768px) {
  body.lawyer-form .lawyer-form .lawyer-form__privacy-box-text .lawyer-form__nw {
    white-space: nowrap;
  }
}

/* D. 注意書き */
body.lawyer-form .lawyer-form .lawyer-form__caution {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--lw-primary); /* 注意書きテキストも紺に統一 */
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
body.lawyer-form .lawyer-form .lawyer-form__caution i {
  margin-top: 0;
}

/* 戻る（修正する）ボタン：MWでは type=submit のため value で特定してサブ配色に上書き */
body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"][value="入力内容を修正する"] {
  width: auto;
  min-width: 220px;
  max-width: none;
  padding: 13px 32px;
  border: 1px solid var(--lw-border);
  border-radius: 999px;
  background: var(--lw-base);
  box-shadow: none;
  color: var(--lw-primary);
  font-size: 15px;
  transform: none;
}
body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"][value="入力内容を修正する"]:hover,
body.lawyer-form .lawyer-form .lawyer-form__main input[type="submit"][value="入力内容を修正する"]:focus-visible {
  background: var(--lw-bg-light);
  color: var(--lw-primary);
  transform: none;
}

/* ==========================================================================
   完了画面（MW WP Form 完了画面メッセージ / claude/mwform_弁護士相談_完了画面.html）
   body.lawyer-form .lawyer-form 内に描画。中央寄せのカード。
   すべて :root 変数経由・.lawyer-form スコープ内。
   ========================================================================== */
body.lawyer-form .lawyer-form .lawyer-form__complete {
  max-width: 680px;
  margin: 56px auto;
  padding: 56px 40px;
  border: 1px solid var(--lw-border);
  border-radius: 12px;
  background: var(--lw-bg-light);
  box-shadow: var(--lw-shadow);
  text-align: center;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-icon {
  display: block;
  color: var(--lw-primary); /* 完了アイコンも紺に統一 */
  font-size: 48px;
  line-height: 1;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-title {
  margin-top: 20px;
  color: var(--lw-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-text {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-note {
  margin-top: 20px;
  color: var(--lw-muted);
  font-size: 13px;
  line-height: 1.8;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-contact {
  margin-top: 14px;
  color: var(--lw-text);
  font-size: 13px;
  line-height: 1.8;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-btn {
  position: relative;
  display: inline-block;
  min-width: 300px;
  margin-top: 32px;
  padding: 18px 60px 18px 40px;
  border-radius: 999px;
  background: var(--lw-accent);
  box-shadow: 0 6px 16px rgba(234, 106, 30, 0.28);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

body.lawyer-form .lawyer-form .lawyer-form__complete-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

body.lawyer-form .lawyer-form .lawyer-form__complete-btn:hover,
body.lawyer-form .lawyer-form .lawyer-form__complete-btn:focus-visible {
  background: var(--lw-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

@media (max-width: 768px) {
  body.lawyer-form .lawyer-form .lawyer-form__complete {
    margin: 40px 0;
    padding: 40px 20px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__complete-icon {
    font-size: 40px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__complete-title {
    font-size: 22px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__complete-text {
    font-size: 15px;
  }

  body.lawyer-form .lawyer-form .lawyer-form__complete-btn {
    width: 100%;
    min-width: 0;
    max-width: 400px;
    padding: 16px 48px 16px 32px;
    font-size: 16px;
  }
}

/* ==========================================================================
   一般お問い合わせ（/contact）レイアウト
   - body.contact にスコープ（固定ページ slug=contact の自動 body class）
   - PC：2カラム（左フォーム／右説明）／SP：1カラム（フォーム→説明の順）
   - ヘッダー/フッターは既存コーポレート流用（get_header / get_footer）
   - 配色・トーンの既存サイト踏襲、フォーム項目（タブ選択）・エラー表示の本調整は
     依頼⑫（MW本文）後のCSSラウンドで実施。ここは構造＋ニュートラルのみ。
   ========================================================================== */

/* 内側幅 */
body.contact .contact-form__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 見出し */
body.contact .contact-form__head {
  padding: 48px 0 24px;
}
body.contact .contact-form__head-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}
body.contact .contact-form__head-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
}

/* 2カラム本体 */
body.contact .contact-form__body {
  padding: 64px 0 64px;
}
body.contact .contact-form__body-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* 左：フォーム領域 */
body.contact .contact-form__main {
  min-width: 0;
  padding: 32px 36px;
  border: 1px solid var(--ct-border);
  border-radius: 12px;
  background: var(--ct-base);
}

/* 右：説明サイドバー */
body.contact .contact-form__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
body.contact .contact-form__card {
  padding: 20px 22px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
}
body.contact .contact-form__side-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
body.contact .contact-form__side-text {
  font-size: 13px;
  line-height: 1.85;
}
body.contact .contact-form__side-link {
  font-weight: 700;
  text-decoration: underline;
}
body.contact .contact-form__card--tel .contact-form__side-company {
  font-size: 14px;
  font-weight: 700;
}
body.contact .contact-form__card--tel .contact-form__side-tel {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
body.contact .contact-form__card--tel .contact-form__side-tel a {
  color: inherit;
}
body.contact .contact-form__card--tel .contact-form__side-hours {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
}

/* レスポンシブ：タブレット以下は1カラム（フォーム→説明の順） */
@media screen and (max-width: 900px) {
  body.contact .contact-form__body-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media screen and (max-width: 560px) {
  body.contact .contact-form__head {
    padding: 32px 0 20px;
  }
  body.contact .contact-form__head-title {
    font-size: 24px;
  }
}

/* ==========================================================================
   一般お問い合わせ（/contact）フォームUI
   - body.contact にスコープ。配色は既存コーポレート踏襲（--ct-* は css/style.css に合わせ調整）
   - タブ選択＝mwform_radio を pill 表示／入力欄・select・textarea・エラー・送信ボタン・完了画面
   - 詳細度方針：body.contact .contact-form … 形式で既存global CSSのしみ出しを上書き
   ========================================================================== */

/* カラートークン（★--ct-primary / --ct-primary-dark / --ct-text は既存siteのブランド色・本文色に合わせて調整） */
body.contact {
  --ct-primary: #4472c4;
  --ct-primary-dark: #365a99;
  --ct-text: #333;
  --ct-muted: #6b7684;
  --ct-border: #d6dce3;
  --ct-bg-light: #f5f7fa;
  --ct-base: #fff;
  --ct-accent: #ea6a1e;
  --ct-accent-light: #fdf1e8;
  --ct-req: #c0392b;
  --ct-error: #c0392b;
}

/* 必須／任意バッジ */
body.contact .req {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ct-req);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
body.contact .contact-form__optional {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e9edf1;
  color: var(--ct-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* フィールド・ラベル */
body.contact .contact-form__field {
  padding: 18px 0;
  border-bottom: 1px solid #eef1f4;
}
body.contact .contact-form__field:first-child {
  padding-top: 0;
}
body.contact .contact-form__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ct-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
body.contact .contact-form__help {
  margin-top: 6px;
  color: var(--ct-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* 入力欄 input / select / textarea */
body.contact .contact-form__main input[type="text"],
body.contact .contact-form__main input[type="email"],
body.contact .contact-form__main input[type="tel"],
body.contact .contact-form__main input[type="number"],
body.contact .contact-form__main select,
body.contact .contact-form__main textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ct-border);
  border-radius: 8px;
  background: var(--ct-base);
  color: var(--ct-text);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}
body.contact .contact-form__main textarea {
  min-height: 160px;
  resize: vertical;
}
body.contact .contact-form__main select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ct-primary) 50%), linear-gradient(135deg, var(--ct-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 15px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
body.contact .contact-form__main input::placeholder,
body.contact .contact-form__main textarea::placeholder {
  color: #a9b4bf;
}
body.contact .contact-form__main input[type="text"]:focus,
body.contact .contact-form__main input[type="email"]:focus,
body.contact .contact-form__main input[type="tel"]:focus,
body.contact .contact-form__main input[type="number"]:focus,
body.contact .contact-form__main select:focus,
body.contact .contact-form__main textarea:focus {
  outline: none;
  border-color: var(--ct-primary);
  box-shadow: 0 0 0 3px rgba(68, 114, 196, 0.12);
}

/* タブ選択（mwform_radio を 等幅セグメント表示）
   角丸なし・隙間ゼロのフラットな連結セグメント。各タブ群は行幅いっぱいに均等分割。
   既定は2分割（加入有無／会員区分）。 */
body.contact .contact-form__tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
/* 保険種目＝横1行で均等5分割 */
body.contact .contact-form__field--insurance-type .contact-form__tabs {
  grid-template-columns: repeat(5, 1fr);
}
body.contact .contact-form__tabs .mwform-radio-field {
  display: block;
  margin: 0;
}
/* 隙間ゼロで隣接ボーダーが二重（3px）に見えるのを解消：
   先頭以外のセルを 1.5px 左へ寄せて左右ボーダーを1本に重ねる（連結セグメント）。 */
body.contact .contact-form__tabs .mwform-radio-field:not(:first-child) {
  margin-left: -1.5px;
}
body.contact .contact-form__tabs .mwform-radio-field label {
  position: relative; /* 選択中/hover を z-index で前面に出すため */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px 12px;
  border: 1.5px solid var(--ct-border);
  border-radius: 0;
  background: var(--ct-base);
  color: var(--ct-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
/* ネイティブradioは視覚的に隠す（アクセシビリティは維持） */
body.contact .contact-form__tabs input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
/* セグメントタブ群（保険種目／加入有無／会員区分）のカスタム丸印（radio擬似要素）を非表示。
   display:none で丸印ぶんの余白も詰める。ラベル文字は残す。
   お問い合わせ種類カード（.contact-form__field--inquiry-type）の○は対象外＝:not() で除外。 */
body.contact .contact-form__field:not(.contact-form__field--inquiry-type) .contact-form__tabs .mwform-radio-field label input[type="radio"] + span::before,
body.contact .contact-form__field:not(.contact-form__field--inquiry-type) .contact-form__tabs .mwform-radio-field label span::before,
body.contact .contact-form__field:not(.contact-form__field--inquiry-type) .contact-form__tabs .mwform-radio-field label::before {
  display: none;
}
/* hover（重なりで隠れないよう前面へ） */
body.contact .contact-form__tabs .mwform-radio-field label:hover {
  z-index: 1;
  border-color: var(--ct-accent);
  opacity: 1;
}
/* 選択中（:has 対応／JSの .is-checked 両対応）：オレンジ枠＋淡いオレンジ地＋濃色文字
   重なった隣接セルの上にオレンジ枠を完全表示させるため z-index を最前面に。 */
body.contact .contact-form__tabs .mwform-radio-field label:has(input:checked),
body.contact .contact-form__tabs .mwform-radio-field label.is-checked {
  z-index: 2;
  background: var(--ct-accent-light);
  border-color: var(--ct-accent);
  color: var(--ct-text);
}

/* エラー（MW既定 .error） */
body.contact .contact-form__main .error {
  display: block;
  margin-top: 6px;
  color: var(--ct-error);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
body.contact .contact-form__main input.error,
body.contact .contact-form__main select.error,
body.contact .contact-form__main textarea.error {
  border-color: var(--ct-error);
  background: #fdf3f2;
}

/* 送信ボタン（確認する／送信する／修正する） */
body.contact .contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* F) 送信ボタン行を左右中央に */
  gap: 14px;
  margin-top: 28px;
}
body.contact .contact-form__actions input[type="submit"] {
  min-width: 220px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: var(--ct-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
body.contact .contact-form__actions input[type="submit"]:hover {
  background: var(--ct-primary-dark);
  opacity: 1;
}
/* 戻る（修正する）だけサブ配色に上書き（MWはいずれも input[type=submit] 出力） */
body.contact .contact-form__actions input[type="submit"][value="入力内容を修正する"] {
  background: var(--ct-base);
  border: 1px solid var(--ct-border);
  color: var(--ct-text);
}
body.contact .contact-form__actions input[type="submit"][value="入力内容を修正する"]:hover {
  background: var(--ct-bg-light);
  color: var(--ct-text);
}

/* 確認画面（body/form に mw_wp_form_confirm 付与時）の値表示を読みやすく */
body.contact.mw_wp_form_confirm .contact-form__control {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ct-text);
}

/* 完了画面 */
body.contact .contact-form__complete {
  max-width: 720px;
  margin: 48px auto;
  padding: 40px 24px;
  text-align: center;
}
body.contact .contact-form__complete-title {
  color: var(--ct-primary);
  font-size: 24px;
  font-weight: 700;
}
body.contact .contact-form__complete-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
}
body.contact .contact-form__complete-note {
  margin-top: 16px;
  color: var(--ct-muted);
  font-size: 13px;
  line-height: 1.85;
}
body.contact .contact-form__complete-contact {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}
body.contact .contact-form__complete-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 32px;
  border-radius: 999px;
  background: var(--ct-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
body.contact .contact-form__complete-btn:hover {
  background: var(--ct-primary-dark);
  opacity: 1;
}

/* レスポンシブ */
@media screen and (max-width: 560px) {
  body.contact .contact-form__tabs {
    gap: 0;
  }
  /* 保険種目：5列が窮屈なため等幅のまま3列＋2列の2段折返し */
  body.contact .contact-form__field--insurance-type .contact-form__tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 3列折返し時：各行の先頭セルは左寄せ（負マージンを戻す）、
     2段目は上ボーダーを1.5px重ねて行間の二重線も解消 */
  body.contact .contact-form__field--insurance-type .contact-form__tabs .mwform-radio-field:nth-child(3n+1) {
    margin-left: 0;
  }
  body.contact .contact-form__field--insurance-type .contact-form__tabs .mwform-radio-field:nth-child(n+4) {
    margin-top: -1.5px;
  }
  body.contact .contact-form__tabs .mwform-radio-field label {
    padding: 12px 8px;
    font-size: 13px;
  }
  body.contact .contact-form__actions input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   /contact 追加調整：④カード型・ステップ表示・1カラムSP
   ========================================================================== */

/* ④ お問い合わせ種類：〇＋タイトル＋説明文のカード型（他タブと別扱い） */
body.contact .contact-form__field--inquiry-type .contact-form__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.contact .contact-form__field--inquiry-type .contact-form__tabs .mwform-radio-field {
  display: block;
  margin: 0;
}
/* ④はラジオ〇を表示（タブ共通の非表示を上書き） */
body.contact .contact-form__field--inquiry-type .contact-form__tabs input[type="radio"] {
  position: static;
  width: 18px;
  height: 18px;
  margin: 0;
  opacity: 1;
  accent-color: var(--ct-accent);
  flex: 0 0 auto;
}
body.contact .contact-form__field--inquiry-type .contact-form__tabs .mwform-radio-field label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start; /* カード型は従来どおり左寄せ（タブ共通の中央寄せを打ち消す） */
  gap: 6px 10px;
  width: 100%;
  height: auto;
  padding: 16px 18px;
  border: 1px solid var(--ct-border);
  border-radius: 10px;
  background: var(--ct-base);
  color: var(--ct-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
body.contact .contact-form__field--inquiry-type .contact-form__tabs .mwform-radio-field label:hover {
  border-color: var(--ct-accent);
}
/* 選択中カード：オレンジ枠＋淡いオレンジ地 */
body.contact .contact-form__field--inquiry-type .contact-form__tabs .mwform-radio-field label:has(input:checked),
body.contact .contact-form__field--inquiry-type .contact-form__tabs .mwform-radio-field label.is-checked {
  background: var(--ct-accent-light);
  border-color: var(--ct-accent);
  color: var(--ct-text);
}
/* 説明文（JSで付与）：タイトル下に小さく */
body.contact .contact-form__field--inquiry-type .contact-form__opt-desc {
  flex: 0 0 100%;
  margin: 0;
  padding-left: 28px;
  color: var(--ct-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

/* ステップ表示（入力 → 内容確認 → 完了）: lawyer-form と同趣・アクセントはオレンジ */
body.contact .contact-form__steps-wrap {
  padding: 32px 0;
  border-bottom: 1px solid var(--ct-border);
}
body.contact .contact-form__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
body.contact .contact-form__step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ct-muted);
  font-size: 16px;
  font-weight: 700;
}
body.contact .contact-form__step:not(:last-child)::after {
  content: "";
  width: 48px;
  height: 2px;
  margin: 0 8px;
  background: var(--ct-border);
}
body.contact .contact-form__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef1f4;
  color: var(--ct-muted);
  font-size: 16px;
  line-height: 1;
}
body.contact .contact-form__step.is-active {
  color: var(--ct-accent);
}
body.contact .contact-form__step.is-active .contact-form__step-num {
  background: var(--ct-accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(234, 106, 30, 0.25);
}
body.contact .contact-form__step.is-upcoming .contact-form__step-num {
  background: var(--ct-base);
  border: 2px solid var(--ct-border);
  color: var(--ct-muted);
}

/* SP調整 */
@media screen and (max-width: 560px) {
  body.contact .contact-form__main {
    padding: 24px 18px;
  }
  body.contact .contact-form__field--inquiry-type .contact-form__tabs {
    grid-template-columns: 1fr;
  }
  body.contact .contact-form__steps-wrap {
    padding: 24px 0;
  }
  body.contact .contact-form__steps {
    gap: 4px;
  }
  body.contact .contact-form__step {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    text-align: center;
  }
  body.contact .contact-form__step:not(:last-child)::after {
    width: 24px;
    margin: 16px 2px 0;
    align-self: flex-start;
  }
}

/* ==========================================================================
   /lawyer-form 追加調整
   ========================================================================== */

/* B-1 /lawyer-form のヘッダーCTA（ご相談フォームへ）はこのページでは不要 */
body.lawyer-form .lawyer-header__cta {
  display: none;
}

/* ==========================================================================
   /contact 追加調整
   ========================================================================== */

/* A) /contact も header-lawyer.php を使用。ヘッダーCTAはこのページでは不要 */
body.contact .lawyer-header__cta {
  display: none;
}
