/* ------------------------------------------------------------------
   スタ塾 教材Web版 — シェルだけを補うスタイル。

   ★重要★ カード・教材本文・立ち絵・動画枠・学習画面のレイアウト
   （.course-wrapper / .course-memu / .course-content / .menu /
     .learning-content / .video-wrapper / .well-done など）は
   すべて lms-style.css（LMS実物）が持っている。ここでは絶対に上書きしないこと。
   このファイルは LMS に無いものだけを足す：
     ・サイトヘッダー（一覧画面用）
     ・button-navigation（LMSではVueコンポーネント）
     ・LMSが button だった箇所を <a> に置き換えたぶんの見た目合わせ
     ・アクティビティの入力UI
   ------------------------------------------------------------------ */

:root { --shell-header: 65px; }

body { margin: 0; background: #efefef; }

/* サイトヘッダー（一覧画面のみ。学習画面では出さない） ------------ */
.user-header-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--shell-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: #fff;
}
.user-header-top-left .logo { height: 46px; width: auto; display: block; }

/* ナビゲーションボタン ------------------------------------------- */
.button-navigation {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 9999px;
  background: #3e4552; color: #fff; font-weight: 700; font-size: .875rem;
  text-decoration: none; white-space: nowrap;
}
.button-navigation:hover { opacity: .88; }
.button-navigation.forward::after { content: "›"; font-size: 1.1em; line-height: 1; }
.button-navigation.back::before   { content: "‹"; font-size: 1.1em; line-height: 1; }

/* LMSが button だった箇所を <a> にしたぶんの調整 ------------------ */
a.chapter-button, a.part-tab, a.time-button { text-decoration: none; color: inherit; display: inline-flex; }
a.chapter-button { display: flex; }
a.time-button { align-items: center; justify-content: center; }
.time-button.is-disabled { opacity: .45; pointer-events: none; }

.course-selection.course .course-body .part-panel .chapters .chapters-list .chapter-button .chapter-info .chapter-summary {
  margin-top: 4px; font-size: .8125rem; color: #767676; line-height: 1.5;
}

/* ステップ一覧のリンク色は素のままにする（色は .text-course / .done が決める） */
.course-memu .step-item a { color: inherit; text-decoration: none; }
.course-memu .step-item:hover { opacity: .75; }

/* Well done! のボタンは LMS では <button>。ここは <a> なので同じ見た目を与える */
.learning-content .well-done .content-well-done > a {
  width: 50%; background-color: #3e4552; height: 45px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; text-decoration: none;
}
.learning-content .well-done .content-well-done > a .button { display: flex; align-items: center; justify-content: center; }
.learning-content .well-done .content-well-done > a .button span { color: #fff; font-size: 15px; font-weight: 700; }
.learning-content .well-done .content-well-done > a img { position: absolute; right: 15px; }

.learning-back { margin: 10px 0 40px; font-size: .875rem; }
.learning-back a { color: #767676; text-decoration: none; }
.learning-back a:hover { text-decoration: underline; }

/* アクティビティの入力UI（LMS側に定義がない自前パーツ） ----------- */
.video-meta, .step__scene { font-size: .75rem; color: #999; }
.activity__textarea, .activity__text, .activity__select, .activity__file {
  width: 100%; max-width: 720px; padding: 10px 12px;
  border: 2px solid #d5d5d5; border-radius: 8px; font-size: 1rem;
}
.activity__submit, .quiz__check {
  margin-top: 12px; padding: 10px 24px; border: 0; border-radius: 9999px;
  background: #42afa5; color: #fff; font-weight: 700; cursor: pointer;
}
.activity__hint { font-size: .8125rem; color: #767676; }
.step__empty { color: #999; }

/* クイズの採点結果（LMSはサーバー採点なのでこの部分だけ自前） -------- */
.learning-content .exam .question-box .answer-content { margin-top: 18px; }
.learning-content .exam .question-box .answer-content .result.correct { color: #db466e; font-size: 24px; font-weight: 700; margin: 18px 0; }
.learning-content .exam .question-box .answer-content .result.wrong   { color: #0069bb; font-size: 24px; font-weight: 700; margin: 18px 0; }
.learning-content .exam .question-box .answer-content .explanation { background: #fff; border-radius: 10px; padding: 18px; }
.learning-content .quiz-score { text-align: center; font-weight: 700; font-size: 18px; margin-top: 18px; }

/* 章末テスト（LMSでは別レイヤーのJSでモーダルを出している部分だけ自前） ---- */
.sj-modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: #3e45527a; overflow: auto;
}
.sj-modal[hidden] { display: none; }
.sj-modal .modalInner { width: 600px; max-width: 86%; }
.chapter-test .c_steps li.done a { opacity: .75; }
.chapter-test .js-records .c_tb_r { display: flex; overflow-x: auto; }
.chapter-test .report_bot .accordion_head.is_active + div { max-height: 5000px; }
