/* ==========================================================
   レビューセクション用スタイル（トップページ）
   ========================================================== */

.review-section {
    background-color: var(--off-white);
}

.review-grid {
    display: table;
    width: 100%;
    margin-top: 40px;
    table-layout: fixed;
}

.review-form-wrapper, .review-list-wrapper {
    display: table-cell;
    vertical-align: top;
    width: 50%;
    background-color: var(--pure-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.review-form-wrapper { border-right: 15px solid var(--off-white); }
.review-list-wrapper { border-left: 15px solid var(--off-white); }

.review-form-wrapper h3, .review-list-wrapper h3 {
    font-size: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--light-pink);
    padding-bottom: 10px;
}

.form-row-twin {
    display: flex;
    gap: 15px;
}

.form-row-twin .form-group {
    flex: 1;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.star-rating-input input[type="radio"]:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    background-color: var(--primary-pink);
    color: #4a282e;
    font-weight: bold;
}

.btn-review-submit {
    width: 100%;
    padding: 12px;
    background-color: #8d7060;
    border: 1px solid #8d7060;
    color: var(--pure-white);
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-review-submit:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.review-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 5px;
}

.review-card {
    background-color: var(--off-white);
    border: 1px solid var(--light-pink);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-header .stars {
    color: var(--dark-pink);
    font-weight: bold;
    font-size: 16px;
}

.review-header .rev-date-time {
    font-size: 11px;
    color: var(--text-muted);
}

.rev-price-tag {
    font-size: 12px;
    font-weight: 500;
    color: #8d7060;
    margin-bottom: 8px;
}

.rev-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dark);
}


/* ---- 投稿結果メッセージ ---- */
.review-msg {
    font-size: 13px;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 15px;
}
.review-msg.is-ok { background: #eef7ee; color: #2e7d32; border: 1px solid #cde5cd; }
.review-msg.is-error { background: #fdeeee; color: #c0392b; border: 1px solid #f0cfcf; }

@media (max-width: 768px) {
    .review-grid { display: block; }
    .review-form-wrapper, .review-list-wrapper { display: block; width: 100%; padding: 25px; }
    .review-form-wrapper { border-right: none; margin-bottom: 30px; }
    .review-list-wrapper { border-left: none; }
    .form-row-twin { flex-direction: column; gap: 0; }
}
