* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
.header {
    background-color: #0066cc;
    color: #ffffff;
    text-align: center;
    padding: 20px 16px;
    width: 100%;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    padding: 24px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 店舗情報 */
.store-info {
    text-align: center;
    margin-bottom: 32px;
}

.store-name {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.time-indicator {
    font-size: 14px;
    color: #666666;
}

/* 質問セクション */
.question-section {
    width: 100%;
    max-width: 500px;
}

.question {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* フォーム */
.survey-form {
    width: 100%;
}

.radio-group {
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background-color: #eeeeee;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #0066cc;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #0066cc;
    font-weight: 600;
}

.radio-label {
    font-size: 16px;
    color: #333333;
    flex: 1;
    user-select: none;
}

/* 次へボタン */
.next-button {
    width: 100%;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background-color 0.2s ease;
}

.next-button:hover {
    background-color: #0052a3;
}

.next-button:active {
    background-color: #004080;
}

.next-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* タッチデバイス向けの最適化 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 16px;
    }
    
    .store-name {
        font-size: 18px;
    }
    
    .question {
        font-size: 15px;
    }
    
    .radio-label {
        font-size: 15px;
    }
    
    .next-button {
        font-size: 15px;
    }
}

/* 最終ページ用スタイル */
.final-page {
    justify-content: center;
    padding: 40px 16px;
}

.final-content {
    width: 100%;
    max-width: 500px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.instruction-text {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

.notice-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.cancel-button {
    width: 100%;
    background-color: #999999;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cancel-button:hover {
    background-color: #888888;
}

.cancel-button:active {
    background-color: #777777;
}

/* 評価とクチコミページ用スタイル */
.review-page {
    justify-content: flex-start;
    padding: 32px 16px;
}

.review-content {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.review-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin-bottom: 8px;
}

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0;
}

.star {
    font-size: 32px;
    color: #cccccc;
    cursor: pointer;
    transition: transform 0.1s ease, color 0.2s ease;
    user-select: none;
}

.star:hover {
    transform: scale(1.1);
}

.star.selected {
    color: #ffa500;
}

.star.hover {
    color: #ffcc00;
}

.review-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    background-color: #ffffff;
    color: #333333;
}

.review-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.review-textarea::placeholder {
    color: #999999;
}

.submit-button {
    width: 100%;
    background-color: #999999;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: #888888;
}

.submit-button:active {
    background-color: #777777;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 完了ページ用スタイル */
.thank-you-page {
    justify-content: center;
    padding: 40px 16px;
    align-items: center;
}

.thank-you-content {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.thank-you-message {
    font-size: 18px;
    color: #333333;
    line-height: 1.6;
    margin: 0;
}

/* ランドスケープ向けの調整 */
@media (orientation: landscape) and (max-height: 600px) {
    .main-content {
        padding: 16px;
    }
    
    .store-info {
        margin-bottom: 20px;
    }
    
    .question {
        margin-bottom: 16px;
    }
    
    .radio-group {
        margin-bottom: 8px;
    }
    
    .final-page {
        padding: 24px 16px;
    }
    
    .final-content {
        gap: 16px;
    }
    
    .review-page {
        padding: 20px 16px;
    }
    
    .review-content {
        gap: 16px;
    }
    
    .star {
        font-size: 28px;
    }
}
