/* ======================
    カスタムプロパティ
======================= */
:root {
  --color-sdgs-01: #e5001e;
  --color-sdgs-02: #cfa213;
  --color-sdgs-03: #00973b;
  --color-sdgs-04: #c60f28;
  --color-sdgs-05: #e83819;
  --color-sdgs-06: #00a6d9;
  --color-sdgs-07: #fabd00;
  --color-sdgs-08: #901d31;
  --color-sdgs-09: #ed6a02;
  --color-sdgs-10: #dc007a;
  --color-sdgs-11: #f5a200;
  --color-sdgs-12: #d39200;
  --color-sdgs-13: #427935;
  --color-sdgs-14: #0075ba;
  --color-sdgs-15: #28a838;
  --color-sdgs-16: #004c88;
  --color-sdgs-17: #003067;
}

/* SDGs での override */
.headline--secondary {
  line-height: 1.2;
}

/* ──────────────────────────────────────────
   カバーセクション
──────────────────────────────────────────*/
.cover-section {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: visible;
}
.cover-section img {
  width: 100%;
}

.header-section img {
  width: 100%;
}

/* ──────────────────────────────────────────
   ヘッダー
──────────────────────────────────────────*/
@media screen and (max-width: 768px) {
  .header-section img {
    width: 100vw;
    margin-left: -16px; /* 左スペース分戻す */
  }
}

