/* 口コミ投稿フォーム */
.msr-review-form-container {
    /* グレー背景の削除 */
    background-color: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

#review-form {
    padding: 10px;
    border-radius: 5px;
    max-width: 600px;
    border: 1px solid #ededed;
    display: flex;
    flex-direction: column;
    gap: 5px; /* 各要素の間隔を統一 */
}

/* ✅ フォームのラベルと入力欄を縦並びにする */
#review-form .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0px; /* 項目間の間隔を20pxから15pxに縮小 */
}

/* ✅ コメントポリシーだけ横並びにする */
#review-form .comment-policy {
    display: flex; /* ✅ チェックボックスとテキストのみ横並び */
    align-items: center;
    gap: 5px; /* チェックボックスとテキストの間隔 */
    width: 100%;
}

/* ✅ チェックボックスのサイズを適切に調整 */
#review-form .comment-policy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* ✅ コメントポリシーのラベルをチェックボックスの横に配置 */
#review-form .comment-policy label {
    font-size: 1em;
    color: #333;
    cursor: pointer;
    display: inline-flex; /* ✅ 横並びを強制 */
    align-items: center;
}

/* ✅ ラベルのスタイル */
#review-form label {
    font-weight: 600;
    font-size: 1em;
    color: #333;
    text-align: left;
    margin-bottom: 5px; /* ラベルと入力欄の間隔を8pxから5pxに縮小 */
}

/* 入力フィールド、選択フィールド、テキストエリアの共通スタイル */
#review-form input[type="text"],
#review-form textarea,
#review-form select {
    width: 100%; /* フル幅 */
    max-width: 100%; /* デスクトップでは適度な幅に */
    padding: 8px; /* パディングを10pxから8pxに縮小 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    text-align: left; /* テキストを左寄せ */
    margin-top: 2px; /* 上部の余白を追加 */
}

/* フォーカス時のスタイル */
#review-form input[type="text"]:focus,
#review-form textarea:focus,
#review-form select:focus {
    border-color: #3498db;
    outline: none;
}

/* テキストエリアのサイズを大きめに */
#review-form textarea {
    min-height: 100px; /* テキストエリアの高さを150pxから120pxに縮小 */
    resize: vertical;
}

/* ✅ 評価選択のドロップダウン */
#review-form select {
    width: 150px;
    padding: 10px;
}

/* 評価ラベルのスタイル */
#review-form .rating-label {
    margin-bottom: 10px;
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
}

/* ✅ 送信ボタン（最初はグレーで無効） */
#review-form button[type="submit"] {
    background-color: #ccc; /* 最初はグレー */
    color: white;
    font-size: 1.1em;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: not-allowed; /* 最初は押せない */
    width: 100%;
    max-width: 400px; /* 送信ボタンも適度な幅に */
    transition: background-color 0.3s ease;
}

/* ✅ チェックを入れたらボタンがブルーに */
#review-form button[type="submit"].active {
    background-color: #3498db; /* チェックが入ったらブルー */
    cursor: pointer;
}

/* ✅ ホバー時のボタン */
#review-form button[type="submit"].active:hover {
    background-color: #2980b9;
}


/* ✅ スマートフォン対応 */
@media (max-width: 768px) {
    #review-form {
        width: 100%;
    }

    #review-form .form-row {
        align-items: flex-start; /* スマホでも左寄せ */
    }

    #review-form label {
        width: 100%; /* ラベルを全幅にすることで、自然な見た目に */
        text-align: left;
    }

    #review-form input[type="text"],
    #review-form textarea,
    #review-form select {
        width: 100%; /* スマホではフル幅に */
        max-width: none; /* スマホでは制限を解除 */
    }

    #review-form button[type="submit"] {
        width: 100%; /* スマホではボタンもフル幅 */
        max-width: none;
    }

    #review-form .comment-policy {
        flex-direction: row; /* ✅ スマホでも横並び */
        align-items: center;
    }
}








