/* ====================================================
 * learning_contents.css
 * learning_contents ビューで使用するCSSを抽出したファイル
 * 元ファイル: user_page_add.css, user_page.css
 * ==================================================== */
/* --------------------------------------------------
 * 課題ボタン
 * 元: user_page_add.css
 * -------------------------------------------------- */

.exam__task__btn {
  max-width: 270px;
  margin: 0;
}

.exam__task__btn a {
  padding: 8px 16px;
  border-radius: 12px;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--button-text);
  white-space: nowrap;
  transition: 0.3s;
}

.exam__task__btn a:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
}

.exam__task__btn a::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url(/assets/img/arrow-right-bb970f3817fb5e3ffd68fd2a26c78201a6e145396c0bb24179b839b77edbe8a3.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.exam__task__btn--disabled a {
  background-color: var(--disabled);
  color: var(--button-text);
  cursor: not-allowed;
  pointer-events: none;
}


/* --------------------------------------------------
 * 動画一覧 (verify) 両端揃え対策
 * 元: user_page_add.css
 * -------------------------------------------------- */

.play::before,
.verify::before {
  content: "";
  display: block;
  width: 24.42%;
  order: 1;
}

.play::after,
.verify::after {
  content: "";
  display: block;
  width: 24.42%;
}


/* --------------------------------------------------
 * パスワード認証画面: 送信ボタン
 * 元: user_page_add.css
 * -------------------------------------------------- */

.portfolio__share__link__input {
  font-size: 1em;
  display: flex;
  justify-content: flex-end;
  vertical-align: middle;
  margin: 2px 0;
}
@media screen and (max-width: 768px) {
  .portfolio__share__link__input {
    display: block;
    align-content: center;
    justify-self: end;
  }
}


/* --------------------------------------------------
 * iq-layout（学習コンテンツ全体レイアウト）
 * 元: user_page_add.css
 * -------------------------------------------------- */

.iq-layout {
  display: flex;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: -30px;
  min-height: 88vh;
  max-height: 88vh;
}


/* --------------------------------------------------
 * サイドバー
 * 元: user_page_add.css
 * -------------------------------------------------- */

.iq__sidebar {
  width: 340px;
  padding: 10px;
  border-right: 1px solid #e0e0e0;
  background: var(--on-primary);
  overflow: auto;
}

.iq__sidebar__head {
  padding: 20px 20px 12px;
}

.iq__sidebar__select {
  width: 100%;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
}

.iq__sidebar__item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.iq__sidebar__item.is-active {
  border-left: 3px solid #007bff;
}

.iq__sidebar__item-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iq__sidebar__thumb {
  width: 20%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iq__sidebar__title {
  margin: 0 0 4px;
  overflow: hidden;
}

.iq__sidebar__badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
}

.iq__sidebar__badge__in__progress {
  background: var(--blue);
  color: white;
}

.iq__sidebar__badge__completed {
  background: var(--secondary);
  color: white;
}

.iq__sidebar__badge__not-started {
  background: var(--section-tag);
  color: white;
}

.iq__sidebar__empty {
  text-align: center;
  color: var(--sub-title);
  padding: 48px 24px;
  font-size: 14px;
}


/* --------------------------------------------------
 * タブ
 * 元: user_page_add.css
 * -------------------------------------------------- */

.iq__tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 12px;
}

.iq__tabs__btn {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  border-bottom: 2px solid transparent;
}

.iq__tabs__btn:hover {
  color: #333;
}

.iq__tabs__btn.is-active {
  color: #007bff;
  border-bottom-color: #007bff;
}


/* --------------------------------------------------
 * 検索ボックス
 * 元: user_page_add.css
 * -------------------------------------------------- */

.iq__search {
  padding: 10px 12px;
}

.iq__search__input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.868-3.833zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 10px center;
}


/* --------------------------------------------------
 * 詳細エリア
 * 元: user_page_add.css
 * -------------------------------------------------- */

.iq__detail {
  overflow: auto;
  flex: 1;
}

.iq__detail__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.iq__detail__placeholder-icon {
  font-size: 48px;
}

.iq__detail__panel {
  padding: 32px;
}

