/* Base Design System */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --muted-color: #7f8c8d;
    --border-color: #ecf0f1;
    --success-color: #27ae60;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 40px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Typography */
header {
    text-align: center;
    padding: 40px 0 20px;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

p.subtitle {
    font-size: 0.9rem;
    color: var(--muted-color);
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
    width: 100%;
    font-size: 1rem;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Form / Quiz */
.question-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.question-text {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fdfdfd;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: var(--accent-color);
    background: #f0f7ff;
}

.option-label input {
    margin-right: 12px;
}

input[type="radio"]:checked+span {
    font-weight: bold;
    color: var(--accent-color);
}

.option-label:has(input:checked) {
    border-color: var(--accent-color);
    background: #f0f7ff;
}

/* Results */
.result-score {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 20px 0;
}

.category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.comment-box {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 20px;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Charts */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
}

/* Pros/Cons Section */
.context-box {
    margin-top: 15px;
    padding: 12px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
}

.context-title {
    font-weight: bold;
    font-size: 0.75rem;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pros-text {
    color: #27ae60;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.cons-text {
    color: #e67e22;
    display: flex;
    align-items: flex-start;
}

.pros-text::before {
    content: "● 利点：";
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 5px;
}

.cons-text::before {
    content: "● 懸念：";
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 5px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}