/* =========================================================
   株式会社横塚建設  site.css
   世界観：写真が主役の端正な型。そろえた色味の現場写真、明朝の縦組み、細い英字の大見出し。
   面は白・淡い灰緑・深い青緑の3つ。差し色は重機の緑に近い青緑だけ。
   色は :root の変数だけを使う。例外は SDGs の目標の色だけ（sdgs:begin〜sdgs:end）。
   tools/build.py がこの決めごとを検査する。
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f3f5f3;
  --paper-3: #e6ebe8;
  --ink: #15201d;
  --ink-2: #48534f;
  --ink-3: #66716e;          /* 白地で 5.0:1 */
  --line: rgba(21, 32, 29, 0.13);
  --line-2: rgba(21, 32, 29, 0.32);
  --deep: #12332a;          /* 深い面。2026-10-09 本人「この緑ださい・かっこよくていま風の緑に」→ 青みを抜いた深緑 */
  --deep-2: #1b4337;
  --on-deep: #eef3f1;
  --on-deep-2: rgba(238, 243, 241, 0.76);
  --on-deep-line: rgba(238, 243, 241, 0.22);
  --green: #1a6b4d;          /* 主の緑（フォレスト）。白地で 6.4:1。前は青みの強い #087a67 */
  --green-deep: #12513a;
  --accent: #c8f031;         /* 差し色＝安全ベストの蛍光の黄緑。深い面と緑の面の上・強調のボタンだけ。白地の文字には使わない */
  --on-accent: #12332a;
  --green-pale: #e8f1eb;
  --white: #ffffff;
  --veil: rgba(6, 14, 12, 0.5);
  --veil-2: rgba(6, 14, 12, 0.22);
  --veil-0: rgba(6, 14, 12, 0);
  --alert: #b3261e;          /* 入力の誤りだけに使う（白地で 6.5:1） */

  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-min: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-en: "Jost", "Zen Kaku Gothic New", sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5.2vw, 80px);
  --sec: clamp(96px, 12vw, 176px);
  --header-h: 64px;
  --bar-h: 64px;
  --tab-w: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
}

/* ---------- 土台 ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

/* hidden を付けたものは、display の指定があっても必ず消す（送信後のフォームが残った） */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-color: var(--ink-3) var(--paper-2);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.06em;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) {
  body { font-size: 16px; }
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
p { margin: 0 0 1.2em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.i {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ib { display: inline-block; }
.nw { white-space: nowrap; }
.num {
  font-family: var(--font-en);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px; top: -120px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--deep);
  color: var(--on-deep);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sec { padding: var(--sec) 0; }

/* ---------- 見出しの型：細い英字の大見出し＋日本語の小見出し ---------- */

.shead { margin-bottom: clamp(32px, 4vw, 56px); }
.shead__en {
  display: block;
  font: 300 clamp(48px, 8vw, 112px)/0.92 var(--font-en);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: capitalize;
  overflow-wrap: normal;
  word-break: keep-all;
}
.shead__ja {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(14px, 1.6vw, 22px);
  font: 700 15px/1.5 var(--font-ja);
  letter-spacing: 0.22em;
  color: var(--ink);
}
.shead__ja::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--green);
}
.shead--light .shead__en,
.shead--light .shead__ja { color: var(--on-deep); }
.shead--light .shead__ja::before { background: var(--accent); }

/* 明朝のキャッチ。行は .catch__line で決める（縦組みにもする） */
.catch {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font: 700 clamp(25px, 3.3vw, 44px)/1.65 var(--font-min);
  letter-spacing: 0.1em;
  color: var(--ink);
}
.catch__line { display: block; }
@media (min-width: 1024px) {
  .catch--v {
    writing-mode: vertical-rl;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.75;
    letter-spacing: 0.16em;
    margin: 0;
  }
  .catch--v .catch__line + .catch__line { margin-top: 2.6em; }
}

.prose p { color: var(--ink-2); }
.prose { max-width: 36em; }
.h-sub {
  margin: 0 0 14px;
  font: 700 18px/1.5 var(--font-min);
  letter-spacing: 0.12em;
}
.note { margin-top: 20px; color: var(--ink-3); font-size: 14px; }

/* ---------- ボタン・文中リンク ---------- */

.arrow {
  position: relative;
  flex: none;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease), transform 0.5s var(--ease);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 9px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: rotate(35deg);
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 260px;
  min-height: 60px;
  padding: 14px 26px 14px 28px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font: 700 15px/1.5 var(--font-ja);
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease);
}
.btn .i { margin-right: -8px; }
.btn > span:not(.arrow) { flex: 1; }
@media (hover: hover) {
  .btn:hover { color: var(--white); border-color: var(--ink); }
  .btn:hover::before { transform: scaleX(1); transform-origin: left center; }
  .btn:hover .arrow { width: 44px; }
}
.btn--fill { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--fill::before { background: var(--deep); }
@media (hover: hover) {
  .btn--fill:hover { border-color: var(--deep); }
}
.btn--light { color: var(--on-deep); border-color: var(--on-deep-line); }
.btn--light::before { background: var(--on-deep); }
@media (hover: hover) {
  .btn--light:hover { color: var(--deep); border-color: var(--on-deep); }
}
.more { margin-top: clamp(40px, 5vw, 64px); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.3s;
}
.tlink .i { width: 18px; height: 18px; }
@media (hover: hover) {
  .tlink:hover { border-color: var(--ink); }
  .tlink:hover .arrow { width: 44px; }
}
.tlink--light { border-color: var(--on-deep-line); }
@media (hover: hover) {
  .tlink--light:hover { border-color: var(--on-deep); }
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
/* 写真の上では透明（404 は写真が無いので常に白） */
.js body:not([data-page="404"]) .site-header:not(.is-solid) {
  background: transparent;
  color: var(--white);
  border-bottom-color: transparent;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 44px);
  padding: 0 0 0 var(--gutter);
}
@media (min-width: 1024px) {
  .site-header__inner { padding-right: calc(var(--tab-w) + 28px); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1vw, 14px);
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  white-space: nowrap;
}
/* ロゴのマーク（円の組み文字 CYK・2026-10-10 決定）。色は文字と同じ（写真の上は白・白いヘッダーでは墨）。形は tools/make-logo-v6.py */
.brand__mark {
  flex: none;
  width: auto;
  height: clamp(34px, 3vw, 42px);
}
.brand__text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 3px;
}
.brand__kabu {
  font: 500 14px/1 var(--font-min);
  letter-spacing: 0.16em;
}
.brand__name {
  font: 700 clamp(22px, 2vw, 27px)/1 var(--font-min);
  letter-spacing: 0.16em;
}

