@charset "UTF-8";

.preorder-detail {
    display: flex;
    flex-wrap: wrap;
    max-width: 85%;
    gap: 20px;
    padding: 0;
    justify-content: center;
    margin: 0 auto;
}
.preorder-images {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}
.preorder-main-image img {
    width: 100%;
    height: auto;
    display: block;
}
.preorder-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.preorder-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.preorder-thumbnails img.active,
.preorder-thumbnails img:hover {
    border-color: #e91e63;
}
.preorder-info {
    flex: 1;
    min-width: 300px;
    max-width: 1000px;
}
.preorder-badge {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
}
.preorder-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}
.preorder-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}
.preorder-price-box {
    background: #fff9f9;
    border: 2px solid #e91e63;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.preorder-price {
    font-size: 32px;
    font-weight: bold;
    color: #e91e63;
}
.preorder-price small {
    font-size: 16px;
    color: #666;
}
.preorder-period {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
.preorder-release {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}
.preorder-form {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.bonus-section {
    margin-top: 20px;
    margin-bottom: 30px;
}
.bonus-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.bonus-price-note {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}
.bonus-price-note span {
    font-weight: bold;
    color: #e91e63;
}
.bonus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bonus-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
    flex: 0 0 calc(50% - 5px);
    box-sizing: border-box;
}
.bonus-item:hover,
.bonus-item.selected {
    border-color: #e91e63;
}
.bonus-item input {
    display: none;
}
.bonus-item-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}
.bonus-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bonus-item-info {
    flex: 1;
}
.bonus-item-name {
    font-weight: bold;
    font-size: 14px;
}
.bonus-item-stock {
    font-size: 12px;
    color: #666;
}
.bonus-item-price {
    font-size: 11px;
    color: #888;
}
.submit-btn {
    width: 100%;
    padding: 16px;
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.submit-btn:hover {
    background: #c2185b;
}
.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.stock-warning {
    color: #f44336;
    font-size: 14px;
    margin-top: 10px;
}
.main-item-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.main-item-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.main-item-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}
.main-item-link:hover {
    background: #f0f0f0;
}
.main-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.main-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.set-item-row {
    margin-bottom: 10px;
}
.set-item-row:last-child {
    margin-bottom: 0;
}

/* モーダルスタイル */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-product {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-product-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-product-info {
    flex: 1;
}

.modal-product-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.modal-product-price {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
}

.modal-product-price small {
    font-size: 14px;
    color: #666;
}

.modal-bonus {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-bonus-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.modal-bonus-content {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.modal-bonus-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-bonus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-bonus-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.modal-footer button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel {
    background: #fff;
    color: #666;
    border: 2px solid #ddd !important;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #bbb !important;
}

.btn-confirm {
    background: #e91e63;
    color: #fff;
}

.btn-confirm:hover {
    background: #c2185b;
}

@media (max-width: 768px) {
    .preorder-detail {
        flex-direction: column;
        max-width: 100%;
        gap: 20px;
        padding: 20px 5px;
    }
    .preorder-images,
    .preorder-info {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .bonus-item {
        flex: 0 0 100%;
    }

    .modal-dialog {
        max-height: 95vh;
        margin: auto;
    }

    .modal-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-product-image {
        width: 100%;
        height: 200px;
    }

    .modal-bonus-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-bonus-image {
        width: 100%;
        height: 150px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }
}

