/* --- スライダーの設定 --- */

.main-slider,
.tab-slider {
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.main-slider {
    margin-bottom: 20px;
}

.slider-box {
    border: solid 1.5px #7EC6E5;
    border-radius: 10px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}

.slide-swipe {
    color: #9c9c9c;
    font-weight: bold;
    padding-bottom: 16px;
}

.tab-slider {
    margin-top: 20px;
    margin-bottom: 40px;
}

.main-slider .slick-list {
    background-color: transparent;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.main-slider .slick-slide,
.tab-slider .slick-slide {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    height: auto;
    background-color: transparent;
}

.slick-slide-inner {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    width: 100%;
}

.slide-image-area {
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    box-sizing: border-box;
}

.slide-image-area.bg-a {
    background-color: #fff;
}

.slide-image-area.bg-b {
    background-color: #fff;
}

.main-slider img {
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    background-color: transparent;
}

#tab1 .main-slider img,
#tab2 .main-slider img {
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    background-color: transparent;
}

.slide-content {
    margin-top: 0;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    background-color: white;
    padding: 15px 10px;
    box-sizing: border-box;
    max-width: 300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1170px) {
    .slide-image-area {
        padding: 30px;
    }

    .slide-content {
        padding: 15px 30px;
    }
}


@media (max-width: 980px) {
    .slide-image-area {
        padding: 3%;
    }

    .slide-content {
        padding: 15px 10px;
    }
}

@media (max-width: 600px) {

    .slider-box-sell,
    .slider-box-buy {
        padding: 24px 0px;
    }

    .slick-prev.custom-arrow,
    .slick-next.custom-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }

    .slick-prev.custom-arrow {
        left: 0px;
    }

    .slick-next.custom-arrow {
        right: 0px;
    }

    #tab1 .main-slider img,
    #tab2 .main-slider img {
        margin: 0 auto;
    }

    .main-slider .slick-slide {
        opacity: 0.5;
        transition: opacity 0.3s ease-in-out;
    }

    .main-slider .slick-current {
        opacity: 1;
    }

    .slide-content {
        padding: 6px 1% 0px 1%;
        margin-left: auto;
        margin-right: auto;
        opacity: 0;
        height: auto;
        overflow: hidden;
        transition: opacity 0.01s ease-in-out, height 0.01s ease-in-out;
    }

    .slick-current .slide-content {
        opacity: 1;
        height: auto;
    }

    .slide-image-area {
        width: 100%;
        margin: 0 auto;
        padding: 3px;
    }
}

@media (max-width: 450px) {
    .slide-content {
        max-width: 280px;
        width: 95%;
    }

    .slide-image-area {
        max-width: 280px;

    }
}

.slide-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #7D00BE;
    margin-bottom: 5px;
    letter-spacing: 0.15rem;
}

#tab1 .slide-number {
    color: #1FA5DE;
}

#tab2 .slide-number {
    color: #EAC42B;
}

.slide-number small {
    color: #555;
    font-size: 1.4rem;
    font-weight: 300;
}

.slide-description {
    font-size: 1.6rem;
    color: #555;
    line-height: 1.4;
    text-align: left
}

/* --- カスタム矢印ボタンのスタイル --- */
.slick-prev.custom-arrow,
.slick-next.custom-arrow {
    position: absolute;
    top: 280px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-right: -10px;
    margin-left: -10px;
    transition: background-color 0.3s ease;
}

.slick-prev.custom-arrow:hover,
.slick-next.custom-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slick-prev.custom-arrow {
    left: -50px;
}

.slick-next.custom-arrow {
    right: -50px;
}

.slider-box-sell .slick-prev.custom-arrow,
.slider-box-sell .slick-next.custom-arrow {
    background-color: #1FA5DE;
}

.slider-box-sell .slick-prev.custom-arrow:hover,
.slider-box-sell .slick-next.custom-arrow:hover {
    background-color: #1FA5DE;
}

.slider-box-buy .slick-prev.custom-arrow,
.slider-box-buy .slick-next.custom-arrow {
    background-color: #EAC42B;
}

.slider-box-buy .slick-prev.custom-arrow:hover,
.slider-box-buy .slick-next.custom-arrow:hover {
    background-color: #EAC42B;
}

.fa-chevron-left:before,
.fa-chevron-right:before {
    color: #fff;
}

.slider-box-sell {
    border-color: #7EC6E5;
    padding: 56px 0px;
    margin-top: 32px;
}

.slider-box-buy {
    border-color: #EAC42B;
    padding: 56px 0px;
    margin-top: 32px;
}

.slider-box-normal {
    border: none;
}

@media (min-width: 981px) {

    .main-slider .slick-prev.custom-arrow,
    .tab-slider .slick-prev.custom-arrow {
        left: -50px;
        margin-left: 1%;
    }

    .main-slider .slick-next.custom-arrow,
    .tab-slider .slick-next.custom-arrow {
        right: -50px;
        margin-right: 1%;
    }
}

@media (max-width: 980px) {
    .slick-prev.custom-arrow {
        left: -4px;
    }

    .slick-next.custom-arrow {
        right: -4px;
    }
}

.slick-prev.slick-disabled,
.slick-next.slick-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 600px) {

    .slider-box-sell,
    .slider-box-buy {
        padding: 24px 0px;
    }


}


/* --- タブ切り替えセクションのスタイル --- */
.tab-box {
    border-radius: 8px;
    background-color: #fff;
}

.tab-buttons {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 24px 20px 0px 20px;
    background-color: #ECECEC;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.tab-button:hover {
    background-color: #f0f0f0;
}

.tab-button.active[data-tab="tab1"] {
    background-color: #F5FCFF;
    cursor: default;
}

.tab-button.active[data-tab="tab2"] {
    background-color: #FFFDF5;
    cursor: default;
}

.tab-button img {
    max-width: 70px;
    height: auto;
    transition: filter 0.3s ease;
}

.tab-button.active img {
    filter: grayscale(0%);
}

.tab-button span {
    font-size: 2.4rem;
}

.tab-button[data-tab="tab1"] span {
    color: #ACACAC;
}

.tab-button.active[data-tab="tab1"] span {
    color: #1FA5DE;
}

.tab-button[data-tab="tab2"] span {
    color: #ACACAC;
}

.tab-button.active[data-tab="tab2"] span {
    color: #EAC42B;
}

.tab-button.active[data-tab="tab1"] {
    border-bottom: 3px solid #1FA5DE;
}

.tab-button.active[data-tab="tab2"] {
    border-bottom: 3px solid #EAC42B;
}

.tab-content {
    display: none;
    line-height: 1.6;
    color: #333;
}

.tab-content.active {
    display: block;
}

#tab1.tab-content.active {
    background-color: #F5FCFF;
    margin-top: -20px;
}

#tab2.tab-content.active {
    background-color: #FFFDF5;
    margin-top: -20px;
}

.tab-bg {
    margin: 0px 40px;
}

.tab-button:hover {
    opacity: 0.5;
}

.tab-button.active:hover {
    opacity: 1;
}

@media (max-width: 798px) {
    .tab-button {
        flex-direction: column;
        gap: 10px;
    }

    .tab-bg {
        margin: 0px 20px;
    }

    .tab-button span {
        font-size: 2rem;
    }
}