/* ===================== Layout Helpers ===================== */
/* Productページ共通のスタイル */

/* スクロールアニメーション：下から上にフェードイン */
/* 初期状態では非表示で下側に配置（ビューポートに入る前の状態） */
.io-fadeup {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

/* ビューポートに入ったときに下からフェードインして表示されるアニメーション */
.io-fadeup.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Productページ全体のコンテナ（全幅、背景色#F5F1EB） */
.product-page {
  width: 100%;
  background: #F5F1EB;
}

/* ===================== PRODUCT セクション ===================== */
/* Productページのヘッダーセクション（全幅、白背景、中央揃え） */
.product-page__product-section {
  width: 100%;
  margin: 0;
  padding: 80px 1rem 40px;
  text-align: center;
  background: #fff;
}

/* Productページのヘッダータイトル（超大サイズ、太字、黒色） */
.product-page__product-title {
  font-weight: 900;
  font-size: 80px;
  line-height: 1.3;
  letter-spacing: 0.28em;
  margin: 0 0 24px;
  color: #d8d8d8;
}

/* Productページのヘッダーサブタイトル（小サイズ、オレンジ色） */
.product-page__product-subtitle {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  color: #888888;
}

/* ===================== 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;
}

/* ===================== Responsive (共通) ===================== */
@media (max-width: 768px) {
  /* ヘッダーセクションの上下余白を調整 */
  .product-page__product-section {
    padding: 60px 1rem 30px;
  }
  
  /* CTAカードを縦並び・可変高さに */
  .top__cta-container {
    flex-direction: column;
    height: auto;
  }
  
  /* 個々のCTAカードの高さを抑える */
  .top__cta-item {
    height: clamp(180px, 45vh, 240px);
  }
}

/* (max-width: 480px) での詳細調整 */
@media (max-width: 480px) {
  /* ページタイトルをさらに小さく */
  .product-page__product-title {
    font-size: 36px;
  }
}
