/* Jr.LTF バッジ 確かめ用モック v0.6 */
:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #2f3440;
  --sub: #7a7f8c;
  --line: #ece6dc;
  --soft: #faf7f2;
  --tier: #3d9be0;
  --tier-l: #e4f2fc;
  --ess: #4cae5a;
  --ess-l: #e6f5e8;
  --exp: #e0779f;
  --exp-l: #fce8f0;
  --phy: #ec9a3c;
  --phy-l: #fdf0e0;
  --rest: #a58fd6;
  --rest-l: #efe9fa;
  --accent: #ff8a5b;
  --ok: #34b27b;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 6px 20px rgba(80, 60, 30, .08), 0 1px 3px rgba(80, 60, 30, .06);
  --font: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "M PLUS Rounded 1c", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1e24;
    --card: #262931;
    --ink: #eceef3;
    --sub: #9aa0ad;
    --line: #353946;
    --soft: #2c3039;
    --tier-l: #20374a;
    --ess-l: #213a27;
    --exp-l: #432636;
    --phy-l: #44331f;
    --rest-l: #332c48;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* モックだけの切り替えの帯 */
.mockbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
  padding: 8px 14px; background: #2f3440; color: #fff; font-size: 13px;
}
.mockbar b { margin-right: 8px; font-weight: 600; opacity: .8; }
.mockbar button {
  padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff;
}
.mockbar button.on { background: #fff; color: #2f3440; }
.mockbar .note { margin-left: auto; opacity: .65; }

/* スマホの枠（PC で見る時だけ） */
.stage { display: flex; justify-content: center; padding: 24px 12px 40px; }
.phone {
  width: 100%; max-width: 400px; height: min(840px, calc(100vh - 100px)); min-height: 560px;
  background: var(--bg); position: relative; overflow: hidden;
  border-radius: 36px; box-shadow: 0 0 0 10px #2f3440, 0 20px 60px rgba(0,0,0,.25);
  display: flex; flex-direction: column;
}
@media (max-width: 480px) {
  .stage { padding: 0; }
  .phone { max-width: none; border-radius: 0; box-shadow: none; height: auto; min-height: 100vh; overflow: visible; }
}
.screen { flex: 1; overflow-y: auto; padding: 18px 16px 100px; }
.wide { max-width: 1180px; margin: 0 auto; padding: 24px; }

/* 見出し */
.hello { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }
.hello h1 { font-size: 22px; margin: 0; letter-spacing: .02em; }
.hello .date { font-size: 13px; color: var(--sub); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tier-l); color: var(--tier); font-weight: 700;
}
h2.sec { font-size: 15px; margin: 22px 4px 10px; display: flex; align-items: center; gap: 8px; }
h2.sec small { color: var(--sub); font-weight: 400; font-size: 12px; margin-left: auto; }

.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; }

/* 今日のひとこと */
.quote {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffd9a8 0%, #ffb7a0 55%, #f7a6c2 100%);
  color: #4a2f22; border-radius: var(--r-lg); padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.quote::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.25);
}
.quote .lbl { font-size: 11px; letter-spacing: .12em; opacity: .75; }
.quote p { margin: 6px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.55; position: relative; z-index: 1; }
.quote .src { font-size: 11px; opacity: .7; }

/* 今日の進み具合 */
.today-sum { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0);
  display: grid; place-items: center; transition: --p .4s; }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--card); display: grid; place-items: center;
  font-weight: 700; font-size: 15px; }
.today-sum .txt b { font-size: 16px; }
.today-sum .txt div { font-size: 12px; color: var(--sub); }

/* チェックリスト */
.group-lbl { font-size: 12px; color: var(--sub); margin: 14px 6px 6px; display: flex; align-items: center; gap: 6px; }
.task {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px;
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); margin-bottom: 8px;
  transition: transform .15s, background .3s;
}
.task:active { transform: scale(.985); }
.task img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.task .body { flex: 1; min-width: 0; }
.task .t { font-size: 14px; font-weight: 600; line-height: 1.4; }
.task .s { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.task .bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.task .bar i { display: block; height: 100%; border-radius: 3px; background: var(--c, var(--tier)); transition: width .5s; }
.check {
  width: 44px; height: 44px; border-radius: 50%; flex: none; border: 2.5px solid var(--line);
  display: grid; place-items: center; transition: all .2s; background: var(--soft);
}
.check svg { width: 20px; height: 20px; opacity: 0; transform: scale(.4); transition: all .25s cubic-bezier(.3,1.6,.6,1); }
.task.done { background: var(--soft); }
.task.done .check { background: var(--ok); border-color: var(--ok); }
.task.done .check svg { opacity: 1; transform: scale(1); }
.task.rest .check { background: var(--rest-l); border-color: var(--rest); }
.task.rest .t::after { content: " ・おやすみ"; color: var(--rest); font-size: 12px; font-weight: 400; }
.more { width: 36px; height: 44px; flex: none; color: var(--sub); font-size: 18px; border-radius: 10px; }
.pop { animation: pop .45s cubic-bezier(.3,1.6,.6,1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* メモ */
.memo textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px;
  font: inherit; font-size: 14px; resize: none; background: var(--soft); color: var(--ink); min-height: 48px;
}
.memo textarea:focus { outline: none; border-color: var(--accent); }
.memo .who { font-size: 11px; color: var(--sub); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* 次のバッジ */
.next { display: flex; gap: 14px; align-items: center; }
.next img { width: 64px; height: 64px; }
.next .t { font-weight: 700; }
.next .s { font-size: 12px; color: var(--sub); }
.next .bar { height: 10px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.next .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffc36b); border-radius: 6px; }

/* 下のタブ */
.tabs {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
  background: var(--card); border-top: 1px solid var(--line); padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
@media (max-width: 480px) { .tabs { position: fixed; } }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--sub);
  padding: 4px 12px; border-radius: 14px; min-width: 64px; }
.tabs button svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--accent); background: rgba(255,138,91,.1); }

