/* ============================================
   CONSTRUCTION HEAVY TEMPLATE
   重機の建設会社 — ほぼ黒 × セーフティイエロー × ハザードストライプ
============================================ */

:root {
  --black: #121212; /* 地の黒 */
  --black-2: #1a1a1a; /* 1段明るい黒（セクションの切り替え） */
  --black-3: #242424; /* 表の行・枠 */
  --yellow: #ffc400; /* セーフティイエロー（メイン） */
  --yellow-deep: #e0a800;
  --red: #e5432b; /* 解体・注意の差し色（使いすぎない） */
  --steel: #8c8c86; /* 鉄の灰色（補助文字） */
  --paper: #ecebe6; /* 明るい面（施工実績・会社概要） */
  --ink: #f2f1ec; /* 黒地の本文 */
  --ink-dark: #161616; /* 明るい面の本文 */
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(0, 0, 0, 0.16);
  --font-en: "Oswald", "Noto Sans JP", sans-serif; /* 英字ラベル */
  --font-display: "Bebas Neue", "Oswald", sans-serif; /* 大きな数字 */
  --font-stencil: "Big Shoulders Stencil Display", "Bebas Neue", sans-serif; /* ステンシル番号 */
  --font-body: "Noto Sans JP", sans-serif; /* 本文・見出し(900) */
  --container: 1200px;
  --header-h: 72px;
  --cut: 18px; /* 角を落とす量（角ばったレイアウトの基本単位） */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* 黄黒のハザードストライプ */
  --hazard: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 18px,
    var(--black) 18px 36px
  );
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--black);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.sp-only {
  display: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- ハザードストライプ ---------- */
.hazard {
  height: 14px;
  background: var(--hazard);
}

/* ---------- ボタン（角を1つ落とした形） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
  cursor: pointer;
}

.btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  transition: transform 0.2s var(--ease);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}

.btn--yellow:hover {
  background: #fff;
}

.btn--yellow:hover svg {
  transform: translateX(4px);
}

.btn--line {
  border-color: var(--ink);
  color: var(--ink);
  clip-path: none;
}

.btn--line:hover {
  background: var(--ink);
  color: var(--black);
}

.btn--black {
  background: var(--black);
  color: var(--yellow);
}

.btn--black:hover {
  background: #000;
  color: #fff;
}

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s;
}

/* スクロールしたら黒い地を敷く（擬似要素に。ヘッダー自体に効果を付けない） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.96);
  border-bottom: 3px solid var(--yellow);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.header.is-scrolled::before {
  opacity: 1;
}

.header__inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.logo__mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-stencil);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo__ja {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.logo__en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--yellow);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__list a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.nav__list a:hover {
  color: var(--yellow);
}

.nav__no {
  font-family: var(--font-stencil);
  font-size: 13px;
  color: var(--yellow);
}

.nav__cta a {
  margin-left: 10px;
  padding: 0 22px;
  background: var(--yellow);
  color: var(--black);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.nav__cta a:hover {
  background: #fff;
  color: var(--black);
}

.nav__tel {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border: 0;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 14px;
  width: 24px;
  height: 3px;
  background: var(--black);
  transition:
    transform 0.25s,
    opacity 0.2s;
}

.nav-toggle span:nth-child(1) {
  top: 17px;
}
.nav-toggle span:nth-child(2) {
  top: 25px;
}
.nav-toggle span:nth-child(3) {
  top: 33px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: grayscale(0.35) contrast(1.1) brightness(0.62);
}

/* 左から黒を敷いて文字を読みやすく */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.92) 0%, rgba(18, 18, 18, 0.55) 55%, rgba(18, 18, 18, 0.1) 100%);
}

.hero__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 64px) 24px 48px;
}

.hero__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero__label-tag {
  padding: 2px 10px;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-en);
  letter-spacing: 0.16em;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--yellow);
}

