@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){
  /*必要ならばここにコードを書く*/
}

/* PPC School LMS — navy and teal */
:where(.ppc-course-selection-container, .ppc-course-detail-container, .ppc-chapter-detail-container, .ppc-lesson-container, .ppc-already-selected-container) {
  --ppc-navy: #233b57;
  --ppc-teal: #126b65;
  --ppc-teal-dark: #0d544f;
  --ppc-teal-tint: #e8f4f1;
  --ppc-line: #d7e3e5;
  --ppc-card-tint: #f5f8fb;
}
.ppc-course-selection-header h2,
.ppc-course-selection-container .ppc-course-title,
.ppc-course-detail-container .ppc-course-title,
.ppc-course-detail-container .ppc-chapter-title a,
.ppc-chapter-detail-container .ppc-chapter-title,
.ppc-chapter-detail-container .ppc-lesson-title a,
.ppc-lesson-container .ppc-lesson-title,
.ppc-already-selected-container .ppc-already-selected-title {
  color: var(--ppc-navy);
}
.ppc-course-detail-container .ppc-course-header,
.ppc-chapter-detail-container .ppc-chapter-header {
  background: var(--ppc-card-tint);
}
.ppc-course-selection-container .ppc-course-card:hover,
.ppc-lesson-container .ppc-lesson-body h2 {
  border-color: var(--ppc-teal);
}
.ppc-course-selection-container .ppc-select-course-btn:not(:disabled),
.ppc-course-detail-container :is(.ppc-notice-button, .ppc-chapter-button),
.ppc-chapter-detail-container .ppc-lesson-button,
.ppc-lesson-container .ppc-next-lesson-btn:not(:disabled):not(.disabled),
.ppc-already-selected-container .ppc-btn-primary {
  background: var(--ppc-teal);
  color: #fff;
}
.ppc-course-selection-container .ppc-select-course-btn:not(:disabled):hover,
.ppc-course-detail-container :is(.ppc-notice-button, .ppc-chapter-button):hover,
.ppc-chapter-detail-container .ppc-lesson-button:hover,
.ppc-lesson-container .ppc-next-lesson-btn:not(:disabled):not(.disabled):hover,
.ppc-already-selected-container .ppc-btn-primary:hover {
  background: var(--ppc-teal-dark);
}
.ppc-course-detail-container .ppc-chapter-card:not(.locked) .ppc-chapter-number,
.ppc-chapter-detail-container .ppc-lesson-card:not(.locked) .ppc-lesson-number,
.ppc-already-selected-container .ppc-chapter-number {
  background: var(--ppc-navy);
}
.ppc-chapter-detail-container .ppc-lesson-card.completed:not(.locked) .ppc-lesson-number,
.ppc-chapter-detail-container .ppc-progress-fill,
.ppc-course-selection-container .ppc-course-status-badge.completed {
  background: var(--ppc-teal);
}
.ppc-chapter-detail-container .ppc-progress-bar {
  background: var(--ppc-line);
}
.ppc-chapter-detail-container .ppc-lesson-card.completed {
  border-left-color: var(--ppc-teal);
}
:is(.ppc-course-detail-container, .ppc-chapter-detail-container) .ppc-status.completed,
.ppc-lesson-container .ppc-check-item.checked {
  background: var(--ppc-teal-tint);
  color: var(--ppc-teal-dark);
}
.ppc-lesson-container .ppc-check-item.checked {
  border-color: var(--ppc-teal);
}
.ppc-lesson-container .ppc-check-item input[type="checkbox"] {
  accent-color: var(--ppc-teal);
}
.ppc-lesson-container .ppc-check-item.checked .ppc-check-label,
:is(.ppc-chapter-detail-container, .ppc-lesson-container) .ppc-breadcrumb a,
.ppc-course-detail-container .ppc-chapter-title a:hover,
.ppc-chapter-detail-container .ppc-lesson-title a:hover {
  color: var(--ppc-teal-dark);
}