/*口コミ*/
.msr-review-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.msr-review-content {
    flex-grow: 1;
}
.msr-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.msr-review-name {
    font-weight: bold;
    margin-bottom: 5px;
}
.msr-review-rating-title {
    display: flex;
    align-items: center;
}
.msr-review-rating {
    color: #ffb400;
    font-size: 1.2em;
    margin-right: 10px;
}
.msr-review-title {
    font-weight: bold;
    font-size: 1.1em;
}
.msr-review-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}
.msr-review-body {
    font-size: 1em !important;
    color: #333 !important;
    display: block !important;
    margin: 10px 0 !important;
    padding: 10px 0 !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}
.msr-review-footer {
    margin-top: 10px;
    font-size: 0.9em;
    color: #888;
}
/*総合評価*/
.msr-review-summary {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}
.msr-review-summary .total-rating {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.msr-review-summary .star-rating-container {
    display: flex;
    align-items: center;
    margin-top: 8px; /* 上部との適度な間隔 */
}

.msr-review-summary .star-rating {
    color: #ffb400;
    font-size: 1.2em;
        margin-right: 8px; /* 星と口コミ数の間の余白 */
}
.msr-review-summary .review-count {
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}
.msr-review-summary .rating-distribution {
    margin-top: 15px;
}
.msr-review-summary .rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.msr-review-summary .rating-bar span {
    width: 40px; /* テキスト部分の幅を固定 */
    font-size: 0.9em;
    margin-right: 5px;
    white-space: nowrap; /* 改行を防止 */
}
.msr-review-summary .bar-container {
    position: relative;
    background-color: #e0e0e0;
    width: calc(100% - 90px); /* テキストとパーセンテージのスペースを除いた幅 */
    height: 12px;
    border-radius: 5px;
}
.msr-review-summary .bar {
    position: absolute;
    background-color: #ffb400;
    height: 100%;
    border-radius: 5px;
}
.msr-review-summary .rating-percentage {
    margin-left: 10px;
    font-size: 0.9em;
    color: #333;
    width: 40px; /* パーセンテージ部分の幅を固定 */
    text-align: right;
    white-space: nowrap; /* 改行を防止 */
}

/* ポップアップのスタイル */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.popup.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.popup-content {
    position: relative;
    background-color: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 430px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
    margin: 0 auto;
}

.popup-content p{
font-size:12px;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-btn:hover, .close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}



/* レビュー一覧のソートとフィルタのスタイル */
.msr-sort-container {
    margin-bottom: 20px;
    width: 100%;
}

.msr-sort-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.msr-sort-group {
    display: flex;
    align-items: center;
/*    gap: 8px;*/
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    max-width: 250px;
}

.msr-sort-label {
    font-weight: bold;
    min-width: 70px;
    display: inline-block;
    white-space: nowrap;
}

.msr-sort-wrapper {
    width: 150px;
    min-width: 150px;
}

.msr-sort-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

/* スマホ表示時のスタイル調整 */
@media (max-width: 768px) {
    .msr-sort-form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    
    .msr-sort-group {
        width: 48%;
        flex-direction: row;
        align-items: center;
        flex: 0 0 auto;
        min-width: auto;
    }
    
    .msr-sort-label {
        white-space: nowrap;
        font-size: 13px;
        min-width: auto;
        margin-right: 5px;
    }
    
    .msr-sort-wrapper {
        flex: 1;
        width: auto;
        min-width: auto;
    }
    
    .msr-sort-select {
        width: 100%;
        max-width: 100%;
        font-size: 13px;
        padding: 6px;
    }
}

/* 非常に小さい画面では文字サイズ調整 */
@media (max-width: 480px) {
    .msr-sort-label {
        font-size: 12px;
    }
    
    .msr-sort-select {
        font-size: 12px;
        padding: 5px;
    }
}

/* レビューリスト全体のコンテナスタイル */
#msr-review-list {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 続きを見るボタンのスタイル */
.load-more-btn {
    display: block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    width: auto;
    min-width: 150px;
}

.load-more-btn:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.load-more-btn .btn-text {
    display: inline-block;
}

.load-more-btn .btn-loader {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.load-more-btn:disabled {
    background-color: #f1f3f5;
    color: #adb5bd;
    cursor: not-allowed;
}

/* ローディング中の表示 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-size: 16px;
    color: #495057;
}

#msr-review-list.loading {
    position: relative;
    min-height: 100px;
}

/* コメントポリシー用の特別なスタイル */
#review-form .policy-check-container {
    margin: 0; /* 上下の余白を調整 */
}

#review-form p.description{
font-size:13px;
color:#bbb;
margin:0;
padding:0;
}

