/* ============================================================
   esg.css — 奥田商工 ESGの取り組みページ
   ============================================================ */


/* ============================
   ページヒーロー（他サブページと統一）
============================ */
.page-hero {
  background: #6a9a6a center/cover no-repeat;
  /* background-image: ACF動的出力 (default: esg-top.png) */
  margin-top: 0;
  height: 450px;
}

.page-hero-title-box {
  margin-left: auto;
  margin-right: 0;
  background: rgba(255, 255, 255, 0.88);
  padding: 28px 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-en { display: none; }
.page-hero-line { display: none; }

.page-hero-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 3px;
  white-space: nowrap;
}

/* ページ内ナビ */
.page-subnav {
  background: #fff;
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 110px;
  z-index: 90;
}

.page-subnav-list {
  display: flex;
}

.page-subnav-link {
  display: block;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  border-right: 1px solid var(--gray-line);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.page-subnav-link:first-child { border-left: 1px solid var(--gray-line); }

.page-subnav-link:hover,
.page-subnav-link.active {
  background: var(--navy);
  color: #fff;
}


/* ============================
   イントロダクション
============================ */
.esg-intro {
  padding: 80px 0 32px;
  background: #fff;
}

.esg-intro-head {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.esg-intro-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.esg-intro-text {
  font-size: 16px;
  color: #444;
  line-height: 1.9;
  text-align: left;
}

/* ============================
   ESGとSDGs ボックス
============================ */
.esg-concept-box {
  background: #63BFE433;
  border-radius: 16px;
  padding: 40px 48px;
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.esg-concept-box-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 8px;
  margin-bottom: 0;
}

.esg-box-row {
  display: grid;
  grid-template-columns: 84px 220px 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid #b0ccd8;
}

.esg-box-label {
  background: #0C2C5D;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 110px;
  border-radius: 8px;
  flex-shrink: 0;
}

.esg-box-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
}

.esg-box-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #333;
}

.esg-box-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.esg-box-icon-circle svg {
  width: 26px;
  height: 26px;
}

.esg-box-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.9;
}

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

/* SDGs ブランドロゴ */
.esg-sdgs-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ESG / SDGs カード（旧、非使用） */
.esg-concept-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  overflow: hidden;
}

.esg-concept-row {
  display: grid;
  grid-template-columns: 120px 280px 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--gray-line);
}

.esg-concept-row:last-child {
  border-bottom: none;
}

/* ESG / SDGs ラベル */
.esg-concept-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  min-height: 72px;
}

.esg-label-esg {
  background: var(--navy);
  color: #fff;
  letter-spacing: 3px;
}

.esg-label-sdgs {
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  border: 2px solid #1a9be0;
}

.sdgs-label-en {
  font-size: 11px;
  font-weight: 700;
  color: #1a9be0;
  letter-spacing: 2px;
}

.sdgs-label-sub {
  font-size: 7px;
  font-weight: 400;
  color: #1a9be0;
  line-height: 1.4;
  text-align: center;
}

.sdgs-label-sub strong {
  font-size: 10px;
  font-weight: 900;
}

/* ESG ピル（環境・社会・ガバナンス） */
.esg-concept-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.esg-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 72px;
}

.esg-pill-icon {
  font-size: 20px;
}

.esg-pill-e { background: #3fa56b; }
.esg-pill-s { background: #e8722a; }
.esg-pill-g { background: var(--navy); }

/* SDGs カラーバー */
.sdgs-color-bar {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  align-items: center;
}

.sdgs-color-bar span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.esg-concept-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.85;
}


/* ============================
   当社が取り組んでいること（ダイアグラム）
============================ */
.esg-diagram-section {
  padding: 40px 0 88px;
  background: #fff;
}

.esg-diagram-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 56px;
}

.esg-diagram {
  display: flex;
  justify-content: center;
  max-width: 740px;
  margin: 0 auto;
}

.esg-circle-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 中央アイコン */
.esg-diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  z-index: 3;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.esg-diagram-center svg {
  width: 100%;
  height: 100%;
}

/* バブル共通 */
.esg-diagram-bubble {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  margin: 8px;
  position: relative;
  z-index: 2;
}

.esg-bubble-e {
  grid-column: 1 / 4;
  border-top: 4px solid #3fa56b;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 20px;
}

.esg-bubble-s {
  grid-column: 1 / 2;
  border-top: 4px solid var(--orange);
}

.esg-bubble-g {
  grid-column: 3 / 4;
  border-top: 4px solid var(--navy);
}

/* Environment バブルは横並び */
.esg-bubble-e .bubble-en {
  font-size: 22px;
  font-weight: 900;
  color: #3fa56b;
  white-space: nowrap;
  align-self: center;
}

.esg-bubble-e .bubble-ja {
  font-size: 12px;
  color: var(--text-sub);
  align-self: center;
  white-space: nowrap;
}

.esg-bubble-e .bubble-list {
  font-size: 12px;
  color: #555;
}

