@charset "utf-8";
/* CSS Document */
#creampuff_cp img {
  width: 100%;
  height: auto;
}
#creampuff_cp .fix {
  clear: both;
}
#creampuff_cp article {
  width: 100%;
  margin: 0;
}
/* --- アイテム共通スタイル --- */
#creampuff_cp .product-item {
  background-color: #fff;
  border: 4px solid;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#creampuff_cp .product-item.color-yellow {
  border-color: #faba00;
}
#creampuff_cp .product-item.color-pink {
  border-color: #e9588c;
}
/* --- 画像エリア（背景＋ぽわん商品画像） --- */
#creampuff_cp .img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* 親の角丸(20px) - ボーダー(4px) = 16px を上部だけにかける */
}
#creampuff_cp .bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#creampuff_cp .main-img {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 75%;
  height: auto;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease-out;
}
#creampuff_cp .main-img.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* --- テキスト情報エリア --- */
#creampuff_cp .info-area {
  padding: 0 20px 20px;
  flex: 1;
}
#creampuff_cp .date {
  display: inline-block;
  background-color: #63001e;
  font-size: 0.95rem;
  color: #fff;
  margin: -1px 0 8px -20px;
  padding: 5px 15px;
  border-radius: 0 0 10px 0;
}
#creampuff_cp .date.color-yellow {
  background-color: #fff;
  border: solid #faba00;
  border-width: 0 4px 4px 0;
}
#creampuff_cp .date.color-pink {
  background-color: #e9588c;
}
#creampuff_cp .name {
  font-size: clamp(1.1rem, 0.783rem + 0.69vw, 1.3rem);
  font-weight: bold;
  color: #63001e;
  margin-bottom: clamp(0.313rem, -0.183rem + 1.08vw, 0.625rem);
  line-height: 1.4;
}
#creampuff_cp .price {
  font-size: clamp(1rem, 0.762rem + 0.52vw, 1.15rem);
  font-weight: bold;
  color: #333;
  margin-bottom: clamp(0.313rem, -0.183rem + 1.08vw, 0.625rem);
}
#creampuff_cp .desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}
#creampuff_cp .desc > span {
  font-size: 85%;
}
/* ====================================
   ▼ PCレイアウト (737px以上) ▼
   ==================================== */
@media screen and (min-width: 737px) {
  #creampuff_cp {
    width: calc(100vw - 0.7%);
    margin: 0 calc(50% - 50vw);
    min-height: 100%;
    padding: 1rem 0 2rem;
    background-image: linear-gradient(90deg, rgba(250, 186, 0, 1) 49.65%, rgba(233, 88, 140, 1) 49.65%);
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
  /*--------KVarea-------------*/
  /* 親要素を可変＆比率固定にする */
  #creampuff_cp .kv_area {
    position: relative;
    max-width: 1420px;
    width: 100%; /* 画面幅に合わせて縮小させる */
    margin: 0 auto;
    aspect-ratio: 1420 / 630; /* heightの代わりにアスペクト比で高さを維持 */
  }
  /* KV内の画像が枠に合わせて可変するように設定 */
  #creampuff_cp .kv_area img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* --- 子要素の絶対配置 --- */
  .kv_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  /* pxから％に変換 （例: 222px / 1300px * 100 = 約17.07%） */
  .tit {
    position: absolute;
    top: 25.5%;
    width: 42.25%; /* 元222px */
    left: 50%;
    transform: translateX(-50%);
  }
  /* h1見出し */
  #creampuff_cp .tit_area {
    width: 99.3%;
    position: relative;
    height: 160px;
    margin: 1rem auto;
    text-align: center;
    padding: 10px 30px;
    background: #63001e;
    color: #FFF;
    box-sizing: border-box;
  }
  /* ★修正: 疑似要素にも #creampuff_cp を付与してCMS干渉をブロック */
  #creampuff_cp .tit_area:before, #creampuff_cp .tit_area:after {
    position: absolute;
    content: '';
    width: 0px;
    height: 0px;
    z-index: 1;
  }
  #creampuff_cp .tit_area:before {
    top: 0;
    left: 0;
    border-width: 80px 0px 80px 40px;
    border-color: transparent transparent transparent #faba00;
    border-style: solid;
  }
  #creampuff_cp .tit_area:after {
    top: 0;
    right: 0;
    border-width: 80px 40px 80px 0px;
    border-color: transparent #e9588c transparent transparent;
    border-style: solid;
  }
  #creampuff_cp .tit_area h1 {
    font-family: "Kaisei Decol", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2.4rem;
    font-feature-settings: "halt";
  }
  #creampuff_cp .lead {
    font-size: 1rem;
    color: #fff;
    margin-top: .5rem;
  }
  #creampuff_cp .lead > span {
    font-size: 80%;
  }
  #creampuff_cp main {
    max-width: 1200px;
    min-height: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    z-index: 100;
  }
  #creampuff_cp .cream_box {
    background-color: #feeecd;
    border-radius: 40px;
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: 30px;
    box-sizing: border-box; /* ★追加: padding分が親枠を突き破るのを防ぐ */
  }
  /* リボン見出し */
  #creampuff_cp .h2_tit {
    display: block;
    width: fit-content;
    margin: 1rem auto;
    position: relative;
    height: 50px;
    line-height: 50px;
    font-family: "Kaisei Decol", serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    font-size: 1.8rem;
    padding: 0 30px;
    background: #63001e;
    color: #FFF;
    box-sizing: border-box;
  }
  /* ★修正: 疑似要素にも #creampuff_cp を付与 */
  #creampuff_cp .h2_tit:before, #creampuff_cp .h2_tit:after {
    position: absolute;
    content: '';
    width: 0px;
    height: 0px;
    z-index: 1;
  }
  #creampuff_cp .h2_tit:before {
    top: 0;
    left: 0;
    border-width: 25px 0px 25px 15px;
    border-color: transparent transparent transparent #faba00;
    border-style: solid;
  }
  #creampuff_cp .h2_tit:after {
    top: 0;
    right: 0;
    border-width: 25px 15px 25px 0px;
    border-color: transparent #e9588c transparent transparent;
    border-style: solid;
  }
  #creampuff_cp .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}
