:root {
  font-family:
    "Noto Sans JP",
    "Yu Gothic UI",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  color: #172033;
  background: #f4f6f9;

  --navy: #17345f;
  --navy-strong: #10294d;
  --blue: #2e5fb8;

  --text: #172033;
  --muted: #667085;

  --border: #d9e0e9;
  --border-soft: #e8ecf1;

  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --focus: rgba(46, 95, 184, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  color: var(--text);
  background: #f4f6f9;

  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================================
   全体レイアウト
   ========================================================= */

.shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;

  color: #6b7890;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;

  color: var(--navy-strong);

  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

h2 {
  margin-bottom: 12px;

  color: var(--navy-strong);

  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 14px;

  color: #26364f;

  font-size: 17px;
  font-weight: 700;
}

.muted {
  color: var(--muted);

  font-size: 15px;
  line-height: 1.75;
}

/* =========================================================
   年度表示
   ========================================================= */

.year-pill {
  padding: 7px 0 5px;

  border-bottom: 2px solid var(--navy);

  color: var(--navy);

  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  display: inline-block;

  margin-bottom: 14px;
  padding: 4px 8px;

  border: 1px solid #cdd7e7;
  border-radius: 4px;

  background: #f7f9fc;

  color: var(--navy);

  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   上部ユーザー情報
   ========================================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 20px;
  padding: 0 0 16px;

  border-bottom: 1px solid var(--border);
}

.topbar > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;

  color: #637087;

  font-size: 14px;
}

.topbar strong {
  color: var(--text);

  font-size: 15px;
  font-weight: 800;
}

/* =========================================================
   ステップ導線
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  margin-bottom: 20px;

  border: 1px solid var(--border);
  border-radius: 10px;

  overflow: hidden;

  background: var(--surface);
}

.step {
  position: relative;

  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 76px;

  padding: 15px 20px;

  color: #778196;
  background: #ffffff;
}

.step + .step {
  border-left: 1px solid var(--border);
}

.step > span {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  border: 1px solid #cbd4e0;
  border-radius: 50%;

  background: #ffffff;

  color: #69758a;

  font-size: 13px;
  font-weight: 800;
}

.step strong {
  display: block;

  margin-bottom: 2px;

  font-size: 16px;
  font-weight: 800;
}

.step small {
  display: block;

  font-size: 13px;
  line-height: 1.45;
}

.step.active {
  color: var(--navy);
  background: #f7f9fc;
}

.step.active::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;

  height: 4px;

  background: var(--navy);
}

.step.active > span {
  border-color: var(--navy);

  background: var(--navy);
  color: #ffffff;
}

.step.done {
  color: #276749;
  background: #f8fbf9;
}

.step.done > span {
  border-color: #2f855a;

  background: #2f855a;
  color: #ffffff;
}

/* =========================================================
   メインカード
   ========================================================= */

.card {
  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--surface);

  padding: 34px 38px;

  box-shadow: 0 2px 7px rgba(18, 38, 63, 0.035);
}

.auth-card {
  width: min(680px, 100%);
  margin: 64px auto 0;
}

/* =========================================================
   教員名簿エリア
   ========================================================= */

.subcard {
  margin-top: 28px;
  padding: 24px 0 28px;

  border: 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);

  border-radius: 0;

  background: transparent;
}

.subcard h3 {
  margin-bottom: 18px;

  color: var(--navy);

  font-size: 16px;
}

/* =========================================================
   フォーム共通
   ========================================================= */

.form-section {
  margin-top: 28px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 8px;
}

.field > label,
.field-label {
  color: #26364f;

  font-size: 15px;
  font-weight: 800;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;

  min-height: 48px;

  padding: 11px 13px;

  border: 1px solid #cfd7e2;
  border-radius: 6px;

  outline: none;

  background: #ffffff;
  color: var(--text);

  font-size: 16px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.field textarea {
  min-height: 110px;

  resize: vertical;

  line-height: 1.65;
}

.field input:not([type="radio"]):not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover {
  border-color: #b6c2d1;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);

  box-shadow: 0 0 0 3px var(--focus);
}

.field input[readonly] {
  background: #f7f8fa !important;

  color: #35435a;
}

.field small {
  color: #7a8598;

  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   実務経験
   ========================================================= */

.choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;

  min-height: 42px;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #27364e;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}

.choice-option input[type="radio"] {
  width: 18px;
  height: 18px;

  margin: 0;

  accent-color: var(--navy);

  cursor: pointer;
}

.conditional-field {
  margin-top: 16px;

  padding: 18px 20px;

  border-left: 4px solid #c7d4e8;

  background: #f8fafc;
}

.conditional-field.is-hidden {
  display: none;
}

/* =========================================================
   オフィスアワー
   ========================================================= */

.office-hours-block {
  display: grid;
  gap: 12px;
}

.weekday-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  min-width: 62px;

  padding: 9px 12px;

  border: 1px solid #cfd7e2;
  border-radius: 6px;

  background: #ffffff;
  color: #344054;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
  user-select: none;

  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.weekday-option:hover {
  border-color: #aebed1;
}

.weekday-option input[type="checkbox"] {
  width: 16px;
  height: 16px;

  margin: 0;

  accent-color: var(--navy);

  cursor: pointer;
}

.weekday-option:has(input:checked) {
  border-color: #7995c3;

  background: #edf3fb;
  color: var(--navy);
}

.office-time-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);

  align-items: center;
  gap: 12px;
}

