/* 全体のスタイル - Modern Manasoy Theme */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 20px;
    color: #444;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.shop-name {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.review-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .review-container {
        padding: 25px 20px;
        margin: 10px auto;
        width: auto;
    }

    h1 {
        font-size: 1.4em !important;
    }

    .star {
        font-size: 35px !important;
    }

    .submit-btn,
    .continue-btn,
    .styled-next-btn {
        width: 100% !important;
        margin: 20px 0 0 0 !important;
    }
}

/* 謝罪メッセージ */
.apology-message {
    background-color: #fff4f4;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #ffe0e0;
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #d63031;
    text-align: center;
}

/* 質問セクションのボックス */
.question-section {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fafbfc;
    box-sizing: border-box;
}

/* 各質問タイトルのスタイル */
.question-section label {
    font-weight: 700;
    font-size: 1.05em;
    display: block;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* セクションタイトル */
h1 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    color: #2d3436;
}

/* 星評価セクション */
.star-rating-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fbff;
    border-radius: 12px;
}

.star-rating {
    display: inline-flex;
    margin-top: 10px;
    cursor: pointer;
}

.star {
    font-size: 45px;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    padding: 0 2px;
}

.star:hover,
.star.selected {
    color: #f1c40f;
    transform: scale(1.1);
}

/* ボタン - Modern Gradient */
.submit-btn,
.continue-btn,
.styled-next-btn {
    display: block;
    padding: 14px 28px;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1ac1ff 0%, #0099cc 100%);
    border: none;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 25px auto 0 auto;
    width: 80%;
    box-shadow: 0 4px 15px rgba(26, 193, 255, 0.3);
    text-decoration: none;
}

.submit-btn:hover,
.continue-btn:hover,
.styled-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 193, 255, 0.4);
}

.submit-btn:active,
.continue-btn:active,
.styled-next-btn:active {
    transform: translateY(0);
}

.continue-btn {
    background: linear-gradient(135deg, #bf0000 0%, #aa0000 100%);
    /* Rakuten Red-ish */
    box-shadow: 0 4px 15px rgba(191, 0, 0, 0.3);
}

.continue-btn:hover {
    background: linear-gradient(135deg, #cc0000 0%, #bb0000 100%);
    box-shadow: 0 6px 20px rgba(191, 0, 0, 0.4);
}

.thanks-message {
    text-align: center;
    font-size: 1.1em;
    margin-top: 25px;
    color: #2d3436;
}

/* チェックボックスのスタイル - Card Style */
.checkbox-group-modern {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group-modern input[type="checkbox"] {
    display: none;
}

.checkbox-group-modern label {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1em;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
    color: #555;
    position: relative;
    padding-left: 45px;
}

.checkbox-group-modern label:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.checkbox-group-modern label:hover {
    background-color: #f0f8ff;
    border-color: #b3e5fc;
}

.checkbox-group-modern input[type="checkbox"]:checked+label {
    background-color: #e3f2fd;
    border-color: #1ac1ff;
    color: #0277bd;
    font-weight: 600;
}

.checkbox-group-modern input[type="checkbox"]:checked+label:before {
    background-color: #1ac1ff;
    border-color: #1ac1ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16px' height='16px'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* テキストエリア */
.feedback-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1em;
    margin-top: 10px;
    margin-bottom: 20px;
    resize: none;
    min-height: 100px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: #1ac1ff;
    box-shadow: 0 0 0 3px rgba(26, 193, 255, 0.1);
}

/* 進行状況ゲージバー */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    margin: 25px 0;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1ac1ff, #0099cc);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none;
}