@charset "UTF-8";

@media screen and (max-width: 960px) {

  /* ===========================================
    BASE
  =========================================== */
  html {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
  }

  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }

  /* ===========================================
    FV
  =========================================== */
  .p-fv__img::after {
    height: 56px;
    background: linear-gradient(to bottom, transparent 15%, rgba(249, 240, 240, 0.9) 100%);
  }

  .p-fv__text-area {
    position: relative;
    max-width: 100%;
    padding: 70px 20px 40px;
  }

  .p-fv__label {
    font-size: 10px;
  }

  .p-fv__title {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 78px;
  }

  .p-fv__copy {
    font-size: 14px;
    line-height: 1.65;
  }

  
.p-fv__color-exchange-btn {
  position: absolute;
  top: 0;
  translate: 0 -100%;
  right: 5px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #D39D8D;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;;
  transition: opacity 0.3s ease;
  z-index: 2;
}


.p-fv__color-exchange-text {
  font-size: 12px;
  font-weight: 400;
}

.p-fv__color-exchange-arrow {
  font-size: 12px;
}


  /* ===========================================
    CAMPAIGN
  =========================================== */
  .p-campaign {
    padding: 0 0 100px 0;
  }

  .p-campaign__inner {
    padding-inline: 10px;
    max-width: 500px;
    margin-inline: auto;
  }

  .p-campaign__top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
  }

  .p-campaign__img-col {
    text-align: center;
  }

  .p-campaign__content-col {
    overflow: hidden;
    width: 100%;
  }

  .p-campaign__product-img {
    width: 286px;
    max-width: 100%;
  }

  .p-campaign__title {
    font-size: 28px;
    margin: 0;
    text-align: center;
  }

  .p-campaign__gift-header {

  }
  
  .p-campaign__title-line {
    margin-bottom: 8px;
    width: 100%;
    max-width: 500px;
  }

  .p-campaign__lead{
    text-align: center;
    margin-bottom: 40px;
  }

  .p-campaign__gift {
    max-width: 100%;
    position: relative;
  }




.p-campaign__gift-body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0 10px 8px;
}


