/* ===================== SDGs Page ===================== */
/* SDGsページ専用のスタイル */

/* スクロールアニメーション：左から右に表示 */
.io-slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.io-slide-left.is-inview {
  opacity: 1;
  transform: translateX(0);
}

/* サステナブルセクション内でビューポートに入ったときに左からスライドインして表示（白色を維持） */
.sdgs-page__sustainable-section .io-slide-left.is-inview {
  opacity: 1;
  transform: translateX(0);
  color: #ffffff;
}

/* サステナブルセクションのタイトルは常に白色を維持 */
.sdgs-page__sustainable-section .io-slide-left {
  color: #ffffff;
}

/* スクロールアニメーション：下から上にフェードイン */
.io-fadeup {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.io-fadeup.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== SDGs セクション ===================== */
/* SDGsページ全体のコンテナ */
.sdgs-page {
  width: 100%;
  max-width: 100%;
  background: #F5F1EB;
}

/* SDGsヘッダーセクション（ページ最上部） */
.sdgs-page__header {
  width: 100%;
  margin: 0;
  padding: 80px 16px 40px;
  text-align: center;
  background: #fff;
}

/* SDGsヘッダーのタイトル（太字、大サイズ、オレンジ色） */
.sdgs-page__header-title {
  font-weight: 900;
  font-size: 80px;
  line-height: 1.3;
  letter-spacing: 0.28em;
  margin: 0 0 24px;
  color: #d8d8d8;
}

/* SDGsヘッダーのサブタイトル（小サイズ、グレー） */
.sdgs-page__header-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  color: #888888;
}

/* SDGsヘッダーセクション（中央揃え） */
.sdgs-page__section-inner--sdgs-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

/* SDGsヘッダーのテキストエリア（中央揃え） */
.sdgs-page__section-text--sdgs-header {
  width: 100%;
  text-align: center;
}

/* SDGsセクションのタイトルと説明文のスタイル */
.sdgs-page__section--sdgs {
  max-width: 1400px;
  width: 100%;
  margin: clamp(20px, 4vw, 48px) auto;
  padding: clamp(32px, 5vw, 64px) 0;
}

/* SDGsヘッダーセクションのテキストエリアの横幅マージンを削除 */
.sdgs-page__section--sdgs .sdgs-page__section-text--sdgs-header {
  margin-left: calc(-1 * clamp(16px, 5vw, 64px));
  margin-right: calc(-1 * clamp(16px, 5vw, 64px));
  width: calc(100% + 2 * clamp(16px, 5vw, 64px));
  max-width: none;
}

/* SDGsヘッダーセクションの内部コンテナ（全幅） */
.sdgs-page__section-inner--sdgs-header {
  max-width: 100%;
  width: 100%;
}

/* SDGsセクションのラベル（中央揃え、黒色、通常の文字間隔） */
.sdgs-page__section--sdgs .sdgs-page__section-label {
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  color: #000000;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  margin: 0 0 16px;
}

/* SDGsセクションの説明文（オレンジ色、中央揃え） */
.sdgs-page__section-text--sdgs-header .sdgs-page__sdgs-description {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 40px;
  color: #2D5016;
  text-align: center;
}

/* サステナブルセクションの追加スタイル（上マージン設定） */
.sdgs-page__sustainable-section {
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
}

/* サステナブルセクションのコンテナ初期状態（非表示で左側に配置、アニメーション準備） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-container {
  min-height: 60vh;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-125vw);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}

/* サステナブルセクションがビューポートに入ったときにコンテナを左からスライドインして表示 */
.sdgs-page__sustainable-section.is-inview .sdgs-page__sustainable-container {
  opacity: 1;
  transform: translateX(0);
}

/* サステナブルセクションのテキストエリア（背景画像、クリップパス、白文字） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-text {
  flex: 1;
  padding: clamp(32px, 5vw, 60px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("../../images/sdgs/about-sdgs-intro.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
  position: relative;
  z-index: 2;
  color: #ffffff;
  overflow: hidden;
}

/* サステナブルセクションのテキストエリアにダークオーバーレイとブラー効果を追加 */
.sdgs-page__sustainable-section .sdgs-page__sustainable-text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* サステナブルセクションのテキストエリア内のすべてのテキスト要素を白色に設定 */
.sdgs-page__sustainable-section .sdgs-page__sustainable-text h2,
.sdgs-page__sustainable-section .sdgs-page__sustainable-text h3,
.sdgs-page__sustainable-section .sdgs-page__sustainable-text p,
.sdgs-page__sustainable-section .sdgs-page__sustainable-text span,
.sdgs-page__sustainable-section .sdgs-page__sustainable-text .sdgs-page__sustainable-title,
.sdgs-page__sustainable-section .sdgs-page__sustainable-text .sdgs-page__sustainable-char {
  color: #ffffff;
}

