/* ===== 今日の脳磨き 共通スタイル（白い明るい背景） ===== */
:root {
  --bg: #f7f6f2; --card: #ffffff; --line: #e4e1d8; --text: #2b2a27; --sub: #6b675f; --muted: #9a958a;
  --accent: #0f6e56; --accent-bg: #e1f5ee; --gold: #8a5a10; --gold-bg: #fdf3dc; --danger: #b3261e;
  --line-green: #06c755; --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif; font-size: 16px; line-height: 1.7; }
.wrap { max-width: 480px; margin: 0 auto; padding: 14px 16px 40px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 99px; background: #e6f4ea; color: #1e6b35; white-space: nowrap; }
.hero { position: relative; height: 170px; border-radius: 14px; overflow: hidden; background: #f5c47a; }
.hero .bg { position: absolute; inset: -8%; background: linear-gradient(135deg, #f5c47a, #e8805a) center/cover no-repeat;
  animation: kb 16s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.14) translate(-3%, -2%); } }
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }
.hero .title { position: absolute; left: 14px; bottom: 12px; margin: 0; color: #fff; font-weight: 700; font-size: 21px;
  text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.sub { text-align: center; color: var(--sub); font-size: 14px; margin: 8px 0 0; }
.tag { display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 99px; background: var(--accent-bg); color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-top: 12px; }
.lb { font-size: 13px; color: var(--sub); margin: 0 0 6px; }
.big { font-size: 19px; font-weight: 700; margin: 0; }
.gold { background: var(--gold-bg); border-radius: 10px; padding: 12px; margin-top: 10px; }
.gold .lb { color: var(--gold); font-weight: 700; }
.ura p { margin: 0 0 10px; line-height: 1.85; }
.ura p:last-child { margin: 0; }
textarea, input[type=text], input[type=password], select {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
button, .btn { font: inherit; font-size: 15px; border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; padding: 12px; font-size: 16px; font-weight: 700; margin-top: 14px; }
.line { background: var(--line-green); border-color: var(--line-green); color: #fff; width: 100%; font-weight: 700; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.err { font-size: 13px; color: var(--danger); margin: 6px 0 0; }
.notice { background: var(--accent-bg); border: 1px solid #b7e4d3; color: var(--accent); }
.notice p { margin: 0 0 6px; font-size: 14px; }
.hidden { display: none !important; }
details summary { cursor: pointer; color: var(--sub); font-size: 14px; }
.memo { border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.memo small { color: var(--muted); display: block; }
.small { font-size: 13px; padding: 6px 10px; }
.card + .hero { margin-top: 12px; }