.iq__detail__panel__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.iq__detail__panel__logo {
  height: 110px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iq__detail__panel__logo img {
  max-width: 100%;
  max-height: 100%;
}

.iq__detail__panel__section {
  margin-bottom: 24px;
}


/* --------------------------------------------------
 * ボックスヘッダータイトル
 * 元: user_page.css
 * -------------------------------------------------- */

.box__head__ttl-main {
  font-family: "futura-pt", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-right: 8px;
  color: var(--title);
}
@media screen and (max-width: 768px) {
  .box__head__ttl-main {
    display: block;
    font-size: 20px;
  }
}

.box__head__ttl-sub {
  line-height: 2;
  color: var(--sub-title);
}
@media screen and (max-width: 768px) {
  .box__head__ttl-sub {
    display: block;
  }
}


/* --------------------------------------------------
 * ボックスボディタイトル
 * 元: user_page.css
 * -------------------------------------------------- */

.box__body__ttl {
  margin: 10px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--divider);
  color: #9EA1A5;
  line-height: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media screen and (max-width: 768px) {
  .box__body__ttl {
    margin: 16px 0 8px;
  }
}
.box__body__ttl::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(/assets/img/play-circle-1be4c796f76763c8a99769edebcd17c95c0436a3f8a6d2fb1baf52511961a80c.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

[data-theme=dark] .box__body__ttl-play::before {
  background-image: url(/assets/img/play-circle-1be4c796f76763c8a99769edebcd17c95c0436a3f8a6d2fb1baf52511961a80c.svg);
}
[data-theme=dark] .box__body__ttl-verify::before {
  background-image: url(/assets/img/verify-aff3a9fc0f575349b246bc20f40b78d4b78372ff3dfb6e9c6af22c1db72bb5bc.svg);
}

[data-theme=light] .box__body__ttl-play::before {
  background-image: url(/assets/img/play-circle-light-9e734fab627bfeb021261e8a0f1e597eec3ac88db72b78fe63eae5c42e4933e7.svg);
}
[data-theme=light] .box__body__ttl-verify::before {
  background-image: url(/assets/img/verify-light-722731e5f4fcbb7d7f3cf790644575018c17d41b3cff240339bfa97beee8477f.svg);
}


/* --------------------------------------------------
 * タグ (講義・CMカードのタグ)
 * 元: user_page.css
 * -------------------------------------------------- */

.play__item__tag__dashboard {
  min-height: 30px;
  word-break: keep-all;
}

.play__item__tag {
  margin-bottom: 4px;
}
@media screen and (max-width: 768px) {
  .play__item__tag {
    margin-bottom: 8px;
  }
}

.play__item__tag span {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  color: var(--button-text);
  line-height: 1;
}
.play__item__tag span:not(:last-child) {
  margin-right: 4px;
}

.play__item__tag span.sky {
  background-color: var(--sky);
}

.play__item__tag span.orange {
  background-color: var(--orange);
}

.play__item__tag span.purpul {
  background-color: var(--purpul);
}

.play__item__tag span.blue {
  background-color: var(--blue);
}


/* --------------------------------------------------
 * 動画一覧カード (verify)
 * 元: user_page.css
 * -------------------------------------------------- */

.verify {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px 0;
}
@media screen and (max-width: 768px) {
  .verify {
    gap: 8px;
    margin-bottom: 32px;
  }
}

.verify__item {
  width: 24.42%;
  padding: 16px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  background-color: var(--on-primary);
  transition: 0.3s;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  .verify__item {
    width: 100%;
  }
}
.verify__item:hover {
  background-color: var(--divider);
}

.verify__item__tag {
  margin-bottom: 4px;
}
@media screen and (max-width: 768px) {
  .verify__item__tag {
    margin-bottom: 8px;
  }
}

.verify__item__tag span {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  color: var(--button-text);
  line-height: 1;
}
.verify__item__tag span:not(:last-child) {
  margin-right: 4px;
}

.verify__item__tag span.sky {
  background-color: var(--sky);
}

.verify__item__tag span.orange {
  background-color: var(--orange);
}

.verify__item__tag span.purpul {
  background-color: var(--purpul);
}

.verify__item__tag span.blue {
  background-color: var(--blue);
}

.verify__item__ttl {
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 48px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.verify__item__col {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verify__item__col-date,
.verify__item__col-teachure,
.verify__item__col-timer {
  font-size: 12px;
  line-height: 2;
  color: var(--section-tag);
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify__item__col-date::before,
.verify__item__col-teachure::before,
.verify__item__col-timer::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.verify__item__col-date::before {
  background-image: url(/assets/img/calendar-a3fad0356f36daf48deb741f3d8cf2de91f09bae247f1aa2f469949cb540a2f5.svg);
}

.verify__item__col-teachure::before {
  background-image: url(/assets/img/teacher-770e9b172cd745806b49f1a95bdf1be2f27d93a9efe978f110ef7af1f8a3676d.svg);
}

.verify__item__col-timer::before {
  background-image: url(/assets/img/timer-ee354e8038d2860b4026e1448440a11710ad8786d9ae92995fbfd9e2f4554291.svg);
}


/* --------------------------------------------------
 * ポートフォリオ共有: リンクボタン
 * 元: user_page_add.css
 * -------------------------------------------------- */

.portfolio-share a.portfolio__share__link__btn {
  background-color: var(--secondary);
  color: var(--button-text);
  transition: 0.3s;
}

.portfolio-share a.portfolio__share__link__btn:hover {
  background-color: var(--secondary-hover);
  cursor: pointer;
  text-decoration: none;
}


/* --------------------------------------------------
 * レスポンシブ (iq-layout / サイドバー / 詳細エリア)
 * 元: user_page_add.css
 * -------------------------------------------------- */

@media screen and (max-width: 768px) {
  .iq-layout {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    max-height: none;
    min-height: auto;
  }

  .iq__sidebar {
    width: 100%;
    height: 400px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .iq__sidebar__head {
    padding: 10px 10px 8px;
  }

  .iq__detail {
    min-height: 200px;
  }

  .iq__detail__panel {
    padding: 16px;
  }

  .iq__detail__panel__head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .iq__detail__panel__logo {
    width: 100%;
    height: auto;
  }

  .iq__detail__panel__section {
    margin-bottom: 16px;
  }
}


/* --------------------------------------------------
 * レスポンシブ (課題ボタン)
 * 元: user_page_add.css
 * -------------------------------------------------- */

@media screen and (max-width: 768px) {
  .exam__task__btn {
    margin: auto;
  }
  .exam__task__btn a {
    justify-content: center;
  }
}


/* --------------------------------------------------
 * 動画サムネイル
 * 元: user_page_add.css
 * -------------------------------------------------- */

.movie__thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: scale-down;
}

.no__movie__thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--on2-primary);
  color: var(--title);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--title);
}


/* --------------------------------------------------
 * 課題バッジ
 * 元: user_page_add.css
 * -------------------------------------------------- */

.task__tag {
  height: 20px;
  background-color: var(--secondary);
  color: #FFF;
  padding: 4px 12px;
  border-radius: 16px;
}

.task__submitted__tag {
  height: 20px;
  background-color: var(--disabled);
  color: #000;
  padding: 4px 12px;
  border-radius: 16px;
}

.task__resubmission__tag {
  height: 20px;
  background-color: var(--orange);
  color: #FFF;
  padding: 4px 12px;
  border-radius: 16px;
}

.no__task__tag {
  height: 20px;
  color: #000;
  padding: 4px 12px;
  border-radius: 16px;
}


/* --------------------------------------------------
 * 視聴進捗バー
 * 元: user_page.css
 * -------------------------------------------------- */

.play__item__bar {
  width: 100%;
  height: 4px;
  background-color: var(--on2-primary);
  border-radius: 4px;
  position: relative;
  margin-bottom: 8px;
}
.play__item__bar::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--on2-primary);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  -webkit-animation-name: playBarAnime;
          animation-name: playBarAnime;
  -webkit-animation-duration: 3s;
          animation-duration: 3s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

@-webkit-keyframes playBarAnime {
  from { width: 100%; }
  to   { width: 0; }
}
@keyframes playBarAnime {
  from { width: 100%; }
  to   { width: 0; }
}

.play__item__bar-percent {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--secondary);
  border-radius: 4px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 998;
}


