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-top: 40px; /* 上部に余白を追加 */
}

.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: 700px;
}

.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; /* back-linkとの余白調整 */
}

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

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

.hidden {
    display: none;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.example {
    font-size: 0.9rem;
    color: #606770;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid #e0e0e0;
    padding-left: 10px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 10px;
}

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

button:first-of-type {
    /* 戻るボタンのスタイル */
    background-color: #e4e6eb;
    color: #4b4f56;
}

button:first-of-type:hover {
    background-color: #dcdde1;
}

pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    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;
}

code {
    font-family: inherit;
}

#copy-button {
    background-color: #42b72a; /* 緑色 */
}

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

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