.esg-root *, .esg-root *::before, .esg-root *::after { box-sizing: border-box; margin: 0; padding: 0; }

.esg-root {
  --brand: #00479d;
  --brand-dark: #002d66;
  --env: #2e7d32;
  --env-light: #e8f5e9;
  --env-bg: #f1f8e9;
  --soc: #e65100;
  --soc-light: #fff3e0;
  --soc-bg: #fbe9e7;
  --gov: #1565c0;
  --gov-light: #e3f2fd;
  --gov-bg: #e8eaf6;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #888;
  --bg-warm: #faf8f5;
  --bg-section: #f5f3ef;
  --border: #e0dcd5;
  font-family: Arial, "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
  font-weight: 400;
  overflow-x: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.esg-root img { max-width: 100%; height: auto; display: block; }
.esg-root picture { display: block; }
.esg-root p:empty { display: none; }
.esg-root .p-entry__body p:empty { display: none; }

/* wpautop wraps img in <p>, then EWWW converts to <picture> inside <p> */
.esg-section-hero > p { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; z-index: 0; }
.esg-section-hero > p picture,
.esg-section-hero > p img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.esg-block-img > p,
.esg-gallery-item > p,
.esg-photo-pair-item > p { margin: 0; padding: 0; line-height: 0; }
.esg-gallery-item > p picture,
.esg-gallery-item > p img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.5s ease; }
.esg-photo-pair-item > p picture,
.esg-photo-pair-item > p img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.esg-block-img > p picture,
.esg-block-img > p img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.esg-vision-cycle > p { margin: 0; padding: 0; text-align: center; }
.esg-vision-cycle > p picture,
.esg-vision-cycle > p img { max-width: 180px; margin: 0 auto; filter: brightness(0) invert(1); opacity: 0.4; }

/* ===== INTRO HERO ===== */
.esg-intro-hero {
  position: relative;
  background: none;
  padding: 100px 40px 90px;
  text-align: center;
  overflow: hidden;
}

.esg-intro-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.esg-intro-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-warm), transparent);
}

.esg-intro-tagline {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #9e8c6c;
  text-transform: uppercase;
  margin-bottom: 30px;
  position: relative;
}

.esg-intro-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 19px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 2.4;
  max-width: 680px;
  margin: 0 auto 40px;
  position: relative;
}

.esg-intro-statement {
  font-family: 'Shippori Mincho', serif;
  font-size: 30px;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 0.15em;
  line-height: 2;
  margin-bottom: 20px;
  position: relative;
}

.esg-intro-sub {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  position: relative;
  letter-spacing: 0.05em;
}

/* ===== ESGとは ===== */
.esg-about {
  background: var(--bg-warm);
  padding: 80px 40px;
}

.esg-about-inner {
  max-width: 880px;
  margin: 0 auto;
}

.esg-about-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.esg-about-letters {
  display: flex;
  gap: 6px;
}

.esg-about-letters span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
}

.esg-about-letters span:nth-child(1) { background: var(--env); }
.esg-about-letters span:nth-child(2) { background: var(--soc); }
.esg-about-letters span:nth-child(3) { background: var(--gov); }

.esg-about-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.esg-about-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 2.2;
  color: var(--text);
}

.esg-about-text p { margin-bottom: 18px; }
.esg-about-text p:last-child { margin-bottom: 0; }

/* ===== SECTION HERO BANNERS ===== */
.esg-section-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.esg-section-hero > picture,
.esg-section-hero img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esg-section-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.esg-section-hero.env .esg-section-hero-overlay {
  background: linear-gradient(135deg, rgba(46,125,50,0.82) 0%, rgba(27,94,32,0.72) 100%);
}

.esg-section-hero.soc .esg-section-hero-overlay {
  background: linear-gradient(135deg, rgba(230,81,0,0.82) 0%, rgba(191,54,12,0.72) 100%);
}

.esg-section-hero.gov .esg-section-hero-overlay {
  background: linear-gradient(135deg, rgba(21,101,192,0.82) 0%, rgba(13,71,161,0.72) 100%);
}

.esg-section-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.esg-section-hero-letter {
  font-family: 'Shippori Mincho', serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  opacity: 0.3;
  margin-bottom: 8px;
}

