/*
 * Hokkaido Gift LP - Custom Styles (Revised)
 */

/* --- 変数定義 --- */
:root {
  --lp-base-color: #F8F6F1;
  --lp-text-color: #3D2C24;
  --lp-accent-blue: #005BAC;
  --lp-accent-orange: #E6863A;
  --lp-sub-color: #70665D;
  --lp-font-family: 'Noto Sans JP', sans-serif;
}

/* --- スムーズスクロール（推奨） --- */
html {
  scroll-behavior: smooth;
}

/* --- 基本スタイル --- */
.lp-wrapper-main {
  font-family: var(--lp-font-family);
  background-color: var(--lp-base-color);
  color: var(--lp-text-color);
  width: 100%;
  overflow-x: hidden;
  padding: 1px 0;
}

.lp-wrapper-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 各セクションのアンカーリンクのズレを補正 */
.lp-wrapper-category-section {
  scroll-margin-top: 20px;
  /* ヘッダーの高さに応じて調整 */
}

/* --- ヒーローセクション --- */
.lp-wrapper-hero {
  width: 100%;
  margin-left: auto;
  margin-right: auto;

}

.lp-wrapper-main-banner {
  width: 100%;
  margin-left: auto;
  margin-right: auto;

}

.lp-wrapper-main-banner .pc {
  display: block;
  margin: 0 auto;
}

.lp-wrapper-main-banner .sp {
  display: none;
}


/* --- コンセプトセクション --- */
.lp-wrapper-concept {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1140px;
  justify-content: center;
  height: 300px;
  background-image: url('https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/landscape_hokkaido_four_season.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: white;
  margin: auto;
}

.lp-wrapper-concept::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(0, 0, 0, 0.05);*/
}

.lp-wrapper-concept-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.lp-wrapper-concept-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 1);
  line-height: 1.4;
  letter-spacing: 5px;
}

.lp-wrapper-concept-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 1);
  line-height: 1.6;
  letter-spacing: 3px;
}

/* ★新規追加: ページ内リンクセクション */
.lp-wrapper-anchor-links {
  background-color: #fff;
  padding: 20px 0;
  max-width: 1140px;
  border-bottom: 1px solid #e0e0e0;
  margin: 0 auto;
  margin-bottom: 5rem;
}

.lp-wrapper-anchor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-wrapper-anchor-list a {
  display: block;
  padding: 8px 16px;
  background-color: var(--lp-base-color);
  color: var(--lp-text-color);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}

.lp-wrapper-anchor-list a:hover {
  background-color: var(--lp-accent-blue);
  color: #fff;
}

/* --- 共通セクションスタイル --- */
.lp-wrapper-features,
.lp-wrapper-categories {
  padding: 60px 0;
}

.lp-wrapper-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.lp-wrapper-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--lp-accent-orange);
  margin: 8px auto 0;
}

/* --- 特集バナーセクション (修正) --- */
.lp-wrapper-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* モバイルのデフォルトは2列 */
  gap: 15px;
  justify-items: center; /* 追加 */
}

.lp-wrapper-feature-banner {
  display: block;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
  overflow: hidden;

  /* 画像を角丸に合わせる */
}

/* --- ホバーエフェクト（左からテキスト表示） --- */
figure.cp_caption {
  position: relative;
  /* overflow: hidden; は lp-wrapper-feature-banner に既に設定済み */
  text-align: left;
  color: #fff;
  background: rgba(27, 37, 56, 1);
}

figure.cp_caption * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

figure.cp_caption .lp-wrapper-feature-image {
  /* imgセレクタを既存クラスに変更 */
  width: 100%;
  max-width: 100%;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
  opacity: 1;
}

figure.cp_caption figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px 20px 20px 40px;
  /* ← 左の余白を40pxに増やしました */
}

figure.cp_caption figcaption::before {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  left: 100%;
  content: '';
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
  opacity: 0;
  border-left: 4px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.5);
}

figure.cp_caption h2,
figure.cp_caption p {
  margin: 0 0 5px;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
}

figure.cp_caption h2 {
  font-size: 1.2rem;
  /* 文字サイズを調整 */
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  -webkit-transform: translate3d(30%, 0%, 0);
  transform: translate3d(30%, 0%, 0);
}

figure.cp_caption p {
  font-size: 0.9rem;
  /* 文字サイズを調整 */
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  -webkit-transform: translate3d(0%, 30%, 0);
  transform: translate3d(0%, 30%, 0);
}

figure.cp_caption a {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color: #fff;
  z-index: 1;
  /* a タグが最前面に来るように */
}

figure.cp_caption:hover .lp-wrapper-feature-image {
  opacity: 0.3;
}

figure.cp_caption:hover figcaption h2 {
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
  -webkit-transform: translate3d(0%, 0%, 0);
  transform: translate3d(0%, 0%, 0);
  opacity: 1;
}

figure.cp_caption:hover figcaption p {
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
  -webkit-transform: translate3d(0%, 0%, 0);
  transform: translate3d(0%, 0%, 0);
  opacity: 0.9;
}

figure.cp_caption:hover figcaption::before {
  left: 20px;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  opacity: 1;
  background: rgba(255, 255, 255, 0);
}

/* スマホ表示ではエフェクトをシンプルにする（任意） */
@media (max-width: 767px) {
  figure.cp_caption figcaption h2 {
    font-size: 1rem;
  }

  figure.cp_caption figcaption p {
    font-size: 0.8rem;
  }

  figure.cp_caption figcaption {
    padding: 10px 10px 10px 30px;  }
}