.office-time-row label {
  color: #26364f;

  font-size: 15px;
  font-weight: 800;
}

.form-error {
  margin-top: 6px;

  color: #b42318;

  font-size: 13px;
  font-weight: 700;
}

/* =========================================================
   ボタン
   ========================================================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 28px;
}

.actions-end {
  justify-content: flex-end;
}

.vertical-actions {
  flex-direction: column;
  align-items: stretch;
}

button {
  min-height: 44px;

  padding: 10px 18px;

  border: 0;
  border-radius: 6px;

  font-size: 15px;
  font-weight: 800;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.05s ease;
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: var(--navy);
  color: #ffffff;
}

button.primary:hover {
  background: var(--navy-strong);
}

button.secondary {
  border: 1px solid #cbd4df;

  background: #ffffff;
  color: #344054;
}

button.secondary:hover {
  background: #f8fafc;
}

button.danger {
  border: 1px solid #edc3bf;

  background: #fffafa;
  color: #b42318;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* =========================================================
   メッセージ
   ========================================================= */

.alert {
  margin-top: 20px;

  padding: 13px 15px;

  border-radius: 6px;

  font-size: 14px;
  line-height: 1.6;
}

.alert-info {
  border: 1px solid #c8d4e6;

  background: #f7f9fc;
  color: #40516b;
}

.alert-error {
  border: 1px solid #edc4c0;

  background: #fff7f6;
  color: #a42c20;
}

/* =========================================================
   科目・シラバス画面
   ========================================================= */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.sidebar-card,
.editor-card {
  min-height: 540px;
}

.empty-box,
.editor-placeholder {
  border: 1px dashed #cbd5df;
  border-radius: 7px;

  background: #fafbfc;
  color: #667085;

  font-size: 14px;
  line-height: 1.65;
}

.empty-box {
  padding: 16px;
}

.editor-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;

  min-height: 360px;

  padding: 24px;

  text-align: center;
}

.editor-placeholder strong {
  color: #344054;

  font-size: 16px;
}

.summary {
  display: grid;
  gap: 14px;

  margin: 22px 0 0;
  padding: 18px 0;

  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.summary dt {
  color: #7a8598;

  font-size: 12px;
}

.summary dd {
  margin: 3px 0 0;

  color: #26364f;

  font-size: 15px;
  font-weight: 800;

  overflow-wrap: anywhere;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  padding-top: 18px;

  color: #98a2b3;

  font-size: 12px;
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 1240px);
    padding-top: 22px;
  }

  .app-header,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .year-pill {
    align-self: flex-start;
  }

  .steps,
  .workspace,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .span-2 {
    grid-column: auto;
  }

  .office-time-row {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px 20px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }
}
/* =========================================================
   Initial registration redesign
   目的:
   - 名簿確認
   - 実務経験
   - 所在場所
   - オフィスアワー
   の4点だけを明確に見せる
   ========================================================= */

.shell {
  width: min(1180px, calc(100% - 48px));
}

.topbar {
  margin: 0 0 26px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e3e8ef;
}

.current-user {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.current-user strong {
  color: #172033;
  font-size: 16px;
}

.current-user span {
  color: #7b8494;
  font-size: 14px;
}

.setup-page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 10px 0 30px;
}

.setup-intro {
  margin-bottom: 28px;
}

.setup-kicker {
  margin: 0 0 5px;
  color: #2d5ca8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.setup-intro h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 28px;
  line-height: 1.35;
}

.setup-intro > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #647085;
  font-size: 15px;
  line-height: 1.75;
}

/* 名簿は入力欄ではなく「確認情報」として表示 */
.identity-confirm {
  margin-bottom: 8px;
  padding: 22px 24px;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  background: #fff;
}

.identity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.identity-heading h3 {
  margin: 0;
  color: #1d2b40;
  font-size: 17px;
}

.identity-heading > span {
  color: #7a8494;
  font-size: 12px;
}

.identity-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
}

.identity-item {
  display: grid;
  gap: 3px;
}

.identity-item > span {
  color: #7a8494;
  font-size: 12px;
}

.identity-item > strong {
  color: #182438;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.teacher-id-line {
  margin-top: 14px;
  color: #8a93a2;
  font-size: 12px;
}

/* 実際に登録する項目 */
.registration-section {
  padding: 26px 0;
  border-bottom: 1px solid #e7ebf0;
}

.registration-heading {
  margin-bottom: 14px;
}

.registration-heading h3 {
  margin: 0 0 3px;
  color: #172033;
  font-size: 18px;
  font-weight: 800;
}

.registration-heading p {
  margin: 0;
  color: #7a8494;
  font-size: 13px;
}

.registration-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.registration-columns .registration-section {
  border-bottom: 0;
}

.choice-row {
  min-height: 36px;
  gap: 30px;
}

.choice-option {
  gap: 8px;
  font-size: 16px;
}

.choice-option input[type="radio"] {
  width: 18px;
  height: 18px;
}

.conditional-field {
  margin-top: 16px;
  padding: 16px 18px;
  border: 0;
  border-radius: 7px;
  background: #f7f9fc;
}

.field textarea {
  min-height: 92px;
}

.registration-section .field input:not([type="radio"]):not([type="checkbox"]),
.registration-section .field textarea {
  min-height: 46px;
  border-radius: 6px;
  font-size: 15px;
}

.weekday-grid {
  gap: 7px;
}