/* PPC School LMS — reading rhythm and navigation */
.ppc-course-selection-container .ppc-course-grid:has(> .ppc-course-card:only-child) {
  max-width: 680px;
  margin-inline: auto;
}
.ppc-course-selection-container .ppc-course-selection-header {
  margin-bottom: clamp(24px, 4vw, 42px);
}
.ppc-course-selection-container .ppc-course-selection-header h2 {
  font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
  line-height: 1.4;
}
.ppc-course-selection-container .ppc-course-card,
.ppc-course-detail-container .ppc-chapter-card,
.ppc-chapter-detail-container .ppc-lesson-card,
.ppc-lesson-container .ppc-lesson-layout > .ppc-lesson-content,
.ppc-lesson-container .ppc-self-check-box {
  border-radius: 14px;
  box-shadow: 0 2px 10px rgb(35 59 87 / 6%);
}
.ppc-course-selection-container .ppc-course-card {
  border-width: 1px;
}
.ppc-course-selection-container .ppc-course-card:hover,
.ppc-course-detail-container .ppc-chapter-card:hover:not(.locked),
.ppc-chapter-detail-container .ppc-lesson-card:hover:not(.locked) {
  transform: none;
  box-shadow: 0 4px 14px rgb(35 59 87 / 10%);
}
.ppc-course-detail-container .ppc-course-header,
.ppc-chapter-detail-container .ppc-chapter-header {
  padding-inline: clamp(12px, 2vw, 24px);
  border-radius: 14px;
}
.ppc-course-detail-container .ppc-course-title,
.ppc-chapter-detail-container .ppc-chapter-title,
.ppc-lesson-container .ppc-lesson-title {
  font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ppc-course-detail-container .ppc-chapter-content,
.ppc-chapter-detail-container .ppc-lesson-card > .ppc-lesson-content,
.ppc-lesson-container .ppc-lesson-layout > .ppc-lesson-content {
  min-width: 0;
}
.ppc-chapter-detail-container .ppc-lesson-card > .ppc-lesson-content {
  background: transparent;
  margin: 0;
  padding: 0;
  box-shadow: none;
}
.ppc-course-detail-container .ppc-chapter-number,
.ppc-chapter-detail-container .ppc-lesson-number {
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.ppc-lesson-container .ppc-lesson-layout {
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: minmax(0, 1fr) 400px;
}
.ppc-lesson-container .ppc-lesson-layout > .ppc-lesson-content {
  margin-bottom: 0;
  padding: clamp(18px, 2.4vw, 30px);
}
.ppc-lesson-container .ppc-lesson-title {
  margin-bottom: 18px;
}
.ppc-lesson-container .ppc-lesson-body {
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.ppc-lesson-container .ppc-lesson-body h2 {
  font-size: clamp(1.2rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.5;
  margin-block: 1.4em 0.65em;
}
.ppc-lesson-container .ppc-self-check-box {
  align-self: start;
}
.ppc-lesson-container .ppc-self-check-header {
  padding: 12px 16px;
  background: var(--ppc-teal-tint);
}
.ppc-lesson-container .ppc-self-check-body {
  padding: 14px;
}
.ppc-lesson-container .ppc-check-item {
  border-radius: 9px;
}
.ppc-lesson-container .ppc-check-item:focus-within,
:is(.ppc-course-selection-container, .ppc-course-detail-container, .ppc-chapter-detail-container, .ppc-lesson-container) :is(a, button):focus-visible {
  outline: 2px solid var(--ppc-navy);
  outline-offset: 3px;
}
@media (max-width: 1024px) {
  .ppc-lesson-container .ppc-self-check-box {
    margin-top: 0;
  }
}
@media (max-width: 768px) {
  .ppc-course-detail-container .ppc-chapter-card,
  .ppc-chapter-detail-container .ppc-lesson-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .ppc-course-detail-container .ppc-chapter-number,
  .ppc-chapter-detail-container .ppc-lesson-number {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }
  .ppc-course-detail-container .ppc-chapter-button,
  .ppc-chapter-detail-container .ppc-lesson-button {
    box-sizing: border-box;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ppc-course-selection-container .ppc-course-card,
  .ppc-course-detail-container .ppc-chapter-card,
  .ppc-chapter-detail-container .ppc-lesson-card {
    transition: none;
  }
}

/* PPC School LMS — page and component spacing */
body:has(#main > :is(.ppc-course-detail-container, .ppc-chapter-detail-container, .ppc-lesson-container)) #header .logo {
  padding-block: 10px 14px;
}
#content:has(#main > :is(.ppc-course-detail-container, .ppc-chapter-detail-container, .ppc-lesson-container)) {
  margin-top: 12px;
}
#main:has(> :is(.ppc-course-detail-container, .ppc-chapter-detail-container, .ppc-lesson-container)) {
  padding-block: clamp(16px, 2.5vw, 24px);
  padding-inline: clamp(12px, 2vw, 24px);
}
#main > :is(.ppc-course-detail-container, .ppc-chapter-detail-container, .ppc-lesson-container) {
  padding: 0;
}
.ppc-course-detail-container .ppc-course-header {
  margin-block: 0;
  padding-block: 0;
}
.ppc-course-detail-container .ppc-course-title {
  margin-bottom: 14px;
}
.ppc-course-detail-container .ppc-course-header .notice-btn-wrap {
  /* The course content sets a 50px bottom margin inline. */
  margin-block: 0 !important;
  gap: 8px;
}
.ppc-course-detail-container .ppc-course-header .notice-btn {
  min-height: 44px;
}
:is(.ppc-chapter-detail-container, .ppc-lesson-container) .ppc-breadcrumb {
  margin-bottom: 8px;
}
.ppc-chapter-detail-container .ppc-chapter-header {
  margin-bottom: 16px;
  padding-block: 16px;
}
.ppc-chapter-detail-container .ppc-chapter-header .ppc-chapter-title {
  margin-bottom: 0;
}
.ppc-chapter-detail-container .ppc-chapter-description:not(:empty) {
  margin-top: 8px;
}
.ppc-course-detail-container .ppc-chapter-excerpt:empty,
.ppc-chapter-detail-container .ppc-chapter-description:empty {
  display: none;
}
.ppc-course-detail-container .ppc-chapters-list,
.ppc-chapter-detail-container .ppc-lessons-list {
  padding: clamp(16px, 2.5vw, 28px);
  margin-bottom: 16px;
}
.ppc-course-detail-container .ppc-chapters-list {
  margin-top: 18px;
}
.ppc-course-detail-container .ppc-chapters-heading,
.ppc-chapter-detail-container .ppc-lessons-heading {
  margin-block: 0 16px;
}
.ppc-course-detail-container .ppc-chapter-card,
.ppc-chapter-detail-container .ppc-lesson-card {
  margin-bottom: 14px;
  gap: 14px;
  padding: clamp(14px, 2vw, 18px);
}
.ppc-course-detail-container .ppc-chapter-card:last-child,
.ppc-chapter-detail-container .ppc-lesson-card:last-child {
  margin-bottom: 0;
}
.ppc-course-detail-container .ppc-chapter-card .ppc-chapter-title,
.ppc-chapter-detail-container .ppc-lesson-card .ppc-lesson-title,
.ppc-course-detail-container .ppc-chapter-excerpt {
  margin-block: 0 8px;
}
.ppc-chapter-detail-container .ppc-navigation-buttons {
  padding-block: 8px;
}
.ppc-lesson-container .ppc-lesson-layout {
  margin-top: 0;
}
.ppc-lesson-container .ppc-lesson-body > :first-child {
  margin-top: 0;
}
.ppc-lesson-container .ppc-lesson-body > :is(p, ul, ol) {
  margin-bottom: 16px;
}
.ppc-lesson-container .ppc-lesson-body > :last-child {
  margin-bottom: 0;
}
.ppc-lesson-container .ppc-lesson-body h3 {
  margin-block: 24px 12px;
}
.ppc-lesson-container .ppc-lesson-body .ppc-guide-box {
  margin-block: 16px 20px;
  padding: 16px;
}
.ppc-lesson-container .ppc-back-button-wrapper {
  margin-top: 20px;
  padding-top: 12px;
}
.ppc-lesson-container .ppc-check-item {
  margin-bottom: 8px;
  padding-block: 10px;
  min-height: 44px;
  box-sizing: border-box;
}

/* PPC School LMS — course chapter list */
.ppc-course-detail-container .ppc-chapters-list {
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin-top: 24px;
}
.ppc-course-detail-container .ppc-chapters-heading {
  margin-block: 0 10px;
  color: var(--ppc-navy);
  font-size: 21px;
}
.ppc-course-detail-container .ppc-chapters-list > .ppc-chapter-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px 12px;
  margin: 0;
  border-top: 1px solid var(--ppc-line);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  transform: none;
  transition: none;
}
.ppc-course-detail-container .ppc-chapters-list > .ppc-chapter-card:hover:not(.locked) {
  box-shadow: none;
  transform: none;
}
.ppc-course-detail-container .ppc-chapters-list > .ppc-chapter-card:last-child {
  border-bottom: 1px solid var(--ppc-line);
}
.ppc-course-detail-container .ppc-chapters-list > .ppc-chapter-card:has(.ppc-chapter-link):is(:hover, :focus-within) {
  background: var(--ppc-card-tint);
}
.ppc-course-detail-container .ppc-chapters-list > .ppc-chapter-card.locked {
  opacity: 1;
  background: var(--ppc-card-tint);
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-card .ppc-chapter-number {
  display: block;
  width: auto;
  height: auto;
  margin-top: 2px;
  background: transparent;
  color: #546579;
  font-size: 14px;
  font-weight: 600;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-title {
  margin: 0;
  color: var(--ppc-navy);
  font-size: clamp(1rem, 0.92rem + 0.28vw, 1.15rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-excerpt:not(:empty) {
  margin: 6px 0 0;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-meta {
  justify-content: flex-end;
  gap: 4px 8px;
  margin-top: 2px;
  text-align: right;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-status {
  padding: 0;
  background: transparent;
  color: #546579;
  font-weight: 600;
  white-space: nowrap;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-status:is(.completed, .in-progress) {
  color: var(--ppc-teal-dark);
}
.ppc-course-detail-container .ppc-chapters-list .ppc-lock-message {
  color: #546579;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-card:has(.ppc-chapter-link) {
  padding-right: 34px;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-link::before {
  content: "";
  position: absolute;
  inset: 0;
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--ppc-teal);
  border-right: 2px solid var(--ppc-teal);
  transform: translateY(-50%) rotate(45deg);
}
.ppc-course-detail-container .ppc-chapters-list .ppc-chapter-link:focus-visible::before {
  outline: 2px solid var(--ppc-navy);
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .ppc-course-detail-container .ppc-chapters-list > .ppc-chapter-card {
    grid-template-columns: 3.15rem minmax(0, 1fr);
    gap: 4px 8px;
    padding-block: 13px;
  }
  .ppc-course-detail-container .ppc-chapters-list .ppc-chapter-meta {
    grid-column: 2;
    justify-content: flex-start;
    margin: 0;
    text-align: left;
  }
}
