@charset "UTF-8";
/* =========================================================
   本体CSS の入口
   ---------------------------------------------------------
   このファイルは @import だけを持つ。実体は scss/ 以下。
   ページ別は scss/pages/ に置く。

   出力先は assets/css/style.css。
   ルートの style.css は WordPress がテーマを認識するための
   ヘッダーだけを持つ手書きファイルで、ビルドの出力ではない。

   **色はここに含まれない。** パレットは palette-*.scss として
   別に書き出し、実行時に PHP 側で1本だけ読み込む。
   （変数の定義が無い状態でこのファイル単体を読むと、
     var() を参照している宣言はすべて無効になる）

   ビルド：
     sh build.sh
   ========================================================= */
/* =========================================================
   変数（色以外）
   - ブレイクポイントは社内標準（帯・重なりなし）
   - 色は scss/palette/ 側が「正」。ここには書かない。
     配色を切り替えるときは style.scss の @import を差し替える。
   - CSS は未定義変数を参照すると宣言ごと無効化されるため、
     変数を足す・移すときは必ず palette 3ファイルすべてに定義する。
   ========================================================= */
/* ---------- ブレイクポイント ---------- */
/* ヒーローの PC / SP 画像切替だけは 900px 独立（$tab に寄せると
   タブレット横で縦画像が出てしまうため。§7 の注記どおり） */
:root {
  /* ---------- 版面 ---------- */
  --site-width: calc(100vw - 112px);
  /* ---------- イージング ---------- */
  --eo: cubic-bezier(.16, 1, .3, 1); /* 出のカーブ */
  --eio: cubic-bezier(.76, 0, .24, 1); /* 出入りのカーブ */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, .02, .24, 1);
  --dur: 1.1s;
  /* ---------- 書体 ---------- */
  --f-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-go: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

/* =========================================================
   mixin
   ⚠ これは「範囲指定」であって、カスケードではない。
     モックは max-width のカスケード（上の幅の指定が下の幅にも効き続ける）で
     書かれているため、同じ感覚で移すと帯の外で指定が消える。
     「その幅以下すべて」に効かせたい指定は、tab と sp の両方に書くこと。
   ========================================================= */
/* ヒーローの PC / SP 画像切替専用（900px 独立・§7 の注記） */
/* 追加サービス（TOP）の2カラム → 1カラム切替専用。
   一覧の行が 104+190+220+62+26 ＋ 余白＝約 690px、プレビューが最低 310px 必要で、
   左右の余白を含めると 1200px を下回った時点で入りきらない。
   帯（pc = 1025〜1440）で切ると 1440px でも1カラムに落ちてしまうため、
   ここだけ 1200px で独立させる。 */
/* 右端CTA（無料査定はこちらから）を畳む幅。
   ロゴ｜電話｜CTA｜ナビ の4つが並ぶのに最低 1124px＋余白 112px が要る。
   モックは 1200px で畳んでいるが、テーマは可読性基準で社名と英字社名を
   モックより上げてあるため、1240px を下回るとロゴのロックアップが切れる。
   実機の書体で幅が変わる余地を見て 1320px で畳む。
   帯（pc = 1025〜1440）で切ると 1366 / 1440 でも消えてしまうため、ここだけ独立させる。 */
/* 動きを減らす設定 */
/* =========================================================
   ベース
   ========================================================= */
/* 版面の左右余白を、狭い帯では詰める。
   モックでは @media(max-width:900px) の :root にあった1行。
   これが抜けると SP で版面が 100vw-112px のまま残り、
   ヘッダーの社名が電話ボタンに重なり、見出しも余計に折り返す。
   （変数の定義は _variables.scss に。ここは帯ごとの上書きだけ） */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  :root {
    --site-width: calc(100vw - 32px);
  }
}
@media screen and (max-width: 768px) {
  :root {
    --site-width: calc(100vw - 32px);
  }
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 以降 rem（1.7rem = 17px） */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg2);
  line-break: strict;
  font-family: var(--f-min);
  font-size: 1.7rem; /* 本文 17px */
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

figure {
  margin: 0;
}

h1, h2, h3, h4 {
  letter-spacing: 0.04em;
  /* 見出しの折り返し。
     balance … 行の長さを均す。これが無いと最終行に1文字だけ落ちる
               （例：「まずはお気軽にご相談くださ／い。」）
     auto-phrase … 文節の途中で折らない
               （例：「まずはお気軽にご／相談ください。」を避ける）
     どちらも対応していないブラウザは素通しするので、害はない。 */
  text-wrap: balance;
  word-break: auto-phrase;
}

/* 行ごとに起こす見出しも、行の中で折り返すことがあるので同じ扱い */
.ln-wrap > i {
  text-wrap: balance;
  word-break: auto-phrase;
}

/* ---------- 版面 ---------- */
.site-width {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
}

/* ---------- 改行制御（nl2br は使わない・§7） ---------- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .pc-only {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

@media screen and (min-width: 1441px) {
  .sp-only {
    display: none;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .sp-only {
    display: none;
  }
}
.sp-only {
  display: none;
}
@media screen and (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

/* ---------- 金の細線（見出しの下に引かれる） ---------- */
.rule {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
  margin: 22px 0 0;
}

.sec-head .rule {
  margin: 20px auto 0;
}

