/* index.html の見た目（2026-10-27 にページの <style> から出した。CSP でインラインの style を禁じたため） */
/* 見た目は管理画面（ユーザー管理ページ）にそろえる */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8f9fc; --text: #1d2433; --muted: #687086; --line: #e3e7ef;
  --accent: #3b5bdb; --accent-weak: #e7ecff; --danger: #d6336c; --danger-weak: #ffe3ec; --ok: #2b8a3e;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06); --radius: 12px; --btn-w: 168px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #11141b; --surface: #1a1f2a; --surface-2: #202634; --text: #e7eaf2; --muted: #9aa3b8; --line: #2c3344;
  --accent: #7c95ff; --accent-weak: #263159; --danger: #ff6b98; --danger-weak: #4a2333; --ok: #69db7c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif; }
button, input { font: inherit; color: inherit; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; min-width: 0; }
.brand div { white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; flex: none; }
.theme-switch { display: inline-flex; flex: none; height: 32px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.theme-switch button { border: none; border-radius: 6px; background: transparent; cursor: pointer; font-size: .82rem; color: var(--muted); padding: 0 10px; white-space: nowrap; }
/* 狭い画面（電話）：色の切り替えは印だけにして、名前と一緒に 1 行に収める（2026-10-27。前は「ライ／ト」と折り返していた） */
@media (max-width: 480px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand { font-size: .95rem; gap: 8px; }
  .theme-switch button { padding: 0 8px; }
  .theme-switch .t { display: none; }
}
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
main { max-width: 720px; margin: 8vh auto; padding: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.narrow { max-width: 400px; margin: 0 auto; }
h1 { margin: 0 0 4px; font-size: 1.3rem; }
#signin-view h1 { margin-bottom: 20px; }   /* サインインの画面には説明の文がないので、見出しの下を空ける */
.lead { margin: 0 0 20px; color: var(--muted); font-size: .9rem; white-space: pre-line; }
.notice { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; background: var(--accent-weak); color: var(--accent); font-size: .9rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .85rem; color: var(--muted); }
.input { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); outline: none; width: 100%; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.error { color: var(--danger); font-size: .85rem; min-height: 1.3em; margin: 0 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: var(--btn-w); height: 36px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .9rem; text-decoration: none; color: var(--text);
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.block { width: 100%; }
#notice-view h1 { margin-bottom: 16px; }
.actions { display: grid; gap: 8px; }   /* 知らせの画面のボタン（入口へ・サインアウト）を縦に並べる（2026-10-30） */
.spinner { text-align: center; color: var(--muted); padding: 40px 0; }
