:root { --bg:#f5f6f8; --card:#fff; --line:#d9dde3; --text:#1f2328; --sub:#5b6470; --accent:#0a7a3c; --danger:#b42318; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family: -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; font-size:16px; }
header { background:var(--accent); color:#fff; padding:14px 16px; font-weight:700; font-size:18px; display:flex; justify-content:space-between; align-items:center; }
header small { font-weight:400; opacity:.9; font-size:13px; }
main { padding:12px 16px 120px; max-width:720px; margin:0 auto; }
section { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:12px; }
h2 { font-size:15px; margin:0 0 10px; color:var(--sub); }
label { display:block; font-size:13px; color:var(--sub); margin-bottom:4px; }
input, select, textarea { width:100%; font-size:17px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#fff; }
input[type=number] { text-align:right; }
textarea { min-height:70px; }
.radio { display:flex; gap:14px; padding:8px 0; }
.radio label { display:flex; align-items:center; gap:6px; font-size:15px; color:var(--text); margin:0; }
.radio input { width:auto; }
.footer { position:fixed; left:0; right:0; bottom:0; background:#fff; border-top:1px solid var(--line); padding:10px 16px calc(10px + env(safe-area-inset-bottom)); display:flex; gap:10px; }
.footer button, .footer .btn { flex:1; padding:14px; font-size:17px; border-radius:10px; border:1px solid var(--accent); background:var(--accent); color:#fff; font-weight:700; text-align:center; text-decoration:none; }
.footer .secondary, .footer button.secondary { background:#fff; color:var(--accent); flex:0 0 32%; }
.footer button:disabled { opacity:.5; }
.msg { padding:10px 12px; border-radius:8px; margin-bottom:12px; font-size:14px; }
.msg.err { background:#fde8e8; color:var(--danger); }
.msg.ok { background:#e6f4ea; color:#135c2e; }
.msg a { color:inherit; font-weight:700; }
.menu a { display:block; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px; margin-bottom:8px; color:var(--text); text-decoration:none; font-size:16px; }
.menu a:active { background:#eef5f0; }
