/* ============================================================
   有限会社ヤマト電設 — style.css  v2 (2026-09-01)
   宮城県石巻市の電気・空調・太陽光保守の会社

   デザインの土台：
   ・色は「社章の3つのリング（緑・青・黒）」から取る
   ・見出しは角ゴシック。明朝は使わない
   ・数字は寸法表記のコンデンス体
   ・装飾より情報密度。仕様書・工事経歴書の手触りを基準にする
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:    #eef1f4;   /* 分電盤・ヘルメットの白に寄せた冷たい淡灰 */
  --paper-2:  #e4e9ee;   /* 交互セクション */
  --paper-3:  #d9e0e6;
  --white:    #ffffff;
  --ink:      #14181c;   /* 墨＝社章の黒リング */
  --ink-2:    #4d5760;   /* 本文の補助（白地 7.4:1 / 淡灰地 6.0:1） */
  --ink-3:    #5f6971;   /* 注記・キャプション（白地 5.6:1 / 淡灰地 4.6:1）
                            ※これより明るくするとWCAG AAを割る。安易に薄くしない */

  --navy:     #132430;   /* 濃色セクション */

  --blue:     #1c5c96;   /* 社章の青リング＝主色 */
  --blue-d:   #14456f;
  --blue-l:   #7fb2e0;
  --blue-soft: rgba(28, 92, 150, 0.08);

  --green:    #2f8f5f;   /* 社章の緑リング＝再エネ・地域貢献 */
  --green-d:  #23724a;
  --green-l:  #5cbe8a;
  --green-soft: rgba(47, 143, 95, 0.10);

  --line:      rgba(20, 24, 28, 0.14);
  --line-2:    rgba(20, 24, 28, 0.28);
  --line-dark: rgba(238, 241, 244, 0.16);

  --f-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", sans-serif;
  --f-num:  "Roboto Condensed", "Zen Kaku Gothic New", sans-serif;

  --e-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --e-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --head-h: 76px;
  --pad-x: clamp(18px, 4vw, 56px);

  /* 重なり順は必ずここで管理する（各所に数値を直書きしない） */
  --z-totop: 90;
  --z-mnav: 110;
  --z-header: 120;
  --z-lightbox: 200;
  --z-skip: 300;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: var(--z-skip);
  background: var(--ink); color: #fff; padding: 10px 16px; font-size: 13px;
  transition: top .2s var(--e-soft);
}
.skip-link:focus { top: 8px; }

.container { width: min(100% - var(--pad-x) * 2, 1180px); margin-inline: auto; }
.container--narrow { width: min(100% - var(--pad-x) * 2, 860px); margin-inline: auto; }
.num { font-family: var(--f-num); font-weight: 700; letter-spacing: 0.01em; }

/* ============================================================
   シグネチャー：社章の3リング色帯（緑・青・黒）
   ロゴの下、セクションの境目、フッターの上に走らせる。
   飾りではなく、この会社の識別記号として機能させる。
   ============================================================ */
.wire {
  height: 9px;
  background: linear-gradient(180deg,
    var(--green) 0 3px,
    var(--blue) 3px 6px,
    var(--ink) 6px 9px);
}

/* ---------- セクション見出し ---------- */
.sec { padding: clamp(64px, 9vh, 112px) 0; }
.sec--paper2 { background: var(--paper-2); }
.sec--white  { background: var(--white); }
.sec--navy   { background: var(--navy); color: #fff; }

.sec-head { margin-bottom: clamp(32px, 4.4vh, 52px); }
.sec-head .bar { display: block; width: 46px; height: 4px; background: var(--blue); margin-bottom: 18px; }
.sec-head h2 {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(23px, 3.3vw, 37px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.sec-head h2 small {
  display: block;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-top: 8px;
}
.sec-head .lead {
  margin-top: 18px; max-width: 66ch;
  font-size: clamp(13.5px, 1.4vw, 15px);
  color: var(--ink-2); line-height: 2.05;
}
.sec--navy .sec-head h2 { color: #fff; }
.sec--navy .sec-head h2 small { color: var(--blue-l); }
.sec--navy .sec-head .lead { color: rgba(238, 241, 244, 0.78); }
.sec--navy .sec-head .bar { background: var(--blue-l); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 26px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  border: 2px solid var(--ink); background: transparent;
  transition: background .35s var(--e-soft), color .35s var(--e-soft), border-color .35s var(--e-soft);
}
.btn .ar { transition: transform .35s var(--e-out); }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover .ar { transform: translateX(5px); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--e-soft), background .3s var(--e-soft);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--blue) 33.3% 66.6%, var(--ink) 66.6% 100%);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: var(--head-h);
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px);
  width: min(100% - 28px, 1440px); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: auto; height: 40px; }
.brand-name {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(15px, 1.7vw, 18px); letter-spacing: 0.06em; line-height: 1.15;
}
.brand-sub {
  display: block; font-family: var(--f-body); font-weight: 500;
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink-3); margin-top: 3px;
}
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: clamp(12px, 1.7vw, 26px); }
.gnav a {
  position: relative; display: block; padding: 6px 0;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em;
  transition: color .3s var(--e-soft);
}
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--blue); transition: right .35s var(--e-out);
}
.gnav a:hover { color: var(--blue); }
.gnav a:hover::after { right: 0; }
.gnav a[aria-current="page"] { color: var(--blue); }
.gnav a[aria-current="page"]::after { right: 0; }

.head-cta {
  flex-shrink: 0; background: var(--blue); color: #fff;
  padding: 13px 22px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  transition: background .3s var(--e-soft);
}
.head-cta:hover { background: var(--blue-d); }

