/* ログイン・申請・管理・法務ページの共通スタイル（ダッシュボードと同じトークン） */
:root { --bg: #0f1115; --panel: #171a21; --line: #262a33; --fg: #e8eaf0; --sub: #8b93a5; --accent: #4f8cff; --ok: #35c46a; --warn: #f4b63a; --err: #ff5d5d; --radius: 10px; --field: #0f1115; --btn: #1f2430; }
html[data-theme="light"] { --bg: #f4f5f8; --panel: #fff; --line: #dfe3ea; --fg: #1c2130; --sub: #6b7385; --field: #fff; --btn: #e9ecf2; }
html[data-theme="cute"] { --bg: #fff5f9; --panel: #fff; --line: #ffd6e4; --fg: #3a2e39; --sub: #9b7f8f; --accent: #ff6f9c; --radius: 16px; --field: #fff; --btn: #ffe6ef; --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; }
html[data-theme="cool"] { --bg: #0b1220; --panel: #111a2b; --line: #1f2d44; --fg: #f2f6ff; --sub: #8aa0bf; --accent: #22d3ee; --radius: 4px; --field: #0b1220; --btn: #1a2740; --font: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.6 var(--font, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
header h1 { font-size: 15px; margin: 0; white-space: nowrap; }
@media (max-width: 700px) { header { flex-wrap: wrap; gap: 8px 10px; padding: 10px 16px; } } header .sp { flex: 1; } header .sub { color: var(--sub); }
main { padding: 20px; max-width: 1200px; margin: 0 auto; }
main.narrow { max-width: 440px; padding-top: 48px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h2 { font-size: 13px; color: var(--sub); margin: 0 0 12px; font-weight: 600; }
.card h2 .n { margin-left: 8px; color: var(--accent); }
h1.title { font-size: 20px; margin: 0 0 16px; }
form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 12px; color: var(--sub); }
label.chk { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 13px; }
input, select, button, textarea { font: inherit; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
textarea { min-height: 80px; resize: vertical; }
button { cursor: pointer; background: var(--btn); white-space: nowrap; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.quiet { background: transparent; color: var(--sub); }
button.sm { padding: 3px 8px; font-size: 12px; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg { min-height: 1.2em; font-size: 12px; } .msg.err { color: var(--err); } .msg.ok { color: var(--ok); }
.meta { font-size: 12px; color: var(--sub); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--sub); font-weight: 500; font-size: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stat div { background: var(--field); border-radius: 8px; padding: 8px 10px; } .stat b { display: block; font-size: 20px; font-weight: 600; } .stat span { font-size: 11px; color: var(--sub); }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--line); }
.pill.active { background: rgba(53,196,106,.25); } .pill.pending { background: rgba(244,182,58,.3); } .pill.suspended, .pill.rejected { background: rgba(255,93,93,.3); }
.check { display: grid; gap: 6px; } .check div { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; } .check i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); margin-top: 3px; } .check i.ok { background: var(--ok); border-color: var(--ok); }
.legal p, .legal li { line-height: 1.8; } .legal h2 { font-size: 16px; margin: 24px 0 8px; } .legal h3 { font-size: 14px; margin: 16px 0 6px; }
code { font-size: 12px; background: var(--field); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
pre { background: var(--field); border-radius: 8px; padding: 12px; font-size: 12px; overflow: auto; max-height: 360px; white-space: pre-wrap; }
input[readonly] { color: var(--sub); }
/* YouTube のブランド表示（Developed with YouTube）。押すと YouTube へ。暗い背景には白、明るいテーマには黒の版 */
.dwy { display: inline-flex; align-items: center; line-height: 0; vertical-align: middle; } .dwy img { height: 14px; width: auto; } .dwy .on-light { display: none; }
html[data-theme="light"] .dwy .on-dark, html[data-theme="cute"] .dwy .on-dark { display: none; } html[data-theme="light"] .dwy .on-light, html[data-theme="cute"] .dwy .on-light { display: inline; }