.esg-bubble-s .bubble-en,
.esg-bubble-g .bubble-en {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.esg-bubble-s .bubble-en { color: var(--orange); }
.esg-bubble-g .bubble-en { color: var(--navy); }

.bubble-ja {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.bubble-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

.bubble-list li::before {
  content: '・';
  color: var(--teal);
}


/* ============================
   E / S / G セクション共通バナー
============================ */
.esg-sec-banner {
  padding: 60px 0 48px;
  background: #D6E1E3;
}

.esg-bg-word {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 100px;
  line-height: 1;
  color: rgba(255,255,255,0.65);
  pointer-events: none;
  user-select: none;
  text-align: center;
  display: block;
  width: 100%;
  margin-bottom: 24px;
}

.esg-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.esg-banner-en {
  font-size: 56px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1;
}

.esg-initial {
  font-size: 72px;
  color: #2A88B4;
}

.esg-banner-ja {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.esg-sdgs-icon-img {
  height: 72px;
  width: auto;
  display: block;
}

/* SDGs バッジ */
.sdgs-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sdgs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}


/* ============================
   コンテンツブロック（画像 + テキスト交互）
============================ */
.esg-sec-body {
  padding: 72px 0 80px;
  background: #fff;
}

.esg-content-block {
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 72px;
  align-items: flex-start;
}

.esg-content-block--rev {
  flex-direction: row;
}

.esg-content-block:last-child {
  margin-bottom: 0;
}

/* 写真エリア */
.esg-content-photo {
  flex: 0 0 40%;
  aspect-ratio: 4 / 3;
  background: #c8d8e4 center/cover no-repeat;
  border-radius: 16px;
}

/* 仮の画像色分け */
/* 写真 — ACF動的出力 */
.esg-photo-env1  { /* background-image: ACF動的出力 (default: esg-enviroment1.png) */ }
.esg-photo-co2   { /* background-image: ACF動的出力 (default: esg-enviroment2.png) */ }
.esg-photo-social1 { /* background-image: ACF動的出力 (default: esg-social1.png) */ }
.esg-photo-social2 { /* background-image: ACF動的出力 (default: esg-social2.png) */ }
.esg-photo-social3 { /* background-image: ACF動的出力 (default: esg-social3.png) */ }
.esg-photo-social4 { /* background-image: ACF動的出力 (default: esg-social4.png) */ }
.esg-photo-gov1  { /* background-image: ACF動的出力 (default: esg-gov1.png) */ }

/* CO2 バッジ */
.co2-badge {
  width: 140px;
  height: 140px;
}

.co2-badge svg {
  width: 100%;
  height: 100%;
}

/* テキストエリア */
.esg-content-text {
  flex: 1;
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.esg-content-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 4px;
}

.esg-content-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}


/* ============================
   RESPONSIVE — Tablet (≤ 1024px)
============================ */
@media (max-width: 1024px) {
  .esg-box-row {
    grid-template-columns: 72px 1fr 1fr;
    gap: 16px;
  }
}


/* ============================
   RESPONSIVE — Mobile (≤ 768px)
============================ */
@media (max-width: 768px) {

  /* ヒーロー */
  .page-hero { height: 240px; }
  .page-hero-title-box { padding: 16px 28px; }
  .page-hero-title { font-size: 18px; }

  /* イントロ */
  .esg-intro { padding: 40px 0 40px; }
  .esg-intro-head { max-width: 100%; }
  .esg-intro-title { font-size: 16px; }
  .esg-intro-text { font-size: 14px; }

  /* ESGとSDGs ボックス */
  .esg-concept-box {
    max-width: 100%;
    padding: 24px 16px;
    margin-top: 24px;
  }
  .esg-concept-box-title { font-size: 17px; }
  .esg-box-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .esg-box-label {
    width: 64px;
    height: 64px;
    font-size: 14px;
    margin: 0 auto;
  }
  .esg-group-img { max-width: 180px; margin: 0 auto; }
  .sdgs-logo-img { max-width: 180px; margin: 0 auto; }
  .esg-box-desc { font-size: 13px; text-align: left; }

  /* ダイアグラム */
  .esg-diagram-section { padding: 40px 0 48px; }
  .esg-diagram-title { font-size: 16px; margin-bottom: 32px; }
  .esg-circle-img { width: 100%; }

  /* バナー */
  .esg-sec-banner { padding: 32px 0 32px; }
  .esg-bg-word { font-size: 56px; margin-bottom: 16px; }
  .esg-banner-ja { font-size: 16px; }
  .esg-sdgs-icon-img { height: 52px; }

  /* コンテンツブロック */
  .esg-sec-body { padding: 40px 0 48px; }

  .esg-content-block {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .esg-content-block--rev {
    flex-direction: column-reverse;
    margin-bottom: 48px;
  }

  .esg-content-photo {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .esg-content-text {
    padding: 20px 0 0;
  }

  .esg-content-heading { font-size: 16px; }
}