.additional-intro .rule,
.strength-copy .rule {
  opacity: 0.8;
}

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 290px;
  padding: 20px 28px;
  border: 1px solid rgba(var(--on-dark-rgb), 0.22);
  background: rgba(var(--ink-veil), 0.86);
  color: var(--on-dark);
  font-size: 1.7rem;
  transition: transform 0.35s var(--eo), background 0.35s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--on-dark-rgb), 0.14);
  transform: translateX(-101%);
  transition: transform 0.55s var(--ease-io);
}
.btn:hover::after {
  transform: translateX(0);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn small {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  opacity: 0.68;
  margin-left: 12px;
}
.btn.light {
  background: var(--btn-light-bg);
  color: var(--btn-light-fg);
  border-color: var(--btn-light-bd);
}
.btn.light:hover {
  background: var(--btn-light-bg-h);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .btn {
    min-width: 230px;
    padding: 16px 20px;
    font-size: 1.5rem;
  }
}
@media screen and (max-width: 768px) {
  .btn {
    min-width: 230px;
    padding: 16px 20px;
    font-size: 1.5rem;
  }
}

.more-link {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(var(--on-dark-rgb), 0.45);
  color: var(--on-dark);
  font-size: 1.5rem;
  transition: transform 0.35s var(--eo), background 0.35s, color 0.35s;
}
.more-link:hover {
  transform: translateX(5px);
}

/* ---------- 注記 ---------- */
.memo {
  margin: 26px 0 0;
  font-family: var(--f-go);
  font-size: 1.45rem;
  line-height: 1.9;
  color: var(--t-24);
}

.alert {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid var(--line-form);
  background: rgba(var(--veil-rgb), 0.55);
  font-family: var(--f-go);
  font-size: 1.45rem;
  color: var(--t-24);
}

/* ---------- アクセシビリティ ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 1.5rem;
}
.skip-link:focus {
  left: 0;
}

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

/* =========================================================
   ローダー
   TOP（A3）  … 4本の弧が円に集まり、内側が深緑に塗られてロゴが現れる（約3.1秒）
   下層（B）  … 金の細線が上辺→下辺→左辺→右辺の順に引かれ、囲みの中にロゴと社名（約2.2秒）
   演出スクリプト（main.js）から独立して動くこと。JS は loader.js のみ。
   ========================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--bg);
  /* A3 の円の直径。中の文字（サービス名）が円からはみ出すと
     生成り地の上に白文字が乗って読めなくなるので、狭い画面では大きめに取る。 */
  --l-dia: min(64vmin, 540px);
}
@media screen and (max-width: 768px) {
  #loader {
    --l-dia: min(86vmin, 540px);
  }
}
#loader {
  /* 最後の砦。
     何かの理由で loader.js が動き出せなかったとき（配信の遅れ、読み込み失敗など）、
     画面を覆ったまま固まらないように、12秒で必ず退かせる。
     正常時は 5 秒ほどで JS が display:none にするので、ここまで来ない。 */
  animation: chiba-loader-guard 1ms linear 12s forwards;
}
#loader.is-out {
  background: transparent !important;
  transition: background 0s linear 1s;
}
#loader {
  /* 初回描画ガード：JS が初期状態を確定する前は内部パーツを見せない。
     リロード直後の SVG 弧・ロゴの残像を防ぐ（背景だけは最初から出す）。 */
}
#loader:not(.is-ready) .l-dial, #loader:not(.is-ready) .l-disc, #loader:not(.is-ready) .l-c {
  visibility: hidden;
}
#loader {
  /* 再生やり直しのとき、前回の状態から戻る transition を走らせない */
}
#loader.no-t, #loader.no-t *, #loader.no-t *::before, #loader.no-t *::after {
  transition: none !important;
}
#loader .l-c {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 6;
}
#loader .l-in {
  text-align: center;
  position: relative;
}
#loader {
  /* ---------- 円（A3） ---------- */
}
#loader .l-dial {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: var(--l-dia);
  height: var(--l-dia);
}
#loader .l-dial svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
#loader .l-dial circle {
  fill: none;
}
#loader .q {
  stroke-width: 1;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  /* R=150 の円周 = 942.48 / その 1/4 = 235.62。
     JS 実行前でも開始状態が確定するよう CSS 側にも持たせる。 */
  stroke-dasharray: 235.62 942.48;
  stroke-dashoffset: 235.62;
  transition: stroke-dashoffset 1.15s var(--eio), transform 1.35s var(--eo), opacity 0.5s ease, stroke 0.75s ease 0.92s, stroke-width 0.75s ease 0.92s;
}
#loader .q1 {
  stroke: var(--gold);
  transform: rotate(-136deg) translateY(-34px);
}
#loader .q2 {
  stroke: var(--ink);
  transform: rotate(136deg) translateY(34px);
}
#loader .q3 {
  stroke: var(--gold);
  transform: rotate(44deg) translateY(34px);
}
#loader .q4 {
  stroke: var(--ink);
  transform: rotate(316deg) translateY(-34px);
}
#loader.go .q {
  stroke: var(--gold-l);
  stroke-width: 1.6;
  stroke-dashoffset: 0;
}
#loader.go .q1 {
  transform: rotate(-90deg);
}
#loader.go .q2 {
  transform: rotate(0deg);
}
#loader.go .q3 {
  transform: rotate(90deg);
}
#loader.go .q4 {
  transform: rotate(180deg);
}
#loader.is-out .q1 {
  transform: rotate(-90deg) translateY(-70vh);
  opacity: 0;
  transition: all 0.95s var(--eio);
}
#loader.is-out .q2 {
  transform: rotate(0deg) translateY(-70vh);
  opacity: 0;
  transition: all 0.95s var(--eio) 0.04s;
}
#loader.is-out .q3 {
  transform: rotate(90deg) translateY(-70vh);
  opacity: 0;
  transition: all 0.95s var(--eio) 0.08s;
}
#loader.is-out .q4 {
  transform: rotate(180deg) translateY(-70vh);
  opacity: 0;
  transition: all 0.95s var(--eio) 0.12s;
}
#loader {
  /* ---------- 内側の面 ---------- */
}
#loader .l-disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--l-dia);
  height: var(--l-dia);
  margin: calc(var(--l-dia) / -2) 0 0 calc(var(--l-dia) / -2);
  z-index: 3;
  border-radius: 50%;
  background: var(--loader-disc);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.15s var(--eio) 0.8s;
}
#loader.go .l-disc {
  clip-path: circle(50% at 50% 50%);
}
#loader {
  /* ---------- ロゴ・文字（変形させない・object-fit: contain のみ） ---------- */
}
#loader .l-mk {
  width: calc(var(--l-dia) * 0.594);
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.95s var(--eo) 1s;
}
#loader .l-mk img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
#loader.go .l-mk {
  opacity: 1;
}
#loader .l-rule {
  display: block;
  width: 0;
  height: 1px;
  background: var(--gold-l);
  margin: 20px auto 0;
}
@media screen and (max-width: 768px) {
  #loader .l-rule {
    margin-top: 14px;
  }
}
#loader .l-rule {
  transition: width 0.9s var(--eio) 1.32s;
}
#loader.go .l-rule {
  width: 150px;
}
#loader .l-sb {
  /* 円の内側に必ず収める。入りきらない幅では2行に折る。
     はみ出すと生成り地の上に白文字が乗って読めなくなる。 */
  max-width: calc(var(--l-dia) * 0.5);
  /* 「片付／けアット」のように語の途中で割らせない。折るなら空白の位置で。
     区切りのない長い文字列が来たときだけ、どこでも折って飛び出しを防ぐ。 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin: 18px auto 0;
  font-family: var(--f-go);
  /* ブランド表記なので大きく見せる（クライアント修正 §4）。
     字間を .2em のまま広げると円の内側に収まらないので詰める。 */
  font-size: 1.8rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
}
@media screen and (max-width: 768px) {
  #loader .l-sb {
    letter-spacing: 0.08em;
    margin-top: 12px;
  }
}
#loader .l-sb {
  color: var(--loader-sub);
  opacity: 0;
  transition: opacity 0.75s ease 1.5s;
}
#loader.go .l-sb {
  opacity: 1;
}
#loader {
  /* ---------- 覆い ---------- */
}
#loader .l-veil {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: var(--loader-disc);
  opacity: 1;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.88s var(--eio) 0.1s, opacity 0.58s ease 0.98s;
}
#loader {
  /* 最後はスライドさせず、円が画面を満たしたまま HERO へ溶かす */
}
#loader.is-out .l-veil {
  clip-path: circle(160% at 50% 50%);
  opacity: 0;
  transform: none;
}
#loader.is-out .l-c {
  opacity: 0;
  transition: opacity 0.34s ease;
}
#loader.is-out .l-disc, #loader.is-out .l-dial {
  opacity: 0;
  transition: opacity 0.42s ease 0.26s;
}
#loader {
  /* =======================================================
     下層（B）：線で囲う
     ======================================================= */
}
#loader.simple {
  background: transparent;
}
#loader.simple .l-dial, #loader.simple .l-disc, #loader.simple .l-mk, #loader.simple .l-rule, #loader.simple .l-sb, #loader.simple .l-veil {
  display: none;
}
#loader.simple .l-p {
  display: block;
}
#loader.simple .l-frame {
  display: block;
}
#loader.simple .l-bar {
  display: block;
}
#loader.simple .l-in {
  transition: opacity 0.5s ease, transform 0.8s var(--eo);
}
#loader.simple.go .l-frame::before, #loader.simple.go .l-frame::after {
  height: 100%;
}
#loader.simple.go .l-fh, #loader.simple.go .l-ff {
  width: 100%;
}
#loader.simple.go .l-fmk {
  opacity: 1;
  transform: translateY(0);
}
#loader.simple.go .l-fnm {
  opacity: 1;
}
#loader.simple.go .l-fsb {
  opacity: 1;
}
#loader.simple.go .l-bar {
  width: 100%;
}
#loader.simple.is-out {
  background: transparent !important;
}
#loader.simple.is-out .l-p--t {
  transform: translateY(-100%);
}
#loader.simple.is-out .l-p--b {
  transform: translateY(100%);
}
#loader.simple.is-out .l-in {
  opacity: 0;
  transform: translateY(-14px);
}
#loader.simple.is-out .l-c {
  opacity: 1;
  transition: none;
}
#loader.simple.is-out .l-bar {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#loader {
  /* 幕（上下に開く） */
}
#loader .l-p {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: var(--bg);
  z-index: 1;
  transition: transform 1.05s var(--eio);
}
#loader .l-p--t {
  top: 0;
}
#loader .l-p--b {
  bottom: 0;
}
#loader {
  /* 枠（上辺・下辺が先に、左辺・右辺が追って引かれる） */
}
#loader .l-frame {
  display: none;
  position: relative;
  padding: 52px 64px;
}
#loader .l-frame::before, #loader .l-frame::after {
  content: "";
  position: absolute;
  background: var(--gold);
  opacity: 0.55;
  width: 1px;
  height: 0;
}
#loader .l-frame::before {
  left: 0;
  top: 0;
  transition: height 0.8s var(--eio) 0.35s;
}
#loader .l-frame::after {
  right: 0;
  bottom: 0;
  transition: height 0.8s var(--eio) 0.35s;
}
#loader .l-fh, #loader .l-ff {
  position: absolute;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  width: 0;
}
#loader .l-fh {
  left: 0;
  top: 0;
  transition: width 0.9s var(--eio) 0.18s;
}
#loader .l-ff {
  right: 0;
  bottom: 0;
  transition: width 0.9s var(--eio) 0.18s;
}
#loader {
  /* 中身（マーク → 社名 → サービス名） */
}
#loader .l-fmk {
  width: 88px;
  margin: 0 auto 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.85s var(--eo) 0.5s, transform 1s var(--eo) 0.5s;
}
#loader .l-fmk img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
#loader .l-fnm {
  margin: 0;
  font-family: var(--f-min);
  font-size: 2.3rem;
  letter-spacing: 0.16em;
  color: var(--gold-brand);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease 0.68s;
}
#loader .l-fsb {
  margin: 10px 0 0;
  font-family: var(--f-go);
  /* ブランド表記なので大きく見せる（クライアント修正 §4）。
     社名（.l-fnm 2.3rem）を超えない範囲で上げる。 */
  font-size: 1.8rem;
  letter-spacing: 0.14em;
  color: var(--gold-sub);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease 0.82s;
}
#loader {
  /* 画面下の進行バー */
}
#loader .l-bar {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  opacity: 0.55;
  z-index: 4;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}
@media screen and (max-width: 768px) {
  #loader .l-frame {
    padding: 40px 26px;
  }
  #loader .l-fnm {
    font-size: 2rem;
  }
  #loader .l-fsb {
    letter-spacing: 0.1em;
  }
}

@keyframes chiba-loader-guard {
  to {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #loader {
    display: none !important;
    animation: none !important;
  }
}
/* JS が動かない環境では幕を出さない。
   出したままだと、画面を覆ったきり開かなくなる。 */
html:not(.js) #loader {
  display: none !important;
}

/* =========================================================
   ヘッダー / グローバルナビ / ドロワー
   PC … ロゴ ＋ 電話 ＋ 右端CTA ＋ ナビ5項目。「追加サービス」はメガメニューで右寄せ。
   SP … ドロワー。「追加サービス」はアコーディオンで開く。
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid rgba(var(--shadow-rgb), 0.06);
  transition: transform 0.4s var(--ease-io);
  will-change: transform;
}

.header.is-hide {
  transform: translateY(-100%);
}

.header-in {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  /* ロゴ｜電話｜CTA｜ナビ。ナビの列だけ 1fr にして、余りを全部そこに寄せる。
     DOM の並びもこの順（parts/nav.php を最後に読む）。 */
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  column-gap: clamp(16px, 2vw, 32px);
  padding: 14px 0;
  /* ナビは右端に揃える。1fr の列いっぱいには広げない。 */
}
.header-in .nav {
  justify-self: end;
}
.header-in {
  /* CTA を畳む幅より下は ロゴ｜電話｜ナビ の3列 */
}
@media screen and (max-width: 1320px) {
  .header-in {
    grid-template-columns: auto auto 1fr;
    column-gap: 18px;
  }
}
.header-in {
  /* ドロワーに切り替わる帯では「ロゴ｜操作ボタン」の2列。
     ロゴ側を minmax(0,1fr) にして、書体が変わって社名が伸びても
     操作ボタンを押し出さないようにする。 */
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .header-in {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
  }
}
@media screen and (max-width: 768px) {
  .header-in {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }
}

/* ---------- ロゴ ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  min-width: 0; /* グリッドの中で縮めるため。これが無いと SP で横に溢れる */
}
@media screen and (max-width: 768px) {
  .brand {
    gap: 10px;
  }
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}
.brand-mark img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media screen and (max-width: 768px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}
.brand-text strong {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold-brand);
  letter-spacing: 0.03em;
  font-weight: 600;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .brand-text strong {
    font-size: 2.4rem;
  }
}
@media screen and (max-width: 768px) {
  .brand-text strong {
    font-size: 1.9rem;
    letter-spacing: 0.01em;
  }
}
.brand-text span {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--gold-sub);
  margin-top: 4px;
  /* SP では英字社名を伏せる。
     最小14px を守ったまま出すと 1行が長すぎて、ヘッダーが横に溢れる。
     社名は日本語で足りているので、ここは落とす。 */
}
@media screen and (max-width: 768px) {
  .brand-text span {
    display: none;
  }
}