.gnav { display: none; }
@media (min-width: 1024px) {
  .gnav { display: block; }
  .gnav ul { list-style: none; display: flex; gap: clamp(20px, 2.4vw, 40px); }
  .gnav a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-decoration: none;
    white-space: nowrap;
  }
  .gnav__en {
    font: 400 11px/1 var(--font-en);
    letter-spacing: 0.22em;
    opacity: 0.72;
  }
  .gnav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s var(--ease);
  }
  .gnav a:hover::after,
  .gnav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
}
.htel { display: none; }
@media (min-width: 1240px) {
  .htel {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    white-space: nowrap;
  }
  .htel__label { font: 400 14px/1 var(--font-en); letter-spacing: 0.16em; opacity: 0.8; }
  .htel__num { font: 400 22px/1 var(--font-en); letter-spacing: 0.06em; }
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: var(--header-h);
  height: var(--header-h);
  padding: 0;
  border: 0;
  background: var(--deep);
  color: var(--on-deep);
  cursor: pointer;
}
.js body:not([data-page="404"]) .site-header:not(.is-solid) .menu-btn { background: transparent; color: var(--white); }
.menu-btn__lines { position: relative; display: block; width: 26px; height: 7px; }
.menu-btn__lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { bottom: 0; }
.menu-btn__lines.is-x i:first-child { top: 3px; transform: rotate(24deg); }
.menu-btn__lines.is-x i:last-child { bottom: 3px; transform: rotate(-24deg); }
.menu-btn__label { font: 400 11px/1 var(--font-en); letter-spacing: 0.2em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
}

/* PC：右端に固定のタブ（採用・お問い合わせ） */
.sidetabs { display: none; }
@media (min-width: 1024px) {
  .sidetabs {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 55;
    display: grid;
    transform: translateY(-50%);
  }
  .sidetab {
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: var(--tab-w);
    padding: 26px 0;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-decoration: none;
    transition: background-color 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .sidetab--contact { background: var(--deep); box-shadow: inset 1px 0 0 var(--on-deep-line), inset 0 1px 0 var(--on-deep-line); }
  .sidetab__en { font: 400 11px/1 var(--font-en); letter-spacing: 0.24em; opacity: 0.78; }
  .sidetab:hover { background: var(--white); padding-block: 26px 34px; }
  .sidetab--contact { color: var(--white); }
  .sidetab--contact:hover { background: var(--deep-2); }
  .sidetab[aria-current="page"] { display: none; }
}

/* メニュー（スマホ・タブレット） */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--deep);
  color: var(--on-deep);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; }
.drawer__inner {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 40px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 48px;
}
.drawer__close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: var(--header-h);
  height: var(--header-h);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-deep);
  cursor: pointer;
}
.drawer__nav { list-style: none; border-top: 1px solid var(--on-deep-line); }
.drawer__nav li { border-bottom: 1px solid var(--on-deep-line); }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font: 700 18px/1.4 var(--font-min);
  letter-spacing: 0.14em;
  text-decoration: none;
}
.drawer__en {
  order: 2;
  font: 400 12px/1 var(--font-en);
  letter-spacing: 0.22em;
  color: var(--accent);
}
.drawer__nav a[aria-current="page"] { color: var(--accent); }
.drawer__contact { display: grid; gap: 12px; }
.drawer__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.drawer__tel .num { font-size: 28px; letter-spacing: 0.06em; }
.drawer__addr { margin: 0; color: var(--on-deep-2); font-size: 14px; line-height: 1.8; }
.drawer .htel__label { font: 400 14px/1 var(--font-en); letter-spacing: 0.16em; color: var(--on-deep-2); }

/* ---------- 開いたときの幕（トップだけ・このタブで初回） ---------- */

.intro { display: none; }
/* 開いたときの幕（2026-10-09 本人「オープニングもう少し工夫して」）：
   地面の線が引かれ、その上に社名が一字ずつ立ち上がる → 幕が地層のように5本の帯に分かれ、上から順に右へ抜けて写真が出る。
   色は白い紙と墨だけ（2026-10-09 本人「オープニングの緑ださい」→ 深緑の幕と黄緑の線をやめた）。
   動きは CSS だけ（JS が届く前から動く）。JS は最後の帯が抜けたら data-intro を外すだけ。 */