.esg-section-hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.esg-section-hero-subtitle {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

/* ===== CONTENT SECTIONS ===== */
.esg-content-section {
  padding: 70px 40px;
  background: var(--bg-warm);
}

.esg-content-section.alt { background: #fff; }

.esg-content-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Block with side image */
.esg-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
}

.esg-block-row.reverse { direction: rtl; }
.esg-block-row.reverse > * { direction: ltr; }

.esg-block-img {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.esg-block-img picture,
.esg-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.esg-block-text h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.esg-block-text h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
}

.env .esg-block-text h3::before { background: var(--env); }
.soc .esg-block-text h3::before { background: var(--soc); }
.gov .esg-block-text h3::before { background: var(--gov); }

.esg-block-text p {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 16px;
}

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

/* Quote callout */
.esg-quote-box {
  position: relative;
  text-align: center;
  padding: 40px 30px;
  margin: 40px 0 60px;
  border-radius: 6px;
}

.esg-quote-box.env { background: var(--env-light); border: 1px solid rgba(46,125,50,0.15); }
.esg-quote-box.soc { background: var(--soc-light); border: 1px solid rgba(230,81,0,0.12); }

.esg-quote-box p {
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.05em;
}

.esg-quote-box.env p { color: var(--env); }
.esg-quote-box.soc p { color: var(--soc); }

/* Product gallery */
.esg-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.esg-gallery-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
}

.esg-gallery-item picture,
.esg-gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.esg-gallery-item:hover img { transform: scale(1.04); }

.esg-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Text-only block */
.esg-text-block {
  margin-bottom: 50px;
}

.esg-text-block h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.esg-text-block h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
}

.env .esg-text-block h3::before { background: var(--env); }
.soc .esg-text-block h3::before { background: var(--soc); }
.gov .esg-text-block h3::before { background: var(--gov); }

.esg-text-block p {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* Photo pair row */
.esg-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0 50px;
}

.esg-photo-pair-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.esg-photo-pair-item picture,
.esg-photo-pair-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ===== GOV CARDS ===== */
.esg-gov-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.esg-gov-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.esg-gov-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gov);
}

.esg-gov-card h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gov);
  margin-bottom: 16px;
}

.esg-gov-card p {
  font-size: 16px;
  font-weight: 500;
  line-height: 2.1;
  color: var(--text);
}

/* ===== VISION ===== */
.esg-vision-section {
  position: relative;
  padding: 100px 40px;
  background: linear-gradient(170deg, #001a3d 0%, var(--brand-dark) 50%, var(--brand) 100%);
  text-align: center;
  overflow: hidden;
}

.esg-vision-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50Z' fill='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

.esg-vision-inner {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

.esg-vision-cycle {
  margin-bottom: 50px;
}

.esg-vision-cycle img {
  max-width: 180px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
}

.esg-vision-headline {
  font-family: 'Shippori Mincho', serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 40px;
}

.esg-vision-headline span {
  display: inline-block;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
}

.esg-vision-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 2.4;
  color: rgba(255,255,255,0.85);
  font-family: 'Shippori Mincho', serif;
}

.esg-vision-text p { margin-bottom: 20px; }
.esg-vision-text p:last-child { margin-bottom: 0; }

/* Cycle flow bar */
.esg-cycle-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 50px auto 0;
  max-width: 620px;
  flex-wrap: wrap;
}

.esg-cycle-step {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  border-radius: 4px;
  white-space: nowrap;
}

.esg-cycle-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  margin: 0 6px;
}

/* ===== SEPARATOR ===== */
.esg-sep {
  height: 1px;
  background: var(--border);
  max-width: 120px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
  .esg-intro-hero { padding: 70px 24px 60px; }
  .esg-intro-statement { font-size: 22px; letter-spacing: 0.08em; }
  .esg-intro-title { font-size: 16px; line-height: 2.2; }

  .esg-about { padding: 50px 24px; }
  .esg-about-letters span { width: 38px; height: 38px; font-size: 18px; }
  .esg-about-label { font-size: 18px; }

  .esg-section-hero { height: 240px; }
  .esg-section-hero-letter { font-size: 44px; }
  .esg-section-hero-title { font-size: 24px; }

  .esg-content-section { padding: 50px 24px; }

  .esg-block-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .esg-block-row.reverse { direction: ltr; }

  .esg-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .esg-photo-pair { grid-template-columns: 1fr; }

  .esg-gov-cards { grid-template-columns: 1fr; gap: 20px; }
  .esg-gov-card { padding: 28px 22px; }

  .esg-vision-section { padding: 60px 24px; }
  .esg-vision-headline { font-size: 24px; }

  .esg-cycle-flow { gap: 8px; }
  .esg-cycle-step { padding: 10px 14px; font-size: 14px; }
  .esg-cycle-arrow { font-size: 14px; margin: 0 2px; }

  .esg-block-text h3, .esg-text-block h3 { font-size: 20px; }
}
/* ===== CIRCULAR ECONOMY SECTION ===== */
.esg-circular-section {
  position: relative;
  margin: 50px 0 60px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--env-light) 0%, #f1f8e9 50%, #e8f5e9 100%);
  border: 1px solid rgba(46,125,50,0.12);
  padding: 50px 40px;
  overflow: hidden;
}

.esg-circular-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--env), #66bb6a, var(--env));
}

.esg-circular-quote {
  text-align: center;
  margin-bottom: 36px;
}

