/**
 * ------------------------------
 * tl-dashboard.css
 * ------------------------------
 * @purpose
 * ダッシュボード以下のページのcss
 *
 * @pages
 * ・まなびの記録(TLダッシュボード)
 *  ・まなびの記録
 *  ・クイズ回答履歴
 *  ・お気に入りの講座
 *  ・注文履歴
 *  ・設定
 *
 * @note
 * .wm-css：自作cssは区別のため、ラッパーコンテナにwm-cssクラスを付している
 *
 * @version
 * 1.0.4
 */

/**
 * ----------------------------------------
 *  # (共通)全ページ
 * ----------------------------------------
 */

/***
  * [講座カード]
  */
/*TODO -  ⇩なんのことかわからないので調査 */

div.tutor-meta.tutor-mt-auto {
  display: none !important;
}

/**
 * ----------------------------------------
 *  # TLメニュー > まなびの記録ページ
 * ----------------------------------------
 */

/***
 * [いま学んでいること]
 */

/* カードリンク感を出す */
.tutor-course-progress-item {
  cursor: pointer;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf5;

  /* 通常時からほんのり浮かせる */
  box-shadow:
    0 2px 10px rgba(1, 43, 102, 0.04),
    0 2px 10px rgba(1, 43, 102, 0.03);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
/* hover時 */
.tutor-course-progress-item:hover {
  transform: translateY(-2px);
  border-color: #cfd6e1;
  box-shadow:
    0 3px 14px rgba(1, 43, 102, 0.08),
    0 ３px 14px rgba(1, 43, 102, 0.07);
}
/* 押下時 */
.tutor-course-progress-item:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(1, 43, 102, 0.05);
}
/* 押した瞬間 */
.tutor-course-progress-item:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
/* レビューを非表示 */
.tutor-course-progress-item .tutor-ratings {
  display: none !important;
}
/* コース数を非表示 */
body.wm-dashboard-home
  .tutor-dashboard-content
  > .tutor-dashboard-content-inner {
  display: none !important;
}
/* 画像エリアごと非表示 :sp */
@media screen and (max-width: 768px) {
  .tutor-frontend-dashboard-course-progress
    .tutor-course-progress-item
    .tutor-col-lg-4 {
    display: none !important;
  }
  .tutor-frontend-dashboard-course-progress
    .tutor-course-progress-item
    .tutor-col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .tutor-frontend-dashboard-course-progress
    .tutor-course-progress-item
    .tutor-card-body {
    padding: 18px 20px !important;
  }
  .tutor-frontend-dashboard-course-progress .tutor-course-progress-item {
    min-height: auto !important;
  }
  .tutor-frontend-dashboard-course-progress
    .tutor-course-progress-item
    .tutor-mb-32 {
    margin-bottom: 16px !important;
  }
}

/***
 * [(共通) さらに深める…・まなびの本棚]
 */

/* セクション見出し：アプリ寄りに調整 */
#wm-dashboard-deepen h2,
#wm-dashboard-bookshelf h2 {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 22px;
  padding: 0 0 12px;

  background: transparent !important;
  border-bottom: 1px solid #e5e7eb;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
#wm-dashboard-deepen h2::before,
#wm-dashboard-bookshelf h2::before {
  content: "";
  display: block;
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: #5474a3;
}

/***
 * [さらに深める…]
 */
#wm-dashboard-deepen {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
#wm-dashboard-deepen h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}
#wm-dashboard-deepen p {
  margin: 0 0 16px;
  color: #555;
  line-height: 1.8;
}
#wm-dashboard-deepen a.deepen_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #5474a3;
  color: #fff;
  text-decoration: none;
}
/* CTAボタン：中央・横長化 */
#wm-dashboard-deepen > div {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
#wm-dashboard-deepen a.deepen_btn {
  width: min(100%, 420px);
  min-height: 52px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
}
/* CTAボタン：少し浮かせる・丸み長方形 */
#wm-dashboard-deepen a.deepen_btn {
  border-radius: 14px;
  box-shadow:
    0 6px 16px rgba(84, 116, 163, 0.22),
    0 2px 6px rgba(84, 116, 163, 0.16);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}
#wm-dashboard-deepen a.deepen_btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 9px 22px rgba(84, 116, 163, 0.26),
    0 3px 8px rgba(84, 116, 163, 0.18);
}
#wm-dashboard-deepen a.deepen_btn:active {
  transform: translateY(0);
  opacity: 0.88;
}