/* JSがあるときだけ、1行ずつ少し下から静かに出す */
html.js .hero__line {
  opacity: 0;
  transform: translateY(12px);
  animation: lineUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
html.js .hero__line:nth-child(2) {
  animation-delay: 0.1s;
}
html.js .hero__line:nth-child(3) {
  animation-delay: 0.2s;
}
/* CSSアニメが止まっていても、JSのタイマーで必ず表示状態へ */
html.js .hero.is-ready .hero__line {
  opacity: 1;
  transform: none;
}

@keyframes lineUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__lead {
  max-width: 560px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--yellow);
  color: var(--black);
}

.stat {
  padding: 18px 24px 14px;
  border-right: 2px solid var(--black);
}

.stat:last-child {
  border-right: 0;
}

.stat dt {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.stat dd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 72px);
  letter-spacing: 0.02em;
}

.stat__unit {
  font-weight: 900;
  font-size: 18px;
}

/* ============================================
   NOTICE（お知らせ）
============================================ */
.notice {
  background: var(--black-2);
  border-bottom: 1px solid var(--line);
}

.notice__inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.notice__head {
  font-family: var(--font-stencil);
  font-size: 30px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1.2;
}

.notice__list li {
  display: grid;
  grid-template-columns: 96px 54px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}

.notice__list li:last-child {
  border-bottom: 0;
}

.notice__list time {
  font-family: var(--font-en);
  color: var(--steel);
  letter-spacing: 0.06em;
}

.notice__cat {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  line-height: 1.7;
}

/* ============================================
   共通: セクション見出し（ステンシル番号）
============================================ */
.section {
  position: relative;
  padding: 120px 0;
}

.sec-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 8px 28px;
  margin-bottom: 64px;
}

.sec-head__no {
  font-family: var(--font-stencil);
  font-weight: 900;
  font-size: clamp(96px, 12vw, 168px);
  line-height: 0.78;
  color: var(--yellow);
}

.sec-head__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--yellow);
}

.sec-head__ja {
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  word-break: keep-all;
}

.sec-head__desc {
  justify-self: end;
  max-width: 470px;
  font-size: 15px;
  color: var(--steel);
  border-left: 4px solid var(--yellow);
  padding-left: 18px;
}

/* 黄色地のセクション用 */
.sec-head--dark .sec-head__no,
.sec-head--dark .sec-head__en {
  color: var(--black);
}

.sec-head--dark .sec-head__desc {
  color: rgba(0, 0, 0, 0.75);
  border-left-color: var(--black);
}

.sec-head--stack {
  grid-template-columns: auto 1fr;
  margin-bottom: 40px;
}

/* ============================================
   SERVICE
============================================ */
.service {
  background: var(--black);
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.svc {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 0;
}

.svc__img {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), calc(100% - 48px) 100%, 0 100%);
}

.svc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.svc:hover .svc__img img {
  transform: scale(1.03);
}

/* 本文は写真に少し食い込ませる */
.svc__body {
  position: relative;
  margin-left: -64px;
  padding: 44px 44px 40px;
  background: var(--black-2);
  border-top: 6px solid var(--yellow);
}

.svc--rev {
  grid-template-columns: 5fr 7fr;
}

.svc--rev .svc__img {
  order: 2;
  clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%, 0 48px);
}

.svc--rev .svc__body {
  margin-left: 0;
  margin-right: -64px;
  z-index: 1;
}

.svc__no {
  position: absolute;
  right: 24px;
  top: -6px;
  font-family: var(--font-stencil);
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 196, 0, 0.55);
}

.svc__en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--yellow);
}

.svc__title {
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.svc__text {
  font-size: 15px;
  margin-bottom: 20px;
}

.svc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc__tags li {
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--black-3);
  border-left: 3px solid var(--yellow);
}

/* ============================================
   FLEET（保有重機一覧）— 黄色地
============================================ */
.fleet {
  background: var(--yellow);
  color: var(--black);
  padding-top: 0;
}