[data-intro] .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  pointer-events: auto;
}
.intro__band {
  position: absolute;
  left: 0;
  right: 0;
  height: 20.2%;
  background: var(--paper);
  border-left: 1px solid var(--line-2);
  animation: intro-band 0.85s var(--ease-io) both;
}
.intro__band:nth-child(1) { top: 0; animation-delay: 1.55s; }
.intro__band:nth-child(2) { top: 20%; animation-delay: 1.61s; }
.intro__band:nth-child(3) { top: 40%; animation-delay: 1.67s; }
.intro__band:nth-child(4) { top: 60%; animation-delay: 1.73s; }
.intro__band:nth-child(5) { top: 80%; animation-delay: 1.79s; }
.intro__mark {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--ink);
  animation: intro-out 0.35s ease-in 1.32s both;
}
.intro__logo { width: auto; height: clamp(64px, 7vw, 92px); margin-bottom: 6px; animation: intro-logo 0.7s var(--ease) 0.15s both; }
@keyframes intro-logo { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
.intro__kabu { font: 600 15px/1 var(--font-min); letter-spacing: 0.4em; padding-left: 0.4em; animation: intro-fade 0.8s ease 0.6s both; }
.intro__name { display: flex; overflow: hidden; padding: 4px 0 2px; font: 700 clamp(44px, 5.6vw, 76px)/1.1 var(--font-min); }
.intro__name i { font-style: normal; display: block; padding: 0 0.12em; animation: intro-rise 0.8s var(--ease) both; }
.intro__name i:nth-child(1) { animation-delay: 0.42s; }
.intro__name i:nth-child(2) { animation-delay: 0.5s; }
.intro__name i:nth-child(3) { animation-delay: 0.58s; }
.intro__name i:nth-child(4) { animation-delay: 0.66s; }
.intro__line {
  display: block;
  width: min(320px, 64vw);
  height: 1px;
  background: var(--ink);
  animation: intro-line 0.9s var(--ease-io) 0.1s both;
}
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes intro-band { from { transform: none; } to { transform: translateX(101%); } }

/* ---------- トップ：最初の画面 ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 1200px;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}
@media (max-width: 767px) {
  /* スマホ：上に写真（9:8＝引き）、下は等高線を敷いた深緑の地に社名・説明・何枚目か。--ph は写真の高さ */
  /* 深緑は文字のある所だけ（10/9 本人「緑の幅もっとせばめて」「文字があるとこだけでいい」「縦に狭める」）：
     高さは決めず、写真の高さぶん上を空けて、社名と説明を普通に流す */
  .hero { --ph: 88.9vw; height: auto; min-height: 0; max-height: none; padding: calc(var(--ph) + 4px) 0 36px; }
}
.hero__slides,
.hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-leaving { opacity: 0; z-index: 0; }
.hero__slide picture,
.hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; }
.hero__slide:nth-child(1) img { object-position: 58% 50%; }
.hero__slide:nth-child(2) img { object-position: 56% 60%; }
.hero__slide:nth-child(3) img { object-position: 60% 50%; }
/* スマホは「引き」で見せる：写真（9:8）を上に置き、下は深緑に溶かす。
   画面いっぱいに敷くと、横長の元写真の3割ほどしか写らず、重機が端で切れた
   （10/9 本人「もっと引きのほうがいいんじゃない？」「このくらいの引きにして」＝採用情報の帯の写真「2枚目の写真がはみでてる」）。
   深緑の地には架空の地形の等高線を薄く敷く（まちの足もと＝地面。tools/make-contour.py。本人「緑のところもっとおしゃれに」） */
@media (max-width: 767px) {
  .hero__slide picture {
    position: relative;
    display: block;
    height: var(--ph);
    overflow: hidden;
  }
  /* 写真の下の端だけ深緑になじませる（10/10 本人「写真までいく緑のグラデーション邪魔／もっと薄く」→ 下 36% から 18% へ） */
  .hero__slide picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 82%, var(--deep) 100%);
  }
  .hero__slides::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--ph) - 48px);
    bottom: 0;
    background: url("../img/hero-contour.svg") 30% 0 / 150% auto no-repeat;
    opacity: 0.17;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, black 22%, black 78%, transparent 100%);
  }
  .hero__slide:nth-child(n) img { object-position: 50% 50%; }
  /* スマホは道路の工事の写真（data-m-first）から始める（PC は重機から）。site.js が並びを入れ替える前（と JS が無いとき）も同じ写真を見せる */
  .hero:not([data-slides-ready]) .hero__slide.is-active { opacity: 0; }
  .hero:not([data-slides-ready]) .hero__slide[data-m-first] { opacity: 1; z-index: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-active img,
  .hero__slide.is-leaving img { animation: zoom-out 6.5s linear both; }
}
@keyframes zoom-out { from { transform: scale(1.12); } to { transform: scale(1.02); } }
/* 文字を載せる側だけ暗くする（上：ヘッダー、左下：社名、右：縦のキャッチ） */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--veil-2) 0%, var(--veil-0) 22%),
    linear-gradient(0deg, var(--veil) 0%, var(--veil-0) 46%),
    linear-gradient(270deg, var(--veil-2) 0%, var(--veil-0) 34%);
}

/* スマホは下が深緑の地（写真はそこへ溶ける）なので、下の幕は要らない。縦のキャッチ（右）とヘッダー（上）の側だけ暗くする */
@media (max-width: 767px) {
  .hero::after {
    background:
      linear-gradient(180deg, var(--veil-2) 0%, var(--veil-0) 14%),
      linear-gradient(270deg, var(--veil) 0%, var(--veil-0) 46%);
  }
}
.hero__catch {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 5vh);
  right: calc(var(--gutter) + 6px);
  margin: 0;
  writing-mode: vertical-rl;
  font: 700 clamp(31px, 8.4vw, 38px)/1.7 var(--font-min);
  letter-spacing: 0.18em;
  text-shadow: 0 0 30px var(--veil-2);
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: 3.2em; }
@media (min-width: 768px) {
  .hero__catch { font-size: clamp(40px, 4.6vw, 70px); top: calc(var(--header-h) + 7vh); }
}
@media (min-width: 1024px) {
  .hero__catch { right: calc(var(--tab-w) + var(--gutter) + 24px); }
}

.hero__id {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(36px, 8vh, 96px);
  max-width: 620px;
}
.hero__name {
  font: 700 clamp(25px, 2.5vw, 34px)/1.4 var(--font-min);
  letter-spacing: 0.2em;
}
.hero__lead {
  margin: 16px 0 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--white);
}
@media (min-width: 768px) {
  .hero__lead { font-size: 15px; }
}
.hero__lead-l { display: block; }
.hero__pager {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(36px, 8vh, 96px);
  display: none;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.hero__progress { position: relative; display: block; width: 96px; height: 1px; background: var(--on-deep-line); }
.hero__progress b { position: absolute; inset: 0; background: var(--white); transform-origin: left center; transform: scaleX(0); }
.hero__progress b.is-run { animation: progress var(--slide-ms, 7000ms) linear both; }
@keyframes progress { to { transform: scaleX(1); } }
@media (min-width: 1024px) {
  .hero__pager { display: flex; right: calc(var(--tab-w) + var(--gutter) + 24px); }
}
/* スマホ：縦のキャッチは写真の右に収め（ヘッダーの下から・写真の下端より上で終わる）、社名と説明は写真のすぐ下の深緑に。
   社名の上に差し色の短い線 */
@media (max-width: 767px) {
  .hero__catch { top: calc(var(--header-h) + 14px); font-size: clamp(24px, 6.6vw, 30px); }
  .hero__id { position: relative; inset: auto; margin: 0 var(--gutter); }
  .hero__id::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 18px; background: var(--accent); }
}
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  display: none;
  width: 44px;
  height: 104px;
  margin-left: -22px;
  text-decoration: none;
}
.hero__scroll span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font: 400 11px/1 var(--font-en);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero__scroll::before,
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  background: var(--on-deep-line);
}
.hero__scroll::after { background: var(--white); transform-origin: top center; animation: scroll-line 2.4s var(--ease-io) infinite; }
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top center; }
  50% { transform: scaleY(1); transform-origin: top center; }
  50.1% { transform-origin: bottom center; }
  100% { transform: scaleY(0); transform-origin: bottom center; }
}
@media (min-width: 1024px) {
  .hero__scroll { display: block; }
}

