/* ============================================================
   solar-installation-parts.html（太陽光パネル設置用部材 中間カテゴリーページ）
   専用スタイル。「自動化設備／省力化装置」の中間ページ（automation-labor-saving-
   equipment.html / css/automation-labor-saving-equipment.css）のレイアウト・CSSを
   そのまま複製したもので、内容は同一（セレクタ名も同じ .sc-head* / .sc-categories* を
   使用）。ヘッダー・フッター・ボタン（.btn 等）、最終CTA（.final-cta 等）は
   css/style.css の共通クラスをそのまま使用し、本ファイルではパンくず・
   ページタイトル・カテゴリー一覧・モバイルでのCTAボタンはみ出し防止のみを定義する。
   「構想から設計・製作、検査・据付まで対応」セクション（.process-* 等）は
   このページには存在しないため、該当CSSは複製していない。
   css/automation-labor-saving-equipment.css はこのページから読み込んでおらず、
   そちら自体は変更していない。
   ============================================================ */

/* ----- ページタイトル -----
   大きなキービジュアルは使わず、白背景のシンプルなカテゴリートップにする。 */

.sc-head {
  padding: 48px 24px;
  background: #fff;
}

.sc-head__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.sc-head__title-block {
  flex: 0 0 auto;
}

.sc-head__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-navy);
}

.sc-head__eyebrow {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-accent-blue);
}

/* ----- カテゴリー一覧（縦4項目・写真左／テキスト右） -----
   横並びのカードではなく、専門ページへの導線を縦方向に並べる。
   過度な枠線・影は使わず、十分な余白で「選ぶこと」に集中できる構成にする。 */

.sc-categories {
  padding: 8px 24px 64px;
  background: #fff;
}

.sc-categories__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.sc-categories__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 2026-10-22: 指示により、コンテナ自動保管棚ページの関連製品カード
   （.equip-related-row、css/container-auto-storage-equipment.css）と同じ
   ホバー・リンク仕様に統一。border-radius・transition・cursor・:hover の
   数値（box-shadow・translateY・0.2s ease）は基準ページの既存値をそのまま
   再利用しており、新しいデザインは作成していない。写真サイズ・配置・gap・
   文字サイズ・色には影響しない。 */
.sc-categories__row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.sc-categories__row {
  cursor: pointer;
}

@media (hover: hover) {
  a.sc-categories__row:hover {
    box-shadow: 0 8px 20px rgba(11, 31, 58, 0.12);
    transform: translateY(-2px);
  }
}

.sc-categories__media {
  flex: 0 0 240px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.sc-categories__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.sc-categories__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sc-categories__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: calc(1.15rem + 2.667px);
  font-weight: 700;
  color: var(--color-navy);
}

.sc-categories__bar {
  flex: 0 0 auto;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--color-navy);
}

.sc-categories__desc {
  margin: 0;
  font-size: calc(0.88rem + 2.667px);
  line-height: 1.8;
  color: var(--color-text-light);
}

/* 2026-10-15: 「専用ケーブル」の品切れ文言専用の文字色上書き。
   .sc-categories__desc（フォント・サイズ・太さ・行間・余白）はそのまま継承し、
   color のみ赤（#C62828）に上書きする。このページ内の他3商品の説明文、
   他ページの .sc-categories__desc には影響しない。 */
.sc-categories__desc--out-of-stock {
  color: #C62828;
}

/* ----- 詳しく見る（説明文の下に独立配置するテキストリンク） -----
   4項目とも同じ位置・文字サイズ・余白になるよう共通クラスで統一している。
   4項目すべて既存の商品ページへの <a> として実装している。 */
.sc-categories__more {
  display: block;
  margin-top: 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}

a.sc-categories__more {
  color: #e5342b;
}

.sc-categories__more-arrow {
  margin-left: 6px;
  color: #e5342b;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

a.sc-categories__more:hover,
a.sc-categories__more:hover .sc-categories__more-arrow {
  color: #b9281f;
}

a.sc-categories__more:hover {
  text-decoration: underline;
}

a.sc-categories__more:hover .sc-categories__more-arrow {
  transform: translateX(4px);
}

/* ----- 最終CTA -----
   .final-cta / .final-cta__inner / .final-cta__sub-note は css/style.css の
   共通ルールを使用。.final-cta__buttons のみ、自動化設備／省力化装置ページと
   同じ内容をこのページ用に用意している。 */

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

/* 2026-10-13追記：ボタン文言が「太陽光パネル設置用部材について相談する」に
   変更され長くなったため、スマートフォン幅で文字がはみ出さないように
   対応。.btn自体（display:inline-block、padding、font-size等、css/style.css）は
   変更せず、このページでのみ white-space を解除して2行までの折り返しを許可する
   （文字サイズ・書体・太さ・色・背景・角丸・ホバー効果は一切変更していない）。 */
@media (max-width: 480px) {
  .final-cta__buttons .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ===== MOBILE =====
   写真とテキストの横並びを、狭い画面では自然に縦積みへ切り替える。
   横スクロールは発生しない。 */
@media (max-width: 767px) {
  .sc-head {
    padding: 32px 20px;
  }

  .sc-head__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sc-head__title {
    font-size: 1.6rem;
  }

  .sc-categories {
    padding: 0 20px 48px;
  }

  .sc-categories__list {
    gap: 20px;
  }

  .sc-categories__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sc-categories__media {
    flex: none;
    width: 100%;
  }

  .sc-categories__more {
    margin-top: 12px;
  }
}
