:root { --ink: #2A6496; --sub: #4c7fa8; --accent: #F6DC79; --accent-soft: #FFF1B6; --line: #e6e0c8; --title: #2F74B0; }
body { margin: 0; min-height: 100svh; color: var(--ink); font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif; font-size: 16px; line-height: 1.7;
  background: linear-gradient(rgba(255,255,255,.68), rgba(255,255,255,.68)), url(/login-bg.jpg) center / cover fixed, #f4f6f8; }
.wrap { max-width: 440px; margin: 0 auto; padding: 52px 18px; box-sizing: border-box; }
.cushion { background: rgba(255,253,250,.92); border-radius: 18px; padding: 26px 22px; box-shadow: 0 4px 18px rgba(42,100,150,.08); isolation: isolate; }
.pill { display: inline-block; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: bold; letter-spacing: .1em; padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
/* 見出し＝教科書と同じ青い四角の吹き出し */
h1 { position: relative; display: table; background: var(--title); color: #fff; font-size: 21px; line-height: 1.45; letter-spacing: .04em; padding: 8px 18px 9px; margin: 6px 16px 34px 0; }
h1::after { content: ""; position: absolute; left: 12px; top: 12px; right: -10px; bottom: -10px; border-right: 1.5px solid #9aa3a6; border-bottom: 1.5px solid #9aa3a6; z-index: -1; }
h1::before { content: ""; position: absolute; left: 58%; bottom: -27px; width: 1.5px; height: 20px; background: #9aa3a6; transform: rotate(32deg); transform-origin: top; }
.lead, .hint { white-space: pre-line; }
.hint { font-size: 13px; color: var(--sub); margin: 4px 0 16px; }
label { display: block; font-size: 14px; font-weight: bold; margin: 14px 0 0; }
input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px; font: inherit; border: 1px solid #cfdbe6; border-radius: 10px; background: #fff; color: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); font: inherit; font-weight: bold; }
.btn { display: block; text-align: center; text-decoration: none; margin-top: 18px; padding: 13px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: bold; }
.err { color: #c0392b; font-size: 14px; min-height: 1.5em; }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
th, td { text-align: left; padding: 8px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
td button { width: auto; margin: 0 4px 4px 0; padding: 5px 10px; font-size: 12px; }
.ghost { background: #fff; color: var(--ink); border: 1px solid var(--accent); }
.badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); white-space: nowrap; }
.badge.ok { background: #e1eef8; color: var(--ink); }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row input { flex: 1; }
.row button { width: auto; flex: none; padding: 12px 16px; }
