/* お客様の声（一覧ページ・商品詳細共通） */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.review-header__media {
    flex: 0 0 auto;
    width: 100px;
    min-width: 100px;
}

.review-header__media-inner {
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.review-header__media-inner--clickable {
    cursor: zoom-in;
}

.review-header__media-inner--clickable:focus {
    outline: 2px solid #2d8a8a;
    outline-offset: 2px;
}

.review-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-meta {
    flex: 1 1 0;
    min-width: 0;
}

.review-product-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.35;
}

.review-product-name a {
    color: #2d8a8a;
    text-decoration: none;
}

.review-product-name a:hover {
    text-decoration: underline;
    color: #237070;
}

.review-customer-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.review-rating {
    font-size: 13px;
    color: #ffc107;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.review-rating .star-empty {
    color: #ddd;
}

.review-date {
    font-size: 11px;
    color: #999;
}

.review-body-always {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-expand {
    margin-top: 8px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.review-expand__summary {
    cursor: pointer;
    font-size: 12px;
    color: #2d8a8a;
    font-weight: 600;
    list-style: none;
    user-select: none;
    padding: 4px 0;
}

.review-expand__summary::-webkit-details-marker {
    display: none;
}

.review-expand__summary::before {
    content: '\25B6';
    display: inline-block;
    font-size: 8px;
    margin-right: 6px;
    transform: translateY(-1px);
    transition: transform 0.15s ease;
}

.review-expand[open] .review-expand__summary::before {
    transform: rotate(90deg) translateX(1px);
}

.review-expand__summary:hover {
    color: #237070;
}

.review-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
}

.review-section {
    padding: 8px 10px;
    background: #f7f8f8;
    border-radius: 4px;
    border-left: 3px solid #5cb1b1;
}

.review-section-title {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    margin-bottom: 4px;
}

.review-section-title::before {
    display: none;
}

.review-section-text {
    font-size: 13px;
    line-height: 1.55;
    color: #333;
    white-space: pre-wrap;
}

.no-reviews {
    text-align: center;
    padding: 28px 16px;
    color: #666;
}

.ec-review-image-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.ec-review-image-modal[hidden] {
    display: none !important;
}

.ec-review-image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    cursor: pointer;
}

.ec-review-image-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 920px);
    max-height: min(90vh, 920px);
    margin: auto;
}

.ec-review-image-modal__img {
    display: block;
    max-width: 100%;
    max-height: min(90vh, 920px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ec-review-image-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-review-image-modal__close:hover {
    background: #fff;
}

.ec-review-image-modal__close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 商品詳細ページ用セクション枠 */
.custom-customer-voice-section {
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.custom-customer-voice-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #fe8f00;
}

.custom-customer-voice-section .review-card--product-detail .review-header {
    display: block;
}

@media (max-width: 768px) {
    .custom-customer-voice-section {
        margin: 24px 0;
        padding: 16px;
    }

    .custom-customer-voice-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}