/* サステナブルセクションのコンテンツエリア（背景色#F5F1EB、縦方向フレックス、中央揃え、左右余白） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #F5F1EB;
  position: relative;
  z-index: 1;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 5vw, 64px);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* PCサイズ（768px以上）の時のみ、右側コンテンツを垂直方向の中央に配置 */
@media (min-width: 769px) {
  .sdgs-page__sustainable-section .sdgs-page__sustainable-content {
    justify-content: center;
  }
}

/* サステナブルセクションのイントロテキスト（レスポンシブフォントサイズ、黒色、中央揃え） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-intro {
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  margin: 0 0 24px;
  color: #000000;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

/* サステナブルセクションの本文テキスト（レスポンシブフォントサイズ、黒色、中央揃え） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-body {
  font-weight: 400;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
  margin: 0 0 20px;
  color: #000000;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

/* サステナブルセクションの本文テキストの最後の要素の下マージンを削除 */
.sdgs-page__sustainable-section .sdgs-page__sustainable-body:last-child {
  margin-bottom: 0;
}

/* サステナブルセクションのタイトル（レスポンシブフォントサイズ、白文字、中央揃え、特殊フォント） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-text .sdgs-page__sustainable-title {
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.4;
  margin: 0 0 32px;
  color: #ffffff;
  text-align: center;
  font-family: 'Comic Sans MS', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
}

/* サステナブルセクションのタイトルにスライドアニメーションを適用する場合の白色設定 */
.sdgs-page__sustainable-section .sdgs-page__sustainable-text .sdgs-page__sustainable-title.io-slide-left {
  color: #ffffff;
}

/* サステナブルセクションのタイトルがビューポートに入ったときに左からスライドインして表示（白色を維持） */
.sdgs-page__sustainable-section .sdgs-page__sustainable-text .sdgs-page__sustainable-title.io-slide-left.is-inview {
  opacity: 1;
  transform: translateX(0);
  color: #ffffff;
}

/* サステナブルセクション内の画像（最大幅100%、中央揃え） */
.sdgs-page__sustainable-section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* SDGs項目セクションのスタイル */
/* SDGs項目セクションの内部レイアウト（横並び、フレックス） */
.sdgs-page__section-inner--sdgs-item {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* SDGs項目セクションのテキストエリア（テキスト:画像 = 2:1の比率） */
.sdgs-page__section-inner--sdgs-item .sdgs-page__section-text {
  flex: 2 1 0;
  min-width: 0;
}

/* SDGs項目セクションの画像エリア（テキストの半分の幅、最大480px） */
.sdgs-page__section-inner--sdgs-item .sdgs-page__section-image {
  flex: 1 1 0;
  max-width: 480px;
}

/* SDGs項目セクションの画像（全幅、アスペクト比維持） */
.sdgs-page__section-image--sdgs-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* リバースレイアウト（右に画像、左にテキスト） */
.sdgs-page__section-inner--sdgs-item--reverse {
  flex-direction: row-reverse;
}

/* SDGs項目のゴール番号（オレンジ色、太字、レスポンシブフォントサイズ） */
.sdgs-page__sdgs-item-goal {
  font-weight: 900;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  margin: 0 0 8px;
  color: #2D5016;
  letter-spacing: 0.05em;
}

/* 親要素のpタグの色指定を上書き */
.sdgs-page__section-text--sdgs-item .sdgs-page__sdgs-item-goal {
  color: #2D5016;
  font-weight: 900;
}

/* SDGs項目のサブタイトル（太字、レスポンシブフォントサイズ、黒色） */
.sdgs-page__sdgs-item-subtitle {
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  margin: 0 0 24px;
  color: #888888;
}

/* SDGs項目のアイコンコンテナ（フレックス、折り返し可能） */
.sdgs-page__sdgs-item-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
}