.menu-btn { display: none; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; margin-left: auto; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .4s var(--e-out), opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- モバイルメニュー ---------- */
.mnav {
  position: fixed; inset: 0; z-index: var(--z-mnav);
  background: var(--navy); color: #fff;
  padding: calc(var(--head-h) + 24px) var(--pad-x) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--e-soft), transform .4s var(--e-out), visibility .4s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav ul { border-top: 1px solid var(--line-dark); }
.mnav li { border-bottom: 1px solid var(--line-dark); }
.mnav a {
  display: flex; align-items: baseline; gap: 12px; padding: 17px 2px;
  font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: 0.05em;
}
.mnav a small { font-family: var(--f-num); font-size: 10.5px; letter-spacing: 0.16em; color: var(--blue-l); }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
/* スクリムは「明るめ」。石巻の街・川・空が見えるところまで思い切り軽くし、
   見出しの可読性は ①コピーが載る左側だけの帯 ②2枚重ねの文字影 で確保する。
   全面を沈めない（沈めると写真が曇って見え、明るさを上げた意味がなくなる）。 */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12,22,30,.20) 0%, rgba(12,22,30,0) 26%, rgba(12,22,30,0) 56%, rgba(10,18,24,.58) 100%),
    linear-gradient(90deg, rgba(10,20,28,.54) 0%, rgba(10,20,28,.44) 30%, rgba(10,20,28,.16) 60%, rgba(10,20,28,0) 80%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-body {
  position: relative; z-index: 2; color: #fff;
  padding: calc(var(--head-h) + 40px) 0 clamp(120px, 17vh, 190px);
  width: min(100% - var(--pad-x) * 2, 1180px); margin-inline: auto;
}
.hero h1 {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(24px, 6.2vw, 76px);
  line-height: 1.3; letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(8,14,20,.55), 0 4px 22px rgba(8,14,20,.62);
}
.hero-acts { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 13px; }

/* ヒーロー下端の実務情報バー */
.hero-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: rgba(19, 36, 48, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.hero-bar-inner {
  width: min(100% - var(--pad-x) * 2, 1180px); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-bar dl { padding: 15px 20px 16px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-bar dl:first-child { border-left: 0; padding-left: 0; }
.hero-bar dt { font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,.55); }
.hero-bar dd { font-family: var(--f-num); font-weight: 700; font-size: clamp(14px, 1.6vw, 19px); line-height: 1.35; margin-top: 3px; }
.hero-bar dd.jp { font-family: var(--f-head); font-size: clamp(12px, 1.3vw, 14.5px); letter-spacing: 0.03em; }

.scroll-hint {
  position: absolute; right: var(--pad-x); bottom: 108px; z-index: 4;
  writing-mode: vertical-rl; font-family: var(--f-num); font-size: 10.5px;
  letter-spacing: 0.28em; color: rgba(255,255,255,.72);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::after { content: ""; width: 1px; height: 54px; background: rgba(255,255,255,.4); animation: sh 2.4s var(--e-soft) infinite; transform-origin: top; }
@keyframes sh { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 中央寄せリード ---------- */
.stmt { text-align: center; }
.stmt p {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(18px, 2.9vw, 31px); line-height: 1.85; letter-spacing: 0.02em;
}
.stmt .note {
  margin-top: 28px; font-family: var(--f-body); font-weight: 400;
  font-size: clamp(13px, 1.4vw, 14.8px); line-height: 2.1; color: var(--ink-2);
  max-width: 62ch; margin-inline: auto; text-align: left;
}

/* ============================================================
   事業一覧（番号付きの行。3カラムカードにしない）
   ============================================================ */
.pillars { border-top: 2px solid var(--ink); }
.pillar {
  display: grid; grid-template-columns: 118px 1fr 1.05fr; gap: clamp(20px, 3vw, 46px);
  align-items: center; padding: clamp(26px, 3.6vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pillar-no {
  font-family: var(--f-num); font-weight: 700; font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1; color: var(--ink-3); letter-spacing: -0.02em;
  transition: color .5s var(--e-soft);
}
.pillar:hover .pillar-no { color: var(--blue); }
.pillar--green:hover .pillar-no { color: var(--green); }
.pillar-body h3 {
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(19px, 2.5vw, 27px); line-height: 1.4; letter-spacing: 0.02em;
}
.pillar-body h3 small {
  display: block; font-family: var(--f-num); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--blue); margin-top: 7px;
}
.pillar--green .pillar-body h3 small { color: var(--green-d); }
.pillar-body p { margin-top: 14px; font-size: 13.6px; line-height: 2.05; color: var(--ink-2); }
.pillar-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.pillar-tags span {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em;
  padding: 4px 10px; background: var(--blue-soft); color: var(--blue-d);
}
.pillar--green .pillar-tags span { background: var(--green-soft); color: var(--green-d); }
.pillar-fig { overflow: hidden; background: var(--paper-3); }
.pillar-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--e-out); }
.pillar:hover .pillar-fig img { transform: scale(1.045); }
.pillar-link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--blue);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.pillar--green .pillar-link { color: var(--green-d); }
.pillar-link .ar { transition: transform .35s var(--e-out); }
.pillar-link:hover .ar { transform: translateX(4px); }

/* ============================================================
   地域への取り組み（事業とは別立て。緑＝再エネ・地域貢献の色）
   ============================================================ */
.sec-head--green .bar { background: var(--green); }
.sec-head--green h2 small { color: var(--green-d); }
.sec--navy .sec-head--green .bar { background: var(--green-l); }
.sec--navy .sec-head--green h2 small { color: var(--green-l); }

.contrib { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.contrib > article {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green);
  display: flex; flex-direction: column;
}
.contrib figure { overflow: hidden; background: var(--paper-3); }
.contrib figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.1s var(--e-out); }
.contrib > article:hover figure img { transform: scale(1.045); }
.contrib-body { padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; flex: 1; }
.contrib-body .n {
  font-family: var(--f-num); font-weight: 700; font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--green-d); background: var(--green-soft); padding: 3px 10px; align-self: flex-start;
}
.contrib-body h3 { margin-top: 13px; font-family: var(--f-head); font-weight: 900; font-size: clamp(17px, 2.2vw, 22px); line-height: 1.45; }
.contrib-body h3 small { display: block; font-family: var(--f-num); font-weight: 700; font-size: 10.5px; letter-spacing: 0.18em; color: var(--green-d); margin-top: 7px; }
.contrib-body > p { margin-top: 14px; font-size: 13.4px; line-height: 2.05; color: var(--ink-2); }
.contrib-body .pillar-link { margin-top: auto; padding-top: 20px; align-self: flex-start; }
@media (max-width: 900px) { .contrib { grid-template-columns: 1fr; } }

/* ============================================================
   工事種目一覧（工事経歴書・見積明細の密度）
   ============================================================ */
.spec { background: var(--white); border: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 210px 1fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  padding: 17px 20px; background: var(--paper-2);
  font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  border-right: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
}
.spec-row dt::before { content: ""; width: 3px; height: 15px; background: var(--blue); flex-shrink: 0; }
.spec-row--green dt::before { background: var(--green); }
.spec-row dd { padding: 17px 22px; font-size: 13.4px; line-height: 1.95; color: var(--ink-2); }
.spec-row dd b { color: var(--ink); font-weight: 700; }

/* ---------- 数字バンド（有資格者台帳） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.stat {
  padding: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 26px);
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.stat dt { font-size: 11.5px; letter-spacing: 0.1em; color: rgba(238,241,244,.66); }
.stat dd { font-family: var(--f-num); font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin-top: 10px; }
.stat dd .u { font-size: 0.42em; margin-left: 5px; letter-spacing: 0.04em; }
.stat .memo { display: block; font-family: var(--f-body); font-weight: 400; font-size: 11.5px; letter-spacing: 0.04em; color: rgba(238,241,244,.52); margin-top: 9px; line-height: 1.7; }

/* ---------- 資格一覧（台帳） ---------- */
.qual-group { border-top: 1px solid var(--line); padding: 22px 0 24px; }
.qual-group:first-child { border-top: 2px solid var(--ink); }
.qual-group > h3 {
  font-family: var(--f-head); font-weight: 900; font-size: 15px; letter-spacing: 0.05em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.qual-group > h3::before { content: ""; width: 3px; height: 15px; background: var(--blue); }
.qual-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  background: var(--white); border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.qual-list li {
  background: var(--white); padding: 11px 15px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; line-height: 1.6;
}
.qual-list li .c { flex-shrink: 0; font-family: var(--f-num); font-weight: 700; font-size: 16px; color: var(--blue); }
.qual-list li .c small { font-family: var(--f-body); font-weight: 500; font-size: 11px; color: var(--ink-3); margin-left: 2px; }

/* ---------- 工事経歴テーブル ---------- */
.works-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.works-table { min-width: 720px; font-size: 13.2px; }
.works-table thead th {
  background: var(--navy); color: #fff; text-align: left; padding: 13px 16px;
  font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; white-space: nowrap;
}
.works-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.75; }
.works-table tbody tr:last-child td { border-bottom: 0; }
.works-table tbody tr:nth-child(even) { background: rgba(28, 92, 150, 0.035); }
.works-table .c-date { font-family: var(--f-num); font-weight: 700; white-space: nowrap; color: var(--blue-d); }
.works-table .c-name { font-weight: 500; color: var(--ink); }
.works-table .c-client, .works-table .c-area { color: var(--ink-2); white-space: nowrap; }

/* ---------- 写真グリッド ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.photo-card { background: var(--white); border: 1px solid var(--line); }
.photo-card .ph { overflow: hidden; background: var(--paper-3); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--e-out); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card .cap { padding: 13px 15px 15px; }
.photo-card .cap .k { display: inline-block; font-family: var(--f-num); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; color: #fff; background: var(--blue); padding: 2px 8px; }
.photo-card .cap .k--green { background: var(--green); }
.photo-card .cap h3 { margin-top: 9px; font-family: var(--f-head); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.photo-card .cap p { margin-top: 6px; font-size: 12.3px; line-height: 1.8; color: var(--ink-2); }

/* 帯状の写真ストリップ */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px; }
.strip figure { position: relative; overflow: hidden; background: var(--navy); }
.strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.1s var(--e-out), opacity .5s; }
.strip figure:hover img { transform: scale(1.06); }
.strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10,18,24,.85));
  color: #fff; font-size: 11.8px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.6;
}