/* ---------- グローバルナビ（PC） ---------- */
.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 1.5rem;
  color: var(--t-9);
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .nav {
    gap: 16px;
    font-size: 1.4rem;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nav {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .nav {
    display: none;
  }
}
.nav a {
  white-space: nowrap;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--ink2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav a.is-cur::after {
  transform: scaleX(1);
}

/* ---------- 追加サービスのメガメニュー ---------- */
.nav-has {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-ar {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  opacity: 0.6;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s;
}

.nav-has:hover .nav-ar {
  transform: rotate(45deg) translate(0, 0);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  /* 「追加サービス」がナビ右端に来たので右寄せ。
     left / right だけ差し替えて transform を残すと、自分の幅の半分（30rem）
     ぶん左へずれてリンクから離れ、マウスを移す途中でホバーが切れる。
     開いた状態（下の :hover / :focus-within）も含めて必ず打ち消すこと。 */
  left: auto;
  right: 0;
  transform: translate(0, 10px);
  width: min(60rem, 84vw);
  padding: 2.2rem;
  background: var(--surface);
  box-shadow: 0 1.6rem 4rem rgba(var(--shadow-panel-rgb), 0.16);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 2.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s cubic-bezier(0.22, 0.65, 0.3, 1);
  /* ナビとパネルの隙間でホバーが切れないよう、透明な橋を渡す。
     left/right は .nav-panel 自身を基準にしているので、パネルを右寄せに
     しても橋はパネルの幅いっぱいに付いてくる（付け替え不要）。 */
}
.nav-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-panel {
  /* 幅が足りない帯はドロワーに任せる */
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nav-panel {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .nav-panel {
    display: none;
  }
}

.nav-has:hover .nav-panel,
.nav-has:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0);
}

.np-list {
  display: grid;
  align-content: start;
}
.np-list a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1rem 0.5rem;
  font-size: 1.6rem;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.np-list a + a {
  border-top: 1px solid var(--line-panel);
}
.np-list a:hover {
  background: rgba(var(--gold-rgb), 0.09);
  transform: translateX(4px);
}
.np-list a::after {
  display: none;
}
.np-list em {
  font-style: normal;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--gold-em);
}
.np-list small {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--t-26);
  margin-top: 3px;
  white-space: normal;
  line-height: 1.6;
}

.np-view {
  position: relative;
  overflow: hidden;
  background: var(--band-head);
  min-height: 20rem;
}
.np-view figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.45s, transform 0.7s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.np-view figure.is-on {
  opacity: 1;
  transform: scale(1);
}
.np-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 電話 ---------- */
.tel {
  font-size: 2.2rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  line-height: 1.25;
}
.tel small {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--t-25);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.03em;
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .tel {
    font-size: 2rem;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .tel {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .tel {
    display: none;
  }
}

/* ---------- 右端CTA（1320px 以下は畳む。$cta-fold の注記を参照） ---------- */
.cta-head {
  background: var(--ink);
  color: var(--on-dark);
  padding: 14px 18px;
  font-size: 1.4rem;
  line-height: 1.4;
  text-align: center;
  transition: background 0.3s;
}
.cta-head:hover {
  background: var(--ink2);
}
@media screen and (max-width: 1320px) {
  .cta-head {
    display: none;
  }
}

/* =========================================================
   タブレット / SP：電話ボタン ＋ ハンバーガー
   ========================================================= */
.header-sp-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .header-sp-actions {
    display: flex;
  }
}
@media screen and (max-width: 768px) {
  .header-sp-actions {
    display: flex;
  }
}

.header-tel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--on-dark);
}
.header-tel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hamburger {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.35s var(--eo), opacity 0.2s;
}
.hamburger span:nth-child(1) {
  top: 16px;
}
.hamburger span:nth-child(2) {
  top: 22px;
}
.hamburger span:nth-child(3) {
  top: 28px;
}
.hamburger[aria-expanded=true] span:nth-child(1) {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded=true] span:nth-child(3) {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ---------- ドロワー ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}
@media screen and (min-width: 1441px) {
  .drawer {
    display: none;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .drawer {
    display: none;
  }
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-veil {
  position: absolute;
  inset: 0;
  background: rgba(var(--ink-veil), 0.55);
  opacity: 0;
  transition: opacity 0.45s var(--eo);
}

.drawer.is-open .drawer-veil {
  opacity: 1;
}

.drawer-in {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 88vw);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding: 88px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.55s var(--eo);
}

.drawer.is-open .drawer-in {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.drawer-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--text);
}
.drawer-close span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.drawer-close span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-nav {
  border-top: 1px solid var(--line);
}
.drawer-nav li {
  border-bottom: 1px solid var(--line);
}
.drawer-nav > ul > li > a,
.drawer-nav .drawer-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  font-family: var(--f-min);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.drawer-nav .drawer-sub-toggle i {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.drawer-nav .drawer-sub-toggle i::before, .drawer-nav .drawer-sub-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.drawer-nav .drawer-sub-toggle i::after {
  transform: rotate(90deg);
  transition: transform 0.3s var(--eo);
}
.drawer-nav .drawer-sub-toggle[aria-expanded=true] i::after {
  transform: rotate(0deg);
}
.drawer-nav {
  /* 開閉を滑らかに。
     高さ auto へは補間できないので、1行のグリッドを 0fr → 1fr で伸ばす。
     中の ul を overflow:hidden にして、畳んだときにはみ出させない。 */
}
.drawer-nav .drawer-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--eo);
}
.drawer-nav .drawer-sub > ul {
  overflow: hidden;
  min-height: 0;
}
.drawer-nav .drawer-sub li {
  border-bottom: 0;
}
.drawer-nav .drawer-sub a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 12px 4px 12px 14px;
  font-size: 1.6rem;
  color: var(--t-10);
}
.drawer-nav .drawer-sub em {
  font-style: normal;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--gold-em);
}
.drawer-nav .drawer-sub {
  /* 最後の項目の下に余白。畳んだときは一緒に潰れてほしいので ul の中に置く */
}
.drawer-nav .drawer-sub > ul > li:last-child {
  padding-bottom: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .drawer-nav .drawer-sub {
    transition: none;
  }
}
.drawer-nav .drawer-sub.is-open {
  grid-template-rows: 1fr;
}

.drawer-foot {
  margin-top: 30px;
}
.drawer-foot .drawer-tel {
  display: block;
  text-align: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.drawer-foot .drawer-tel strong {
  display: block;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2;
}
.drawer-foot .drawer-tel small {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--muted);
  margin-top: 4px;
}
.drawer-foot .drawer-cta {
  display: block;
  margin-top: 12px;
  padding: 18px;
  /* ドロワーの地は --bg。紺では --ink が同値になるので専用の変数で受ける */
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  text-align: center;
  font-size: 1.7rem;
}
.drawer-foot .drawer-sns {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--muted);
}
.drawer-foot .drawer-privacy {
  display: block;
  margin-top: 22px;
  text-align: center;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--muted);
}

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

/* =========================================================
   CONTACT（全ページ共通）／ フッター
   ========================================================= */
/* ---------- CONTACT ---------- */
.contact {
  position: relative;
  color: var(--on-dark);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 写真の色（青・緑）が透けると帯が黒に見えないので、幕は濃いめに置く。 */
  background: rgba(var(--ink-veil), 0.88);
}

.contact-bg {
  position: absolute;
  inset: 0;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像未設定のときは深緑ベタで受ける */
.contact-bg--solid {
  background: var(--ink);
}

.contact-in {
  position: relative;
  z-index: 2;
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  /* 中央は電話番号の列。40px の 090-8034-7956 が1行で入る下限（実測287px＋左右padding）を持たせる。 */
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.8fr) minmax(210px, 0.72fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: center;
  padding: 56px 0;
  /* pc 帯は3列だと電話の列が 181〜284px しか取れず、番号が桁の途中で折れる。
     コピーを1行目に逃がして、CTA2つを2行目に横並びで置く。 */
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .contact-in {
    grid-template-columns: 1fr 1fr;
  }
  .contact-in .contact-copy {
    grid-column: 1/-1;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .contact-in {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}
@media screen and (max-width: 768px) {
  .contact-in {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.contact-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 3vw, 4rem);
  font-weight: 500;
  line-height: 1.4;
}
.contact-copy p {
  margin: 0;
  color: rgba(var(--on-dark-rgb), 0.92);
  font-size: 1.6rem;
}

.contact-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  padding: 12px 20px;
  background: var(--band-contact);
  color: var(--t-1);
  font-size: 1.8rem;
  text-align: center;
  border: 1px solid rgba(var(--on-dark-rgb), 0.15);
  transition: transform 0.35s var(--eo), background 0.35s, color 0.35s;
}
.contact-box:hover {
  transform: translateY(-3px);
}
.contact-box {
  /* 電話番号は桁の途中で折らない */
}
.contact-box strong {
  display: block;
  font-size: 4rem;
  line-height: 1.15;
  font-weight: 600;
  white-space: nowrap;
}
.contact-box small {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--muted);
  margin-top: 2px;
}
.contact-box.dark {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  /* 地色を地と同系に寄せたぶん、ボタンの輪郭が幕に溶ける。ここだけ縁を起こす。
     紺は面が金なので、枠は面と同色にして縁を消している。 */
  border-color: var(--btn-solid-bd);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .contact-box {
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .contact-box {
    width: 100%;
  }
  .contact-box strong {
    font-size: 3.2rem;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ink-deep);
  color: var(--on-dark-2);
  padding: 64px 0 28px;
  box-shadow: 0 -1px 0 rgba(var(--footer-line-rgb), 0.12);
}

.footer-in {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .footer-in {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 768px) {
  .footer-in {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  width: 96px;
  margin-bottom: 20px;
  /* ロゴは階調処理・変形を加えない（§10）。深緑地でも十分読める配色のため素のまま置く。 */
}
.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-company {
  font-family: var(--f-min);
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-1);
  margin: 0 0 4px;
}

.footer-service {
  font-family: var(--f-go);
  /* ブランド表記なので大きく見せる（クライアント修正 §4）。
     社名（.footer-company 1.9rem）を超えない範囲で上げる。 */
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  color: var(--on-dark-4);
  margin: 0 0 16px;
}

.footer-ad {
  font-family: var(--f-go);
  font-size: 1.4rem;
  line-height: 2;
  color: var(--on-dark-3);
  margin: 0;
}

.footer h4 {
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--gold-h4);
  margin: 0 0 15px;
  white-space: nowrap;
  font-weight: 500;
}

.footer li {
  margin-bottom: 10px;
  font-size: 1.45rem;
}
.footer li a {
  white-space: nowrap;
  display: inline-block;
  transition: color 0.25s, transform 0.25s;
}
.footer li a:hover {
  transform: translateX(5px);
}

.footer-b {
  width: var(--site-width);
  max-width: 1600px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--footer-line-rgb), 0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.footer-b span {
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--on-dark-5);
}
.footer-b .footer-note {
  opacity: 0.72;
}

/* =========================================================
   スクロール演出（CSS駆動）
   CSS が初期状態を持ち、JS は「画面に入ったら .in を付ける」だけ。
   初期状態は .anim を付けた要素にのみ適用されるため、
   JS が動かない環境では最初から見えている。
   外部ライブラリは使わない（GSAP / ScrollTrigger / Lenis 不使用）。
   ========================================================= */
.anim {
  --d: 0ms;
}

/* 下から起き上がる */
.anim.a-up {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s var(--ease-out) var(--d), transform 1.05s var(--ease-out) var(--d);
}
.anim.a-up.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* そのまま浮かぶ */
.anim.a-fade {
  opacity: 0;
  transition: opacity 0.95s var(--ease-out) var(--d);
}
.anim.a-fade.in {
  opacity: 1;
}

/* 下からマスクを開く（見出し・写真） */
.anim.a-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur) var(--ease-io) var(--d);
}
.anim.a-mask.in {
  clip-path: inset(0 0 0% 0);
}