.weekday-option {
  min-width: 58px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.office-time-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.office-time-row > span {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.office-time-row input {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #172033;
  font-size: 15px;
}

.office-time-row input:focus {
  border-color: #2e5fb8;
  box-shadow: 0 0 0 3px rgba(46, 95, 184, .12);
}

/* 最後の導線 */
.registration-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding-top: 24px;
}

.registration-submit p {
  margin: 0;
  color: #7a8494;
  font-size: 13px;
}

.registration-submit button {
  min-width: 154px;
}

/* 旧ステップ表示は初回設定では使用しない */
.setup-page + .steps {
  display: none;
}

@media (max-width: 820px) {
  .setup-page {
    padding-top: 0;
  }

  .setup-intro h2 {
    font-size: 24px;
  }

  .identity-grid,
  .registration-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .identity-grid {
    gap: 14px;
  }

  .registration-columns .registration-section {
    border-bottom: 1px solid #e7ebf0;
  }

  .registration-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-submit button {
    width: 100%;
  }
}

/* =========================================================
   初回設定：導線強化
   ========================================================= */

.setup-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1fr;
  align-items: center;
  gap: 14px;

  margin: 0 0 28px;
  padding: 16px 18px;

  border: 1px solid #dce3ec;
  border-radius: 8px;

  background: #ffffff;
}

.setup-flow-step {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.setup-flow-number,
.section-number {
  display: inline-grid;
  place-items: center;

  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  border-radius: 50%;

  background: #e9eef6;
  color: #526173;

  font-size: 13px;
  font-weight: 800;
}

.setup-flow-step.is-current .setup-flow-number,
.identity-heading .section-number,
.input-section-title .section-number,
.registration-next .section-number {
  background: #17345f;
  color: #ffffff;
}

.setup-flow-step strong {
  display: block;

  color: #23324a;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.setup-flow-step small {
  display: block;

  margin-top: 2px;

  color: #7b8494;

  font-size: 11px;
  line-height: 1.35;
}

.setup-flow-arrow {
  color: #a2aab8;
  font-size: 17px;
  font-weight: 700;
}

/* 名簿確認の番号 */
.identity-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 入力パートの見出し */
.input-section-title {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 30px;
  padding-bottom: 14px;

  border-bottom: 1px solid #e5eaf0;
}

.input-section-title h3 {
  margin: 0 0 2px;

  color: #172033;

  font-size: 19px;
  font-weight: 800;
}

.input-section-title p {
  margin: 0;

  color: #7b8494;

  font-size: 13px;
}

/* 入力ブロック間の階層を少し明確化 */
.registration-section {
  padding-top: 22px;
}

.registration-heading h3 {
  position: relative;

  padding-left: 12px;
}

.registration-heading h3::before {
  content: "";

  position: absolute;
  top: .28em;
  bottom: .28em;
  left: 0;

  width: 3px;

  border-radius: 2px;

  background: #8fa5c8;
}

/* 最後のCTA */
.registration-submit {
  margin-top: 8px;
  padding: 22px 0 0;

  border-top: 1px solid #e5eaf0;
}

.registration-next {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-right: auto;
}

.registration-next strong {
  display: block;

  color: #26364f;

  font-size: 14px;
  font-weight: 800;
}

.registration-next small {
  display: block;

  margin-top: 2px;

  color: #7b8494;

  font-size: 12px;
}

.registration-submit button {
  min-width: 210px;
}

@media (max-width: 820px) {
  .setup-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .setup-flow-arrow {
    display: none;
  }

  .setup-flow-step {
    padding: 4px 0;
  }

  .registration-submit {
    align-items: stretch;
  }

  .registration-next {
    margin-right: 0;
  }

  .registration-submit button {
    min-width: 0;
    width: 100%;
  }
}
/* ===== FONT SCALE OVERRIDE START ===== */

/* 全体の基準文字サイズ */
html {
  font-size: 17px;
}

body {
  font-size: 17px;
}

/* アプリタイトル */
.eyebrow {
  font-size: 14px;
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 19px;
}

/* 年度・ユーザー情報 */
.year-pill {
  font-size: 16px;
}

.current-user strong,
.topbar strong {
  font-size: 17px;
}

.current-user span,
.topbar > div {
  font-size: 15px;
}

/* 初回設定タイトル周辺 */
.setup-kicker {
  font-size: 14px;
}

.setup-intro h2 {
  font-size: 32px;
}

.setup-intro > p:last-child {
  font-size: 17px;
  line-height: 1.8;
}

/* 3段階導線 */
.setup-flow-step strong {
  font-size: 16px;
}

.setup-flow-step small {
  font-size: 13px;
  line-height: 1.45;
}

.setup-flow-number,
.section-number {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  font-size: 14px;
}

.setup-flow-arrow {
  font-size: 20px;
}

/* 名簿確認 */
.identity-heading h3 {
  font-size: 19px;
}

.identity-heading > span {
  font-size: 13px;
}

.identity-item > span {
  font-size: 14px;
}

.identity-item > strong {
  font-size: 21px;
}

.teacher-id-line {
  font-size: 14px;
}

/* 必要情報セクション */
.input-section-title h3 {
  font-size: 22px;
}

.input-section-title p {
  font-size: 15px;
}

.registration-heading h3 {
  font-size: 20px;
}

.registration-heading p {
  font-size: 15px;
  line-height: 1.6;
}

/* ラベル・入力欄 */
.field > label,
.field-label {
  font-size: 16px;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
.registration-section .field input:not([type="radio"]):not([type="checkbox"]),
.registration-section .field textarea,
.office-time-row input {
  font-size: 17px;
}

.field small {
  font-size: 14px;
}

.choice-option {
  font-size: 17px;
}

.choice-option input[type="radio"] {
  width: 19px;
  height: 19px;
}

/* 曜日・時間 */
.weekday-option {
  font-size: 16px;
  min-width: 64px;
}

.weekday-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
}

.office-time-row > span,
.office-time-row label {
  font-size: 16px;
}

/* 最後の導線 */
.registration-next strong {
  font-size: 16px;
}

.registration-next small {
  font-size: 14px;
}

.registration-submit button,
button {
  font-size: 16px;
}

/* Footer */
footer {
  font-size: 13px;
}

/* ===== FONT SCALE OVERRIDE END ===== */

/* ===== SEQUENTIAL REGISTRATION START ===== */

.sequential-setup {
  width: min(980px, 100%);
}

.sequential-setup .setup-intro {
  margin-bottom: 28px;
}

.sequence-section {
  position: relative;
  margin-bottom: 18px;
  padding: 26px 28px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #ffffff;
  transition:
    opacity .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.sequence-section.is-active {
  border-color: #c8d5e8;
}

.sequence-section.is-locked {
  opacity: .48;
  background: #f7f8fa;
}

.sequence-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sequence-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #17345f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.sequence-heading h3 {
  margin: 0 0 3px;
  color: #172033;
  font-size: 21px;
  line-height: 1.4;
}

.sequence-heading p {
  margin: 0;
  color: #778196;
  font-size: 15px;
}

.sequence-confirm .identity-confirm {
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fc;
}

.sequence-confirm .identity-item > span {
  font-size: 14px;
}

.sequence-confirm .identity-item > strong {
  font-size: 21px;
}

.sequence-confirm .teacher-id-line {
  margin-top: 12px;
  font-size: 13px;
}

.confirm-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #23324a;
  font-size: 16px;
  font-weight: 800;
}

