@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 進捗カウント（1/2 など）を消す */
.llms-lesson-counter,
.llms-progress,
.llms-lesson-meta,
.llms-favorite,
.llms-lesson-like {
  display: none !important;
}

/* Week（Section）全体 */
.llms-section {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 16px;
  background: #fff5ec;
}

/* Week タイトル */
.llms-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Lesson一覧 */
.llms-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 各Lessonカード */
.llms-lesson {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Lessonタイトル */
.llms-lesson-title {
  font-size: 16px;
  font-weight: 600;
}



/* ===== Course Syllabus : Week Card ===== */

.wp-block-llms-course-syllabus .llms-syllabus-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  position: relative;
}

/* Week タイトル */
.wp-block-llms-course-syllabus .llms-section-title {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: none !important;
}

/* Lessonを隠す */
.wp-block-llms-course-syllabus .llms-lesson-preview {
  display: none;
}

/* 開いているときだけ表示 */
.wp-block-llms-course-syllabus.is-open .llms-lesson-preview {
  display: block;
}

/* 進捗バー枠 */
.week-progress {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

/* 実際に伸びるバー */
.week-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  transition: width 0.4s ease;
}

/* lesson check box */
.llms-lesson-preview.is-complete {
  text-decoration: none !important;
}

.llms-lesson-title {
  position: relative;
  padding-left: 32px; /* チェック分の余白 */
}

.llms-lesson-preview.is-complete::before {
  content: "✔";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #22c55e; /* 緑 */
  font-weight: bold;
}

.llms-lesson-preview.is-complete a,
.llms-lesson-preview.is-complete .llms-lesson-title {
  text-decoration: none !important;
}