/* SDGs項目のアイコン画像（最大幅94px、アスペクト比維持） */
.sdgs-page__sdgs-item-icons img {
  max-width: 94px;
  width: 100%;
  height: auto;
  display: block;
}

/* SDGs項目の説明テキスト（中太字、大きな行間、グレー色） */
.sdgs-page__sdgs-item-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 34px;
  color: #333333;
  margin-top: 72px;
}

/* SDGsメッセージセクションのスタイル */
.sdgs-page__message-section {
  max-width: 1400px;
  width: 100%;
  margin: clamp(20px, 4vw, 48px) auto;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 5vw, 64px);
}

/* SDGsセクションの最小高さと配置設定 */
.sdgs-page__section--sdgs,
.sdgs-page__section--sdgs-item {
  min-height: 30vh;
  justify-content: flex-start;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .sdgs-page__sdgs-item-text {
    margin-top: 0;
    text-align: center;
  }

  /* 見出し・本文を中央寄せ */
  .sdgs-page__header,
  .sdgs-page__header-title,
  .sdgs-page__header-subtitle,
  .sdgs-page__message-section,
  .sdgs-page__section-inner,
  .sdgs-page__section-text,
  .sdgs-page__sdgs-item-goal,
  .sdgs-page__sdgs-item-subtitle,
  .sdgs-page__sdgs-item-icons,
  .sdgs-page__sdgs-item-text {
    text-align: center;
  }
  .sdgs-page__section-inner,
  .sdgs-page__section-inner--sdgs,
  .sdgs-page__section-inner--sdgs-item,
  .sdgs-page__section-inner--sdgs-item--reverse {
    align-items: center;
  }
  .sdgs-page__sdgs-item-icons {
    justify-content: center;
  }

  /* サステナブルセクションを縦積みに切り替え */
  .sdgs-page__sustainable-section .sdgs-page__sustainable-container {
    flex-direction: column;
    min-height: auto;
    overflow: visible;
  }

  /* 親要素のセクションもオーバーフローを許可 */
  .sdgs-page__section-text--sdgs-header {
    overflow: visible;
  }

  .sdgs-page__sustainable-breakout {
    overflow: visible;
  }

  /* サステナブルテキスト側のクリップパスを解除 */
  .sdgs-page__sustainable-section .sdgs-page__sustainable-text {
    clip-path: none;
    padding: clamp(60px, 10vw, 80px) clamp(16px, 5vw, 32px);
    overflow: visible;
    width: 100%;
    min-height: 300px;
    flex: none;
    height: auto;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
  }

  /* サステナブルセクションのコンテンツエリア（モバイルサイズでも左右余白を確保） */
  .sdgs-page__sustainable-section .sdgs-page__sustainable-content {
    padding: clamp(32px, 5vw, 64px) clamp(16px, 5vw, 64px);
  }

  /* SDGsコンテンツを縦積みに変更 */
  .sdgs-page__section-inner--sdgs {
    flex-direction: column;
    gap: 40px;
  }

  /* SDGsセクションの画像を全幅で表示 */
  .sdgs-page__section-inner--sdgs .sdgs-page__section-image {
    max-width: 100%;
  }

  /* SDGs各項目を縦レイアウトに変更 */
  .sdgs-page__section-inner--sdgs-item,
  .sdgs-page__section-inner--sdgs-item--reverse {
    flex-direction: column;
    gap: 40px;
  }

  /* スマホではGOALテキストを先に出し、画像をその下に配置 */
  .sdgs-page__section-inner--sdgs-item .sdgs-page__section-text,
  .sdgs-page__section-inner--sdgs-item--reverse .sdgs-page__section-text {
    order: 1;
    width: 100%;
  }

  .sdgs-page__section-inner--sdgs-item .sdgs-page__section-image,
  .sdgs-page__section-inner--sdgs-item--reverse .sdgs-page__section-image {
    order: 2;
    width: 100%;
    margin: 0 auto;
  }

  /* SDGs各項目内の画像を全幅に */
  .sdgs-page__section-inner--sdgs-item .sdgs-page__section-image {
    max-width: 100%;
  }
}

/* ===================== CTAセクション ===================== */
/* CTAセクション（全幅、縦方向フレックス、中央揃え） */
.top__cta {
  width: 100%;
  max-width: none;
  margin: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0;
  min-height: auto;
}