.confirm-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #17345f;
}

.required-mark {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff0ed;
  color: #b42318;
  font-size: 11px;
  font-weight: 800;
  vertical-align: .15em;
}

.sequential-setup .choice-row {
  gap: 34px;
  padding-left: 48px;
}

.sequential-setup .choice-option {
  font-size: 17px;
}

.sequential-setup .conditional-field {
  margin: 18px 0 0 48px;
}

.registration-block {
  min-width: 0;
}

.sequential-setup .registration-columns {
  gap: 34px;
}

.sequential-setup .registration-heading h3 {
  padding-left: 12px;
  font-size: 19px;
}

.sequential-setup .registration-heading p {
  font-size: 14px;
}

.sequential-submit {
  margin-top: 26px;
  padding: 22px 0 0;
  border-top: 1px solid #dfe5ec;
}

.sequential-submit .sequence-number {
  background: #2f6b4f;
}

.sequential-submit button {
  min-width: 190px;
}

.sequential-submit button:disabled {
  background: #b7c0cd;
  color: #ffffff;
  opacity: 1;
}

.sequence-error {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #edc4c0;
  border-radius: 6px;
  background: #fff7f6;
}

@media (max-width: 820px) {
  .sequence-section {
    padding: 22px 18px;
  }

  .sequential-setup .choice-row,
  .sequential-setup .conditional-field {
    margin-left: 0;
    padding-left: 0;
  }

  .sequential-setup .registration-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ===== SEQUENTIAL REGISTRATION END ===== */

/* ===== PHASE 2-A2 WORKSPACE START ===== */

.phase2-loading {
  width: min(1180px, calc(100% - 48px));
  margin: 80px auto;
  color: #667085;
  font-size: 17px;
  text-align: center;
}

.phase2-error-card {
  width: min(760px, calc(100% - 48px));
  margin: 50px auto;
}

.phase2-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.subject-sidebar,
.subject-main {
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #ffffff;
}

.subject-sidebar {
  overflow: hidden;
}

.subject-sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #e5eaf0;
}

.subject-sidebar-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.subject-sidebar-header > span {
  margin-top: 5px;
  color: #7a8494;
  font-size: 13px;
}

.phase-label {
  display: inline-block;
  margin: 0;
  color: #2e5fb8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.subject-list {
  display: grid;
}

.subject-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 0;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #ffffff;
  color: #172033;
  text-align: left;
}

.subject-list-item:hover {
  background: #f7f9fc;
}

.subject-list-item.is-selected {
  background: #eef4fb;
  box-shadow: inset 4px 0 0 #17345f;
}

.subject-list-code {
  color: #7a8494;
  font-size: 12px;
  font-weight: 700;
}

.subject-list-item strong {
  font-size: 17px;
  line-height: 1.4;
}

.subject-list-meta {
  color: #667085;
  font-size: 13px;
}

.subject-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.subject-status.is-pending {
  background: #fff5df;
  color: #8a5a00;
}

.subject-status.is-ready {
  background: #eaf6ef;
  color: #276749;
}

.subject-list-empty {
  padding: 24px 20px;
  color: #667085;
  font-size: 14px;
}

.sidebar-profile-actions {
  padding: 18px 20px;
  background: #fafbfc;
}

.sidebar-profile-actions button {
  width: 100%;
}

.subject-main {
  min-height: 620px;
  padding: 30px 34px;
}