/* バッジ図鑑 */
.seg { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.seg button { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--card); font-size: 13px;
  box-shadow: var(--shadow); }
.seg button.on { background: var(--c); color: #fff; }
.hint { font-size: 12.5px; background: var(--card); border-radius: var(--r-md); padding: 10px 14px; margin: 10px 0 0;
  border-left: 5px solid var(--c); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; margin-top: 6px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; }
.bdg .pic { width: 84px; height: 84px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.bdg img { width: 84px; height: 84px; transition: transform .2s; }
.bdg:active img { transform: scale(.94); }
.bdg .nm { font-size: 11px; line-height: 1.35; color: var(--sub); min-height: 30px; }
.bdg.off img { filter: grayscale(.9) opacity(.45); }
.bdg.on .pic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--c);
  border-right-color: transparent; transform: rotate(var(--deg, 0deg)); }
.bdg .tag { position: absolute; top: -2px; right: 4px; font-size: 10px; padding: 1px 7px; border-radius: 999px;
  background: var(--c); color: #fff; }
.bdg .tag.got { background: var(--ok); }
.bdg .lock { position: absolute; bottom: 34px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 12px; }
.ph { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--phy-l); color: var(--phy); border: 4px solid var(--phy); padding: 6px; line-height: 1.2; }
.lvl-head { font-size: 13px; font-weight: 700; margin: 20px 4px 8px; color: var(--c); }

/* 下から出るシート */
.sheet-bg { position: absolute; inset: 0; background: rgba(30,25,20,.35); z-index: 20; opacity: 0; pointer-events: none;
  transition: opacity .25s; }
.sheet-bg.show { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--card);
  border-radius: 28px 28px 0 0; padding: 10px 20px 28px; max-height: 88%; overflow-y: auto;
  transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.9,.3,1); }
@media (max-width: 480px) { .sheet-bg, .sheet { position: fixed; } }
.sheet.show { transform: translateY(0); }
.sheet .grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet .top { display: flex; gap: 14px; align-items: center; }
.sheet .top img { width: 92px; height: 92px; }
.sheet h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--sub); }
.chip.c { background: var(--c-l); color: var(--c); font-weight: 700; }
.sheet h4 { font-size: 13px; margin: 18px 0 6px; color: var(--sub); }
.sheet ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.sheet li { margin: 4px 0; }
.folded li:nth-child(n+4) { display: none; }
.linkbtn { color: var(--accent); font-size: 13px; padding: 6px 0; }
.who-row { display: flex; gap: 8px; }
.who-row .card { flex: 1; padding: 10px 12px; font-size: 12.5px; box-shadow: none; background: var(--soft); }
.who-row .card b { display: block; font-size: 11px; color: var(--sub); font-weight: 400; }
.big { width: 100%; padding: 15px; border-radius: 999px; font-size: 16px; font-weight: 700; margin-top: 20px;
  background: var(--c, var(--accent)); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.big.ghost { background: var(--soft); color: var(--sub); box-shadow: none; }
.big:disabled { opacity: .5; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.reasons button { padding: 14px 8px; border-radius: var(--r-md); background: var(--rest-l); color: var(--ink); font-size: 14px; }
.small { font-size: 12px; color: var(--sub); }

/* カレンダー */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { font-size: 11px; text-align: center; color: var(--sub); }
.cal .d { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 13px; background: var(--soft);
  position: relative; }
.cal .d.l1 { background: #ffe1cc; } .cal .d.l2 { background: #ffc29e; } .cal .d.l3 { background: #ff9f6e; color: #fff; }
@media (prefers-color-scheme: dark) { .cal .d.l1 { background: #5a3a28; } .cal .d.l2 { background: #8a4f2f; } }
.cal .d.rest { background: var(--rest-l); color: var(--rest); }
.cal .d.today { outline: 2.5px solid var(--accent); outline-offset: 1px; font-weight: 700; }
.cal .d.fut { background: transparent; color: var(--line); }
.cal .d.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--sub); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }

/* わたし */
.road { display: flex; align-items: flex-start; justify-content: space-between; position: relative; padding: 6px 4px 0; }
.road::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 4px; background: var(--line); border-radius: 2px; }
.road .st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 70px; text-align: center; }
.road .st .dot { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--card);
  border: 3px solid var(--line); font-weight: 700; color: var(--sub); }
