/* =========================================================================
   サンプル建築会社 トップページ style.css
   デザイン正: 08_design/input/fd6.png / design-spec.md / colors.md
   モーション正: 09_motion/motion-spec.md(MV2列マーキー / SC-01スタッキング)
   設計: モバイルファースト(base=SP)→ @media (min-width:768px / 1024px)
   ========================================================================= */

/* ========== 1. デザイントークン ========== */
:root {
  /* 配色(colors.md 実測hex) */
  --color-main: #078A3A;        /* メイングリーン */
  --color-main-dark: #05702f;   /* ホバー用の一段暗い緑 */
  --color-navy: #202838;        /* ダークボタン背景 */
  --color-ink: #0F1420;         /* 見出し黒(わずかにネイビー) */
  --color-red: #D82838;         /* アクセントレッド(お問い合わせCTA) */
  --color-red-dark: #bd2130;
  --color-text: #3B3E46;        /* 本文 */
  --color-text-sub: #4A4E58;    /* サブテキスト */
  --color-caption: #6B6F76;     /* キャプション薄グレー */
  --color-green-light: #93CD9C; /* マップ淡緑・九州 */
  --color-green-deep: #4FA264;  /* マップ濃緑・関西 */
  --color-bg: #FFFFFF;          /* ベース白 */
  --color-bg-soft: #F8F8F8;     /* オフホワイト */
  --color-line: #E4E6EA;        /* 薄い罫線 */

  /* フォント */
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-num: "Poppins", "Noto Sans JP", sans-serif;

  /* レイアウト */
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 70px);
  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .06);

  /* モーション */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-fill: cubic-bezier(.65, 0, .35, 1);
}

/* ========== 2. リセット / ベース ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-main); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 200; background: var(--color-main); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s ease; }
.skip-link:focus { top: 12px; }
/* 浮遊ヘッダー(fixed)分、ページ内アンカーの着地がヘッダーに隠れないよう余白を確保 */
#main, #strengths, :target { scroll-margin-top: clamp(82px, 12vw, 106px); }

/* ========== 3. 共通ユーティリティ ========== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 88px); }
.eyebrow {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--color-main);
  text-transform: uppercase;
}
/* 中央見出し + 緑アンダーバー */
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 46px); }
.sec-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: .04em;
}
.sec-head h2::after {
  content: "";
  display: block;
  width: 46px; height: 4px;
  margin: 16px auto 0;
  background: var(--color-main);
  border-radius: 2px;
}
.sec-lead { max-width: 720px; margin: 16px auto 0; text-align: center; color: var(--color-text-sub); font-size: 15px; }

/* ボタン共通 */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px;
  line-height: 1; white-space: nowrap;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn--solid { background: var(--color-main); color: #fff; }
.btn--solid:hover { background: var(--color-main-dark); box-shadow: 0 8px 20px rgba(7, 138, 58, .28); }
.btn--red { background: var(--color-red); color: #fff; }
.btn--red:hover { background: var(--color-red-dark); box-shadow: 0 8px 20px rgba(216, 40, 56, .28); }
/* アウトライン(白地+緑枠)= CTA-06 塗りが満ちる */
.btn--outline {
  position: relative; overflow: hidden;
  background: var(--color-bg-soft); color: var(--color-ink);
  border-color: var(--color-main);
  z-index: 0;
}
.btn--outline::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--color-main);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-fill);
}
.btn--outline:hover { color: #fff; }
.btn--outline:hover::before { transform: scaleX(1); }
.btn--outline .ico { transition: color .35s var(--ease-fill); }

/* 丸アイコン付き「詳しく見る」(CTA-03 矢印スライド) */
.btn-detail {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; color: var(--color-ink);
  font-weight: 700; font-size: 14px;
  padding: 8px 8px 8px 26px;
  border-radius: var(--radius-pill);
}
.btn-detail .circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-navy); color: #fff;
  display: grid; place-items: center; flex: none;
  overflow: hidden;
}
.btn-detail .circle svg { width: 15px; height: 15px; transition: transform .2s ease-out; }
.btn-detail:hover .circle svg { transform: translateX(3px); }

/* ========== 4. ヘッダー(浮遊型: 白角丸バーが上・左右に余白を持って浮く。k10踏襲) ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: clamp(10px, 1.4vw, 16px);
  padding-inline: clamp(12px, 2vw, 22px);
  background: transparent;                 /* 上・左右の余白部の背後にMV(マーキー)が見える */
  transition: padding-top .3s ease;
}
.site-header.is-shrink { padding-top: clamp(6px, 1vw, 10px); }
/* header-inner = 浮遊する白い角丸バー本体(.container の padding-inline はここで上書き) */
.header-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 66px;
  max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(18px, 2.4vw, 34px);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.2) blur(8px);
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .05);
  transition: height .3s ease, box-shadow .3s ease;
}
.is-shrink .header-inner { height: 56px; box-shadow: 0 10px 28px rgba(0, 0, 0, .14); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 38px; height: 38px; }
.logo .logo-text { font-weight: 800; font-size: 18px; color: var(--color-ink); letter-spacing: .02em; white-space: nowrap; }

/* ナビ(PCは横並び / SPはドロワー) */
.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.nav-list > li > a,
.nav-list > li > .nav-trigger {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--color-text-sub);
  background: none; border: 0; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-list > li > a::after,
.nav-list > li > .nav-trigger::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--color-main);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease-out;
}
.nav-list > li > a:hover::after,
.nav-list > li:hover > .nav-trigger::after { transform: scaleX(1); }
.nav-trigger .caret { width: 10px; height: 10px; transition: transform .25s ease; }
.nav-list > li:hover .nav-trigger .caret { transform: rotate(180deg); }

/* サービス ドロップダウン */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; background: #fff;
  border: 1px solid var(--color-line); border-radius: 12px;
  box-shadow: var(--shadow-soft); padding: 10px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dropdown a { display: block; padding: 9px 14px; font-size: 14px; color: var(--color-text-sub); border-radius: 8px; }