#review-form .form-row.full-width.policy-check-container {
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px; /* チェックボックスとテキストの間隔を設定 */
}

/* チェックボックスのスタイル */
#review-form #comment-policy-check {
    width: auto !important;
  /*  margin: 0 !important;*/
    padding: 0 !important;
}

/* ラベルのスタイル */
#review-form .policy-check-container label {
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal;
    width: auto;
    display: inline-block !important;
}


.msr-review-pie {
    display: block;
    margin: auto;
    width: 300px;
    height: 300px;
}

/* 共通ボタンスタイル */
.msr-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 5px;
    float: right;
}

.msr-button:hover:not(.clicked):not([disabled]) {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.msr-button-icon {
    font-size: 14px;
}

/* 参考になったボタン */
.msr-helpful-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.msr-helpful-button:hover:not(.clicked):not([disabled]) {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.msr-helpful-button.clicked,
.msr-helpful-button[disabled] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: default;
    opacity: 0.7;
}

/* シェアボタンのスタイル */
.msr-share-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.msr-share-button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.msr-share-message {
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.msr-share-message.show {
    opacity: 1;
    visibility: visible;
}

/* 通報ボタンのスタイル */
.msr-report-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* モーダルポップアップスタイル */
.msr-review-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.msr-modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.msr-modal-image-container {
    flex: 1;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
    min-width: 300px;
}

#msr-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.msr-modal-details {
    flex: 0 0 350px;
    padding: 20px;
    overflow-y: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.msr-modal-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.msr-modal-user-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #555;
}

.msr-modal-name {
    font-weight: bold;
    font-size: 16px;
}

.msr-modal-rating {
    color: #ffb400;
    font-size: 20px;
    margin-bottom: 10px;
}

.msr-modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.msr-modal-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.msr-modal-review-content {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.msr-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.msr-modal-close:hover {
    color: #555;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .msr-image-slide {
        flex: 0 0 calc(25% - 10px);
    }
    
    .msr-modal-content {
        flex-direction: column;
        width: 95%;
        height: 90vh;
        margin: 5% auto;
    }
    
    .msr-modal-image-container {
        flex: 0 0 50%;
        height: 40vh;
    }
    
    .msr-modal-details {
        flex: 1;
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 480px) {
    .msr-image-slide {
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* シェアボタンのスタイル */
.msr-share-button {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s;
}

.msr-share-button:hover {
    background-color: #e9e9e9;
}

.msr-share-message {
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.msr-share-message.show {
    opacity: 1;
    visibility: visible;
}

/* 通報ボタンのスタイル */
.msr-report-button {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s;
}

.msr-report-button:hover {
    background-color: #e9e9e9;
}

/* レビューのボタン領域 */
.msr-review-helpful {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    width: 100%;
    position: relative;
    clear: both;
}

/* モーダルポップアップスタイル */
.msr-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99999;
    display: none; /* 強制的に非表示に */
    align-items: center; /* 中央揃えに変更 */
    justify-content: center;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
    padding-top: 0; /* 上部の余白を削除 */
}

.msr-popup.active {
    display: flex !important; /* activeクラスの場合のみ表示 */
    visibility: visible !important;
    opacity: 1 !important;
}

.msr-popup-content {
    position: relative;
    background-color: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 430px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-height: 80vh; /* コンテンツの最大高さを調整（70vh→80vh） */
    overflow-y: auto;
    margin: 0 auto; /* 上下の余白を削除し中央揃えに */
}

.msr-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 1;
}

.msr-popup-close:hover {
    color: #555;
}

.msr-popup h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 通報フォームのスタイル */
.msr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    margin-top: 2px;
}

.msr-radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.msr-radio-group label:hover {
    background-color: #f0f0f0;
}

.msr-radio-group input[type="radio"] {
    margin-right: 4px;
}

.msr-radio-group input[type="radio"]:checked + span {
    font-weight: bold;
    color: #e53935;
}

.msr-submit-report {
    background-color: #e53935;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 5px;
}

.msr-submit-report:hover {
    background-color: #c62828;
}

/* 入力フィールドの間隔調整 */
#msr-report-form .msr-form-group {
    margin-bottom: 6px;
}

#msr-report-form input[type="text"],
#msr-report-form input[type="email"],
#msr-report-form input[type="tel"],
#msr-report-form textarea {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
}

