* { box-sizing:border-box; }
body { margin:0; padding:16px; max-width:560px; margin-inline:auto; background:#FFF8EC; color:#4A3B32; line-height:1.6;
  font-family:"Hiragino Maru Gothic ProN","BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif; }
h1 { font-size:28px; text-align:center; margin:8px 0 8px; }
h2 { font-size:23px; margin:22px 0 8px; }
.card { background:#fff; border:2px solid #F1E0C6; border-radius:26px; padding:16px 14px; margin-bottom:16px; box-shadow:0 3px 10px rgba(120,90,50,.08); }
.card.warn { background:#FFF3D6; border-color:#E8C56A; }
.card.good { background:#EDF7F0; border-color:#BFE0CE; }
.lead { font-size:21px; font-weight:bold; margin:0 0 4px; text-align:center; }
.note { font-size:17px; margin:4px 0; color:#6b5a4e; }
.center { text-align:center; }
.btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; border:0; border-radius:999px; font:inherit; font-size:24px; font-weight:bold;
  min-height:72px; margin:12px 0 0; padding:10px 16px 12px; cursor:pointer; color:#4A3B32; line-height:1.3;
  box-shadow:0 5px 0 rgba(120,90,50,.26), 0 9px 14px rgba(120,90,50,.12); transition:transform .08s, box-shadow .08s; }
.btn:active { transform:translateY(4px); box-shadow:0 1px 0 rgba(120,90,50,.26); }
.btn:disabled { opacity:.5; cursor:default; }
.btn.green { background:#9ADBBE; color:#1E5C42; }
.btn.blue { background:#A8CDF2; color:#1F4E84; }
.btn.gray { background:#EFE3CF; color:#6B5846; }
.btn.yellow { background:#FFE9A8; color:#5C4A00; }
.btn.small { font-size:19px; min-height:54px; }
.btn.ok { font-size:40px; min-height:130px; background:#8FD9B6; color:#155239; }
#status { display:none; position:sticky; top:8px; z-index:9; border-radius:18px; padding:12px; margin-bottom:12px; font-size:20px; font-weight:bold; text-align:center; white-space:pre-wrap; }
#status.ok { background:#E7F4EC; color:#1E5C42; border:2px solid #BFE0CE; }
#status.ng { background:#FDECEA; color:#7A1F12; border:2px solid #F2A59A; }
input[type=text], input[type=time], textarea { width:100%; font:inherit; font-size:20px; padding:10px; border:2px solid #d8c3a2; border-radius:12px; background:#fff; color:#4A3B32; }
textarea { font-size:14px; min-height:70px; }
label.line { display:flex; align-items:center; gap:10px; font-size:19px; margin-top:10px; }
label.line input { width:28px; height:28px; flex:0 0 auto; }

/* 本人の画面：質問のカード */
.ask { text-align:center; border-width:4px; border-color:#F5C86B; }
.ask .icon { font-size:62px; line-height:1.2; }
.ask .q { font-size:40px; font-weight:bold; margin:2px 0; }
.ask .time { font-size:17px; color:#7a6a5e; margin:0; }
.history { list-style:none; margin:0; padding:0; font-size:19px; }
.history li { display:flex; justify-content:space-between; gap:8px; padding:8px 2px; border-bottom:1px dashed #e3cfae; }

/* 家族の画面 */
.qhead { font-size:25px; font-weight:bold; margin:0 0 6px; }
.seg { display:flex; gap:8px; }
.seg button { flex:1; font:inherit; font-size:20px; font-weight:bold; min-height:52px; border-radius:14px; border:2px solid #d8c3a2; background:#fff; color:#6b5a4e; cursor:pointer; }
.seg button[aria-pressed=true] { background:#4F8F72; border-color:#4F8F72; color:#fff; }
.timerow { display:flex; align-items:center; gap:10px; margin-top:10px; font-size:19px; }
.timerow input { flex:1; }
.state { font-size:20px; font-weight:bold; border-radius:14px; padding:10px; margin-top:12px; text-align:center; background:#F3EEE6; }
.state.ok { background:#E7F4EC; color:#1E5C42; }
.state.notyet { background:#FFF1B8; color:#5C4A00; }
.state.none { background:#FDECEA; color:#7A1F12; }
[hidden] { display:none !important; }
