:root {
  --beige-base: #f9f5ef;
  --green: #0f6f47;
  --green-btn: #7aa48a;
  --light-green: #4d9888;
  --white: #ffffff;
}

.block-category-list--event,
.gift_section {
  padding: 3%;
}

#gift_selection_category {
  font-size: 16px;
}

#gift_selection_category .gift_section,
#wrapping {
  margin-bottom: 60px;
}

/*メインビジュアル下　文章*/

#gift_selection_category .block-main--desc {
  margin: 16px 0 35px;
  text-align: center;
}


/* --------------------------------------------------
 * ナビゲーションボタン
 * -------------------------------------------------- */

#gift_selection_category .block-main--anchor {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: var(--beige-base);
  border-radius: 0 0 10px 10px;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
  padding-top: 70px;
}


/*ご予算・ブランド*/
#gift_selection_category .block-main--anchor .block-main--anchor-frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

#gift_selection_category .block-main--anchor .block-main--anchor-section {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

#gift_selection_category .block-main--anchor-section-title {
  min-height: 30px;
}

/*各ナビゲーションレイアウト*/
#gift_selection_category .block-main--anchor-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 46px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--white);
  background-color: var(--green-btn);
}

/* --------------------------------------------------
 * ご予算から選ぶ　ボタン
 * -------------------------------------------------- */

#gift_selection_category .block-priceselect-frame .block-section--subtitle,
#popular_brand .block-section--subtitle {
  margin: 40px 0;
  text-align: center;
}

#gift_selection_category .block-priceselect-frame .block-group--anchor-frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 20px;
}

#gift_selection_category .block-priceselect-frame .block-group--anchor-frame a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 60px;
  color: #ffffff;
  font-weight: 700;
  border-radius: 5px;
  text-decoration: none;
  background-color: var(--light-green);
  transition: all 0.3s ease;
}

#gift_selection_category .block-priceselect-frame .block-group--anchor-frame a::after,
#gift_selection_category .block-main--anchor-link::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* ホバー */
#gift_selection_category .block-priceselect-frame .block-group--anchor-frame a:hover {
  background-color: #efc69a;
}

/* 矢印だけ少し下へ */
#gift_selection_category .block-priceselect-frame .block-group--anchor-frame a:hover::after {
  transform: rotate(45deg) translate(2px, 2px);
}


/* --------------------------------------------------
 * 2. 予算見出し (.gift_selection_subtitle) を中央配置＆擬似要素アクセント
 * -------------------------------------------------- */
.gift_selection_subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 28px auto;
  font-size: 22px;
  font-weight: 700;
  color: #4a3e3d;
  text-align: center;
}

/* 見出しの左右に配置するアクセント線（擬似要素） */
.gift_selection_subtitle::before,
.gift_selection_subtitle::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1.5px;
  background-color: #a89487;
}


#gift_selection_category .block-section--title {
  position: absolute;
  top: -20%;
  z-index: 1;
}

/* --------------------------------------------------
 * 4. 各商品カード（背景は完全な白）
 * -------------------------------------------------- */


/*商品　ベージュエリア*/
.block-pickup-list-p {
  /*position: relative;*/
  margin-bottom: 20px;
  padding: 36px 20px 24px 20px;
  border-radius: 16px;
  text-align: center;
  background-color: var(--beige-base);   
}

.block-pickup-list-p li .block-pickup-list-p--item-body,
.block-goods-detail-j--item {
  flex: 0 0 290px;
  margin-right: 18px;
  scroll-snap-align: start;
  padding: 16px;
  background-color: #ffffff;
  border: none;
  /* グレーの枠線排除 */
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.block-pickup-list-p li .block-pickup-list-p--item-body:last-of-type {
  margin-right: 18px;
}

.block-pickup-list-p li .block-pickup-list-p--image figure {
  width: 100%;
  height: 100%;
}

/* 浮き上がり演出 */
.block-pickup-list-p--item-body:hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* 画像エリアのリセット */
.block-pickup-list-p--image,
.block-goods-detail-j--goods-image {
  background: transparent;
  border: none;
  margin-bottom: 12px;
}


/* --------------------------------------------------
 * 3. スライダー（横スクロールコンテナ）設定
 * -------------------------------------------------- */
.block-pickup-list-p--items {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 16px 5px;
  margin: 0;
  list-style: none;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}

/* li　要素を折り返さない */
.block-pickup-list-p--items>li {
  display: flex;
  flex-shrink: 0;
}


/* スクロールバー */
.block-pickup-list-p--items::-webkit-scrollbar {
  height: 4px;
}

.block-pickup-list-p--items::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 2px;
}