/* 左からマスクを開く（強みの写真だけ・他と方向を変える） */
.anim.a-maskl {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s var(--ease-io) var(--d);
}
.anim.a-maskl.in {
  clip-path: inset(0 0% 0 0);
}

/* 罫線を引きおろす */
.anim.a-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.95s var(--ease-io) var(--d);
}
.anim.a-line.in {
  transform: scaleX(1);
}

/* 写真：外枠を開き、中の絵をゆっくり戻す */
.anim.a-ph {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-io) var(--d);
}
.anim.a-ph.in {
  clip-path: inset(0 0 0% 0);
}
.anim.a-ph > * {
  transform: scale(1.07);
  transition: transform 1.9s var(--ease-out) var(--d);
}
.anim.a-ph.in > * {
  transform: scale(1);
}

/* 大きな写真の幕開け（a-mask の合成に載る版）
   clip-path は合成任せにできず、開いている間ずっと塗り直しになる。
   マスク付きの大きな写真だと毎フレーム焼き直すので重い（実測：1回の再生で Paint 225回）。
   ここは地色と同じ板を transform でどかす。transform は合成だけで済むので塗り直しが起きない。
   板の色は必ず地色と同じ変数から引くこと。ずれると幕の縁が線になって見える。 */
.anim.a-veil {
  overflow: hidden;
}
.anim.a-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--panel-bg, var(--bg));
  transform: translateY(0);
  transition: transform var(--dur) var(--ease-io) var(--d);
}
.anim.a-veil.in::after {
  transform: translateY(100%);
}

/* 見出しを行ごとに */
.ln-wrap {
  display: block;
  overflow: hidden;
}
.ln-wrap > i {
  display: block;
  font-style: normal;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.15s var(--ease-out) var(--d);
}

.in .ln-wrap > i,
.ln-wrap.in > i {
  transform: translate3d(0, 0, 0);
}

/* 動きを減らす設定では、すべて静止状態で表示する */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .anim.a-up,
  .anim.a-fade,
  .anim.a-mask,
  .anim.a-maskl,
  .anim.a-line,
  .anim.a-ph {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .anim.a-ph > * {
    transform: none !important;
  }
  .anim.a-veil::after {
    transform: translateY(100%) !important;
    transition: none !important;
  }
  .ln-wrap > i {
    transform: none !important;
  }
}
/* =========================================================
   ビフォーアフター（片付け前 → 片付け後）
   1ページに1組だけ置く。前後は必ず横に並べる（縦に積むと対比が読めない）。

   プレビュー ba-preview-v2.html からの移植。移した際に直したところ：
   - 11px / 13.5px の指定を 14px に上げた（v3 §2 の最小文字サイズ。指示書も v3 優先と明記）
   - 色は --green → --ink（配色を黒基調に変えた際の改名に追随）
   - max-width:900px のカスケードを tab / sp の両方に分けた（下の注意書き）
   - 比率のプリセット（.ba--portrait 等）は入れていない。
     比率は ACF の値から --ba-ratio をインラインで渡す一本道にする
   ========================================================= */
/* TOP に置くときの受け皿。下層は .blk の中に入るので不要。
   中身が空のときは部品側が囲みごと出さないので、ここでは素直に余白を持たせる。 */
.ba-section {
  width: 100%;
}

.ba-in {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) 0;
}

.ba {
  --ba-ratio: 4/3; /* 組ごとに上書きされる */
  --ba-gap: clamp(10px, 1.6vw, 20px); /* 写真どうしの間隔 */
  --ba-col: clamp(200px, 20vw, 260px); /* 文章カラムの幅。写真側に幅を回すため低め */
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ba-col);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  margin: 0;
}

/* 向きを反転（文章が左・写真が右） */
.ba--flip {
  grid-template-columns: var(--ba-col) minmax(0, 1fr);
}
.ba--flip .ba-shots {
  order: 2;
}
.ba--flip .ba-body {
  order: 1;
}

/* ビフォーアフターは本文の段に収めない。
   段（強み 760px / 基本サービス 1080px）に入れると写真が 211〜371px まで痩せて、
   前後を見比べるという用が足りなくなる。ページによって幅が変わるのも避けたいので、
   どこに置いても版面幅（TOP と同じ）に揃える。
   中央に戻す計算：親の中央（50%）から、自分の半分だけ左へ。
   ※ 狭い帯では版面幅と段の幅が一致するため、この指定は素通しになる。 */
.ba-band {
  width: var(--site-width);
  max-width: 1600px;
  margin-left: 50%;
  transform: translateX(-50%);
  /* 段の中に割り込む形になるので、前後の間隔は .blk の刻みに合わせて自分で持つ。 */
  margin-top: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* 組を縦に積むときの間隔。1つの塊に見えないよう、しっかり空ける。 */
.ba-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 104px);
}

/* 文章が全部空のとき（原稿待ち）。空の列を残さず、写真だけで組む。 */
.ba--solo {
  grid-template-columns: 1fr;
}
.ba--solo .ba-body {
  display: none;
}
.ba--solo .ba-shots {
  order: 0;
}

/* ---------- 写真2枚 ---------- */
.ba-shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ba-gap);
  align-items: start;
}

.ba-fig {
  margin: 0;
}

.ba-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-go);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 9px;
}
.ba-cap::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ba-fig--after .ba-cap {
  color: var(--gold);
}
.ba-fig--after .ba-cap::after {
  background: var(--gold-l);
}

.ba-shot {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: var(--ba-ratio);
  /* 幕（.a-veil）の板が引く色。写真の下地と同じにして、枠が先に見えている状態から
     中身が上から現れるようにする。 */
  --panel-bg: var(--panel);
}
.ba-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 支給素材が全て室内の暗い写真のため、片付け後だけわずかに起こす */
.ba-fig--after .ba-shot img {
  filter: brightness(1.03) contrast(1.04);
}

/* 前後で明度が逆転している組に当てる強めの補正。
   インラインで書かず、この組だけクラスで指定すること（指示書 §5）。 */
.ba--lift .ba-fig--after .ba-shot img {
  filter: brightness(1.1) contrast(1.1) saturate(1.02);
}

/* ---------- 中央の矢印（飾り。前後の関係は文字が持つ） ---------- */
.ba-arrow {
  position: absolute;
  left: 50%;
  top: calc(50% + 10px);
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ba-arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  /* 丸の地は --bg。紺では --bg と --ink が同値になるので、
     ここを --ink にすると矢印が消える（専用の変数で受ける） */
  border-top: 1px solid var(--ba-arrow-fg);
  border-right: 1px solid var(--ba-arrow-fg);
  transform: rotate(45deg);
  margin-left: -3px;
}

/* ---------- 文章側 ---------- */
.ba-eyebrow {
  font-family: var(--f-go);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ba-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold-l);
}

.ba-title {
  font-size: clamp(2.1rem, 2.1vw, 2.7rem);
  font-weight: 500;
  line-height: 1.68;
  margin: 0 0 18px;
  color: var(--text);
}

.ba-said {
  font-size: 1.5rem;
  line-height: 2.05;
  color: var(--muted);
  /* 本文が文章側の最後の要素。下の余白はここでは持たず、.ba-body 側で閉じる。 */
  margin: 0;
  max-width: 24em;
}

.ba-body {
  /* 中身は上から詰める。最後の行の下に余りを作らない。 */
  display: flex;
  flex-direction: column;
}
.ba-body > :last-child {
  margin-bottom: 0;
}

/* ---------- 狭い帯 ----------
   ⚠ プレビューは max-width:900px のカスケードで書いてある。
     この指定は「帯」なので、tab だけに入れると 768px 以下で効かず崩れる。
     tab と sp の両方に必ず入れること。 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .ba,
  .ba--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ba--flip .ba-shots {
    order: 1;
  }
  .ba--flip .ba-body {
    order: 2;
  }
  /* 写真2枚は狭い帯でも横に並べたまま。縦に積むと前後の対比が読めない。 */
  .ba-shots {
    gap: 12px;
  }
  .ba-arrow {
    width: 32px;
    height: 32px;
    top: calc(50% + 8px);
  }
  .ba-arrow::before {
    width: 9px;
    height: 9px;
  }
  .ba-said {
    max-width: none;
  }
  .ba-stack {
    gap: 48px;
  }
}
@media screen and (max-width: 768px) {
  .ba,
  .ba--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ba--flip .ba-shots {
    order: 1;
  }
  .ba--flip .ba-body {
    order: 2;
  }
  /* 写真2枚は狭い帯でも横に並べたまま。縦に積むと前後の対比が読めない。 */
  .ba-shots {
    gap: 12px;
  }
  .ba-arrow {
    width: 32px;
    height: 32px;
    top: calc(50% + 8px);
  }
  .ba-arrow::before {
    width: 9px;
    height: 9px;
  }
  .ba-said {
    max-width: none;
  }
  .ba-stack {
    gap: 48px;
  }
}
/* =========================================================
   TOP
   HERO → BLEND → FLOW → できること → FOUNDER → INFO STRIP
        → SERVICE CHAPTER（strength / basic / additional）
   ========================================================= */
/* =========================================================
   HERO（スライダー・クロスフェード）
   ========================================================= */
