
.container {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hidden {
    display: none;
}
.question-block {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.question-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.option-label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    background-color: #fafafa;
    border: 1px solid #ddd;
}
.option-label:hover {
    background-color: #f0f0f0;
}
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}
button:hover {
    background-color: #218838;
}
button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
.result-score {
    font-size: 1.4em;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    color: #28a745;
}
/* 2回目の結果用の区切り */
.result-score.score-2 {
    color: #007bff;
    border-top: 2px dashed #ccc;
    padding-top: 20px;
}
.result-comment {
    padding: 20px;
    background: #e9ecef;
    border-radius: 6px;
    line-height: 1.6;
    margin-bottom: 25px;
}
.result-comment.comment-2 {
    background: #e3f2fd;
}
.comment-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #155724;
}
.comment-title-2 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #004085;
}

/* 追加の設問（2回目）のデザイン枠 */
.second-question-block {
    background: #fffdf0;
    border: 2px dashed #ffc107;
    padding: 15px;
    border-radius: 6px;
    margin: 25px 0;
}
.second-btn {
    background-color: #007bff;
}
.second-btn:hover {
    background-color: #0056b3;
}

/* 診断中ローディングエフェクト */
.loading-container {
    text-align: center;
    padding: 40px 0;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #28a745;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #555;
}
