@charset "UTF-8";

/* =========================================================
   利根建設株式会社 ご提案専用サンプル
   テーマ：図面と現場
   配色の出どころはすべて先方のロゴ・現行サイトの実測
   ========================================================= */

:root {
  color-scheme: only light;

  /* --- 色 --- */
  --blue: #0280ba; /* ロゴマークの実測色。線・図形に使う */
  --blue-text: #026d9c; /* 上の青を文字用に少し暗くしたもの（白地でコントラスト4.5以上） */
  --blue-dark: #0b3550; /* 見出し・帯 */
  --ink: #152b3c; /* 本文 */
  --ink-soft: #4a6274; /* 補助テキスト */
  --paper: #f4f7f9; /* 図面の地 */
  --rule: #c9d6de; /* 細罫 */
  --rule-soft: #e3ebf0;
  --red: #c0432b; /* 朱書き（表彰・強調）少量だけ */
  --white: #ffffff;

  /* --- 文字サイズ（03レビューゲートの18px仕様が正本） --- */
  --fs-body: 18px;
  --fs-lead: 20px;
  --fs-h4: 20px;
  --fs-h3: 24px;
  --fs-label: 15px;
  --fs-note: 14px;

  /* --- 幅 --- */
  --container: 1120px;
  --measure: 700px; /* 本文1行35〜45文字 */

  /* --- 書体（外部読み込みなし。端末にあるものだけ） --- */
  --font-base:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", meiryo, sans-serif;
  --font-num:
    ui-monospace, "SF Mono", "SFMono-Regular", menlo, consolas, "Courier New",
    monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.8;
  font-weight: 400;
}

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

figure {
  margin: 0;
}

a {
  color: var(--blue-text);
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0 0 1.4em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.measure {
  max-width: var(--measure);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   オープニング（社名を1回だけ大きく出して、すぐ消す）
   ・JSが動かなくてもCSSだけで消える（fill-mode forwards）
   ・動きを減らす設定の人には最初から出さない
   ========================================================= */

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--white);
  animation: splash-out 0.55s ease-in 1.15s forwards;
}

.splash img {
  width: 62vw;
  max-width: 560px;
  min-width: 240px;
  animation: splash-in 0.8s ease-out both;
}

@keyframes splash-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splash-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    display: none;
  }
}

/* =========================================================
   ご提案専用の注記バー（図面の朱書きに見立てる）
   ※濃色ベタにしない＝下の白ヘッダーが「隙間」に見えるのを防ぐ
   ========================================================= */

.proposal-note {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-note);
  line-height: 1.7;
  color: var(--ink-soft);
}

.proposal-note .container {
  padding-block: 10px;
  border-left: 3px solid var(--red);
}

.proposal-note strong {
  color: var(--red);
  font-weight: 700;
}

/* =========================================================
   ヘッダー
   ========================================================= */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 50;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.site-logo img {
  width: 236px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-tel {
  text-align: right;
  line-height: 1.3;
}

.header-tel .label {
  display: block;
  font-size: var(--fs-note);
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.header-tel a {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}

/* ナビ（下段・全幅） */
.site-nav {
  border-top: 1px solid var(--rule-soft);
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 14px 26px;
  font-size: var(--fs-body);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-text);
  border-bottom-color: var(--blue);
}

.nav-toggle {
  display: none;
}

/* =========================================================
   第一画面（骨格C＝分割ヒーロー）
   写真は暗く潰さない。文字は左の白い面に置く
   ========================================================= */

.hero {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.hero-inner {
  padding-block: 54px 60px;
  text-align: center;
}

/* 大きな見出しだけ明朝にする（サイト内で唯一の使いどころ） */
.hero-catch {
  font-family:
    "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: clamp(32px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.04em;
  color: var(--blue-dark);
  margin: 0 0 26px;
}

.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--ink);
  margin: 0 auto 40px;
  max-width: 760px;
}

/* 丸枠の4分野＝黄金比（フィボナッチの正方形分割）に円を入れる
   ・正方形の一辺は W の 61.8% → 38.2% → 23.6% → 14.6%
     （1 ÷ 1.618 を繰り返した数。図の渦巻きと同じ割り方）
   ・枠全体の縦横比も 1 : 1.618
   ・大きさは「掲載実績の多い分野」に対応させる
     上下水道34件＝最大／道路27件＝2番目／舗装／造園（実例なし）＝最小 */
.hero-circles {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 1.618 / 1;
  margin: 0 auto 56px;
}