.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 幕は2枚重ね。
     横1枚だと、文字の無い左上まで同じ濃さで沈んで「ただ暗い」写真になる。
     縦（上は素通し・下だけ沈める）と横（コピーの列だけ）に分けると、
     同じ可読性のまま写真が明るく見える。
     ※ 濃さを触るときは、字の下の実測コントラストで確かめること。
       h1 は 3.0、小さい行は 4.5 を下回らせない。 */
  background: linear-gradient(180deg, rgba(var(--ink-veil), 0) 0%, rgba(var(--ink-veil), 0) 26%, rgba(var(--ink-veil), 0.2) 62%, rgba(var(--ink-veil), 0.32) 100%), linear-gradient(90deg, rgba(var(--ink-veil), 0.56) 0%, rgba(var(--ink-veil), 0.54) 20%, rgba(var(--ink-veil), 0.42) 44%, rgba(var(--ink-veil), 0.12) 66%, rgba(var(--ink-veil), 0) 82%);
  /* SP ではコピーが画面幅いっぱいに広がるので、横のグラデーションでは行末を支えられない
     （変更前は h1 の右端が 1.62 まで落ちて読めていなかった）。ここは縦だけで沈める。 */
}
@media screen and (max-width: 768px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(var(--ink-veil), 0.16) 0%, rgba(var(--ink-veil), 0.42) 26%, rgba(var(--ink-veil), 0.56) 46%, rgba(var(--ink-veil), 0.63) 78%, rgba(var(--ink-veil), 0.64) 100%);
  }
}
.hero {
  /* 狭い帯ではコピーを縦の中ほどへ置く。
     ブロックを上に詰めると、写真の上端（屋根や空）に文字が乗って落ち着かない。 */
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 620px;
    display: flex;
    align-items: center;
  }
}
@media screen and (max-width: 768px) {
  .hero {
    min-height: 620px;
    display: flex;
    align-items: center;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.is-on {
  opacity: 1;
}
.hero-slide {
  /* 表示中のスライドだけゆっくり寄る */
}
.hero-slide .sl {
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  transition: transform 7.5s linear;
}
.hero-slide.is-on .sl {
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide .hero-img--sp {
  display: none;
}

/* PC / SP の画像切替だけは 900px 独立（$tab に寄せると
   タブレット横で縦画像が出るため。§7 の注記どおり） */
@media screen and (max-width: 900px) {
  .hero-slide .hero-img--pc {
    display: none;
  }
  .hero-slide .hero-img--sp {
    display: block;
  }
  /* SP画像が未設定のスライドは PC画像を出す */
  .hero-slide.no-sp .hero-img--pc {
    display: block;
  }
  .hero-slide.no-sp .hero-img--sp {
    display: none;
  }
}
.hero-in {
  position: relative;
  z-index: 2;
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  padding: 300px 0 126px;
  color: var(--on-dark);
  /* 狭い帯は .hero 側で上下中央に置いたうえで、この余白で下へ寄せる。 */
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-in {
    padding: 200px 0 96px;
  }
}
@media screen and (max-width: 768px) {
  .hero-in {
    padding: 200px 0 96px;
  }
}

.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(3.8rem, 5.2vw, 7.4rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero p {
  margin: 0 0 4px;
  font-size: 2rem;
  color: rgba(var(--on-dark-rgb), 0.94);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero p {
    font-size: 1.7rem;
  }
}
@media screen and (max-width: 768px) {
  .hero p {
    font-size: 1.7rem;
  }
}

/* HERO 左下の1行目はブランド表記。下の「運営：〜」より明確に大きく見せる
   （クライアント修正 §4）。インライン style では当てない。 */
.hero-in .hero-brand {
  font-size: 2.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .hero-in .hero-brand {
    font-size: 2.2rem;
  }
}
@media screen and (max-width: 768px) {
  .hero-in .hero-brand {
    font-size: 2.2rem;
  }
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* 縦インジケータ */
.hero-dots {
  position: absolute;
  right: clamp(24px, 3.4vw, 56px);
  bottom: clamp(96px, 12vh, 132px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-dots button {
  width: 34px;
  height: 2px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(var(--on-dark-rgb), 0.3);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.hero-dots button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--on-dark);
}
.hero-dots button.is-on::after {
  width: 100%;
  transition: width 6.2s linear;
}
.hero-dots button:hover {
  background: rgba(var(--on-dark-rgb), 0.5);
}

@media screen and (max-width: 900px) {
  .hero-dots {
    right: 16px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}
/* =========================================================
   BLEND（左に文章／右に写真・左端フェード／背面にマークを薄く）
   ========================================================= */
.blend-section {
  position: relative;
  width: 100%;
  /* 幕の板（.a-veil::after）がこの値を引く。地色と別々に持つとズレて縁が出る。 */
  --panel-bg: var(--band-blend);
  background: var(--panel-bg);
  overflow: hidden;
}

.blend-inner {
  position: relative;
  min-height: 350px;
  width: 100%;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blend-inner {
    display: grid;
    min-height: auto;
  }
}
@media screen and (max-width: 768px) {
  .blend-inner {
    display: grid;
    min-height: auto;
  }
}

.blend-copy {
  position: relative;
  z-index: 2;
  width: min(44vw, 760px);
  padding: 76px 0 76px clamp(56px, 6vw, 110px);
}
.blend-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 3.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--t-3);
}
.blend-copy p {
  margin: 0 0 10px;
  color: var(--t-14);
  font-size: 1.6rem;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blend-copy {
    width: auto;
    padding: 36px 16px 18px;
    margin: 0;
  }
}
@media screen and (max-width: 768px) {
  .blend-copy {
    width: auto;
    padding: 36px 16px 18px;
    margin: 0;
  }
}

.blend-image {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(47vw, 880px);
}
.blend-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to left, rgb(0, 0, 0) 58%, rgba(0, 0, 0, 0.55) 82%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgb(0, 0, 0) 58%, rgba(0, 0, 0, 0.55) 82%, rgba(0, 0, 0, 0) 100%);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blend-image {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .blend-image img {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
@media screen and (max-width: 768px) {
  .blend-image {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .blend-image img {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ブランドマークの薄敷き（BLEND背面・モック口径） */
.brand-ghost {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 520px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.brand-ghost img {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.085;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .brand-ghost {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .brand-ghost {
    display: none;
  }
}

/* =========================================================
   FLOW
   ========================================================= */
.sec-head {
  text-align: center;
  padding: 36px 0 22px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(3.2rem, 3.9vw, 5.2rem);
  font-weight: 500;
  line-height: 1.34;
  color: var(--t-3);
}
.sec-head p {
  margin: 12px 0 0;
  color: var(--t-22);
  font-size: 1.5rem;
}

.flow {
  background: var(--surface);
  padding: 20px 0 54px;
}

.flow-grid {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
}

.flow-item {
  position: relative;
  display: grid;
  gap: 14px;
  /* 次の工程へつなぐ矢印（--arrow-top は main.js がサムネイル中央に合わせる） */
}
.flow-item:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -19px;
  top: var(--arrow-top, 50%);
  transform: translateY(-50%);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-arrow);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.5s 0.55s;
}
.flow-item.in:not(:last-child)::after {
  opacity: 1;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .flow-item:not(:last-child)::after {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .flow-item:not(:last-child)::after {
    display: none;
  }
}
.flow-item .num {
  position: relative;
  padding-bottom: 12px;
  font-size: 1.8rem;
  color: var(--gold-num);
  letter-spacing: 0.1em;
}
.flow-item .num span {
  margin-left: 10px;
  color: var(--t-5);
  font-size: 2.1rem;
  letter-spacing: 0.02em;
}
.flow-item .num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-flow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-io) 0.25s;
}
.flow-item.in .num::after {
  transform: scaleX(1);
}
.flow-item p {
  margin: 0;
  color: var(--t-13);
  font-size: 1.5rem;
}
.flow-item:hover .flow-thumb img {
  transform: scale(1.045);
}

.flow-thumb {
  aspect-ratio: 1.68/1;
  overflow: hidden;
}
.flow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.65, 0.3, 1);
}

/* =========================================================
   できること
   ========================================================= */
.works {
  background: var(--band-works);
  padding: 44px 0 58px;
}

.works-top {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.works-top h2 {
  margin: 0;
  font-size: clamp(3rem, 3.6vw, 4.8rem);
  font-weight: 500;
}
.works-top p {
  margin: 0;
  color: var(--t-21);
  font-size: 1.5rem;
}
.works-top a {
  padding: 13px 20px;
  border: 1px solid var(--line);
  background: rgba(var(--veil-rgb), 0.78);
  font-size: 1.4rem;
  color: var(--t-11);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.works-top a:hover {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .works-top {
    display: grid;
    justify-items: start;
  }
}
@media screen and (max-width: 768px) {
  .works-top {
    display: grid;
    justify-items: start;
  }
}

.works-grid {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 0.78fr;
  grid-template-rows: 310px 310px;
  gap: 18px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .works-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
}
@media screen and (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--panel); /* 画像未設定でも枠が破綻して見えないように */
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.card:hover img {
  transform: scale(1.035);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(var(--card-veil), 0.55), rgba(var(--card-veil), 0) 55%);
}
.card .cap {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: var(--on-dark);
  text-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.45);
  z-index: 2;
  transition: transform 0.55s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.card .cap strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.card .cap span {
  display: block;
  font-size: 1.4rem;
  margin-top: 4px;
}
.card:hover .cap {
  transform: translateY(-5px);
}
.card.tall1 {
  grid-column: 1;
  grid-row: 1/span 2;
}
.card.tall2 {
  grid-column: 2;
  grid-row: 1/span 2;
}
.card.small3 {
  grid-column: 3;
  grid-row: 1;
}
.card.small4 {
  grid-column: 3;
  grid-row: 2;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .card {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1.2/1;
  }
}
@media screen and (max-width: 768px) {
  .card {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1.2/1;
  }
}

/* =========================================================
   FOUNDER
   ========================================================= */
.founder-blend {
  position: relative;
  /* 幕の板（.a-veil::after）がこの値を引く */
  --panel-bg: var(--band-founder);
  background: var(--panel-bg);
  overflow: hidden;
  width: 100%;
}

.founder-inner {
  position: relative;
  min-height: 420px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .founder-inner {
    display: grid;
    min-height: auto;
  }
}
@media screen and (max-width: 768px) {
  .founder-inner {
    display: grid;
    min-height: auto;
  }
}

.founder-copy {
  position: relative;
  z-index: 2;
  width: min(43vw, 740px);
  padding: 74px 0 74px clamp(56px, 6vw, 110px);
}
.founder-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 3.2vw, 4.4rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--t-4);
}
.founder-copy p {
  margin: 0 0 8px;
  color: var(--t-12);
  font-size: 1.6rem;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .founder-copy {
    width: auto;
    padding: 36px 16px 18px;
    margin: 0;
  }
}
@media screen and (max-width: 768px) {
  .founder-copy {
    width: auto;
    padding: 36px 16px 18px;
    margin: 0;
  }
}

.founder-sign {
  margin-top: 24px;
  font-size: 1.5rem;
  color: var(--t-23);
}
.founder-sign strong {
  font-size: 3.4rem;
  color: var(--t-7);
  margin-left: 12px;
  font-weight: 500;
}

.founder-image {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(49vw, 920px);
}
.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to left, rgb(0, 0, 0) 58%, rgba(0, 0, 0, 0.52) 82%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgb(0, 0, 0) 58%, rgba(0, 0, 0, 0.52) 82%, rgba(0, 0, 0, 0) 100%);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .founder-image {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .founder-image img {
    mask-image: none;
    -webkit-mask-image: none;
  }
}
@media screen and (max-width: 768px) {
  .founder-image {
    position: relative;
    width: 100%;
    height: 260px;
  }
  .founder-image img {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* 代表写真を出さない構成のとき（§10 C案）は1カラムで受ける */
.founder-blend--solo .founder-copy {
  width: min(70vw, 980px);
}
.founder-blend--solo .founder-image {
  display: none;
}

/* =========================================================
   INFO STRIP
   ========================================================= */
.info-strip {
  background: var(--surface);
  padding: 24px 0 38px;
}

.info-box {
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.info-box h3 {
  margin: 0 0 16px;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--t-5);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  transition: background 0.35s;
}
.info-item:last-child {
  border-right: none;
}
.info-item:hover {
  background: rgba(var(--gold-rgb), 0.05);
}
.info-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold-icon);
  fill: none;
  stroke-width: 1.7;
  align-self: start;
  transition: stroke 0.35s;
}
.info-item:hover svg {
  stroke: var(--gold);
}
.info-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--t-6);
  margin-bottom: 4px;
}
.info-item p {
  margin: 0;
  color: var(--t-15);
  font-size: 1.4rem;
  line-height: 1.7;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .info-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .info-item:last-child {
    border-bottom: none;
  }
}
@media screen and (max-width: 768px) {
  .info-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .info-item:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   SERVICE CHAPTER
   ========================================================= */
.service-chapter {
  background: var(--band-service);
  color: var(--text);
  padding: 76px 0 80px;
  overflow: hidden;
}

.chapter-lead {
  padding: 0 clamp(56px, 6vw, 120px) 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.chapter-lead .eyebrow {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--gold-label);
  margin-bottom: 14px;
}
.chapter-lead h2 {
  margin: 0;
  font-size: clamp(3.2rem, 3.6vw, 5.4rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chapter-lead p {
  margin: 0 0 8px;
  color: var(--t-17);
  font-size: 1.7rem;
  max-width: 680px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .chapter-lead {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
@media screen and (max-width: 768px) {
  .chapter-lead {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 20px 40px;
  }
}

/* ---------- strength ---------- */
.strength-stage {
  position: relative;
  min-height: 600px;
  margin-bottom: 90px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .strength-stage {
    min-height: auto;
    margin-bottom: 60px;
    padding: 0 16px;
  }
}
@media screen and (max-width: 768px) {
  .strength-stage {
    min-height: auto;
    margin-bottom: 60px;
    padding: 0 16px;
  }
}

.strength-photo {
  width: 70vw;
  height: 600px;
  overflow: hidden;
  background: var(--panel);
}
.strength-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .strength-photo {
    width: 100%;
    height: 420px;
  }
}
@media screen and (max-width: 768px) {
  .strength-photo {
    width: 100%;
    height: 300px;
  }
}

.strength-copy {
  position: absolute;
  right: clamp(40px, 5vw, 96px);
  bottom: -38px;
  width: min(560px, 42vw);
  background: var(--surface);
  padding: 54px 56px 48px;
  box-shadow: 0 18px 44px rgba(var(--shadow-card-rgb), 0.09);
}
.strength-copy .label {
  display: block;
  font-family: var(--f-go);
  color: var(--gold-label);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 11px;
}
.strength-copy h3 {
  font-size: clamp(2.6rem, 2.6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 18px;
}
.strength-copy p {
  margin: 0;
  color: var(--t-16);
  font-size: 1.6rem;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .strength-copy {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: -58px auto 0;
    padding: 34px 28px;
  }
}
@media screen and (max-width: 768px) {
  .strength-copy {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: -58px auto 0;
    padding: 28px 22px;
  }
}

.strength-facts {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.strength-facts li {
  border-top: 1px solid var(--line-fact);
  padding-top: 14px;
  color: var(--t-8);
  font-size: 1.4rem;
  line-height: 1.6;
}
.strength-facts b {
  display: block;
  color: var(--gold-fact);
  font-size: 2.2rem;
  margin-bottom: 4px;
  font-weight: 500;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .strength-facts {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .strength-facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- basic ---------- */
.basic-stage {
  padding: 34px clamp(56px, 6vw, 120px) 76px;
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 8vw;
  align-items: start;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .basic-stage {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px 24px 70px;
  }
}
@media screen and (max-width: 768px) {
  .basic-stage {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 22px 20px 70px;
  }
}

.basic-intro {
  position: sticky;
  top: 110px;
  padding-top: 10px;
}
.basic-intro .label {
  display: block;
  font-family: var(--f-go);
  color: var(--gold-label);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.basic-intro h3 {
  margin: 0 0 18px;
  font-size: clamp(2.9rem, 2.9vw, 4.2rem);
  font-weight: 500;
  line-height: 1.45;
}
.basic-intro p {
  margin: 0;
  color: var(--t-17);
  font-size: 1.6rem;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .basic-intro {
    position: static;
  }
}
@media screen and (max-width: 768px) {
  .basic-intro {
    position: static;
  }
}

.basic-list {
  border-top: 1px solid var(--line-list);
}

.basic-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(180px, 220px) minmax(0, 1fr) 112px 26px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-list);
  transition: transform 0.3s cubic-bezier(0.22, 0.65, 0.3, 1), background 0.3s;
  will-change: transform;
}
.basic-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-io);
}
.basic-item:hover::before {
  transform: scaleX(1);
}
.basic-item:hover {
  transform: translateX(10px);
  background: rgba(var(--veil-rgb), 0.28);
}
.basic-item h4 {
  margin: 0;
  font-size: clamp(2.1rem, 1.9vw, 2.5rem);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.basic-item p {
  margin: 0;
  color: var(--t-20);
  font-size: 1.5rem;
}
.basic-item:hover .basic-no {
  color: var(--gold-d);
}
.basic-item:hover .arrow {
  transform: translateX(6px);
}
.basic-item:hover .service-thumb img {
  transform: scale(1.06);
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .basic-item {
    grid-template-columns: 72px 190px minmax(220px, 1fr) 100px 24px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .basic-item {
    grid-template-columns: 72px 190px minmax(220px, 1fr) 100px 24px;
  }
}
@media screen and (max-width: 768px) {
  .basic-item {
    grid-template-columns: 54px 1fr 84px 20px;
    gap: 12px;
  }
  .basic-item p {
    grid-column: 2/5;
    font-size: 1.4rem;
  }
  .basic-item .service-thumb {
    grid-column: 3;
    grid-row: 1;
    width: 82px;
    height: 58px;
  }
  .basic-item .arrow {
    grid-column: 4;
    grid-row: 1;
  }
  .basic-item h4 {
    font-size: 2.2rem;
  }
}

.basic-no {
  font-size: 4.2rem;
  color: var(--gold-em);
  font-weight: 500;
  line-height: 1;
  transition: color 0.35s;
}
@media screen and (max-width: 768px) {
  .basic-no {
    font-size: 2.7rem;
  }
}

.service-thumb {
  display: block;
  width: 112px;
  height: 72px;
  overflow: hidden;
  background: rgba(var(--thumb-rgb), 0.08);
  border: 1px solid rgba(var(--thumb-rgb), 0.12);
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.65, 0.3, 1);
}

.basic-item .arrow,
.additional-item .arrow {
  color: var(--gold-i);
  font-size: 2rem;
  text-align: right;
  transition: transform 0.35s var(--ease-io);
}

/* ---------- additional（深緑・basic の裏面） ---------- */
.additional-stage {
  background: var(--ink-band);
  color: var(--on-band-1);
  padding: 68px clamp(56px, 6vw, 120px) 90px;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .additional-stage {
    padding: 64px 24px 70px;
  }
}
@media screen and (max-width: 768px) {
  .additional-stage {
    padding: 64px 20px 70px;
  }
}

.additional-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(310px, 0.78fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
  /* 1200px までは2カラムのまま（1440px でもモニター表示と同じ見え方にする） */
}
@media screen and (max-width: 1200px) {
  .additional-layout {
    grid-template-columns: 1fr;
  }
}

/* ホバーで切り替わるプレビュー */
.add-preview {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
}

.add-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-deep);
  /* 1カラムに落ちると横幅いっぱいになって写真が大きすぎるので、半分に絞って中央へ。
     SP まで半分にすると小さくなりすぎるため、そこは幅いっぱいに戻す。 */
}
@media screen and (max-width: 1200px) {
  .add-stage {
    width: 50%;
    margin: 0 auto;
  }
}
@media screen and (max-width: 768px) {
  .add-stage {
    width: 100%;
    margin: 0;
  }
}
.add-stage figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s cubic-bezier(0.22, 0.65, 0.3, 1), transform 0.9s cubic-bezier(0.22, 0.65, 0.3, 1);
}
.add-stage figure.is-on {
  opacity: 1;
  transform: scale(1);
}
.add-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-cap {
  margin-top: 16px;
  min-height: 5.4rem;
  /* 写真を半分に絞った帯では、キャプションも写真の幅に合わせて中央へ。
     幅いっぱいのままだと、写真から離れて宙に浮く。 */
}
@media screen and (max-width: 1200px) {
  .add-cap {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 768px) {
  .add-cap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
.add-cap b {
  display: block;
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s, transform 0.45s;
}
.add-cap span {
  display: block;
  margin-top: 5px;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: rgba(var(--on-dark-rgb), 0.6);
  opacity: 0;
  transition: opacity 0.45s 0.06s;
}
.add-cap.is-on b, .add-cap.is-on span {
  opacity: 1;
  transform: translateY(0);
}

/* ホバー中の項目を立たせ、他を沈める */
.additional-list.is-hover .additional-item {
  opacity: 0.42;
}

.additional-list.is-hover .additional-item.is-act {
  opacity: 1;
}

.additional-list {
  border-top: 1px solid rgba(var(--band-line-rgb), 0.22);
}

.additional-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(150px, 190px) minmax(0, 1fr) 64px 26px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  color: var(--on-band-2);
  border-bottom: 1px solid rgba(var(--band-line-rgb), 0.22);
  transition: transform 0.3s cubic-bezier(0.22, 0.65, 0.3, 1), background 0.3s, opacity 0.35s;
  will-change: transform;
}
.additional-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold-add);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-io);
}
.additional-item:hover::before {
  transform: scaleX(1);
}
.additional-item:hover {
  transform: translateX(9px);
  background: rgba(var(--on-dark-rgb), 0.035);
}
.additional-item:hover .arrow {
  transform: translateX(6px);
}
.additional-item:hover .service-thumb img {
  transform: scale(1.06);
}
.additional-item h4 {
  font-size: clamp(2rem, 1.8vw, 2.3rem);
  font-weight: 500;
  margin: 0;
  color: var(--on-dark);
  white-space: nowrap;
}
.additional-item p {
  font-size: 1.4rem;
  color: rgba(var(--on-dark-rgb), 0.66);
  margin: 0;
}
.additional-item .add-no {
  font-size: 2.9rem;
  text-align: right;
  color: var(--gold-add);
  transition: color 0.35s;
}
.additional-item .arrow {
  color: var(--gold-add);
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .additional-item {
    grid-template-columns: 100px 190px minmax(220px, 1fr) 62px 24px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .additional-item {
    grid-template-columns: 100px 190px minmax(220px, 1fr) 62px 24px;
  }
}
@media screen and (max-width: 768px) {
  .additional-item {
    grid-template-columns: 82px 1fr 50px 20px;
    gap: 12px;
  }
  .additional-item .service-thumb {
    width: 80px;
    height: 58px;
  }
  .additional-item p {
    grid-column: 2/5;
    font-size: 1.4rem;
  }
  .additional-item .add-no {
    grid-column: 3;
    grid-row: 1;
    font-size: 2.5rem;
  }
  .additional-item .arrow {
    grid-column: 4;
    grid-row: 1;
  }
}

.additional-intro {
  position: sticky;
  top: 110px;
  padding-top: 10px;
}
.additional-intro .label {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--gold-add-l);
  margin-bottom: 18px;
}
.additional-intro h3 {
  font-size: clamp(3.2rem, 3.2vw, 4.8rem);
  line-height: 1.45;
  font-weight: 500;
  margin: 0 0 22px;
}
.additional-intro p {
  font-size: 1.5rem;
  color: rgba(var(--on-dark-rgb), 0.72);
  margin: 0;
  max-width: 390px;
}
.additional-intro {
  /* 1カラムに落ちる帯ではリストの上に置き、追従をやめる */
  /* 1カラムに落ちる帯ではリストの上に置き、追従をやめる */
}
@media screen and (max-width: 1200px) {
  .additional-intro {
    position: static;
    order: -1;
    margin-bottom: 28px;
  }
}

/* =========================================================
   下層共通（ページヘッダー ＋ 本文ブロック）
   ページごとの中身は違っても、この骨格は 11 枚で共有する。
   ========================================================= */
/* ---------- ページヘッダー ---------- */
.phd {
  position: relative;
  overflow: hidden;
  background: var(--band-head);
}
.phd::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(var(--ink-veil), 0.84) 0%, rgba(var(--ink-veil), 0.7) 38%, rgba(var(--ink-veil), 0.28) 74%, rgba(var(--ink-veil), 0.08) 100%);
}

.phd-bg {
  position: absolute;
  inset: 0;
}
.phd-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像未設定のときは深緑ベタで受ける */
.phd-bg--solid {
  background: var(--ink);
}

.phd-in {
  position: relative;
  z-index: 2;
  width: var(--site-width);
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 140px) 0 clamp(56px, 7vw, 88px);
  color: var(--on-dark);
}

