/* 土木事業ページ固有スタイル
   - Wix: 冒頭は全幅写真（1440×409）＋右側に「土台を、この土地に。／Civil Engineering」
   - 工事内容 01〜07（番号・見出し・本文・右に写真 296×182）
   - Quality: 紫地（--purple）に白文字・ISO 3枠が横並び
   - Case: 3列の表（見出し紫文字・薄紫の罫線）                    */

/* ---------- 冒頭ビジュアル ---------- */
.civil-hero { padding-top: var(--header-h); }
.civil-hero-stage { position: relative; }
.civil-hero-visual { position: relative; width: 100%; aspect-ratio: 2880 / 818; overflow: hidden; background: #dfe9ee; }
.civil-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 72%; }
.civil-hero-copy { position: absolute; left: 62%; top: 50%; transform: translateY(-50%); width: min(520px, 38vw); padding: 28px 48px; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.86) 14%, rgba(255, 255, 255, 0.86) 86%, rgba(255, 255, 255, 0) 100%); }
.civil-hero-copy h1 { font-size: clamp(20px, 1.65vw, 24px); font-weight: 400; letter-spacing: 0.18em; line-height: 1.6; white-space: nowrap; }
.civil-hero-copy .en { margin-top: 10px; font-size: 13px; letter-spacing: 0.2em; line-height: 1.6; }
.civil-hero .breadcrumb.is-left { justify-content: flex-start; margin-top: 18px; }

/* ---------- 工事内容 ---------- */
.works { padding-bottom: var(--sec-pad); }
.work-list { margin-top: var(--head-gap); }
.work-item {
  display: grid;
  grid-template-columns: 90px 1fr 296px;
  align-items: center;
  column-gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.2vw, 28px) 0;
}
.work-item .num { font-size: 18px; letter-spacing: 0.06em; line-height: 1; color: #ababab; padding-top: 3px; }
.work-item h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: 0.2em; line-height: 1.5; }
.work-item .text { margin-top: 10px; color: var(--ink); }
.work-item img { width: 100%; height: auto; aspect-ratio: 592 / 364; object-fit: cover; }

/* ---------- Quality ｜ 品質と安全 ---------- */
.quality { background: var(--purple); color: #fff; }
.quality .sec-label { color: rgba(255, 255, 255, 0.85); }
.quality .sec-title { color: #fff; }
.iso-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--head-gap); }
.iso-card { border: 1px solid rgba(255, 255, 255, 0.55); padding: clamp(28px, 3vw, 38px) clamp(24px, 3vw, 40px); }
.iso-card + .iso-card { border-left: 0; }
.iso-card h3 { font-size: 19px; font-weight: 700; letter-spacing: 0.2em; line-height: 1.4; }
.iso-card p { margin-top: 18px; font-size: 14px; line-height: 1.9; letter-spacing: 0.08em; }
.cert-list { margin-top: var(--head-gap); display: grid; gap: 8px; text-align: center; }
.cert-list li { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: 0.2em; line-height: 1.6; }

/* ---------- Case ｜ 施工実績 ---------- */
.table-wrap { margin-top: var(--head-gap); overflow-x: auto; }
.case-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.case-table col.c-year { width: 96px; }
.case-table col.c-place { width: 200px; }
.case-table td:first-child { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.case-table th, .case-table td { padding: 18px 12px; border-bottom: 1px solid #e9d8f3; }
.case-table th { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.16em; color: var(--purple); }
.case-table td { font-size: 16px; letter-spacing: 0.08em; line-height: 1.8; }
.case-table thead th { border-top: 1px solid #e9d8f3; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .work-item { grid-template-columns: 56px 1fr 240px; }
  .iso-grid { grid-template-columns: 1fr; }
  .iso-card + .iso-card { border-left: 1px solid rgba(255, 255, 255, 0.55); border-top: 0; }
}
@media (max-width: 760px) {
  .civil-hero-visual { aspect-ratio: 4 / 3; }
  .civil-hero-img { object-position: 30% 45%; }
  .civil-hero-copy { position: absolute; left: 0; right: 0; top: auto; bottom: 20px; transform: none; width: auto; padding: 16px var(--gutter); text-align: left; }
  .civil-hero-copy h1 { font-size: clamp(19px, 5.4vw, 22px); white-space: normal; }
  .civil-hero-copy .en { margin-top: 6px; }
  .civil-hero .breadcrumb.is-left { justify-content: flex-start; margin-top: 16px; }
  /* スマホ: 写真 → 番号＋見出し → 本文 を全幅で縦に */
  .work-item { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 40px; border: 0; }
  .work-item .body { min-width: 0; }
  .work-item img { order: 1; width: 100%; aspect-ratio: 16 / 10; }
  .work-item .num { order: 2; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 0; font-size: 13px; letter-spacing: 0.2em; color: var(--purple); }
  .work-item .num::after { content: ""; width: 24px; height: 1px; background: var(--purple); }
  .work-item .body { order: 3; }
  .work-item h3 { margin-top: 6px; font-size: 18px; }
  .work-item .text { margin-top: 8px; }
  .cert-list { text-align: center; }
  .cert-list li { font-size: 16px; letter-spacing: 0.12em; }
  /* スマホ: 3列表を「完成年月＋場所／工事名」の2段カードに */
  .case-table thead { display: none; }
  .case-table, .case-table tbody, .case-table tr, .case-table td { display: block; }
  .case-table col { display: none; }
  .case-table tr { padding: 14px 4px; border-bottom: 1px solid #e9d8f3; }
  .case-table tr:first-child { border-top: 1px solid #e9d8f3; }
  .case-table td { padding: 0; border: 0; font-size: 15px; }
  .case-table td:first-child { display: inline; font-size: 13px; }
  .case-table td:first-child::after { content: "　"; }
  .case-table td:last-child { display: inline; font-size: 13px; color: var(--ink-soft); }
  .case-table td:nth-child(2) { margin-top: 4px; line-height: 1.7; }
  .case-table tr { display: flex; flex-direction: column; }
  .case-table td:first-child { order: 1; }
  .case-table td:last-child { order: 2; margin-top: -1.3em; margin-left: 5.2em; }
  .case-table td:nth-child(2) { order: 3; }
}

.sample-note { font-size: 13px; color: var(--ink-soft); text-align: center; line-height: 1.8; margin-bottom: 20px; }

.civil-hero-copy .hero-sub { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: 0.16em; line-height: 1.6; }

.quality-actions { margin-top: 40px; text-align: center; }
.quality-lead { font-size: 14px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.9); margin-bottom: 18px; }
.quality .btn.is-white { background: #fff; color: var(--ink); border-color: #fff; }
.quality .btn.is-white:hover { background: var(--purple-deep); color: #fff; }
.quality .btn.is-light { background: transparent; color: #fff; border-color: #fff; }
.quality .btn.is-light:hover { background: #fff; color: var(--purple); }

.quality-more { margin-top: 18px; font-size: 13px; letter-spacing: 0.08em; }
.quality-more a { color: rgba(255, 255, 255, 0.9); text-decoration: underline; text-underline-offset: 0.4em; text-decoration-thickness: 1px; }
.quality-more a:hover { color: #fff; }