/* 最初の画面の文字が順に出る（CSS だけ・JavaScript が無くても出る） */
@media (prefers-reduced-motion: no-preference) {
  .hero__line,
  .hero__id > *,
  .hero__pager { animation: rise 1.4s var(--ease) both; }
  .hero__line { animation-name: rise-v; animation-duration: 1.8s; }
  .hero__line:nth-child(1) { animation-delay: 0.3s; }
  .hero__line:nth-child(2) { animation-delay: 0.6s; }
  .hero__id > :nth-child(1) { animation-delay: 0.8s; }
  .hero__id > :nth-child(2) { animation-delay: 0.95s; }
  .hero__pager { animation-delay: 1.2s; }
  [data-intro] .hero__line:nth-child(1) { animation-delay: 2.1s; }
  [data-intro] .hero__line:nth-child(2) { animation-delay: 2.35s; }
  [data-intro] .hero__id > :nth-child(1) { animation-delay: 2.55s; }
  [data-intro] .hero__id > :nth-child(2) { animation-delay: 2.7s; }
  [data-intro] .hero__pager { animation-delay: 2.9s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-v { from { opacity: 0; transform: translateY(-24px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }

/* ---------- 下の階層の見出し（写真の帯） ---------- */

.phead {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(420px, 64vh, 640px);
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}
.phead__photo { position: absolute; inset: 0; }
.phead__photo picture,
.phead__photo img { width: 100%; height: 100%; }
.phead__photo img { object-fit: cover; object-position: 60% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .phead__photo img { animation: zoom-out 6s var(--ease) both; }
}
.phead::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--veil-2) 0%, var(--veil-0) 26%),
    linear-gradient(90deg, var(--veil-2) 0%, var(--veil-0) 55%),
    linear-gradient(0deg, var(--veil) 0%, var(--veil-0) 62%);
}
.phead__body {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(40px, 7vh, 80px);
}
@media (min-width: 1024px) {
  .phead__body { padding-right: calc(var(--gutter) + var(--tab-w)); }
}
.phead__en {
  display: block;
  font: 300 clamp(60px, 10vw, 148px)/0.9 var(--font-en);
  letter-spacing: 0.005em;
}
.phead__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(16px, 2vw, 26px);
  font: 700 clamp(17px, 1.5vw, 20px)/1.5 var(--font-ja);
  letter-spacing: 0.22em;
}
.phead__title::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.phead__catch {
  margin: 18px 0 0;
  font: 700 clamp(19px, 2vw, 26px)/1.7 var(--font-min);
  letter-spacing: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .phead__body > * { animation: rise 1.3s var(--ease) both; }
  .phead__body > :nth-child(1) { animation-delay: 0.15s; }
  .phead__body > :nth-child(2) { animation-delay: 0.3s; }
  .phead__body > :nth-child(3) { animation-delay: 0.42s; }
}

.crumbs { padding-top: 18px; padding-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 12px; color: var(--line-2); }
.crumbs a { display: inline-block; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 767px) {
  .crumbs a { padding: 10px 0; }
  .crumbs { padding-top: 8px; padding-bottom: 8px; }
}

/* ---------- トップ：私たちについて ---------- */

.about { padding-bottom: 0; }
.about__grid { display: grid; gap: 8px; }
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(64px, 8vw, 140px);
    align-items: start;
    padding-left: calc(var(--gutter) + 2vw);
  }
  .about__catch { order: 0; padding-top: 8px; }
}
.about__body .tlink { margin-top: 36px; }

/* ---------- トップ：事業内容 ---------- */

.works { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(96px, 11vw, 160px); }
.works__head { display: grid; gap: 0 48px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) {
  .works__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .works__catch { margin-bottom: clamp(32px, 4vw, 56px); text-align: right; }
}
.services { display: grid; gap: clamp(64px, 9vw, 140px); }
.service { display: grid; gap: 28px; }
.service__photo { position: relative; overflow: hidden; }
.service__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service--rev .service__photo img { object-position: 40% 40%; }
.service__body { padding: 0 var(--gutter); }
.service__title { font: 700 clamp(24px, 2.6vw, 34px)/1.5 var(--font-min); letter-spacing: 0.14em; margin-bottom: 18px; }
.service__title::before { content: ""; display: block; width: 32px; height: 1px; margin-bottom: 22px; background: var(--green); }
.service__body p { color: var(--ink-2); max-width: 30em; }
.service__kinds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.service__kinds li { padding: 4px 14px; border: 1px solid var(--line-2); font-size: 14px; line-height: 1.7; white-space: nowrap; }
.service__body .tlink { margin-top: 28px; }
@media (min-width: 1024px) {
  .service { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 104px); align-items: center; }
  .service__photo img { aspect-ratio: 3 / 2; }
  .service__body { padding: 0 calc(var(--gutter) + var(--tab-w)) 0 0; max-width: 560px; }
  .service--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .service--rev .service__photo { order: 2; }
  .service--rev .service__body { padding: 0 0 0 var(--gutter); justify-self: end; }
}

/* ---------- トップ：施工エリア（写真の帯） ---------- */

.area {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 760px);
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}
.area__photo { position: absolute; inset: -8% 0; }
.area__photo picture,
.area__photo img { width: 100%; height: 100%; }
.area__photo img { object-fit: cover; object-position: 50% 45%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.area::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--veil) 0%, var(--veil) 22%, var(--veil-2) 55%, var(--veil-0) 85%);
}
.area__body { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.area__en {
  display: block;
  font: 300 clamp(36px, 6vw, 88px)/1 var(--font-en);
  letter-spacing: 0.01em;
}
.area__word { display: inline-block; }
@media (max-width: 767px) {
  .area__en { font-size: clamp(40px, 12vw, 52px); line-height: 1.02; }
  .area__word { display: block; }
  .area__slash { display: none; }
}
.area__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 clamp(28px, 4vw, 48px);
  font: 700 15px/1.5 var(--font-ja);
  letter-spacing: 0.22em;
}
.area__title::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.area__catch { color: var(--white); margin-bottom: 20px; }
.area__text { color: var(--on-deep); text-shadow: 0 0 16px var(--veil-2); }

