﻿/* ==========================================================================
   Review Page Base Container
   ========================================================================== */
.starcomment_container {
    width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
    clear: both;
}

/* ==========================================================================
   1. Rating Summary Box (Modern Rating Card)
   ========================================================================== */
.starcomment_summarycontainer {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

/* Star & Average Score */
.starcomment_summarystar {
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 0;
}

.starcomment_summarycnt {
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    margin-left: 6px;
}

.starcomment_summaryavg {
    font-size: 13px;
    font-weight: bold;
    color: #64748b;
    margin-top: 4px;
}

/* Rating Breakdown Chart (Progress Bars) */
.starcomment_summarychart {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 280px;
    flex: 1;
    max-width: 360px;
}

.starcomment_summarychart_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

    .starcomment_summarychart_item a {
        display: flex;
        align-items: center;
        width: 100%;
        text-decoration: none;
        color: inherit;
    }

.starcomment_summarychartlabel {
    width: 44px;
    font-size: 12px;
    color: #475569;
    flex-shrink: 0;
}

/* Bar Background */
.starcomment_summarychartbar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/* Bar Fill (Modern Gold) */
.starcomment_summarychartactive {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.starcomment_summarychartper {
    width: 38px;
    text-align: right;
    font-size: 12px;
    font-weight: bold;
    color: #64748b;
    flex-shrink: 0;
}

/* "Write a Review" Callout Button */
.starcomment_addbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    flex-shrink: 0;
    text-align: center;
}

.starcomment_addtext {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.starcomment_addbtn,
.shopstarcomment_addbtn {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

    .starcomment_addbtn a,
    .shopstarcomment_addbtn a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 24px;
        background: #e6005c;
        color: #ffffff !important;
        font-size: 14px;
        font-weight: bold;
        border-radius: 30px;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(230, 0, 92, 0.3);
        transition: all 0.2s ease;
        cursor: pointer;
    }

        .starcomment_addbtn a:hover,
        .shopstarcomment_addbtn a:hover {
            background: #c7004f;
            box-shadow: 0 6px 16px rgba(230, 0, 92, 0.45);
            transform: translateY(-2px);
        }

/* ==========================================================================
   2. Search & Filter Toolbar
   ========================================================================== */
#ShopReviewToolbar_SearchContainer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

    #ShopReviewToolbar_SearchContainer form {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
        margin: 0;
    }

.ShopReviewToolbar_Label {
    font-size: 12px;
    font-weight: bold;
    color: #475569;
    margin-bottom: 4px;
}

#ShopReviewToolbar_SearchSortBox,
#ShopReviewToolbar_SearchStarBox,
#ShopReviewToolbar_SearchTextBox {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.SPComboBoxMiddle,
.SPTextBox {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .SPComboBoxMiddle:focus,
    .SPTextBox:focus {
        border-color: #e6005c;
        box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.12);
    }

/* Filter Submit Buttons */
.RVSearchButton {
    height: 38px;
    padding: 0 20px;
    background: #e6005c !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: bold;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 0, 92, 0.25);
    transition: all 0.2s;
    margin-top: 18px;
    text-shadow: none !important;
}

    .RVSearchButton:hover {
        background: #c7004f !important;
        transform: translateY(-1px);
    }

.RVResetButton {
    height: 38px;
    padding: 0 16px;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 18px;
    text-shadow: none !important;
}

    .RVResetButton:hover {
        background: #f1f5f9 !important;
        color: #1e293b !important;
    }

/* ==========================================================================
   3. Review Cards (List Output)
   ========================================================================== */
.starcomment_frame {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .starcomment_frame:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    }

/* Star Rating & Meta Header */
.starcomment_star {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 0;
    margin-bottom: 8px;
}

.starcomment_hn_label {
    display: none; /* 不要なラベルを非表示にしてスッキリ */
}

.starcomment_hn {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #1e293b;
    margin-right: 12px;
}

    .starcomment_hn::before {
        content: "投稿者: ";
        font-weight: normal;
        color: #64748b;
    }

.starcomment_date {
    display: inline-block;
    font-size: 12px;
    color: #94a3b8;
}

/* Review Title */
.starcomment_title {
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
    margin: 8px 0 10px 0;
    line-height: 1.4;
}

/* Review Body Text */
.starcomment_contents {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin: 8px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Edit & Admin Controls */
.starcomment_editlink {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}

    .starcomment_editlink a {
        font-size: 12px;
        color: #e6005c;
        text-decoration: none;
        font-weight: bold;
        margin-right: 12px;
    }

        .starcomment_editlink a:hover {
            text-decoration: underline;
        }

/* IP Admin Control Box */
.starcomment_adminlink {
    font-size: 11px;
    font-weight: bold;
    color: #94a3b8;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 12px;
}

/* ==========================================================================
   4. Review Post & Edit Form
   ========================================================================== */
.starcomment_editcontainer {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-top: 20px;
    box-sizing: border-box;
}

.ShopReviewEditBox {
    margin-bottom: 18px;
}

.ShopReviewEditLabel {
    font-size: 13px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 6px;
}

.ShopReviewEditBox .SPText,
.ShopReviewEditBox textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

    .ShopReviewEditBox .SPText:focus,
    .ShopReviewEditBox textarea:focus {
        border-color: #e6005c;
        box-shadow: 0 0 0 3px rgba(230, 0, 92, 0.12);
    }

.ShopReviewEditControlBox {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.SPAdminPageButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    background: #e6005c !important;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(230, 0, 92, 0.25);
    transition: all 0.2s;
}

    .SPAdminPageButton:hover {
        background: #c7004f !important;
        transform: translateY(-1px);
    }

.SPAdminPageDelButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #ef4444 !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

    .SPAdminPageDelButton:hover {
        background: #ef4444 !important;
        color: #ffffff !important;
    }

/* ==========================================================================
   Responsive: Tablet (600px - 899px)
   ========================================================================== */
@media screen and (max-width: 899px) and (min-width: 600px) {
    .starcomment_summarycontainer {
        padding: 20px;
    }
}

/* ==========================================================================
   Responsive: Smartphone (under 600px)
   ========================================================================== */
@media screen and (max-width: 599px) {
    .starcomment_summarycontainer {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
    }

    .starcomment_summarychart {
        max-width: 100%;
        min-width: 0;
    }

    .starcomment_addbox {
        width: 100%;
        margin-top: 10px;
    }

    #ShopReviewToolbar_SearchContainer form {
        flex-direction: column;
        align-items: stretch;
    }

    #ShopReviewToolbar_SearchSortBox,
    #ShopReviewToolbar_SearchStarBox,
    #ShopReviewToolbar_SearchTextBox {
        width: 100% !important;
    }

    .RVSearchButton,
    .RVResetButton {
        margin-top: 6px;
        width: 100%;
    }

    .starcomment_frame {
        padding: 16px 14px;
    }

    .starcomment_editcontainer {
        padding: 18px 14px;
    }
}