.fleet > .hazard {
  margin-bottom: 104px;
}

.fleet__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.fleet__total {
  padding: 32px 28px;
  background: var(--black);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

.fleet__total-label {
  font-family: var(--font-en);
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--yellow);
}

.fleet__total-num {
  font-family: var(--font-stencil);
  font-weight: 900;
  font-size: 160px;
  line-height: 0.9;
  color: var(--yellow);
}

.fleet__total-note {
  font-size: 15px;
  margin: 14px 0 24px;
}

.fleet__total-note strong {
  color: var(--yellow);
  font-size: 18px;
}

.fleet__total .btn {
  width: 100%;
  background: var(--yellow);
  color: var(--black);
  font-size: 15px;
  padding: 0 16px;
}

.fleet__total .btn:hover {
  background: #fff;
}

/* 表の横スクロール枠（スマホ用） */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.spec {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--black);
  color: var(--ink);
  font-size: 15px;
}

.spec thead th {
  padding: 14px 16px;
  background: #000;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-align: left;
  color: var(--yellow);
}

.spec td,
.spec tbody th,
.spec tfoot th {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec tbody th {
  font-weight: 700;
}

.spec tbody tr:hover {
  background: var(--black-3);
}

.spec .num {
  text-align: right;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--yellow);
}

.spec thead .num {
  font-family: var(--font-en);
  font-size: 13px;
}

.spec__cat {
  display: inline-block;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  background: var(--yellow);
  color: var(--black);
}

.spec__cat--red {
  background: var(--red);
  color: #fff;
}

.spec__ok {
  font-size: 13px;
  font-weight: 700;
}

.spec__ng {
  color: var(--steel);
}

.spec tfoot th,
.spec tfoot td {
  background: #000;
  font-weight: 900;
  border-bottom: 0;
}

.spec tfoot .num {
  font-size: 40px;
}

/* ============================================
   WORKS — 明るいコンクリート色の面
============================================ */
.works {
  background: var(--paper);
  color: var(--ink-dark);
}

.works .sec-head__no {
  color: var(--black);
}

.works .sec-head__en {
  color: var(--ink-dark);
}

.works .sec-head__desc {
  color: #4a4a46;
  border-left-color: var(--black);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 32px;
  border: 2px solid var(--black);
  width: fit-content;
  max-width: 100%;
}

