/* セルフ登録（signup.php / signup_verify.php）。login_form.php と同じ青系トーン */
:root {
    --bg-a: #eef4ff;
    --bg-b: #dfeaff;
    --card: #ffffff;
    --line: #d2def6;
    --text: #0f2347;
    --muted: #5573a6;
    --primary: #1f6feb;
    --primary-dark: #1558c0;
    --danger: #a61e39;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0% 0%, rgba(31,111,235,0.18), rgba(31,111,235,0) 42%),
        radial-gradient(circle at 100% 10%, rgba(90,160,255,0.16), rgba(90,160,255,0) 38%),
        linear-gradient(180deg, var(--bg-a), var(--bg-b));
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 16px;
    word-break: normal;
    overflow-wrap: break-word;
}

.signup-shell { width: 100%; max-width: 640px; }

.brand { text-align: center; margin-bottom: 16px; }
.brand img { width: 160px; max-width: 75%; height: auto; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(21, 66, 138, 0.12);
    padding: 28px;
}

h1 { margin: 0 0 6px; font-size: 24px; text-align: center; }
h2 {
    margin: 22px 0 12px;
    padding-bottom: 6px;
    font-size: 15px;
    border-bottom: 1px solid #e8eefb;
}
.subtitle { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.note { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field .label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
/* .field label（display:block）が .check の flex より強く、チェックボックスと文字の縦位置がずれていた */
.field label.check { display: flex; margin-bottom: 0; font-weight: 400; }
.req { color: var(--danger); margin-left: 3px; }

.input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 16px; /* iOS のズーム防止 */
    font-family: inherit;
    color: var(--text);
    background: #fff;
}
textarea.input { resize: vertical; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,111,235,0.12); }

.hint { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.field-error { margin-top: 4px; font-size: 12px; color: var(--danger); font-weight: 700; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }

.alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecef;
    border: 1px solid #f3c2cc;
    color: var(--danger);
    font-size: 13px;
}

.btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    min-height: 46px;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary-dark); border: 1px solid var(--line); }
.btn-outline:hover { background: #f3f7ff; }

.summary { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.summary th, .summary td { padding: 8px 6px; border-bottom: 1px solid #ebf1fc; text-align: left; vertical-align: top; }
.summary th { width: 38%; color: var(--muted); font-weight: 700; font-size: 13px; }

.links { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.links a, .card a { color: var(--primary-dark); }

.lang-switch {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #e8eefb;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a.active { color: var(--primary); font-weight: 700; }
.lang-switch span { margin: 0 6px; }

@media (max-width: 600px) {
    .card { padding: 20px 16px; }
    .field-row, .checks { grid-template-columns: 1fr; gap: 0; }
    .checks { gap: 2px; }
}