/* ====================================
   ▼ SPレイアウト (736px以下) ▼
   ==================================== */
@media screen and (max-width:736px) {
  #creampuff_cp {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 0 0 2rem;
    margin-top: -10px;
    background-image: linear-gradient(90deg, rgba(250, 186, 0, 1) 50%, rgba(233, 88, 140, 1) 50%);
    background-attachment: fixed;
    background-repeat: no-repeat;
  }
  /*--------KVarea-------------*/
  /* 親要素を可変＆比率固定にする */
  #creampuff_cp .kv_area {
    position: relative;
    max-width: 1040px;
    width: 100%; /* 画面幅に合わせて縮小させる */
    margin: 0 auto;
    aspect-ratio: 1040 / 1040; /* heightの代わりにアスペクト比で高さを維持 */
  }
  /* KV内の画像が枠に合わせて可変するように設定 */
  #creampuff_cp .kv_area img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* --- 子要素の絶対配置 --- */
  .kv_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  /* pxから％に変換 （例: 222px / 1300px * 100 = 約17.07%） */
  .tit {
    position: absolute;
    top: 28%;
    width: 87.88%; /* 元222px */
    left: 50%;
    transform: translateX(-50%);
  }
  #creampuff_cp .tit_area {
    margin: 0 auto;
    height: auto;
    text-align: center;
    padding: 10px;
    background: #63001e;
    color: #FFF;
    box-sizing: border-box;
  }
  #creampuff_cp .tit_area h1 {
    font-family: "Kaisei Decol", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.7rem;
    font-feature-settings: "halt";
  }
  #creampuff_cp .lead {
    font-size: 0.9rem;
    color: #fff;
    margin-top: .5rem;
  }
  #creampuff_cp .lead > span {
    font-size: 80%;
  }
  #creampuff_cp main {
    max-width: 100%;
    margin: 0 10px;
    box-sizing: border-box;
    z-index: 100;
  }
  #creampuff_cp .cream_box {
    background-color: #feeecd;
    border-radius: 16px;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 12px;
    box-sizing: border-box;
  }
  /* リボン見出し */
  #creampuff_cp .h2_tit {
    display: block;
    width: fit-content;
    margin: 1rem auto;
    position: relative;
    height: 40px;
    line-height: 40px;
    font-family: "Kaisei Decol", serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    font-size: 1.3rem;
    padding: 0 30px;
    background: #63001e;
    color: #FFF;
    box-sizing: border-box;
    white-space: nowrap; /* ★追加: スマホで文字が改行されてリボンが崩れるのを防ぐ */
  }
  /* ★修正: 疑似要素にも #creampuff_cp を付与 */
  #creampuff_cp .h2_tit:before, #creampuff_cp .h2_tit:after {
    position: absolute;
    content: '';
    width: 0px;
    height: 0px;
    z-index: 1;
  }
  #creampuff_cp .h2_tit:before {
    top: 0;
    left: 0;
    border-width: 20px 0px 20px 10px;
    border-color: transparent transparent transparent #faba00;
    border-style: solid;
  }
  #creampuff_cp .h2_tit:after {
    top: 0;
    right: 0;
    border-width: 20px 10px 20px 0px;
    border-color: transparent #e9588c transparent transparent;
    border-style: solid;
  }
  #creampuff_cp .product-grid {
    display: grid; /* ★追加: SP側でもgridを指定しないとレイアウトが破綻します */
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #creampuff_cp .product-item {
    border-radius: 12px;
  }
  /* ▼ 追加：スマホ用の角丸（12px）に合わせて、内側のカーブを「8px」に調整 ▼ */
  #creampuff_cp .img-wrapper {
    border-radius: 8px 8px 0 0;
  }
  #creampuff_cp .img-wrapper::after {
    border-radius: 8px 8px 0 0;
  }
  /* --- テキスト情報エリア --- */
  #creampuff_cp .info-area {
    padding: 0 10px 10px;
  }
  #creampuff_cp .date {
    font-size: 0.9rem;
    margin: -1px 0 8px -10px;
    padding: 3px 13px;
    border-radius: 0 0 8px 0;
  }
  /* ▼ 追加：SPでの表示順を変更（1→3→2→4の順） ▼ */
  #creampuff_cp .product-item:nth-child(1) {
    order: 1;
  } /* item01（1番目のまま） */
  #creampuff_cp .product-item:nth-child(2) {
    order: 3;
  } /* item02（3番目に移動） */
  #creampuff_cp .product-item:nth-child(3) {
    order: 2;
  } /* item03（2番目に移動） */
  #creampuff_cp .product-item:nth-child(4) {
    order: 4;
  } /* item04（4番目のまま） */
}
/* --- タイトル画像用の弾けるアニメーション（初期状態） --- */
#creampuff_cp .tit .js-title-pop {
  opacity: 0;
  transform: scale(0.2); /* ほぼ見えない極小サイズからスタート */
}
/* 画面に入って is-active が付与されたらアニメーション発動 */
#creampuff_cp .tit .js-title-pop.is-active {
  /* 0.8秒かけて titlePopAnim の動きを実行し、最後の状態（forwards）で止まる */
  animation: titlePopAnim 0.8s ease-out forwards;
}
/* 弾ける動きの定義（キーフレーム） */
@keyframes titlePopAnim {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  50% {
    opacity: 1;
    transform: scale(1.15); /* 一度100%を通り越して「1.15倍」まで飛び出す */
  }
  75% {
    transform: scale(0.95); /* 反動で少し縮む */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* ピタッと100%のサイズに収まる */
  }
}
/* =========================================================
   ▼ Chrome特有の1px背景漏れバグを完全に防ぐための追記 ▼
   ========================================================= */
/* 1. Chromeの描画計算を強制的に綺麗にさせるおまじない */
#creampuff_cp .product-item {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
/* 2. 漏れてしまう隙間の上から「内側ボーダー」を重ねて物理的に塞ぐ */
#creampuff_cp .img-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 親の角丸20pxから枠線4pxを引いた数値（ピッタリ重なるカーブ） */
  border-radius: 16px 16px 0 0;
  /* 上・左・右だけに2pxの線を引き、下（テキストとの境界）には引かない */
  border: 2px solid transparent;
  border-bottom: none;
  pointer-events: none; /* 画像のクリックやスクロールを邪魔しない */
  z-index: 10;
}
/* 各カラーに合わせて線の色を指定し、白い隙間を上から塗りつぶす */
#creampuff_cp .product-item.color-yellow .img-wrapper::after {
  border-color: #faba00;
}
#creampuff_cp .product-item.color-pink .img-wrapper::after {
  border-color: #e9588c;
}