.dropdown a:hover { background: var(--color-bg-soft); color: var(--color-main); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn--red { display: none; }

/* ハンバーガー */
.hamburger {
  width: 44px; height: 44px; border: 0; background: none;
  display: grid; place-items: center; position: relative; z-index: 120;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; width: 26px; height: 2.4px; border-radius: 2px;
  background: var(--color-ink); transition: transform .3s ease, opacity .3s ease;
}
.hamburger span::before { transform: translateY(-8px); }
.hamburger span::after { transform: translateY(8px); }
.is-menu-open .hamburger span { background: transparent; }
.is-menu-open .hamburger span::before { transform: translateY(0) rotate(45deg); }
.is-menu-open .hamburger span::after { transform: translateY(0) rotate(-45deg); }

/* SPドロワー */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
  background: #fff; z-index: 115;
  transform: translateX(100%); transition: transform .35s var(--ease-out);
  padding: 84px 26px 40px; overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
}
.is-menu-open .drawer { transform: translateX(0); }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 32, .45);
  z-index: 110; opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.is-menu-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer nav > ul > li { border-bottom: 1px solid var(--color-line); }
.drawer nav a, .drawer nav .drawer-sub-label {
  display: block; padding: 15px 6px; font-size: 15px; font-weight: 600; color: var(--color-ink);
}
.drawer-sub { padding-left: 14px; }
.drawer-sub a { font-size: 14px; font-weight: 400; color: var(--color-text-sub); padding: 11px 6px; }
.drawer .btn { width: 100%; justify-content: center; margin-top: 22px; }
.drawer-tel { display: block; text-align: center; margin-top: 16px; font-family: var(--font-num); font-weight: 700; font-size: 18px; color: var(--color-main); }

/* ========== 5. メインビジュアル(ページ最上端 y=0 から。浮遊ヘッダーが上に重なる) ========== */
.mv { position: relative; overflow: hidden; background: #fff; }
/* MV背景: k1 エコシティ線画を「最初のビューポート(=ヒーロー)」の下辺・全幅に敷く。
   高さを100svhにすることで、SPでもコピー画面内の下辺にk1が見える(下のマーキー帯へ埋もれない) */
.mv-decos {
  position: absolute; top: 0; left: 0; right: 0; bottom: auto;
  height: 100vh; height: 100svh;
  z-index: 0; pointer-events: none;
  background: url(../images/mv-ecocity.png) no-repeat bottom center;
  background-size: 100% auto;
  opacity: .32;
}
/* MVヒーロー(コピー領域)をビューポート高100%に。コンテンツは常に min-height を超えたら
   伸びるため見切れなし。短い高さのウィンドウでも中央寄せで収まる */
.mv-inner {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(92px, 20vw, 116px);       /* 浮遊ヘッダー分の逃げ */
  padding-bottom: clamp(28px, 6vw, 40px);
}
.mv-copy { max-width: 560px; }
.mv h1 {
  /* r6: 大幅拡大。2行構造(「頼れる」を、/ もっと自分たちらしく。)を全帯で維持できる最大に実測調整。
     letter-spacing を微圧縮して折返しを防ぐ */
  font-size: clamp(30px, 3.85vw, 60px);
  font-weight: 900; line-height: 1.28; letter-spacing: -0.025em;
  color: var(--color-ink);
}
.mv h1 .accent { color: var(--color-main); }
.mv h1 .line { display: block; overflow: hidden; }
.mv-sub {
  margin-top: clamp(18px, 2.6vw, 28px);
  color: var(--color-text-sub); font-size: clamp(15px, 1.85vw, 18px); line-height: 1.95;
}
.mv-tags {
  display: flex; gap: 18px; margin-top: clamp(16px, 2vw, 22px);
  font-family: var(--font-num); font-size: clamp(12px, 1.3vw, 14px); font-weight: 600; letter-spacing: .16em; color: var(--color-main);
}
.mv-tags span { position: relative; padding-left: 16px; }
.mv-tags span::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; background: var(--color-main); border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.mv-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.2vw, 38px); }
/* MVボタンは本文より一段大きく(メリハリ維持) */
.mv-actions .btn { padding: 15px 32px; font-size: clamp(15px, 1.15vw, 16.5px); }

/* MV 2列フォトマーキー(傾きなし長方形。SP=コピー下に通常配置 / 960px以上=セクション全高に絶対配置)
   フルハイト方針のため上下フェードマスクは廃止(端で写真がスパッと切れてよい) */
.mv-photos {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  height: 340px;
  margin-bottom: clamp(28px, 8vw, 44px);
}
.mv-col { position: relative; overflow: hidden; border-radius: 8px; }
.mv-track { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.mv-track-up { animation: mv-up 28s linear infinite; }
.mv-track-down { animation: mv-down 32s linear infinite; }
.mv-photos:hover .mv-track { animation-play-state: paused; }
.mv-photo { border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.10); }
/* 支給mv-grid画像に残る左端の英字ラベル帯・余白・角丸を右寄りズームでトリミング */
.mv-photo img { width: 100%; height: 240px; object-fit: cover; transform: scale(1.22); transform-origin: 70% 50%; }
@keyframes mv-up   { from { transform: translateY(0); }      to { transform: translateY(-50%); } }
@keyframes mv-down { from { transform: translateY(-50%); }    to { transform: translateY(0); } }