.filter__btn {
  min-height: 48px;
  min-width: 88px;
  padding: 0 20px;
  background: transparent;
  border: 0;
  border-right: 2px solid var(--black);
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter__btn:last-child {
  border-right: 0;
}

.filter__btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.filter__btn.is-active {
  background: var(--black);
  color: var(--yellow);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work {
  background: #fff;
  border-bottom: 5px solid var(--black);
}

.work.is-hidden {
  display: none;
}

.work--wide {
  grid-column: span 2;
}

/* 最後の1件は横長に（写真左・文字右） */
.work--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.work--full .work__body {
  align-self: center;
  padding: 28px 32px;
}

.work__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work--wide .work__img {
  aspect-ratio: auto;
  height: 300px;
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work:hover .work__img img {
  transform: scale(1.03);
}

.work__type {
  position: absolute;
  left: 0;
  top: 16px;
  padding: 4px 14px 4px 12px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  font-size: 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.work[data-type="demolition"] .work__type {
  background: var(--red);
  color: #fff;
}

.work__body {
  padding: 20px 22px 22px;
}

.work__title {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.work__meta {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.work__meta div {
  display: grid;
  grid-template-columns: 44px 1fr;
}

.work__meta dt {
  font-weight: 700;
  color: #6b6b66;
}

/* ============================================
   SAFETY
============================================ */
.safety {
  background:
    linear-gradient(rgba(18, 18, 18, 0.97), rgba(18, 18, 18, 0.97)),
    repeating-linear-gradient(0deg, #333 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #333 0 1px, transparent 1px 40px);
}

.safety__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
}

/* 現場の無災害記録表示板 */
.board {
  border: 4px solid var(--yellow);
  background: #0b0b0b;
  padding: 22px 24px 18px;
  margin-bottom: 28px;
}

.board__title {
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
}

.board__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.board__label {
  font-weight: 900;
  font-size: 22px;
}

.board__digits {
  display: flex;
  gap: 6px;
}

.board__digits span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 80px;
  background: #1f1f1f;
  border: 1px solid #000;
  box-shadow: inset 0 -40px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--yellow);
}

.board__note {
  text-align: center;
  font-size: 13px;
  color: var(--steel);
  margin-top: 14px;
}

.safety__photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-left: 8px solid var(--yellow);
}

.safety__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
}

.safety__list {
  counter-reset: none;
  border-top: 2px solid var(--yellow);
}

.safety__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.safety__no {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  /* 外周がハザードストライプ、内側が黄色ベタ */
  border: 9px solid transparent;
  background:
    linear-gradient(var(--yellow), var(--yellow)) padding-box,
    var(--hazard) border-box;
  font-family: var(--font-stencil);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--black);
}

.safety__list h3 {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.safety__list p {
  font-size: 15px;
  color: #cfcec8;
}

/* ============================================
   COMPANY
============================================ */
.company {
  background: var(--paper);
  color: var(--ink-dark);
}

.company .sec-head__no {
  color: var(--black);
}

.company .sec-head__en {
  color: var(--ink-dark);
}

.company__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: start;
}

.company__photo {
  aspect-ratio: 8 / 9;
  overflow: hidden;
}

.company__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company__quote {
  position: relative;
  margin: -48px 0 0 24px;
  padding: 26px 26px 22px;
  background: var(--black);
  color: var(--ink);
  font-size: 15px;
  border-top: 6px solid var(--yellow);
}

.company__quote footer {
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--yellow);
  text-align: right;
}

.info-table {
  border-top: 3px solid var(--black);
}

.info-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line-dark);
}

.info-table dt,
.info-table dd {
  padding: 16px 18px;
  font-size: 15px;
}

.info-table dt {
  font-weight: 900;
  background: rgba(0, 0, 0, 0.05);
}

/* 沿革 */
.history {
  margin-top: 96px;
}

.history__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-weight: 900;
  font-size: 26px;
  margin-bottom: 28px;
}

.history__title span {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.3em;
}

.history__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--black);
}

.history__list li {
  position: relative;
  padding: 22px 20px 26px 0;
  border-bottom: 1px solid var(--line-dark);
}

/* 年表の目盛り */
.history__list li::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border: 3px solid var(--black);
}

.history__year {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}

.history__list p {
  font-size: 14px;
  line-height: 1.75;
}

/* ============================================
   RECRUIT — 黄色地
============================================ */
.recruit {
  background: var(--yellow);
  color: var(--black);
  padding-top: 0;
  overflow: hidden;
}

/* 黒い帯（動かさず、標識のように置くだけ） */
.recruit__band {
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  padding: 12px 0;
  margin-bottom: 104px;
  overflow: hidden;
}

.recruit__band span {
  display: inline-block;
}

.jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 3px solid var(--black);
  margin-bottom: 48px;
}

.job {
  padding: 28px 28px 26px;
  border-right: 3px solid var(--black);
  display: flex;
  flex-direction: column;
}

.job:last-child {
  border-right: 0;
}

.job__no {
  font-family: var(--font-stencil);
  font-weight: 900;
  font-size: 22px;
}

.job__title {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.job__text {
  font-size: 15px;
  margin-bottom: 18px;
  flex: 1;
}

.job__pay {
  font-weight: 900;
  font-size: 17px;
  background: var(--black);
  color: var(--yellow);
  padding: 6px 12px;
  width: fit-content;
}

.recruit__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 80px;
}

.terms {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
}