/* ==========================================================================
   Review Guidelines & Warning Box
   ========================================================================== */

.review-guideline-card {
    background: #ffffff;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.06);
    box-sizing: border-box;
}

.review-guideline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.guideline-alert-icon {
    flex-shrink: 0;
}

.guideline-title {
    font-size: 15px;
    font-weight: bold;
    color: #991b1b;
}

.guideline-lead {
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.6;
}

.guideline-list {
    margin: 0 0 16px 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .guideline-list li {
        font-size: 12.5px;
        color: #334155;
        line-height: 1.6;
    }

    .guideline-list strong {
        color: #1e293b;
    }

/* フッター警告ボックス */
.guideline-footer-note {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 12px;
    color: #991b1b;
    line-height: 1.7;
}

    .guideline-footer-note .warn-badge {
        background: #ef4444;
        color: #ffffff;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 3px;
        margin-right: 6px;
        display: inline-block;
    }

    .guideline-footer-note strong {
        color: #b91c1c;
        text-decoration: underline;
    }

/* ==========================================================================
   Responsive: Tablet (600px - 899px)
   ========================================================================== */
@media screen and (max-width: 899px) and (min-width: 600px) {
    .review-guideline-card {
        padding: 16px 20px;
    }
}

/* ==========================================================================
   Responsive: Smartphone (under 600px)
   ========================================================================== */
@media screen and (max-width: 599px) {
    .review-guideline-card {
        padding: 14px 16px;
        margin: 15px 0;
    }

    .guideline-title {
        font-size: 14px;
    }

    .guideline-lead {
        font-size: 12px;
    }

    .guideline-list {
        padding-left: 16px;
        gap: 6px;
    }

        .guideline-list li {
            font-size: 11.5px;
        }

    .guideline-footer-note {
        font-size: 11px;
        padding: 10px 12px;
    }
}