/* ============================================================
   事業内容ページ：大ブロック
   ============================================================ */
.svc-block { border-top: 1px solid var(--line); padding: clamp(48px, 7vh, 88px) 0; }
.svc-block:first-of-type { border-top: 0; }
.svc-head { display: grid; grid-template-columns: 110px 1fr; gap: clamp(16px, 2.4vw, 34px); align-items: start; }
.svc-head .no { font-family: var(--f-num); font-weight: 700; font-size: clamp(44px, 6vw, 74px); line-height: .9; color: var(--blue); }
.svc-block--green .svc-head .no { color: var(--green); }
.svc-head h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(23px, 3.3vw, 36px); line-height: 1.4; }
.svc-head h2 small { display: block; font-family: var(--f-num); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); margin-top: 8px; }
.svc-head .lead { margin-top: 18px; font-size: 14.2px; line-height: 2.1; color: var(--ink-2); max-width: 68ch; }
.svc-cols { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.svc-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-figs figure { background: var(--paper-3); overflow: hidden; }
.svc-figs figure.wide { grid-column: 1 / -1; }
.svc-figs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-figs figure.wide img { aspect-ratio: 16 / 9; }
.svc-figs figcaption { font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); padding: 6px 2px 0; }

/* 箇条（工事メニュー） */
.menu-list { border-top: 2px solid var(--ink); }
.menu-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13.6px; line-height: 1.85;
}
.menu-list li .mk { font-family: var(--f-num); font-weight: 700; font-size: 12px; color: var(--blue); padding-top: 3px; }
.svc-block--green .menu-list li .mk { color: var(--green); }
.menu-list li b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 14.4px; }
.menu-list li span { color: var(--ink-2); font-size: 12.8px; }