.road .st.now .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(255,138,91,.15); }
.road .st span { font-size: 11px; color: var(--sub); line-height: 1.3; }
.need { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
.need .lab { width: 96px; flex: none; }
.need .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.need .dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); }
.need .dots i.got { background: var(--c); }
.need .dots i.go { background: var(--c-l); box-shadow: inset 0 0 0 2px var(--c); }
.shelf { display: flex; gap: 12px; overflow-x: auto; padding: 4px; }
.shelf .bdg img { width: 70px; height: 70px; }

/* お祝い */
.party { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(30,25,20,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (max-width: 480px) { .party { position: fixed; } }
.party.show { opacity: 1; pointer-events: auto; }
.party .box { background: var(--card); border-radius: 28px; padding: 26px 22px; width: 84%; text-align: center;
  transform: scale(.8); transition: transform .4s cubic-bezier(.3,1.6,.6,1); }
.party.show .box { transform: scale(1); }
.party img { width: 120px; height: 120px; animation: spin 1s cubic-bezier(.3,1.4,.6,1); }
@keyframes spin { from { transform: rotateY(180deg) scale(.5); } to { transform: rotateY(0) scale(1); } }
.party h3 { margin: 10px 0 4px; font-size: 20px; }
.confetti { position: absolute; width: 8px; height: 12px; border-radius: 2px; top: -10px; z-index: 41; pointer-events: none;
  animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(820px) rotate(720deg); opacity: .2; } }
.toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #2f3440; color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; opacity: 0; transition: all .3s; z-index: 45; white-space: nowrap; }
@media (max-width: 480px) { .toast { position: fixed; } }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 父母 */
.kids { display: flex; gap: 8px; margin-bottom: 12px; }
.kids button { padding: 8px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; }
.kids button.on { background: var(--accent); color: #fff; }
.award { border: 2px solid var(--accent); }
.award .top { display: flex; gap: 12px; align-items: center; }
.award img { width: 64px; height: 64px; }
.mini-cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 12px 0 6px; }
.mini-cal i { aspect-ratio: 1; border-radius: 5px; background: var(--ok); opacity: .85; }
.mini-cal i.r { background: var(--rest); }
.btn-row { display: flex; gap: 8px; }
.btn-row .big { margin-top: 12px; padding: 12px; font-size: 15px; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.list-row:last-child { border-bottom: 0; }
.list-row img { width: 30px; height: 30px; }
.list-row .ok { margin-left: auto; color: var(--ok); font-weight: 700; }
.list-row .no { margin-left: auto; color: var(--sub); }
.list-row .rs { margin-left: auto; color: var(--rest); }

/* 教育者・管理者（PC） */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 60px; align-self: start; }
.side .logo { font-weight: 700; font-size: 16px; margin: 0 10px 14px; }
.side button { text-align: left; padding: 10px 14px; border-radius: 12px; font-size: 14px; display: flex; justify-content: space-between; }
.side button.on { background: var(--card); box-shadow: var(--shadow); color: var(--accent); font-weight: 700; }
.side .cnt { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 8px; line-height: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi .n { font-size: 26px; font-weight: 700; }
.kpi .l { font-size: 12px; color: var(--sub); }
table.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th { text-align: left; font-size: 12px; color: var(--sub); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tb td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--soft); }
.pill.warn { background: #fde7e1; color: #c8553d; }
.pill.lv { background: var(--tier-l); color: var(--tier); }
.meter { width: 120px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; display: inline-block; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--ok); }
.queue { display: grid; gap: 12px; }
.queue .card { display: flex; gap: 14px; align-items: center; }
.queue img { width: 56px; height: 56px; }
.queue .grow { flex: 1; }
.queue .grow .s { font-size: 12.5px; color: var(--sub); }
.queue .acts { display: flex; gap: 8px; }
.queue .acts button { padding: 9px 16px; border-radius: 999px; font-size: 13px; background: var(--soft); }
.queue .acts button.p { background: var(--ok); color: #fff; }
.toggle { display: inline-block; vertical-align: middle; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.on { background: var(--ok); }
.toggle.on::after { left: 21px; }
.toggle.fixed { opacity: .5; cursor: default; }
.admin h2 { font-size: 18px; margin: 0 0 14px; }
.admin .explain { font-size: 13px; color: var(--sub); margin: -6px 0 14px; }
.wide .toast { position: fixed; bottom: 30px; }
.tb th, .tb td { white-space: nowrap; }
.admin main { min-width: 0; }
.admin main > .card { overflow-x: auto; }
@media (max-width: 900px) {
  .wide { padding: 14px; }
  .admin { grid-template-columns: 1fr; gap: 12px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side .logo { width: 100%; margin-bottom: 4px; }
  .side button { padding: 7px 12px; gap: 6px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .queue .card { flex-wrap: wrap; }
}

/* v0.2: 押せる所を 44px 以上に（見た目はそのまま、透明の縁で広げる） */
.hit { padding: 9px 2px; background: none; border: 0; cursor: pointer; line-height: 0; }
.badge-state { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 13px; }
.badge-state.wait { background: #fff4e0; color: #8a5a00; }
@media (prefers-color-scheme: dark) { .badge-state.wait { background: #3a2f1c; color: #ffd38a; } }

/* ===== v0.3 ===== */
/* 今日の Tips・週のスタンプ */
.tip { margin-top: 14px; border-left: 5px solid var(--c); }
.tip .lbl { font-size: 12px; font-weight: 700; color: var(--c); }
.tip p { margin: 6px 0 4px; font-size: 14px; line-height: 1.65; }
.stampcard { margin-top: 12px; }
.stamp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.stamps { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 6px; align-items: center; margin: 6px 0; }
.stamps .wk { font-size: 11px; color: var(--sub); }
.stamps .st { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--sub);
  border: 2px dashed var(--line); max-width: 40px; }
.stamps .st.ok { border: 0; background: var(--accent); color: #fff; font-size: 17px; transform: rotate(-8deg); }
.stamps .st.rest { border: 0; background: var(--rest-l); color: var(--rest); font-size: 16px; }
.stamps .st.now { border-color: var(--accent); border-style: solid; }
.sheets { display: flex; gap: 10px; }
.sheets span { flex: 1; text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--soft); font-size: 13px; color: var(--sub); line-height: 1.4; }
.sheets .done { background: var(--accent); color: #fff; }
.sheets .go { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
/* 自分のマーク */
.avatar { font-size: 22px; }
.avatar.big-mark { width: 92px; height: 92px; font-size: 48px; }
.marks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.marks button { aspect-ratio: 1; border-radius: 16px; background: var(--soft); font-size: 26px; min-height: 48px; }
.marks button.on { box-shadow: inset 0 0 0 3px var(--accent); background: var(--card); }
.colors { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.colors button { width: 40px; height: 40px; border-radius: 50%; }
.colors button.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--ink); }
.list-row .linkbtn { margin-left: auto; padding: 10px 4px; }

/* 登録・ログイン */
.lsteps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 14px 14px 0; }
.lsteps button { padding: 6px 12px; border-radius: 999px; background: var(--card); font-size: 12.5px; box-shadow: var(--shadow); }
.lsteps button.on { background: var(--accent); color: #fff; }
.screen.login { padding: 28px 22px 40px; }
.lg-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 10px 0 18px; font-size: 18px; }
.lg-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 22px;
  background: linear-gradient(135deg, #ffb36b, #ff8a5b 60%, #f0789d); box-shadow: var(--shadow); }
.lg-h { font-size: 20px; text-align: center; margin: 6px 0 8px; }
.screen.login > .small { text-align: center; }
.lg-field { display: block; font-size: 12px; color: var(--sub); margin-top: 18px; }
.lg-field input { display: block; width: 100%; margin-top: 6px; padding: 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.lg-check { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; min-height: 44px; }
.lg-check input { width: 22px; height: 22px; accent-color: var(--accent); }
.lg-note { margin: 0 0 0 30px; }
.code { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.code input { width: 44px; height: 54px; text-align: center; font: inherit; font-size: 24px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.consent { margin-top: 14px; }
.consent .list-row { align-items: flex-start; }
.mail { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mail-top { display: flex; justify-content: space-between; padding: 14px 16px 4px; }
.mail-sub { padding: 0 16px 10px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mail-body { padding: 14px 16px 18px; font-size: 14px; }
.slides { display: grid; gap: 12px; margin-top: 10px; }
.slide { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.slide .em { font-size: 36px; }
.slide p { margin: 4px 0 0; }
.how p { margin: 2px 0 10px; }
.welcome-back { text-align: center; padding-top: 20px; }
.welcome-back .avatar { margin: 0 auto 8px; }

/* ===== メンバーを PC で開いた時 ===== */
.pcapp { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 44px); position: relative; }
.pcnav { background: var(--card); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 44px; height: calc(100vh - 44px); }
.pcnav .logo { font-weight: 700; font-size: 17px; margin: 0 8px 16px; }
.pcnav .me { display: flex; gap: 10px; align-items: center; padding: 10px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.pcnav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px; color: var(--sub); min-height: 48px; }
.pcnav button svg { width: 22px; height: 22px; }
.pcnav button:hover { background: var(--soft); }
.pcnav button.on { background: rgba(255,138,91,.12); color: var(--accent); font-weight: 700; }
.pcapp .screen { padding: 28px 36px 60px; overflow: visible; max-width: 1120px; width: 100%; }
.pcapp .hello h1 { font-size: 26px; }
.pc-today { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pc-today .col-side { min-width: 0; }
.pc-today .col-side > .quote { margin-top: 0; }
.pcapp .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px 12px; }
.pcapp .pc-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pcapp .pc-2col h2.sec:first-child { margin-top: 0; }
.pcapp .task:hover, .pcapp .bdg:hover img, .pcapp .card.next:hover { cursor: pointer; }
.pcapp .task:hover { box-shadow: 0 8px 24px rgba(80,60,30,.12); }
.pcapp .bdg:hover img { transform: scale(1.05); }
/* シートは中央の窓に */
.pcapp .sheet-bg { position: fixed; }
.pcapp .sheet { position: fixed; left: 50%; top: 50%; bottom: auto; right: auto; width: min(560px, 92vw); max-height: 86vh;
  border-radius: 28px; padding: 22px 28px 28px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .25s, opacity .25s; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.pcapp .sheet.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.pcapp .sheet .grip { display: none; }
.pcapp .party { position: fixed; }
.pcapp .party .box { width: min(420px, 90vw); }
.pcapp .toast { position: fixed; bottom: 32px; left: calc(50% + 115px); }
@media (max-width: 860px) {
  .pcapp { grid-template-columns: 1fr; }
  .pcnav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .pcnav .logo, .pcnav .me { display: none; }
  .pcapp .screen { padding: 18px 16px 60px; }
  .pc-today, .pcapp .pc-2col { grid-template-columns: 1fr; }
  .pc-today .col-side { position: static; }
  .pcapp .toast { left: 50%; }
}
.screen > .today-sum { margin-top: 12px; }
.col-side > * + * { margin-top: 14px; }
.col-side > h2.sec { margin-top: 22px; }

/* ===== v0.5 はじめの計画 ===== */
.plan-todo { margin-top: 12px; border: 2px dashed var(--accent); box-shadow: none; }
.plan-todo .lbl { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.plan-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 4px; min-height: 56px;
  border-bottom: 1px solid var(--line); }
.plan-row img, .plan-row .ph { width: 44px; height: 44px; flex: none; }
.plan-row .grow { flex: 1; }
.plan-row .arrow { font-size: 22px; color: var(--sub); }
.bdg .tag.plan { background: var(--accent); }
.goal ul, .checks ul { margin: 0; padding-left: 1.2em; }
.goal li::marker { content: "◎ "; color: var(--c); }
.checks li::marker { content: "☐ "; color: var(--ok); }
.addmark { font-size: 10px; padding: 0 5px; border-radius: 6px; background: var(--soft); color: var(--sub); border: 1px solid var(--line); }
.plan-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.plan-status.draft { background: #fff1e8; box-shadow: inset 0 0 0 2px var(--accent); }
.plan-status.sent { background: #fff4e0; }
.plan-status .grow { flex: 1; }
.pill-btn { padding: 10px 16px; min-height: 44px; border-radius: 999px; background: var(--c, var(--accent)); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.fold { margin-top: 8px; border-radius: 12px; background: var(--soft); padding: 0 12px; }
.fold summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; min-height: 44px; align-items: center; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "＋"; color: var(--sub); }
.fold[open] summary::after { content: "－"; }
.fold summary span { margin-left: auto; margin-right: 10px; font-size: 12px; color: var(--sub); font-weight: 400; }
.fold ul { padding-bottom: 10px; font-size: 13.5px; }
.fold p { margin: 0 0 12px; line-height: 1.7; }
.sheet a { color: var(--tier); word-break: break-all; }
.psteps { display: flex; gap: 4px; margin: 14px 0 4px; overflow-x: auto; scrollbar-width: none; }
.psteps button { flex: 1; white-space: nowrap; padding: 8px 6px; min-height: 40px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--sub); }
.psteps button.ok { color: var(--ok); }
.psteps button.on { background: var(--c, var(--accent)); color: #fff; }
.pbody { min-height: 220px; }
.tk { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-top: 8px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.55; min-height: 44px; cursor: pointer; }
.tk input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ok); }
.tk.agree { background: #eaf7f0; }
.none { padding: 14px; border-radius: 12px; background: var(--soft); }
.summary { box-shadow: none; background: var(--soft); }
.list-row .sm { font-size: 12.5px; color: var(--sub); flex: 1; }
@media (prefers-color-scheme: dark) {
  .plan-status.draft { background: #3a2a20; } .plan-status.sent { background: #3a2f1c; } .tk.agree { background: #1f3a2c; }
}
/* v0.5.1 父母の毎日の確認 */
.list-row .grow { flex: 1; }
.confirm { margin-left: auto; padding: 8px 14px; min-height: 40px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
.confirm.on { background: var(--ok); color: #fff; box-shadow: none; }
.confirm-all { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.confirm-all .ok { color: var(--ok); font-weight: 700; font-size: 13px; }
/* v0.5.2 紙で計画・自分のチェック項目 */
.paper-way { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.paper-way .linkbtn { text-align: left; min-height: 44px; }
.own { color: var(--accent); }
.own-add { display: flex; gap: 8px; margin: 10px 0; }
.own-add input { flex: 1; min-width: 0; padding: 12px; font: inherit; font-size: 15px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.top-row { display: flex; gap: 12px; align-items: center; }
.top-row img, .top-row .ph { width: 56px; height: 56px; flex: none; }
.top-row .grow { flex: 1; }
/* 計画シート（画面では重ねて表示・印刷では紙だけ） */
#print { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(30,25,20,.55); overflow: auto; padding: 20px 10px 60px; }
#print.show { display: block; }
.ps-tools { position: sticky; top: 0; display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; z-index: 1; }
.ps-tools .big { width: auto; margin: 0; padding: 10px 20px; font-size: 14px; }
.paper { background: #fff; color: #222; width: min(794px, 100%); margin: 0 auto; padding: 36px 40px; font-size: 12.5px; line-height: 1.6;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.paper header { display: flex; justify-content: space-between; gap: 16px; border-bottom: 3px solid #ff8a5b; padding-bottom: 8px; }
.paper .ps-sub { font-size: 11px; color: #777; }
.paper h1 { font-size: 22px; margin: 2px 0 0; }
.paper .ps-name { font-size: 12px; line-height: 2; text-align: right; }
.paper h2 { font-size: 14px; margin: 16px 0 4px; padding-left: 8px; border-left: 4px solid #ff8a5b; }
.paper ul { margin: 0; padding-left: 1.3em; }
.paper ul.box { list-style: none; padding-left: 0; }
.paper .url { font-size: 10px; color: #777; word-break: break-all; }
.paper .line { display: flex; align-items: flex-end; gap: 8px; margin: 8px 0; }
.paper .line span { flex: none; max-width: 60%; }
.paper .line i { flex: 1; border-bottom: 1px solid #999; height: 18px; }
.paper .sign { margin-top: 10px; }
.paper table { width: 100%; border-collapse: collapse; font-size: 10.5px; margin-top: 6px; }
.paper th, .paper td { border: 1px solid #999; padding: 3px 4px; text-align: center; }
.paper th { background: #fff1e8; font-weight: 600; }
.paper td { height: 20px; }
.paper footer { margin-top: 14px; font-size: 11px; color: #555; }
@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; position: static; background: none; padding: 0; overflow: visible; }
  .ps-tools { display: none; }
  .paper { box-shadow: none; width: auto; padding: 0; }
  .paper thead { display: table-header-group; }
  .paper tr { break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}
/* v0.5.3 ゲットまでの流れ（短く） */
.flow { display: flex; list-style: none; padding: 0; margin: 4px 0 6px; gap: 0; counter-reset: f; }
.flow li { flex: 1; position: relative; text-align: center; white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 9px 4px 9px 12px; background: var(--soft); color: var(--sub);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); }
.flow li:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 10px 0 0 10px; padding-left: 6px; }
.flow li:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%); border-radius: 0 10px 10px 0; }
.flow li.done { background: var(--c-l, var(--ess-l)); color: var(--c, var(--ok)); }
.flow li.now { background: var(--c, var(--accent)); color: #fff; }

/* ===== v0.6 確かめ用の帯と新しい部品 ===== */
.mockbar .grp { display: inline-flex; gap: 3px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.08); align-items: center; }
.mockbar .grp.date { background: rgba(255,200,120,.18); }
.mockbar .grp .d { padding: 0 8px; font-weight: 700; white-space: nowrap; }
.mockbar select { font: inherit; font-size: 12px; border-radius: 999px; border: 0; padding: 4px 8px; background: rgba(255,255,255,.15); color: #fff; }
.mockbar select option { color: #222; }
.as-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: #fff4e0; color: #8a5a00; font-size: 13px; font-weight: 600; }
.goalline { font-size: 12px; color: var(--accent); margin-top: 2px; }
.pok { color: var(--ok); font-weight: 700; }
.back-note { margin-top: 10px; border-left: 5px solid #e0779f; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.log-row:last-child { border-bottom: 0; }
.log-row img, .log-row .ph { width: 30px; height: 30px; flex: none; }
.log-row .grow { flex: 1; min-width: 140px; }
.log-row .ok { color: var(--ok); font-weight: 700; } .log-row .rs { color: var(--rest); } .log-row .no { color: var(--sub); }
.day-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.day-acts button, .day-acts select { min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--soft); font: inherit; font-size: 13px; color: var(--ink); border: 1.5px solid var(--line); }
.day-acts button.on { background: var(--ok); color: #fff; border-color: var(--ok); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sheet-head h3 { margin: 0; }
.close { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--soft); font-size: 22px; color: var(--sub); line-height: 1; }
.req, .opt { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.req { background: #fde7e1; color: #c8553d; } .opt { background: var(--soft); color: var(--sub); }
.dev-pick { border: 0; padding: 0; margin: 14px 0 0; }
.paper .lead { background: #fff1e8; padding: 8px 10px; border-radius: 6px; font-weight: 600; }
.parent-wide { max-width: 760px; }
.parent-wide .screen { overflow: visible; padding: 0 0 60px; }
.qin { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
button.bdg { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
button.bdg .pic { display: grid; }
button.bdg .nm { display: block; }
button.card.next { width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .as-banner { background: #3a2f1c; color: #ffd38a; } .paper .lead { background: #fff1e8; } }
/* きろく: その日のメモをバッジの一覧より上に・大きめの字と枠（運営者 2026-11-24） */
.day-memo { margin-bottom: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); border: 2px solid var(--accent); box-shadow: var(--shadow); }
.day-memo .lbl { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.day-memo p { margin: 0; font-size: 16.5px; line-height: 1.75; white-space: pre-wrap; }
.day-memo .none-memo { font-size: 14px; color: var(--sub); }
#gtoast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); z-index: 200; max-width: min(92vw, 520px); text-align: center;
  background: #2f3440; color: #fff; padding: 11px 20px; border-radius: 20px; font-size: 13.5px; line-height: 1.5; opacity: 0; transition: all .3s; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
#gtoast.show { opacity: 1; transform: translate(-50%, 0); }
.toast { display: none; }


/* ===== 第2期 その1・その2（運営者 2026-11-24） ===== */
/* 最初のホーム: 激励とアプリの説明 */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 22px 22px; margin-bottom: 14px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.18) 0 30%, transparent 31%), linear-gradient(150deg, #1f3b73 0%, #2d5fae 48%, #ff8a5b 120%);
  box-shadow: 0 14px 34px rgba(31,59,115,.28); }
.hero-k { font-size: 11px; letter-spacing: .24em; opacity: .8; font-weight: 700; }
.hero h2 { margin: 10px 0 6px; font-size: 22px; line-height: 1.45; letter-spacing: .02em; }
.hero-sub { margin: 0 0 16px; font-size: 15px; font-weight: 700; color: #ffd8a8; }
.hero-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.hero-steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 46px; border-radius: 14px; background: rgba(255,255,255,.12); }
.hero-steps li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: #1f3b73; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.hero-steps b { display: block; font-size: 14.5px; }
.hero-steps span { font-size: 12.5px; opacity: .9; }
.hero-btn { background: #fff; color: #1f3b73; }
.hero-note { margin: 10px 0 0; font-size: 12px; opacity: .85; text-align: center; }
/* チェックの丸に薄い✓（押す前） */
.check svg { opacity: 1; transform: scale(1); }
.check svg path { stroke: #cfc6b8; }
.task.done .check svg path { stroke: #fff; }
.task.rest .check svg path { stroke: var(--rest); }
@media (prefers-color-scheme: dark) { .check svg path { stroke: #5a5f6b; } }
/* 絵を押すと詳細・おやすみの文字ボタン */
.ico { padding: 0; border-radius: 50%; flex: none; line-height: 0; }
.ico img, .ico .ph { width: 42px; height: 42px; }
.rest-btn { flex: none; min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 12px; color: var(--rest); background: var(--rest-l); }
/* メモの保存 */
.memo-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.memo-foot .who { margin: 0; }
.memo-st { margin-left: auto; font-size: 11.5px; color: var(--sub); }
.memo-foot .pill-btn { min-height: 40px; padding: 8px 18px; }
/* 父母と一緒に（計画の最初） */
.gate { text-align: center; padding: 6px 4px 4px; }
.gate-em { font-size: 54px; line-height: 1.2; }
.gate-k { font-size: 12px; color: var(--sub); margin-top: 4px; }
.gate h2 { font-size: 22px; margin: 8px 0 10px; color: var(--c, var(--accent)); }
.gate-big { font-size: 18px; font-weight: 800; line-height: 1.6; margin: 0 0 10px; }
.talk-head { padding: 14px 16px; border-radius: 16px; background: var(--c-l, #fff1e8); margin: 4px 0 6px; }
.talk-head b { display: block; font-size: 18px; color: var(--c, var(--accent)); }
.talk-head span { font-size: 12.5px; color: var(--sub); }
.tk.note { background: #fff8e6; margin-top: 14px; }
/* 図鑑: 入団準備の小さな印 */
.bdg .lv0 { display: block; font-size: 9.5px; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin: 2px auto 0; width: max-content; }
/* きろく: メモだけを見る・編集 */
.memo-only { font-size: 12px; padding: 6px 12px; min-height: 36px; margin-left: 8px; vertical-align: middle; }
.day-memo .lbl { display: flex; align-items: center; justify-content: space-between; }
.day-memo .lbl .linkbtn { font-size: 13px; min-height: 36px; padding: 4px 10px; }
.memo-edit { width: 100%; font: inherit; font-size: 16px; line-height: 1.7; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--accent); background: var(--card); color: var(--ink); resize: vertical; }
.memo-list { display: grid; gap: 10px; padding-bottom: 20px; }
.memo-month { font-size: 13px; font-weight: 800; color: var(--accent); margin: 10px 4px 0; position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 1; }
.memo-item { background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); border: 2px solid transparent; }
.memo-item.here { border-color: var(--accent); }
.memo-date { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--sub); font-weight: 700; }
.memo-item p { margin: 4px 0 0; font-size: 16.5px; line-height: 1.75; white-space: pre-wrap; }
/* わたし: ログアウト */
.logout { color: #c8553d; margin-top: 16px; }

/* ===== 第2期 その3（運営者 2026-11-24） ===== */
/* 下のタブを一番上の層に（シート・お祝いより下） */
.tabs { z-index: 15; }
/* 最初の画面: 自然な色・グラデーションは薄く */
.hero { color: #fff; background: linear-gradient(160deg, #3d5a86 0%, #4d6c99 100%); box-shadow: 0 10px 26px rgba(40,60,95,.18); }
.hero-sub { color: #f4e2c8; }
.hero-steps li { background: rgba(255,255,255,.10); }
.hero-steps li::before { color: #3d5a86; }
.hero-btn { color: #3d5a86; }
/* 父母と一緒の画面: イラスト・落ち着いた色 */
.gate-img { display: block; width: 100%; max-width: 320px; margin: 0 auto 10px; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.gate h2 { color: var(--ink); font-size: 21px; }
.gate-big { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
/* おやすみはチェックの下に小さく */
.acts-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.rest-btn { min-height: 26px; padding: 2px 8px; font-size: 10.5px; border-radius: 999px; background: transparent; color: var(--rest); border: 1px solid var(--rest-l); }

/* 家族のイラスト: 背景は画面と同じ白で塗った絵。枠や影は付けない（運営者 2026-11-24） */
.gate-img { box-shadow: none; border-radius: 0; max-width: 300px; }

/* ===== その5（実機・暗い画面・運営者 2026-11-24） ===== */
/* 下から出る画面: 中のスクロールを後ろへ渡さない・開いている間は後ろを止める */
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-bg { touch-action: none; }
body.sheet-open { overflow: hidden; }
body.sheet-open .screen { overflow: hidden; }
.sheet .grip { width: 56px; height: 6px; margin-bottom: 14px; }
/* 暗い画面: ノートの印の文字が読めない → 地を暗く */
@media (prefers-color-scheme: dark) {
  .tk.note { background: #3a3322; color: var(--ink); }
  .opt { background: #3b3f48; color: #c9ccd3; }
  /* 白い四角を目立たせない: バッジの絵は丸く切る・家族の絵は白い札として置く */
  .bdg img, .task img, .ico img, .sheet .top img, .plan-row img, .list-row img, .log-row img, .queue img, .award img, .next img, .party img { border-radius: 50%; }
  .gate-img { border-radius: 18px; background: #fff; padding: 10px; }
}

/* その6（実機）: スマホでは、下から出る画面とお祝いを、確かめ用の帯より上の層に（× が帯に隠れないように） */
@media (max-width: 480px) {
  .sheet-bg { z-index: 60; }
  .sheet { z-index: 61; max-height: 86%; }
  .party { z-index: 62; }
}

/* 紙吹雪（物理で動かす・運営者 2026-11-24） */
.cf { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 1.5px; will-change: transform, opacity; }
.cf.round { border-radius: 50%; }

/* 今日のチェック: 期間の中の物の数（＋期間 n） */
.today-sum .plus { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ess-l); color: var(--ess); vertical-align: 2px; }
.ring.full { background: conic-gradient(var(--ok) 100%, var(--line) 0); }

/* v0.7（仕様書 v0.8）: 帯の使い方・札・訂正・子の番号 */
.mockbar .help-btn { background: #ffd66b; color: #2f3440; }
.mockhelp { background: #3a3f4b; color: #fff; font-size: 13px; line-height: 1.6; padding: 10px 16px 12px; }
.mockhelp ol { margin: 4px 0 6px; padding-left: 20px; }
.mockhelp p { margin: 4px 0; opacity: .9; }
.rowtag { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.rowtag.ready { background: #fff1c9; color: #8a5a00; }
.rowtag.wait { background: var(--soft); color: var(--sub); }
.rowtag.late { background: #ffe4dc; color: #a23b16; }
.task.locked { opacity: .85; }
.kid-code { margin-top: 8px; padding: 12px; border-radius: var(--r-md); background: var(--soft); text-align: center; }
.kid-code b { display: block; margin-top: 6px; font-size: 28px; letter-spacing: 4px; }
.kid-way { margin-top: 14px; }
.card.fix { display: grid; gap: 12px; max-width: 560px; }
.card.fix label { display: flex; gap: 10px; align-items: center; }
.card.fix select, .card.fix input { font-size: 15px; padding: 6px 8px; }
.card.fix .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.card.fix .acts button { padding: 9px 16px; border-radius: 999px; font-size: 13px; background: var(--soft); }
.queue .acts button[disabled] { opacity: .5; }

/* 2026-11-28 運営者「父母のチェックの画面の、フレームの間隔が近すぎて見にくい」→ 続く枠・ボタンの間を空ける */
.card + .card { margin-top: 14px; }
.card + .big, .big + .big { margin-top: 14px; }
.seg + .card, .kid-seg + .card { margin-top: 14px; }
.card .list-row { padding: 11px 0; }
/* 父母の画面の子の切り替え: 選んだ子が読めなかった（--c が無い所で白い字になっていた） */
.kid-seg button.on { background: #3f5f8f; color: #fff; }
