/* NurseBase（ナースベース）— すりガラス調。色はロゴ（青緑 #5DB6B4・青 #6A93C3）から */
:root {
  --teal: #5DB6B4;
  --teal-soft: #77C5C6;
  --teal-deep: #2C7A7B;
  --blue: #6A93C3;
  --blue-deep: #3D6697;
  --ink: #1E2D38;
  --ink-2: #4A5A66;
  --ink-3: #6E7F8B;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-line: rgba(255, 255, 255, .85);
  --hair: rgba(44, 122, 123, .16);
  --shadow: 0 1px 1px rgba(30, 70, 90, .04), 0 12px 40px -12px rgba(30, 80, 110, .22);
  --grad: linear-gradient(135deg, #5DB6B4 0%, #6A93C3 100%);
  --grad-soft: linear-gradient(135deg, rgba(93, 182, 180, .16), rgba(106, 147, 195, .16));
  --alert: #E5484D;
  --warn: #C9831A;
  --ok: #2C9A82;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: #EEF6F7;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase; /* 日本語を文節で折り返す（言葉の途中で折らない） */
  line-break: strict;
}

/* 背景：ゆっくり漂う光のにじみ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 700px at 110% -10%, rgba(106, 147, 195, .30), transparent 60%),
  radial-gradient(900px 600px at -10% 110%, rgba(93, 182, 180, .32), transparent 60%),
  linear-gradient(180deg, #F4FAFA 0%, #ECF3F8 100%); }
.bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.bg i:nth-child(1) { width: 420px; height: 420px; left: -80px; top: 12%; background: #9BD8D6; }
.bg i:nth-child(2) { width: 360px; height: 360px; right: -60px; top: 40%; background: #A9C3E6; animation-duration: 32s; }
.bg i:nth-child(3) { width: 280px; height: 280px; left: 35%; bottom: -100px; background: #BFE3E4; animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(40px, -30px, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .bg i { animation: none; } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}

a { color: var(--teal-deep); }
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: .02em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- 上の帯 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.top .brand img { height: 30px; width: auto; display: block; }
.top .brand span { font-weight: 700; font-size: 14px; color: var(--teal-deep); padding-left: 10px; border-left: 1px solid var(--hair); white-space: nowrap; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.navbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid transparent; background: transparent;
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.navbtn:hover { background: rgba(255, 255, 255, .7); border-color: var(--glass-line); }
.navbtn.on { color: var(--teal-deep); background: rgba(255, 255, 255, .85); border-color: var(--glass-line); }
.navbtn svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .navbtn span { display: none; }
  .navbtn { width: 40px; padding: 0; justify-content: center; }
  .top .brand img { height: 26px; }
}

main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 80px; }
.stack > * + * { margin-top: 16px; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 4px 12px; }
.section-title .count { font-size: 13px; color: var(--ink-3); }

/* ---------- ボタン・入力 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .8); color: var(--teal-deep);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { background: #fff; box-shadow: 0 6px 18px -8px rgba(30, 80, 110, .35); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(61, 102, 151, .6); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--alert); }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.icon { width: 34px; min-height: 34px; padding: 0; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 2px; }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border-radius: var(--r-md); border: 1px solid rgba(44, 122, 123, .2);
  background: rgba(255, 255, 255, .85); color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(93, 182, 180, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-deep); flex: none; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid.cols-3 { grid-template-columns: 2fr 1.4fr 1fr auto; align-items: end; } }

.err { color: var(--alert); font-size: 14px; font-weight: 700; min-height: 1.2em; }

/* ---------- ログイン ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 400px; padding: 36px 28px 28px; text-align: center; }
.login img { height: 46px; margin: 0 auto 6px; display: block; }
.login .sub { margin: 4px 0 26px; color: var(--teal-deep); font-weight: 700; letter-spacing: .2em; font-size: 13px; }
.login form { text-align: left; }
.login .btn.primary { width: 100%; min-height: 52px; font-size: 16px; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 8px; }
.login .help { margin-top: 18px; font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- 戻る ---------- */
.backbar { margin: -4px 0 0; }
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-line);
  color: var(--teal-deep); font-weight: 700; font-size: 14px; text-decoration: none; max-width: 100%;
  box-shadow: 0 4px 14px -8px rgba(30, 80, 110, .35); transition: background .15s, transform .15s;
}
.back:hover { background: #fff; transform: translateX(-2px); }
.back svg { width: 20px; height: 20px; flex: none; }
.back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- ホームの上の案内 ---------- */
.hello { margin: 4px 4px 0; }
.hello h1 { font-size: 22px; }
.hero { position: relative; overflow: hidden; padding: 24px 22px; display: grid; gap: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .7)); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 182, 180, .35), transparent 70%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--teal-deep); }
.hero .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(93, 182, 180, .25); }
.hero h2 { font-size: 21px; margin-top: 6px; }
.hero .crumbs { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.hero-meter { display: flex; align-items: center; gap: 12px; margin-top: 12px; max-width: 420px; }
.hero-meter .bar { flex: 1; }
.hero-meter b { color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.hero.done { text-align: center; }
.howto { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.howto li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--glass-line); text-align: center; font-weight: 700; font-size: 14px; line-height: 1.4; }
.howto li b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 14px; }
.howto li small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.btn.xl { min-height: 56px; font-size: 17px; padding: 0 30px; }
.hero .btn.xl { width: 100%; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr auto; align-items: center; padding: 30px 34px; }
  .hero .btn.xl { width: auto; }
  .hero h2 { font-size: 23px; }
}