/* ---------- トップ：SDGs ---------- */

.sdgs-digest { background: var(--paper-2); }
.sdgs-digest__head { display: grid; gap: 0 64px; margin-bottom: clamp(40px, 5vw, 64px); }
.sdgs-digest__text { max-width: 34em; color: var(--ink-2); }
.sdgs-digest__date { margin-bottom: 10px; color: var(--green); font-weight: 700; letter-spacing: 0.14em; }
@media (min-width: 1024px) {
  .sdgs-digest__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .sdgs-digest__head .shead { margin-bottom: 0; }
}
.pillars { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { display: grid; align-content: start; gap: 14px; padding: 28px 24px 30px; background: var(--paper); }
.pillar__no { color: var(--green); font-size: 15px; letter-spacing: 0.1em; }
.pillar__title { font: 700 19px/1.55 var(--font-min); letter-spacing: 0.1em; }
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pillar { padding: 36px 28px 40px; min-height: 260px; }
  .pillar .goals { margin-top: auto; }
}

/* SDGs宣言書の紙（下端の支援機関の表示を消したもの・tools/make-sdgs-sheet.py） */
.sheet {
  display: block;
  padding: clamp(10px, 1.2vw, 16px);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.sheet img { width: 100%; height: auto; }
.sheet:hover { border-color: var(--green); }
.sdgs-digest__sheet,
.sdgs__sheet { max-width: 420px; }
.sdgs-digest__sheet figcaption,
.sdgs__sheet figcaption { margin-top: 14px; }
.sdgs-digest__body,
.sdgs__body { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .sdgs-digest__body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .sdgs-digest__body .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdgs-digest__body .pillar { min-height: 0; }
  .sdgs__body { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
  .sdgs__sheet { position: sticky; top: calc(var(--header-h) + 32px); }
  .sdgs__body .decl__item { grid-template-columns: minmax(0, 1fr) 236px; gap: 16px 32px; }
  .sdgs__body .decl__head { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 18px; }
}

/* sdgs:begin — 目標の色は国連の配色（ここだけ直書きを許す） */
.goals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.goal {
  --gc: #ffffff;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--g);
  color: var(--gc);
  font: 500 18px/1 var(--font-en);
}
.g4 { --g: #c5192d; }
.g6 { --g: #26bde2; --gc: #15201d; }
.g7 { --g: #fcc30b; --gc: #15201d; }
.g8 { --g: #a21942; }
.g9 { --g: #fd6925; --gc: #15201d; }
.g10 { --g: #dd1367; }
.g11 { --g: #fd9d24; --gc: #15201d; }
.g12 { --g: #bf8b2e; }
.g13 { --g: #3f7e44; }
.g16 { --g: #00689d; }
.g17 { --g: #19486a; }
/* sdgs:end */

.goals--named { display: grid; gap: 8px; }
.goals--named .goal {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  color: var(--ink);
  font: inherit;
}
.goal__no {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--g);
  color: var(--gc);
  font: 500 17px/1 var(--font-en);
}
.goal__name { font-size: 14px; font-weight: 700; line-height: 1.5; }

/* ---------- トップ：採用（深い面） ---------- */

.recruit-band {
  position: relative;
  padding: var(--sec) 0;
  background: var(--deep);
  color: var(--on-deep);
  overflow: hidden;
}
.recruit-band__grid { display: grid; gap: 48px; align-items: center; }
.recruit-band__photo { position: relative; overflow: hidden; }
.recruit-band__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.recruit-band__catch { color: var(--on-deep); }
.recruit-band__text { color: var(--on-deep-2); max-width: 32em; }
@media (min-width: 1024px) {
  .recruit-band__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 7vw, 120px); }
  .recruit-band__photo img { aspect-ratio: 4 / 5; }
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 40px;
  border-top: 1px solid var(--on-deep-line);
}
.stat { padding: 18px 0 20px; border-bottom: 1px solid var(--on-deep-line); }
.stat:nth-child(3) { padding-left: 20px; border-left: 1px solid var(--on-deep-line); }
.stat--wide { grid-column: 1 / -1; }
.stat dt { font-size: 14px; letter-spacing: 0.16em; color: var(--on-deep-2); }
.stat dd { margin: 4px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.stat .num { font-size: clamp(36px, 4.4vw, 54px); font-weight: 300; line-height: 1.15; color: var(--white); }
.stat__u { font-size: 15px; font-weight: 700; }

/* ---------- アクセス ---------- */

.access__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .access__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); align-items: center; }
}
.facts { margin: 0 0 36px; border-top: 1px solid var(--line-2); }
.facts__row { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts__row dt { color: var(--ink-3); font-size: 14px; letter-spacing: 0.14em; padding-top: 2px; }
.facts__row dd { margin: 0; font-weight: 700; }
.facts__row .num { font-size: 20px; letter-spacing: 0.06em; text-decoration: none; }
.access__actions { display: grid; gap: 12px; justify-items: start; }
@media (max-width: 767px) {
  .access__actions .btn { width: 100%; }
}
.map { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 1024px) {
  .map { aspect-ratio: 7 / 5; }
}

/* ---------- 会社案内 ---------- */

.creed__grid { display: grid; gap: 8px; }
.creed__photo { margin-top: clamp(40px, 5vw, 64px); overflow: hidden; }
.creed__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 1024px) {
  .creed__grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(64px, 8vw, 140px);
    align-items: start;
    padding-left: calc(var(--gutter) + 2vw);
  }
  .creed__catch { padding-top: 8px; }
  .creed__photo { max-width: 640px; }
}

.outline { background: var(--paper-2); }
.outline__grid { display: grid; gap: 0; }
@media (min-width: 1024px) {
  .outline__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}
.spec { margin: 0; border-top: 1px solid var(--line-2); }
.spec__row { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec__row dt { color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.spec__row dd { margin: 0; }
.spec__lead { margin: 0; }
.spec__list { list-style: none; margin: 6px 0 0; padding: 0; }
.spec__list li { position: relative; padding-left: 1.2em; }
.spec__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.55em;
  height: 1px;
  background: var(--green);
}
.spec__lead + .spec__list { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 768px) {
  .spec__row { grid-template-columns: 10em minmax(0, 1fr); gap: 24px; padding: 24px 0; }
  .spec__row dt { padding-top: 2px; }
}

.sdgs__head { display: grid; gap: 0 64px; margin-bottom: clamp(40px, 5vw, 64px); }
.sdgs__date { margin-bottom: 10px; color: var(--green); font-weight: 700; letter-spacing: 0.14em; }
.sdgs__preamble { color: var(--ink-2); max-width: 36em; }
@media (min-width: 1024px) {
  .sdgs__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .sdgs__head .shead { margin-bottom: 0; }
}
.decl { list-style: none; display: grid; border-top: 1px solid var(--line-2); }
.decl__item { display: grid; gap: 18px; padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.decl__head { display: flex; align-items: baseline; gap: 18px; }
.decl__no { color: var(--green); font-size: clamp(34px, 3.6vw, 48px); font-weight: 300; line-height: 1; }
.decl__title { font: 700 clamp(20px, 2vw, 25px)/1.5 var(--font-min); letter-spacing: 0.12em; }
.decl__body { list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.decl__body li { position: relative; padding-left: 1.2em; }
.decl__body li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.55em; height: 1px; background: var(--green); }
@media (min-width: 1024px) {
  .decl__item { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 40px; align-items: start; padding: 44px 0 48px; }
  .decl__head { flex-direction: column; gap: 14px; }
}
.sdgs__note { margin-top: 32px; color: var(--ink-3); font-size: 14px; max-width: 48em; }

/* お問い合わせ */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; gap: 48px; }
.contact__intro > p { color: var(--ink-2); max-width: 26em; }
.contact__tel { display: grid; gap: 4px; margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.contact__tel-label { color: var(--ink-3); font-size: 14px; letter-spacing: 0.14em; }
.contact__tel a { display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 300; line-height: 1.2; color: var(--ink); text-decoration: none; letter-spacing: 0.06em; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 100px); align-items: start; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
}
.contact__body { padding: clamp(28px, 4vw, 56px); background: var(--paper); }
@media (max-width: 767px) {
  .contact__body { margin: 0 calc(var(--gutter) * -1); padding: 32px var(--gutter); }
}

.form { display: grid; gap: 28px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.req,
.opt {
  display: inline-block;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.req { background: var(--green); color: var(--white); }
.opt { border: 1px solid var(--line-2); color: var(--ink-3); padding: 0 7px; }
.input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: 500 16px/1.6 var(--font-ja);
  letter-spacing: 0.04em;
  caret-color: var(--green);
  transition: border-color 0.25s, background-color 0.25s;
}
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: var(--paper); }
.input--area { min-height: 200px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--alert); }
.field--pair { display: grid; gap: 16px 20px; }
.field--pair .field__hint,
.field--pair .field__err { margin: 0; }
@media (min-width: 768px) {
  .field--pair { grid-template-columns: 1fr 1fr; }
  .field--pair .field__hint,
  .field--pair .field__err { grid-column: 1 / -1; }
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice span { white-space: nowrap; }
@media (max-width: 767px) {
  .choices .choice { flex: 1 1 100%; }
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.choice:hover { border-color: var(--ink-3); }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-pale); }
.choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.choice input[aria-invalid="true"] { outline: 2px solid var(--alert); outline-offset: 2px; }
.choice--agree { border: 0; padding: 0; min-height: 44px; background: none; }
.choice--agree:has(input:checked) { background: none; }
.field__hint { margin: 8px 0 0; color: var(--ink-3); font-size: 14px; line-height: 1.8; }
.field__err { margin: 8px 0 0; color: var(--alert); font-size: 15px; font-weight: 700; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__alert {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--alert);
  background: var(--paper);
  color: var(--alert);
  font-weight: 700;
}
.form__submit { justify-self: start; min-width: 280px; min-height: 64px; font-size: 16px; }
.form__submit:disabled { cursor: progress; opacity: 0.72; }
@media (max-width: 767px) {
  .form__submit { width: 100%; }
}
.form-done { padding: 8px 0; outline: none; }
.form-done__en { display: block; color: var(--green); font: 300 clamp(40px, 5vw, 64px)/1 var(--font-en); }
.form-done__title { margin: 18px 0 12px; font: 700 clamp(22px, 2.4vw, 28px)/1.5 var(--font-min); letter-spacing: 0.12em; }
.form-done p:last-child { color: var(--ink-2); }

/* ---------- 採用情報 ---------- */

.keyfacts { position: relative; z-index: 2; }
.keyfacts__list {
  display: grid;
  margin: 0;
  background: var(--paper);
  border-top: 1px solid var(--line-2);
}
.keyfact { padding: 20px 0; border-bottom: 1px solid var(--line); }
.keyfact dt { color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; }
.keyfact dd { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; font-weight: 700; }
.keyfact .num { font-size: clamp(30px, 2.6vw, 38px); font-weight: 300; line-height: 1.2; }
.keyfact__u { font-size: 15px; }
.keyfact__sub { flex-basis: 100%; margin-top: 4px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
.keyfact--job dd { font: 700 clamp(19px, 1.7vw, 22px)/1.5 var(--font-min); letter-spacing: 0.08em; }
.keyfact--job .keyfact__sub { font-family: var(--font-ja); letter-spacing: 0.06em; }
@media (min-width: 768px) {
  .keyfacts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keyfact:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .keyfacts { margin-top: -96px; }
  .keyfacts__list {
    grid-template-columns: 1.1fr 1.5fr 1.15fr 0.85fr;
    padding: 36px 0 36px 40px;
    border-top: 0;
    margin-left: calc(var(--gutter) * -1);
  }
  .keyfact { padding: 0 32px; border-bottom: 0; border-left: 1px solid var(--line); }
  .keyfact:first-child { padding-left: 0; border-left: 0; }
  .keyfact:nth-child(even) { padding-left: 32px; }
}

.job { padding-top: clamp(80px, 9vw, 128px); }
.job__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .job__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 100px); align-items: center; }
}
.job__photo { overflow: hidden; }
.job__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job__sites { margin-top: 36px; }
.kinds { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.kinds li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.job__area { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; font-weight: 700; }
.job__area-label { padding: 2px 12px; border: 1px solid var(--green); color: var(--green); font-size: 14px; letter-spacing: 0.12em; }

.day { background: var(--paper-2); }
.day__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .day__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); align-items: start; }
  .day__head { position: sticky; top: calc(var(--header-h) + 40px); }
}
.day__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 0; border-top: 1px solid var(--line-2); }
.day__sum > div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.day__sum > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.day__sum dt { color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.day__sum dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.day__sum .num { margin: 0 3px 0 1px; font-size: clamp(30px, 3vw, 40px); font-weight: 300; line-height: 1.2; }
.day__sum div:last-child .num { margin-left: 3px; }

.flowday { --t-w: 74px; --dot: 40px; position: relative; list-style: none; }
.flowday::before {
  content: "";
  position: absolute;
  left: calc(var(--t-w) + var(--dot) / 2);
  top: 16px;
  bottom: 40px;
  width: 1px;
  background: var(--line-2);
}
.flowday__item {
  display: grid;
  grid-template-columns: var(--t-w) var(--dot) minmax(0, 1fr);
  align-items: start;
  padding: 0 0 34px;
}
.flowday__item > *,
.flowday__item::before { grid-row: 1; }
.flowday__item::before {
  content: "";
  grid-column: 2;
  justify-self: center;
  position: relative;
  width: 13px;
  height: 13px;
  margin-top: 10px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--paper-2);
}
.flowday__time {
  grid-column: 1;
  color: var(--green);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.flowday__body { grid-column: 3; padding-top: 2px; }
.flowday__title { display: block; font: 700 19px/1.5 var(--font-min); letter-spacing: 0.1em; }
.flowday__body p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.flowday__item--rest { padding-bottom: 26px; }
.flowday__item--rest .flowday__time { color: var(--ink-3); font-size: 20px; padding-top: 3px; }
.flowday__item--rest .flowday__title { color: var(--ink-3); font: 700 15px/1.6 var(--font-ja); letter-spacing: 0.12em; padding-top: 3px; }
.flowday__item--rest::before { width: 7px; height: 7px; margin-top: 12px; border: 0; background: var(--ink-3); }
.flowday__item--end { padding-bottom: 0; }
.flowday__item--end::before { background: var(--green); }
@media (min-width: 768px) {
  .flowday { --t-w: 124px; --dot: 56px; }
  .flowday::before { top: 20px; }
  .flowday__time { font-size: 40px; }
  .flowday__item::before { margin-top: 15px; }
  .flowday__title { font-size: 22px; }
  .flowday__item { padding-bottom: 44px; }
  .flowday__item--rest { padding-bottom: 30px; }
  .flowday__item--rest .flowday__time { font-size: 24px; padding-top: 6px; }
  .flowday__item--rest::before { margin-top: 17px; }
}

/* 採用：前職 */
.before__grid { display: grid; gap: 8px 64px; }
.before__lead { color: var(--ink-2); max-width: 26em; }
.before__list { list-style: none; border-top: 1px solid var(--line-2); }
.before__list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font: 700 clamp(21px, 2.2vw, 28px)/1.5 var(--font-min);
  letter-spacing: 0.12em;
}
.before__list li::before { content: ""; flex: none; align-self: center; width: 20px; height: 1px; background: var(--green); }
@media (min-width: 1024px) {
  .before__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .before__list { margin-top: 12px; }
}

.reqs { background: var(--paper-2); }
.reqs__grid { display: grid; }


.perks__list { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.perks__list li { display: grid; align-content: start; gap: 8px; padding: 26px 24px 28px; background: var(--paper); }
.perks__list strong { font: 700 19px/1.5 var(--font-min); letter-spacing: 0.1em; }
.perks__list strong::before { content: ""; display: block; width: 24px; height: 1px; margin-bottom: 18px; background: var(--green); }
.perks__list span { color: var(--ink-2); font-size: 14px; line-height: 1.85; }
@media (min-width: 640px) {
  .perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .perks__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks__list li { padding: 34px 32px 38px; }
}

.flow { background: var(--paper-2); }
.steps { list-style: none; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 0 0 32px; }
.steps li::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: var(--line-2); }
.steps li:last-child::before { display: none; }
.steps__no {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  font-size: 17px;
}
.steps strong { display: block; padding-top: 12px; font: 700 19px/1.5 var(--font-min); letter-spacing: 0.1em; }
.steps p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.85; }
/* 5列に並べるのは 1200px から（1024px だと1列が狭く、「お問い合わせフォーム、」が記号の前で折れた） */
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .steps li { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .steps li::before { left: 64px; right: -24px; top: 32px; bottom: auto; width: auto; height: 1px; }
  .steps__no { width: 64px; height: 64px; font-size: 19px; }
  .steps strong { padding-top: 20px; }
}

.entry {
  position: relative;
  padding: var(--sec) 0;
  background: var(--green);
  color: var(--on-deep);
}
.entry__grid { display: grid; gap: 40px; }
.entry__en { display: block; font: 300 clamp(56px, 9vw, 128px)/0.92 var(--font-en); }
.entry__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(14px, 1.6vw, 22px) 0 28px;
  font: 700 15px/1.5 var(--font-ja);
  letter-spacing: 0.22em;
}
.entry__title::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.entry__head p { color: var(--on-deep); max-width: 30em; }
.entry__actions { display: grid; gap: 18px; justify-items: start; align-content: end; }
.entry__tel {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--on-deep-line);
  text-decoration: none;
}
.entry__tel-label { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.16em; }
.entry__tel-num { font-size: clamp(40px, 5.4vw, 68px); font-weight: 300; line-height: 1.1; letter-spacing: 0.04em; }
@media (min-width: 1024px) {
  .entry__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: end; }
}
@media (max-width: 767px) {
  .entry__actions .btn { width: 100%; }
}