/* ========== 6. 事業内容(k11見出しバナー + k12カード / SC-01スタッキング) ========== */
.business { background: #fff; }

/* --- 見出しバナー(k11: 緑ベタ全幅 + 白線画都市 + 特大 OUR BUSINESS + 小 事業内容) --- */
.biz-banner {
  position: relative; overflow: hidden;
  background: var(--color-main);
  padding-block: clamp(56px, 12vw, 132px);
}
.biz-banner-deco {
  position: absolute; inset: 0; pointer-events: none;
  background: url(../images/mv-ecocity.png) no-repeat bottom center;
  background-size: cover;
  filter: brightness(0) invert(1);   /* 緑線画→白線画。k1(mv-ecocity)はRGBA透過なので線のみ白化 */
  opacity: .16;
}
.biz-banner-inner { position: relative; z-index: 1; }
.biz-banner-h { color: #fff; line-height: 1; }
.biz-banner-h .line { display: block; overflow: hidden; }   /* TX-03 行マスクのクリップ */
.biz-banner-h .en {
  display: block; font-family: var(--font-num); font-weight: 800;
  font-size: clamp(40px, 8.6vw, 104px); letter-spacing: .005em; line-height: .96;
}
.biz-banner-h .ja {
  display: block; margin-top: clamp(6px, 1vw, 14px);
  font-size: clamp(13px, 1.7vw, 19px); font-weight: 700; letter-spacing: .34em;
  color: rgba(255, 255, 255, .92);
}

/* --- スタッキングカード群(k12) --- */
.biz-stack { position: relative; }
/* SC-01 真のスタッキング: outer=display:contents、各カード(inner)を biz-stack 直下の sticky 積層に。
   カード1がtop固定→カード2が下からせり上がって覆う…z-indexは1〜6(HTMLインライン) */
.biz-row-outer { display: contents; }
.biz-row-inner {
  --pad: max(var(--gutter), calc((100vw - 1240px) / 2));
  position: sticky; top: 0; height: 100vh; min-height: 560px;
  background: var(--color-main); color: #fff; overflow: hidden;
  display: grid; grid-template-columns: 1fr;   /* base(SP)=縦積み: 写真上・テキスト下 */
  align-content: start; gap: clamp(16px, 3vh, 26px);
  padding: clamp(74px, 15vh, 104px) var(--gutter) clamp(36px, 6vh, 54px);
  transition: transform .35s ease-out, filter .35s ease-out;
  will-change: transform, filter;
}
.biz-row-inner.is-covered { transform: scale(.94); filter: brightness(.82); }
/* 背景の緑ブロブ(濃淡差で浮かぶ角丸図形。k12) */
.biz-row-inner::before, .biz-row-inner::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
}
.biz-row-inner::before { width: 54vh; height: 54vh; top: -16vh; left: 6%; background: rgba(255, 255, 255, .06); }
.biz-row-inner::after  { width: 62vh; height: 62vh; bottom: -22vh; right: -6%; background: rgba(0, 0, 0, .07); }

/* 左端の大型白縦ラベル(k12: 写真の左端に「半分重ね」)。
   中心線 = 写真の左端(= padding-left)。translateX(-50%) で約半分が緑地・約半分が写真の上に乗る。
   z-index を写真より上げて前面に。文字は写真高内へ収める(字間を狭めて調整)。
   base = SP<768(写真高 clamp(190,32vh,280) に合わせる)。≥768 は下の @media で大型化。 */
.biz-label {
  position: absolute;
  left: var(--gutter);                     /* 写真の左端(SPの padding-left)に中心を合わせる */
  top: clamp(74px, 15vh, 104px); margin: 0; /* = 写真の上端(SPは padding-top) */
  height: clamp(190px, 32vh, 280px);       /* 写真高 */
  transform: translateX(-50%);             /* 中心線を写真左端に=半分重ね */
  display: flex; align-items: flex-start;  /* r8: 先頭グリフを写真上端から(上揃え) */
  writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap;
  font-family: var(--font-num); font-weight: 800;
  letter-spacing: -0.13em; word-spacing: -0.55em; line-height: 1; /* r8: 字間・語間をさらに圧縮 */
  /* SPは行別に文字数へ合わせて縮小し、最終グリフまで写真高内に収める */
  font-size: clamp(11px, 2.0vh, 16px);     /* default(ARCHITECTURE/PAVING WORKS の12字) */
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 3px 14px rgba(0, 0, 0, .45);
  pointer-events: none; z-index: 3;        /* 写真(z-index:1)より前面 */
}
/* 短い語(CIVIL WORKS/ROAD WORKS/RENOVATION)は少し大きく、最長(EXTERIOR & ROOFING=18字相当)は小さく */
.biz-row-outer:nth-of-type(1) .biz-label,
.biz-row-outer:nth-of-type(3) .biz-label,
.biz-row-outer:nth-of-type(5) .biz-label { font-size: clamp(12px, 2.25vh, 18px); }
.biz-row-outer:nth-of-type(6) .biz-label { font-size: clamp(9px, 1.4vh, 14px); }

/* 写真(角丸インセット・影) */
.biz-photo {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: 16px; box-shadow: 0 22px 54px rgba(0, 0, 0, .26);
  height: clamp(190px, 32vh, 280px);
}
.biz-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* テキスト側(文字階層に強い大小メリハリ) */
.biz-panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 14px);
  color: #fff;
}
.biz-panel .biz-watermark { display: none; }   /* k12はブロブ背景。ライン透かしは不使用 */
.biz-panel .eyebrow { color: rgba(255, 255, 255, .82); letter-spacing: .28em; }
.biz-row-head { display: flex; align-items: baseline; gap: clamp(10px, 1.4vw, 20px); flex-wrap: wrap; }
.biz-num { font-family: var(--font-num); font-weight: 800; font-size: clamp(50px, 10.5vw, 100px); line-height: .82; }
.biz-num small { font-size: .5em; }
.biz-title { font-size: clamp(21px, 5vw, 34px); font-weight: 800; letter-spacing: .02em; }
.biz-catch { font-size: clamp(15px, 4vw, 22px); font-weight: 700; line-height: 1.55; color: #fff; }
.biz-desc { font-size: clamp(13px, 3.4vw, 15px); line-height: 1.85; color: rgba(255, 255, 255, .84); max-width: 32em; }
.biz-panel .btn-detail { align-self: flex-start; margin-top: clamp(6px, 1.4vh, 14px); }

.biz-mini-cta { text-align: center; padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(8px, 2vw, 20px); }

/* ========== 7. 実績数字タイル(3列) ========== */
.stats { background: #fff; }
.stats-box {
  background: var(--color-bg-soft); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1fr;
  padding: clamp(24px, 3vw, 40px);
}
.stat { text-align: center; padding: 22px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--color-line); }
.stat-label { font-size: 13px; font-weight: 700; color: var(--color-ink); margin-bottom: 8px; }
.stat-figure { display: flex; align-items: center; justify-content: center; gap: 10px; }
.stat-icon { width: 40px; height: 40px; color: var(--color-main); flex: none; }
.stat-icon svg { width: 100%; height: 100%; }
.stat-num { font-family: var(--font-num); font-weight: 800; color: var(--color-main); line-height: 1; }
.stat-num .n { font-size: clamp(30px, 5vw, 40px); }
.stat-num .n.txt { font-size: clamp(20px, 3vw, 27px); }
.stat-num .u { font-size: 16px; font-weight: 700; margin-left: 4px; }
.stat-cap { font-size: 12px; color: var(--color-caption); margin-top: 8px; }

/* ========== 8. 対応エリア ========== */
.area { background: var(--color-bg); }
.area-box {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
}
.area-lead h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--color-ink); }
.area-lead .eyebrow { display: block; margin-bottom: 8px; }
.area-lead p { margin-top: 14px; color: var(--color-text-sub); font-size: 15px; }
.area-legend { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.area-legend li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-sub); }
.area-legend .sw { width: 18px; height: 18px; border-radius: 4px; }
.sw-kyushu { background: var(--color-green-light); }
.sw-kansai { background: var(--color-green-deep); }
.area-map { text-align: center; }
.area-map img { margin-inline: auto; max-height: 380px; width: auto; }
.area-lists { display: grid; gap: 22px; }
.area-lists h3 { font-size: 16px; font-weight: 700; color: var(--color-main); display: flex; align-items: center; gap: 8px; }
.area-lists h3 .leaf { width: 16px; height: 16px; }
.area-lists p { margin-top: 8px; color: var(--color-text-sub); font-size: 14px; line-height: 1.9; }