.crumb {
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: rgba(var(--on-dark-rgb), 0.72);
  margin: 0 0 22px;
}
.crumb a {
  border-bottom: 1px solid rgba(var(--on-dark-rgb), 0.3);
  padding-bottom: 2px;
}
.crumb a:hover {
  border-color: var(--on-dark);
}
.crumb i {
  font-style: normal;
  margin: 0 0.7rem;
  opacity: 0.55;
}

.phd .kicker {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  letter-spacing: 0.16em;
  color: var(--gold-kicker);
  margin-bottom: 14px;
}

.phd h1 {
  margin: 0;
  font-size: clamp(3rem, 3.8vw, 5rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.03em;
}

.phd .lede {
  margin: 22px 0 0;
  max-width: 56rem;
  font-size: 1.7rem;
  color: rgba(var(--on-dark-rgb), 0.9);
}

/* ---------- 本文 ---------- */
.doc {
  padding: clamp(64px, 8vw, 110px) 0;
}

.doc-in {
  width: min(1080px, 100vw - 112px);
  margin: 0 auto;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .doc-in {
    width: calc(100vw - 32px);
  }
}
@media screen and (max-width: 768px) {
  .doc-in {
    width: calc(100vw - 32px);
  }
}

.doc-narrow {
  width: min(760px, 100vw - 112px);
  margin: 0 auto;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .doc-narrow {
    width: calc(100vw - 32px);
  }
}
@media screen and (max-width: 768px) {
  .doc-narrow {
    width: calc(100vw - 32px);
  }
}

.blk + .blk {
  margin-top: clamp(56px, 7vw, 96px);
}
.blk h2 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 3.1vw, 4rem);
  font-weight: 500;
  line-height: 1.5;
}
.blk h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 2.3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.55;
}
.blk p {
  margin: 0 0 14px;
  color: var(--t-10);
  font-size: 1.65rem;
}
.blk p:last-child {
  margin-bottom: 0;
}
.blk {
  /* .memo / .alert は自前の見た目を持つが、クラス1つの指定では
     上の .blk p に負ける。ここで引き直しておく。 */
}
.blk .memo {
  margin: 26px 0 0;
  font-family: var(--f-go);
  font-size: 1.45rem;
  line-height: 1.9;
  color: var(--t-24);
}
.blk .alert {
  margin: 0 0 32px;
  padding: 20px 24px;
  font-family: var(--f-go);
  font-size: 1.45rem;
  color: var(--t-24);
}
.blk {
  /* 導入文。中の <p> は上の .blk p がそのまま効く。
     かたまりとしての下余白はここで持つ（中の最後の <p> は :last-child で 0 になるため）。 */
}
.blk .lead {
  margin: 0 0 14px;
}
.blk .lead:last-child {
  margin-bottom: 0;
}
.blk .rule {
  margin: 0 0 24px;
}