/***
 * [まなびの本棚]
 */

/* 横長・縦積みにする :pc,sp*/
.tutor-dashboard-content-inner .tutor-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 各カード幅を100%にする */
.tutor-dashboard-content-inner .tutor-col-lg-6,
.tutor-dashboard-content-inner .tutor-col-xl-4 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;

  margin-bottom: 0 !important;
}
/* カード本体を横長の情報表示にする */
.tutor-dashboard-content-inner .tutor-card {
  box-shadow: none !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
/* 中身を横並び・低めにする */
.tutor-dashboard-content-inner .tutor-card > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  text-align: left !important;
  padding: 12px 16px !important;
}
/* アイコンを小さめに */
.tutor-dashboard-content-inner .tutor-round-box {
  width: 40px !important;
  height: 40px !important;
  margin: 0 14px 0 0 !important;
  flex: 0 0 40px;
}
/* ラベル */
.tutor-dashboard-content-inner .tutor-fs-7 {
  font-size: 13px !important;
  color: #555 !important;
}
/* PC側の大きい数字を非表示 */
.tutor-dashboard-content-inner .tutor-d-lg-block {
  display: none !important;
}
/* スマホ側用の右端数字をPCでも表示 */
.tutor-dashboard-content-inner .tutor-d-lg-none {
  display: block !important;
  margin-left: auto !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #222 !important;
}
/* 表示調整 */
#wm-dashboard-bookshelf {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
#wm-dashboard-bookshelf h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}
#wm-bookshelf-content > p {
  margin: 0;
  color: #666;
  line-height: 1.8;
}
/* 本棚内のタブ余白 */
#wm-dashboard-bookshelf .tutor-mb-32 {
  margin-bottom: 20px !important;
}
/* 本棚内カード：まずはTutor標準を少し整える */
#wm-dashboard-bookshelf .tutor-grid {
  gap: 18px;
}
#wm-dashboard-bookshelf .tutor-course-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
/* レビューは本棚でも非表示 */
#wm-dashboard-bookshelf .tutor-course-ratings {
  display: none !important;
}
/* タブを整える */
#wm-dashboard-bookshelf .tutor-nav {
  display: flex !important;
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
}
#wm-dashboard-bookshelf .tutor-nav-item {
  flex: 1;
  text-align: center;
}
#wm-dashboard-bookshelf .tutor-nav-link {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 6px !important;
  font-size: 14px;
  white-space: nowrap;
}

/* タブを横3列に固定 :sp */
@media screen and (max-width: 768px) {
  #wm-dashboard-bookshelf .tutor-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
  }
  #wm-dashboard-bookshelf .tutor-nav-link {
    font-size: 12px;
    padding: 10px 2px !important;
    letter-spacing: 0;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 10px;
    padding: 18px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-title,
  #wm-dashboard-bookshelf .tutor-course-card .tutor-course-name,
  #wm-dashboard-bookshelf .tutor-course-card h3 {
    grid-column: 1;
    grid-row: 1;
    font-size: 15px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-progress-bar {
    grid-column: 1;
    grid-row: 3;
    max-width: 100%;
  }
  #wm-dashboard-bookshelf .tutor-course-card a.tutor-btn {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    min-width: 130px;
    min-height: 38px;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}
