body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f8ff; /* 明るい水色 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#app-container, #preview-container {
    background-color: white;
    padding: 2em;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.question-wrapper {
    margin-bottom: 1.5em;
}

.question-wrapper h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 0.5em;
}

.question-wrapper p {
    font-size: 0.9em;
    color: #666;
}

input[type="text"], textarea {
    width: 95%;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, textarea:focus {
    border-color: #4a90e2; /* 青色 */
    outline: none;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.button-group {
    margin-top: 1.5em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

button {
    font-size: 1.1em;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:active {
    transform: scale(0.98);
}

#next-btn, #download-pdf-btn {
    background-color: #4a90e2; /* 青色 */
    color: white;
}

#next-btn:hover, #download-pdf-btn:hover {
    background-color: #357abd;
}

#skip-btn {
    background-color: #f0f0f0; /* 明るい灰色 */
    color: #555;
}

#skip-btn:hover {
    background-color: #e0e0e0;
}

/* PDFプレビュー用のスタイル */
#pdf-content {
    border: 1px solid #eee;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

#pdf-content h1 {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#pdf-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#pdf-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
    white-space: pre-wrap; /* 改行を反映させる */
}

#back-btn, #deep-next-btn, #deep-skip-btn {
    background-color: #f0f0f0; /* 明るい灰色 */
    color: #555;
}

#back-btn:hover, #deep-next-btn:hover, #deep-skip-btn:hover {
    background-color: #e0e0e0;
}

#deep-next-btn {
    background-color: #4a90e2; /* 青色 */
    color: white;
}

#deep-next-btn:hover {
    background-color: #357abd;
}


/* レスポンシブ対応 */
@media (max-width: 600px) {
    #app-container, #preview-container {
        padding: 1.5em;
    }

    .button-group {
        flex-direction: column;
    }
}