.subject-detail-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 500px;
  color: #667085;
  text-align: center;
}

.subject-detail-empty strong {
  margin-bottom: 6px;
  color: #344054;
  font-size: 20px;
}

.subject-detail-empty p {
  max-width: 460px;
  margin: 0;
  line-height: 1.7;
}

.subject-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5eaf0;
}

.subject-detail-header h2 {
  margin: 4px 0 3px;
  font-size: 28px;
}

.subject-code,
.subject-en {
  margin: 0;
}

.subject-code {
  color: #7a8494;
  font-size: 13px;
  font-weight: 700;
}

.subject-en {
  color: #667085;
  font-size: 15px;
}

.subject-master-panel {
  padding: 24px 0;
  border-bottom: 1px solid #e5eaf0;
}

.subject-master-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 22px;
}

.subject-master-grid > div {
  display: grid;
  gap: 3px;
}

.subject-master-grid span {
  color: #7a8494;
  font-size: 12px;
}

.subject-master-grid strong {
  color: #26364f;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.subject-master-wide {
  grid-column: 1 / -1;
}

.assignment-panel {
  padding: 28px 0 4px;
}

.assignment-heading {
  margin-bottom: 14px;
}

.assignment-heading h3 {
  margin: 4px 0 0;
  font-size: 21px;
}

.assignment-description {
  max-width: 700px;
  margin: 0 0 20px;
  color: #667085;
  font-size: 15px;
  line-height: 1.75;
}

.assignment-current-user {
  display: grid;
  gap: 4px;
  padding: 15px 18px;
  border-radius: 7px;
  background: #f7f9fc;
}

.assignment-current-user span,
.assignment-role > span {
  color: #7a8494;
  font-size: 12px;
}

.assignment-current-user strong,
.assignment-role > strong {
  font-size: 16px;
}

.assignment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.assignment-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.assignment-role {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid #e0e6ed;
  border-radius: 7px;
}

.assigned-member-list {
  margin: 7px 0 0;
  padding-left: 20px;
  color: #344054;
}

.member-editor {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e5eaf0;
}

.member-editor h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.member-editor > p {
  margin: 0 0 14px;
  color: #667085;
  font-size: 14px;
}

.member-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 320px;
  overflow-y: auto;
}

.member-check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.member-check-option:has(input:checked) {
  border-color: #8ca6ce;
  background: #f1f6fc;
}

.member-check-option input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: #17345f;
}

.member-check-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.member-check-option strong {
  font-size: 14px;
}

.member-check-option small {
  color: #7a8494;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.member-readonly-note {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #667085;
  font-size: 13px;
}

.phase2-next-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 8px;
  background: #f7f9fc;
}

.phase2-next-panel h3 {
  margin: 3px 0 3px;
  font-size: 19px;
}

.phase2-next-panel p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 980px) {
  .phase2-workspace {
    grid-template-columns: 1fr;
  }

  .subject-master-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .subject-main {
    padding: 24px 20px;
  }

  .subject-master-grid,
  .assignment-role-grid {
    grid-template-columns: 1fr;
  }

  .phase2-next-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===== PHASE 2-A2 WORKSPACE END ===== */

/* ===== PHASE 2-A3 MEMBER SEARCH START ===== */

.assigned-members {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.assigned-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f7f9fc;
}

.assigned-member-row > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.member-order {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #e6ecf5;
  color: #526173;
  font-size: 11px;
  font-weight: 800;
}

.assigned-member-row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.member-remove-button {
  min-height: 0;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #9c3d35;
  font-size: 12px;
}

.member-remove-button:hover {
  background: #fff0ee;
}

.member-editor-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e5eaf0;
}

.member-editor-compact h4 {
  margin: 0 0 3px;
  font-size: 17px;
}

.member-editor-compact p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.member-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .2);
}

.member-dialog::backdrop {
  background: rgba(15, 23, 42, .42);
}

.member-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: min(760px, calc(100vh - 48px));
}

.member-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e5eaf0;
}

.member-dialog-header h3 {
  margin: 4px 0 3px;
  font-size: 22px;
}

.member-dialog-header p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.dialog-close-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #fff;
  color: #526173;
  font-size: 22px;
  font-weight: 500;
}

.member-search-wrap {
  padding: 18px 26px 12px;
}

.member-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cfd7e2;
  border-radius: 7px;
  outline: none;
  font-size: 16px;
}

.member-search-wrap input:focus {
  border-color: #2e5fb8;
  box-shadow: 0 0 0 3px rgba(46, 95, 184, .12);
}

.member-dialog-list {
  display: grid;
  gap: 7px;
  min-height: 180px;
  max-height: 390px;
  padding: 4px 26px 18px;
  overflow-y: auto;
}

.member-search-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.member-search-option:hover {
  border-color: #aebed1;
  background: #fafcff;
}

.member-search-option:has(input:checked):not(.is-assigned) {
  border-color: #7f9ac5;
  background: #eef4fb;
}

.member-search-option.is-assigned {
  background: #f7f8fa;
  cursor: default;
}

.member-search-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #17345f;
}

.member-search-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.member-search-person strong {
  color: #24324a;
  font-size: 15px;
}

.member-search-person small {
  color: #7a8494;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.already-assigned-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf6ef;
  color: #276749;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.member-dialog-empty {
  padding: 24px 26px;
  color: #7a8494;
  font-size: 14px;
  text-align: center;
}