/* ---------- 図版 ---------- */
.doc-fig {
  margin: 30px 0 0;
}
.doc-fig .doc-figwrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--panel);
}
.doc-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-fig figcaption {
  margin-top: 12px;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--t-26);
}

/* 背景が透過の切り抜き画像用。
   地の色を敷くと透けたところが四角い板に見え、16:9 に合わせて切り抜くと端が落ちる
   （解体ページの写真コラージュは下が 18% 切れていた）。
   枠を決めず、画像の縦横比のまま置く。 */
.doc-fig--bare .doc-figwrap {
  aspect-ratio: auto;
  background: none;
}
.doc-fig--bare {
  /* 上の .doc-fig img が height:100% / cover なので、ここで引き直す。
     高さを 100% のままにすると、枠の高さが決まらず潰れる。 */
}
.doc-fig--bare img {
  height: auto;
  object-fit: contain;
}
.doc-fig--bare {
  /* 本文の段（760px）だと小さいので、段からはみ出して画面幅の 90% まで広げる。
     上限 1600px は元画像の横幅。それ以上に伸ばしても粗くなるだけ。
     中央に戻す計算：親の中央（50%）から、自分の半分（45vw／上限800px）だけ左へ。
     ※ 幅と margin の min() は必ず同じ値で対にすること。片方だけ変えると中心がずれる。
     タブレット以下は段がもともと画面幅いっぱいなので、はみ出させない。 */
  /* 図版だけ広げるので、キャプションは本文の段（760px）の位置に戻す。
     図版の左端に置くと、本文より 270px ほど左に取り残されて浮く。
     張り出していない帯（タブレット以下）ではそのままにすること。ここで揃えると逆にずれる。 */
}
@media screen and (min-width: 1441px) {
  .doc-fig--bare {
    width: min(90vw, 1600px);
    margin-left: calc(50% - min(45vw, 800px));
  }
  .doc-fig--bare figcaption {
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .doc-fig--bare {
    width: min(90vw, 1600px);
    margin-left: calc(50% - min(45vw, 800px));
  }
  .doc-fig--bare figcaption {
    width: min(760px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}
.duo .doc-fig {
  margin-top: 0;
}
.duo .doc-fig .doc-figwrap {
  aspect-ratio: 4/3;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .duo {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .duo {
    grid-template-columns: 1fr;
  }
}

.duo--wide {
  grid-template-columns: 1.35fr 1fr;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .duo--wide {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .duo--wide {
    grid-template-columns: 1fr;
  }
}

.duo--narrow {
  grid-template-columns: 1fr 1.35fr;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .duo--narrow {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .duo--narrow {
    grid-template-columns: 1fr;
  }
}

/* ---------- タグ ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
}
.chips li {
  font-family: var(--f-go);
  font-size: 1.4rem;
  padding: 8px 17px;
  border: 1px solid var(--line);
  color: var(--t-10);
  background: rgba(var(--veil-rgb), 0.5);
}

/* ---------- 手順 ---------- */
.steps {
  margin: 28px 0 0;
  counter-reset: s;
}
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.steps li::before {
  counter-increment: s;
  content: "0" counter(s);
  font-size: 2.4rem;
  color: var(--gold-em);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .steps li {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }
}
@media screen and (max-width: 768px) {
  .steps li {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }
}
.steps b {
  display: block;
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 5px;
}
.steps span {
  color: var(--t-18);
  font-size: 1.55rem;
}

/* ---------- 一覧リンク ---------- */
.idx {
  margin: 34px 0 0;
  border-top: 1px solid var(--line-form);
}
.idx a {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(170px, 240px) minmax(0, 1fr) 26px;
  gap: 22px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-form);
  transition: transform 0.3s cubic-bezier(0.22, 0.65, 0.3, 1), background 0.3s;
  will-change: transform;
}
.idx a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-io);
}
.idx a:hover::before {
  transform: scaleX(1);
}
.idx a:hover {
  transform: translateX(9px);
  background: rgba(var(--veil-rgb), 0.4);
}
.idx a:hover .th img {
  transform: scale(1.06);
}
.idx a:hover i {
  transform: translateX(6px);
}
.idx a {
  /* 狭い帯では横に並べきれない。
     サムネイルと見出しを1行目、説明を2行目、矢印を右端に落として縦に積む。
     （説明を見出しの隣に置いたままだと、見出しの桁が足りず「造園・植/木剪定」のように割れる） */
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .idx a {
    grid-template-columns: 82px minmax(0, 1fr) 24px;
    grid-template-areas: "th title arrow" "th desc  arrow";
    gap: 4px 14px;
    align-items: center;
    padding: 18px 0;
  }
}
@media screen and (max-width: 768px) {
  .idx a {
    grid-template-columns: 82px minmax(0, 1fr) 24px;
    grid-template-areas: "th title arrow" "th desc  arrow";
    gap: 4px 14px;
    align-items: center;
    padding: 18px 0;
  }
}
.idx .th {
  width: 112px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(var(--thumb-rgb), 0.12);
  background: var(--panel);
}
.idx .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.65, 0.3, 1);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .idx .th {
    width: 82px;
    height: 58px;
    grid-area: th;
    align-self: center;
  }
}
@media screen and (max-width: 768px) {
  .idx .th {
    width: 82px;
    height: 58px;
    grid-area: th;
    align-self: center;
  }
}
.idx b {
  font-size: clamp(1.9rem, 1.7vw, 2.15rem);
  font-weight: 500;
  line-height: 1.45;
  /* 見出しと同じ扱い。文節の途中で折らせない（「入居者の残置／物を…」を避ける） */
  text-wrap: balance;
  word-break: auto-phrase;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .idx b {
    grid-area: title;
    font-size: 1.9rem;
  }
}
@media screen and (max-width: 768px) {
  .idx b {
    grid-area: title;
    font-size: 1.8rem;
  }
}
.idx {
  /* 説明文。.th も span なので、ここで一緒に掴まないよう扱いを分ける */
}
.idx b + span {
  font-size: 1.5rem;
  color: var(--t-20);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .idx b + span {
    grid-area: desc;
    font-size: 1.45rem;
  }
}
@media screen and (max-width: 768px) {
  .idx b + span {
    grid-area: desc;
    font-size: 1.45rem;
  }
}
.idx i {
  font-style: normal;
  text-align: right;
  color: var(--gold-i);
  font-size: 2rem;
  transition: transform 0.35s var(--ease-io);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .idx i {
    grid-area: arrow;
    align-self: center;
  }
}
@media screen and (max-width: 768px) {
  .idx i {
    grid-area: arrow;
    align-self: center;
  }
}

/* ---------- 定義リスト ---------- */
.dl {
  margin: 26px 0 0;
}
.dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
}
.dl div + div {
  border-top: 1px solid var(--line);
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media screen and (max-width: 768px) {
  .dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.dl dt {
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--t-26);
  padding-top: 3px;
}
.dl dd {
  margin: 0;
  font-size: 1.65rem;
}
.dl dd small {
  display: block;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--t-26);
  margin-top: 4px;
}