/* --------------------------------------------------
 * 動画カード: 講師名・時間表示
 * 元: user_page.css
 * -------------------------------------------------- */

.play__item__col-date,
.play__item__col-teachure,
.play__item__col-timer {
  font-size: 12px;
  line-height: 2;
  color: var(--section-tag);
  display: flex;
  align-items: center;
  gap: 8px;
}

.play__item__col-date::before,
.play__item__col-teachure::before,
.play__item__col-timer::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.play__item__col-date::before {
  background-image: url(/assets/img/calendar-a3fad0356f36daf48deb741f3d8cf2de91f09bae247f1aa2f469949cb540a2f5.svg);
}

.play__item__col-teachure::before {
  background-image: url(/assets/img/teacher-770e9b172cd745806b49f1a95bdf1be2f27d93a9efe978f110ef7af1f8a3676d.svg);
}

.play__item__col-timer::before {
  background-image: url(/assets/img/timer-ee354e8038d2860b4026e1448440a11710ad8786d9ae92995fbfd9e2f4554291.svg);
}

/* テストモードのヘッダ */
.test__mode__header{
  display: flex;
  align-items: center;
  width: 100%;
  background-color: var(--sub-title);
  border: 1px solid var(--title);
  border-radius: 10px;
  color: var(--button-text);
  text-align: center;
  padding: 10px;
}