.member-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px 20px;
  border-top: 1px solid #e5eaf0;
  background: #fafbfc;
}

.member-dialog-footer > span {
  color: #526173;
  font-size: 13px;
  font-weight: 700;
}

.member-dialog-footer > div {
  display: flex;
  gap: 9px;
}

@media (max-width: 640px) {
  .member-editor-compact,
  .member-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .member-editor-compact button {
    width: 100%;
  }

  .member-dialog-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== PHASE 2-A3 MEMBER SEARCH END ===== */

/* ===== PHASE 2-B BASIC SETTINGS START ===== */

.syllabus-basic-panel {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #dfe5ec;
}

.basic-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.basic-panel-heading h3 {
  margin: 4px 0 3px;
  font-size: 23px;
}

.basic-panel-heading p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.editable-badge,
.readonly-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.editable-badge {
  background: #eaf6ef;
  color: #276749;
}

.readonly-badge {
  background: #eef1f5;
  color: #667085;
}

.basic-readonly-notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f7f8fa;
  color: #667085;
  font-size: 13px;
}

.basic-settings-stack {
  display: grid;
  gap: 18px;
}

.basic-setting-section {
  padding: 24px 26px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: #ffffff;
}

.basic-setting-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.basic-setting-title > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #17345f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.basic-setting-title h4 {
  margin: 0 0 3px;
  color: #172033;
  font-size: 19px;
}

.basic-setting-title p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.db-default-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 7px;
  background: #f7f9fc;
}

.db-default-box > span {
  color: #7a8494;
  font-size: 12px;
  white-space: nowrap;
}

.default-format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.default-format-list strong {
  padding: 5px 10px;
  border: 1px solid #b7c7dd;
  border-radius: 999px;
  background: #ffffff;
  color: #17345f;
  font-size: 13px;
}

.default-format-list em {
  color: #7a8494;
  font-size: 13px;
  font-style: normal;
}

.additional-format-block {
  display: grid;
  gap: 10px;
}

.basic-subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.basic-subheading strong {
  font-size: 14px;
}

.basic-subheading span {
  color: #667085;
  font-size: 12px;
}

.basic-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.basic-choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 72px;
  padding: 9px 12px;
  border: 1px solid #cfd7e2;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.basic-choice-chip:has(input:checked) {
  border-color: #7694c2;
  background: #eef4fb;
  color: #17345f;
}

.basic-choice-chip:has(input:disabled) {
  opacity: .55;
  cursor: not-allowed;
}

.basic-choice-chip input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #17345f;
}

.basic-choice-chip span {
  font-size: 14px;
  font-weight: 700;
}

.basic-help {
  margin: 0;
  color: #7a8494;
  font-size: 12px;
}

.active-none-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
  padding: 13px 14px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #fafbfc;
  cursor: pointer;
}

.active-none-option:has(input:checked) {
  border-color: #7694c2;
  background: #eef4fb;
}

.active-none-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #17345f;
}

.active-none-option span {
  display: grid;
  gap: 2px;
}

.active-none-option strong {
  font-size: 14px;
}

.active-none-option small {
  color: #667085;
  font-size: 12px;
}

.active-learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.active-learning-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.active-learning-option:hover {
  border-color: #b6c2d1;
}

.active-learning-option:has(input:checked) {
  border-color: #7694c2;
  background: #f1f6fc;
}

.active-learning-option input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #17345f;
}

.active-learning-option > span {
  display: grid;
  gap: 3px;
}

.active-learning-option strong {
  font-size: 14px;
}

.active-learning-option small {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.conditional-basic-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 15px 16px;
  border-radius: 7px;
  background: #f7f9fc;
}

.conditional-basic-field.is-hidden {
  display: none;
}

.conditional-basic-field label {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.conditional-basic-field textarea,
.conditional-basic-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd7e2;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  font-size: 15px;
}

.conditional-basic-field textarea {
  min-height: 88px;
  resize: vertical;
}

.conditional-basic-field textarea:focus,
.conditional-basic-field input:focus {
  border-color: #2e5fb8;
  box-shadow: 0 0 0 3px rgba(46, 95, 184, .12);
}

.ict-explanation {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 3px solid #9db1cf;
  background: #f7f9fc;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.basic-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.basic-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.basic-radio-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #17345f;
}

.language-chip-grid {
  margin-bottom: 2px;
}

.basic-settings-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf0;
}

.basic-settings-message {
  margin-right: auto;
  padding: 9px 12px;
  border-radius: 6px;
  background: #eaf6ef;
  color: #276749;
  font-size: 13px;
  font-weight: 700;
}

.basic-settings-message.is-error {
  background: #fff0ee;
  color: #b42318;
}

@media (max-width: 760px) {
  .active-learning-grid {
    grid-template-columns: 1fr;
  }

  .basic-setting-section {
    padding: 20px 18px;
  }

  .basic-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .basic-settings-message {
    margin-right: 0;
  }

  .basic-settings-footer button {
    width: 100%;
  }
}

/* ===== PHASE 2-B BASIC SETTINGS END ===== */

/* ===== PHASE 2-B REFINEMENT START ===== */

.basic-settings-topbar {
  margin-bottom: 20px;
}

.basic-settings-topbar button {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
}

.active-learning-choices {
  margin-top: 16px;
}

.active-learning-choices.is-hidden {
  display: none;
}

.active-learning-help {
  margin-bottom: 10px;
}