/* CTAセクションは左右の余白をなくして全幅で配置（alignfull想定） */
.top__cta.top__section {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* CTAセクションのコンテナ（横並びフレックス、高さ380px固定） */
.top__cta-container {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  position: relative;
  height: 380px;
}

/* CTAセクションの各項目（中央揃え、ホバー時に拡大） */
.top__cta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: flex-grow 0.3s ease, opacity 0.3s ease;
  padding: clamp(40px, 8vw, 80px) 0;
  height: 100%;
}

/* CTAセクションの各項目のホバー状態（透明度変化、拡大） */
.top__cta-item:hover {
  opacity: 0.9;
  flex-grow: 1.5;
}

/* CTAセクションの各項目のホバー時にアイコンのトランジションを設定 */
.top__cta-item:hover .top__cta-icon {
  transition: transform 0.3s ease;
}

/* CTAセクションの問い合わせ項目（透明背景、黒文字、オーバーレイ付き） */
.top__cta-item--contact {
  background-color: transparent;
  color: #ffffff;
  position: relative;
}

/* CTAセクションの問い合わせ項目のオーバーレイ（ライトグレー背景、ポインターイベント無効） */
.top__cta-item--contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 60%);
  z-index: 1;
  pointer-events: none;
}

/* CTAセクションの問い合わせ項目の子要素（z-index設定） */
.top__cta-item--contact > * {
  position: relative;
  z-index: 2;
}

/* CTAセクションの問い合わせ項目のテキスト（黒色） */
.top__cta-item--contact .top__cta-english {
  color: #ffffff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
}

.top__cta-item--contact .top__cta-japanese {
  color: #ffffff;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
}

/* CTAセクションの資料DL項目（透明背景、黒文字、オーバーレイ付き） */
.top__cta-item--download {
  background-color: transparent;
  color: #ffffff;
  position: relative;
}

/* CTAセクションの資料DL項目のオーバーレイ（ライトグレー背景、ポインターイベント無効） */
.top__cta-item--download::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0 0 0 / 60%);
  z-index: 1;
  pointer-events: none;
}

/* CTAセクションの資料DL項目の子要素（z-index設定） */
.top__cta-item--download > * {
  position: relative;
  z-index: 2;
}

/* CTAセクションの資料DL項目のテキスト（黒色） */
.top__cta-item--download .top__cta-english,
.top__cta-item--download .top__cta-japanese {
  color: #ffffff;
}

/* CTAセクションのアイコン（中央揃え、ホバー時に変形） */
.top__cta-icon {
  margin-bottom: clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* CONTACT / SHOP の文字を囲む白枠ボックス */
.top__cta-text-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  position: relative;
  z-index: 3;
}

/* 枠ボックス内ではアイコン下の余白をなくす */
.top__cta-text-box .top__cta-icon {
  margin-bottom: 0;
}

/* 英語・日本語テキストをそれぞれ個別の白枠で囲む */
.top__cta-item .top__cta-english,
.top__cta-item .top__cta-japanese {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  width: 100%;
}

.top__cta-item .top__cta-english {
  border: 1px solid #ffffff;
}

/* CTAセクションの問い合わせアイコン（黒色） */
.top__cta-icon--contact {
  color: #ffffff;
}

/* CTAセクションの資料DLアイコン（黒色） */
.top__cta-icon--download {
  color: #ffffff;
}

/* CTAセクションのアイコン内のSVG（レスポンシブサイズ） */
.top__cta-icon svg {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
}

/* CTAセクションの英語テキスト（太字、レスポンシブフォントサイズ、中央揃え） */
.top__cta-english {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  text-align: center;
}

/* CTAセクションの日本語テキスト（通常の太さ、レスポンシブフォントサイズ、中央揃え） */
.top__cta-japanese {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  text-align: center;
  line-height: 1.6;
}

/* (max-width: 480px) 向けのレスポンシブ調整 */
@media (max-width: 480px) {
  /* CTAカードを縦並び・可変高さに */
  .top__cta-container {
    flex-direction: column;
    height: auto;
  }
  
  /* 個々のCTAカードの高さを抑える */
  .top__cta-item {
    height: clamp(180px, 45vh, 240px);
  }
}
