:root {
    /* カラーパレット: 落ち着いたスタイリッシュな配色 */
    --primary-color: #4A90E2; /* アクセントカラー */
    --bg-color: #F4F7F6;      /* 背景色 */
    --card-bg: #FFFFFF;       /* フォーム背景 */
    --text-color: #333333;
    --border-color: #DDDDDD;
    --success-color: #2ECC71;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

/* 必須マーク */
label.required::after {
    content: "必須";
    background-color: #ff6b6b;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
    background-color: #fafafa;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ボタンエリア */
.btn-area {
    margin-top: 30px;
    text-align: center;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.3);
    width: 100%;
}

button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.4);
}

button:active {
    transform: translateY(0);
}

/* 出力エリア */
#output-area {
    margin-top: 30px;
    display: none; /* 最初は非表示 */
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    animation: fadeIn 0.5s ease;
}

.result-box {
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    white-space: pre-wrap;
    margin-bottom: 15px;
    font-size: 14px;
    color: #444;
    border: 1px solid #dbe2e8;
}

.copy-btn {
    background-color: var(--success-color);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.3);
}
.copy-btn:hover {
    background-color: #27ae60;
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
}

/* レスポンシブ調整 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}