/* ---------- 研修のまとまり（必須／そのほか） ---------- */
.group { margin-top: 28px !important; }
.group-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 0 2px 12px; }
.group-head .gicon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -10px rgba(61, 102, 151, .8); }
.group.opt .gicon { background: rgba(255, 255, 255, .9); color: var(--teal-deep); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.group-head .gicon svg { width: 22px; height: 22px; }
.group-head h2 { font-size: 19px; }
.group-head p { margin: 0; font-size: 13px; color: var(--ink-2); }
.group-head .gcount { font-size: 13px; font-weight: 700; color: var(--teal-deep); background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-line); border-radius: 999px; padding: 4px 12px; }

.course-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .course-list { grid-template-columns: repeat(2, 1fr); } }
.course-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 18px 18px 18px 24px; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.course-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(106, 147, 195, .35); }
.course-card.is-req::before { background: var(--grad); }
.course-card.is-done::before { background: var(--ok); }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(30, 70, 90, .04), 0 20px 44px -14px rgba(30, 80, 110, .32); }
.course-card h3 { font-size: 17px; line-height: 1.45; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.cc-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.cc-progress .bar { flex: 1; max-width: 260px; }
.cc-progress b { color: var(--teal-deep); font-size: 15px; font-variant-numeric: tabular-nums; }
.cc-go { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; color: var(--teal-deep); white-space: nowrap; }
.cc-go svg { width: 18px; height: 18px; }
.course-card.is-req:not(.is-done) .cc-go { color: #fff; background: var(--grad); padding: 8px 10px 8px 14px; border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(61, 102, 151, .8); }

.bar { height: 8px; border-radius: 999px; background: rgba(44, 122, 123, .12); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .4s; }
.bar.thin { height: 5px; }

.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--teal) 0, var(--blue) calc(var(--p) * 1%), rgba(44, 122, 123, .12) 0); }
.ring::before { content: ""; grid-area: 1/1; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.ring b { grid-area: 1/1; position: relative; font-size: 15px; color: var(--teal-deep); }
.ring b small { font-size: 10px; }
.ring.lg { width: 84px; height: 84px; }
.ring.lg::before { width: 66px; height: 66px; }
.ring.lg b { font-size: 20px; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag.req { background: rgba(61, 102, 151, .12); color: var(--blue-deep); }
.tag.due { background: rgba(255, 255, 255, .8); color: var(--ink-2); border: 1px solid var(--hair); }
.tag.soon { background: rgba(201, 131, 26, .12); color: var(--warn); }
.tag.over { background: rgba(229, 72, 77, .12); color: var(--alert); }
.tag.done { background: rgba(44, 154, 130, .14); color: var(--ok); }
.tag.off { background: rgba(134, 150, 162, .16); color: var(--ink-2); }

/* ---------- コースの中身 ---------- */
.course-head { padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.course-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-line); }
.seg button { border: 0; background: none; height: 34px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -8px rgba(61, 102, 151, .7); }

.chapter { padding: 6px; }
.chapter > header { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.chapter > header h3 { flex: 1; min-width: 0; }
.chapter > header .muted { font-size: 13px; white-space: nowrap; }
.lesson-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); color: inherit; text-decoration: none; transition: background .15s; }
.lesson-row + .lesson-row { border-top: 1px solid var(--hair); }
.lesson-row:hover { background: rgba(255, 255, 255, .7); }
.lesson-row .t { font-weight: 700; font-size: 15px; line-height: 1.5; }
.lesson-row .sub { font-size: 12px; color: var(--ink-3); }
.lesson-row .bar { margin-top: 6px; max-width: 220px; }
.st { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.st svg { width: 18px; height: 18px; }
.st.done { background: var(--grad); color: #fff; }
.st.watching { background: rgba(93, 182, 180, .16); color: var(--teal-deep); }
.st.reflect { background: rgba(201, 131, 26, .14); color: var(--warn); }
.st.todo { border: 2px solid rgba(44, 122, 123, .2); }

/* ---------- 視聴 ---------- */
.player-wrap { border-radius: var(--r-lg); overflow: hidden; background: #0F1B22; box-shadow: 0 24px 60px -20px rgba(20, 50, 70, .55); }
.player-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0F1B22; }
.player-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #9FB3BF; font-size: 14px; }
.lesson-info { padding: 20px 22px; }
.lesson-info .crumbs { font-size: 13px; color: var(--ink-2); }
.lesson-info h1 { margin: 4px 0 12px; font-size: 20px; }
.lesson-info .desc { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; margin-top: 12px; }
.watch-meter { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.watch-meter .bar { flex: 1; }
.steps { display: grid; gap: 10px; padding: 18px 22px; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid rgba(44, 122, 123, .22); color: var(--ink-3); }
.step.on .n { border-color: var(--teal); color: var(--teal-deep); }
.step.ok .n { background: var(--grad); border-color: transparent; color: #fff; }
.step .t { font-weight: 700; padding-top: 4px; }
.reflect-box { padding: 20px 22px; }
.reflect-box .hint { font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lesson-nav .btn { width: 100%; }
.done-banner { padding: 18px 22px; display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, rgba(93, 182, 180, .28), rgba(106, 147, 195, .22)); }
.done-banner .st { width: 44px; height: 44px; }
.lesson-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .lesson-grid { grid-template-columns: 1fr 340px; align-items: start; } .lesson-grid aside { position: sticky; top: 76px; } }

/* ---------- 管理 ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 -4px 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 14px; border: 1px solid transparent; white-space: nowrap; }
.tabs a.on { background: rgba(255, 255, 255, .85); color: var(--teal-deep); border-color: var(--glass-line); box-shadow: var(--shadow); }
.tabs svg { width: 18px; height: 18px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.stat .v { font-size: 28px; font-weight: 700; color: var(--teal-deep); line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; color: var(--ink-2); margin-left: 2px; }
.stat.alert .v { color: var(--alert); }

.panel { padding: 18px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.table-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.grid th, table.grid td { padding: 12px 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
table.grid th { font-size: 12px; color: var(--ink-2); text-align: center; font-weight: 700; white-space: nowrap; }
table.grid th.l, table.grid td.l { text-align: left; }
table.grid td.c { text-align: center; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid .sticky { position: sticky; left: 0; background: rgba(247, 251, 252, .96); z-index: 1; }
table.grid tbody tr { cursor: default; }
table.grid tbody tr.click { cursor: pointer; }
table.grid tbody tr.click:hover td { background: rgba(255, 255, 255, .6); }
.who b { display: block; white-space: nowrap; }
.who span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.cell { min-width: 120px; text-align: center; }
.cell .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.cell .bar { margin: 4px auto 2px; max-width: 110px; }
.cell .d { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.th-course { min-width: 130px; }
.th-course .tag { margin-top: 4px; }

/* 画面の見出し */
.page-title { margin: 4px 2px 0; }
.page-title h1 { font-size: 23px; }
.page-title p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.page-title .btn-row { margin-top: 8px; }
.page-title.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.page-title.row .btn-row { margin-top: 0; }
.tabs a.accent:not(.on) { color: var(--blue-deep); }
.btn-row.between { justify-content: space-between; }
.btn-row.center { justify-content: center; }

/* 研修の設定 */
.ed-course { padding: 0; overflow: hidden; }
.ed-head { display: flex; gap: 12px; align-items: center; padding: 18px 18px 10px; }
.ed-title { flex: 1; min-width: 0; }
.ed-title h3 { font-size: 18px; }
.ed-title p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.ed-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 18px 14px; border-bottom: 1px solid var(--hair); }
.assign { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--glass-line); }
.assign select { width: auto; min-height: 36px; padding: 4px 34px 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.assign select.kind-req { color: var(--blue-deep); background-color: rgba(106, 147, 195, .14); }
.assign select.kind-opt { color: var(--teal-deep); }
.assign select.kind-none { color: var(--ink-3); }
.assign input[type=date] { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
.ed-body { padding: 4px 18px 18px; }
.ed-section { border-radius: var(--r-md); background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-line); padding: 12px 14px; margin-top: 12px; }
.ed-section > header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-section > header b { flex: 1; min-width: 120px; font-size: 15px; }
.ed-lesson { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--hair); }
.ed-section > header + .ed-lesson { margin-top: 10px; }
.ed-lesson .thumb { width: 44px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.ed-lesson .thumb.none { background: rgba(134, 150, 162, .18); color: var(--ink-3); }
.ed-lesson .thumb svg { width: 20px; height: 20px; }
.ed-lesson .name { flex: 1; min-width: 150px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.ed-lesson .name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.ed-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.add-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; min-height: 42px; border-radius: var(--r-sm);
  border: 1.5px dashed rgba(44, 122, 123, .35); color: var(--teal-deep); font-weight: 700; font-size: 14px; text-decoration: none; transition: background .15s; }
.add-line:hover { background: rgba(255, 255, 255, .8); }
.add-line svg { width: 18px; height: 18px; }
.mover { display: inline-flex; gap: 4px; flex: none; }
@media (max-width: 640px) {
  .ed-head { flex-wrap: wrap; padding: 16px 14px 8px; }
  .ed-head .ed-title { order: -1; flex-basis: 100%; }
  .ed-head .mover { margin-right: auto; }
  .ed-bar { padding: 8px 14px 12px; }
  .assign { width: 100%; border-radius: var(--r-md); }
  .ed-body { padding: 4px 10px 14px; }
  .ed-section { padding: 10px; }
  .ed-section > header b { min-width: 0; }
  .ed-lesson { gap: 8px; }
  .ed-lesson .thumb { display: none; }
  .ed-lesson .name { min-width: 0; }
  .ed-lesson .ed-tags { order: 5; width: 100%; padding-left: 80px; }
}

/* 動画を追加 */
.step-card { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 20px 22px 16px; }
.step-no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 8px 18px -10px rgba(61, 102, 151, .8); }
.step-body { min-width: 0; display: grid; gap: 14px; }
.step-body h2 { padding-top: 6px; }
@media (max-width: 640px) {
  .step-card { display: block; position: relative; padding: 18px 16px 20px; }
  .step-card .step-no { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; font-size: 16px; }
  .step-card .step-body h2 { padding: 4px 0 0 46px; min-height: 34px; }
  .dropzone { min-height: 170px; }
}
.form-grid.two { gap: 14px; }
@media (min-width: 720px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; padding: 28px 16px; text-align: center; cursor: pointer;
  border-radius: var(--r-lg); border: 2px dashed rgba(44, 122, 123, .38); background: rgba(255, 255, 255, .6); transition: background .15s, border-color .15s, transform .15s; }
.dropzone:hover, .dropzone:focus-visible { background: rgba(255, 255, 255, .9); border-color: var(--teal); outline: none; }
.dropzone.over { background: rgba(93, 182, 180, .14); border-color: var(--teal-deep); transform: scale(1.01); }
.dropzone b { font-size: 17px; color: var(--teal-deep); }
.dz-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(61, 102, 151, .8); }
.dz-icon svg { width: 28px; height: 28px; }
.file-card { display: grid; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .85); border: 1px solid var(--glass-line); }
.file-card video { width: 100%; max-height: 320px; border-radius: var(--r-md); background: #0F1B22; }
.fc-info { display: grid; gap: 2px; justify-items: start; }
.fc-info .fc-label { font-size: 12px; font-weight: 700; color: var(--ok); letter-spacing: .08em; }
.fc-info b { word-break: break-all; }
.fc-info .btn { margin-top: 8px; }
@media (min-width: 760px) { .file-card { grid-template-columns: 300px 1fr; align-items: center; } }
.check.box { padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-line); line-height: 1.6; }
.check.box small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.check.box:has(input:disabled) { opacity: .55; cursor: default; }
.check.box:has(input:checked) { border-color: rgba(44, 154, 130, .5); background: rgba(44, 154, 130, .08); }
.submit-bar { position: sticky; bottom: 12px; z-index: 5; padding: 14px 16px; display: grid; gap: 8px; background: var(--glass-strong); }
.submit-bar .err:empty { display: none; }
.submit-bar .btn.xl { width: 100%; }
.up-progress { display: grid; gap: 6px; }
.up-progress p { margin: 0; }
.up-row { display: flex; align-items: baseline; gap: 12px; }
.up-row b { font-size: 22px; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.up-progress .bar { height: 10px; }
.done-panel { text-align: center; padding: 34px 22px; display: grid; gap: 12px; justify-items: center; }
.done-panel .st { width: 64px; height: 64px; }
.done-panel .st svg { width: 32px; height: 32px; }
.done-panel p { margin: 0; color: var(--ink-2); }
.notice { padding: 12px 16px; border-radius: var(--r-md); background: rgba(201, 131, 26, .1); color: #7A5110; font-size: 14px; display: grid; gap: 8px; justify-items: center; }

/* レッスンの編集 */
.edit-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .edit-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.edit-grid .panel { display: grid; gap: 14px; align-content: start; }
.edit-grid .player-wrap video { aspect-ratio: 16 / 9; }
h2.ph { display: flex; align-items: center; gap: 8px; }
h2.ph svg { width: 22px; height: 22px; color: var(--teal-deep); }
.edit-grid .panel > p { margin: 0; }

/* ダイアログ */
dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(30, 55, 70, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog .glass { background: var(--glass-strong); padding: 24px; max-height: calc(100vh - 40px); overflow-y: auto; }
dialog h2 { margin-bottom: 14px; }
.issued { display: grid; gap: 10px; margin: 14px 0; padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .9); border: 1px dashed rgba(44, 122, 123, .35); }
.issued div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.issued code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; padding: 12px 20px; border-radius: 999px; background: rgba(38, 53, 64, .92); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.upload-bar { margin-top: 8px; }

/* ---------- 印刷（配布用の紙・研修記録票） ---------- */
#print { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; color: #000; font-size: 11pt; }
}
.sheet h1 { font-size: 18pt; margin-bottom: 4mm; }
.sheet .lead { margin: 0 0 6mm; }
.sheet .box { border: 1.5px solid #333; border-radius: 4mm; padding: 6mm; display: grid; grid-template-columns: 1fr auto; gap: 6mm; align-items: center; margin-bottom: 6mm; break-inside: avoid; }
.sheet .box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2mm 5mm; }
.sheet .box dt { color: #555; }
.sheet .box dd { margin: 0; font-weight: 700; font-family: Consolas, monospace; font-size: 14pt; }
.sheet .box dd.url { font-size: 10pt; word-break: break-all; }
.sheet .qr svg { width: 34mm; height: 34mm; display: block; }
.sheet ol { padding-left: 5mm; }
.record table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.record th, .record td { border: 1px solid #555; padding: 2mm; vertical-align: top; }
.record th { background: #eee; text-align: center; }
.record td.c { text-align: center; white-space: nowrap; }
.record .head { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 8mm; margin-bottom: 5mm; }
.record .sign { margin-top: 8mm; display: flex; justify-content: flex-end; gap: 6mm; }
.record .sign div { border: 1px solid #555; width: 30mm; text-align: center; }
.record .sign div b { display: block; border-bottom: 1px solid #555; font-weight: 400; padding: 1mm 0; }
.record .sign div span { display: block; height: 20mm; }

/* ---------- スマホ用 ---------- */
.tabbar { display: none; }
.m-list { display: none; }
.howto-list { margin: 0; padding-left: 18px; line-height: 1.8; }
@media (max-width: 640px) {
  /* 下のメニュー（親指で届く位置） */
  .top nav { display: none; }
  .top { padding-top: calc(10px + env(safe-area-inset-top)); }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    padding: 6px; gap: 4px; border-radius: 22px;
    background: rgba(255, 255, 255, .82); border: 1px solid var(--glass-line); box-shadow: 0 14px 34px -12px rgba(30, 80, 110, .4);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 16px;
    color: var(--ink-3); font-size: 11px; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.on { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -10px rgba(61, 102, 151, .9); }
  main { padding: 16px 14px calc(104px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .submit-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* 表の代わりのカード */
  .desk-only { display: none; }
  .m-list { display: grid; gap: 10px; }
  .m-card { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .85); border: 1px solid var(--glass-line);
    color: inherit; text-decoration: none; }
  a.m-card:active { background: #fff; }
  .m-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
  .m-top .who b { font-size: 16px; }
  .m-last { color: var(--ink-2); line-height: 1.5; }
  .m-course { display: grid; grid-template-columns: 1fr 70px 40px; gap: 8px; align-items: center; font-size: 13px; }
  .m-course .t { line-height: 1.4; }
  .m-course b { text-align: right; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
  .m-course b.late { color: var(--alert); }
  .m-kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; color: var(--ink-2); }
  .m-kv code { font-size: 15px; font-weight: 700; color: var(--ink); }
  .m-kv b { font-weight: 400; color: var(--ink); }
  .m-acts { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 6px; }
  .m-acts .btn { padding: 0 6px; }

  /* 動画は画面の上に止めて、下の振り返りを書きながらでも見える */
  .lesson-grid .player-wrap { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 10; border-radius: 16px; }
  .panel-head { gap: 8px; }
  .panel-head .btn-row { width: 100%; }
}

/* ---------- 操作の部品をそろえる（高さ・角・文字） ---------- */
:root { --ctl-h: 40px; }
.btn.sm, .back { min-height: var(--ctl-h); height: var(--ctl-h); padding: 0 16px; font-size: 14px; border-radius: 999px; }
.back { padding-left: 12px; }
.btn.icon { width: var(--ctl-h); height: var(--ctl-h); min-height: var(--ctl-h); padding: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.toolbar > * { margin: 0; }
select.ctl { width: auto; max-width: 280px; min-height: var(--ctl-h); height: var(--ctl-h); padding: 0 38px 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--teal-deep); background-color: rgba(255, 255, 255, .85); border: 1px solid var(--glass-line); }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl-h); height: var(--ctl-h); padding: 0 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--glass-line); color: var(--teal-deep);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; user-select: none; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal-deep); }
.chip:has(input:checked) { background: rgba(93, 182, 180, .16); border-color: rgba(44, 122, 123, .35); }
@media (max-width: 640px) {
  :root { --ctl-h: 44px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar > select.ctl, .toolbar > .chip { grid-column: 1 / -1; max-width: none; width: 100%; }
  .toolbar > .btn { width: 100%; padding: 0 8px; }
  .toolbar > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 部品の決まり（トトでの経験から：境目を見せる・押した感触・面の重なりを3段に） ---------- */
:root {
  --line: #D6E5E7;          /* 内側のカードの線 */
  --line-strong: #B9D3D6;   /* ボタン・入力欄の線 */
  --surface: #FFFFFF;       /* 内側のカード */
  --danger-soft: #FDECEC;
  --teal-soft: #E7F4F4;
}
html { -webkit-tap-highlight-color: transparent; }
/* ボタン：白地でも境目が見えるよう線を付ける */
.btn { background: var(--surface); border: 1px solid var(--line-strong); color: var(--teal-deep); box-shadow: 0 1px 2px rgba(16, 60, 70, .06); }
.btn:hover { background: var(--teal-soft); border-color: var(--teal); }
.btn.primary { border: 0; }
.btn.danger { color: var(--alert); border-color: rgba(229, 72, 77, .38); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--alert); }
.btn:active, .back:active, .chip:active, .tabbar a:active, .course-card:active, a.m-card:active { opacity: .72; }
.btn:focus-visible, .back:focus-visible, a:focus-visible, select:focus-visible, .chip:focus-within { outline: 3px solid rgba(93, 182, 180, .55); outline-offset: 2px; }
.back { background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(16, 60, 70, .06); }
.chip { background: var(--surface); border: 1px solid var(--line-strong); }
select.ctl { background-color: var(--surface); border: 1px solid var(--line-strong); }
input[type=text], input[type=password], input[type=date], input[type=number], select, textarea { border-color: var(--line-strong); background-color: var(--surface); }
/* 面の重なり：背景 → パネル（すりガラス）→ 内側のカード（白・線あり） */
.m-card, .ed-section, .file-card, .issued, .howto li, .check.box { background: var(--surface); border: 1px solid var(--line); }
.m-card { box-shadow: 0 1px 2px rgba(16, 60, 70, .05); }
/* 表：見出しに地色・1行おきに淡く */
table.grid thead th { background: var(--teal-soft); color: var(--teal-deep); border-bottom: 1px solid var(--line-strong); }
table.grid thead th:first-child { border-top-left-radius: 10px; }
table.grid thead th:last-child { border-top-right-radius: 10px; }
table.grid tbody tr:nth-child(even) td { background: rgba(231, 244, 244, .45); }
table.grid tbody tr:nth-child(even) td.sticky { background: #F3F9F9; }
table.grid .sticky { background: #FBFDFD; }

/* ---------- 見やすさの仕上げ（第三者の点検14項目を反映） ---------- */
:root { --ctl-h: 44px; --ink-3: #66777F; }
/* 文字の大きさ */
h1, .page-title h1 { font-size: 26px; }
h2 { font-size: 20px; }
.panel h2, .group-head h2 { font-size: 20px; }
.stat .k { font-size: 13px; }
.who span, .lesson-row .sub, .ed-lesson .name small, .cell .d, .cc-meta, .crumbs { color: var(--ink-2); }
.cell .d { font-size: 12px; }
@media (max-width: 640px) { h1, .page-title h1 { font-size: 22px; } h2, .panel h2, .group-head h2 { font-size: 18px; } }

/* ボタン：線を少し太く・押せない時は灰色ではっきり */
.btn, .back, .chip, select.ctl { border-width: 1.5px; }
.btn.danger { color: #C9363B; border-color: rgba(229, 72, 77, .45); }
.btn:disabled, .btn.primary:disabled { background: #E3EAED; color: #8A99A3; border-color: transparent; box-shadow: none; filter: none; opacity: 1; }
.btn.icon { width: 36px; height: 36px; min-height: 36px; border-radius: 10px; }
.btn.icon svg { width: 18px; height: 18px; }

/* 操作部品の高さ：入力欄・選択欄・ボタンを同じに */
input[type=text], input[type=password], input[type=date], input[type=number], select { min-height: var(--ctl-h); height: var(--ctl-h); padding-top: 0; padding-bottom: 0; }
.btn { min-height: var(--ctl-h); }
.form-grid.cols-3 .btn { height: var(--ctl-h); }
.assign select, .assign input[type=date] { height: 40px; min-height: 40px; }
.backbar { margin-bottom: 4px; }
.backbar + .toolbar { margin-top: 12px; }

/* 上の帯：中身を本文と同じ幅に */
.top { display: block; padding: 10px 16px; }
.top-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.top-in nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .top { padding-top: calc(10px + env(safe-area-inset-top)); } .top-in nav { display: none; } }

/* 管理のタブ：PCは帯のように並べ、スマホは全部が画面に収まるよう3列に */
.tabs { background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-line); border-radius: 999px; padding: 4px; margin: 0; width: fit-content; max-width: 100%; }
.tabs a { height: 40px; }
.tabs a.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(61, 102, 151, .8); }
@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; width: 100%; border-radius: 18px; overflow: visible; }
  .tabs a { flex-direction: column; justify-content: center; gap: 2px; height: 56px; padding: 0 4px; font-size: 12px; border-radius: 14px; }
  .tabs a svg { width: 20px; height: 20px; }
}

/* ホームのカード：「次の操作」の形をそろえる */
.cc-go { height: 40px; padding: 0 12px 0 16px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong); }
.course-card.is-req:not(.is-done) .cc-go { border-color: transparent; padding: 0 12px 0 16px; }
.cc-meta { flex-wrap: wrap; }
.cc-meta .tag { order: 3; }
.bar { background: rgba(44, 122, 123, .18); }

/* 受講状況の表 */
.cell.zero .pct { color: var(--ink-3); }
.cell.late .pct { color: var(--alert); }
.cell.full .pct { color: var(--ok); }

/* スマホ：スタッフカードの操作行に区切り */
.m-acts { border-top: 1px solid var(--hair); padding-top: 10px; }

/* 押せない☑の欄 */
.check.box:has(input:disabled) { opacity: 1; background: #F1F4F5; color: var(--ink-3); }

/* スマホ：前へ／次へ が下のメニューやお知らせに隠れない */
@media (max-width: 640px) {
  main { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
  /* 研修の設定：レッスン名は1行全体に、操作は2行目に */
  .ed-lesson { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
  .ed-lesson .name { grid-column: 1 / -1; order: -1; }
  .ed-lesson .ed-tags { order: 0; padding-left: 0; width: auto; }
  .ed-lesson .mover { order: 0; }
  .ed-lesson > a.btn { order: 1; }
  .panel { padding: 16px; }
}
@media (min-width: 641px) { .panel { padding: 24px; } .table-scroll { margin: 0 -24px; padding: 0 24px; } }

@media (max-width: 640px) {
  .ed-section > header b { order: -1; flex-basis: 100%; }
  .ed-section > header .mover { margin-right: auto; }
  /* お知らせは画面の上に出して、下のボタンを隠さない */
  .toast { top: calc(68px + env(safe-area-inset-top)); bottom: auto; }
}

/* 研修の設定：受講者への出し方（必須／任意／出さない）を見出しつきの帯にする */
.ed-bar { flex-direction: column; align-items: stretch; gap: 12px; }
.ed-bar > .btn-row { justify-content: flex-start; }
.assign { display: block; padding: 14px 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.assign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.assign-q { font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.assign-seg { background: var(--teal-soft); border-color: var(--line); }
.assign-seg button { height: calc(var(--ctl-h) - 10px); min-width: 84px; padding: 0 18px; font-size: 14px; }
.assign-seg button:not(.on):hover { background: rgba(255, 255, 255, .8); }
.assign-due { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.assign-due input[type=date] { width: auto; height: var(--ctl-h); min-height: var(--ctl-h); padding: 0 12px; font-size: 14px; font-weight: 400; }
.assign-help { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 640px) {
  .assign { width: auto; padding: 12px; }
  .assign-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .assign-seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .assign-seg button { min-width: 0; padding: 0 6px; }
  .assign-due { justify-content: space-between; }
  .assign-due input[type=date] { flex: 1; max-width: 200px; }
}

/* 研修報告書（動画の下） */
.report-box { padding: 20px 22px; }
.rb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.rb-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.rb-head h2 svg { width: 22px; height: 22px; color: var(--teal-deep); }
.rb-state { display: inline-flex; align-items: center; gap: 8px; }
.rb-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 4px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.rb-meta > div { display: grid; grid-template-columns: 5.5em 1fr; border-bottom: 1px solid var(--line); }
.rb-meta > div:nth-last-child(-n+2) { border-bottom: 0; }
.rb-meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
.rb-meta dt { padding: 9px 10px; background: var(--teal-soft); font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.rb-meta dd { margin: 0; padding: 9px 12px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.rb-fields { display: grid; gap: 16px; margin-top: 16px; }
.rb-field { display: grid; gap: 6px; }
.rb-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.rb-label .req { font-style: normal; font-size: 11px; font-weight: 700; color: #C9363B; background: rgba(229, 72, 77, .1); border-radius: 999px; padding: 2px 8px; }
.rb-field small { color: var(--ink-2); font-size: 13px; }
.rb-field textarea { min-height: 96px; resize: vertical; }
.rb-field textarea:disabled, .rb-field input:disabled { background: #F6F9FA; }
.rb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.rb-why { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rb-foot .err { margin: 4px 0 0; }
.rb-foot .err:empty { display: none; }
.rb-foot .btn { min-width: 220px; }
.rb-foot .btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .report-box { padding: 16px 14px; }
  .rb-meta { grid-template-columns: 1fr; }
  .rb-meta > div:nth-child(odd) { border-right: 0; }
  .rb-meta > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .rb-foot { flex-direction: column; align-items: stretch; }
  .rb-foot .btn { width: 100%; min-width: 0; }
}

/* 研修報告書の項目（運営の設定） */
.rf-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .rf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .rf-preview { position: sticky; top: 76px; } }
.rf-edit { padding: 18px; }
.rf-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 12px; }
.rf-item + .rf-item { margin-top: 12px; }
.rf-top { display: flex; align-items: center; gap: 10px; }
.rf-top .btn.danger { margin-left: auto; }
.rf-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.rf-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.rf-opts .check { align-items: center; font-weight: 700; }
.rf-opts .check input { margin: 0; }
.rf-opts .seg { background: var(--teal-soft); border-color: var(--line); }
.rf-opts .seg button { height: calc(var(--ctl-h) - 10px); padding: 0 16px; font-size: 14px; }
.rf-save { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.rf-preview-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px 4px; }
.rf-preview-label svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .rf-edit { padding: 12px; }
  .rf-save .btn { width: 100%; }
}

/* 研修記録票の報告書の欄 */
.sheet .rep div + div { margin-top: 1.5mm; }
.sheet .rep b { display: block; font-size: 8.5pt; color: #444; }
button.add-line { width: 100%; background: none; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; margin-top: 12px; }

/* 研修報告書：書いた分だけ広がる欄。文字数の上限はなし */
.rb-field textarea[data-grow] { min-height: 96px; overflow: hidden; resize: none; line-height: 1.7; }
.rb-field textarea.bad { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }
.rb-draft { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.rb-draft:empty { display: none; }
.rf-req { align-items: center; font-weight: 700; }
.rf-req input { margin: 0; }
.rf-req small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.org-co { display: block; font-size: 12px; color: var(--ink-2); font-weight: 400; margin-top: 2px; }

/* 強調ボタンは、マウスを乗せても色を保つ（白い地に白い文字にならないように） */
.btn.primary:not(:disabled):hover { background: var(--grad); border-color: transparent; color: #fff; filter: brightness(1.07); }

/* システム名 NurseBase */
.top .brand span.nb { font-size: 16px; letter-spacing: .02em; background: linear-gradient(135deg, #2C7A7B, #4F7FB5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .nb-name { font-size: 30px; font-weight: 700; letter-spacing: .03em; margin: 6px 0 2px; background: linear-gradient(135deg, #2C7A7B, #4F7FB5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .sub { letter-spacing: .04em; font-weight: 700; color: var(--ink-2); font-size: 13px; }

/* 入力欄の見出しは1行で（言葉の途中で折らない） */
label.field > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
