/* ============================================================
   equipment-and-technology2 専用スタイル
   参考画像: 修正指示/recruitment-design-reference4.png
   白・ライトグレー・シルバーグレー基調の明るい技術資料型デザイン。
   ../css/style.css の共通トークン（--color-navy 等）とヘッダー／
   フッター／ボタンのスタイルを流用し、本ファイルではページ固有の
   レイアウトのみを定義する。
   ============================================================ */

:root {
  --eq2-max: 1280px;
  --eq2-silver: #f4f5f7;
  --eq2-silver-line: #e3e6ea;
  --eq2-gray-num: #eceef1;
}

/* ----- パンくず -----
   2026-10-05: サイト全ページでパンくずのデザインを統一するため、このページ専用の
   .eq2-breadcrumb* は廃止し、他ページと共通の .sc-breadcrumb（../css/style.css）
   を使用する形に変更した（HTML側も合わせて変更済み）。 */

/* ============ ① キービジュアル ============ */
.eq2-hero {
  background: linear-gradient(180deg, #fdfdfe 0%, #eef0f3 100%);
  overflow: hidden;
}
.eq2-hero__inner {
  max-width: var(--eq2-max);
  margin: 0 auto;
  padding: 56px 24px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 460px;
  position: relative;
  background-image: url("equipment-hero-background.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}
.eq2-hero__content {
  padding: 32px 56px 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eq2-hero__eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-text-light);
}
.eq2-hero__title {
  margin: 0 0 22px;
  /* 2026-10-04: 日本語の大見出し「技術・設備」をゴシック体に変更（既存のサイト共通
     ゴシック体フォント --font-sans を使用）。英語表記(.eq2-hero__eyebrow)や本文には
     適用しない。文字サイズ・太さ・色・行間・位置は変更していない。 */
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}
.eq2-hero__catch {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-navy);
}
.eq2-hero__lead {
  margin: 0;
  max-width: 27em;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--color-text-light);
}
.eq2-hero__media {
  position: relative;
  margin-left: -130px;
  clip-path: polygon(23% 0, 100% 0, 100% 100%, 0% 100%);
}
.eq2-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

/* ============ セクション共通 ============ */
.eq2-section {
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
/* 「構想から設計・製作、検査・据付まで対応」セクションのみ、
   直前セクションとの間の余白を元の1/3に縮小（見出しサイズ・横位置は変更しない） */
#process.eq2-section {
  padding-top: 25px;
}
.eq2-section--white {
  background: #ffffff;
}
.eq2-section--tint {
  background: var(--eq2-silver);
}

/* 01 設計環境：右上に大きな薄いシルバーグレーの多角形＋右端のドット模様 */
#design.eq2-section {
  background-color: #ffffff;
  background-image: url("equipment-section01-background.svg");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 56% auto;
}

/* 02 製作・組立体制：白〜ライトグレーのグラデーション＋大きな多角形＋幾何学模様＋ドット模様（セクション全体） */
#fabrication.eq2-section {
  background-color: var(--eq2-silver);
  background-image: url("equipment-section02-background.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* 03 保有設備・設計環境：右上に薄いグレーの大きな三角形＋右端のドット模様
   （同じSVGを左下にも小さく重ね、控えめなドットのアクセントにする） */
#facilities.eq2-section {
  background-color: #ffffff;
  background-image:
    url("equipment-section03-background.svg"),
    url("equipment-section03-background.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: top right, left bottom;
  background-size: 56% auto, 180px auto;
}
.eq2-section__inner {
  max-width: var(--eq2-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.eq2-section__head {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 22px;
}
.eq2-section__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9px;
  width: calc(100% + 14px);
  height: 2px;
  background: #c20000;
}
.eq2-section__num {
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  background: linear-gradient(135deg, #dde1e8 0%, #8b96a9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translateY(-0.163em);
}
.eq2-section__heading {
  padding-bottom: 8px;
}
.eq2-section__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
}
.eq2-section__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--color-navy);
}

.eq2-lead {
  margin: 18px 0 40px;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--color-text-light);
}

/* ----- ①②共通 2カラム（写真＋仕様表） ----- */
.eq2-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}
.eq2-columns__media {
  position: relative;
  border: 1px solid var(--eq2-silver-line);
  overflow: hidden;
  background: #fff;
}
.eq2-columns__media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

/* 2026-10-18: 「製作・組立体制」の写真に使用していた白いスパークルマーク
   （.eq2-columns__sparkle）は、指示により赤丸（.photo-mark-circle）に
   差し替えたため、このクラスはどのHTMLからも参照されなくなった。
   未使用のため削除（下の該当モバイル用ルールも同様に削除済み）。 */
.eq2-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.eq2-spec-table tr {
  border-bottom: 1px solid var(--eq2-silver-line);
}
.eq2-spec-table tr:first-child {
  border-top: 1px solid var(--eq2-silver-line);
}
.eq2-spec-table th,
.eq2-spec-table td {
  text-align: left;
  padding: 15px 16px;
  font-size: 0.88rem;
  font-weight: 400;
  vertical-align: top;
}
.eq2-spec-table th {
  width: 34%;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}