/* ========== 9. 施工事例トピックス ========== */
.works { background: #fff; }
.works-body { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card { }
.work-thumb { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 3 / 2; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-cat { font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--color-main); margin-top: 12px; }
.work-title { font-size: 15px; font-weight: 700; color: var(--color-ink); margin-top: 4px; }
.works-more { text-align: center; }

/* ========== 10. 私たちの強み ========== */
.strengths { background: var(--color-bg); }
.strengths-box {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 46px);
  display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
}
.strength-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.strength { text-align: center; }
.strength .ic { width: 48px; height: 48px; margin: 0 auto 12px; }
.strength h3 { font-size: 15px; font-weight: 700; color: var(--color-ink); }
.strength p { font-size: 12px; color: var(--color-caption); margin-top: 6px; line-height: 1.7; }
.strengths-cta { text-align: center; }

/* ========== 11. お知らせ + 会社概要抜粋 ========== */
.news-company { background: #fff; }
.nc-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.nc-col h2 { font-size: 22px; font-weight: 800; color: var(--color-ink); margin-bottom: 18px; }
.news-list li { border-bottom: 1px solid var(--color-line); }
.news-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 4px; }
.news-date { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--color-main); }
.news-ttl { font-size: 14px; color: var(--color-text); }
.news-list .chev { width: 16px; height: 16px; color: var(--color-main); transition: transform .2s ease; }
.news-list a:hover .chev { transform: translateX(3px); }
.nc-btn { margin-top: 22px; }
/* 会社概要抜粋 定義リスト */
.company-dl { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; border-top: 1px solid var(--color-line); }
.company-dl dt, .company-dl dd { padding: 13px 4px; border-bottom: 1px solid var(--color-line); margin: 0; font-size: 14px; }
.company-dl dt { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.company-dl dd { color: var(--color-text-sub); }
.nc-photo { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.nc-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }

/* ========== 12. フッター(全面 同一グリーン var(--color-main) のベタ塗り) ========== */
.site-footer { position: relative; margin-top: clamp(40px, 6vw, 70px); background: var(--color-main); color: #fff; }
/* 上段: ご相談・お問い合わせ */
.footer-cta { position: relative; background: var(--color-main); }
.footer-cta-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center;
  padding-block: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.fcta-head { max-width: 30em; }
.fcta-head .t { font-size: clamp(17px, 2vw, 22px); font-weight: 800; color: #fff; }
.fcta-head .s { font-size: 13px; color: rgba(255, 255, 255, .9); margin-top: 6px; }
.fcta-contact { display: flex; align-items: center; gap: 14px; }
.fcta-phone { display: flex; align-items: center; gap: 12px; }
.fcta-phone .tel-ico { width: 30px; height: 30px; color: #fff; flex: none; }
.fcta-phone > span { display: flex; flex-direction: column; }
.fcta-phone .num { font-family: var(--font-num); font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); color: #fff; line-height: 1.05; letter-spacing: .01em; white-space: nowrap; }
.fcta-phone .hours { font-size: 11px; color: rgba(255, 255, 255, .85); margin-top: 4px; font-weight: 700; }

/* 下段: フッター本体 */
.footer-main { position: relative; background: var(--color-main); }
.footer-main-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 34px;
  padding-block: clamp(36px, 5vw, 56px);
}
.footer-brand { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo img { width: 40px; height: 40px; background: #fff; border-radius: 8px; padding: 3px; }
.footer-logo .t { font-weight: 800; font-size: 18px; }
.footer-brand address { font-style: normal; font-size: 13px; line-height: 2; color: rgba(255, 255, 255, .92); }
.footer-brand .tel-fax { font-family: var(--font-num); margin-top: 4px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
.footer-nav h3 { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-nav ul li { margin-bottom: 9px; }
.footer-nav a { position: relative; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .9); display: inline-block; }
.footer-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out; }
.footer-nav a:hover { color: #fff; }
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-copy { background: var(--color-main); color: rgba(255, 255, 255, .85); text-align: center; font-size: 12px; padding-block: 16px; font-family: var(--font-num); border-top: 1px solid rgba(255, 255, 255, .2); }

/* 緑地に載るアウトラインボタン(お問い合わせフォーム)は白地+緑文字で視認性確保。
   ホバー時はダーク塗りが満ちて白文字(緑地でも「押した感」が立つ) */
.site-footer .btn--outline { background: #fff; color: var(--color-main); border-color: #fff; }
.site-footer .btn--outline::before { background: var(--color-ink); }
.site-footer .btn--outline:hover { color: #fff; border-color: var(--color-ink); }

/* ========== 13. スクロール登場モーション(SC-03/TX-03/CD-01/SC-04) ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * .08s); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
/* TX-03 行マスクスライド */
.tx-mask .line-in { display: inline-block; transform: translateY(110%); transition: transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * .12s); }
.tx-mask.is-visible .line-in { transform: none; }
/* SC-04 画像カーテンリビール */
.curtain { position: relative; }
.curtain::after { content: ""; position: absolute; inset: 0; background: var(--color-main); transform: scaleX(1); transform-origin: right; transition: transform .7s var(--ease-fill); z-index: 2; }
.curtain.is-visible::after { transform: scaleX(0); }

/* ========== 14. #capture フック(照合・QA用。通常閲覧に影響なし) ========== */
.capture-mode *, .capture-mode *::before, .capture-mode *::after {
  animation: none !important;
  transition: none !important;
}
/* 登場系を最終状態で固定 */
.capture-mode .reveal,
.capture-mode .reveal-stagger > *,
.capture-mode .tx-mask .line-in { opacity: 1 !important; transform: none !important; }
.capture-mode .curtain::after { transform: scaleX(0) !important; }
/* SC-01 スタッキングを通常フローに展開(全6行を一覧撮影できるように)。
   outerは通常display:contentsのため撮影時はblockへ戻し、innerをstatic化して各カードを縦に並べる。
   height:auto では写真の height:100% が解決できず縦長化するため、撮影時は写真高を固定 */
.capture-mode .biz-row-outer { display: block !important; height: auto !important; }
/* relative にして絶対配置の縦ラベルの基準点を保ちつつ、通常フローへ展開 */
.capture-mode .biz-row-inner { position: relative !important; height: auto !important; min-height: 0 !important; overflow: visible !important; transform: none !important; filter: none !important; }
.capture-mode .biz-photo { height: 480px !important; }
/* 撮影時はカード高がauto(写真480px固定)。縦ラベルは height:auto(箱=内容)にして固定サイズで
   写真480px内に確実に収める(SP幅で撮影しても箱と内容が一致しはみ出さない) */
.capture-mode .biz-label { font-size: 26px !important; height: auto !important; }
.capture-mode .biz-row-outer:nth-of-type(6) .biz-label { font-size: 17px !important; }
/* MVマーキーは初期フレームで静止 */
.capture-mode .mv-track { transform: none !important; }

/* ========== 15. prefers-reduced-motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > *, .tx-mask .line-in { opacity: 1 !important; transform: none !important; }
  .curtain::after { transform: scaleX(0) !important; }
  .mv-track { animation: none !important; }
}

/* =========================================================================
   16. レスポンシブ(min-width で拡張 / タブレット 768px・PC 1024px)
   ========================================================================= */
@media (min-width: 768px) {
  body { font-size: 16px; }

  /* 事業内容(k12): 左=角丸インセット写真(+緑地に大型白縦ラベル) / 右=テキスト。内容はコンテナ幅centered */
  .biz-row-inner {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-content: normal; align-items: center;
    gap: clamp(28px, 4vw, 64px);
    padding: clamp(48px, 8vh, 96px) var(--pad);
  }
  /* ラベルが写真上に半分重なるので margin-left は撤去(写真は content 左端から) */
  .biz-photo { height: min(76vh, 600px); margin-left: 0; }
  /* 縦ラベル: 中心線=写真左端(= var(--pad))で半分重ね。ボックス高=写真高で縦中央=写真と一致、
     内容は上揃え(align-items:flex-start)にして先頭グリフを写真上端から。前面・字間/語間圧縮で拡大 */
  .biz-label {
    left: var(--pad); top: 50%; transform: translate(-50%, -50%);
    height: min(76vh, 600px); align-items: flex-start;
    font-size: clamp(20px, 4.5vh, 37px);      /* default(12字) */
    color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6), 0 4px 18px rgba(0, 0, 0, .45);
  }
  .biz-row-outer:nth-of-type(1) .biz-label,
  .biz-row-outer:nth-of-type(3) .biz-label,
  .biz-row-outer:nth-of-type(5) .biz-label { font-size: clamp(22px, 5vh, 42px); }
  .biz-row-outer:nth-of-type(6) .biz-label { font-size: clamp(15px, 3.3vh, 26px); }

  /* 実績: 3列 */
  .stats-box { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 12px; }

  /* 対応エリア: 3カラム(テキスト / 地図 / リスト) */
  .area-box { grid-template-columns: 0.92fr 1.25fr 1fr; gap: 32px; }

  /* 施工事例: 4カードを全幅で大きく表示。ボタンはグリッド下・中央(右列を廃止。
     works-body は単一カラムのままなので works-more は自動で下段・text-align:center で中央) */
  .works-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }

  /* 強み: 5アイコンを全幅で大きく表示。CTAはリスト下・中央(右列を廃止) */
  .strength-list { grid-template-columns: repeat(5, 1fr); gap: 24px; }

  /* お知らせ+会社概要+写真: 3カラム */
  .nc-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: start; }

  /* フッター(768〜1023はナビ2列。4列だと「土木工事一式」等が1文字ずつ折返すため) */
  .footer-cta-inner { grid-template-columns: 1fr auto auto; gap: 30px; }
  .footer-main-inner { grid-template-columns: 310px 1fr; gap: 40px; }
}

/* MV2カラムは960px以上で発火(768〜959はMV縦積み)。
   マーキーはセクション全高の右側に絶対配置し、コピーは左44%に収める(干渉なし) */
@media (min-width: 960px) {
  .mv-inner {
    min-height: 100vh; min-height: 100svh;   /* MV=ビューポート100% */
    padding-top: clamp(96px, 10vw, 128px);
    padding-bottom: clamp(48px, 7vw, 80px);
    /* r6: コピーをより左から。コンテナ中央寄せを解除し左paddingを縮小(1440で約52px) */
    max-width: none; margin-inline: 0;
    padding-left: clamp(20px, 3.4vw, 52px); padding-right: 0;
  }
  /* コピー幅上限=マーキー左端まで gap24px以上を確保(45vw - 24px)。左寄せ分だけ横幅が広がる */
  .mv-copy { max-width: min(calc(45vw - 24px), 690px); }
  .mv-photos {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(51vw, 900px);       /* 旧576px比 約1.27倍(コピー拡大のため52→51vwへ微縮・見た目はほぼ不変) */
    max-width: none; height: auto; margin: 0; padding: 0;
    gap: 16px;
  }
  .mv-photo img { height: 300px; }
}

/* ヘッダー横並びナビは1024px以上で発火(768〜1023はハンバーガー)。
   QA A-2/2周目: 960〜979px帯で「ロゴ+6ナビ+CTA」が1行に収まらず折返す事象を、
   1行維持が確認できる1024px以上に切替閾値を引き上げて回避(980pxで1行=実測済みのため十分なマージン) */
@media (min-width: 1024px) {
  .nav { display: block; }
  .hamburger, .drawer, .drawer-overlay { display: none; }
  .header-cta .btn--red { display: inline-flex; }

  .mv-photo img { height: 330px; }
  .footer-nav { grid-template-columns: repeat(4, 1fr); gap: 30px; }
}

/* SP(767px以下): 事業内容カードのSPレイアウト(写真上・テキスト下・縦ラベルは写真高に縮小)は
   ベース側で定義済み(align-content:start / 写真固定高 / ラベルは写真高センター小型)。 */
@media (max-width: 767px) {
  /* SPフッター: 全面緑は共通ルールで担保済み。SPは中央寄せのみ整える */
  .footer-cta-inner { text-align: center; }
  .fcta-contact { justify-content: center; flex-wrap: wrap; }
}

/* =========================================================================
   17. 下層ページ共通(lower-design-policy.md 準拠)
   トップのトークン(緑・白・角丸・ピルボタン)をそのまま継承。
   トップの大型演出(SC-01スタッキング / MV2列マーキー)は持ち込まない。
   ========================================================================= */

/* ---------- 17-1. ページタイトル帯(パンくず + h1 + リード + 写真) ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #F2F8F3 0%, var(--color-bg-soft) 100%);
  padding-top: clamp(96px, 14vw, 132px);
  padding-bottom: clamp(56px, 7vw, 92px);
}
/* トップMVと同じ線画エコシティを下辺に薄く敷き、サイト全体の連続性を出す */
.page-head-deco {
  position: absolute; inset: auto 0 0 0; height: 78%;
  pointer-events: none; z-index: 0;
  background: url(../images/mv-ecocity.png) no-repeat bottom center;
  background-size: 100% auto;
  opacity: .14;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 900; line-height: 1.34; letter-spacing: -0.01em;
  color: var(--color-ink);
  margin-top: 6px;
}
.page-lead {
  margin-top: clamp(12px, 1.8vw, 18px);
  max-width: 46em;
  color: var(--color-text-sub);
  font-size: clamp(14px, 1.5vw, 16px); line-height: 1.95;
}
/* 写真を帯の下辺に食い込ませて重ねる(下層共通の見え方) */
.page-hero-wrap { margin-top: clamp(-72px, -5vw, -40px); position: relative; z-index: 2; }
.page-hero { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }
.page-hero img { width: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; }
@media (max-width: 640px) { .page-hero img { aspect-ratio: 16 / 9; } }
/* 写真なしのページ(お問い合わせ/完了/プライバシー/お知らせ) */
.page-head--plain { padding-bottom: clamp(34px, 5vw, 56px); }

/* パンくず */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.breadcrumb li { font-size: 12px; color: var(--color-caption); display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--color-line); }
.breadcrumb a { color: var(--color-text-sub); }
.breadcrumb a:hover { color: var(--color-main); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-main); font-weight: 700; }

/* 現在地ナビ */
.nav-list > li > a[aria-current="page"] { color: var(--color-main); font-weight: 700; }
.nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
.dropdown a[aria-current="page"] { color: var(--color-main); font-weight: 700; background: var(--color-bg-soft); }

/* ---------- 17-2. セクション見出し(左寄せ版) ---------- */
/* 見出しだけで完結するセクション(本文がリードのみ)の下端余白を殺す */
.sec-head:last-child { margin-bottom: 0; }
.sec-head--left { text-align: left; }
.sec-head--left h2::after { margin-inline: 0; }
.sec-head--left .eyebrow { display: block; margin-bottom: 8px; }
.sec-head--left .sec-lead { margin-inline: 0; text-align: left; }

/* 帯の交互背景(単調さを避ける) */
.section--soft { background: var(--color-bg-soft); }

/* ---------- 17-3. カードグリッド(サービスハブ・実績一覧) ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 28px); }
.card-grid--2 { grid-template-columns: 1fr; }
.p-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-line);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s ease;
}
a.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--color-main); }
.p-card-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-soft); }
.p-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
a.p-card:hover .p-card-thumb img { transform: scale(1.06); }
.p-card-body { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card-cat { font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--color-main); }
.p-card-body h3 { font-size: clamp(16px, 1.9vw, 19px); font-weight: 800; color: var(--color-ink); line-height: 1.5; }
.p-card-body p { font-size: 14px; line-height: 1.9; color: var(--color-text-sub); }
.p-card-more {
  margin-top: auto; padding-top: 10px;
  font-size: 13px; font-weight: 700; color: var(--color-main);
  display: inline-flex; align-items: center; gap: 8px;
}
.p-card-more svg { width: 12px; height: 12px; transition: transform .2s ease-out; }
a.p-card:hover .p-card-more svg { transform: translateX(4px); }

/* ---------- 17-4. できることリスト(チェック付き) ---------- */
.can-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.can-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--color-ink); line-height: 1.7;
}
.can-list .tick {
  flex: none; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%; background: var(--color-main); color: #fff;
  display: grid; place-items: center;
}
.can-list .tick svg { width: 13px; height: 13px; }

