.modal-wrapper {
    margin: 0 auto;
    width: 100%;
    padding: 32px;
    background-color: #F7F6F2;
  font-family: "游ゴシック体", YuGothi, "游ゴシック", "Yu Gothic", "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "Noto Sans Japanese", "Osaka", "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: rgb(70, 67, 67);
  border-radius: 30px;
}
.modal-content {
  border-radius: 30px;
}
.modal-top {
    display: flex;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;

}

.swiper-container {
    position: relative;
    /* margin: 0 auto; */
    max-width: calc(100vw - 90px);
    height: auto;
}

.swiper {
    max-width: calc(100vw - 90px);
    height: auto;
}

@media screen and (min-width: 600px) {
    .swiper-container {
        position: relative;
        /* margin: 0 auto; */
        max-width: 420px;
        height: auto;
    }
    
    .swiper {
        max-width: 420px;
        height: 300px;
    }
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 前への矢印 */
/* .swiper-button-prev {
    left: -30px;
} */

/* 次への矢印 */
/* .swiper-button-next {
    right: -30px;
} */

.test-wrap{
    position: relative;
}

/* ページネーション */
.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: 5px;
}

/* ページネーションの基本スタイル */
.swiper-pagination-bullet {
    background-color: #333;
    border-radius: 0px;
    width: 50px;
}

/* 選択されているページネーション */
/* .swiper-pagination-bullet-active {} */


.item-detail {
    max-width: 425px;
}

.item-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.item-description {
    margin-bottom: 16px;
}

.item-stock {
    margin-right: 0;
    margin-left: auto;
    width: fit-content;
    border: solid 1px grey;
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 12px;
}

.buy-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.item-price {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.15rem;
    padding-left: 16px;
}

.price-unit {
    font-size: 0.8rem;
    color: gray;
    margin-left: 6px;
}

.add-item {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
}

.op_plus {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0 5px;
    cursor: pointer;
}

.op_plus:before,
.op_plus:after {
    display: block;
    content: '';
    background-color: grey;
    border-radius: 5px;
    position: absolute;
    width: 14px;
    height: 2px;
    top: 10px;
    left: 0px;
}

.op_plus:before {
    width: 2px;
    height: 14px;
    top: 4px;
    left: 6px;
}


.item_num {
    width: 18px;
    font-size: 1.5rem;
}
.total_num {
    width: 100px;
    text-align: right;
}
.all_total {
    text-align: right;
}

.op_mnus {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    margin: 0 5px;
    cursor: pointer;
}

.op_mnus:after {
    display: block;
    content: '';
    background-color: grey;
    border-radius: 5px;
    position: absolute;
    width: 14px;
    height: 2px;
    top: 10px;
    left: 0;
}

.border {
    border-top: solid 1px #CCC;
    width: 100%;
}

.total-list {
    padding: 16px;
}

.item-tax {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 0.1rem;

}
.total_num {
    font-size: 1rem;
    letter-spacing: 0.15rem;

}


.item-postage {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #333;
    letter-spacing: 0.1rem;

}

.total-price {
    display: flex;
    justify-content: space-between;
    height: 40px;
    background-color: #fff;
    font-weight: bold;
    border-radius: 2px;
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding: 0 16px;
    line-height: 40px;
}
.payment-method {
    display: flex;
    font-weight: bold;
    border-radius: 2px;
    font-size: 1.3rem;
    margin-bottom: 32px;
    line-height: 20px;
}
.payment-method input {
    appearance: revert;
}
.all_total {
    font-size: 1.7rem;
letter-spacing: 0.15em;
}

.price-head {
    font-size: 0.8rem;
}
.add-list {
    display: flex;
    gap: 16px;
}

.btn-list {
    font-weight: bold;
    display: block;
    color: #fff;
    background-color: #eb6100;
    margin: 0 auto;
}

.btn-list:hover {
    color: #fff;
    background: #f56500;
}

.modal-bottom {
    max-width: 875px;
    margin: 0 auto;
}
.btn-list-cansel {
    font-weight: bold;

    display: block;
    color: #fff;
    background-color: #4c4c4c;
    margin: 0 auto;
}

.bottom-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    margin: 80px 0 40px 0;
}

.bottom-contents {
    margin-bottom: 32px;
    width: 90%;
    /* background-color: #eb6100; */
    margin: 0 auto;
}
.user-voice-all {
    margin-bottom: 10px ;
}
.user-voice-one:not(:last-child) {
    border-bottom: 1px solid lightgray;
    padding-bottom: 10px ;
    margin-bottom: 10px ;
}

.lows {
    margin-bottom: 20px;
}
.low-flex .title{
    background-color: #dbdbdb;
    padding: 10px;
    border: 1px solid #adadad;
    font-size: 1.3rem;
}
.low-flex .contents{
    padding: 10px;
    border: 1px solid #adadad;
    font-size: 1.3rem;
}
@media screen and (min-width: 600px) {
    .low-flex {
        display: flex;
    }
    .low-flex .title{
        width: 40%;
    }
    .low-flex .contents{
        width: 60%;
    }
}
pre {
    white-space: pre-wrap;
}

.bottom-title {
    font-weight: bold;
}

.bottom-sub {
    font-size: 0.7rem;
    font-weight: normal;
}

.border-short {
    border-top: solid 1px #CCC;
    height: 1px;
    width: 25px;
}

.bottom-title-s {
    font-weight: bold;
}
@media screen and (min-width: 600px) {
    .bottom-title {
        font-size: 18px;
    }
    .bottom-title-s {
        font-size: 18px;
    }
    .border-short {
        width: 100px;
    }
}
/* モーダルから戻った後の値のためのCSS */
.cart-back {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background-color: #F7F6F2;
    font-size: 1.2rem;
    font-weight: bold;
}
.cart-contents {
    display: none;
}
.cart-contents.isactive {
    width:100%;
    display:inline-block;
}
.cart_empty {
    display: inline-block;
}
.cart_empty.ishide {
    display: none;
}
.cart-flex{

    display: flex;
    justify-content: space-between;
}

.square_btn {
display: inline-block;
position: relative;
width: 30px;
height: 30px;
border: 2px solid white; /* 枠の調整 */
background: red; /* ボタンの背景色 */
}

.square_btn::before, .square_btn::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 3px; /* 棒の幅（太さ） */
height: 27px; /* 棒の高さ */
background: white; /* バツ印の色 */
}

.square_btn::before {
transform: translate(-50%,-50%) rotate(45deg);
}

.square_btn::after {
transform: translate(-50%,-50%) rotate(-45deg);
}