/* ===================================== */
/* 記事のフィードバックコンポーネント用css（記事がわかりやすかったなどのフィードバック） */
/* ===================================== */

/* コンテナ全体 */
.feedback-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: sans-serif;
    color: #1a1a1a;
}

/* タイトル */
.feedback-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.8rem;
}

@media (max-width: 750px) {
    .feedback-title {
        font-size: 1rem;
    }
}

/* 評価エリア */
.rating-wrapper {
    display: flex;
    align-items: center;
    background-color: #e1eff3;
    padding: 0.75em;
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

@media (max-width: 750px) {
    .rating-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* 左右のラベル */
.rating-label {
    flex: 0 0 80px;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 番号部分 */
.rating-options {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* スマホ時はlabelが上側に来るように */
@media (max-width: 750px) {
    .rating-label {
        font-size: 0.6rem;
    }

    .label-start {
        order: 1;
    }

    .label-end {
        order: 2;
    }

    .rating-options {
        order: 3;
        gap: 22px;
        margin-top: 8px;
    }
}

/* 各番号（ラジオ＋ラベル） */
.rating-option input {
    display: none;
}

.rating-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #070c10;
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

/* 選択中の番号にリングを付与 */
.rating-option input:checked+label {
    background-color: #F58220;
    color: #ffffff;
    box-shadow: none;
    /* リングはいらなければ無効化 */
}

/* ホバー時に軽く明るく */
.rating-option label:hover {
    filter: brightness(1.1);
}

/* 備考欄 */
.remark-container {
    text-align: center;
    margin-bottom: 0.8rem;
}

#feedback-comment {
    width: 100%;
    max-width: 100%;
    height: 80px;
    padding: 0.5em;
    border: 1px solid #cccccc;
    border-radius: 6px;
    resize: vertical;
    font-size: 1rem;
}

/* 送信ボタン */
.btnSubmitRating {
    display: block;
    height: 40px;
    border-radius: 64px;
    min-width: 280px;
    border: none;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background-color: #F58220;
    cursor: pointer;
    color: #fff;
    transition: all 0.4s;
}

.btnSubmitRating:hover {
    opacity: 0.8;
}



/* ── 全画面オーバーレイ ── */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    /* 非表示 */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-overlay.show {
    display: flex;
    /* 表示 */
}

/* スピナー */
#loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F58220;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}