/* ---------- 17-5. お悩み・ご依頼対応(3項目 × 複数行) ---------- */
.need-list { display: grid; gap: clamp(14px, 2vw, 20px); }
.need-item {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  background: #fff; border: 1px solid var(--color-line); border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.4vw, 26px);
}
.need-cell .lbl {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--color-main); margin-bottom: 6px;
}
.need-cell p { font-size: 14px; line-height: 1.9; color: var(--color-text-sub); }
.need-cell--who p { font-weight: 700; color: var(--color-ink); }
.need-cell--do { position: relative; }

/* ---------- 17-6. ステップ(施工の流れ / 対応の流れ) ---------- */
.step-list { display: grid; gap: 0; position: relative; }
.step {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr; gap: clamp(14px, 2vw, 26px);
  padding-bottom: clamp(24px, 3vw, 34px);
}
.step:last-child { padding-bottom: 0; }
/* 縦の接続ライン */
.step::before {
  content: ""; position: absolute; left: 31px; top: 68px; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--color-main), rgba(7, 138, 58, .18));
}
.step:last-child::before { display: none; }
.step-ic {
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-main);
  display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(7, 138, 58, .14);
}
.step-ic img { width: 32px; height: 32px; }
.step-body {
  background: #fff; border: 1px solid var(--color-line); border-radius: 14px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: var(--shadow-card);
}
.step-num {
  font-family: var(--font-num); font-size: 12px; font-weight: 800;
  letter-spacing: .14em; color: var(--color-main);
}
.step-body h3 { font-size: clamp(16px, 1.9vw, 19px); font-weight: 800; color: var(--color-ink); margin-top: 2px; }
.step-body p { font-size: 14px; line-height: 1.95; color: var(--color-text-sub); margin-top: 8px; }

