:root {
    --primary-color: #1d9bf0;
    --bg-color: #f7f9f9;
    --card-bg: #ffffff;
    --text-main: #0f1419;
    --text-sub: #536471;
    --border-color: #cfd9de;
    --error-color: #f4212e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card, .instructions {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}
.header i { font-size: 2rem; margin-bottom: 8px; }
.header h1 { font-size: 1.4rem; margin: 0; }
.header p { color: var(--text-sub); font-size: 0.9rem; margin-top: 4px; }

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    resize: none;
    outline: none;
    box-sizing: border-box;
}
textarea:focus { border-color: var(--primary-color); }

.counter-area {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-sub);
    margin: 4px 0 16px;
}
.limit-over { color: var(--error-color); font-weight: bold; }

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-primary { background: var(--text-main); color: white; }
.btn-primary:hover { opacity: 0.9; }

.hidden { display: none; }
.label { font-size: 0.75rem; font-weight: bold; color: var(--text-sub); display: block; margin: 16px 0 4px; }
.preview-box {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    word-break: break-all;
}

.instructions h2 {
    font-size: 1.1rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.steps { margin-top: 16px; }
.step {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.step-num {
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.step p { margin: 0; font-size: 0.9rem; line-height: 1.5; }

.note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-sub);
}
.note ul { padding-left: 20px; margin: 4px 0; }

.toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 9999px;
    transition: bottom 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 100;
}
.toast.show { bottom: 30px; }