/*
Theme Name: Talemy Child
Description: Child theme for Talemy theme
Author: ThemeSpirit
Author URI: https://themespirit.com/
Template: talemy
Version: 1.0.0
*/

body {
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif !important;
}

/**************************************************
 レッスン
 **************************************************/
/*
 問題のレビューを非表示にする
 https://ldx.design/hide-mark-for-review-learndash-quizzes/
 */
.learndash .wpProQuiz_content .wpProQuiz_reviewLegend .learndash-quiz-review-legend-item-review,
.learndash .wpProQuiz_reviewButtons input[name="review"] {
  display: none !important;
}

/* カラムブロックと画像ブロックの上下マージンを狭く */
div.wp-block-columns {
  margin: 0 !important;
}
div.wp-block-image {
  margin: 2em 0 !important;
}

/* リストブロックの左パディングを狭く */
.learndash-wrapper .ld-focus .ld-tab-content ul:not(.blocks-gallery-grid):not(.wp-block-gallery):not(.box) {
  padding-left: 1em;
}

/* トピック一覧のヘッダーを青色に */
div.learndash-wrapper div.ld-table-list div.ld-table-list-header {
  background-color: #00a2e8 !important;
  color: #fff;
}

/* パンくずリスト下のマージンを広く */
.learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content .ld-lesson-status,.learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content .ld-topic-status {
  margin-bottom: 2em
}

/* パンくずリスト右の「進度」「完了」を非表示に */
.ld-status.ld-status-progress.ld-primary-background,
.ld-status.ld-status-complete.ld-secondary-background {
  display: none;
}

/* 練習問題のボックスを緑色にして目立たせる */
div.learndash-wrapper div.ld-table-list div.ld-table-list-header {
  background-color: #0c9961 !important;
}

/* 引用ブロックの上下マージンを狭く */
.wp-block-quote {
  margin: 1.5em 0;
}

/* 画像のキャプションを中央揃えに */
.wp-block-image figcaption {
	text-align: center;
}

/* 追加CSS ボックス（box） */
ul.box,
h3.box,
h4.box {
  background: #f0f8ff;
  padding: 20px;
}
p.box {
  background: #f0f8ff;
  padding: 20px;
}

/* 追加CSS ボックス（notice） */
p.notice {
  background: #fff0f5;
  padding: 20px;
}

/* 追加CSS ダイスのリスト（dice） */
ul.dice li {
  list-style-type: "\1f3b2";
  /*padding-inline-start: .5em;*/
  padding-left: .5em;
  text-indent: 0em;
}

/* 追加CSS 用語集（glossary） */
.wp-block-table.glossary {
  margin: .5em 0 !important;
}
.glossary table {
  width: 95%;
  table-layout: fixed;
  margin: 0 auto;
  font-size: .95em;
}
@media screen and (max-width: 640px) {
  .glossary table {
  width: 100%;
  }
}
.glossary table td {
  border: 0px;
}
.glossary table tr {
  border-top: 1px solid #f5f5f5;
}
.glossary table tr td {
  padding-top: .5em;
  vertical-align:top;
}
.glossary table tr td:nth-of-type(1) {
  width: 30%;
  padding-right: 1em;
  /*white-space: nowrap;*/
}

/* 追加CSS ボックス（underline） */
p.underline mark {
  background: linear-gradient(to bottom, transparent 60%, rgba(252,252,84,0.8) 60%);
}

/* 完了に設定するボタンのフォントの太さを細くする */
.learndash-wrapper .learndash_mark_complete_button {
  font-weight: 600 !important;
}

/* ムーブボタン */
/* ボタンのベースタグを「div.move」にすると、複数並べたボタンに追加CSSクラスを適用した場合にp要素で囲んでくれないので「span.move」に */
span.move {
  /* ボタンが1つの場合も中央揃えにしたい */
  display: block !important;
  display: block;
  text-align: center;
  margin-bottom: 1em;
}
/* ボタンを複数並べた場合の追加CSSクラス */
p.move-parent {
  display: flex;
  justify-content: center;
}
@media (max-width: 640px) {
  p.move-parent {
    display: block;
  }
}

/**************************************************
 クイズ
 **************************************************/
/* 選択肢内のムーブボタンの上下マージンを狭く（選択肢が縦に並ぶのでスマホでスクロールしなくても済むように） */
.wpProQuiz_questionList span.move {
  margin-top: -1.5em;
  margin-bottom: -0.5em;
}
/* 選択肢内の画像の上下マージンを狭く（選択肢が縦に並ぶのでスマホでスクロールしなくても済むように） */
.wpProQuiz_questionList div.board {
  margin-top: -1.5em;
  margin-bottom: 0;
}

/* 現在のクイズの背景を白色に（ただし、回答済みの背景は変更しない） */
.learndash-wrapper .wpProQuiz_content .wpProQuiz_reviewDiv li.wpProQuiz_reviewQuestionTarget:not(.wpProQuiz_reviewQuestionSolved) {
  background-color: #ffffff !important;
}

