body {
    font-family: "Yu Gothic UI", "Meiryo", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px;
    line-height: 1.6;
    background: #f6f8fb;
    color: #333;
}

h1 {
    font-size: 20px;
    margin: 0;
    color: #1f2937;
}

/* 外側の1つの大きいカード */
.page-card {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 40px 80px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.top-bar h1 {
    margin: 0;
}

.top-links {
    font-size: 14px;
    color: #666;
}

.top-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.top-links a:hover {
    text-decoration: underline;
}

.main-wrap {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.left-area,
.right-area {
    min-width: 0;
}

/* 個別カード感を消す */
.left-area {
    flex: 4;
}

.right-area {
    flex: 5;
}

label {
    display: block;
    margin-top: 18px;
    font-weight: bold;
    font-size: 16px;
    color: #1c4280;
}

.radio-group {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-group label {
    margin-top: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    padding: 8px 14px;
    color: #374151;
}

.select-wrap,
.textarea-wrap,
.result-wrap {
    margin-top: 18px;
}

.result-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
}

.result-title label {
    margin-top: 0;
    font-size: 16px;
}

.copy-status {
    min-width: 160px;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    color: #16a34a;
}

select,
textarea,
button,
input[type="text"],
input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    padding: 11px 12px;
    margin-top: 8px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #fff;
    color: #333;
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

textarea {
    resize: vertical;
    overflow: auto;
}

.input-area {
    height: 200px;
}

.result-area {
    height: 440px;
    background: #fbfdff;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.7;
}

.button-group {
    margin-top: 22px;
}

.button-group button + button {
    margin-top: 10px;
}

button {
    cursor: pointer;
    font-weight: bold;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

button:hover {
    opacity: 0.95;
}

button:active {
    transform: translateY(1px);
}

#createBtn {
    background: #2563eb;
    color: #fff;
}

#createBtn:hover {
    background: #1d4ed8;
}

#clearBtn {
    background: #eef2f7;
    color: #374151;
    border: 1px solid #d5dde8;
}

#clearBtn:hover {
    background: #e5ebf3;
}

.note {
    color: #6b7280;
    font-size: 13px;
    margin-top: 6px;
}

.hidden {
    display: none;
}

/* login.php 用 */
.login-wrap {
    width: 420px;
    margin: 100px auto;
    background: #fff;
    padding: 30px;
    box-sizing: border-box;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.login-wrap h1 {
    text-align: center;
    margin: 0 0 25px;
    font-size: 24px;
}

.error {
    color: #cc0000;
    margin-top: 15px;
    font-size: 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 10px 12px;
    border-radius: 8px;
}