@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.sdgs-esg-toc {
  margin-top: 1.5em;
}

.sdgs-esg-toc__list,
.sdgs-esg-toc__sections {
  margin: 0;
  padding-left: 1.5em;
}

.sdgs-esg-toc__list > .sdgs-esg-toc__page + .sdgs-esg-toc__page {
  margin-top: 1.25em;
}

.sdgs-esg-toc__page > a {
  font-weight: 700;
}

.sdgs-esg-toc__sections {
  margin-top: 0.5em;
}

.sdgs-esg-toc__sections li + li {
  margin-top: 0.35em;
}

.sdgs-esg-toc a {
  text-decoration: underline;
}

.sdgs-esg-toc a:hover {
  text-decoration: none;
}

[id^="sdgs-"],
[id^="esg-"],
[id^="support-"] {
  scroll-margin-top: 5rem;
}

/* SDGs・ESGページ：figureのデフォルト 
figure {
  text-align: left;
}*/

figure figcaption,
figure figcaption p,
caption {
  text-align: center;
}

.report figure:not(.figure) {
  margin-inline: 0;
  padding-inline: 0;
}

@media (min-width: 481px) {
  .report--icon {
    grid-template-columns: 1fr 6fr;
  }
}

.report figure:not(.figure) img {
  width: 100px;
}

.report .summary > p:first-child {
  margin-top: 0;
}

.report {
  margin-top: 0;
}

.report ~ .report {
  margin-top: 0;
}

/* ESGページ：取組例セクションの E/S/G 見出し 
#esg-tekio ~ h4 {
  border-bottom: 2px solid var(--border-color, #d9d9d9);
  padding-bottom: 0.2em;
}

#esg-tekio ~ h4:first-of-type {
  border-bottom-color: #95d84d;
}

#esg-tekio ~ h4:nth-of-type(2) {
  border-bottom-color: #f7c26d;
}

#esg-tekio ~ h4:nth-of-type(3) {
  border-bottom-color: #73cad8;
}
*/

/* ESG取組例テーブル：取組項目列 */
#esg-tekio ~ .tbl-normal {
  table-layout: fixed;
}

#esg-tekio ~ .tbl-normal :is(th, td):first-child {
  width: 300px;
  min-width: 300px;
  box-sizing: border-box;
}

.anchor-section{
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding-block: 40px;
}

.sdgs-esg-approval-btns + .anchor-section {
  margin-top: 40px;
}

.anchor-section:nth-child(odd of .anchor-section)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 1330px;
  translate: -50% 0;
  background-color: var(--gray-100, #fafafa);
}