/* ---------- 下の帯（お問い合わせ・採用） ---------- */

.cta { display: grid; }
@media (min-width: 768px) {
  .cta { grid-template-columns: 1fr 1fr; }
}
body[data-page="recruit"] .cta,
body[data-page="company"] .cta { grid-template-columns: 1fr; }
body[data-page="recruit"] .cta__block--recruit,
body[data-page="company"] .cta__block--contact { display: none; }
.cta__block {
  position: relative;
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: clamp(320px, 34vw, 460px);
  padding: clamp(36px, 5vw, 72px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: var(--deep-2);
  color: var(--on-deep);
  text-decoration: none;
}
@media (min-width: 1024px) {
  .cta__block { padding-right: calc(var(--gutter) + var(--tab-w)); }
  .cta__block--contact { padding-right: var(--gutter); }
  body[data-page="recruit"] .cta__block--contact { padding-right: calc(var(--gutter) + var(--tab-w)); }
}
.cta__block--contact { background: var(--green); }
.cta__block--contact .cta__text { color: var(--on-deep); }
.cta__block--contact .cta__ja::before { background: var(--accent); }
.cta__block--recruit { background: var(--deep); }
.cta__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--deep) url("../img/hero-machines-1280.jpg") 58% 50% / cover no-repeat;
  background-image: image-set(url("../img/hero-machines-1280.webp") type("image/webp"), url("../img/hero-machines-1280.jpg") type("image/jpeg"));
  transition: transform 1.2s var(--ease);
}
.cta__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--veil) 0%, var(--veil) 50%, var(--veil-2) 100%); }
.cta__en { font: 300 clamp(48px, 6vw, 88px)/1 var(--font-en); letter-spacing: 0.01em; }
.cta__ja {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.cta__ja::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.cta__text { max-width: 26em; color: var(--on-deep-2); font-size: 15px; }
.cta__more {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.cta__more .arrow { width: 56px; }
@media (hover: hover) {
  .cta__block:hover .cta__photo { transform: scale(1.06); }
  .cta__block:hover .arrow { width: 80px; }
}

/* ---------- フッター ---------- */

.site-footer { background: var(--deep); color: var(--on-deep); padding: clamp(64px, 7vw, 96px) 0 0; }
.site-footer__inner {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
}
.site-footer__brand { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-family: var(--font-min); }
.site-footer__brand .brand__mark { height: 56px; }
.site-footer__brand .brand__text { gap: 12px; }
.site-footer__brand .brand__name { font-size: 28px; }
.site-footer__addr,
.site-footer__biz { margin: 0 0 6px; color: var(--on-deep-2); font-size: 14px; line-height: 1.9; }
.site-footer__tel { margin: 12px 0 14px; }
.site-footer__tel a { display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; text-decoration: none; }
.site-footer__tel .htel__label { font: 400 14px/1 var(--font-en); letter-spacing: 0.16em; color: var(--on-deep-2); }
.site-footer__tel .num { font-size: 28px; font-weight: 300; letter-spacing: 0.06em; }
.fnav ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--on-deep-line); }
.fnav li { border-bottom: 1px solid var(--on-deep-line); }
.fnav a { display: flex; align-items: center; min-height: 52px; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-decoration: none; transition: color 0.3s; }
.fnav a:hover { color: var(--accent); }
.copyright {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid var(--on-deep-line);
  color: var(--on-deep-2);
  font: 400 14px/1.6 var(--font-en);
  letter-spacing: 0.12em;
}
.copyright small { font-size: inherit; }
@media (min-width: 1024px) {
  .site-footer__inner,
  .copyright { padding-right: calc(var(--gutter) + var(--tab-w)); }
}