.esg-circular-quote p {
  font-family: 'Shippori Mincho', serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--env);
}

.esg-circular-concept {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.esg-circular-text h4 {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--env);
  margin-bottom: 8px;
  line-height: 1.5;
}

.esg-circular-text h4 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.esg-circular-text p {
  font-size: 16px;
  font-weight: 500;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 14px;
}

.esg-circular-text p:last-child { margin-bottom: 0; }

.esg-circular-highlight {
  display: inline-block;
  background: rgba(46,125,50,0.08);
  border-left: 3px solid var(--env);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--env);
  margin-top: 8px;
  line-height: 1.8;
}

.esg-circular-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.esg-circular-diagram svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

@media screen and (max-width: 768px) {
  .esg-circular-section { padding: 36px 22px; }
  .esg-circular-concept {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .esg-circular-diagram { order: -1; }
  .esg-circular-diagram svg { max-width: 300px; }
  .esg-circular-quote p { font-size: 18px; }
  .esg-circular-text h4 { font-size: 19px; }
}

/* Override mt50 on ESG page wrapper */
.esg-root ~ .l-contents__inner.l-inner.mt50,
.l-contents__inner.l-inner.mt50 { margin-top: -100px !important; }

/* ===== ESG COVER IMAGE OVERRIDE ===== */
.p-cover {
  background-image: url(2026/04/esg-cover.png) !important;
  background-size: cover !important;
  background-position: center center !important;
}
.p-cover::before {
  background: rgba(0, 0, 0, 0) !important;
}
.p-cover__title,
.p-cover__sub {
  visibility: hidden !important;
}

/* ===== AWARDS & MEDIA SECTION ===== */
.esg-awards-media {
  margin: 0 0 60px;
  padding: 50px 40px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.esg-awards-media h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--env);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.esg-awards-media h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--env);
}

.esg-awards-media h3 small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Awards list */
.esg-awards-list {
  list-style: none;
  margin: 24px 0 50px;
  padding: 0;
}

.esg-awards-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0ede8;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text);
}

.esg-awards-list li:last-child { border-bottom: none; }

.esg-awards-list .esg-award-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--env);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.esg-awards-list .esg-award-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.esg-awards-list .esg-award-year {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--env);
  background: var(--env-light);
  padding: 2px 10px;
  border-radius: 3px;
  margin-top: 3px;
}

/* Media grid */
.esg-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.esg-media-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0ede8;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.esg-media-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.esg-media-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.esg-media-card-body {
  padding: 14px 16px;
}

.esg-media-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.esg-media-card-year {
  font-size: 12px;
  color: var(--text-muted);
}

.esg-media-card-play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--env);
  font-weight: 600;
  margin-top: 6px;
}

@media screen and (max-width: 768px) {
  .esg-awards-media { padding: 36px 22px; }
  .esg-media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .esg-awards-list li { font-size: 15px; }
}

/* ===== PRODUCTS SECTION (gallery wrapper outside circular) ===== */
.esg-products-section {
  margin: 40px 0;
}

/* Fix wpautop breaking media cards */
.esg-media-grid br,
.esg-media-grid > p,
.esg-media-card > br,
.esg-media-card > p,
.esg-awards-media br,
.esg-awards-list br { display: none; }
.esg-media-card > p { margin: 0; padding: 0; }
.esg-media-card img { display: block; }

/* Award link button */
.esg-awards-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
a.esg-award-btn,
a.esg-award-btn:link,
a.esg-award-btn:visited {
  margin-left: auto;
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  color: #fff !important;
  background: var(--env);
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
a.esg-award-btn:hover,
a.esg-award-btn:focus {
  background: #1b5e20;
  color: #fff !important;
}
@media screen and (max-width: 767px) {
  .esg-award-btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* PC: stack "製造工程での環境配慮" / "教育機関と連動した防災教育" sections to 1 column */
.esg-block-row.reverse {
  grid-template-columns: 1fr;
  direction: ltr;
  gap: 30px;
}
.esg-block-row.reverse > * { direction: ltr; }
.esg-block-row.reverse .esg-block-img {
  max-width: 720px;
  margin: 0 auto;
}

/* 3-column photo grid (PC), stacked on mobile */
.esg-photo-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 30px 0 50px;
}
.esg-photo-trio .esg-photo-pair-item picture,
.esg-photo-trio .esg-photo-pair-item img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
@media screen and (max-width: 767px) {
  .esg-photo-trio { grid-template-columns: 1fr; }
}

/* 防火服画像は上端基準でクロップ */
.esg-gallery-item img[src*="esg-bouka"] {
  object-position: top;
}

/* 4-column photo trio variant (PC), stacked on mobile */
.esg-photo-trio--4col { grid-template-columns: repeat(4, 1fr); }
@media screen and (max-width: 767px) {
  .esg-photo-trio--4col { grid-template-columns: 1fr; }
}
