/* =====================================
    全ページ共通：H2見出し（レスポンシブ対応）
===================================== */
h2 {
  position: relative;
  display: inline-block;
  /* 文字幅にフィット */
  font-weight: 700;
  color: #182578;
  margin-bottom: 2rem;
  text-align: center;

  /* ★レスポンシブな文字サイズ */
  font-size: clamp(1.4rem, 4vw, 2rem);
}

/* 下線（文字幅に自動フィット） */
h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: linear-gradient(90deg, #182578, #4a6ef1);
  border-radius: 2px;
}

/* ★スマホ向け微調整 */
@media screen and (max-width: 480px) {
  h2 {
    margin-bottom: 2rem;
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  h2::after {
    bottom: -4px;
    height: 2.5px;
  }
}

/* ★大型画面（デスクトップ）の強化 */
@media screen and (min-width: 1400px) {
  h2 {
    font-size: 2.2rem;
  }

  h2::after {
    height: 3.5px;
  }
}

/* =========================================
   共通ヒーローセクション（統一デザイン）
========================================= */
.page-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.page-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  z-index: 0;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 30, 0.45);
  /* ✅ 統一した半透明黒 */
  z-index: 1;
}

.page-hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  animation: fadeUp 1.5s ease forwards;
  margin-top: 12vh;
}

.page-hero-text h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.page-hero-text p {
  font-size: clamp(16px, 2vw, 22px);
  margin-top: 10px;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .page-hero {
    height: 50vh;
  }

  .page-hero-text h1 {
    font-size: 2rem;
  }
}


/* =========================================
   SDGsとは？ セクション（横並びデザイン版）
========================================= */

/* セクション背景 */
.section-sdgs-about {
  background: #fff;
  padding: 6rem 1rem;
}

.section-sdgs-about .inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* -------------------------------
   ここが横並びレイアウトの本体
-------------------------------- */
.sdgs-about-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
}

/* 左：テキスト部分 */
.sdgs-about-text {
  flex: 1 1 55%;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* テキスト段落 */
.sdgs-about-text p {
  line-height: 2;
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 2;
  letter-spacing: 0.02em;
  color: #333;
}

/* 右：SDGs画像 */
.sdgs-about-image {
  flex: 1 1 40%;
  text-align: right;
}

.sdgs-about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  /* 角丸は少し残す、完全に消したいなら0 */
  box-shadow: none;
  /* ←影を消す！ */
}

/* 外務省リンク */
.sdgs-link {
  text-align: left;
  /* 右側の画像の下で自然に左寄せ */
  margin-top: 1.2rem;
  margin-left: 16px;
}

.sdgs-link img {
  width: 180px;
  transition: 0.3s ease;
}

.sdgs-link img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(24, 37, 120, 0.2);
}

/* フェードアップ */
.fadeUpTrigger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fadeUp {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   スマホ対応
========================================= */
@media screen and (max-width: 768px) {
  .sdgs-about-flex {
    flex-direction: column;
    text-align: center;
  }

  .sdgs-about-text {
    text-align: center;
  }

  /* スマホ（長文でも詰まらないように調整） */
  .section-sdgs-about p {
    font-size: 1rem;
    /* 少し大きめで読みやすく */
    line-height: 1.9;
    /* 高すぎない行間 */
    padding: 0 0.5rem;
    /* 画面端に当たらないよう少し余白 */
  }

  .sdgs-about-image {
    text-align: center;
  }

  .sdgs-link {
    text-align: center !important;
    margin-top: 1rem;
  }

  .sdgs-link img {
    margin: 0 auto;
    /* 画像自体も中央揃え */
    display: block;
  }
}

/* 超小型（iPhone SEなど） */
@media screen and (max-width: 430px) {
  .section-sdgs-about p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* =========================================
   当社の方針セクション
========================================= */
.page-lead {
  text-align: center;
  background: #f8faff;
  padding: 6rem 2rem 5rem;
  color: #182578;
}

.page-lead .inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-lead p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
  color: #333;
  margin-top: 2rem;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .page-lead {
    padding: 4rem 1.5rem 3rem;
  }

  .page-lead h2 {
    font-size: 1.2rem;
  }

  .page-lead p {
    font-size: 0.9rem;
  }
}

/* =========================================
   SDGs カードセクション（2カラム配置・リード付き）
========================================= */
.sectionSDGs {
  background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
  padding: 1rem 2rem;
  text-align: center;
  border-radius: 16px;
}

.sectionSDGs .inner {
  max-width: 1100px;
  margin: 0 auto;
}


.sectionSDGs .lead {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 2rem auto 3.5rem;
  max-width: 800px;
}

/* ====== カード配置（横並び）====== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

/* カード本体 */
.articleListSDGs {
  background: #fff;
  flex: 1 1 calc(48% - 20px);
  /* ← PC時は2カラム */
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.articleListSDGs:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(24, 37, 120, 0.18);
  filter: brightness(1.05);
}

/* テキスト領域 */
.articleListSDGs a {
  display: block;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
}

/* ===============================
   SDGsカード h1（通常時）
   下線なし（ホバー時に出現）
================================ */
.articleListTextSDGs h1 {
  color: #182578;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

/* ===============================
   下線（通常は見えない）
================================ */
.articleListTextSDGs h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;

  background: linear-gradient(90deg, #182578, #4a6ef1);
  border-radius: 3px;

  /* ★初期状態：0倍なので見えない */
  transform: scaleX(0);
  transform-origin: left center;

  transition: transform 0.45s ease;
}

/* ===============================
   ★ホバー時：線が出現して 180% に伸びる
================================ */
.articleListSDGs:hover h1::after {
  transform: scaleX(1);
  /* ←ここを変えればもっと伸びる！ */
}

/* ホバー時の色変化 */
.articleListSDGs:hover h1 {
  color: #0d47a1;
}


/* ===============================
   p（そのまま）
================================ */
.articleListTextSDGs p {
  color: #444;
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 1rem;
}


/* アイコン群 */
.articleListImageSDGs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.articleListImageSDGs img {
  width: 80px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.articleListImageSDGs img:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

/* フェードアップ */
.fadeUpTrigger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fadeUp {
  opacity: 1;
  transform: translateY(0);
}

/* ====== レスポンシブ対応 ====== */
@media screen and (max-width: 1024px) {
  .articleListSDGs {
    flex: 0 1 calc(48% - 20px);
  }
}

@media screen and (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .articleListSDGs {
    flex: 0 1 90%;
  }

  .articleListTextSDGs h1 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }

  /* 下線：ホバーなしで常に表示 */
  .articleListTextSDGs h1::after {
    transform: scaleX(1) !important;
    /* ←常に表示 */
    bottom: -5px;
    height: 2.5px;
  }

  /* 文字色のホバーも無効化 */
  .articleListSDGs:hover h1 {
    color: #182578;
    /* 通常色のまま */
  }

  /* 下線アニメーションを無効化 */
  .articleListSDGs:hover h1::after {
    transform: scaleX(1) !important;
    /* ←伸びない */
  }

  .articleListTextSDGs p {
    font-size: 0.8rem;
    line-height: 1.7;
  }

  .articleListImageSDGs img {
    width: 70px;
  }
}

/* ============================
   会社概要ボタン
============================ */
.to-company-btn {
  text-align: center;
  margin: 4rem 0 4rem;
}

.to-company-btn a {
  display: inline-block;
  padding: 1rem 2.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #182578, #4a6ef1);
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ホバーアニメーション */
.to-company-btn a:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(24, 37, 120, 0.35);
}