/* カードを横長UIへ */
#wm-dashboard-bookshelf .tutor-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
#wm-dashboard-bookshelf .tutor-course-card {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  min-height: 150px;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
#wm-dashboard-bookshelf .tutor-course-card:hover {
  transform: translateY(-2px);
  border-color: #cfd6e1;
  box-shadow: 0 3px 14px rgba(1, 43, 102, 0.08);
}
#wm-dashboard-bookshelf .tutor-course-card .tutor-course-thumbnail {
  flex: 0 0 260px;
  max-width: 260px;
}
#wm-dashboard-bookshelf .tutor-course-card .tutor-card-body {
  flex: 1;
  padding: 24px !important;
}
/* カードを横長UIへ(カード内のボタンが変な縦長になる場合の補正) */
#wm-dashboard-bookshelf .tutor-course-card a.tutor-btn {
  writing-mode: horizontal-tb !important;
  min-width: 150px;
  border-radius: 999px;
}
/* カードを横長UIへ(画像なし・横幅いっぱい :sp) */
@media screen and (max-width: 768px) {
  #wm-dashboard-bookshelf .tutor-course-card {
    min-height: auto;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-course-thumbnail {
    display: none !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-body {
    padding: 18px 20px !important;
  }
}
/* カードを横長UIへ(本棚内の余計な画像領域は非表示前提) */
#wm-dashboard-bookshelf .tutor-course-thumbnail,
#wm-dashboard-bookshelf .tutor-ratio {
  display: none !important;
}
/* カードの表示崩れ対策 */
#wm-dashboard-bookshelf .tutor-course-card {
  min-height: 128px !important;
  padding: 0 !important;
}
#wm-dashboard-bookshelf .tutor-course-card .tutor-card-body {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 12px 22px !important;
  padding: 28px 32px !important;
}
#wm-dashboard-bookshelf .tutor-course-card h3,
#wm-dashboard-bookshelf .tutor-course-card .tutor-course-name,
#wm-dashboard-bookshelf .tutor-course-card .tutor-card-title {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}
#wm-dashboard-bookshelf .tutor-course-card .tutor-progress-bar {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 220px !important;
  max-width: 100% !important;
  margin: 0 !important;
}
#wm-dashboard-bookshelf .tutor-course-card a.tutor-btn {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  justify-self: end !important;
  align-self: center !important;
  min-width: 170px !important;
  height: 46px !important;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
}
/* カードの表示崩れ対策(進捗テキストの詰まり対策) */
#wm-dashboard-bookshelf .tutor-course-card .tutor-fs-7,
#wm-dashboard-bookshelf .tutor-course-card .tutor-color-muted,
#wm-dashboard-bookshelf .tutor-course-card .tutor-fw-medium {
  line-height: 1.6 !important;
  white-space: nowrap !important;
}
/* カードの表示崩れ対策 :pc */
@media screen and (min-width: 769px) {
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 14px !important;
    padding: 30px 40px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card h3,
  #wm-dashboard-bookshelf .tutor-course-card .tutor-course-name,
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-progress-bar {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 280px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card a.tutor-btn {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: center !important;

    width: min(100%, 420px) !important;
    height: 42px !important;
    min-width: 0 !important;
    padding: 0 24px !important;

    font-size: 14px !important;
    border-radius: 999px !important;
  }
  /* CTAボタン中央寄せ */
  #wm-dashboard-bookshelf .tutor-course-card .tutor-mt-24 {
    width: 100% !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .list-item-button {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .list-item-button .tutor-btn {
    width: 420px !important;
    max-width: 100% !important;
  }
}
/* カードの表示崩れ対策 :sp */
@media screen and (max-width: 768px) {
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-body {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 10px !important;
    padding: 18px 18px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card h3,
  #wm-dashboard-bookshelf .tutor-course-card .tutor-course-name,
  #wm-dashboard-bookshelf .tutor-course-card .tutor-card-title {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 15px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card a.tutor-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    min-width: 150px !important;
    height: 38px !important;
    font-size: 13px !important;
  }
  #wm-dashboard-bookshelf .tutor-course-card .tutor-progress-bar {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 140px !important;
  }
}

/**
 * ----------------------------------------
 *  # TLメニュー > クイズ回答履歴
 * ----------------------------------------
 */
/***
 * [記録をカード化]
 */
/* ヘッダー非表示 */
.tutor-table-quiz-attempts thead {
  display: none !important;
}
/* テーブル感を消す */
.tutor-table-quiz-attempts,
.tutor-table-quiz-attempts tbody {
  display: block;
  width: 100%;
}
/* 各回答履歴をカード化 */
.tutor-table-quiz-attempts tbody tr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.tutor-table-quiz-attempts tbody tr:hover {
  transform: translateY(-2px);
  border-color: #cfd6e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.tutor-table-quiz-attempts tbody tr:active {
  transform: translateY(0);
}
/* 表示するのは「クイズ情報」「結果」だけ */
.tutor-table-quiz-attempts
  td:not([data-title="クイズ情報"]):not([data-title="結果"]):not(
    [data-title="詳細"]
  ) {
  display: none !important;
}
/* 詳細ボタン自体は非表示。リンク先だけJSで使う */
.tutor-table-quiz-attempts td[data-title="詳細"] {
  display: none !important;
}
/* クイズ情報 */
.tutor-table-quiz-attempts td[data-title="クイズ情報"] {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
}
/* 結果 */
.tutor-table-quiz-attempts td[data-title="結果"] {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;

  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap;
}
/* 「受講者」行は不要なら非表示 */
.tutor-table-quiz-attempts td[data-title="クイズ情報"] .tutor-fs-7.tutor-mt-8 {
  display: none !important;
}