/* 活用事例ブロック */
.sdgs-esg-case {
  padding: 24px 20px;
  border: 1px solid var(--border-color, #d9d9d9);
  border-radius: var(--rounded-sm, 4px);
}

/* 支援制度見出し（アンカー用） */
.anchor-section > h3[id] {
  margin-top: 0;
  scroll-margin-top: 5rem;
}

.anchor-section h4 {
  display: inline-block;
  border-bottom: 2px solid #999;
}

/* 支援制度ロゴボタン */
.sdgs-esg-approval-btns a {
  height: auto;
  min-height: 100px;
  grid-template-columns: 1fr;
  padding: 10px 20px;
  transition: border-color 0.2s ease;
}

.sdgs-esg-approval-btns a::before,
.sdgs-esg-approval-btns a:hover::before {
  display: none;
  content: none;
}

.sdgs-esg-approval-btns a:hover {
  background-color: transparent;
  border-color: var(--blue-200, #4aacd5);
}

.sdgs-esg-approval-btns a::after {
  display: none;
}

.sdgs-esg-approval-btns img {
  height: 100px;
  width: auto;
  display: block;
  margin-inline: auto;
}

/* 表４専用 figure */
.sdgs-esg-support-table-figure {
  margin: 60px 0 0;
  max-width: none;
}

.sdgs-esg-support-table-figure > figcaption:first-of-type {
  margin-bottom: 12px;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram :is(th, td) {
  text-align: left;
  vertical-align: top;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram thead th {
  text-align: center;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-icon {
  width: 60px;
  height: 60px;
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
  margin-bottom: 4px;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure {
  padding: 10px;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure > p {
  margin-bottom: 8px;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 5px;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li:last-of-type {
  margin-bottom: 0;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li img {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  margin-right: 5px;
  object-fit: contain;
  vertical-align: middle;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li span {
  font-size: 12px;
}

.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_01,
.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_02,
.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_03,
.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_04,
.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_05,
.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_06,
.sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .c_07 {
  color: #000;
  font-weight: normal;
}

@media (min-width: 780px) {
  .sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure {
    padding: 10px 200px 20px 20px;
  }

  .sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li {
    width: 25%;
    margin-bottom: 10px;
  }

  .sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li:nth-last-child(-n+3) {
    margin-bottom: 0;
  }

  .sdgs-esg-support-table-figure .sdgs-esg-table-pictogram .sdgs-esg-table-figure .icon-list li span {
    font-size: 10px;
    line-height: 1.42857;
    letter-spacing: -0.05em;
  }
}

#support-jirei + .sdgs-esg-case {
  margin-top: 60px;
}

.sdgs-esg-case + .sdgs-esg-case {
  margin-top: 32px;
}

.sdgs-esg-case > h3:first-child {
  margin-top: 0;
}

/* 活用事例の事業者情報テーブル */
.sdgs-esg-case .tbl-normal {
  margin-top: 0;
  table-layout: fixed;
}

.accordion + .accordion {
  margin-top: 16px;
}

/* 奇数.anchor-sectionの背景（gray-100）と判別できるよう調整 */
.anchor-section .ac-gray summary {
  background-color: var(--white, #fff);
  border: 1px solid var(--border-color, #d9d9d9);
}

.sdgs-esg-case .tbl-normal th {
  width: 200px;
  min-width: 200px;
  box-sizing: border-box;
}

/* 気候変動適応視点の本文 */
.sdgs-esg-adaptation h5{
    margin-left: 1em;
    background-color: #fff;
    display: inline-block;
    padding-inline: 10px;
}
.sdgs-esg-adaptation p{
  padding: 26px 20px 16px;
  border: 2px solid var(--blue-200, #4aacd5);
  border-radius: 20px;
  margin-top: -16px;
}

/* ESGへの取組 
見出しと表　Environment*/
.env-label,.social-label,.gov-label {
  margin: 50px 0px 20px;
  width: 100%; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.env-label::before,
.env-label::after {
  content: "";
  flex-grow: 1; /* 残りのスペースを埋めるように伸びる */
  height: 3px; /* 線の太さ */
  background-color: #95d84d; /* 線の色（ラベルと同じ黄緑色） */
}

.env-label h4{
  margin: 0 auto;
  background-color: #95d84d; 
  padding: 8px 30px;
  border-radius: 40px; 
  text-align: center;
  display: inline-block;
}

.tbl-env,
.tbl-env th,
.tbl-env td {
  padding: 0;
  border: 1px solid #95d84d;
}
.tbl-env {
  width: 80%;
  margin: 50px auto 0;
  font-size: 16px;
}
.tbl-env .thead {
  vertical-align: middle;
  background: #DBEEC7;
}
.tbl-env th {
  padding: 10px;
  background: #DBEEC7;
}
.tbl-env td {
  padding: 10px;
}

.textcenter {
  text-align: center;
}

/* 見出しと表　Social */

.social-label::before,
.social-label::after {
  content: "";
  flex-grow: 1; /* 残りのスペースを埋めるように伸びる */
  height: 3px; /* 線の太さ */
  background-color: #f7c26d; /* 線の色（ラベルと同じ黄緑色） */
}
.social-label h4{
  margin: 0 auto;
  background-color: #f7c26d; 
  padding: 8px 30px;
  border-radius: 40px; 
  text-align: center;
  display: inline-block;
}

.tbl-social,
.tbl-social th,
.tbl-social td {
  padding: 0;
  border: 1px solid #f7c26d;
}
.tbl-social {
  width: 80%;
  margin: 50px auto 0;
  font-size: 16px;
}
.tbl-social .thead {
  vertical-align: middle;
  background: #FAEDDA;
}
.tbl-social th {
  padding: 10px;
  background: #FAEDDA;
}
.tbl-social td {
  padding: 10px;
}
.tbl-social ul {
  margin: 0 0 0 20px;
  padding: 0;
}

/* 見出しと表　Governance */
.gov-label::before,
.gov-label::after {
  content: "";
  flex-grow: 1; /* 残りのスペースを埋めるように伸びる */
  height: 3px; /* 線の太さ */
  background-color: #73cad8; /* 線の色（ラベルと同じ黄緑色） */
}
.gov-label h4{
  margin: 0 auto;
  background-color: #73cad8; 
  padding: 8px 30px;
  border-radius: 40px; 
  text-align: center;
  display: inline-block;
}

.tbl-gov,
.tbl-gov th,
.tbl-gov td {
  padding: 0;
  border: 1px solid #73cad8;
}
.tbl-gov {
  width: 80%;
  margin: 50px auto 0;
  font-size: 16px;
}
.tbl-gov .thead {
  vertical-align: middle;
  background: #C4E9F0;
}
.tbl-gov th {
  padding: 10px;
  background: #C4E9F0;
}
.tbl-gov td {
  padding: 10px;
}
.tbl-gov ul {
  margin: 0 0 0 20px;
  padding: 0;
}

@media (min-width: 960px) {
  .anchor-section{
    padding-block: 60px;
  }

  .sdgs-esg-approval-btns + .anchor-section {
    margin-top: 60px;
  }

  .anchor-section:nth-child(odd of .anchor-section)::before {
    width: calc(100vw - var(--side-width));
  }

  .anchor-section h4 {
    font-size: 20px;
  }

  .sdgs-esg-case {
    padding: 32px 28px;
  }

  .sdgs-esg-case + .sdgs-esg-case {
    margin-top: 40px;
  }
}

.btns.btn-col-2 {
  margin-top: 60px;
  line-height: 1.6;
}