/* 認定証カード */
.cert {
  background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green);
  padding: clamp(22px, 3vw, 32px);
}
.cert h3 { font-family: var(--f-head); font-weight: 900; font-size: 17px; letter-spacing: 0.03em; }
.cert .no { display: inline-block; font-family: var(--f-num); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; color: var(--green-d); background: var(--green-soft); padding: 3px 10px; margin-bottom: 12px; }
.cert dl { margin-top: 18px; border-top: 1px solid var(--line); }
.cert dl div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.cert dt { padding: 11px 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.cert dd { padding: 11px 0; font-size: 13.2px; line-height: 1.85; }

/* ---------- 施工の流れ ---------- */
.flow { counter-reset: st; border-top: 2px solid var(--ink); }
.flow li {
  counter-increment: st; display: grid; grid-template-columns: 92px 1fr;
  gap: clamp(14px, 2vw, 30px); padding: 24px 0; border-bottom: 1px solid var(--line);
}
.flow li::before {
  content: "STEP " counter(st, decimal-leading-zero);
  font-family: var(--f-num); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; color: var(--blue);
}
.flow h3 { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.flow p { margin-top: 8px; font-size: 13.3px; line-height: 2; color: var(--ink-2); }

/* ---------- 沿革 ---------- */
.hist { border-top: 2px solid var(--ink); }
.hist li {
  display: grid; grid-template-columns: 140px 1fr; gap: clamp(14px, 2.4vw, 34px);
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.hist .y { font-family: var(--f-num); font-weight: 700; font-size: 17px; color: var(--blue-d); line-height: 1.5; }
.hist .y small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
.hist p { font-size: 13.6px; line-height: 2; }
.hist li.is-mark p { font-weight: 700; }
.hist li.is-mark .y { color: var(--green-d); }

/* ---------- エリア ---------- */

/* ---------- お知らせ ---------- */
.news-list { border-top: 2px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a, .news-list .row {
  display: grid; grid-template-columns: 116px 96px 1fr; gap: 16px; align-items: baseline;
  padding: 19px 4px; transition: background .3s var(--e-soft);
}
.news-list a:hover { background: var(--blue-soft); }
.news-list .d { font-family: var(--f-num); font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.news-list .t {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-align: center;
  padding: 3px 0; background: var(--paper-3); color: var(--ink-2);
}
.news-list .t--w { background: var(--blue); color: #fff; }
.news-list .t--g { background: var(--green); color: #fff; }
.news-list .h { font-size: 13.8px; line-height: 1.75; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; opacity: .2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-inner { position: relative; z-index: 2; padding: clamp(58px, 8vh, 96px) 0; text-align: center; }
.cta h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(21px, 3.2vw, 34px); line-height: 1.55; }
.cta p { margin-top: 18px; font-size: 14px; line-height: 2.05; color: rgba(238,241,244,.8); }
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- 下層ページヘッダ ---------- */
.page-head { position: relative; padding: calc(var(--head-h) + clamp(48px, 8vh, 92px)) 0 clamp(40px, 7vh, 76px); background: var(--navy); color: #fff; overflow: hidden; }
.page-head-bg { position: absolute; inset: 0; opacity: .3; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(90deg, var(--green) 0 33.3%, var(--blue) 33.3% 66.6%, #fff 66.6% 100%); }
.page-head .container { position: relative; z-index: 2; }
.page-head h1 { font-family: var(--f-head); font-weight: 900; font-size: clamp(26px, 4.4vw, 46px); letter-spacing: 0.03em; line-height: 1.35; }
.page-head h1 small { display: block; font-family: var(--f-num); font-weight: 700; font-size: 11.5px; letter-spacing: 0.2em; color: var(--blue-l); margin-top: 10px; }
.page-head .lead { margin-top: 18px; max-width: 62ch; font-size: 14px; line-height: 2.05; color: rgba(238,241,244,.82); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: rgba(238,241,244,.6); margin-bottom: 18px; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- 情報テーブル ---------- */
.info-table { border-top: 2px solid var(--ink); }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table th {
  width: 210px; text-align: left; vertical-align: top; padding: 18px 20px 18px 0;
  font-family: var(--f-head); font-weight: 700; font-size: 13.5px; letter-spacing: 0.04em;
}
.info-table td { padding: 18px 0; font-size: 13.6px; line-height: 1.95; }
.info-table td .memo { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.ask { color: #c0392b; font-weight: 700; font-size: 12.5px; }

/* ---------- 代表挨拶 ---------- */
.greet { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 60px); align-items: start; }
.greet p { font-size: 14.2px; line-height: 2.2; }
.greet p + p { margin-top: 1.4em; }
.greet .sign { margin-top: 34px; display: flex; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.greet .sign .r { font-size: 12px; color: var(--ink-2); }
.greet .sign .n { font-family: var(--f-head); font-weight: 900; font-size: 19px; letter-spacing: 0.08em; }
.greet-fig figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.7; }

/* ---------- 約束リスト ---------- */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.promise > div { background: var(--white); padding: clamp(22px, 3vw, 30px); }
.promise .n { font-family: var(--f-num); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; color: var(--blue); }
.promise h3 { margin-top: 10px; font-family: var(--f-head); font-weight: 900; font-size: 16.5px; line-height: 1.55; }
.promise p { margin-top: 12px; font-size: 13px; line-height: 2; color: var(--ink-2); }

/* ---------- 採用 ---------- */
.job-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 34px; }
.job-head > div { background: var(--white); padding: clamp(20px, 3vw, 30px); }
.job-head .k { font-family: var(--f-num); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--blue); }
.job-head h3 { margin-top: 9px; font-family: var(--f-head); font-weight: 900; font-size: clamp(17px, 2.2vw, 22px); }
.job-head .v { margin-top: 12px; font-family: var(--f-num); font-weight: 700; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.3; }
.job-head .v small { font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }
.job-head p { margin-top: 8px; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }

/* 募集職種カードに写真を添える。中身の量が違っても高さを揃える */
.job-head > div { display: flex; flex-direction: column; }
.job-fig { margin: 0 0 18px; overflow: hidden; background: var(--paper-3); }
.job-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.1s var(--e-out); }
.job-head > div:hover .job-fig img { transform: scale(1.045); }
.job-head .job-foot { margin-top: auto; padding-top: 18px; }

.ladder { counter-reset: ld; border-left: 2px solid var(--blue); padding-left: clamp(18px, 2.6vw, 30px); margin-left: 8px; }
.ladder li { counter-increment: ld; position: relative; padding: 0 0 26px; }
.ladder li:last-child { padding-bottom: 0; }
.ladder li::before {
  content: counter(ld); position: absolute; left: calc(-1 * clamp(18px, 2.6vw, 30px) - 13px); top: 2px;
  width: 24px; height: 24px; background: var(--blue); color: #fff;
  font-family: var(--f-num); font-weight: 700; font-size: 12px;
  display: grid; place-items: center;
}
.ladder h3 { font-family: var(--f-head); font-weight: 900; font-size: 15.5px; line-height: 1.6; }
.ladder p { margin-top: 7px; font-size: 13px; line-height: 1.95; color: var(--ink-2); }

.want { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 48px); }
.want h2 { font-family: var(--f-head); font-weight: 900; font-size: clamp(18px, 2.6vw, 26px); line-height: 1.6; }
.want p { margin-top: 22px; font-size: 13.4px; line-height: 2.05; color: rgba(238,241,244,.8); }

/* 新3K */
.k3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.k3 > div { background: var(--white); padding: clamp(20px, 3vw, 30px); text-align: center; }
.k3 .n { font-family: var(--f-num); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--green-d); }
.k3 h3 { margin-top: 10px; font-family: var(--f-head); font-weight: 900; font-size: clamp(16px, 2.2vw, 21px); }
.k3 p { margin-top: 10px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); text-align: left; }
/* トップの新3K：バナー＋見出しだけを大きく中央に */
.k3-banner { margin: 0 0 clamp(20px, 3vw, 32px); }
.k3-banner img { width: 100%; height: auto; }
.k3--big > div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(30px, 4.6vw, 54px) 16px; }
.k3--big h3 { margin-top: 12px; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: .06em; line-height: 1.3; }

.k3 p.k3-word {
  margin-top: 0; text-align: center; color: var(--ink);
  font-family: var(--f-head); font-weight: 900;
  font-size: clamp(16px, 2.2vw, 21px); line-height: 1.5; letter-spacing: .08em;
}

/* 新3K に写真を持たせる版 */
.k3--photo > div { padding: 0; text-align: left; display: flex; flex-direction: column; }
.k3--photo figure { margin: 0; overflow: hidden; background: var(--paper-3); }
.k3--photo figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--e-out); }
.k3--photo > div:hover figure img { transform: scale(1.05); }
.k3--photo .k3-txt { padding: clamp(18px, 2.4vw, 26px); }
.k3--photo .n { color: var(--green-d); }
.k3--photo h3 { margin-top: 9px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq li { border-bottom: 1px solid var(--line); }
.faq .q {
  width: 100%; text-align: left; display: grid; grid-template-columns: 26px 1fr 22px;
  gap: 14px; align-items: start; padding: 19px 2px;
  font-family: var(--f-head); font-weight: 700; font-size: 14.5px; line-height: 1.7;
}
.faq .q .mk { font-family: var(--f-num); font-weight: 700; color: var(--blue); font-size: 16px; }
.faq .q .ic { position: relative; width: 16px; height: 16px; margin-top: 6px; justify-self: end; }
.faq .q .ic::before, .faq .q .ic::after { content: ""; position: absolute; background: var(--ink); transition: transform .35s var(--e-out); }
.faq .q .ic::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq .q .ic::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq .q[aria-expanded="true"] .ic::after { transform: scaleY(0); }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--e-out); }
.faq .a > div { overflow: hidden; }
.faq .q[aria-expanded="true"] + .a { grid-template-rows: 1fr; }
.faq .a p { padding: 0 40px 22px 40px; font-size: 13.3px; line-height: 2.05; color: var(--ink-2); }

/* ---------- お問い合わせ ---------- */
.form-grid { display: grid; gap: 22px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.04em; }
.field .req { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; background: var(--blue); color: #fff; padding: 2px 7px; margin-left: 8px; vertical-align: 2px; }
.field .opt { display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; background: var(--paper-3); color: var(--ink-2); padding: 2px 7px; margin-left: 8px; vertical-align: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 14.5px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 0;
  transition: border-color .3s var(--e-soft), box-shadow .3s var(--e-soft);
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.9; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field .err { display: none; margin-top: 7px; font-size: 12px; color: #c0392b; font-weight: 700; }
.field.is-err input, .field.is-err textarea { border-color: #c0392b; }
.field.is-err .err { display: block; }
.field .hint { margin-top: 7px; font-size: 11.8px; color: var(--ink-3); line-height: 1.7; }
/* ラジオ・チェックボックスは幅100%の対象外（テキストが右に飛ぶため） */
.field input[type="radio"],
.field input[type="checkbox"] { width: auto; flex-shrink: 0; padding: 0; accent-color: var(--blue); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 11px 16px; background: var(--white); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: border-color .25s var(--e-soft), background .25s var(--e-soft);
}
.radio-row label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.85; }
.consent a { text-decoration: underline; }
.form-done { display: none; background: var(--white); border-left: 5px solid var(--green); padding: clamp(24px, 3.4vw, 38px); }
.form-done.is-on { display: block; }
.form-done h2 { font-family: var(--f-head); font-weight: 900; font-size: 21px; }
.form-done p { margin-top: 14px; font-size: 13.6px; line-height: 2.05; color: var(--ink-2); }

/* ---------- 公式LINE窓口（フォームの代替パターン） ---------- */
.line-box {
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green);
  padding: clamp(26px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 260px; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.line-box .n {
  font-family: var(--f-num); font-weight: 700; font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--green-d); background: var(--green-soft); padding: 4px 11px; display: inline-block;
}
.line-box h2 {
  margin-top: 16px; font-family: var(--f-head); font-weight: 900;
  font-size: clamp(21px, 3.2vw, 33px); line-height: 1.5; letter-spacing: 0.02em;
}
.line-box h2 em { font-style: normal; color: var(--green-d); }
.line-box > div > p { margin-top: 18px; font-size: 13.8px; line-height: 2.1; color: var(--ink-2); }
.line-steps { margin-top: 22px; border-top: 1px solid var(--line); }
.line-steps li {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.2px; line-height: 1.85;
}
.line-steps li .mk { font-family: var(--f-num); font-weight: 700; font-size: 12px; color: var(--green-d); }

.line-qr { text-align: center; }
.line-qr img {
  width: 100%; max-width: 230px; margin-inline: auto;
  border: 1px solid var(--line); background: #fff; padding: 10px;
}
.line-qr figcaption { margin-top: 12px; font-size: 12px; line-height: 1.8; color: var(--ink-3); }
.btn--line { background: var(--green); border-color: var(--green); color: #fff; }
.btn--line:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
@media (max-width: 900px) {
  .line-box { grid-template-columns: 1fr; text-align: left; }
  .line-qr { order: -1; }
}

.contact-side { background: var(--white); border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); }
.contact-side h3 { font-family: var(--f-head); font-weight: 900; font-size: 16px; }
.contact-side .tel { display: block; margin-top: 16px; font-family: var(--f-num); font-weight: 700; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: var(--blue-d); }
.contact-side .memo { font-size: 12px; color: var(--ink-3); line-height: 1.8; margin-top: 6px; }
.contact-side dl { margin-top: 20px; border-top: 1px solid var(--line); }
.contact-side dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-side dt { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; }
.contact-side dd { font-size: 13.2px; line-height: 1.85; margin-top: 3px; }

/* ---------- 地図 ---------- */
.map { border: 1px solid var(--line); background: var(--paper-3); }
.map iframe { display: block; width: 100%; height: clamp(280px, 42vh, 420px); border: 0; filter: grayscale(0.28) contrast(1.03); }

/* ---------- 本文（privacy等） ---------- */
.prose h2 { font-family: var(--f-head); font-weight: 900; font-size: 18px; margin: 40px 0 14px; padding-left: 13px; border-left: 4px solid var(--blue); line-height: 1.6; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 13.8px; line-height: 2.15; }
.prose p + p { margin-top: 1.1em; }
.prose ul, .prose ol { margin: 14px 0 14px 0; }
.prose li { position: relative; padding-left: 20px; font-size: 13.6px; line-height: 2.05; }
.prose li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 6px; height: 6px; background: var(--blue); }
.prose ol { counter-reset: pl; }
.prose ol li { counter-increment: pl; padding-left: 32px; }
.prose ol li::before { content: counter(pl) "."; background: none; font-family: var(--f-num); font-weight: 700; color: var(--blue); left: 0; top: 0; width: auto; height: auto; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: rgba(238,241,244,.76); }
.footer-main { padding: clamp(48px, 7vh, 76px) 0 clamp(30px, 4vh, 44px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 72px); }
.footer-brand img { height: 40px; width: auto; }
.footer-brand .nm { margin-top: 16px; font-family: var(--f-head); font-weight: 900; font-size: 18px; color: #fff; letter-spacing: 0.06em; }
.footer-brand address { margin-top: 14px; font-style: normal; font-size: 12.8px; line-height: 2; }
.footer-brand .tel { display: inline-block; margin-top: 12px; font-family: var(--f-num); font-weight: 700; font-size: 26px; color: #fff; line-height: 1.2; }
.footer-brand .lic { margin-top: 14px; font-size: 11.5px; line-height: 1.9; color: rgba(238,241,244,.55); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 11.5px; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--head-h) + 40px) var(--pad-x) 60px; }
.nf .code { font-family: var(--f-num); font-weight: 700; font-size: clamp(72px, 16vw, 168px); line-height: .9; color: var(--paper-3); }
.nf h1 { margin-top: 18px; font-family: var(--f-head); font-weight: 900; font-size: clamp(20px, 3.2vw, 30px); }
.nf p { margin-top: 16px; font-size: 13.6px; line-height: 2.05; color: var(--ink-2); }
.nf .wire { width: 120px; margin: 26px auto 0; }

/* ============================================================
   モーション
   ・動かすのは transform / opacity / clip-path のみ（レイアウトを触らない）
   ・イージングは --e-out（easeOutQuint）を基本にする
   ・JS が無効な環境では何も隠さない（.js ゲート）
   ============================================================ */

/* --- 基本の出現 --- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--e-soft), transform .95s var(--e-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* --- スタガー：親はそのまま、子を1つずつ遅らせて出す --------------------
   JS が [data-stagger] の子に transition-delay を振る。子側に transition が
   無いと遅延は効かないので、ここで子に出現の動きを持たせる。 */
.js .rv[data-stagger] { opacity: 1; transform: none; }
.js .rv[data-stagger] > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--e-soft), transform .9s var(--e-out);
}
.js .rv[data-stagger].is-in > * { opacity: 1; transform: none; }

/* --- 見出しのアクセント線は左から引かれる --- */
.js .sec-head.rv .bar { transform: scaleX(0); transform-origin: left; transition: transform .75s var(--e-out) .12s; }
.js .sec-head.rv.is-in .bar { transform: none; }

/* --- 写真は「窓が開く」ように出す（画像自体は動かさない） --- */
.js .pillar.rv .pillar-fig,
.js .svc-block.rv .svc-figs figure,
.js .two-col.rv .svc-figs figure,
.js .greet.rv .greet-fig {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.05s var(--e-out) .08s;
}
.js .pillar.rv.is-in .pillar-fig,
.js .svc-block.rv.is-in .svc-figs figure,
.js .two-col.rv.is-in .svc-figs figure,
.js .greet.rv.is-in .greet-fig { clip-path: inset(0 0 0 0); }

/* 写真ストリップは1枚ずつ開く */
.js .strip figure { clip-path: inset(0 0 100% 0); transition: clip-path .95s var(--e-out); }
.js .strip figure.is-in { clip-path: inset(0 0 0 0); }

/* --- ヒーローの登場 --- */
.js .hero-photo picture { display: block; position: absolute; inset: 0; transform: scale(1.07); transition: transform 1.9s var(--e-out); }
.js body.is-ready .hero-photo picture, .js.is-ready .hero-photo picture { transform: none; }
.hero-photo img { position: absolute; top: -6%; left: 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 42%; }

.hero h1 .hl { display: block; overflow: hidden; padding: 0.07em 0.14em; margin: -0.07em -0.14em; }
.js .hero h1 .hl > span { display: block; transform: translateY(112%); transition: transform 1.1s var(--e-out); }
.js .hero-acts, .js .hero-bar, .js .scroll-hint {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--e-soft), transform 1s var(--e-out);
}
.is-ready .hero h1 .hl:nth-child(1) > span { transform: none; transition-delay: .20s; }
.is-ready .hero h1 .hl:nth-child(2) > span { transform: none; transition-delay: .32s; }
.is-ready .hero-acts    { opacity: 1; transform: none; transition-delay: .62s; }
.is-ready .hero-bar     { opacity: 1; transform: none; transition-delay: .74s; }
.is-ready .scroll-hint  { opacity: 1; transform: none; transition-delay: .90s; }

/* --- ヘッダー下の3色帯を、読み進みのインジケーターにする --- */
.site-header::after { opacity: .3; }
.site-header .prog {
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--blue) 33.3% 66.6%, var(--ink) 66.6% 100%);
  clip-path: inset(0 100% 0 0);
}

