/* オーナーのログイン・新規登録・本人確認ページ共通 */
.oa-body {
    background: #f1f5f9;
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1e293b;
}

.oa-card {
    background: #fff;
    width: 100%;
    max-width: 460px;
    padding: 32px 28px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
}

.oa-logo { display: block; text-align: center; margin-bottom: 18px; }
.oa-logo img { height: 34px; width: auto; }

.oa-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 6px;
    text-wrap: balance;
}

.oa-free {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .75rem;
    font-weight: 700;
    vertical-align: middle;
}

.oa-lead { text-align: center; color: #64748b; font-size: .875rem; margin: 0 0 22px; line-height: 1.7; }

/* 進行状況 */
.oa-steps {
    list-style: none;
    display: flex;
    margin: 0 0 22px;
    padding: 0;
    gap: 6px;
    font-size: .78rem;
    color: #94a3b8;
}

.oa-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 3px solid #e2e8f0;
}

.oa-steps span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #64748b;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.oa-steps .is-current { color: #0f172a; font-weight: 700; border-top-color: #1d4ed8; }
.oa-steps .is-current span { background: #1d4ed8; color: #fff; }
.oa-steps .is-done { color: #166534; border-top-color: #22c55e; }
.oa-steps .is-done span { background: #22c55e; color: #fff; }

/* メッセージ */
.oa-alert, .oa-notice, .oa-sent {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: .875rem;
    line-height: 1.7;
}

.oa-alert { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.oa-notice { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.oa-sent { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; flex-wrap: wrap; }
.oa-sent p { flex: 1 1 100%; }
.oa-sent > svg + p { flex: 1 1 0; }
.oa-alert svg, .oa-notice svg, .oa-sent svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.oa-alert p, .oa-notice p, .oa-sent p { margin: 0; }
.oa-alert p + p, .oa-alert ul + p { margin-top: 8px; }
.oa-alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.oa-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.oa-dev { background: #fef9c3; color: #713f12; padding: 6px 10px; border-radius: 6px; }

/* 事務所の表示・案内 */
.oa-office, .oa-guide {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: .875rem;
    line-height: 1.7;
}

.oa-office p, .oa-guide p { margin: 0; }
.oa-guide p + p { margin-top: 8px; }
.oa-office-label { font-size: .75rem; color: #64748b; font-weight: 700; }
.oa-office-name { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.oa-office-sub { color: #64748b; overflow-wrap: anywhere; }
.oa-office-need { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #cbd5e1; overflow-wrap: anywhere; }
.oa-office-warn { margin-top: 8px !important; color: #92400e; }
.oa-office-warn a { color: inherit; font-weight: 700; text-decoration: underline; }
.oa-example { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; color: #475569; }
.oa-example code { font-family: inherit; overflow-wrap: anywhere; }
.oa-example b { color: #1d4ed8; }

/* 入力 */
.oa-field { margin-bottom: 18px; }
.oa-field label, .oa-choices legend { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; }

.oa-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.oa-field input:focus-visible, .oa-button:focus-visible, .oa-link:focus-visible, .oa-toggle:focus-visible,
.oa-secondary:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; border-color: #1d4ed8; }

.oa-hint { font-size: .78rem; color: #64748b; margin: 6px 0 0; line-height: 1.6; }
.oa-password { position: relative; }
.oa-password input { padding-right: 46px; }

.oa-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    background: none;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
}

.oa-toggle svg { width: 18px; height: 18px; }
.oa-code { letter-spacing: .4em; font-size: 1.3rem !important; text-align: center; font-variant-numeric: tabular-nums; }

.oa-choices { border: 0; padding: 0; margin: 0 0 18px; }

.oa-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.6;
}

.oa-choice:has(input:checked) { border-color: #1d4ed8; background: #eff6ff; }
.oa-choice input { margin-top: 5px; flex: none; }
.oa-choice span { min-width: 0; overflow-wrap: anywhere; }
.oa-choice small { display: block; color: #64748b; font-size: .8rem; }

/* ボタン */
.oa-button, .oa-secondary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.oa-button { background: #0f172a; color: #fff; border: 1px solid #0f172a; }
.oa-button:hover { background: #334155; }
.oa-secondary { background: #fff; color: #0f172a; border: 1px solid #0f172a; }
.oa-secondary:hover { background: #f1f5f9; }

.oa-link {
    background: none;
    border: 0;
    padding: 6px 4px;
    color: #475569;
    font-size: .875rem;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.oa-sub-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; }
.oa-foot { text-align: center; margin: 20px 0 0; font-size: .875rem; }
.oa-foot a { color: #1d4ed8; }

/* ログイン画面の「はじめての方」 */
.oa-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 26px 0 20px; }
.oa-new h2 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.oa-new p { font-size: .875rem; color: #64748b; line-height: 1.7; margin: 0 0 12px; }
.oa-flow { list-style: none; margin: 0 0 14px; padding: 0; font-size: .85rem; color: #475569; line-height: 1.9; counter-reset: flow; }
.oa-flow li { counter-increment: flow; padding-left: 28px; position: relative; }

.oa-flow li::before {
    content: counter(flow);
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: .75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

@media (max-width: 480px) {
    .oa-body { padding: 16px 12px; }
    .oa-card { padding: 24px 18px; }
}