.p-campaign__gift-img {
  position: absolute;
  width: 114px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  top: -18px;
  right: 0;
}


  .p-campaign__gift-note {
    white-space: normal;
  }

  .p-campaign__products {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .p-campaign__btn {
    width: 100%;
    max-width: 355px;
    height: 61px;
    font-size: 18px;
    font-weight: 400;
    align-self: center;
  }

  .p-campaign__product-top{
    width: 100%;
  }

  .p-campaign__product-top > img {
    display: none;
  }

  .p-campaign__product {
    align-items: center;
  }

  .p-campaign__product-name {
    text-align: left;
    font-weight: 400;
  }

  .p-campaign__product-price {
    text-align: left;
  }

  .p-campaign__caution{
    text-align: left;
  margin-bottom: 5px;
  }

  /* ===========================================
    PRODUCT
  =========================================== */
  .p-product__inner {
    padding: 40px 15px;
    max-width: 500px;
    margin-inline: auto;
  }

  .p-product__title {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 24px;
  }

  .p-product__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .p-product__card {
   padding: 0;
  }

  .p-product__card-label {
    font-size: 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .p-product__card-text {
    font-size: 14px;
    margin-bottom: 27px;
  }

  .p-product__grid {
    display: flex;
    flex-direction: column;
   
  }


.p-product__soap {
 padding-block: 16px 4px;
  padding-right: 12px;
  background-color: rgba(255, 255, 255, 0.7);
}

.p-product__soap-icon {
  width: 112px;
  height: auto;
  flex-shrink: 0;
}

.p-product__soap-title {
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  margin-bottom: 4px;
}

.p-product__soap-text {
  font-size: 11px;
  color: #000000;
  font-weight: 300;
  line-height: 1.7;
}


  .p-product__flower-wrap {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    order: -1;
    margin-bottom: 24px;
  }

  .p-product__flower-grid {
    width: 100%;
    aspect-ratio: 1;
  }

  .p-product__flower-img {
    max-width: 100%;
  }

  .p-product__free{
    margin-top: 40px;
  }
  /* アコーディオン: フリー処方 */
  .p-product__free-title {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 5px 14px;
    border: 1px solid #000000;
    position: relative;
    font-size: 16px;
  }

  .p-product__free-title::after {
    position: absolute;
    content: '+';
    font-size: 30px;
    font-weight: 300;
    color: #707070;
    line-height: 1;
    flex-shrink: 0;
    top: 11px;
    right: 18px;
    transition: rotate 0.3s ease-out;
  }

  .p-product__free-title.is-open::after {
    rotate: 45deg;
    transform-origin: center center;
  }

  .p-product__free-img {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .p-product__free-img.is-open {
    max-height: 500px;
  }

  /* ===========================================
    POINT
  =========================================== */
  .p-point {
    padding: 48px 0;
  }

  .p-point__inner {
    padding-inline: 10px;
    max-width: 500px;
    margin-inline: auto;
  }

  .p-point__title {
    font-size: 26px;
    font-weight: 300;
    padding-inline: 16px;
    margin-bottom: 32px;
  }

  /* SP は Swiper スライダー */
  .p-point__grid {
    display: block;
    overflow: hidden;
  }


  .p-point__card-item {
    margin-inline: 0;
    border-radius: 16px;
    padding: 36px 8px 23px;
  }

  .p-point__card-heading {
    font-size: 16px;
  }

  .p-point__card-text {
    font-size: 14px;
  }

  .p-point__plants {
    gap: 10px;
  }

  .p-point__plant img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
  }

.p-point__card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 0px;
}

  .p-point__swiper-pagination {
    display: block;
    text-align: center;
    margin-top: 16px;
  }

  .p-point__note {
    padding-inline: 0px;
    margin-top: 85px;
  }

  /* ===========================================
    COLOR CHART
  =========================================== */
  .p-color-chart {
    padding: 76px 0;
  }

  .p-color-chart__inner {
    padding-inline: 10px;
    max-width: 500px;
    margin-inline: auto;
  }

  .p-color-chart__title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .p-color-chart__main {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  /* [12] PC専用要素はSPで非表示 */
  .p-color-chart__product {
   width: 294px;
   height: auto;
   margin-inline: auto;
  }

  /* SP: スウォッチ一覧（画像なし・flex wrap） */
  .p-color-chart__swatches-sp {
    margin-bottom: 24px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    max-width: 250px;
    margin-inline: auto;
  }

  .p-color-chart__swatches .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
    width: 100%;
    transform: none !important;
  }

  .p-color-chart__swatches .p-color-chart__swatch {
    width: auto;
    flex-shrink: 0;
  }

  .p-color-chart__swatches .p-color-chart__swatch img {
    display: none;
  }

  .p-color-chart__swatches .p-color-chart__swatch-info {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* SP: 選択中スウォッチ（大表示） */
  .p-color-chart__active-swatch {
    margin-bottom: 16px;
    position: relative;
  }

  .p-color-chart__active-swatch #js-swatch-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    text-align: right;
  }
  .p-color-chart__active-swatch .p-color-chart__swatch-circle{
    grid-column: 3;
  }

  .p-color-chart__active-swatch img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* SP: サムネイル横スクロール */
  .p-color-chart__thumbs {
    width: 100vw;
    margin-left:calc(50% - 50vw);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
  }

  .p-color-chart__thumbs::-webkit-scrollbar {
    display: none;
  }

  .p-color-chart__thumb {
    width: 200px;
    aspect-ratio: 1;
    flex-shrink: 0;
    overflow: hidden;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .p-color-chart__thumb.is-active {
    opacity: 1;
  }

  .p-color-chart__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  /* SP: カラー対応ページネーションドット */
  .p-color-chart__thumb-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
  }

  .p-color-chart__thumb-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
  }

  .p-color-chart__thumb-dot.is-active {
    opacity: 1;
  }

  .p-color-chart__product-sp {
    display: block;
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .p-color-chart__product-sp img {
    width: 100%;
    height: auto;
  }

  /* [13] スウォッチ Swiper */
  .p-color-chart__swatches {
    overflow: visible;
    margin-bottom: 24px;
    justify-content: flex-start;
  }

  .p-color-chart__swatches .swiper-wrapper {
    align-items: flex-start;
  }

  .p-color-chart__swatch.swiper-slide {
    width: calc(100% / 2.5);
    flex-shrink: 0;
  }

  .p-color-chart__swatch img {
    width: 100%;
    max-width: none;
  }

  .p-color-chart__swatch-info {
    gap: 4px;
    column-gap: 4px;
  }

  .p-color-chart__swatch-circle {
    width: 21px;
    height: 21px;
  }

  .p-color-chart__swatch-num {
    font-size: 10px;
  }

  .p-color-chart__swatch-name {
    font-size: 8px;
    margin-top: -3px;
  }

  .p-color-chart__swatches-pagination {
    display: block;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  /* SP スウォッチスライダー（c-item__swiper-container 内） */
  .c-item__swiper-container .p-color-chart__swatch img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* カラー名リスト（product-sp 下） */
  .p-color-chart__color-names {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .p-color-chart__color-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }

  .p-color-chart__btn {
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 18px;
  }

  /* ===========================================
    HOW TO USE
  =========================================== */
  .p-how-to-use {
    padding: 48px 0;
  }

  .p-how-to-use__inner {
    padding-inline: 10px;
    max-width: 500px;
    margin-inline: auto;
  }

  .p-how-to-use__title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .p-how-to-use__lead {
    font-size: 14px;
    line-height: 1.75;
    text-align: left;
    margin-bottom: 50px;
  }

  .p-how-to-use__card {
    padding: 28px 10px;
    border-radius: 16px;
  }

  .p-how-to-use__card-label {
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
  }

  .p-how-to-use__card-title {
    font-size: 21px;
    margin-bottom: 20px;
    text-align: center;
  }

  .p-how-to-use__exchange {
    gap: 0px;
    justify-content: center;
    align-items: center;
  }

  .p-how-to-use__exchange-arrow {
    text-align: center;
    margin-left: -10px;
    flex-shrink: 0;
  }

  .p-how-to-use__exchange-img {
    width: 144px;
  }
  .p-how-to-use__exchange-img:last-of-type {
    margin-left: -10px;
  }

  .p-how-to-use__exchange-text {
    font-size: 16px;
  }

  .p-how-to-use__card-body {
    font-size: 14px;
    text-align: left;
    margin-bottom: 16px;
  }

  .p-how-to-use__card-period {
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
  }

  .p-how-to-use__steps {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .p-how-to-use__step {
    min-height: auto;
    padding: 16px 10px 10px;
  }

  .p-how-to-use__step-num{
    margin-bottom: 3px;
  }

  .p-how-to-use__step-text {
    font-size: 12px;
  }

  .p-how-to-use__step-line{
    margin-bottom: 8px;
  }

}

/* PC: swiper構造追加後のレイアウト補正 */
@media (min-width: 961px) {
  .p-color-chart__swatches .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px ;
    width: 100%;
  }

  .p-color-chart__swatch.swiper-slide {
    width: auto;
    flex-shrink: 0;
  }

  .p-color-chart__product-sp {
    display: none;
  }
}




.c-item__swiper-container,
.c-item__swiper,
.c-item__swiper-wrapper,
.c-item__swiper-slide {
  position: relative;
}
.c-item__swiper-container {
  position: relative;
 

}
.c-item__swiper {

}
.c-item__swiper-wrapper {
  align-items: stretch;
}
.c-item__swiper-slide {
  position: relative;
  z-index: 1;
  height: auto;
}


.swiper-pagination-bullets.swiper-pagination-horizontal {
  top: calc(100% + 12px);

}
.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
  opacity: 1;
  opacity: 1;
  width: 14px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFFFFF;
  margin-inline: calc(16px / 2);
}
.swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet-active {
  background: #CA9683;
}


@media (max-width: 768px) {
  .p-color-chart__thumb{
    width: 167px;
  }
}