/* 簡易ステップ(サービス詳細の「対応の流れ」= 横並びチップ) */
.step-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.step-chips li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--color-ink);
}
.step-chips li .n { font-family: var(--font-num); font-size: 12px; color: var(--color-main); }
.step-chips .sep { color: var(--color-main); font-weight: 700; }

/* ---------- 17-7. 情報テーブル(会社概要) ---------- */
.info-table {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--color-line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card);
}
.info-table dt {
  background: var(--color-bg-soft);
  font-weight: 700; font-size: 14px; color: var(--color-ink);
  padding: 14px clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--color-line);
}
.info-table dd {
  margin: 0; font-size: 14px; line-height: 1.9; color: var(--color-text-sub);
  padding: 14px clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--color-line);
}
.info-table > dt:first-of-type, .info-table > dt:first-of-type + dd { border-top: 0; }
.info-table .pending { color: var(--color-caption); font-size: 13px; }

/* ---------- 17-8. FAQアコーディオン ---------- */
.faq-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.faq-cat-head img { width: 32px; height: 32px; flex: none; }
.faq-cat-head h2 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; color: var(--color-ink); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-card);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 26px 1fr 22px; gap: 12px; align-items: start;
  padding: 16px clamp(14px, 2vw, 20px);
  font-size: 15px; font-weight: 700; color: var(--color-ink); line-height: 1.7;
  transition: background-color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--color-bg-soft); }