.terms caption {
  text-align: left;
  font-weight: 900;
  font-size: 18px;
  padding: 12px 18px;
  background: var(--black);
  color: var(--yellow);
}

.terms th,
.terms td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-dark);
}

.terms th {
  width: 110px;
  white-space: nowrap;
  font-weight: 900;
  background: #f4f2ea;
}

.day {
  background: var(--black);
  color: var(--ink);
  padding: 26px 26px 20px;
}

.day__title {
  font-weight: 900;
  font-size: 18px;
  color: var(--yellow);
  margin-bottom: 14px;
}

.day__list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  padding: 8px 0 8px 18px;
  font-size: 14px;
  border-left: 2px solid var(--yellow);
  position: relative;
}

.day__list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
}

.day__list time {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--yellow);
}

.voices__title {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.voices {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 96px;
  align-items: start;
}

.voice {
  background: var(--black);
  color: var(--ink);
}

/* 1人目だけ大きく、2・3人目は少し下げて段差をつける */
.voice:nth-child(2) {
  margin-top: 48px;
}
.voice:nth-child(3) {
  margin-top: 96px;
}

.voice__img {
  aspect-ratio: 6 / 5;
  overflow: hidden;
}

.voice__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}

.voice__body {
  padding: 20px 22px 24px;
}

.voice__who {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 10px;
}

.voice__who strong {
  font-size: 18px;
  color: var(--yellow);
}

.voice__text {
  font-size: 15px;
}

/* ============================================
   FORM（エントリー・見積り共通）
============================================ */
.form {
  background: var(--black);
  color: var(--ink);
  padding: 48px;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}

.form__head {
  margin-bottom: 28px;
}

.form__en {
  font-family: var(--font-en);
  letter-spacing: 0.3em;
  font-size: 13px;
  color: var(--yellow);
}

.form__title {
  font-weight: 900;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: 0.06em;
}

.form__note {
  font-size: 15px;
  color: #cfcec8;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 22px;
  margin-bottom: 28px;
}

.form--contact .form__grid {
  grid-template-columns: repeat(2, 1fr);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 0;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.form__label em {
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  margin-left: 8px;
  padding: 1px 6px;
  background: var(--yellow);
  color: var(--black);
  vertical-align: 2px;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="number"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  background: var(--black-2);
  border: 0;
  border-bottom: 2px solid var(--steel);
  font-size: 16px;
  border-radius: 0;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--yellow);
  background: var(--black-3);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%),
    linear-gradient(135deg, var(--yellow) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form textarea {
  resize: vertical;
  line-height: 1.7;
}

.form ::placeholder {
  color: #7a7a74;
}

.form .is-invalid {
  border-bottom-color: var(--red) !important;
}

/* ラジオをボタン状に */
.form__radios,
.form__chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.form__radios legend,
.form__chips legend {
  width: 100%;
  margin-bottom: 6px;
}

.form__radios label,
.form__chips label {
  position: relative;
  cursor: pointer;
}

.form__radios input,
.form__chips input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.form__radios span,
.form__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--black-3);
  background: var(--black-2);
  font-size: 15px;
  font-weight: 700;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.form__radios input:checked + span,
