/*---------------------------------------
  モーダル関連（TOP、商品一覧）
---------------------------------------*/
/* オーバーレイのスタイル */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 4px;
    z-index: 9999;
    position: relative;
    left: 50%;
    margin: auto;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
  
/* 閉じるボタンのスタイル */
.modal-close {
    background-color: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    position: absolute;
    right: 6px;
    top: 6px;
    transition: color 0.2s;
    z-index: 8000;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 35px 30px;
}
  
.modal-body .text {
    text-align: center;
}
  
.modal-body .modal-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
  
.modal-body .modal-btn .btn {
    border: none;
    border-radius: 4px;
    display: block;
    margin: auto;
    padding: 12px auto;
    width: 100%;
}

.btn-confirm{
    background-color: #af7d79;
    color: white;
}

.btn-middle{
    background-color: #F3E0DE;
    color: #333;
}

.btn-cancel{
    background-color: #f2f2f2;
    color: #333;
}

.btn-confirm:hover {
    background-color: #774c47;
    color: white;
}

.btn-middle:hover {
    background-color: #cfb5b2;
    color: #333;
}

.btn-cancel:hover {
    background-color: #e6e6e6;
}