/* ---------- スマホ：画面の下の帯（電話・問い合わせ・採用・アクセス） ---------- */

.actionbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    border-top: 1px solid var(--line-2);
  }
  .actionbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-left: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-decoration: none;
  }
  .actionbar a:first-child { border-left: 0; }
  .actionbar .i { width: 22px; height: 22px; }
  .actionbar a[aria-current="page"] { color: var(--green); }
  .actionbar .actionbar__main { background: var(--accent); color: var(--on-accent); letter-spacing: 0.08em; }
}

/* ---------- 404 ---------- */

.nf { padding: calc(var(--header-h) + var(--sec)) 0 var(--sec); }
.nf__inner { max-width: 760px; }
.nf__en { display: block; color: var(--green); font-size: clamp(96px, 16vw, 200px); font-weight: 300; line-height: 0.9; }
.nf__title { margin: 24px 0 20px; font: 700 clamp(24px, 3vw, 34px)/1.5 var(--font-min); letter-spacing: 0.12em; }
.nf p { color: var(--ink-2); }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 767px) {
  .nf__actions .btn { width: 100%; }
}

/* ---------- 見えたところで出す（JavaScript が付けた .is-in で） ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .service [data-reveal]:not([data-reveal="photo"]) { transition-delay: 0.2s; }
  /* 写真は覆い（::after）をめくって出す。写真そのものを clip-path で隠すと、IntersectionObserver が
     「見えていない」と判断して、いつまでも出なかった（2026-10-08 本人「白紙」） */
  .js [data-reveal="photo"] { position: relative; overflow: hidden; opacity: 1; transform: none; }
  .js [data-reveal="photo"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--paper);
    transform-origin: center bottom;
    transition: transform 1.3s var(--ease-io);
    pointer-events: none;
  }
  .js .recruit-band [data-reveal="photo"]::after { background: var(--deep); }
  .js [data-reveal="photo"] img { transform: scale(1.12); transition: transform 2.2s var(--ease); }
  .js [data-reveal="photo"].is-in::after { transform: scaleY(0); }
  .js [data-reveal="photo"].is-in img { transform: none; }
  .pillars [data-reveal]:nth-child(2),
  .perks__list [data-reveal]:nth-child(3n + 2),
  .steps [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
  .pillars [data-reveal]:nth-child(3),
  .perks__list [data-reveal]:nth-child(3n),
  .steps [data-reveal]:nth-child(3) { transition-delay: 0.24s; }
  .pillars [data-reveal]:nth-child(4),
  .steps [data-reveal]:nth-child(4) { transition-delay: 0.36s; }
  .steps [data-reveal]:nth-child(5) { transition-delay: 0.48s; }
}

/* ---------- 改行：文節の途中では折らない（tools/build.py が <wbr> と class="bx" を入れる） ---------- */

.bx { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 印刷 ---------- */

@media print {
  .site-header, .sidetabs, .drawer, .actionbar, .map, .skip, .intro, .hero__pager, .hero__scroll { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
