@charset "utf-8";

/*-------------モーダル--------------*/
/* モーダル（ビューワー）全体枠 */
.goods_modal_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.goods_modal_wrapper.is-active {
    display: flex;
}

/* 暗い背景 */
.goods_modal_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

/* モーダルコンテンツ領域 */
.goods_modal_content {
    background-color: #000;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 黒い枠付きの商品詳細カード */
.goods_modal_body {
    background-color: #000;
    padding: 30px 0;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.goods_modal_body img {
    width: 100%;
    height: auto;
}

.goods_modal_info {
    width: 100%;
    margin-top: 16px;
    color: #fff;
    font-family: "Noto Sans JP", sans-serif;
}

.goods_modal_name {
    font-size: 20px;
    font-weight: 400;
    text-align: left;
    margin: 0;
    color: #fff;
}

.goods_modal_price {
    font-size: 20px;
    font-weight: 400;
    text-align: right;
    margin-top: 12px;
    color: #fff;
}
.goods_modal_size {
    font-size: 12px;
    font-weight: 400;
    text-align: left;
    color: #ccc;
}
/* 複数行(<p>)が出現した際の余白・行間指定 */
.goods_modal_price p {
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.goods_modal_price p:first-child {
    margin-top: 0;
}
.goods_modal_price span,
.goods_modal_price small {
    font-size: 12px;
    font-weight: normal;
}

/* 左右矢印ボタン */
.goods_modal_prev,
.goods_modal_next {
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
    outline: none;
    z-index: 2;
    width: 30px;
    padding: 8px;
}

.goods_modal_prev:hover,
.goods_modal_next:hover {
    opacity: 0.7;
}

/* 閉じるボタン（下部×印） */
.goods_modal_close {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    outline: none;
    text-shadow: 0 0 2px #000;
}

.goods_modal_close:hover {
    opacity: 0.7;
}

@media (max-height:900px) and (min-width:441px){
    .goods_modal_body,.goods_modal_content{
        width: 90%;
        max-width: 400px;
        height: auto;
    }
    .goods_modal_body{
        padding:20px 0;
    }
    .goods_modal_close {
        bottom: 1px;
    }
    .goods_modal_info{
        margin-top: 8px;
    }
    .goods_modal_name{
        font-size: 16px;
    }
    .goods_modal_size{
        font-size: 10px;
    }
    .goods_modal_price{
        font-size: 16px;
    }
    .goods_modal_price span, .goods_modal_price small {
        font-size: 10px;
    }
}
@media (max-width:440px){
    .goods_modal_body,.goods_modal_content{
        width: 96%;
        max-width: 96%;
        height: auto;
    }
    .goods_modal_prev,
    .goods_modal_next {
        width: 30px;
        padding: 4px;
    }
    .goods_modal_body{
        padding:24px 8px;
    }
    .goods_modal_info{
        margin-top: 8px;
    }
    .goods_modal_name{
        font-size: 16px;
    }
    .goods_modal_size{
        font-size: 10px;
    }
    .goods_modal_price{
        font-size: 16px;
    }
    .goods_modal_price span, .goods_modal_price small {
        font-size: 10px;
    }
}