.hero-circles li {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 正方形の割り付け（左＝最大、右上、右下、右下すみ） */
.hero-circles .c1 {
  left: 0;
  top: 0;
  width: 61.8%;
}

.hero-circles .c2 {
  left: 61.8%;
  top: 0;
  width: 38.2%;
}

.hero-circles .c3 {
  left: 61.8%;
  top: 61.8%;
  width: 23.6%;
}

.hero-circles .c4 {
  left: 85.4%;
  top: 61.8%;
  width: 14.6%;
}

.hero-circles .circle {
  display: block;
  width: 82%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--rule);
}

.hero-circles .circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-circles .circle-label {
  margin-top: 10px;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-circles .c3 .circle-label {
  font-size: var(--fs-label);
  margin-top: 8px;
}

.hero-circles .c4 .circle-label {
  font-size: var(--fs-note);
  margin-top: 6px;
}

.hero-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--rule);
  margin: 0 auto 26px;
  max-width: 620px;
}

.hero-figures li {
  flex: 1 1 0;
  min-width: 120px;
  padding: 14px 8px 12px;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.hero-figures li:last-child {
  border-right: 0;
}

.hero-figures .fig-num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}

.hero-figures .fig-num small {
  font-size: var(--fs-h4);
  margin-left: 2px;
}

.hero-figures .fig-label {
  display: block;
  font-size: var(--fs-label);
  color: var(--ink-soft);
  margin-top: 2px;
}

.hero-note {
  font-size: var(--fs-note);
  color: var(--ink-soft);
  margin: 22px 0 0;
}

/* 意味のかたまりで折り返す（1文字だけの泣き別れ防止） */
.chunk {
  display: inline-block;
}

.sec-motto {
  display: block;
  font-size: var(--fs-h3);
  color: var(--blue-dark);
  margin-bottom: 8px;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: var(--fs-body);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-tel .tel-num {
  font-family: var(--font-num);
  font-size: 24px;
  letter-spacing: 0.01em;
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
  border-color: var(--blue-dark);
}

/* =========================================================
   セクション共通（図面の通し番号＋巨大な薄い英字）
   ========================================================= */

.section {
  padding-block: 72px;
  position: relative;
  overflow: hidden;
}

.section-paper {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}

.sec-head {
  position: relative;
  margin-bottom: 40px;
}

.sec-head .sec-en {
  position: absolute;
  top: -0.45em;
  left: -4px;
  font-family: var(--font-num);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rule);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.sec-no {
  position: relative;
  font-family: var(--font-num);
  font-size: var(--fs-label);
  color: var(--blue-text);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 6px;
}

.sec-head h2 {
  position: relative;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--blue-dark);
}

.sec-head .sec-desc {
  position: relative;
  margin: 14px 0 0;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* =========================================================
   ③ やってきた仕事（写真を大きく・左右交互）
   ========================================================= */

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: 34px;
  border-top: 1px solid var(--rule);
}

.field:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.field:nth-child(even) .field-photo {
  order: 2;
}

.field-body h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--blue-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.field-body h3 .count {
  font-family: var(--font-num);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--white);
  background: var(--blue-text);
  padding: 3px 10px;
}

.field-examples {
  margin: 0 0 18px;
}

.field-examples dt {
  font-size: var(--fs-label);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.field-examples dd {
  margin: 0 0 4px;
  padding-left: 16px;
  position: relative;
  font-size: var(--fs-body);
}

.field-examples dd::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--blue);
}

.field-note {
  font-size: var(--fs-note);
  color: var(--ink-soft);
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* =========================================================
   ④ 施工実績アーカイブ（見せ場）
   ========================================================= */

.filter {
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 18px 20px 14px;
  margin-bottom: 26px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.filter-row:last-of-type {
  margin-bottom: 0;
}

.filter-label {
  font-size: var(--fs-label);
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  width: 5.5em;
  flex-shrink: 0;
}

.chip {
  font-family: inherit;
  font-size: var(--fs-label);
  line-height: 1.5;
  padding: 9px 16px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chip:hover {
  border-color: var(--blue-text);
  color: var(--blue-text);
}

.chip[aria-pressed="true"] {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
}

.chip .c-num {
  font-family: var(--font-num);
  opacity: 0.75;
}

.chip-award[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
}

.result-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-dark);
  margin-bottom: 22px;
}

.result-count {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--blue-dark);
}

.result-count .n {
  font-family: var(--font-num);
  font-size: 30px;
  color: var(--blue-text);
  margin-inline: 4px;
}

.result-note {
  font-size: var(--fs-note);
  color: var(--ink-soft);
}

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}