/* ---------- 箇条書き（プライバシーポリシー等） ---------- */
.pp {
  margin: 14px 0 0;
}
.pp li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--t-10);
  margin-bottom: 8px;
}
.pp li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--gold-em);
}

/* =========================================================
   参考価格
   ========================================================= */
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 0;
  font-size: 1.6rem;
}
.tbl th, .tbl td {
  padding: 16px 14px;
  text-align: left;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .tbl th, .tbl td {
    padding: 13px 8px;
    font-size: 1.5rem;
  }
}
@media screen and (max-width: 768px) {
  .tbl th, .tbl td {
    padding: 13px 8px;
    font-size: 1.5rem;
  }
}
.tbl thead th {
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--t-26);
  font-weight: 500;
  border-bottom: 1px solid var(--line-form);
}
.tbl tbody tr + tr td {
  border-top: 1px solid var(--line);
}
.tbl tbody tr:hover {
  background: rgba(var(--gold-rgb), 0.05);
}
.tbl td:last-child {
  text-align: right;
  font-size: 2rem;
  color: var(--gold-price);
  white-space: nowrap;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .tbl td:last-child {
    font-size: 1.75rem;
  }
}
@media screen and (max-width: 768px) {
  .tbl td:last-child {
    font-size: 1.75rem;
  }
}

/* 表が横に溢れる幅では、表だけ横スクロールさせる */
.tbl-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   フォーム（Contact Form 7 ＋ Multi-Step Module）
   CF7 が吐くマークアップに合わせつつ、モックの .form / .fld の意匠に寄せる。
   フォーム本文側で .fld / .fld label を組む前提（引き継ぎメモに雛形あり）。
   ========================================================= */
.form,
.wpcf7 form {
  margin: 30px 0 0;
}

.fld {
  margin-bottom: 26px;
}
.fld label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  margin-bottom: 9px;
}
.fld label em {
  font-style: normal;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--btn-solid-fg);
  background: var(--btn-solid-bg);
  padding: 3px 9px;
}
.fld label {
  /* 任意項目の印。地が --badge-any なので、必須バッジの文字色は
     引き継がず白で受ける（--badge-any は白文字で AA を満たす値に
     調整してある） */
}
.fld label em.is-any {
  background: var(--badge-any);
  color: var(--on-dark);
}

/* 入力欄（素の form と CF7 の両方に当てる） */
.fld input[type=text],
.fld input[type=tel],
.fld input[type=email],
.fld select,
.fld textarea,
.wpcf7 input[type=text],
.wpcf7 input[type=tel],
.wpcf7 input[type=email],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.65rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-form);
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.fld input[type=text]:focus,
.fld input[type=tel]:focus,
.fld input[type=email]:focus,
.fld select:focus,
.fld textarea:focus,
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.fld input[type=text],
.fld input[type=tel],
.fld input[type=email],
.fld select,
.fld textarea,
.wpcf7 input[type=text],
.wpcf7 input[type=tel],
.wpcf7 input[type=email],
.wpcf7 select,
.wpcf7 textarea {
  /* 指定しないとブラウザ既定の灰色になる。地の明るさが案ごとに違うので
     コントラストが成り行きになり、案A では 4.49:1 まで落ちていた。 */
}
.fld input[type=text]::placeholder,
.fld input[type=tel]::placeholder,
.fld input[type=email]::placeholder,
.fld select::placeholder,
.fld textarea::placeholder,
.wpcf7 input[type=text]::placeholder,
.wpcf7 input[type=tel]::placeholder,
.wpcf7 input[type=email]::placeholder,
.wpcf7 select::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.fld textarea,
.wpcf7 textarea {
  resize: vertical;
}

/* CF7 は入力欄を span で包むので、幅を素通しさせる */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* select の下向き記号 */
.fld select,
.wpcf7 select {
  background-image: linear-gradient(45deg, transparent 50%, var(--t-26) 50%), linear-gradient(135deg, var(--t-26) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* ---------- 送信ボタン ---------- */
.sbmt,
.wpcf7 input[type=submit],
.wpcf7 button[type=submit],
.wpcf7 .wpcf7-previous,
.wpcf7 .wpcf7-confirm {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 20px;
  cursor: pointer;
  font-family: var(--f-min);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--btn-solid-fg);
  background: var(--btn-solid-bg);
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.3s, transform 0.3s;
}
.sbmt:hover,
.wpcf7 input[type=submit]:hover,
.wpcf7 button[type=submit]:hover,
.wpcf7 .wpcf7-previous:hover,
.wpcf7 .wpcf7-confirm:hover {
  background: var(--btn-solid-bg-h);
  transform: translateY(-2px);
}

/* 「入力へ戻る」は控えめに */
.wpcf7 .wpcf7-previous {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-form);
}
.wpcf7 .wpcf7-previous:hover {
  background: var(--panel);
}

/* 確認画面・完了画面のボタンを横に並べる */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.form-actions .sbmt,
.form-actions .wpcf7 input[type=submit],
.form-actions .wpcf7 .wpcf7-previous {
  margin-top: 0;
}
@media screen and (max-width: 768px) {
  .form-actions {
    grid-template-columns: 1fr;
  }
}

/* ---------- 検証メッセージ ---------- */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-family: var(--f-go);
  font-size: 1.4rem;
  color: var(--state-err);
}

.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line-form);
  font-family: var(--f-go);
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--t-10);
  background: rgba(var(--veil-rgb), 0.6);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: var(--state-err-bd);
  color: var(--state-err-fg);
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--state-ok-bd);
  color: var(--state-ok-fg);
}

/* 送信中の表示 */
.wpcf7-spinner {
  margin: 12px auto 0;
  display: block;
}

/* ---------- 電話番号の大見出し（お問い合わせページ） ----------
   `.blk p`（_doc.scss）の方が特異性が高く、後から書いても負ける。
   上書きできる形にするため .blk を前に付ける。 */
.blk .contact-tel-lead {
  font-family: var(--f-min);
  font-size: clamp(3.4rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
.blk .contact-tel-lead a {
  border-bottom: 1px solid var(--line-form);
  padding-bottom: 6px;
}
.blk .contact-tel-lead a:hover {
  border-color: var(--gold);
}

/* ---------- 完了画面 ---------- */
.done-note {
  margin: 30px 0 0;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: rgba(var(--veil-rgb), 0.6);
  font-size: 1.65rem;
  line-height: 1.9;
  color: var(--t-10);
}

.done-back {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 16px 28px;
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  font-size: 1.6rem;
  transition: background 0.3s, transform 0.3s;
}
.done-back:hover {
  background: var(--btn-solid-bg-h);
  transform: translateY(-2px);
}

/* =========================================================
   404
   ページヘッダーの意匠を流用し、TOP とお問い合わせへの導線を置く。
   ========================================================= */
.nf {
  padding: clamp(64px, 8vw, 110px) 0;
}

.nf-in {
  width: min(760px, 100vw - 112px);
  margin: 0 auto;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nf-in {
    width: calc(100vw - 32px);
  }
}
@media screen and (max-width: 768px) {
  .nf-in {
    width: calc(100vw - 32px);
  }
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}
.nf-links a {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  font-size: 1.6rem;
  border: 1px solid var(--line);
  background: rgba(var(--veil-rgb), 0.6);
  color: var(--t-10);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nf-links a:hover {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  border-color: var(--btn-solid-bg);
}
.nf-links a.is-primary {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  border-color: var(--btn-solid-bg);
}
.nf-links a.is-primary:hover {
  background: var(--btn-solid-bg-h);
  border-color: var(--btn-solid-bg-h);
}