.active-learning-presence {
  padding: 4px 0;
}

/* Phase 2-Bは独立表示なので、縦方向の継ぎ足し感を抑える */
.syllabus-basic-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* overview側の次工程パネル */
.phase2-next-panel {
  margin-top: 28px;
}

/* ===== PHASE 2-B REFINEMENT END ===== */

/* ===== PHASE 2-B DEFINITIVE FIX START ===== */

.active-learning-choices {
  margin-top: 16px;
}

.active-learning-choices.is-hidden {
  display: none !important;
}

.active-learning-presence {
  padding: 4px 0;
}

.active-learning-help {
  margin: 0 0 10px;
}

.basic-subheading > span {
  color: #526173;
  font-weight: 700;
}

/* ===== PHASE 2-B DEFINITIVE FIX END ===== */

/* ===== GLOBAL READABILITY OVERRIDE START ===== */

/*
 * 全画面共通の可読性向上
 * 年配ユーザーを含む教職員利用を想定
 */

html {
  font-size: 18px;
}

body {
  font-size: 18px;
  line-height: 1.72;
}

/* ---------------------------------------------------------
   タイトル・見出し
   --------------------------------------------------------- */

.eyebrow {
  font-size: 15px;
}

h1 {
  font-size: 40px;
  line-height: 1.25;
}

h2 {
  font-size: 30px;
  line-height: 1.35;
}

h3 {
  font-size: 22px;
  line-height: 1.4;
}

h4 {
  font-size: 18px;
  line-height: 1.45;
}

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */

.year-pill {
  font-size: 17px;
}

.current-user strong,
.topbar strong {
  font-size: 18px;
}

.current-user span,
.topbar > div {
  font-size: 16px;
}

/* ---------------------------------------------------------
   本文・説明文
   --------------------------------------------------------- */

.muted,
.setup-intro > p:last-child,
.assignment-description,
.basic-panel-heading p,
.basic-setting-title p,
.member-editor-compact p,
.phase2-next-panel p {
  font-size: 16px;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   ボタン
   --------------------------------------------------------- */

button,
button.primary,
button.secondary,
button.danger {
  min-height: 48px;
  padding: 11px 18px;
  font-size: 17px;
  line-height: 1.35;
}

.dialog-close-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  font-size: 24px;
}

/* ---------------------------------------------------------
   入力欄
   --------------------------------------------------------- */

