/* Fanfare brand: navy #1c2e69 / sky #61a3d9 */
:root {
  --navy: #1c2e69;
  --sky: #61a3d9;
  --grad: linear-gradient(135deg, #1c2e69 0%, #61a3d9 100%);
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #23304f;
  --sub: #6b7a99;
  --line: #e3eaf4;
  --ok: #2fa06a;
  --danger: #d64550;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif; /* 2026-09-07 たいが「全てのアプリでフォントをゴシックに」＝4アプリ共通の角ゴシック */
  background: var(--bg); color: var(--text); line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}
button { font-family: inherit; }

.loading-screen {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
}
.loading-logo { font-size: 2rem; font-weight: 700; letter-spacing: .08em; }
.loading-sub { opacity: .85; margin-top: .4rem; }

/* ---- auth ---- */
.auth-wrap { min-height: 100%; background: var(--grad); display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.auth-card { background: #fff; border-radius: 20px; padding: 1.8rem 1.4rem; width: 100%; max-width: 420px; box-shadow: 0 18px 50px rgba(16,28,66,.35); }
.auth-brand { text-align: center; margin-bottom: 1.2rem; }
.auth-brand .b1 { font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: .06em; }
.auth-brand .b2 { color: var(--sub); font-size: .9rem; margin-top: .15rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.field input {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; background: #fafcff; color: var(--text);
}
.field input:focus { outline: none; border-color: var(--sky); background: #fff; }
.btn {
  display: block; width: 100%; padding: .9rem; border: none; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 1.02rem; font-weight: 700; cursor: pointer;
}
.btn:disabled { opacity: .5; }
.btn.secondary { background: #edf2fa; color: var(--navy); }
.btn.small { display: inline-block; width: auto; padding: .5rem .9rem; font-size: .85rem; border-radius: 9px; }
.seg { display: flex; background: #edf2fa; border-radius: 12px; padding: 4px; margin-bottom: 1.1rem; }
.seg button {
  flex: 1; border: none; background: none; padding: .55rem; border-radius: 9px;
  font-size: .95rem; font-weight: 700; color: var(--sub); cursor: pointer;
}
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(28,46,105,.12); }
.name-list { max-height: 240px; overflow-y: auto; border: 1.5px solid var(--line); border-radius: 10px; margin-top: .4rem; background: #fff; }
.name-item {
  display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left;
  padding: .65rem .8rem; border: none; border-bottom: 1px solid var(--line); background: #fff;
  font-size: .95rem; color: var(--text); cursor: pointer;
}
.name-item:last-child { border-bottom: none; }
.name-item.dim { color: #b7c3d8; }
.name-item .tag { font-size: .68rem; background: #eef2f8; color: #93a3bf; border-radius: 99px; padding: .1rem .5rem; }
.picked { margin-top: .5rem; background: #eaf6ef; border: 1.5px solid #bfe3cd; border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; color: #1e6b43; }
.picked a { color: var(--sky); font-size: .8rem; margin-left: .4rem; }
.confirm-name {
  text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--navy);
  background: #eaf2fb; border-radius: 14px; padding: 1rem; margin-bottom: .3rem;
}
.warn-banner {
  display: block; width: 100%; text-align: left; background: #fff7e8; border: 1.5px solid #f0d9a8;
  color: #8a6116; border-radius: var(--radius); padding: .8rem 1rem; font-size: .88rem; font-weight: 600;
  margin-bottom: .8rem; cursor: pointer;
}
.badge.warn { background: #fff2e0; color: #c07b18; margin-left: .3rem; }
.sel {
  width: 100%; padding: .7rem .75rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fafcff; color: var(--text); margin-top: .35rem;
}
.sel:focus { outline: none; border-color: var(--sky); background: #fff; }
.login-row { padding: .35rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--sub); }
.login-row:last-child { border-bottom: none; }
.ai-btn { background: var(--grad); color: #fff; }
.auth-switch { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--sub); }
.auth-switch a { color: var(--sky); font-weight: 600; text-decoration: none; }
.form-error { color: var(--danger); font-size: .88rem; margin: .5rem 0; min-height: 1.2em; }

/* ---- app shell ---- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--grad); color: #fff;
  padding: calc(.7rem + env(safe-area-inset-top)) 1rem .7rem; display: flex; align-items: center; gap: .6rem;
}
.topbar .back { background: none; border: none; color: #fff; font-size: 1.3rem; padding: .2rem .4rem; cursor: pointer; }
.topbar .title { font-weight: 700; font-size: 1.02rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .save-state { font-size: .75rem; opacity: .9; }
.topbar .menu-btn { background: rgba(255,255,255,.15); border: none; color: #fff; border-radius: 8px; padding: .35rem .6rem; font-size: .8rem; cursor: pointer; }

.container { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 4rem; }

/* ---- home ---- */
.hero { background: var(--grad); color: #fff; padding: calc(1.2rem + env(safe-area-inset-top)) 1.2rem 2.6rem; }
.hero .hello { font-size: .9rem; opacity: .9; }
.hero h1 { font-size: 1.35rem; margin-top: .15rem; }
.hero-actions { position: absolute; top: calc(.9rem + env(safe-area-inset-top)); right: .9rem; display: flex; gap: .4rem; }
.hero-wrap { position: relative; }
.total-card {
  background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem;
  margin: -1.8rem 1rem 0; box-shadow: 0 10px 26px rgba(28,46,105,.12); max-width: 608px;
}
@media (min-width: 660px) { .total-card { margin-left: auto; margin-right: auto; } }
.total-card .row { display: flex; justify-content: space-between; align-items: baseline; }
.total-card .pct { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.bar { height: 8px; background: #e8eef7; border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }

.sheet-list { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.1rem; }
.sheet-card {
  display: flex; align-items: center; gap: .9rem; background: var(--card); border-radius: var(--radius);
  padding: .95rem 1rem; border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%;
}
.sheet-card:active { transform: scale(.985); }
.sheet-card .ic { font-size: 1.6rem; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(28,46,105,.22);
}
.icon-badge svg { width: 24px; height: 24px; display: block; }
.icon-badge.sm { width: 28px; height: 28px; border-radius: 8px; box-shadow: none; }
.icon-badge.sm svg { width: 15px; height: 15px; }
.sheet-card .mid { flex: 1; min-width: 0; }
.sheet-card .t { font-weight: 700; color: var(--navy); }
.sheet-card .d { font-size: .78rem; color: var(--sub); margin-top: .1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-card .bar { margin-top: .45rem; }
.sheet-card .pct { font-size: .85rem; font-weight: 700; color: var(--sky); min-width: 3em; text-align: right; }
.sheet-card .pct.done { color: var(--ok); }

/* ---- sheet editing ---- */
.sheet-desc { background: #eaf2fb; border-left: 4px solid var(--sky); border-radius: 8px; padding: .7rem .9rem; font-size: .85rem; color: #33507a; margin-bottom: 1rem; white-space: pre-wrap; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .9rem; }
.section h3 { color: var(--navy); font-size: .98rem; margin-bottom: .2rem; }
.section .note { font-size: .8rem; color: var(--sub); margin-bottom: .5rem; white-space: pre-wrap; }
.qa { margin-top: .9rem; }
.qa .q { font-size: .88rem; font-weight: 600; color: var(--navy); }
.qa .hint { font-size: .76rem; color: var(--sub); margin: .1rem 0 .35rem; }
.qa-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.qa-links a { display: inline-block; font-size: .78rem; color: var(--navy); background: rgba(97,163,217,.14); border: 1px solid rgba(97,163,217,.45); border-radius: 999px; padding: .2rem .65rem; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-links a:active { background: rgba(97,163,217,.3); }
.kd-a a, .kd-comp .em a { color: var(--navy); text-decoration: underline; word-break: break-all; }
textarea, input.short {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .75rem;
  font-size: 16px; font-family: inherit; background: #fafcff; color: var(--text); resize: none; line-height: 1.55;
}
textarea:focus, input.short:focus { outline: none; border-color: var(--sky); background: #fff; }
textarea[disabled], input.short[disabled] { background: #f3f5f9; color: #55617d; opacity: 1; -webkit-text-fill-color: #55617d; }
textarea { min-height: 2.9em; overflow: hidden; }

/* score picker */
.score-row { display: flex; gap: .28rem; flex-wrap: wrap; margin-top: .35rem; }
.score-row button {
  flex: 1 0 7.5%; min-width: 2rem; padding: .45rem 0; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; color: var(--sub); font-weight: 700; font-size: .9rem; cursor: pointer;
}
.score-row button.sel { background: var(--grad); border-color: transparent; color: #fff; }

/* checklist */
.check-item {
  display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .6rem; cursor: pointer; width: 100%; text-align: left;
}
.check-item .box {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c6d4e8; display: flex; align-items: center;
  justify-content: center; color: #fff; font-weight: 800; flex-shrink: 0;
}
.check-item.on .box { background: var(--ok); border-color: var(--ok); }
.check-item .lbl { font-size: .92rem; }
.check-item.on .lbl { color: var(--sub); }
.check-inline { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; cursor: pointer; }
.check-inline .box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c6d4e8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex-shrink: 0; }
.check-inline.on .box { background: var(--ok); border-color: var(--ok); }
.check-inline .lbl { font-size: .88rem; }

/* moti chart */
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: 1rem; }
.chart-card svg { width: 100%; height: auto; display: block; }
.age-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .3rem; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: left; }
.age-row .age { width: 3.2em; font-weight: 700; color: var(--navy); font-size: .9rem; flex-shrink: 0; }
.age-row .dotbar { flex: 1; height: 6px; background: #edf1f8; border-radius: 99px; overflow: hidden; }
.age-row .dotbar > i { display: block; height: 100%; background: var(--grad); }
.age-row .val { width: 2em; text-align: right; font-size: .85rem; color: var(--sub); flex-shrink: 0; }
.age-row .has-ep { color: var(--sky); font-size: .8rem; flex-shrink: 0; }
.age-editor { padding: .6rem .2rem 1rem; border-bottom: 1px solid var(--line); }

/* chips (複数選択) */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--sub); border-radius: 99px;
  padding: .38rem .85rem; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.chip:disabled { opacity: .85; }

/* image grid */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .5rem; }
.img-tile { aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef2f8; cursor: pointer; }
.img-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-add {
  aspect-ratio: 1; border: 2px dashed #c4d2e6; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: var(--sky); font-size: 1.5rem; font-weight: 300; cursor: pointer; background: #f7fafe;
}

/* comp avatar */
.slot-ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #e4ebf5; flex-shrink: 0; display: block; }
.slot-ava .ava { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-ava .ava-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe8f4, #cfdcee); }
.slot-ava.lg { width: 56px; height: 56px; }
.slot-head { display: flex; align-items: center; gap: .5rem; }
.slot-head .no { font-size: .72rem; color: var(--sub); font-weight: 700; }
.slot-profile { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.slot-profile h3 { margin: 0; }

/* comp slots */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.slot-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; cursor: pointer; text-align: left; }
.slot-card .no { font-size: .72rem; color: var(--sub); font-weight: 700; }
.slot-card .nm { font-weight: 700; color: var(--navy); font-size: .9rem; margin-top: .15rem; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.4em; }
.slot-card .st { font-size: .75rem; margin-top: .3rem; }
.slot-card .st.filled { color: var(--ok); font-weight: 700; }
.slot-card .st.empty { color: #b7c3d8; }

/* admin */
.stu-row { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .6rem; cursor: pointer; width: 100%; text-align: left; }
.stu-row .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.stu-row .mid { flex: 1; min-width: 0; }
.stu-row .nm { font-weight: 700; color: var(--navy); }
.stu-row .em { display: block; font-size: .75rem; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stu-row .nm { display: block; }
.stu-row .pct { flex-shrink: 0; margin-left: .4rem; }
.stu-row .bar { margin-top: .35rem; }
.stu-row .pct { font-weight: 800; color: var(--navy); }
.admin-tools { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.adm-search { margin-bottom: .7rem; }
.adm-filters { display: flex; gap: .5rem; margin-top: .5rem; }
.adm-filters select {
  flex: 1; padding: .55rem .6rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: .9rem; font-family: inherit; background: #fff; color: var(--text);
}
.stu-meta { color: var(--sky); font-weight: 600; }
.official-val { font-size: 1rem; font-weight: 700; color: var(--navy); padding: .3rem 0; }
.tag-auto { font-size: .68rem; font-weight: 600; background: #eaf2fb; color: var(--sky); border-radius: 99px; padding: .1rem .5rem; margin-left: .3rem; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: #eaf2fb; color: var(--sky); vertical-align: middle; }
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.prog-cell { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; font-size: .8rem; display: flex; align-items: center; gap: .45rem; }
.prog-cell b { color: var(--navy); }
.prog-cell .pv { margin-left: auto; font-weight: 800; color: var(--sky); }

/* 使い方ガイド */
.guide-banner {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--sky); border-radius: var(--radius);
  padding: .85rem 1rem; margin-bottom: .8rem; cursor: pointer; font-family: inherit;
}
.guide-banner b { color: var(--navy); font-size: .95rem; }
.guide-banner span { font-size: .78rem; color: var(--sub); }
.guide-banner:active { transform: scale(.985); }
.guide-banner.warn { border-color: #e8a13d; background: #fff8ec; }
.guide-banner.warn b { color: #a5620b; }
.guide-banner.warn span { color: #a5620b; font-weight: 600; }
.guide-steps { margin-top: .6rem; }
.guide-step { background: #f7fafe; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.guide-step-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.guide-step-head .gnum { font-size: .7rem; font-weight: 800; color: var(--sky); letter-spacing: .05em; }
.guide-step-head b { color: var(--navy); font-size: .95rem; }
.guide-step p { font-size: .85rem; margin: 0; }
.guide-goal { margin-top: .45rem; font-size: .8rem; color: #1e6b43; background: #eaf6ef; border-radius: 8px; padding: .45rem .6rem; }
.guide-arrow { text-align: center; color: #b7c3d8; font-weight: 800; padding: .15rem 0; }
.guide-list { padding-left: 1.2rem; margin-top: .4rem; }
.guide-list li { font-size: .88rem; margin-bottom: .4rem; }

/* 完了CTA */
.cta-card {
  display: flex; align-items: center; gap: .7rem; background: var(--grad); color: #fff;
  border-radius: var(--radius); padding: .95rem 1rem; margin: .2rem 0 .9rem; text-decoration: none;
  box-shadow: 0 8px 20px rgba(28,46,105,.3);
}
.cta-card:active { transform: scale(.985); }
.cta-card .cta-emoji { font-size: 1.5rem; }
.cta-card .cta-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cta-card .cta-mid b { font-size: .95rem; }
.cta-card .cta-mid span { font-size: .75rem; opacity: .9; }
.cta-card .cta-btn {
  background: #fff; color: var(--navy); font-weight: 800; font-size: .82rem;
  border-radius: 99px; padding: .5rem .8rem; white-space: nowrap; flex-shrink: 0;
}
.cta-locked {
  border: 1.5px dashed #c4d2e6; border-radius: var(--radius); padding: .7rem .9rem;
  font-size: .8rem; color: var(--sub); margin-bottom: .9rem; background: #f7fafe;
}
.video-link {
  display: block; background: var(--card); border: 1.5px solid var(--sky); color: var(--navy);
  border-radius: var(--radius); padding: .8rem 1rem; font-size: .88rem; font-weight: 700;
  text-decoration: none; margin-bottom: .7rem;
}
.video-link:active { transform: scale(.985); }

/* インサイト coming soon */
.badge.soon { background: var(--grad); color: #fff; margin-left: .35rem; letter-spacing: .04em; }
.insights-card { border-style: dashed; border-color: #b9c9df; }
.soon-hero {
  background: var(--grad); color: #fff; border-radius: 18px; padding: 2.6rem 1.4rem;
  text-align: center; box-shadow: 0 12px 30px rgba(28,46,105,.3);
}
.soon-hero .soon-emoji { font-size: 3rem; }
.soon-hero .soon-title { font-size: 1.8rem; font-weight: 800; letter-spacing: .05em; margin: .4rem 0 .8rem; }
.soon-hero .soon-desc { font-size: .95rem; line-height: 1.9; }
.soon-hero .soon-sub { font-size: .8rem; opacity: .85; margin-top: .8rem; line-height: 1.8; }
.kpi-callout {
  margin-top: .8rem; background: #fff7e8; border: 1.5px solid #f0d9a8; color: #8a6116;
  border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; line-height: 1.9; text-align: center;
}

.toast {
  position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: .6rem 1.1rem; border-radius: 99px; font-size: .85rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); z-index: 50; opacity: 0; transition: opacity .25s; pointer-events: none;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; }
.muted { color: var(--sub); font-size: .85rem; }
.center { text-align: center; }
.mt1 { margin-top: 1rem; }

/* v10: 講座教材のリッチ本文 */
.kz-html { line-height: 1.9; overflow-wrap: break-word; }
.kz-html img { max-width: 100%; height: auto; border-radius: 10px; margin: .6rem 0; display: block; }
.kz-html h1, .kz-html h2 { font-size: 1.15rem; margin: 1.2rem 0 .5rem; border-left: 4px solid var(--sky, #61a3d9); padding-left: .5rem; }
.kz-html h3, .kz-html h4, .kz-html h5 { font-size: 1.02rem; margin: 1rem 0 .4rem; font-weight: 700; }
.kz-html p { margin: .5rem 0; }
.kz-html ul, .kz-html ol { margin: .5rem 0 .5rem 1.3rem; }
.kz-html li { margin: .2rem 0; }
.kz-html blockquote { border-left: 3px solid #ccc; padding-left: .8rem; color: #555; margin: .6rem 0; }
.kz-html table { border-collapse: collapse; margin: .6rem 0; display: block; overflow-x: auto; max-width: 100%; }
.kz-html th, .kz-html td { border: 1px solid #ddd; padding: .35rem .55rem; font-size: .92rem; }
.kz-html a { color: var(--sky, #2a7fc0); text-decoration: underline; }
.kz-html hr { border: none; border-top: 1px solid #e5e5e5; margin: 1rem 0; }

/* v11: 視聴完了トグル */
.kz-done { min-width: 2rem; height: 2rem; line-height: 2rem; text-align: center; border-radius: 50%;
  border: 2px solid #cfd6dd; color: #9aa4ad; font-weight: 700; flex-shrink: 0; }
.kz-done.on { border-color: #35a86b; background: #35a86b; color: #fff; }
.kz-done-big { width: 100%; margin: 1rem 0 2rem; }
.kz-done-big.on { background: #35a86b; border-color: #35a86b; }

/* v13: アウトプット */
#kz-output textarea { border: 1px solid #d5dbe1; border-radius: 10px; padding: .6rem; font: inherit; }
.kz-op { border: 1px solid #e5e9ee; border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.kz-op.mine { border-color: #61a3d9; background: #f4f9fd; }
.kz-op-head { display: flex; justify-content: space-between; margin-bottom: .3rem; }

/* v14: シート記入説明動画 */
.sheet-video { margin: .6rem 0 1rem; border: 1px solid #e0e6ec; border-radius: 10px; background: #fff; }
.sheet-video summary { padding: .7rem .9rem; cursor: pointer; font-weight: 700; color: #1c2e69; }
.sheet-video video { width: 100%; border-radius: 0 0 10px 10px; display: block; background: #000; }

/* v15: 180日ロードマップ */
.rd-row { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #f0f2f5; }
.rd-row:last-child { border-bottom: none; }
.rd-row.done .rd-t { color: #9aa4ad; text-decoration: line-through; }
.rd-mid { flex: 1; min-width: 0; }
.rd-t { display: block; font-weight: 600; }
.rd-n { display: block; font-size: .82rem; color: #747371; margin-top: .15rem; }
.rd-over { color: #c0392b; }
.rd-link { font-size: 1.2rem; text-decoration: none; flex-shrink: 0; }

/* v16: 月次分析 */
.bn-grid { display: grid; grid-template-columns: minmax(90px,auto) 1fr 1fr 1fr; gap: .35rem; align-items: center; }
.bn-h { font-size: .78rem; color: #747371; text-align: center; }
.bn-l { font-size: .85rem; font-weight: 600; }
.bn-in { width: 100%; border: 1px solid #d5dbe1; border-radius: 8px; padding: .45rem .5rem; font: inherit; text-align: right; min-width: 0; }
.bn-calc { margin-top: .5rem; font-size: .88rem; color: #2d2d2d; background: #f4f9fd; border-radius: 8px; padding: .45rem .6rem; }

/* v17: 教材のサムネカードUI（UTAGE会員サイトの画像を移植） */
.kz-hero { background: var(--grad); color: #fff; }
.kz-hero .bar { background: rgba(255,255,255,.25); }
.kz-hero .bar i { background: #fff; }
.kz-ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }
.kz-ch-card {
  border: none; background: var(--card); border-radius: 16px; overflow: hidden; cursor: pointer;
  text-align: left; padding: 0; box-shadow: 0 4px 16px rgba(28,46,105,.08);
  transition: transform .12s ease, box-shadow .12s ease; display: flex; flex-direction: column;
}
.kz-ch-card:active { transform: scale(.97); }
.kz-ch-card:hover { box-shadow: 0 8px 24px rgba(28,46,105,.14); }
.kz-ch-imgwrap { position: relative; display: block; aspect-ratio: 16/9; background: var(--grad); }
.kz-ch-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kz-ch-pct {
  position: absolute; right: .45rem; bottom: .45rem; background: rgba(16,28,66,.72); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; backdrop-filter: blur(2px);
}
.kz-ch-pct.done { background: var(--ok); }
.kz-ch-body { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .7rem .7rem; }
.kz-ch-body .t { font-weight: 700; color: var(--navy); font-size: .88rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kz-ch-body .d { font-size: .74rem; color: var(--sub); }
.kz-ch-body .bar { height: 5px; background: #edf2fa; border-radius: 999px; overflow: hidden; }
.kz-ch-body .bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.kz-ch-banner { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; margin-bottom: .9rem;
  box-shadow: 0 6px 20px rgba(28,46,105,.12); display: block; }

/* ---- Lible（リブル）朝活の案内 ---- */
/* Libleブランド: オリーブグリーン #393e20 × 生成り。ナチュラル・静かなトーン */
.lible-badge { background: linear-gradient(135deg, #393e20 0%, #6b7444 100%); }
.lible-card .t { color: #393e20; }
.lible-hero {
  background: #f7f5ec; border: 1px solid #e4e0cf; border-radius: var(--radius);
  padding: 1.2rem 1rem 1rem; margin-bottom: .9rem;
}
.lible-hero h2 { color: #393e20; font-size: 1.15rem; line-height: 1.45; margin: .45rem 0 .5rem; }
.lible-hero p { font-size: .88rem; }
.lb-badge {
  display: inline-block; background: #393e20; color: #f7f5ec; font-size: .74rem; font-weight: 700;
  padding: .18rem .7rem; border-radius: 999px; letter-spacing: .05em;
}
.btn.lible-zoom {
  display: block; text-align: center; text-decoration: none; margin-top: .8rem;
  background: #393e20; color: #fff; border: none;
}
.btn.lible-zoom:active { opacity: .85; }
.lb-note { font-size: .76rem; color: var(--sub); margin-top: .45rem; text-align: center; }
.lible-quote {
  background: #faf9f3; border-left: 3px solid #6b7444; border-radius: 0 10px 10px 0;
  padding: .6rem .75rem; margin-top: .6rem;
}
.lible-quote p { font-size: .85rem; line-height: 1.65; }
.lible-quote .who { display: block; font-size: .74rem; color: var(--sub); margin-top: .25rem; text-align: right; }
.lible-plan { display: flex; flex-direction: column; gap: .7rem; margin-top: .6rem; }
.lible-plan .plan { border: 1.5px solid #e4e0cf; border-radius: 12px; padding: .8rem .85rem; }
.lible-plan .plan.paid { background: #f7f5ec; border-color: #6b7444; }
.lible-plan .pt { font-weight: 700; color: #393e20; font-size: .92rem; display: inline-block; }
.lible-plan .pp { float: right; font-weight: 700; color: #393e20; }
.lible-plan p { font-size: .82rem; margin-top: .3rem; }
.lible-plan ul { margin: .35rem 0 0 1.1rem; font-size: .82rem; }
.lible-plan li { margin-top: .2rem; }
.lible-plan .pt-sp {
  display: inline-block; background: #6b7444; color: #fff; font-size: .66rem; font-weight: 700;
  padding: .08rem .5rem; border-radius: 999px; margin-left: .3rem; vertical-align: 2px;
}

/* ---- v20: 自分のインサイト・データ ---- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.stat-card { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.stat-card.accent { border-color: var(--sky); background: #f4f9fe; }
.stat-card .sl { font-size: .7rem; color: var(--sub); font-weight: 600; }
.stat-card .sv { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin-top: .15rem; letter-spacing: .01em; }
.stat-card .ss { font-size: .68rem; color: var(--sub); margin-top: .1rem; }
.chart { width: 100%; height: auto; display: block; margin-top: .4rem; }
.chart .ax { font-size: 9px; fill: var(--sub); }
.chart .axb { font-size: 11px; font-weight: 700; fill: var(--navy); }
.chart-wrap { position: relative; }
.chart-tip { position: absolute; top: -2px; z-index: 2; background: var(--navy); color: #fff; border-radius: 8px; padding: .3rem .6rem; font-size: .76rem; line-height: 1.35; white-space: nowrap; box-shadow: 0 2px 8px rgba(28,46,105,.25); pointer-events: none; }
.chart-tip b { display: block; font-size: .72rem; opacity: .85; }
.chart-hint { font-size: .68rem; color: var(--sub); text-align: right; margin-top: .15rem; }
.mini-bars span.mb.on i { background: var(--navy); }
.mini-tip { font-size: .74rem; color: var(--navy); font-weight: 600; margin-top: .25rem; }
.legend { display: flex; gap: 1rem; font-size: .72rem; color: var(--sub); margin-top: .3rem; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: .3rem; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: .5rem; }
.kpi-tbl { border-collapse: collapse; font-size: .74rem; white-space: nowrap; min-width: 560px; }
.kpi-tbl th { font-weight: 600; color: var(--sub); border-bottom: 1.5px solid var(--line); padding: .35rem .5rem; text-align: right; }
.kpi-tbl td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: right; color: var(--ink, #24314f); }
.kpi-tbl th:first-child, .kpi-tbl td:first-child { text-align: left; font-weight: 600; }
.act-grid { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.act-card { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; }
.act-card .al { font-size: .78rem; font-weight: 700; color: var(--navy); }
.act-card .av { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-top: .1rem; }
.act-card .av small { font-size: .72rem; font-weight: 600; color: var(--sub); margin-left: .25rem; }
.act-card .as { font-size: .76rem; color: var(--sub); margin-top: .1rem; }
.mini-bars { display: flex; align-items: flex-end; gap: .45rem; height: 52px; margin-top: .5rem; }
.mini-bars span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.mini-bars i { display: block; width: 70%; max-width: 26px; background: var(--sky); border-radius: 3px 3px 0 0; }
.mini-bars b { font-size: .6rem; color: var(--sub); font-weight: 600; margin-top: .15rem; }
.output-item { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; margin-bottom: .6rem; }
.output-item.mine { border-color: var(--sky); background: #f4f9fe; }
.oi-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--navy); }
.oi-head span { font-size: .7rem; color: var(--sub); font-weight: 400; }
.oi-lesson { display: inline-block; font-size: .72rem; color: var(--sky); margin-top: .2rem; text-decoration: none; }
.oi-text { font-size: .85rem; line-height: 1.65; margin-top: .35rem; white-space: pre-wrap; word-break: break-word; }

/* ---- スケジュール・申込（v22） ---- */
.apply-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.apply-card {
  display: flex; align-items: center; gap: .7rem; background: var(--grad); color: #fff;
  border-radius: var(--radius); padding: .85rem .9rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(28,46,105,.22);
}
.apply-card:active { transform: scale(.985); }
.apply-card .ap-emoji { font-size: 1.4rem; }
.apply-card .ap-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.apply-card .ap-mid b { font-size: .95rem; }
.apply-card .ap-mid span { font-size: .74rem; opacity: .9; }
.apply-card .ap-arrow { font-size: 1.2rem; opacity: .8; }
.sc-day { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sc-day:last-child { border-bottom: none; }
.sc-day.today { background: #f0f6ff; border-radius: 10px; padding: .55rem .4rem; margin: 0 -.4rem; border-bottom: 1px solid var(--line); }
.sc-date { width: 3.3rem; flex-shrink: 0; text-align: center; padding-top: .1rem; }
.sc-date .d { display: block; font-weight: 700; font-size: .98rem; color: var(--navy); }
.sc-date .w { display: block; font-size: .7rem; color: var(--sub); }
.sc-date .wd0 { color: #d64550; }
.sc-date .wd6 { color: #3f7fc4; }
.sc-today { display: inline-block; background: var(--navy); color: #fff; font-size: .62rem; font-weight: 700; border-radius: 999px; padding: 0 .45rem; margin-top: .15rem; }
.sc-evs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .45rem; }
.sc-ev-main { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.sc-ev.has-detail .sc-ev-main { cursor: pointer; }
.sc-time { font-size: .8rem; font-weight: 700; color: var(--sky); }
.sc-name { font-size: .88rem; font-weight: 600; }
.sc-badge { font-size: .66rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem; white-space: nowrap; }
.sc-badge.c-study { background: #e8f0fe; color: #2c56b0; }
.sc-badge.c-work { background: #e7f6ee; color: #1f7a4d; }
.sc-badge.c-off { background: #fdeef0; color: #c2364a; }
.sc-badge.c-tensaku { background: #fff3e2; color: #a5620b; }
.sc-open { color: var(--sub); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.sc-detail { margin-top: .1rem; background: #f7fafd; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; }
.sc-body { font-size: .8rem; white-space: pre-wrap; color: var(--text); }

/* ---- マネタイズ実績（インサイト） ---- */
.mon-row { border-top: 1px solid var(--line); padding: .55rem 0 .5rem; }
.mon-row:first-of-type { border-top: none; }
.mon-head { display: flex; justify-content: space-between; align-items: baseline; }
.mon-head b { color: var(--navy); font-size: .88rem; }
.mon-total { font-weight: 700; color: var(--ok); font-size: 1rem; }
.mon-items { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.mon-items span { background: #f0f6f2; color: #2c6e4d; border-radius: 999px; padding: .1rem .55rem; font-size: .74rem; }

/* ---- ホーム 教材風サムネカード＋ロゴ（v23） ---- */
.hero-logo { display: block; height: 30px; width: auto; margin-bottom: .9rem; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }
.hm-card {
  /* buttonは中身が短いと縦中央寄せされ、行の高い方に合わせて伸びたカードの上に余白が出る → flex縦並びで上寄せ固定 */
  display: flex; flex-direction: column; text-align: left; border: none; padding: 0; background: var(--card);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 14px rgba(28,46,105,.08); font-family: inherit;
}
.hm-card:active { transform: scale(.97); }
.hm-card:hover { box-shadow: 0 8px 24px rgba(28,46,105,.14); }
.hm-thumb {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9; flex-shrink: 0; color: #fff;
  background-image:
    radial-gradient(circle at 85% -20%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%),
    radial-gradient(circle at -10% 120%, rgba(255,255,255,.14), rgba(255,255,255,0) 45%),
    var(--hm-grad, var(--grad));
}
.hm-thumb svg { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.hm-thumb.g-guide    { --hm-grad: linear-gradient(135deg, #1c2e69 0%, #61a3d9 100%); }
.hm-thumb.g-start    { --hm-grad: linear-gradient(135deg, #35589e 0%, #7cc0ea 100%); }
.hm-thumb.g-kyozai   { --hm-grad: linear-gradient(135deg, #16244f 0%, #3f6fb5 100%); }
.hm-thumb.g-sched    { --hm-grad: linear-gradient(135deg, #1f5d86 0%, #63c1cf 100%); }
.hm-thumb.g-lible    { --hm-grad: linear-gradient(135deg, #393e20 0%, #7d865b 100%); }
.hm-thumb.g-insights { --hm-grad: linear-gradient(135deg, #23446e 0%, #61a3d9 100%); }
.hm-thumb.g-settings { --hm-grad: linear-gradient(135deg, #4d5a77 0%, #8fa0bd 100%); }
.hm-thumb.g-discord  { --hm-grad: linear-gradient(135deg, #3c45a5 0%, #5865f2 100%); }
.hm-thumb.g-ai       { --hm-grad: linear-gradient(135deg, #34247a 0%, #7e6bd9 100%); }
a.hm-card { text-decoration: none; }
.hm-pct {
  position: absolute; right: .45rem; bottom: .45rem; background: rgba(16,28,66,.72);
  color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .1rem .5rem;
}
.hm-pct.done { background: var(--ok); }
.hm-body { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .7rem .7rem; }
.hm-body .t { font-weight: 700; color: var(--navy); font-size: .88rem; line-height: 1.35; }
.hm-body .d { font-size: .74rem; color: var(--sub); line-height: 1.45; }
.hm-body .bar { height: 5px; background: #edf2fa; border-radius: 999px; overflow: hidden; }
.hm-body .bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ---- 固定ボトムタブバー（v24） ---- */
/* ---- タブバー（LINE型・2026-09-07 たいが指示「LINEみたいなUI/UX」で4アプリ共通化） ----
   白ベタ＋ヘアライン・ベタ塗りアイコン26px＋ラベル10px・アクティブは色だけ変わる・未読は赤バッジ（数字）・
   同じタブの再タップで先頭へ戻る。高さ50px＋セーフエリア（最下部に貼り付け）。 */
.tabbar {
  /* 画面の一番下（ホームバーの奥）まで背景を貼り付け、中身は下辺に寄せる（2026-09-07 たいが「最下部に固定・少し上になってるのが気になる」） */
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; margin: 0;
  display: flex; align-items: stretch;
  height: calc(50px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  /* LINEの「水っぽいぼわー」＝半透明の白＋すりガラス。中身がバーの下を通り抜けて透ける */
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-top: .5px solid rgba(0,0,0,.09);
}
.tabbar[hidden] { display: none; }
body.kb-open .tabbar { display: none; }
.tabbar button {
  flex: 1; min-width: 0; border: none; background: none; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  padding: 0 0 6px; margin: 0; color: #9ca1a9; position: relative;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform .12s ease, color .12s ease;
}
.tabbar button:active { transform: scale(.9); }
.tabbar button .ic { position: relative; width: 26px; height: 26px; display: block; }
.tabbar button svg { width: 26px; height: 26px; display: block; }
.tabbar button span { font-size: 10px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; line-height: 1; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; text-align: center; }
.tabbar button.on { color: var(--navy); }
.tabbar .dot {
  position: absolute; top: -5px; left: 16px;
  min-width: 18px; height: 18px; border-radius: 9px; box-sizing: border-box;
  background: #ff334b; color: #fff; font-style: normal;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 5px;
  box-shadow: 0 0 0 2px #fff;
}
.tabbar .dot:empty { min-width: 10px; height: 10px; width: 10px; top: -2px; left: 18px; padding: 0; border-radius: 5px; }

/* ---- 動くガラス玉（2026-09-07 たいが指示「水っぽいやつが動くようにしたい」＝LINE iOS26のLiquid Glass型）
   選んだタブの背面にガラスの丸を置き、タブを切り替えると水みたいに横へ伸びながら滑る（バネで少し行き過ぎて戻る）。
   中では光の反射がゆっくり揺れる。位置は --i（選択中のタブ番号）・--n（タブ数）で決まる。 */
.tabbar { --n: 5; --i: 0; overflow: hidden; } /* 玉のバネの行き過ぎ・伸びがバーの外へ出ない */
.tabbar button { z-index: 1; }
.tabbar .glass {
  position: absolute; z-index: 0; top: 3px; bottom: calc(3px + env(safe-area-inset-bottom, 0px));
  /* 幅はボタンと同じ 100%/n（左右の余白は ::before の inset で作る）＝玉の中心とボタンの中心が常に一致 */
  left: 0; width: calc(100% / var(--n));
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .55s cubic-bezier(.34, 1.4, .4, 1);
  pointer-events: none;
}
.tabbar .glass[hidden] { display: none; }
.tabbar .glass::before {
  content: ''; position: absolute; inset: 0 7px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.28));
  -webkit-backdrop-filter: blur(6px) saturate(160%) brightness(1.06); backdrop-filter: blur(6px) saturate(160%) brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.05), inset 0 0 0 .5px rgba(255,255,255,.6), 0 6px 16px rgba(0,0,0,.08);
}
/* 光の反射＝斜めのハイライトが左右にゆっくり揺れる */
.tabbar .glass::after {
  content: ''; position: absolute; inset: 0 7px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(60% 80% at 30% 20%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
  animation: glass-shine 3.2s ease-in-out infinite alternate;
}
@keyframes glass-shine { from { transform: translateX(-14%) } to { transform: translateX(14%) } }
/* 移動中は水滴みたいに横へ伸びて、着地で戻る */
.tabbar .glass.move::before { animation: glass-stretch .55s ease-out; }
@keyframes glass-stretch { 0% { transform: scaleX(1) } 35% { transform: scaleX(1.16) scaleY(.92) } 100% { transform: scaleX(1) } }
@media (prefers-reduced-motion: reduce) { .tabbar .glass { transition: none; } .tabbar .glass::after, .tabbar .glass.move::before { animation: none; } }

/* ---- アプリの器（2026-09-07 たいが指示「下部から固定して絶対に動かないように」）
   ページ全体をスクロールさせず #app の中だけをスクロールする。タブバーは #app の外の兄弟なので、
   引っ張り戻り（ラバーバンド）・アドレスバーの伸縮・慣性スクロールのどれでも一切動かない。 */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
#app { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
body.has-tabbar #app { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }

/* ---- ホーム アイキャッチ実画像（v26） ---- */
.hm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mon-detail { font-size: .78rem; color: var(--sub); margin-top: .2rem; white-space: pre-wrap; }

/* ---- 月報提出 ---- */
.hm-thumb.g-geppo { --hm-grad: linear-gradient(135deg, #7a5a12 0%, #d4a24e 100%); }
.geppo-status {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: .9rem; font-size: .92rem;
}
.geppo-status span { display: block; font-size: .82rem; color: var(--sub); margin-top: .25rem; }
.geppo-status.ok { border-color: #bfe3cd; background: #f2faf5; }
.geppo-status.warn { border-color: #f0c9a0; background: #fdf6ec; }
.geppo-status.warn b { color: #a05c11; }
.geppo-status.warn span { color: #7a5a12; }
.geppo-status.lock { border-color: #d5dbe8; background: #f6f8fb; color: var(--text); }

/* アーカイブ部屋の月タブ（横スクロールのチップ・v29） */
.arc-months { display: flex; gap: .4rem; overflow-x: auto; padding: .1rem 0 .7rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.arc-months::-webkit-scrollbar { display: none; }
.arc-m {
  flex-shrink: 0; border: 1.5px solid #dbe4f2; background: #fff; color: var(--navy);
  border-radius: 999px; padding: .45rem .85rem; font-size: .84rem; font-weight: 700;
}
.arc-m span { font-weight: 400; font-size: .72rem; color: var(--sub); margin-left: .25rem; }
.arc-m.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.arc-m.on span { color: #c6d3ef; }

/* ---- スケジュール カレンダー表示 ---- */
.sc-toggle { display: flex; gap: .45rem; margin-bottom: .7rem; }
.sc-toggle button {
  flex: 1; padding: .5rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 700; color: var(--sub); font-size: .86rem;
}
.sc-toggle button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin: .1rem 0 .5rem; }
.cal-head b { color: var(--navy); font-size: 1rem; }
.cal-nav { width: 36px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 1rem; color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wds { margin-bottom: 3px; }
.cal-wd { text-align: center; font-size: .68rem; color: var(--sub); font-weight: 600; }
.cal-wd.sun { color: #c2564f; } .cal-wd.sat { color: #3d7fc2; }
.cal-cell {
  min-height: 44px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  padding: .18rem 0 .1rem; display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.cal-cell.out { background: transparent; border-color: transparent; }
.cal-cell.today { border-color: var(--sky); background: #eef6fd; }
.cal-cell.sel { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.cal-cell .dn { font-size: .78rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.cal-cell.sun .dn { color: #c2564f; } .cal-cell.sat .dn { color: #3d7fc2; }
.cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 90%; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--sub); }
.cal-dot.c-study { background: #4a7ddb; }
.cal-dot.c-work { background: #2fa06a; }
.cal-dot.c-tensaku { background: #d98b2b; }
.cal-dot.c-off { background: #c86bb4; }
.sc-cal-add { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.sc-cal-add .btn.small { text-decoration: none; }

/* v51: メンバー本人のインスタアイコン表示 */
.stu-row .avatar { position: relative; overflow: hidden; }
.mem-ava { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.op-who { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.op-ava { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #edf2fa;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; overflow: hidden; }

/* v55: アーカイブ箱の「すべて見る」 */
.kz-more summary { padding: .5rem 0; cursor: pointer; font-weight: 700; color: var(--sky); font-size: .9rem; }

/* ---------- お知らせ＋プッシュ通知（v32 2026-09-01） ---------- */
.tabbar button { position: relative; }
/* .tab-dot は LINE型タブバーの .dot（数字バッジ）へ統合（2026-09-07） */
.bell-n {
  display: inline-block; margin-left: .35em; padding: 0 .5em;
  background: #e5484d; color: #fff; border-radius: 999px;
  font-size: .72em; font-style: normal; font-weight: 700; line-height: 1.6;
}
.notice-item {
  padding: .7rem .2rem; border-bottom: 1px solid rgba(0,0,0,.07);
}
.notice-item:last-child { border-bottom: none; }
.notice-item.unread .nt-head b::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: #e5484d; margin-right: .45em; vertical-align: .1em;
}
.nt-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.nt-head b { font-size: .92rem; line-height: 1.5; }
.nt-date { font-size: .72rem; color: var(--muted, #888); white-space: nowrap; flex-shrink: 0; }
.nt-date .nt-del { color: #e5484d; margin-left: .6em; text-decoration: none; }
.nt-body { font-size: .84rem; color: #444; line-height: 1.7; margin-top: .25rem; white-space: pre-wrap; }
.nt-link { display: inline-block; margin-top: .35rem; font-size: .84rem; font-weight: 600; color: var(--navy, #1c2e69); text-decoration: none; }
.push-nudge { position: relative; padding-right: 2.4rem; }
.push-nudge .nudge-x {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  font-style: normal; font-size: .85rem; color: #999; padding: .3rem;
}

/* ---------- 初回通知設定オーバーレイ（v33 2026-09-01） ---------- */
.pob-wrap {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(16, 24, 52, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.pob-card {
  background: #fff; border-radius: 18px; padding: 1.8rem 1.4rem;
  max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
}
.pob-emoji { font-size: 2.6rem; margin-bottom: .4rem; }
.pob-card h2 { font-size: 1.15rem; color: var(--navy, #1c2e69); margin: 0 0 .6rem; }
.pob-card p { font-size: .85rem; color: #555; line-height: 1.8; margin: 0 0 1.1rem; }
.pob-card .btn { width: 100%; }
.pob-steps {
  text-align: left; font-size: .85rem; line-height: 1.9; color: #444;
  margin: 0 0 1.1rem; padding-left: 1.4rem;
}
.pob-later {
  display: inline-block; margin-top: .9rem; font-size: .82rem; color: #999; text-decoration: none;
}
.pob-card .form-error { margin-top: .5rem; font-size: .8rem; }


/* チャットサポート 運営プレビューカード（v35） */
.hm-thumb.g-chat { --hm-grad: linear-gradient(135deg, #1c2e69 0%, #61a3d9 100%); }

/* ---------- チャットサポート（v35 2026-09-01） ---------- */
.ch-row {
  display: block; width: 100%; text-align: left; background: #fff;
  border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  padding: .7rem .8rem; margin-bottom: .55rem; cursor: pointer; position: relative;
}
.ch-top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ch-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; flex-shrink: 0; }
.ch-cat {
  font-size: .68rem; font-weight: 700; color: var(--navy, #1c2e69);
  background: rgba(28,46,105,.08); border-radius: 999px; padding: .1rem .55rem;
}
.ch-st { font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .1rem .55rem; }
.ch-st.wait { color: #9a6700; background: #fff3d6; }
.ch-st.wait.late { color: #fff; background: #e5484d; }
.ch-st.ans { color: #1c6b3a; background: #e2f5e9; }
.ch-st.done { color: #666; background: #eee; }
.ch-date { font-size: .68rem; color: #999; margin-left: auto; }
.ch-title { display: block; font-size: .92rem; font-weight: 700; margin-top: .3rem; line-height: 1.5; }
.ch-meta { display: block; font-size: .74rem; color: #888; margin-top: .15rem; }
.ch-post {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  padding: .7rem .8rem; margin-bottom: .55rem;
}
.ch-post.staff { border-left: 4px solid var(--navy, #1c2e69); background: #f6f8fd; }
.ch-post-head { font-size: .78rem; font-weight: 700; display: flex; justify-content: space-between; gap: .6rem; }
.ch-post-head span { font-weight: 400; color: #999; font-size: .7rem; }
.ch-post-body { font-size: .88rem; line-height: 1.8; margin-top: .3rem; white-space: pre-wrap; word-break: break-word; }
.ch-draft {
  background: #fffaf0; border: 1.5px dashed #d4a24e; border-radius: 12px;
  padding: .7rem .8rem; margin-bottom: .7rem;
}
.ch-draft-head { font-size: .78rem; font-weight: 700; color: #9a6700; margin-bottom: .3rem; }
.ch-assign-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; padding: .3rem 0; font-size: .85rem;
}
.ch-assign-row select { max-width: 55%; }
.ch-stats-tbl { width: 100%; font-size: .8rem; border-collapse: collapse; margin-top: .6rem; }
.ch-stats-tbl th, .ch-stats-tbl td { padding: .3rem .4rem; border-bottom: 1px solid rgba(0,0,0,.07); text-align: left; }
.btn.rec-on { background: #e5484d; }

/* チャット 新規質問のURL欄（v39） */
.chn-url-row { margin-bottom: .55rem; }
.chn-url-row label { display: block; font-size: .76rem; font-weight: 600; color: #555; margin-bottom: .2rem; }
.chn-url-row input { width: 100%; }

/* 課題提出のシートプレビュー（v40） */
.kd-preview { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: #fafbfd; }
.kd-head {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .55rem .7rem; font-size: .82rem; font-weight: 700;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.kd-body { max-height: 300px; overflow-y: auto; padding: .5rem .7rem; }
.kd-item { padding: .3rem 0; border-bottom: 1px dashed rgba(0,0,0,.06); }
.kd-item:last-child { border-bottom: none; }
.kd-q { display: block; font-size: .72rem; font-weight: 600; color: #777; }
.kd-a { display: block; font-size: .82rem; line-height: 1.6; word-break: break-word; }

/* 競合リサーチ 個別行（v41・課題プレビュー内） */
.kd-comp-row {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .45rem .2rem; border-bottom: 1px dashed rgba(0,0,0,.08);
  background: none; text-align: left; cursor: pointer;
}
.kd-comp-row:last-child { border-bottom: none; }
.kd-comp-row .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #e8ecf5;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--navy, #1c2e69);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.kd-comp-row .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kd-comp-row .mid { flex: 1; min-width: 0; }
.kd-comp-row .mid b { display: block; font-size: .84rem; }
.kd-comp-row .mid .em { display: block; font-size: .7rem; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-comp-row .pct { color: #bbb; }

/* 競合リサーチ アコーディオン（v42） */
details.kd-comp { border-bottom: 1px dashed rgba(0,0,0,.08); }
details.kd-comp:last-child { border-bottom: none; }
details.kd-comp summary {
  display: flex; align-items: center; gap: .6rem; padding: .45rem .2rem;
  cursor: pointer; list-style: none;
}
details.kd-comp summary::-webkit-details-marker { display: none; }
details.kd-comp summary .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #e8ecf5;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--navy, #1c2e69);
  position: relative; overflow: hidden; flex-shrink: 0;
}
details.kd-comp summary .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
details.kd-comp summary .mid { flex: 1; min-width: 0; }
details.kd-comp summary .mid b { display: block; font-size: .84rem; }
details.kd-comp summary .mid .em { display: block; font-size: .7rem; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-arrow { color: #bbb; transition: transform .15s; }
details.kd-comp[open] .kd-arrow { transform: rotate(180deg); }
.kd-comp-detail { padding: .2rem .2rem .6rem 2.6rem; }

/* ---- Fanfare AI（v47） ---- */
/* 入力欄はタブバーの真上に固定。会話はページ全体でスクロール（入力欄ぶんの余白を下に確保） */
.ai-page{padding-bottom:calc(130px + env(safe-area-inset-bottom))}
body.has-tabbar .ai-page{padding-bottom:calc(50px + 130px + env(safe-area-inset-bottom))}
.ai-hero{display:flex;gap:12px;align-items:center;background:linear-gradient(135deg,#1c2e69,#61a3d9);color:#fff;border-radius:14px;padding:14px 16px;margin:10px 0}
.ai-ico{font-size:32px;line-height:1}.ai-name{font-weight:700;font-size:16px}.ai-intro{font-size:12px;opacity:.9;margin-top:2px}
.ai-quota{font-size:12px;color:#556;margin:4px 2px 8px}
.ai-thread{display:flex;flex-direction:column;gap:12px;min-height:40vh}
.ai-empty{color:#556;font-size:13px;line-height:1.7;padding:14px 12px;background:#f6f7fb;border-radius:14px}
.ai-empty-t{margin-bottom:10px}
.ai-chips{display:flex;flex-wrap:wrap;gap:6px}
.ai-chip{background:#fff;border:1px solid #d5d9e4;border-radius:999px;padding:6px 11px;font-size:12.5px;color:#1c2e69;text-align:left;line-height:1.3}
.ai-chip:active{background:#eef3fb}
.ai-msg{display:flex}.ai-msg.me{justify-content:flex-end}.ai-msg .b{max-width:86%;padding:9px 12px;border-radius:16px;font-size:14px;line-height:1.75;white-space:pre-wrap;word-break:break-word}
.ai-msg.me .b{background:#1c2e69;color:#fff;border-bottom-right-radius:4px}
.ai-msg.ai{flex-direction:column;align-items:flex-start}.ai-msg.ai .b{background:#f6f7fb;border-bottom-left-radius:4px}
.ai-dots{color:#889}
.ai-srcs{margin:6px 0 0 4px;display:flex;flex-direction:column;gap:4px;max-width:88%}
.ai-srcs-t{font-size:11px;color:#778;margin-bottom:2px}
.ai-src{font-size:12px;color:#1c2e69;background:#eef3fb;border-radius:8px;padding:6px 8px;text-decoration:none;line-height:1.4}
.ai-compose{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:640px;box-sizing:border-box;bottom:env(safe-area-inset-bottom);z-index:40;background:#fff;border-top:1px solid #e3e6ee;padding:6px 12px 8px;display:flex;flex-direction:column;gap:6px}
.ai-compose-row{display:flex;gap:8px;align-items:flex-end}
.ai-attach{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11.5px;color:#667}
.ai-attach-t{margin-right:2px}
.ai-att{border:1px solid #d5d9e4;background:#fff;border-radius:999px;padding:3px 10px;font-size:12px;color:#334}
.ai-att.on{background:#1c2e69;border-color:#1c2e69;color:#fff}
.ai-attach-edit{margin-left:auto;color:#1c2e69;text-decoration:none;font-size:11.5px}
.ai-att-note{font-size:11px;opacity:.85;margin-top:4px}
@media (min-width:700px){.ai-compose{border:1px solid #e3e6ee;border-bottom:0;border-radius:14px 14px 0 0;box-shadow:0 -4px 16px rgba(28,46,105,.06)}}
body.has-tabbar .ai-compose{bottom:calc(50px + env(safe-area-inset-bottom))}
.ai-compose textarea{flex:1;border:1px solid #d5d9e4;border-radius:18px;padding:9px 13px;font-size:15px;line-height:1.4;resize:none;max-height:120px;background:#fff;min-height:38px}
.ai-send{width:38px;height:38px;border-radius:50%;border:0;background:#1c2e69;color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.ai-send:disabled{opacity:.45}.ai-send svg{width:20px;height:20px}
.ai-cat{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:6px 0 10px}
.ai-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#fff;border:1px solid #e3e6ee;border-radius:12px;padding:12px;text-align:left}
.ai-card .i{font-size:22px}.ai-card .n{font-weight:700;font-size:13px}.ai-card .d{font-size:11px;color:#667;line-height:1.4}

/* ---- Fanfare AI v48: 一覧・利用履歴 ---- */
.ai-card{position:relative}.ai-card .c{position:absolute;top:8px;right:10px;font-size:11px;color:#1c2e69;background:#eef3fb;border-radius:999px;padding:2px 8px}
.ai-card.ext{text-decoration:none;color:inherit;border-style:dashed}
.ai-usage .ai-cnts{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.ai-cnt{font-size:12px;background:#f6f7fb;border-radius:999px;padding:4px 10px}.ai-cnt b{margin-left:2px}
.ai-hists{display:flex;flex-direction:column;gap:6px}
.ai-hist{display:flex;justify-content:space-between;gap:8px;align-items:baseline;text-align:left;background:#fff;border:1px solid #e3e6ee;border-radius:10px;padding:8px 10px;font-size:13px;line-height:1.4}
.ai-hist .q{flex:1}.ai-hist .t{font-size:11px;color:#889;white-space:nowrap}
.ai-hist-a{background:#f6f7fb;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.7;white-space:pre-wrap;margin:-2px 0 4px}
.ai-table{width:100%;border-collapse:collapse;font-size:13px}.ai-table th{text-align:left;color:#778;font-weight:600;font-size:11px;padding:4px 6px;border-bottom:1px solid #e3e6ee}.ai-table td{padding:6px;border-bottom:1px solid #f0f2f7}
.ai-bars{display:flex;gap:4px;align-items:flex-end;overflow-x:auto;padding:6px 0}
.ai-bar{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:26px}.ai-bar i{display:block;width:16px;background:#61a3d9;border-radius:3px 3px 0 0;min-height:2px}.ai-bar span{font-size:9px;color:#889}.ai-bar b{font-size:10px}
.ai-recent{font-size:13px;line-height:1.5;padding:6px 0;border-bottom:1px solid #f0f2f7}.ai-recent .who{font-weight:600}.ai-recent .t{font-size:11px;color:#889;margin-left:4px}

/* ---- Fanfare AI: いつもの口調 ---- */
.ai-tone{background:#fff;border:1px solid #e3e6ee;border-radius:12px;margin:6px 0 10px;overflow:hidden}
.ai-tone-head{width:100%;display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fff;border:0;text-align:left;font-size:13px;font-weight:700;color:#1c2e69}
.ai-tone-head .st{font-weight:400;color:#667;font-size:12px;flex:1}.ai-tone-head .chev{color:#889}
.ai-tone-form{padding:0 12px 12px;display:flex;flex-direction:column;gap:6px}
.ai-tone-ta{width:100%;box-sizing:border-box;border:1px solid #d5d9e4;border-radius:10px;padding:8px 10px;font-size:14px;line-height:1.5;resize:vertical}
.ai-tone-actions{display:flex;align-items:center;gap:10px;margin-top:2px}

/* ---- Fanfare AI: アイキャッチ ---- */
.ai-card.has-img{padding:0;overflow:hidden;gap:0}
.ai-card-img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.ai-card.has-img .d{padding:8px 10px 10px;font-size:11.5px;color:#556;line-height:1.45}
.ai-card.has-img .c{top:6px;right:6px}
.ai-tool-head{margin:8px 0 10px}
.ai-tool-img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px}
.ai-intro-line{font-size:12.5px;color:#556;margin:8px 4px 0;line-height:1.5}
@media (max-width:420px){.ai-cat{grid-template-columns:1fr 1fr}}

.ai-chip.on{background:#1c2e69;border-color:#1c2e69;color:#fff}
.req{font-size:.7rem;color:#c0392b;font-weight:600;margin-left:4px}

/* ---- v57: お知らせのリアクション／スケジュールの講師アイコン ---- */
.nt-reacts{margin-top:8px}
.nt-react-btns{display:flex;gap:6px;flex-wrap:wrap}
.nt-react{border:1px solid #e3e6ee;background:#fff;border-radius:999px;padding:4px 10px;font-size:15px;line-height:1;display:inline-flex;align-items:center;gap:4px}
.nt-react b{font-size:12px;color:#1c2e69}.nt-react.on{background:#eef3fb;border-color:#61a3d9}
.nt-faces{display:flex;align-items:center;margin-top:6px;gap:0}
.nt-face,.sc-face{position:relative;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#1c2e69,#61a3d9);color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border:2px solid #fff;box-shadow:0 0 0 1px #e3e6ee;flex:none}
.nt-face img,.sc-face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nt-face i,.sc-face i{font-style:normal}
.nt-face+.nt-face{margin-left:-7px}
.nt-more{font-size:11px;color:#667;margin-left:6px}.nt-names{font-size:11px;color:#667;margin-left:8px}
.sc-face{width:26px;height:26px;margin-right:2px}.sc-face+.sc-face{margin-left:-8px}

/* ---- v58: 講師ホームのメニュー（3つを縦に・幅を揃える） ---- */
.hero-menu{display:flex;flex-direction:column;gap:8px;margin-top:16px;max-width:360px}
.hm-btn{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.38);color:#fff;border-radius:12px;padding:12px 14px;font-size:14.5px;font-weight:600;line-height:1;backdrop-filter:blur(4px)}
.hm-btn .i{font-size:16px;width:20px;text-align:center}
.hm-btn .ar{margin-left:auto;opacity:.7;font-size:18px;line-height:1}
.hm-btn .bell-n{position:static;margin-left:6px}
.hm-btn:active{background:rgba(255,255,255,.24)}

/* ---- Fanfare AI: 回答の評価（v63・2026-09-06）。👍は理由なし・👎だけ理由を聞く ---- */
.ai-rate{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 2px 4px;max-width:88%}
.ai-rate-q{font-size:11px;color:#778;margin-right:2px}
.ai-rate-b{font-size:12px;background:#fff;border:1px solid #d5d9e4;color:#334;border-radius:999px;padding:5px 10px;line-height:1.2}
.ai-rate-b.up:hover{border-color:#61a3d9;background:#eef3fb}
.ai-rate-b.down:hover{border-color:#e0a48a;background:#fdf3ee}
.ai-rate.done{font-size:12px;color:#667;background:#f6f7fb;border-radius:999px;padding:5px 10px;gap:8px;width:fit-content;max-width:100%}
.ai-rate.done.bad{background:#fdf3ee;color:#8a5a3c}
.ai-rate-undo{background:none;border:0;color:#889;font-size:11px;text-decoration:underline;padding:0}
.ai-rate.open{background:#fdf3ee;border-radius:12px;padding:10px 12px;max-width:100%}
.ai-rate-form{width:100%}
.ai-rate-form{display:flex;flex-direction:column;gap:8px;margin-top:2px}
.ai-rate-actions .btn{flex:0 0 auto}
.ai-rate-msg{font-size:13px;line-height:1.6;color:#1c2e69;margin:0;font-weight:600}
.ai-rate-tags{display:flex;flex-wrap:wrap;gap:6px}
.ai-rate-tag{font-size:12px;background:#fff;border:1px solid #e0cfc4;color:#7a5c48;border-radius:999px;padding:5px 10px;line-height:1.2}
.ai-rate-tag.on{background:#1c2e69;border-color:#1c2e69;color:#fff}
.ai-rate-ta{width:100%;box-sizing:border-box;border:1px solid #e0cfc4;border-radius:10px;padding:8px 10px;font-size:14px;line-height:1.5;resize:vertical;background:#fff}
.ai-rate-actions{display:flex;align-items:center;gap:8px}
.ai-rmark{margin-right:4px}
.ai-why{margin-top:8px;background:#fdf3ee;border-radius:10px;padding:8px 10px}
.ai-why>b{font-size:11px;color:#8a5a3c;display:block;margin-bottom:4px}
.ai-why-tags{display:flex;flex-wrap:wrap;gap:4px}
.ai-why-tags span{font-size:11px;background:#fff;border:1px solid #e0cfc4;color:#7a5c48;border-radius:999px;padding:3px 8px}
.ai-why-txt{font-size:13px;line-height:1.6;color:#443;margin-top:4px;white-space:pre-wrap}
.ai-table .bad{color:#c0533a}
.ai-bad{border-bottom:1px solid #f0f2f7;padding:8px 0}
.ai-bad-h{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-size:12px}
.ai-bad-h .who{font-weight:600}.ai-bad-h .tool{color:#667}.ai-bad-h .t{color:#889;font-size:11px;margin-left:auto}
.ai-bad-q{font-size:13px;line-height:1.5;margin:4px 0}
.ai-bad-more{background:none;border:0;color:#1c2e69;font-size:11px;text-decoration:underline;padding:4px 0}
.ai-bad-a{background:#f6f7fb;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.7;white-space:pre-wrap}

/* ---- 耳学習モード（v66・2026-09-07） ---- */
.ear-toggle { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; margin-bottom: .8rem; cursor: pointer; user-select: none; }
.ear-toggle.on { border-color: var(--sky); background: #eaf2fb; }
.ear-toggle .ic { font-size: 1.5rem; }
.ear-toggle .mid { flex: 1; min-width: 0; }
.ear-toggle .t { font-weight: 700; color: var(--navy); display: block; }
.ear-toggle .d { font-size: .76rem; color: var(--sub); display: block; line-height: 1.4; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #cfd6e3; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ear-toggle.on .switch { background: var(--navy); }
.ear-toggle.on .switch::after { left: 23px; }
.ear-resume { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: var(--navy); color: #fff; border: none; border-radius: 12px; padding: .7rem .9rem; margin-bottom: .9rem; cursor: pointer; }
.ear-resume .t { font-weight: 700; font-size: .9rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ear-resume .d { font-size: .74rem; opacity: .85; display: block; }
.ear-resume .mid { flex: 1; min-width: 0; }
.ear-badge { font-size: .66rem; color: var(--navy); background: rgba(97,163,217,.18); border-radius: 999px; padding: .05rem .4rem; margin-left: .3rem; vertical-align: middle; font-weight: 600; }
.sheet-card.ear-playing { border-color: var(--sky); background: #eaf2fb; }
.sheet-card .ear-play { flex: none; border: none; background: var(--navy); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sheet-card .ear-play svg { width: 22px; height: 22px; fill: currentColor; }
.ear-chbtn { display: inline-flex; align-items: center; gap: .35rem; background: var(--navy); color: #fff; border: none; border-radius: 999px; padding: .45rem .9rem; font-size: .82rem; font-weight: 700; margin: 0 0 .7rem; cursor: pointer; }
.ear-chbtn.secondary { background: #edf2fa; color: var(--navy); }
.earbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; background: var(--navy); color: #fff; padding: .55rem .9rem .6rem; box-shadow: 0 -6px 20px rgba(28,46,105,.3); transform: translateZ(0); font-family: inherit; }
body.has-tabbar .earbar { bottom: calc(50px + env(safe-area-inset-bottom)); }
body:not(.has-tabbar) .earbar { padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); }
.earbar[hidden], body.kb-open .earbar { display: none; }
.earbar .row1 { display: flex; align-items: center; gap: .5rem; }
.earbar .info { flex: 1; min-width: 0; }
.earbar .info .t { font-size: .92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.earbar .info .d { font-size: .72rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.earbar .ib { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
.earbar .ib:active { background: rgba(255,255,255,.25); }
.earbar .ib svg { width: 24px; height: 24px; fill: currentColor; }
.earbar .ib.close { background: none; opacity: .75; }
.earbar .prog { height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; margin: .1rem 0 0; }
.earbar .prog .track { height: 5px; width: 100%; background: rgba(255,255,255,.22); border-radius: 999px; position: relative; }
.earbar .prog .track i { display: block; height: 100%; background: var(--sky); border-radius: 999px; width: 0; position: relative; }
.earbar .prog .track i::after { content: ''; position: absolute; right: -7px; top: -4.5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.earbar .times { display: flex; justify-content: space-between; font-size: .72rem; opacity: .8; font-variant-numeric: tabular-nums; margin: -.15rem 0 .2rem; }
.earbar .row2 { display: flex; align-items: center; justify-content: center; gap: .35rem; }
.earbar .row2 .ib { width: 52px; height: 52px; background: none; }
.earbar .row2 .ib svg { width: 30px; height: 30px; }
.earbar .row2 .ib.skip svg { width: 34px; height: 34px; }
.earbar .row2 .ib.skip svg text { font-size: 7.5px; font-weight: 700; fill: currentColor; font-family: inherit; }
.earbar .ib.play { width: 64px; height: 64px; background: #fff; color: var(--navy); margin: 0 .3rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.earbar .ib.play:active { background: #e8eef8; }
.earbar .ib.play svg { width: 34px; height: 34px; }
.earbar .row3 { display: flex; justify-content: center; gap: .5rem; margin-top: .35rem; }
.earbar .row3 #ear-speed { min-width: 72px; }
.earbar .chip { height: 42px; min-width: 0; padding: 0 .85rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: none; color: #fff; font-size: .86rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; cursor: pointer; -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums; }
.earbar .chip svg { width: 18px; height: 18px; fill: currentColor; }
.earbar .chip.on { background: #fff; color: var(--navy); border-color: #fff; }
.earbar .chip.off { opacity: .7; }
body.has-earbar #app { padding-bottom: calc(50px + 236px + env(safe-area-inset-bottom)) !important; }

/* ---- v68 (2026-09-07): 上級者・ゴールドのランク別ホーム。たいが指示「ゴージャスに・上級者は紫・ゴールドは金」 ---- */
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero.tier-advanced {
  background: #2a1454;
  background-image:
    radial-gradient(120% 90% at 100% 0%, rgba(196,160,255,.55) 0%, rgba(196,160,255,0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(120,64,214,.7) 0%, rgba(120,64,214,0) 60%),
    linear-gradient(135deg, #23103f 0%, #4a1f9a 48%, #7b3fe0 100%);
  border-bottom: 3px solid #d9c6ff;
}
.hero.tier-advanced .hero-fx {
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 78% 14%, #fff 60%, transparent 62%),
    radial-gradient(2.5px 2.5px at 88% 60%, #e9dcff 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 34% 78%, #fff 60%, transparent 62%),
    radial-gradient(2px 2px at 58% 40%, #d9c6ff 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 20% 55%, #fff 60%, transparent 62%),
    radial-gradient(3px 3px at 66% 86%, rgba(255,255,255,.8) 60%, transparent 62%);
  animation: tierTwinkle 3.6s ease-in-out infinite;
}
.hero.tier-gold {
  background: #3b2606;
  background-image:
    radial-gradient(110% 80% at 100% 0%, rgba(255,232,160,.55) 0%, rgba(255,232,160,0) 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(120,72,0,.9) 0%, rgba(120,72,0,0) 60%),
    linear-gradient(135deg, #2d1a03 0%, #8a5a00 38%, #d9a93f 62%, #f1d27a 74%, #8a5a00 100%);
  border-bottom: 3px solid #f7e2a0;
}
.hero.tier-gold .hero-fx {
  background-image:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 46%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.28) 54%, transparent 62%),
    radial-gradient(2px 2px at 14% 26%, #fff8dc 60%, transparent 62%),
    radial-gradient(2.5px 2.5px at 82% 18%, #fff 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 62% 66%, #fff3c4 60%, transparent 62%),
    radial-gradient(3px 3px at 30% 84%, rgba(255,255,255,.85) 60%, transparent 62%),
    radial-gradient(1.5px 1.5px at 90% 78%, #fff 60%, transparent 62%);
  background-size: 260% 100%, auto, auto, auto, auto, auto;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat;
  animation: tierSheen 4.8s ease-in-out infinite;
}
.hero.tier-gold .hello, .hero.tier-gold .hero-tier-sub { color: #fff3c4; }
.hero.tier-gold h1, .hero.tier-advanced h1 { text-shadow: 0 1px 10px rgba(0,0,0,.28); }
.hero-tier-sub { font-size: .78rem; opacity: .92; margin-top: .3rem; letter-spacing: .02em; }
@keyframes tierTwinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes tierSheen { 0% { background-position: 120% 0, 0 0, 0 0, 0 0, 0 0, 0 0; } 55%,100% { background-position: -140% 0, 0 0, 0 0, 0 0, 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero-fx { animation: none !important; } }

/* ランクのチップ（名前の横） */
.tier-chip { display: inline-flex; align-items: center; gap: .25em; font-size: .68rem; font-weight: 700; line-height: 1.5; padding: .12rem .55rem; border-radius: 999px; vertical-align: middle; letter-spacing: .03em; white-space: nowrap; }
.tier-chip.advanced { background: linear-gradient(135deg, #6d3fd6, #9b6cf5); color: #fff; box-shadow: 0 2px 8px rgba(109,63,214,.35); }
.tier-chip.gold { background: linear-gradient(135deg, #f7e2a0 0%, #d4a24e 55%, #f3d78a 100%); color: #3d2600; box-shadow: 0 2px 8px rgba(212,162,78,.45); }
.tier-chip.hero { font-size: .72rem; margin-left: .5rem; border: 1px solid rgba(255,255,255,.55); }
.tier-chip.sm { font-size: .62rem; padding: .05rem .45rem; margin-left: .25rem; }

/* 昇格したての祝いバナー */
.guide-banner.tier-cele.advanced { border-color: #8e5cf0; background: linear-gradient(135deg, #f4efff, #ece2ff); }
.guide-banner.tier-cele.advanced b { color: #4a1f9a; }
.guide-banner.tier-cele.gold { border-color: #d4a24e; background: linear-gradient(135deg, #fff8e6, #fbeec6); }
.guide-banner.tier-cele.gold b { color: #6a4300; }

/* 設定: ホームの見た目の選択 */
.theme-sec { margin-bottom: 1rem; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-opt { display: flex; flex-direction: column; align-items: stretch; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px; font-family: inherit; text-align: left; color: var(--text); }
.theme-opt.on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,46,105,.12); }
.theme-opt.on.advanced { border-color: #6d3fd6; box-shadow: 0 0 0 3px rgba(109,63,214,.16); }
.theme-opt.on.gold { border-color: #d4a24e; box-shadow: 0 0 0 3px rgba(212,162,78,.2); }
.theme-opt.locked { opacity: .55; }
.theme-opt .prev { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 8px; color: #fff; font-size: 1.1rem; background: var(--grad); }
.theme-opt .prev.tier-default { background: var(--grad); }
.theme-opt .prev.tier-advanced { background: linear-gradient(135deg, #23103f 0%, #4a1f9a 48%, #7b3fe0 100%); }
.theme-opt .prev.tier-gold { background: linear-gradient(135deg, #2d1a03 0%, #8a5a00 38%, #d9a93f 62%, #f1d27a 74%, #8a5a00 100%); }
.theme-opt .prev .hero-fx { animation: none; }
.theme-opt .tl { font-size: .82rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.theme-opt .tl i { font-style: normal; font-size: .62rem; font-weight: 700; color: #fff; background: var(--navy); border-radius: 999px; padding: 0 .45rem; }
.theme-opt .tl i.lk { background: none; color: var(--sub); font-size: .8rem; padding: 0; }
.theme-opt .cd { font-size: .68rem; color: var(--sub); line-height: 1.4; }

/* =====================================================================
   Paletteブランド上書き（2026-09-08）: パステルグラデ #bfbdff→#4cceed・角ゴシック
   ルール（taiga_style）: Paletteグラデの上に白文字を置かない（水色に白は1.84:1）。グラデ面の文字は濃色。
   主要ボタンは濃い周辺色（--navy=#4b47a6）×白で可読性を確保する。
   ===================================================================== */
:root {
  --navy: #4b47a6;      /* 文字・主ボタン・アクティブ（Paletteラベンダーの濃い側） */
  --sky: #1f9fc2;       /* リンク・アクセント（水色の読める側） */
  --grad: linear-gradient(135deg, #bfbdff 0%, #8fd0f6 55%, #4cceed 100%);
  --grad-ink: #2f2c5c;  /* グラデ面に乗せる文字色 */
  --bg: #f7f7fd;
  --text: #2b2a45;
  --sub: #6f6f8c;
  --line: #e6e4f4;
}
.loading-screen { color: var(--grad-ink); }
.loading-logo-img { width: 200px; max-width: 60vw; height: auto; display: block; filter: drop-shadow(0 4px 14px rgba(75,71,166,.25)); }
.loading-sub { color: var(--grad-ink); font-weight: 600; }
/* 認証 */
.auth-wrap { background: var(--grad); }
.auth-card { box-shadow: 0 18px 50px rgba(75,71,166,.25); }
.auth-logo { display: block; height: 42px; width: auto; margin: 0 auto .6rem; }
.auth-brand .b1 { color: var(--navy); letter-spacing: .04em; }
/* 上部バー・ヒーロー: グラデ地×濃色文字 */
.topbar { background: var(--grad); color: var(--grad-ink); }
.topbar .back { color: var(--grad-ink); }
.topbar .save-state { color: var(--grad-ink); }
.hero { background: var(--grad); color: var(--grad-ink); }
.hero .hello { color: var(--grad-ink); opacity: .85; }
.hero h1 { color: var(--grad-ink); }
.hero-logo { height: 26px; filter: drop-shadow(0 2px 6px rgba(75,71,166,.35)); }
.hm-btn { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); color: var(--grad-ink); backdrop-filter: blur(6px); }
.hm-btn:active { background: rgba(255,255,255,.75); }
/* ボタン: 主ボタンは濃色ベタ×白 */
.btn { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(75,71,166,.22); }
.btn.secondary { background: #ecebfb; color: var(--navy); box-shadow: none; }
.seg button.on { color: var(--navy); }
.toast { background: var(--navy); }
/* アイコン・チップ・CTA: グラデ面には濃色 */
.icon-badge { background: var(--grad); color: var(--grad-ink); box-shadow: 0 4px 10px rgba(75,71,166,.18); }
.chip.on { background: var(--navy); color: #fff; }
.score-row button.sel { background: var(--navy); }
.cta-card { background: var(--grad); color: var(--grad-ink); box-shadow: 0 8px 20px rgba(75,71,166,.22); }
.cta-card .cta-btn { background: var(--navy); color: #fff; }
.apply-card { background: var(--grad); color: var(--grad-ink); }
.stu-row .avatar { background: var(--grad); color: var(--grad-ink); }
.nt-face, .sc-face { background: var(--grad); color: var(--grad-ink); }
.sheet-desc { background: #efeefc; border-left-color: #a7a3f0; color: #3f3b7a; }
.stat-card.accent { border-color: #a7a3f0; background: #f4f3ff; }
.kpi-callout { background: #fff8ec; }
.guide-banner { border-color: #b7b3f3; }
.ai-msg.me .b { background: var(--navy); }
.tabbar button.on { color: var(--navy); }
.ch-cat { color: var(--navy); background: rgba(75,71,166,.09); }
.ch-post.staff { border-left-color: var(--navy); background: #f6f5fd; }
.sc-toggle button.on, .arc-m.on { background: var(--navy); border-color: var(--navy); }
.cal-cell.today { border-color: #8fd0f6; background: #eefaff; }
.cal-cell.sel { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.sc-today { background: var(--navy); }
.mini-bars i { background: #8fd0f6; }
.mini-bars span.mb.on i { background: var(--navy); }
.chart-tip { background: var(--navy); }
/* ホームのカード（写真なし版）: 濃淡の違うPalette系グラデ×白アイコン。※たいがが写真を用意したら hm-img に差し替える */
.hm-thumb { color: #fff; }
.hm-ico { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.hm-ico svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); }
.hm-thumb::after { content: ''; position: absolute; right: -22px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hm-thumb.g-geppo    { --hm-grad: linear-gradient(135deg, #6f66d8 0%, #a9a4ff 100%); }
.hm-thumb.g-chat     { --hm-grad: linear-gradient(135deg, #3f9fc9 0%, #6fdcf2 100%); }
.hm-thumb.g-insights { --hm-grad: linear-gradient(135deg, #5a5bc0 0%, #58c7e8 100%); }
.hm-thumb.g-sched    { --hm-grad: linear-gradient(135deg, #7a74d6 0%, #62d3ea 100%); }
.hm-thumb.g-rec      { --hm-grad: linear-gradient(135deg, #8a70d2 0%, #c3a5ff 100%); }
.hm-thumb.g-guide    { --hm-grad: linear-gradient(135deg, #4c8fc9 0%, #9bd6f2 100%); }
.hm-pct { background: rgba(47,44,92,.62); }
/* 今月の目標カード（ホーム最上部） */
.goal-card { background: var(--card); border: 1.5px solid #c9c6f5; border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .9rem; cursor: pointer; box-shadow: 0 6px 18px rgba(75,71,166,.08); }
.goal-card.empty { border-style: dashed; }
.goal-card.empty b { display: block; color: var(--navy); }
.goal-card.empty span { font-size: .8rem; color: var(--sub); }
.gc-head { display: flex; justify-content: space-between; align-items: baseline; }
.gc-head b { color: var(--navy); }
.gc-head span { font-size: .76rem; color: var(--sub); }
.goal-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .55rem; }
.goal-chip { background: #f3f2ff; border-radius: 10px; padding: .45rem .3rem; text-align: center; }
.goal-chip small { display: block; font-size: .66rem; color: var(--sub); }
.goal-chip b { display: block; font-size: .95rem; color: var(--navy); margin-top: .1rem; }
.gc-prev { font-size: .76rem; color: var(--sub); margin-top: .5rem; }
/* ホームの直近の予定 */
.hs-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.hs-row:last-of-type { border-bottom: none; }
.hs-date { width: 3.4rem; flex-shrink: 0; font-weight: 700; color: var(--navy); font-size: .9rem; }
.hs-date small { display: block; font-size: .66rem; color: var(--sub); font-weight: 600; }
.hs-name { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-name small { color: var(--sub); font-weight: 400; margin-left: .3rem; }
/* 月報の入力グリッド */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .7rem; margin-top: .5rem; }
.kpi-in label { display: block; font-size: .78rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.kpi-in label small { font-weight: 500; color: var(--sub); margin-left: .25rem; }
.kpi-in input { width: 100%; font-size: 16px; }
.kpi-hint { display: block; font-size: .7rem; color: var(--sub); margin-top: .2rem; }
.kpi-tbl td small { color: var(--sub); font-size: .66rem; margin-left: .1rem; }
.fld { display: block; margin: .5rem 0; font-size: .85rem; }
.fld span { display: block; font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.fld select { width: 100%; padding: .55rem .6rem; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; font-family: inherit; background: #fff; }
.sc-badge.c-tensaku { background: #efeefc; color: #4b47a6; }
.sc-badge.c-off { background: #e6f6fb; color: #1f7fa0; }
.cal-dot.c-tensaku { background: #6f66d8; } .cal-dot.c-off { background: #2fb7dc; }