.work {
  border: 1px solid var(--rule);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.work-photo {
  position: relative;
  background: var(--paper);
}

.work-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-award {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--red);
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 700;
  padding: 5px 12px;
  letter-spacing: 0.04em;
}

.work-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-cat {
  font-size: var(--fs-note);
  color: var(--blue-text);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.work-name {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}

.work-meta {
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: var(--fs-note);
  color: var(--ink-soft);
}

.work-meta .ym {
  font-family: var(--font-num);
  font-size: var(--fs-label);
  color: var(--ink);
}

.work-meta .amount {
  font-family: var(--font-num);
}

.work-award-full {
  font-size: var(--fs-note);
  color: var(--red);
  margin-top: 8px;
  line-height: 1.6;
}

.more-wrap {
  text-align: center;
  margin-top: 34px;
}

.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--ink-soft);
}

/* =========================================================
   ⑤ 信用の根拠（1区画に集約）
   ========================================================= */

.badges {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}

.badge {
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.badge img {
  width: 96px;
  height: 66px;
  object-fit: contain;
}

.badge-mark {
  width: 66px;
  height: 66px;
  border: 2px solid var(--blue);
  color: var(--blue-text);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.badge-body .t {
  display: block;
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.45;
}

.badge-body .d {
  display: block;
  font-size: var(--fs-note);
  color: var(--ink-soft);
  margin-top: 5px;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}

.block-title {
  font-size: var(--fs-h3);
  color: var(--blue-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-dark);
  margin-bottom: 18px;
}

.licence dt {
  font-size: var(--fs-label);
  color: var(--white);
  background: var(--blue-dark);
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 8px;
}

.licence dd {
  margin: 0 0 20px;
}

.licence .no {
  font-family: var(--font-num);
  font-size: var(--fs-label);
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}

.licence .types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.licence .types li {
  font-size: var(--fs-label);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  background: var(--white);
}

.award-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

.award-list .n {
  font-family: var(--font-num);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

.award-list .n small {
  font-size: var(--fs-label);
  margin-left: 2px;
  color: var(--ink-soft);
}

.equip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.equip-photos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.equip-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.equip-list {
  columns: 3;
  column-gap: 30px;
  font-size: var(--fs-label);
  color: var(--ink);
}

.equip-list li {
  padding: 3px 0;
  break-inside: avoid;
}

details.fold {
  border: 1px solid var(--rule);
  background: var(--white);
  margin-top: 18px;
}

details.fold > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--blue-dark);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

details.fold > summary::-webkit-details-marker {
  display: none;
}

details.fold > summary::before {
  content: "＋";
  font-family: var(--font-num);
  color: var(--blue);
}

details.fold[open] > summary::before {
  content: "－";
}

details.fold .fold-body {
  padding: 4px 18px 20px;
  border-top: 1px solid var(--rule-soft);
}

/* =========================================================
   ⑥ 会社案内
   ========================================================= */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.greeting p:last-child {
  margin-bottom: 0;
}

.greeting-photo {
  margin-bottom: 22px;
}

.greeting-photo figcaption {
  font-size: var(--fs-note);
  color: var(--ink-soft);
  padding-top: 8px;
}

.profile {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}

.profile th,
.profile td {
  border-bottom: 1px solid var(--rule);
  padding: 13px 4px;
  text-align: left;
  vertical-align: top;
}

.profile th {
  width: 8.5em;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: var(--fs-label);
  white-space: nowrap;
}

.profile td .num {
  letter-spacing: 0.01em;
}

/* =========================================================
   ⑧ アクセス・お問い合わせ
   ========================================================= */

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.map-frame {
  border: 1px solid var(--rule);
  background: var(--paper);
  aspect-ratio: 4 / 3;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-box {
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 26px 26px 28px;
}

.contact-box .tel-big {
  display: inline-flex;
  align-items: center;
  min-height: 48px; /* 指で押せる大きさ */
  font-family: var(--font-num);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  color: var(--blue-dark);
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.contact-box .tel-sub {
  font-size: var(--fs-label);
  color: var(--ink-soft);
  display: block;
  margin-bottom: 18px;
}

/* =========================================================
   フッター
   ========================================================= */

.site-footer {
  background: var(--blue-dark);
  color: #d7e3ea;
  padding-block: 44px 30px;
  font-size: var(--fs-label);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.footer-name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-en {
  font-family: var(--font-num);
  font-size: var(--fs-note);
  letter-spacing: 0.14em;
  color: #9fc0d3;
  display: block;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a,
.site-footer a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 40%);
}

.footer-note {
  padding-top: 22px;
  font-size: var(--fs-note);
  line-height: 1.8;
  color: #b9cedb;
}

.copyright {
  font-family: var(--font-num);
  letter-spacing: 0.04em;
  margin-top: 14px;
  display: block;
  color: #9fc0d3;
}

/* スマホ下部の固定電話バー */
.sp-callbar {
  display: none;
}

/* =========================================================
   動き（3つだけ）
   ========================================================= */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-logo,
.hero-catch,
.hero-lead,
.hero-circles,
.hero-figures,
.hero-actions {
  animation: rise 0.7s ease-out both;
}

.hero-catch {
  animation-delay: 0.08s;
}

.hero-lead {
  animation-delay: 0.18s;
}

.hero-circles {
  animation-delay: 0.28s;
}

.hero-figures {
  animation-delay: 0.38s;
}

.hero-actions {
  animation-delay: 0.46s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.works.is-swapped .work {
  animation: fadein 0.35s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   タブレット
   ========================================================= */

@media (width <= 1000px) {
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equip-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .equip-list {
    columns: 2;
  }

  .trust-grid,
  .company-grid,
  .access-grid,
  .local {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-inner {
    padding-block: 40px 46px;
  }

  .hero-circles {
    max-width: 620px;
  }

  .field {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .field:nth-child(even) .field-photo {
    order: 0;
  }
}

/* =========================================================
   スマートフォン
   ========================================================= */

@media (width <= 767px) {
  body {
    padding-bottom: 74px; /* 下部固定バーのぶん */
  }

  .header-top {
    padding-block: 11px;
  }

  .site-logo img {
    width: 178px;
  }

  .header-contact {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: var(--fs-label);
    font-weight: 700;
    color: var(--white);
    background: var(--blue-dark);
    border: 0;
    padding: 11px 16px;
    min-height: 44px;
    cursor: pointer;
  }

  .nav-toggle .bars {
    display: grid;
    gap: 3px;
  }

  .nav-toggle .bars span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 10px 22px rgb(21 43 60 / 12%);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav li {
    border-bottom: 1px solid var(--rule-soft);
  }

  .site-nav a {
    padding: 16px 20px;
    border-bottom: 0;
  }

  .section {
    padding-block: 48px;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  /* スマホは黄金比の重ね配置をやめて、2列の規則配列に戻す
     （縦に積むとずらしが意味を失い、重なって読めなくなる） */
  .hero-circles {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    max-width: 330px;
    aspect-ratio: auto;
  }

  .hero-circles li,
  .hero-circles .c1,
  .hero-circles .c2,
  .hero-circles .c3,
  .hero-circles .c4 {
    position: static;
    width: auto;
    margin-top: 0;
  }

  .hero-circles .circle {
    width: 100%;
  }

  .hero-circles .circle-label,
  .hero-circles .c3 .circle-label,
  .hero-circles .c4 .circle-label {
    font-size: var(--fs-label);
    margin-top: 9px;
  }

  .hero-figures li {
    min-width: 33%;
  }

  .works {
    grid-template-columns: minmax(0, 1fr);
  }

  .equip-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .equip-list {
    columns: 1;
  }

  .filter-label {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .sp-callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--blue-dark);
    padding: 8px 12px;
    border-top: 1px solid rgb(255 255 255 / 25%);
  }

  .sp-callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    background: var(--white);
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-body);
  }

  .sp-callbar .tel-num {
    font-family: var(--font-num);
    font-size: 23px;
  }
}

/* ごあいさつの導入（先方の企業理念の言葉） */
.greeting-lead {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.5;
  margin-bottom: 0.9em;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

/* =========================================================
   新着情報（日付つき一覧）
   ========================================================= */

.news-list {
  border-top: 1px solid var(--rule);
}

.news-list li {
  display: grid;
  grid-template-columns: 10.5em 6em minmax(0, 1fr);
  gap: 4px 18px;
  align-items: baseline;
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule);
}

.news-date {
  font-size: var(--fs-label);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.news-tag {
  font-size: var(--fs-note);
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  color: var(--white);
}

.news-tag--work {
  background: var(--blue-dark);
}

.news-tag--local {
  background: var(--blue-text);
}

.news-title {
  font-size: var(--fs-body);
  line-height: 1.65;
}

.news-note {
  font-size: var(--fs-note);
  color: var(--ink-soft);
  margin: 16px 0 0;
}

@media (width <= 767px) {
  .news-list li {
    grid-template-columns: auto 6em;
    row-gap: 8px;
  }

  .news-title {
    grid-column: 1 / -1;
  }
}
