/* Swiper container settings */
.swiper-container {
    width: 100%;
    height: 100vh; /* Full screen height */
    position: relative;
    width: 100%;
    height: auto;
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: white;
}

.swiper-slide figure{
    position: relative;
}
.swiper-slide figure:hover:after{
    content: none;
}
.swiper-slide figure:before{
    content: "";
    display: inline-block;
    width: 15px;
    height: 3px;
    position: absolute;
    bottom: 9px;
    left: 4px;
    background-color: #fff;
}
.swiper-slide figure:after{
    content: "";
    display: inline-block;
    width: 3px;
    height: 15px;
    position: absolute;
    bottom: 3px;
    left: 9px;
    background-color: #fff;
    transition: .5s;
}

.swiper-horizontal{
    height: auto;
    overflow: hidden;
}
.slide__image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover the entire slide */
}

/* Title and text positioning */
.slide__content {
   /* max-width: 480px; */
   width: 100%;
}


.slide__title {
    font-size: clamp(24px, 5vw, 48px); /* Responsive title size */
    margin: 0;
}

.slide__text {
    font-size: clamp(16px, 2vw, 24px); /* Responsive text size */
    margin-top: 10px;
}

/* Swiper pagination and navigation */
.swiper-pagination {
    bottom: 10px;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
}
.swiper-body{
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}
/* .swiper-pagination{
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    left: unset;
    bottom: unset;
    text-align: right !important;
} */
.swiper-pagination-bullet {
    border-radius: 0;
    width: 30px;
    height: 30px;
    background-color: #242424;
  }
.swiper-family{
    max-width: 100% !important;
    height: 180px;
}

    /* 共通スタイル */
.family-prev,
.family-next {
    width: 0 !important;
    height: 0  !important;
    border-style: solid;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 99;
}

/* 次へボタン（三角形右向き） */
.family-next{
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #E9E9E9;
    right: 10px; /* 右に配置 */
}

/* 前へボタン（三角形左向き） */
.family-prev {
    border-width: 10px 15px 10px 0;
    border-color: transparent #E9E9E9 transparent transparent;
    left: 10px; /* 左に配置 */
}

  /* サムネイルスライダー */
  /* Main slider settings */
/* メインスライダー */
.main-slider {
    width: 100%;
    max-width: 300px;
    height: 300px; /* メインスライダーの高さ */
    position: relative;
    margin: auto;
}
.main-slider .swiper-wrapper{
    height: 300px;
}

.main-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の縦横比を保ちながらスライダーを埋める */
}

/* サムネイルスライダー */
.thumbnail-slider {
    width: 100%;
    max-width: 840px;
    height: 120px; /* サムネイルスライダーの高さ */
    position: relative;
    overflow: visible;
    margin-top: 28px;
}
.thumbnail__slider:before{
    content: none;
}
.thumbnail__slider{
    padding: 0;
}
.thumbnail-slider .swiper-wrapper
.thumbnail-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.thumbnail-slider .swiper-slide {
    width: 150px !important; /* サムネイルの幅を調整 */
    height: 150px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    background:none;
}

.thumbnail-slider .swiper-slide-thumb-active {
    opacity: .7;
}

.custom-button-next, .custom-button-prev {
    color: white;
    width:0;
    height:0  !important;
    margin-top: 40px !important;
}

.thumbnail-slider__wrapper{
    justify-content: center;
}
/* サムネイルが暗くなるスタイル */
.thumbnail-active img {
    opacity: 0.5; /* サムネイルを暗くする */
    transition: opacity 0.3s ease;
}