/*ホバーエフェクト*/
/*.lp-wrapper-feature-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}*/

.lp-wrapper-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画像がコンテナを埋めるように調整 */
}

/* --- カテゴリカルーセルセクション (修正) --- */

.c-card__part {
  margin-top: 5px;
}

.lp-wrapper-category-section {
  margin-bottom: 50px;
}

.lp-wrapper-category-title {
  position: relative;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  text-align: center;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 0, 0, 1);
  width: 100%;
  max-width: 600px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center center;
  isolation: isolate;
  letter-spacing: 5px;
}

.lp-wrapper-category-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(0, 0, 0, 0.1);*/
  z-index: -1;
}

#category-seafood .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/crab.jpg);
}

#category-vegfruit .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/veg.jpg);
}


#category-meat .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/meat.jpg)
}

#category-processed .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/ramen.jpg)
}

#category-dairy .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/cheese.jpg)
}

#category-sweets .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/cake.jpg)
}

#category-alcohol .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/sake.jpg)
}

#category-rice .lp-wrapper-category-title {
  background-image: url(https://stprodaeonblob.blob.core.windows.net/eshop-files/images/event/2025/gifthokkaido/rice.jpg)
}

.lp-wrapper-carousel-wrapper {
  position: relative;
}

.lp-wrapper-product-carousel {
  /* padding-bottom を削除 */
}

.lp-wrapper-product-card {
  display: block;
  text-decoration: none;
  color: var(--lp-text-color);
  height: 100%;
  /* スライドの高さを揃える */
  display: flex;
  flex-direction: column;
}

.lp-wrapper-product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

.lp-wrapper-product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  flex-grow: 1;
  /* 名前が短くても価格の位置を揃える */
}

.lp-wrapper-product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lp-accent-orange);
  margin-top: auto;
  /* 名前が短い場合に価格を下に押し出す */
}

/* Swiper カスタマイズ (修正) */
.lp-wrapper-carousel-wrapper .swiper-pagination {
  position: static;
  /* ★重要: 絶対配置を解除 */
  margin-top: 20px;
  /* カルーセルとの間に余白を確保 */
}

.lp-wrapper-carousel-wrapper .swiper-pagination-bullet {
  background-color: var(--lp-sub-color);
}

.lp-wrapper-carousel-wrapper .swiper-pagination-bullet-active {
  background-color: var(--lp-accent-blue);
}

.lp-wrapper-product-carousel .swiper-button-next,
.lp-wrapper-product-carousel .swiper-button-prev {
  color: var(--lp-accent-blue);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
}

.lp-wrapper-product-carousel .swiper-button-next::after,
.lp-wrapper-product-carousel .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 700;
}

.lp-wrapper-more_button {
  text-align: center;
  margin: 2rem auto 8rem;
}

.lp-wrapper-more_button a {
  display: inline-block;
  /* アニメーションのためにインラインブロック要素にする */
  padding: 0.5rem 2rem;
  /* ボタンのサイズ調整 */
  border: 1px solid #E6863A;
  /* ボタンの枠線 */
  color: #ffffff;
  /* 文字色 */
  background-color: #E6863A;
  /* 通常時の背景色 */
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  /* 背景色と文字色の変化を滑らかにする */
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 10px
}


.lp-wrapper-more_button a:hover {
  background-color: #ffbf8b;
  /* ホバー時の背景色 */
  color: #a84c00;
  /* ホバー時の文字色 */

}

.p-lp-category-product .p-lp-category-product--normal{
  width:100%;

}

/* --- レスポンシブデザイン --- */

/* タブレットサイズ */
@media (min-width: 768px) {



  /* 特集バナーを3列に */
  .lp-wrapper-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PCサイズ */
@media (min-width: 1024px) {

  /* 特集バナーを5列に */
  .lp-wrapper-features-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* スマートフォン (最大幅)*/
@media (max-width: 767px) {

  .lp-wrapper-main-banner .pc {
    display: none;
  }

  .lp-wrapper-main-banner .sp {
    display: block;
  }

  .lp-wrapper-concept {
    height: 200px;
  }

  .lp-wrapper-concept-title {
    font-size: 1.8rem;

  }

  .lp-wrapper-concept-subtitle {
    font-size: 0.9rem;
  }

  .lp-wrapper-features,
  .lp-wrapper-categories {
    padding: 40px 0;
  }

  .lp-wrapper-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .lp-wrapper-category-title {
    font-size: 1.4rem;
  }

  /* スマホではカルーセルの矢印を非表示 */
  .lp-wrapper-product-carousel .swiper-button-next,
  .lp-wrapper-product-carousel .swiper-button-prev {
    display: none;
  }

  .lp-wrapper-product-name {
    font-size: 0.9rem;
  }

  .lp-wrapper-product-price {
    font-size: 1rem;
  }
}

/* アニメーション前の初期状態 */
.lp-wrapper-fade-in {
  opacity: 0;
  transform: translateY(20px);
  /* 少し下に移動 */
  transition: opacity 1s ease, transform 1s ease;
  /* 1秒かけてアニメーション */
}

/* アニメーション後の状態 (スクリプトで追加されるクラス) */
.lp-wrapper-is-visible {
  opacity: 1;
  transform: translateY(0);
}