.block-pickup-list-p--items::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* --------------------------------------------------
 * もっと見るボタン
 * -------------------------------------------------- */
.gift_view_more {
  text-align: center;
  margin-bottom: 80px;
}

.gift_view_more a {
  display: inline-block;
  padding: 12px 100px;
  border-radius: 999px;
  background: var(--light-green);
  color: #fff !important;
  text-decoration: none;
  transition: .3s;
}

.gift_view_more a:hover {
  background: #6cc9b5;
}


/* --------------------------------------------------
 * ギフトに人気のブランド
 * -------------------------------------------------- */

/*ラッピング＆セルフラッピング*/
#wrapping .block-custommade-frame {
  margin-bottom: 60px;
}
.block-main--wrapping--info {
  display: flex;
}

#popular_brand .block-section--brand-frame {
  padding: 60px 40px;
  background: #faf5ef;
}

#popular_bland_sp {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}




@media (max-width: 768px) {

  #gift_selection_category {
    font-family: "ヒラギノ角ゴ ProN W6", "Hiragino Kaku Gothic ProN", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  }


  /* メインビジュアル下文章 */
  #gift_selection_category .block-main--anchor-link,
  #gift_selection_category .block-main--desc {
    font-size: 14px;
    font-weight: normal;
  }

  /*一つ目ボタン　リボン画像 */
  #gift_selection_category .block-section--title {
  top: -4%;
  margin: 0;
}

  /* ご予算から選ぶ　ボタン */
  #gift_selection_category .block-priceselect-frame .block-group--anchor-frame {
    gap: 10px;
    justify-content: space-between;
  }

  #gift_selection_category .block-priceselect-frame .block-group--anchor-frame a {
    width: calc((100% - 12px) / 2);
    font-size: 14px;
    position: relative;

  }

  #gift_selection_category .block-section--subtitle img,
  #popular_brand .block-section--subtitle img {
    width: 80%;
    height: auto;
  }

  /*予算　見出し*/
  .gift_selection_subtitle {
    font-size: 18px;
    gap: 10px;
  }

  .gift_selection_subtitle::before,
  .gift_selection_subtitle::after {
    width: 24px;
    /* スマホ表示では線を少し短く */
  }

  /*商品ブロック*/
  #price01+.block-top-event--goods,
  #price02+.block-top-event--goods,
  #price03+.block-top-event--goods,
  #price04+.block-top-event--goods,
  #price05+.block-top-event--goods {
    background-color: var(--beige-base);
    /*position: relative;*/
    margin-bottom: 50px;
    margin-right: 12px;
    padding: 36px 20px 24px 20px;
    border-radius: 16px;
  }

  /* 商品カード全体 ベージュの外まで*/
  .block-goods-detail-j--items {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 16px 5px;
    margin: 0;
    list-style: none;
    text-align: left;
    -webkit-overflow-scrolling: touch;
  }

  /* 商品カード */
  .block-goods-detail-j--item {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    transition: .25s ease;
  }

  /* 星アイコン */
  .gift_selection_subtitle+.block-top-event--goods .block-icon {
    height: auto;
  }


  /* 画像 */
  .block-goods-detail-j--goods-image {
    margin-bottom: 12px;
  }

  .block-goods-detail-j--goods-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  /*人気のブランド*/
  #popular_brand .block-section--brand-frame {

    padding: 20px;

  }

  #popular_bland .block-section--subtitle {
    padding: 30px;
  }

  #popular_bland_sp {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
  }

}