.p-features__slide{
    max-width: 100%;
    width: calc(100% / 2 - 20px) !important;
    position: relative;
}
.p-features__slide:before{
    content: "";
    background-color: #333;
    width: 22px;
    height: 22px;
    position: absolute;
    bottom: 0;
    left: 0;
}
.p-features-pagination.swiper-pagination{
    text-align: right;
    top: 0  !important;
    padding:0 20px;
    height: fit-content;
    width: fit-content;
}
.p-features-pagination.swiper-pagination:before{
    content: "";
    display: inline-block;
    border-right:4px solid;
    border-bottom:4px solid;
    top: 50%;
    left: 0;
    width:0;
    height:0;
    border-style:solid;
    border-width: 4px 8px 4px 0;
    border-color: transparent #242424 transparent transparent;
    margin-right: 8px;
}
.p-features-pagination.swiper-pagination:after{
    content: "";
    display: inline-block;
    border-right:4px solid;
    border-bottom:4px solid;
    top: 50%;
    right: 0;
    height:0;
    width:0;
    height:0;
    border-style:solid;
    border-width: 4px 0 4px 8px;
    border-color: transparent transparent transparent #242424;
    margin-left: 8px;
}
@media (min-width: 768px) {
    
    .p-features__slide{
        width: calc(100% / 3 - 6px) !important;
        max-width: 100%;
    }
    .swiper-slide:before{
        width: 80px;
        height: 80px;
    }
    .swiper-slide figure:before{
        width: 25px;
        bottom: 38px;
        left: 27px;
    }
    .swiper-slide figure:after{
        content: "";
        display: inline-block;
        width: 3px;
        height: 25px;
        position: absolute;
        bottom: 28px;
        left: 38px;
        background-color: #fff;
    }
   
    .swiper-family{
        height: 200px;
    }
    .main-slider{
        margin:0 !important;
    }
    .thumbnail-slider{
        overflow: hidden;
        margin:50px auto 0;
        
    }
    .thumbnail-slider .swiper-slide{
        width: 200px !important;
        height: 200px;
    }
    .thumbnail-slider{
        max-width: 840px;
        height: 120px; /* サムネイルスライダーの高さ */
        /* margin: -200px auto 0; */
    }
}

.slider-thumbnail .swiper-slide {
    opacity: .5;
    transition: opacity .5s;
    /* width: calc(100% / 3); */
  }
  .slider-thumbnail .swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
  }
  /* レイアウトのためのスタイル */
  .swiper {
    max-width: 900px;
    width: 100%;
  }
  .swiper-slide img {
    height: 100%;
    width: 100%;
  }

  /* -----------------childスライド-------------- */
  .slider{
    max-width: 280px;
    margin:auto;
    overflow: hidden;
  }
  .slider .swiper-wrapper .swiper-slide:before{
    content: none;
  }
  .p-childArea{
    /* border-radius: 40px; */
    /* height: 880px; */
    overflow-y: scroll;
    height: auto;
  }

  .body-scroll {
    scroll-behavior: smooth;
}
.slider-thumbnail{
    margin-top: 47px;
}
  .slider-thumbnail02{
    margin-top: 48px;
  }
  .slider-thumbnail02 .swiper-wrapper .swiper-slide:before{
    content: none;
  }
  .p-childArea__body{
    max-height: calc(100vh - 130px);
    overflow-y: auto; 
  }
  .sliderMain{
    max-width: 350px;
    margin:auto;
}
  @media (min-width: 768px) {
    .p-childArea{
        height: 650px;
        max-width: 900px;
        margin: auto;
    }
    .sliderMain{
        max-width: 100%;
    }
    .slider{
        max-width: 350px;
        margin: unset;
    }
    
    .p-childArea__body{
        display:flex;
        gap: 40px;
        justify-content: center;
        padding-right: 2rem;
        padding-left: 2rem;
      }
  }

  .swiper-horizontal::-webkit-scrollbar{
	display:none;
}
  
/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* ーーーーーーーーーーーーーーーーfeatures矢印ーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 共通スタイル */
.custom-button-next,
.custom-button-prev {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* 次へボタン（三角形右向き） */
.custom-button-next {
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #000;
    right: 10px; /* 右に配置 */
}

/* 前へボタン（三角形左向き） */
.custom-button-prev {
    border-width: 10px 15px 10px 0;
    border-color: transparent #000 transparent transparent;
    left: 10px; /* 左に配置 */
}


/* サムネイルスライダー矢印 */
.thumbnail-prev01{
    border-width: 10px 15px 10px 0;
    border-color: transparent #E9E9E9 transparent transparent;
    left: 10px;
}
.thumbnail-next01{
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #E9E9E9;
    right: 10px;
}
.thumbnail-prev01,
.thumbnail-next01{
    width: 0 !important;
    height: 0 !important;
    border-style: solid;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 99;
}