/* （スマホ）「戻る」「次へ」ボタンを左右に並べるように修正 */
@media (max-width: 640px) {
  .learndash-wrapper .wpProQuiz_content input[name="back"].wpProQuiz_button {
    float: left !important;
    margin-top: 1em;
  }
  .learndash-wrapper .wpProQuiz_content input[name="next"].wpProQuiz_button {
    float: right !important;
    margin-top: 1em;
  }
}

/* 結果画面の「続ける」ボタンを非表示に（スマホ画面が狭いので削除することに） */
.learndash-wrapper .ld-quiz-actions .quiz_continue_link {
  display: none !important;
}

/* 結果画面の「再受験する」「詳細を確認する」ボタンの色をグレーから緑に変更 */
.learndash-wrapper .ld-quiz-actions input[name=reShowQuestion],
.learndash-wrapper .ld-quiz-actions input[name=restartQuiz] {
  background-color: #0c9961 !important;
}

/* 結果画面の正解背景の透明度を下げる（ギラギラしているので） */
.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem.wpProQuiz_answerCorrect label {
  background-color: rgba(0, 195, 73, 0.9);
}

/* 結果詳細画面の解説を中央寄せから左寄せに変更 */
.learndash-wrapper .wpProQuiz_content .wpProQuiz_response {
  text-align: left;
}

/**************************************************
 メニュー
 **************************************************/
/* CTAボタンのフォントを大きく */
nav > div.nav-btns > a {
  font-size: 14px;
}

/**************************************************
 コースホームページ
 **************************************************/
/* 背景画像 */
.course-intro {
  background-image: url(/wp-content/uploads/2023/04/コースページ背景.png);
}

/* 「すべての階層を表示」ボタンを非表示に */
#course-section__curriculum div.ld-section-heading > div.ld-item-list-actions {
  display: none;
}

/* 「Continue」ボタンのフォントを大きく */
div.course-sidebar__buttons > a {
  font-size: 14px;
}

/* 「ログインしてコース登録」ボタンが省略されないようにパディングを狭く */
.course-sidebar__buttons .btn:first-child {
    padding-right: 20px;
    padding-left: 20px;
}

/* コースメタを３つで折り返さないように */
.course-meta__item:nth-child(3) {
  clear: none !important;
}

/* コース内容（h2）を大きく */
.learndash-wrapper .ld-item-list.ld-lesson-list .ld-section-heading h2 {
  text-align: left;
  font-size: 22px !important;
  color: #009fe3;
}

/* 進捗バーの右側を広げる */
.learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats .ld-progress-percentage {
  margin-right: 20px;
}

/* （スマホ）「コース登録」ボタンが右に少しずれているので修正 */
@media (max-width: 640px) {
  .learndash-wrapper #btn-join,.learndash-wrapper .btn-join {
    margin-left: 0;
  }
}

/**************************************************
 マイコース
 **************************************************/
/* （スマホ）「すべて展開する」「すべて折りたたむ」ボタンを改行しないように */
@media screen and (max-width: 640px) {
  .learndash-wrapper #ld-profile .ld-section-heading div.ld-expand-button {
  max-width: 180px;
  }
}

/* マイアカウントの左メニューから「ダッシュボード」を非表示に */
ul > li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard {
  display: none;
}

/**************************************************
 新規登録ページ（[ld_registration] で追加）
 **************************************************/
/* 各種カスマイズ */
.learndash-wrapper #learndash-registration-wrapper form,
.learndash-wrapper #learndash-reset-password-wrapper form {
  width: 600px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 40px auto;
  padding: 60px;
  overflow: hidden;
}
@media screen and (max-width: 640px) {
  .learndash-wrapper #learndash-registration-wrapper form,
  .learndash-wrapper #learndash-reset-password-wrapper form {
  width: 100%;
  padding: 15px;
  }
}

.learndash-wrapper #learndash-registration-wrapper form label,
.learndash-wrapper #learndash-reset-password-wrapper form label {
  display: block;
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.learndash-wrapper #learndash-registration-wrapper form > p,
.learndash-wrapper #learndash-reset-password-wrapper form > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 0 10px;
}

.learndash-wrapper #learndash-registration-wrapper form input[type="text"],
.learndash-wrapper #learndash-registration-wrapper form input[type="password"],
.learndash-wrapper #learndash-reset-password-wrapper form input[type="text"] {
  outline: none;
  display: block;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
  border: 0;
  border-radius: 4px;
  box-sizing: border-box;
  padding: 8px 12px;
  color: rgba(0, 0, 0, 0.6);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  transition: 0.3s ease;
}

.learndash-wrapper #learndash-registration-wrapper form input[type="text"]:focus,
.learndash-wrapper #learndash-registration-wrapper form input[type="password"]:focus,
.learndash-wrapper #learndash-reset-password-wrapper form input[type="text"]:focus {
  color: rgba(0, 0, 0, 0.8);
}

.learndash-wrapper #learndash-registration-wrapper form input[type="submit"],
.learndash-wrapper #learndash-reset-password-wrapper form input[type="submit"] {
  outline: none;
  background: #d51160;
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 12px 20px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

/* 注意メッセージ */
#learndash-registration-wrapper > p {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  margin: 0 0 0 15%;
}
@media screen and (max-width: 640px) {
  #learndash-registration-wrapper > p {
  margin: 0;
  }
}