.eq2-spec-table td {
  color: var(--color-text);
}
.eq2-note {
  margin: 14px 2px 0;
  font-size: 0.76rem;
  color: var(--color-text-light);
}

/* ============ ③ 保有設備カードグリッド ============
   2026-10-17再修正: 指示により残り7件の仕様・説明文（.eq2-card__spec）も
   すべて削除し、設備名のみのコンパクトな統一デザインに変更。
   全カードが「写真（aspect-ratio:4/3、共通）＋名称のみ」という同一構成に
   なったため、.eq2-card__name に固定の min-height とflexによる上下中央配置を
   設定。これにより、名称の文字数・折り返し有無にかかわらず名称エリアの
   高さが全カードで揃い、結果として写真＋名称エリアを合わせたカード全体の
   高さも、マシニングセンタを含むすべてのカードで自然に統一される
   （個別カードへの特別な高さ指定は不要）。
   左右の余白（16px）・背景色・枠線・角丸・フォント・文字サイズは
   既存のまま変更していない。 */
.eq2-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.eq2-card {
  background: #fff;
  border: 1px solid var(--eq2-silver-line);
}
.eq2-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--eq2-silver-line);
}
.eq2-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eq2-card__name {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding: 0 16px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-navy);
}

/* ============ ⑤ プロセス（構想〜据付） ============
   修正指示/構想から設計・製作、検査・据付まで対応2.png に合わせ、
   他ページ（index.html等）の .process-card / .process-grid と
   同一の水色カード・黄色矢印デザインを、このセクション専用の
   eq2- 接頭辞クラスに複製して再現する（共通CSSは変更しない）。 */
.eq2-process-heading {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
}
.eq2-process-lead {
  margin: 0 0 32px;
  font-size: 1.283rem;
  line-height: 1.8;
  color: var(--color-text-light);
  text-align: center;
}
.eq2-process-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  column-gap: 36px;
  row-gap: 20px;
  max-width: 592px;
  margin: 0 auto;
}
.eq2-process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: #eaf2fb;
  border-radius: 10px;
}
.eq2-process-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 35%;
  height: 24px;
  transform: translateX(-50%);
  background: #ffbe06;
  clip-path: polygon(50% 100%, 0% 45%, 30% 45%, 30% 0%, 70% 0%, 70% 45%, 100% 45%);
  z-index: 2;
}
.eq2-process-card--last::after {
  content: none;
}
.eq2-process-card__icon {
  width: 28px;
  height: 28px;
  color: var(--color-navy);
}
.eq2-process-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
}
.eq2-process-card__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--color-text-light);
}
.eq2-process-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}
.eq2-process-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ ⑥ 最終CTA ============ */
.eq2-final-cta {
  background: var(--eq2-silver);
  border-top: 1px solid var(--eq2-silver-line);
  padding: 72px 24px;
  text-align: center;
}
.eq2-final-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.eq2-final-cta__heading {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--color-navy);
}
.eq2-final-cta__lead {
  margin: 0 0 28px;
  font-size: 0.92rem;
  color: var(--color-text-light);
}
.eq2-final-cta__button {
  padding: 0.9em 2.4em;
}

/* ============================================================
   レスポンシブ（スマートフォン）
   ============================================================ */
@media (max-width: 860px) {
  .eq2-hero__inner {
    grid-template-columns: 1fr;
    padding: 32px 20px 0;
    min-height: 0;
    background-image: none;
  }
  .eq2-hero__content {
    margin: 0 -20px;
    padding: 8px 20px 28px;
    background-image: url("equipment-hero-background.svg");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
  }
  .eq2-hero__media {
    margin-left: 0;
    clip-path: none;
  }
  .eq2-hero__media img {
    min-height: 260px;
  }

  .eq2-section {
    padding: 52px 0;
  }
  .eq2-section__inner {
    padding: 0 20px;
  }

  /* 01・03：角の多角形/三角形とドット模様は視認性を優先して非表示 */
  #design.eq2-section,
  #facilities.eq2-section {
    background-image: none;
  }
  /* 02：セクション全体のシルバーグレーの色分けは維持しつつ、模様は縮小して控えめに
     （SVGの高さが足りない分は background-color の薄いシルバーグレーで補う） */
  #fabrication.eq2-section {
    background-size: 100% auto;
    background-position: top center;
  }

  .eq2-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .eq2-columns__media img {
    min-height: 220px;
  }

  .eq2-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .eq2-process-grid {
    grid-template-columns: 1fr;
    max-width: none;
    row-gap: 20px;
  }
  .eq2-process-card::after {
    content: none;
  }
  .eq2-process-photo {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 420px) {
  .eq2-cards {
    grid-template-columns: 1fr;
  }
}
