@charset "UTF-8";

/* =======================================
   SP用 ベーススタイル
======================================= */
.sec-beginners-point-sp {
  background-color: #E0E721;
  display: flex;
  flex-wrap: wrap;
}
.beginners-point-title-sp {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #E0E721;
}
.beginners-point-title-img-sp {
  width: 80%;
}
.btn-icon-sp .lni-xmark, .btn-icon-sp .lni-chevron-up {
  font-size: 60px;
  color: #ffffff;
  margin-right: 1rem;
}
.sec-beginners-point-contents-sp {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.beginners-point-text-sp {
  width: 100%;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  line-height: 0;
}
.beginners-point-text-sp h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 2rem 2rem 2rem 2rem;
}
.beginners-point-text-sp p {
  margin: 0 2rem 1rem 2rem;
  line-height: 1.8;
  font-size: 16px;
}
.beginners-point-photo-sp {
  width: 100%;
  margin-top: 1rem;
  line-height: 0;
}

/* Creators section */
.sec-creators-point-sp {
  background-color: #2E3137;
  display: flex;
  flex-wrap: wrap;
}
.creators-point-title-sp {
  width: 100%;
  height: 96px;
  flex: 0 0 96px; /* ★追加: タイトルの高さを96pxに完全固定して隙間漏れを防止 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 0;
  background-color: #2E3137;
  z-index: 9998;
}
.creators-point-title-img-sp {
  width: 80%;
  height: 80px;
}
.sec-creators-point-contents-sp {
  width: 100%;
  display: flex;
  z-index: 9997;
  flex-wrap: wrap;
}
.creators-point-text-sp {
  width: 100%;
}
.creators-point-text-sp h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 1rem;
  margin-right: 2rem;
  margin-left: 2rem;
  margin-bottom: 1rem;
}
.creators-point-text-sp p {
  color: #ffffff;
  margin: 2rem;
  line-height: 1.8;
  font-size: 16px;
}
.ph-creators-sp {
  line-height: 0;
}

/* =======================================
   SP用 アニメーション・配置スタイル
======================================= */

/* スライド領域のコンテナ */
.main-visual-wrapper-sp {
  position: relative;
  width: 100%;
  height: calc(200vw + 96px); 
  overflow: hidden;
  contain: paint;
  clip-path: inset(0);
  background-color: #E0E721;
  z-index: 10;
  scroll-margin-top: 60px; /* カシオSPヘッダーの高さに合わせて調整 */
}

/* 下敷きコンテンツ */
.sec-beginners-point-sp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

/* スライドパネル全体 */
.creators-sliding-panel-sp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;             /* ★追加: h3の隙間漏れ防止 */
  flex-direction: column;    /* ★追加: h3の隙間漏れ防止 */
  transform: translateY(200vw);
}

/* 開閉時のアニメーション呼び出し */
.creators-sliding-panel-sp.is-open-sp {
  transform: translateY(0);
  animation: customBounceInUpSp 0.7s forwards;
}

.creators-sliding-panel-sp.is-closed-sp {
  transform: translateY(200vw);
  animation: customBounceOutDownSp 0.7s forwards;
}

/* アイコン自体の滑らかな変化 */
.btn-icon-sp i {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* =======================================
   SP用 キーフレーム（スマホの画面幅に合わせたバウンド）
======================================= */
@keyframes customBounceInUpSp {
  0% { transform: translateY(200vw); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  55% { transform: translateY(-40px); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  75% { transform: translateY(20px); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  90% { transform: translateY(-10px); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  100% { transform: translateY(0); }
}

@keyframes customBounceOutDownSp {
  0% { transform: translateY(0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); }
  55% { transform: translateY(calc(200vw + 40px)); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  75% { transform: translateY(calc(200vw - 20px)); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  90% { transform: translateY(calc(200vw + 10px)); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
  100% { transform: translateY(200vw); } /* ★修正: 160vwのままになっていた部分を200vwに修正 */
}