/* === Onasapo Review Summary - App Store風サマリーカード === */

.onasapo-review-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px 24px 24px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ヘッダー */
.ors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ors-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.ors-arrow {
    font-size: 22px;
    color: #888;
    text-decoration: none;
    line-height: 1;
}
.ors-arrow:hover {
    color: #04384c;
}

/* ボディ（3カラム） */
.ors-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 左: 数値 */
.ors-left {
    flex-shrink: 0;
    text-align: center;
    min-width: 72px;
}
.ors-rating-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.ors-rating-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-weight: 600;
}

/* 中央: 星バー */
.ors-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ors-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ors-stars {
    font-size: 9px;
    color: #888;
    white-space: nowrap;
    min-width: 52px;
    text-align: right;
    letter-spacing: 1px;
}
.ors-bar {
    flex: 1;
    height: 4px;
    background: #d4d4d4;
    border-radius: 2px;
    overflow: hidden;
}
.ors-bar-fill {
    height: 100%;
    background: #8e8e8e;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* 右: 件数 */
.ors-right {
    flex-shrink: 0;
    text-align: right;
}
.ors-count {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

/* 空の場合 */
.ors-empty {
    text-align: center;
    padding: 32px 24px;
}
.ors-empty p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .onasapo-review-summary {
        padding: 16px 18px 20px;
    }
    .ors-body {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ors-left {
        min-width: 60px;
    }
    .ors-rating-number {
        font-size: 40px;
    }
    .ors-center {
        flex: 1;
        min-width: 140px;
    }
    .ors-right {
        width: 100%;
        text-align: center;
        padding-top: 4px;
        border-top: 1px solid #e0e0e0;
    }
}

/* === 口コミ投稿フォーム === */

.ors-review-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
}
.ors-review-form h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.ors-form-group {
    margin-bottom: 16px;
}
.ors-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.ors-form-group input[type="text"],
.ors-form-group select,
.ors-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ors-form-group input:focus,
.ors-form-group select:focus,
.ors-form-group textarea:focus {
    outline: none;
    border-color: #04384c;
    background: #fff;
}
.ors-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 星選択 */
.ors-star-select {
    display: flex;
    gap: 4px;
    font-size: 28px;
    cursor: pointer;
}
.ors-star-select span {
    color: #d0d0d0;
    transition: color 0.15s;
    user-select: none;
}
.ors-star-select span.active {
    color: #f5a623;
}
.ors-star-select span:hover,
.ors-star-select span:hover ~ span {
    color: #f5a623;
}

/* 送信ボタン */
.ors-submit-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #04384c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.ors-submit-btn:hover {
    background: #065a7a;
}
.ors-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* メッセージ */
.ors-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
}
.ors-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.ors-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ハニーポット */
.ors-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}
