/* ログイン・管理画面（サーバーで組む画面）用。アプリ本体は web/src/styles.css */
:root { --bg: #fbfeff; --card: #ffffff; --line: #d2e7ef; --ink: #0e3347; --soft: #3d6479; --muted: #6f90a3; --accent: #0a9fc4; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 system-ui, -apple-system, 'Hiragino Sans', 'Noto Sans JP', sans-serif; }
a { color: var(--accent); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: linear-gradient(90deg, #0b86b8, #12a7c7); }
.site-header a { color: #ffffff; text-decoration: none; margin-left: 14px; }
.brand { font-weight: 800; margin-left: 0 !important; }
main { max-width: 960px; margin: 0 auto; padding: 16px 16px 48px; }
.narrow { max-width: 520px; margin: 24px auto; }
h1 { font-size: 24px; }
.muted { color: var(--muted); }
.notice { background: rgba(10,159,196,.08); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; min-height: 42px; cursor: pointer; text-decoration: none; margin: 2px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn.big { font-size: 16px; padding: 12px 24px; }
form.stack { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 42px; width: 100%; }
input[type='checkbox'] { width: auto; min-height: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input { width: auto; flex: 1; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.muted td { color: var(--muted); }
td form { display: inline; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
/* 質問の公開ページ */
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.q-list { list-style: none; padding: 0; }
.q-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-list a { font-weight: 700; font-size: 16px; text-decoration: none; }
.q-list .muted { font-size: 13px; }
.qa h1 { font-size: 22px; line-height: 1.4; }
.qa-q { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.qa-a { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa-a.accepted { border: 2px solid #3ddc97; border-radius: 12px; padding: 4px 16px; margin-bottom: 8px; }
.qa-badge { color: #3ddc97; font-weight: 800; font-size: 13px; margin-bottom: 0; }
/* 規約・プライバシー */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 17px; margin-top: 28px; }
.legal li { margin: 4px 0; }
.contact-mail { font-size: 20px; font-weight: 700; }
.login-buttons { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.btn.line { background: #06c755; border-color: #06c755; color: #fff; }
.btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.small { font-size: 13px; }
/* 管理：数字 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.stat b { font-size: 28px; }
.bar { display: inline-block; height: 10px; border-radius: 5px; background: var(--accent); vertical-align: middle; min-width: 2px; max-width: 80%; }
