body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
}

.container {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    transition: all 0.3s ease;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
    color: #1c1e21;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.container > p {
    text-align: center;
    color: #606770;
    margin-bottom: 2rem;
}

.question-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.question-list li {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.question-text {
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    gap: 10px; /* 各選択肢の間隔 */
}

.option-item label {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.option-item label:hover {
    background-color: #f0f2f5;
}

.option-item input[type="radio"] {
    margin-right: 10px;
}

.accordion-content {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeIn 0.5s;
    border-left-width: 4px;
    border-left-style: solid;
}

.accordion-content.yes {
    background-color: #e6f4ea;
    border-left-color: #42b72a;
}

.accordion-content.no {
    background-color: #fbe9e7;
    border-left-color: #ff5252;
}

.accordion-content.unknown {
    background-color: #fff3e0;
    border-left-color: #ffa726;
}

.button-container {
    text-align: center;
    margin-top: 30px;
}

.diagnose-button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.diagnose-button:hover {
    background-color: #166fe5;
}

.hidden {
    display: none;
}

#results-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    animation: fadeIn 0.5s ease-in-out;
}

#result-summary {
    background-color: #f0f8ff;
    border: 1px solid #b0d4f1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

#result-summary h3 {
    margin-top: 0;
    color: #1877f2;
}

.code-actions {
    text-align: right;
    margin-bottom: 10px;
}

#copy-button {
    background-color: #42b72a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#copy-button:hover {
    background-color: #36a420;
}

pre {
    background-color: #282c34;
    color: #abb2bf;
    border-radius: 6px;
    padding: 1.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