#msr-report-form textarea {
    height: 60px;
    resize: vertical;
    margin-top: 2px;
}

#msr-report-form label {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .msr-popup-content {
        width: 92%;
        padding: 12px;
    }
    
    .msr-radio-group {
        gap: 4px;
    }
    
    .msr-radio-group label {
        font-size: 11px;
        padding: 2px 5px;
        flex: 1 0 auto;
    }
}

/* イメージ付きレビュースライダー */
.msr-image-reviews-slider {
    margin: 20px 0;
}

.msr-image-reviews-slider h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.msr-image-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.msr-image-slider {
    display: flex;
    gap: 10px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.msr-image-slide {
    flex: 0 0 calc(16.666% - 10px); /* デスクトップでは6つ表示 */
    min-width: 0;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.msr-image-slide:hover {
    transform: translateY(-5px);
}

.msr-slide-image {
    position: relative;
    padding-top: 100%; /* 正方形にする */
    overflow: hidden;
}

.msr-slide-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msr-slider-prev,
.msr-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.msr-slider-prev {
    left: 0;
}

.msr-slider-next {
    right: 0;
}

.msr-slider-prev:disabled,
.msr-slider-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .msr-image-slide {
        flex: 0 0 calc(25% - 10px); /* タブレットでは4つ表示 */
    }
    
    .msr-modal-content {
        flex-direction: column;
        width: 95%;
        height: 90vh;
        margin: 5% auto;
    }
    
    .msr-modal-image-container {
        flex: 0 0 50%;
        height: 40vh;
    }
    
    .msr-modal-details {
        flex: 1;
        width: 100%;
        max-height: none;
    }
}

/* スマホ対応 */
@media (max-width: 480px) {
    .msr-image-slide {
        flex: 0 0 calc(33.333% - 10px); /* スマホでは3つ表示 */
    }
}

/* 必須マーク */
.required-text {
    color: #e53935;
    font-weight: bold;
    font-size: 12px;
    background: #fff2f2;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
}

/* フォームラベルの必須表示 */
#review-form .required-text {
    color: #e53935;
    font-weight: bold;
    font-size: 0.9em;
    background: #fff2f2;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
}

/* 通報フォームの必須表示 */
#msr-report-form .required-text {
    color: #e53935;
    font-weight: bold;
    font-size: 12px;
    background: #fff2f2;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
}

/* バックアップ用：レガシースタイル */
.msr-required, 
label .required, 
#review-form .required {
    color: #e53935;
    font-weight: bold;
    font-size: 0.9em;
    background: #fff2f2;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-block;
}

/* レビュー画像ギャラリー */
.msr-review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    justify-content: flex-start;
    align-items: stretch;
}

.msr-review-image {
    flex: 0 0 calc(25% - 8px); /* デスクトップでは4枚横並び */
    max-width: calc(25% - 8px);
    aspect-ratio: 1 / 1; /* 正方形に保つ */
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.msr-review-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

.msr-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 縦横比を保ち、枠内に収まるようにする */
    display: block;
}

/* タブレット用レスポンシブ表示 */
@media screen and (max-width: 768px) {
    .msr-review-image {
        flex: 0 0 calc(33.333% - 8px); /* タブレットでは3枚横並び */
        max-width: calc(33.333% - 8px);
    }
}

/* スマホ用レスポンシブ表示 */
@media screen and (max-width: 480px) {
    .msr-review-image {
        flex: 0 0 calc(50% - 6px); /* スマホでは2枚横並び */
        max-width: calc(50% - 6px);
    }
    
    .msr-review-images {
        gap: 6px;
    }
}