/* ──────────────────────────────────────────
   スライダー
────────────────────────────────────────── */
.slider-section {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

/* すべてのスライドは絶対配置＆隠す */
.slider-slide {
  position: relative;
  height: 100%;
  width: 100%;
}

.slider-slide .slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* active のみ可視化 */
.slider-slide .slide.active {
  opacity: 1;
}

/* テキストオーバーレイ */
.slider-overlay {
  position: absolute;
  top: 25%;                    /* お好みで上下位置を調整 */
  left: 50%;                   /* ビューポート中央へ */
  transform: translateX(-50%); /* 真ん中揃え */
  width: 100%;                 /* 横幅いっぱい */
  max-width: 1200px;           /* テキスト幅の上限 */
  padding: 0 1rem;             /* モバイル時に左右余白 */
  color: #fff;
  z-index: 3;
  text-align: left;            /* 左寄せ */
}
.slider-overlay h1 {
  color: var(--color-white);
  font-size: 3rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.slider-overlay p {
  font-size: 1.6rem;
  margin: 0;
}

@media screen and (max-width: 768px) {
  .slider-overlay h1 {
    font-size: 1.9rem;
    font-weight: 500;
  }
  .slider-overlay p {
    font-size: 1.2rem;
  }
}

/* ──────────────────────────────────────────
   Marquee
────────────────────────────────────────── */
/* “窓” */
.text-marquee {
  bottom: 0.5rem;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 5;
}
/* 中身を横積み */
.marquee-content {
  display: inline-flex;
  height: var(--font-size-slogan);
  transform: translateX(0);
  white-space: nowrap;
}
/* テキスト */
.marquee-item {
  color: var(--color-white);
  font-size: var(--font-size-slogan);
  font-weight: bold;
  padding-right: 4rem;
}

@media screen and (max-width: 768px) {
  .marquee-content {
    height: 6rem;
  }
  .marquee-item {
    font-size: 6rem;
  }
}

/* ──────────────────────────────────────────
   TOP内容
────────────────────────────────────────── */
/* 取り組みセクション */
.information-list .goals-icons {
  text-align: center;
}
.information-list .goals-icons img {
  width: 40%;
}
.information-list .headline--secondary {
  line-height: 1.2;
  margin: 8px 0;
}

.commitments-section {
  background-color: var(--color-background);
}

/* About KOSHII セクション */
.links-section.sdgs {
  background-color: var(--color-primary);
}
.links-section.sdgs h2 {
  color: var(--color-white);
  font-size: 2rem;
}
.links-section.sdgs .links-card {
  padding: 30px 30px;
  align-items: center;
}
.links-section.sdgs .links-card .links-card-text {
  flex-grow: 1;
}
.links-section.sdgs .links-card-message {
  color: var(--color-text);
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
}
.links-section.sdgs .circle-link {
  background-color: var(--color-primary);
}
.links-section.sdgs .circle-link:hover .material-symbols-outlined {
  color: var(--color-white);
}
.links-section.sdgs .links-card:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* About KOSHII セクション */
.report-section {
  background-color: var(--color-background);
}

/* Our SDGs セクション */
.our-sdgs-section .text-align-right img {
  width: 300px;
}

/* Report セクション */
.report-section ul {
  list-style: none;
  padding-left: 16px;
}
.report-section ul li a {
  color: var(--color-text);
}
.report-section ul li::before {
  content: "●";
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.2em;
  color: var(--color-primary);
  font-size: 0.8em;
  vertical-align: middle;
}

@media screen and (max-width: 768px) {
  .links-section.sdgs .container {
    padding: 0;
  }

  .links-section.sdgs h2 {
    font-size: 1.4em;
  }

  .links-section.sdgs .links-card {
    padding: 24px;
  }
  .links-section.sdgs .links-card-message {
    font-size: 1.8rem;
  }

  .our-sdgs-section .text-align-right img {
    width: 200px;
  }
}

/* ──────────────────────────────────────────
   SDGs各詳細内容
────────────────────────────────────────── */
/* SDGｓセクション */
.content-section .sdgs-header {
  display: flex;
  align-items: end;
  margin-bottom: 1rem;
}
.content-section .sdgs-header img {
  width: 100px;
}
.content-section .sdgs-header .sdgs-title {
  margin-left: 0.75rem;
  font-size: 2rem;
}

/* 点線の区切り */
.content-section .hr-dotted {
  border: none;
  border-top: 1px dotted var(--color-border);
}

.sdgs-point h3 {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
}
.sdgs-point .dot-bullet {
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}
.sdgs-point p {
  line-height: 1.6;
}

/* ギャラリー */
.sdgs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.sdgs-gallery-item {
  text-align: center;
}
.sdgs-gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

@media screen and (max-width: 768px) {
  .sdgs-gallery {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────
  SDGs タイル用グリッド
────────────────────────────────────────── */
.sdgs-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .sdgs-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 各タイル */
.sdgs-links .sdgs-links-item {
  align-items: start;
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
}
.sdgs-links .sdgs-links-item:hover .sdgs-links-item-thumb img {
  transform: scale(1.05);
}

/* 画像部分 */
.sdgs-links .sdgs-links-item-thumb {
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
}
.sdgs-links .sdgs-links-item-thumb img {
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

/* キャプション */
.sdgs-links .sdgs-links-item-caption {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Number */
.sdgs-links .sdgs-links-item-caption .sdgs-links-number {
  width: 40px;
}
.sdgs-links .sdgs-links-item-caption .sdgs-links-number img {
  width: 100%;
}

/* タイトルテキスト */
.sdgs-links .sdgs-links-item-caption .sdgs-links-item-text {
  color: #1a3260;
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .sdgs-links .sdgs-links-item-caption .sdgs-links-number {
    width: 38px;
  }
}

/* ──────────────────────────────────────────
  Color
────────────────────────────────────────── */
.sdgs-item-01 .sdgs-title {
  color: var(--color-sdgs-01);
}
.sdgs-item-01 .dot-bullet {
  background-color: var(--color-sdgs-01);
}
.sdgs-item-01 h3 {
  color: var(--color-sdgs-01);
}

.sdgs-item-02 .sdgs-title {
  color: var(--color-sdgs-02);
}
.sdgs-item-02 .dot-bullet {
  background-color: var(--color-sdgs-02);
}
.sdgs-item-02 h3 {
  color: var(--color-sdgs-02);
}

.sdgs-item-03 .sdgs-title {
  color: var(--color-sdgs-03);
}
.sdgs-item-03 .dot-bullet {
  background-color: var(--color-sdgs-03);
}
.sdgs-item-03 h3 {
  color: var(--color-sdgs-03);
}

.sdgs-item-04 .sdgs-title {
  color: var(--color-sdgs-04);
}
.sdgs-item-04 .dot-bullet {
  background-color: var(--color-sdgs-04);
}
.sdgs-item-04 h3 {
  color: var(--color-sdgs-04);
}

.sdgs-item-05 .sdgs-title {
  color: var(--color-sdgs-05);
}
.sdgs-item-05 .dot-bullet {
  background-color: var(--color-sdgs-05);
}
.sdgs-item-05 h3 {
  color: var(--color-sdgs-05);
}

.sdgs-item-06 .sdgs-title {
  color: var(--color-sdgs-06);
}
.sdgs-item-06 .dot-bullet {
  background-color: var(--color-sdgs-06);
}
.sdgs-item-06 h3 {
  color: var(--color-sdgs-06);
}

.sdgs-item-07 .sdgs-title {
  color: var(--color-sdgs-07);
}
.sdgs-item-07 .dot-bullet {
  background-color: var(--color-sdgs-07);
}
.sdgs-item-07 h3 {
  color: var(--color-sdgs-07);
}

.sdgs-item-08 .sdgs-title {
  color: var(--color-sdgs-08);
}
.sdgs-item-08 .dot-bullet {
  background-color: var(--color-sdgs-08);
}
.sdgs-item-08 h3 {
  color: var(--color-sdgs-08);
}

.sdgs-item-09 .sdgs-title {
  color: var(--color-sdgs-09);
}
.sdgs-item-09 .dot-bullet {
  background-color: var(--color-sdgs-09);
}
.sdgs-item-09 h3 {
  color: var(--color-sdgs-09);
}

.sdgs-item-10 .sdgs-title {
  color: var(--color-sdgs-10);
}
.sdgs-item-10 .dot-bullet {
  background-color: var(--color-sdgs-10);
}
.sdgs-item-10 h3 {
  color: var(--color-sdgs-10);
}

.sdgs-item-11 .sdgs-title {
  color: var(--color-sdgs-11);
}
.sdgs-item-11 .dot-bullet {
  background-color: var(--color-sdgs-11);
}
.sdgs-item-11 h3 {
  color: var(--color-sdgs-11);
}

.sdgs-item-12 .sdgs-title {
  color: var(--color-sdgs-12);
}
.sdgs-item-12 .dot-bullet {
  background-color: var(--color-sdgs-12);
}
.sdgs-item-12 h3 {
  color: var(--color-sdgs-12);
}

.sdgs-item-13 .sdgs-title {
  color: var(--color-sdgs-13);
}
.sdgs-item-13 .dot-bullet {
  background-color: var(--color-sdgs-13);
}
.sdgs-item-13 h3 {
  color: var(--color-sdgs-13);
}

.sdgs-item-14 .sdgs-title {
  color: var(--color-sdgs-14);
}
.sdgs-item-14 .dot-bullet {
  background-color: var(--color-sdgs-14);
}
.sdgs-item-14 h3 {
  color: var(--color-sdgs-14);
}

.sdgs-item-15 .sdgs-title {
  color: var(--color-sdgs-15);
}
.sdgs-item-15 .dot-bullet {
  background-color: var(--color-sdgs-15);
}
.sdgs-item-15 h3 {
  color: var(--color-sdgs-15);
}

.sdgs-item-16 .sdgs-title {
  color: var(--color-sdgs-16);
}
.sdgs-item-16 .dot-bullet {
  background-color: var(--color-sdgs-16);
}
.sdgs-item-16 h3 {
  color: var(--color-sdgs-16);
}

.sdgs-item-17 .sdgs-title {
  color: var(--color-sdgs-17);
}
.sdgs-item-17 .dot-bullet {
  background-color: var(--color-sdgs-17);
}
.sdgs-item-17 h3 {
  color: var(--color-sdgs-17);
}