input,
select,
textarea {
  font-size: 17px;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
.registration-section .field input:not([type="radio"]):not([type="checkbox"]),
.registration-section .field textarea,
.office-time-row input,
.member-search-wrap input,
.conditional-basic-field textarea,
.conditional-basic-field input {
  min-height: 50px;
  font-size: 17px;
  line-height: 1.55;
}

.field > label,
.field-label,
.conditional-basic-field label {
  font-size: 16px;
}

.field small,
.basic-help {
  font-size: 14px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   初回登録
   --------------------------------------------------------- */

.setup-kicker {
  font-size: 15px;
}

.setup-intro h2 {
  font-size: 32px;
}

.sequence-heading h3 {
  font-size: 23px;
}

.sequence-heading p {
  font-size: 16px;
}

.identity-item > span,
.sequence-confirm .identity-item > span {
  font-size: 15px;
}

.identity-item > strong,
.sequence-confirm .identity-item > strong {
  font-size: 22px;
}

.teacher-id-line,
.sequence-confirm .teacher-id-line {
  font-size: 14px;
}

.confirm-check {
  font-size: 17px;
}

.choice-option,
.sequential-setup .choice-option {
  font-size: 18px;
}

.choice-option input[type="radio"],
.confirm-check input {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------
   Phase 2 担当科目
   --------------------------------------------------------- */

.phase-label {
  font-size: 14px;
}

.subject-sidebar-header h2 {
  font-size: 26px;
}

.subject-sidebar-header > span {
  font-size: 14px;
}

.subject-list-code {
  font-size: 13px;
}

.subject-list-item strong {
  font-size: 18px;
}

.subject-list-meta {
  font-size: 15px;
}

.subject-status {
  font-size: 12px;
  padding: 4px 9px;
}

.subject-detail-header h2 {
  font-size: 31px;
}

.subject-code {
  font-size: 14px;
}

.subject-en {
  font-size: 17px;
}

.subject-detail-empty strong {
  font-size: 22px;
}

.subject-detail-empty p {
  font-size: 16px;
}

/* ---------------------------------------------------------
   科目マスタ表示
   --------------------------------------------------------- */

.subject-master-grid span {
  font-size: 14px;
}

.subject-master-grid strong {
  font-size: 17px;
}

.assignment-heading h3 {
  font-size: 23px;
}

.assignment-current-user span,
.assignment-role > span {
  font-size: 14px;
}

.assignment-current-user strong,
.assignment-role > strong {
  font-size: 18px;
}

/* ---------------------------------------------------------
   共同担当者
   --------------------------------------------------------- */

.assigned-member-row strong {
  font-size: 16px;
}

.member-remove-button {
  font-size: 14px;
}

.member-editor-compact h4 {
  font-size: 19px;
}

.member-dialog-header h3 {
  font-size: 24px;
}

.member-dialog-header p {
  font-size: 15px;
}

.member-search-person strong {
  font-size: 17px;
}

.member-search-person small {
  font-size: 14px;
}

.already-assigned-badge {
  font-size: 12px;
}

.member-dialog-footer > span {
  font-size: 15px;
}

/* ---------------------------------------------------------
   Phase 2-B シラバス基本設定
   --------------------------------------------------------- */

.basic-panel-heading h3 {
  font-size: 26px;
}

.editable-badge,
.readonly-badge {
  font-size: 12px;
}

.basic-readonly-notice {
  font-size: 15px;
}

.basic-setting-title > span {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 15px;
}

.basic-setting-title h4 {
  font-size: 21px;
}

.db-default-box > span {
  font-size: 14px;
}

.default-format-list strong {
  font-size: 15px;
}

.basic-subheading strong {
  font-size: 16px;
}

.basic-subheading span {
  font-size: 14px;
}

.basic-choice-chip {
  min-width: 82px;
  padding: 10px 14px;
}

.basic-choice-chip span {
  font-size: 16px;
}

.basic-choice-chip input,
.active-learning-option input,
.basic-radio-row input {
  width: 19px;
  height: 19px;
}

/* ---------------------------------------------------------
   Active Learning
   --------------------------------------------------------- */

.active-none-option strong {
  font-size: 16px;
}

.active-none-option small {
  font-size: 14px;
}

.active-learning-option strong {
  font-size: 16px;
}

.active-learning-option small {
  font-size: 14px;
  line-height: 1.65;
}

.basic-radio-row label {
  font-size: 17px;
}

/* ---------------------------------------------------------
   ICT説明
   --------------------------------------------------------- */

.ict-explanation {
  font-size: 15px;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   メッセージ・補助表示
   --------------------------------------------------------- */

.basic-settings-message,
.form-error,
.alert,
.member-readonly-note {
  font-size: 14px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

footer {
  font-size: 14px;
}

/* ---------------------------------------------------------
   画面幅が狭い場合
   --------------------------------------------------------- */

@media (max-width: 820px) {
  html {
    font-size: 17px;
  }

  body {
    font-size: 17px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 21px;
  }

  .setup-intro h2 {
    font-size: 28px;
  }

  .subject-detail-header h2 {
    font-size: 27px;
  }
}

/* ===== GLOBAL READABILITY OVERRIDE END ===== */

/* ===== PHASE 2-C STEP 3 NAVIGATION START ===== */

.basic-settings-topbar,
.content-screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.content-screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.content-screen-heading h3 {
  margin: 4px 0 4px;
  font-size: 26px;
}

.content-screen-heading p {
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.content-placeholder-card {
  padding: 28px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  background: #ffffff;
}

.content-placeholder-card > strong {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 21px;
}

.content-placeholder-card > p {
  margin: 0 0 24px;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.content-placeholder-subject {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border-radius: 7px;
  background: #f7f9fc;
}

.content-placeholder-subject span {
  color: #7a8494;
  font-size: 14px;
}

.content-placeholder-subject strong {
  color: #24324a;
  font-size: 18px;
}

.content-placeholder-subject small {
  color: #667085;
  font-size: 14px;
}

@media (max-width: 700px) {
  .basic-settings-topbar,
  .content-screen-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .basic-settings-topbar button,
  .content-screen-topbar button {
    width: 100%;
  }
}

/* ===== PHASE 2-C STEP 3 NAVIGATION END ===== */

/* ===== BASIC SETTINGS ACTION BAR START ===== */

.basic-settings-topbar {
  justify-content: flex-start;
}

.basic-settings-actionbar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #d6dee9;
  border-radius: 9px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(30, 48, 76, .12);
  backdrop-filter: blur(6px);
}

.basic-settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.basic-settings-actions button {
  min-height: 50px;
}

@media (max-width: 760px) {
  .basic-settings-actionbar {
    position: static;
  }

  .basic-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .basic-settings-actions button {
    width: 100%;
  }
}

/* ===== BASIC SETTINGS ACTION BAR END ===== */

/* ===== PHASE 2-C STEP 4 CONTENT FORM START ===== */

.content-form-stack {
  display: grid;
  gap: 18px;
}

.content-form-section {
  padding: 24px 26px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: #ffffff;
}

.content-form-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.content-form-title > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #17345f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.content-form-title h4 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 21px;
  line-height: 1.45;
}

.content-form-title p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.content-form-section textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cfd7e2;
  border-radius: 7px;
  outline: none;
  background: #ffffff;
  color: #172033;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.75;
  resize: vertical;
}

.content-form-section textarea:focus {
  border-color: #2e5fb8;
  box-shadow: 0 0 0 3px rgba(46, 95, 184, .12);
}

.content-form-section textarea:disabled {
  background: #f7f8fa;
  color: #667085;
  cursor: not-allowed;
}

.content-large-textarea {
  min-height: 170px;
}

.content-medium-textarea {
  min-height: 125px;
}

.learning-goal-step-placeholder {
  padding: 18px 20px;
  border: 1px dashed #9eb0c8;
  border-radius: 8px;
  background: #f7f9fc;
}

.learning-goal-step-placeholder strong {
  display: block;
  margin-bottom: 5px;
  color: #24324a;
  font-size: 17px;
}

.learning-goal-step-placeholder p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.7;
}

.content-step-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 7px;
  background: #f7f9fc;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.content-step-notice strong {
  color: #17345f;
}

@media (max-width: 700px) {
  .content-form-section {
    padding: 20px 18px;
  }

  .content-step-notice {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== PHASE 2-C STEP 4 CONTENT FORM END ===== */