/* --- モバイルメニューは項目が順に降りてくる --- */
.js .mnav li { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--e-soft), transform .55s var(--e-out); }
.js .mnav.is-open li { opacity: 1; transform: none; }
.mnav.is-open li:nth-child(1) { transition-delay: .10s; }
.mnav.is-open li:nth-child(2) { transition-delay: .15s; }
.mnav.is-open li:nth-child(3) { transition-delay: .20s; }
.mnav.is-open li:nth-child(4) { transition-delay: .25s; }
.mnav.is-open li:nth-child(5) { transition-delay: .30s; }
.mnav.is-open li:nth-child(6) { transition-delay: .35s; }
.mnav.is-open li:nth-child(7) { transition-delay: .40s; }

/* --- ページ先頭へ戻る --- */
.to-top {
  position: fixed; right: clamp(14px, 2.2vw, 26px); bottom: clamp(14px, 2.2vw, 26px); z-index: var(--z-totop);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.2);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s var(--e-soft), transform .5s var(--e-out), background .3s var(--e-soft);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.lb-open .to-top { opacity: 0; pointer-events: none; }
.to-top:hover { background: var(--blue); }
.to-top::before {
  content: ""; width: 11px; height: 11px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

/* --- 写真の拡大表示（ライトボックス） --- */
.js .photo-card .ph, .js .svc-figs figure, .js .strip figure, .js .pillar-fig { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: var(--z-lightbox); display: none; }
.lb.is-on { display: block; }
.lb-bg { position: absolute; inset: 0; background: rgba(8,14,20,.94); opacity: 0; transition: opacity .35s var(--e-soft); }
.lb.is-shown .lb-bg { opacity: 1; }
.lb-stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: clamp(52px, 8vh, 88px) clamp(52px, 8vw, 96px);
}
.lb-fig { max-width: 100%; opacity: 0; transform: scale(.975); transition: opacity .45s var(--e-soft), transform .55s var(--e-out); }
.lb.is-shown .lb-fig { opacity: 1; transform: none; }
.lb-fig img { max-width: 100%; max-height: 74vh; width: auto; margin-inline: auto; }
.lb-cap {
  margin-top: 15px; text-align: center; color: rgba(255,255,255,.86);
  font-size: 13px; line-height: 1.8; letter-spacing: .04em;
}
.lb-cap .n { display: block; font-family: var(--f-num); font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.5); margin-top: 6px; }
.lb-btn {
  position: absolute; z-index: 3; width: 52px; height: 52px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  transition: background .25s var(--e-soft);
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: clamp(12px, 2.4vh, 26px); right: clamp(12px, 2.4vw, 26px); font-size: 22px; line-height: 1; }
.lb-prev { left: clamp(8px, 1.6vw, 22px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(8px, 1.6vw, 22px); top: 50%; transform: translateY(-50%); }
.lb-prev::before, .lb-next::before {
  content: ""; width: 12px; height: 12px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor;
}
.lb-prev::before { transform: rotate(-45deg) translate(2px, 2px); }
.lb-next::before { transform: rotate(135deg) translate(2px, 2px); }
@media (max-width: 640px) {
  .lb-stage { padding: 68px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
}

/* --- 数字のカウントアップ中は等幅で桁を揺らさない --- */
.stat dd { font-variant-numeric: tabular-nums; }

/* --- 工事経歴の行 --- */
.works-table tbody tr { transition: background .25s var(--e-soft); }
.works-table tbody tr:hover { background: var(--blue-soft); }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1080px) {
  .gnav, .head-cta { display: none; }
  .menu-btn { display: flex; }
  .greet { grid-template-columns: 1fr; }
  .greet-fig { max-width: 420px; }
}
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  /* 文字が全幅に載るため、横グラデーションをやめて縦だけで可読性を確保する */
  .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(12,22,30,.26) 0%, rgba(12,22,30,.10) 22%,
      rgba(12,22,30,.30) 42%, rgba(12,22,30,.46) 62%, rgba(10,18,24,.74) 100%);
  }
  /* 情報バーを絶対配置から通常フローへ。ボタンと重なる事故をなくす */
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-body { padding-bottom: clamp(26px, 4.5vh, 46px); }
  .hero-bar { position: relative; z-index: 3; width: 100%; }
  .hero-bar dd.jp { font-size: 12px; line-height: 1.5; }
  .hero-bar-inner { grid-template-columns: 1fr 1fr; }
  .hero-bar dl { padding: 12px 14px; border-left: 1px solid rgba(255,255,255,.14); }
  .hero-bar dl:first-child { padding-left: 14px; border-left: 0; }
  .hero-bar dl:nth-child(3) { border-left: 0; padding-left: 14px; }
  .hero-bar dl:nth-child(1), .hero-bar dl:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .scroll-hint { display: none; }
  .pillar { grid-template-columns: 62px 1fr; }
  .pillar-fig { grid-column: 1 / -1; margin-top: 6px; }
  .pillar-no { font-size: 34px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-cols { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row dt { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-main { grid-template-columns: 1fr; }
  .job-head { grid-template-columns: 1fr; }
  .k3 { grid-template-columns: 1fr; }
  .cert dl div { grid-template-columns: 96px 1fr; }
}
@media (max-width: 640px) {
  .svc-head { grid-template-columns: 1fr; gap: 6px; }
  .svc-figs { grid-template-columns: 1fr; }
  .hist li { grid-template-columns: 1fr; gap: 4px; }
  .hist .y small { display: inline; margin-left: 8px; }
  .info-table th { display: block; width: 100%; padding: 16px 0 4px; }
  .info-table td { display: block; padding: 0 0 16px; }
  .news-list a, .news-list .row { grid-template-columns: 92px 84px; row-gap: 8px; }
  .news-list .h { grid-column: 1 / -1; }
  .flow li { grid-template-columns: 1fr; gap: 6px; }
  .faq .a p { padding: 0 0 22px 40px; }
  .radio-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .radio-row label { justify-content: flex-start; }
  .qual-list { grid-template-columns: 1fr; }
}

/* ---------- 絞り込みバー ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar button {
  padding: 9px 16px; background: var(--white); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  transition: background .25s var(--e-soft), border-color .25s var(--e-soft), color .25s var(--e-soft);
}
.filter-bar button:hover { border-color: var(--blue); color: var(--blue); }
.filter-bar button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* ---------- 2カラム（下層の汎用） ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.two-col--wide { grid-template-columns: 1fr 1fr; }
.two-col--stretch { align-items: stretch; }
@media (max-width: 900px) { .two-col, .two-col--wide { grid-template-columns: 1fr; } }

/* ---------- 4分割グリッド（欲しい人材） ---------- */
.k3--4 { grid-template-columns: repeat(4, 1fr); }
.k3--4 > div { padding: clamp(18px, 2.4vw, 26px) 12px; }
@media (max-width: 900px) { .k3--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 事実カード（実績の要約） ---------- */
.factlist { border-top: 1px solid var(--line); margin-top: 24px; }
.factlist div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line); }
.factlist dt { padding: 11px 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.factlist dd { padding: 11px 0; font-size: 13.2px; line-height: 1.85; }

/* ---------- 見出し（下層内の小見出し） ---------- */
.h-lead { font-family: var(--f-head); font-weight: 900; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.5; margin-top: 10px; }
.eyebrow-num { font-family: var(--f-num); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.note-s { font-size: 12px; color: var(--ink-3); line-height: 1.9; }
.note-m { font-size: 13.4px; line-height: 2.05; color: var(--ink-2); }
.mt-l { margin-top: 34px; } .mt-m { margin-top: 26px; } .mt-s { margin-top: 16px; }

/* 濃色セクション内のラダー */
.sec--navy .ladder { border-left-color: var(--blue-l); }
.sec--navy .ladder h3 { color: #fff; }
.sec--navy .ladder p { color: rgba(238,241,244,.75); }

/* お知らせ本文 */
.news-list .h b { font-weight: 700; }
.news-list .h .sub { display: block; margin-top: 5px; font-size: 12.8px; color: var(--ink-2); line-height: 1.85; }

/* 注記ボックス */
.callout { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--blue); padding: clamp(20px, 3vw, 28px); }
.callout p { font-size: 13.4px; line-height: 2; color: var(--ink-2); }
.callout b { color: var(--ink); }

/* ============================================================
   ユーティリティ
   HTML側に style="" を書かないための最小限の道具。
   増やしすぎないこと（コンポーネントで解決できるならそちらが先）
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 34px; }
.mb-0 { margin-bottom: 0; }
.mb-m { margin-bottom: 22px; }
.mb-l { margin-bottom: clamp(28px, 4vw, 44px); }

.link-u { text-decoration: underline; }
.link-blue { color: var(--blue); text-decoration: underline; }
.link-strong { font-weight: 700; text-decoration: underline; }
.tel-num { font-family: var(--f-num); font-weight: 700; font-size: 17px; }

.btn-row--center { justify-content: center; }
.btn--sm { padding: 12px 20px; font-size: 13px; }

.note-on-navy { font-size: 12.5px; line-height: 1.9; color: rgba(238, 241, 244, .74); }
.note-on-navy a { color: #fff; text-decoration: underline; }

/* ---------- コンポーネント側の細部（旧インラインstyleの受け皿） ---------- */
.hero-bar dd .u-unit { font-size: .55em; }
.h-lead { margin-top: 10px; }
.h-lead.mt-0 { margin-top: 0; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
.consent > input { margin-top: 5px; }

.job-head .job-type { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--blue); }
.job-head b { font-weight: 700; color: var(--ink); }

/* フッターのサイトマップ（見出しレベルを崩さないよう h3 をやめた） */
.footer-nav-t { font-family: var(--f-num); font-weight: 700; font-size: 11px; letter-spacing: .18em; color: var(--blue-l); margin-bottom: 15px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 44px); }
.footer-links li { border-bottom: 1px solid var(--line-dark); }
.footer-links a { display: block; padding: 10px 0; font-size: 13px; transition: color .25s var(--e-soft), padding-left .3s var(--e-out); }
.footer-links a:hover { color: #fff; padding-left: 6px; }

/* ============================================================
   印刷（会社概要・募集要項を紙で配る場面が実際にある）
   ============================================================ */
@media print {
  .site-header, .mnav, .to-top, .lb, .scroll-hint, .cta, .skip-link,
  .hero-photo, .hero-grain, .page-head-bg, .strip, .filter-bar { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  .hero { min-height: 0; padding-top: 0; }
  .hero-body { padding: 0 0 12mm; color: #000; }
  .hero h1 { color: #000 !important; text-shadow: none !important; }
  .sec, .svc-block, .page-head { padding: 6mm 0 !important; background: #fff !important; color: #000 !important; }
  .sec--navy, .page-head, .want, .site-footer { background: #fff !important; color: #000 !important; }
  .sec--navy *, .page-head *, .want *, .site-footer * { color: #000 !important; }
  .rv, .js .rv, .js .rv[data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .pillar-fig, .svc-figs figure, .greet-fig { clip-path: none !important; break-inside: avoid; }
  .sec-head h2, .svc-head h2, h1 { break-after: avoid; }
  .works-table-wrap { overflow: visible !important; }
  .works-table { min-width: 0; font-size: 9pt; }
  .faq .a { grid-template-rows: 1fr !important; }
  a[href^="http"]::after, a[href^="tel"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .wire, .site-header .prog { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .rv, .js .rv, .js .rv[data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .js .pillar.rv .pillar-fig, .js .svc-block.rv .svc-figs figure,
  .js .two-col.rv .svc-figs figure, .js .greet.rv .greet-fig,
  .js .strip figure { clip-path: none !important; }
  .js .hero-photo picture { transform: none !important; }
  .js .hero h1 .hl > span { transform: none !important; }
  .js .hero-acts, .js .hero-bar, .js .scroll-hint, .js .mnav li { opacity: 1 !important; transform: none !important; }
  .hero-photo img { transform: none !important; }
}