.form__chips input:checked + span {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.form__radios input:focus-visible + span,
.form__chips input:focus-visible + span {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.form__submit {
  min-width: 280px;
}

.form__msg {
  margin-top: 16px;
  font-weight: 700;
  color: var(--yellow);
  min-height: 1.5em;
}

/* ============================================
   CONTACT
============================================ */
.contact {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: start;
}

.contact__lead {
  font-size: 16px;
  margin-bottom: 28px;
}

.contact__tel {
  border: 3px solid var(--yellow);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.contact__tel p {
  font-size: 13px;
  color: var(--steel);
}

.contact__tel a {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.1;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.contact__flow li {
  display: grid;
  grid-template-columns: 84px 1fr;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.contact__flow strong {
  font-family: var(--font-en);
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.form--contact {
  background: var(--black);
  border: 1px solid var(--line);
}

/* ============================================
   ACCESS
============================================ */
.access {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 460px;
  background: var(--black);
}

.access__map {
  position: relative;
  min-height: 340px;
}

.access__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.1);
}

.access__info {
  padding: 56px 48px;
  border-left: 8px solid var(--yellow);
}

.access__title {
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 20px;
}

.access__list div {
  display: grid;
  grid-template-columns: 84px 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.access__list dt {
  font-weight: 700;
  color: var(--yellow);
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: #0a0a0a;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__name {
  font-weight: 900;
  font-size: 18px;
}

.footer__addr {
  font-size: 13px;
  color: var(--steel);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 4px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
}

.footer__nav a:hover {
  color: var(--yellow);
}

.footer__copy {
  grid-column: 1 / -1;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--steel);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ============================================
   REVEAL（JSがあるときだけ隠す）
   少し下から静かに出す
============================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 96px 32px 40px;
    background: var(--black);
    border-left: 14px solid transparent;
    border-image: var(--hazard) 14;
    visibility: hidden;
    opacity: 0;
    transform: translateX(24px);
    transition:
      opacity 0.3s,
      transform 0.3s var(--ease),
      visibility 0.3s;
    overflow-y: auto;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list a {
    min-height: 56px;
    font-size: 20px;
    font-weight: 900;
    border-bottom: 1px solid var(--line);
    padding: 0 4px;
  }

  .nav__no {
    font-size: 18px;
    width: 36px;
  }

  .nav__cta a {
    margin: 24px 0 0;
    justify-content: center;
    border-bottom: 0;
  }

  .nav__tel {
    display: block;
    margin-top: 24px;
    font-size: 13px;
    color: var(--steel);
  }

  .nav__tel a {
    display: block;
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1.2;
    color: var(--yellow);
  }

  .svc,
  .svc--rev {
    grid-template-columns: 1fr;
  }

  .svc--rev .svc__img {
    order: 0;
  }

  .svc__body,
  .svc--rev .svc__body {
    margin: -56px 0 0 32px;
  }

  .fleet__layout {
    grid-template-columns: 1fr;
  }

  .fleet__total {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 28px;
    align-items: center;
  }

  .fleet__total-label {
    grid-column: 1 / -1;
  }

  .fleet__total .btn {
    grid-column: 1 / -1;
  }

  .works__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .safety__grid,
  .company__grid,
  .contact__grid,
  .recruit__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company__msg {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }

  .company__photo {
    aspect-ratio: 4 / 3;
  }

  .company__quote {
    margin: 0 0 0 -32px;
  }

  .history__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .voices {
    grid-template-columns: 1fr;
  }

  .voice:nth-child(2),
  .voice:nth-child(3) {
    margin-top: 0;
  }

  .voice {
    display: grid;
    grid-template-columns: 200px 1fr;
  }

  .voice__img {
    aspect-ratio: auto;
    height: 100%;
  }

  .form__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .access {
    grid-template-columns: 1fr;
  }

  .access__info {
    border-left: 0;
    border-top: 8px solid var(--yellow);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }

  .sp-only {
    display: inline;
  }

  .header__inner {
    padding: 0 12px 0 16px;
  }

  .logo__ja {
    font-size: 15px;
  }

  .logo__en {
    font-size: 10px;
  }

  .hero__inner {
    padding: calc(var(--header-h) + 40px) 18px 32px;
  }

  .hero__label {
    font-size: 12px;
  }

  .hero__title {
    font-size: clamp(56px, 19vw, 88px);
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .stat {
    padding: 12px 10px 10px;
  }

  .stat dt {
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.4;
  }

  .stat__num {
    font-size: 34px;
  }

  .stat__unit {
    font-size: 13px;
  }

  .notice__inner {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .notice__list li {
    grid-template-columns: 88px 50px;
    gap: 2px 10px;
    font-size: 14px;
  }

  .notice__text {
    grid-column: 1 / -1;
  }

  .section {
    padding: 80px 0;
  }

  .sec-head {
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin-bottom: 40px;
  }

  .sec-head__no {
    font-size: 80px;
  }

  .sec-head__desc {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 14px;
    margin-top: 12px;
  }

  .sec-head__desc br {
    display: none;
  }

  .service__list {
    gap: 56px;
  }

  .svc__img {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  }

  .svc--rev .svc__img {
    clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
  }

  .svc__body,
  .svc--rev .svc__body {
    margin: -32px 0 0 14px;
    padding: 28px 20px 24px;
  }

  .svc__no {
    font-size: 64px;
    right: 12px;
  }

  .fleet > .hazard {
    margin-bottom: 72px;
  }

  .fleet__total {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .fleet__total-num {
    font-size: 112px;
  }

  .spec {
    font-size: 14px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work--wide {
    grid-column: auto;
  }

  .work--full {
    display: block;
  }

  .work--wide .work__img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .filter {
    width: 100%;
  }

  .filter__btn {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }

  .board__digits span {
    width: 46px;
    height: 64px;
    font-size: 50px;
  }

  .board__label {
    font-size: 18px;
  }

  .safety__list li {
    grid-template-columns: 52px 1fr;
    gap: 14px;
  }

  .safety__no {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }


  .safety__list h3 {
    font-size: 18px;
  }

  .company__msg {
    display: block;
  }

  .company__quote {
    margin: -40px 0 0 16px;
  }

  .info-table div {
    grid-template-columns: 1fr;
  }

  .info-table dt {
    padding: 10px 14px 4px;
    background: transparent;
    font-size: 13px;
    color: #5d5d58;
  }

  .info-table dd {
    padding: 0 14px 12px;
  }

  .history {
    margin-top: 64px;
  }

  .history__list {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 4px solid var(--black);
    margin-left: 6px;
  }

  .history__list li {
    padding: 16px 0 16px 22px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: baseline;
  }

  .history__list li::before {
    top: 24px;
    left: -9px;
  }

  .history__year {
    font-size: 34px;
    margin: 0;
  }

  .recruit__band {
    font-size: 15px;
    margin-bottom: 72px;
  }

  .jobs {
    grid-template-columns: 1fr;
  }

  .job {
    border-right: 0;
    border-bottom: 3px solid var(--black);
    padding: 22px 20px;
  }

  .job:last-child {
    border-bottom: 0;
  }

  /* 募集要項はスマホで縦積み */
  .terms,
  .terms tbody,
  .terms tr,
  .terms th,
  .terms td {
    display: block;
    width: 100%;
  }

  .terms caption {
    display: block;
  }

  .terms th {
    padding: 10px 16px 2px;
    border-bottom: 0;
    background: transparent;
    font-size: 13px;
    color: #5d5d58;
  }

  .terms td {
    padding: 0 16px 12px;
  }

  .voices {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 64px;
  }

  .voice:nth-child(2),
  .voice:nth-child(3) {
    margin-top: 0;
  }

  .voice {
    display: grid;
    grid-template-columns: 110px 1fr;
  }

  .voice__img {
    aspect-ratio: auto;
    height: 100%;
  }

  .voice__body {
    padding: 16px;
  }

  .voice__text {
    font-size: 14px;
  }

  .form {
    padding: 32px 18px 28px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  }

  .form__grid,
  .form--contact .form__grid {
    grid-template-columns: 1fr;
  }

  .form__submit {
    width: 100%;
    min-width: 0;
  }

  .contact__tel a {
    font-size: 40px;
  }

  .access__info {
    padding: 40px 18px;
  }

  .access__list div {
    grid-template-columns: 72px 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    justify-content: flex-start;
  }
}

/* ============================================
   REDUCED MOTION — 動きをすべて止める
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal],
  html.js .hero__line {
    opacity: 1;
    transform: none;
  }
}