.faq-q, .faq-a-mark {
  font-family: var(--font-num); font-weight: 800; font-size: 17px; line-height: 1.5;
}
.faq-q { color: var(--color-main); }
.faq-a-mark { color: var(--color-caption); }
/* +/× トグル */
.faq-toggle { position: relative; width: 22px; height: 22px; margin-top: 3px; flex: none; }
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--color-main); border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease-out), opacity .25s ease;
}
.faq-toggle::before { width: 14px; height: 2px; }
.faq-toggle::after { width: 2px; height: 14px; }
details[open] > summary .faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 0 clamp(14px, 2vw, 20px) 18px;
  border-top: 1px solid var(--color-line); padding-top: 16px; margin-top: -1px;
}
.faq-answer p { font-size: 14px; line-height: 1.95; color: var(--color-text-sub); }

/* ---------- 17-9. お知らせ一覧 ---------- */
.news-entries { display: grid; gap: 14px; }
.news-entry {
  background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.news-entry summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 22px; gap: 12px; align-items: center;
  padding: 16px clamp(14px, 2vw, 20px);
  transition: background-color .2s ease;
}
.news-entry summary::-webkit-details-marker { display: none; }
.news-entry summary:hover { background: var(--color-bg-soft); }
.news-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.news-entry .news-date { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--color-main); }
.news-badge {
  font-size: 11px; font-weight: 700; color: var(--color-main);
  border: 1px solid var(--color-main); border-radius: var(--radius-pill);
  padding: 2px 12px; line-height: 1.7;
}
.news-entry h3 { font-size: 15px; font-weight: 700; color: var(--color-ink); line-height: 1.7; }
.news-body { padding: 0 clamp(14px, 2vw, 20px) 18px; }
.news-body p { font-size: 14px; line-height: 1.95; color: var(--color-text-sub); border-top: 1px solid var(--color-line); padding-top: 16px; }

/* ---------- 17-10. 施工実績フィルタ ---------- */
.works-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: clamp(24px, 3vw, 34px); }
.filter-btn {
  background: #fff; border: 1.5px solid var(--color-line); color: var(--color-text-sub);
  border-radius: var(--radius-pill); padding: 9px 20px;
  font-size: 13.5px; font-weight: 700;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--color-main); color: var(--color-main); }
.filter-btn[aria-pressed="true"] { background: var(--color-main); border-color: var(--color-main); color: #fff; }
.works-note { text-align: center; font-size: 13px; color: var(--color-caption); margin-top: clamp(20px, 3vw, 30px); }
.p-card[hidden] { display: none; }

/* ---------- 17-11. 関連サービスリンク ---------- */
.link-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--color-line); border-radius: 12px;
  padding: 16px 20px; font-size: 15px; font-weight: 700; color: var(--color-ink);
  transition: border-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.link-card:hover { border-color: var(--color-main); color: var(--color-main); transform: translateX(3px); box-shadow: var(--shadow-card); }
.link-card svg { width: 14px; height: 14px; color: var(--color-main); flex: none; }

/* ---------- 17-12. 画像ギャラリー(サービス詳細の施工実績) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--color-bg-soft); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- 17-13. 共通CTAブロック(フッター直前) ---------- */
.cta-block { position: relative; overflow: hidden; background: var(--color-main); color: #fff; padding-block: clamp(40px, 6vw, 66px); }
.cta-block-deco {
  position: absolute; inset: 0; pointer-events: none;
  background: url(../images/mv-ecocity.png) no-repeat bottom center;
  background-size: cover; filter: brightness(0) invert(1); opacity: .12;
}
.cta-block .container { position: relative; z-index: 1; text-align: center; }
.cta-block h2 { font-size: clamp(20px, 2.8vw, 30px); font-weight: 800; color: #fff; line-height: 1.5; }
.cta-block p { margin: 14px auto 0; max-width: 42em; font-size: 14.5px; line-height: 1.95; color: rgba(255, 255, 255, .92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: clamp(22px, 3vw, 30px); }
.cta-tel { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.cta-tel svg { width: 26px; height: 26px; flex: none; }
.cta-tel .num { font-family: var(--font-num); font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; white-space: nowrap; }
.cta-tel .hours { display: block; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .85); margin-top: 3px; }
.cta-block .btn--outline { background: #fff; color: var(--color-main); border-color: #fff; }
.cta-block .btn--outline::before { background: var(--color-ink); }
.cta-block .btn--outline:hover { color: #fff; border-color: var(--color-ink); }
/* CTAブロックの直後はフッター上段(同じ緑)と地続きにする */
.cta-block + .site-footer { margin-top: 0; }
.cta-block + .site-footer .footer-cta { border-top: 1px solid rgba(255, 255, 255, .2); }

/* セクション末尾のミニCTA(右寄せテキストリンク) */
.mini-cta { margin-top: clamp(18px, 2.4vw, 26px); }
.mini-cta .btn { font-size: 14px; padding: 11px 22px; }

/* ---------- 17-14. お問い合わせフォーム ---------- */
.form-note {
  background: var(--color-bg-soft); border-left: 4px solid var(--color-main);
  border-radius: 0 10px 10px 0; padding: 14px 18px;
  font-size: 13.5px; line-height: 1.9; color: var(--color-text-sub);
  margin-bottom: clamp(22px, 3vw, 30px);
}
.contact-form { display: grid; gap: clamp(18px, 2.4vw, 24px); max-width: 840px; }
.field { display: grid; gap: 8px; }
.field > label, .field-label { font-size: 14px; font-weight: 700; color: var(--color-ink); display: flex; align-items: center; gap: 10px; }
.req, .opt {
  font-size: 10.5px; font-weight: 700; line-height: 1.8;
  border-radius: 4px; padding: 1px 8px;
}
.req { background: var(--color-red); color: #fff; }
.opt { background: var(--color-bg-soft); color: var(--color-caption); border: 1px solid var(--color-line); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--color-ink);
  background: #fff; border: 1.5px solid var(--color-line); border-radius: 10px;
  padding: 13px 16px; line-height: 1.7;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 180px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23078A3A' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 44px; }
.field :is(input, select, textarea):focus {
  outline: none; border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(7, 138, 58, .16);
}
.field-hint { font-size: 12.5px; color: var(--color-caption); line-height: 1.8; }
.form-errors {
  background: #FDECEC; border: 1.5px solid var(--color-red); border-radius: 10px;
  padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--color-red);
  line-height: 1.8;
}
.form-errors[hidden] { display: none; }
.field-error {
  font-size: 12.5px; font-weight: 700; color: var(--color-red); line-height: 1.8;
}
.field-error[hidden] { display: none; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid {
  border-color: var(--color-red);
}
.consent {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: 12px;
  padding: 18px 20px;
}
.consent input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-main); flex: none; }
.consent label { font-size: 14px; line-height: 1.8; color: var(--color-ink); font-weight: 600; }
.consent a { color: var(--color-main); text-decoration: underline; }
.form-submit { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 6px; }
.form-submit .btn { padding: 16px 42px; font-size: 16px; }
.form-push { font-size: 13px; color: var(--color-caption); text-align: center; line-height: 1.9; }
/* 電話問い合わせパネル */
.tel-panel {
  display: grid; gap: 16px; justify-items: center; text-align: center;
  background: #fff; border: 1px solid var(--color-line); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: clamp(24px, 3.4vw, 36px);
}
.tel-panel p { font-size: 14.5px; line-height: 1.9; color: var(--color-text-sub); }
.tel-panel .tel-link { display: inline-flex; align-items: center; gap: 12px; color: var(--color-main); }
.tel-panel .tel-link svg { width: 30px; height: 30px; flex: none; }
.tel-panel .num { font-family: var(--font-num); font-weight: 800; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.05; letter-spacing: .01em; white-space: nowrap; }

/* ---------- 17-15. 完了ページ ---------- */
.thanks-box {
  max-width: 720px; margin-inline: auto; text-align: center;
  background: #fff; border: 1px solid var(--color-line); border-radius: 16px;
  box-shadow: var(--shadow-soft); padding: clamp(30px, 5vw, 56px);
}
.thanks-mark {
  width: 84px; height: 84px; margin: 0 auto clamp(18px, 2.4vw, 26px);
  border-radius: 50%; background: var(--color-main); color: #fff;
  display: grid; place-items: center;
}
.thanks-mark svg { width: 40px; height: 40px; }
.thanks-box h2 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; color: var(--color-ink); }
.thanks-box p { font-size: 14.5px; line-height: 2; color: var(--color-text-sub); margin-top: 16px; text-align: left; }
.thanks-box .btn { margin-top: clamp(24px, 3vw, 32px); }

/* ---------- 17-16. 法務ページ(プライバシーポリシー) ---------- */
.legal { max-width: 860px; }
.legal h2 {
  font-size: clamp(17px, 2vw, 20px); font-weight: 800; color: var(--color-ink);
  padding-left: 14px; border-left: 4px solid var(--color-main);
  margin-top: clamp(30px, 4vw, 42px); margin-bottom: 14px;
}
.legal > h2:first-child { margin-top: 0; }
.legal p { font-size: 14.5px; line-height: 2; color: var(--color-text-sub); }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.95; color: var(--color-text-sub); }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--color-main); transform: rotate(45deg); }
.legal .legal-contact {
  margin-top: 16px; background: var(--color-bg-soft);
  border: 1px solid var(--color-line); border-radius: 12px; padding: 20px 24px;
  font-size: 14.5px; line-height: 2; color: var(--color-text-sub); font-style: normal;
}

/* ---------- 17-17. アクセス / 地図 ---------- */
.access-grid { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 30px); align-items: start; }
.access-photo { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.access-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.map-slot {
  display: grid; place-items: center; gap: 10px; text-align: center;
  background: var(--color-bg-soft); border: 1.5px dashed var(--color-line);
  border-radius: 14px; padding: clamp(28px, 5vw, 52px) 20px;
  color: var(--color-caption); font-size: 13.5px; line-height: 1.9;
}
.map-slot svg { width: 40px; height: 40px; color: var(--color-main); }

/* ---------- 17-18. 実績数字タイル(下層で見出し付きで再利用する場合) ----------
   トップは見出しが sr-only のため .sec-head を持たず、この余白は付かない(既存の見た目を維持) */
.sec-head + .stats-box { margin-top: clamp(20px, 3vw, 28px); }

/* ---------- 17-19. 下層レスポンシブ ---------- */
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .can-list { grid-template-columns: repeat(2, 1fr); }
  .link-cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .info-table { grid-template-columns: 220px 1fr; }
  .access-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .need-item { grid-template-columns: 0.9fr 1fr 1.25fr; gap: clamp(18px, 2.4vw, 30px); }
  .need-cell + .need-cell { border-left: 1px solid var(--color-line); padding-left: clamp(18px, 2.4vw, 30px); }
  .cta-actions { gap: 30px; }
}

/* ---------- 17-20. #capture フック(下層分) ---------- */
.capture-mode .p-card[hidden] { display: flex !important; }
