@charset "UTF-8";

/* 講師カード全体のコンテナ */
.teacher-card-list {
  display: flex;
  flex-direction: column;
  gap: 30px; /* カード間の余白 */
  border: 1px solid #e0e0e0;
  margin: 56px auto 40px;
  max-width: 640px;
  padding: 32px;
}

/* 講師カードの基本レイアウト */
.teacher-card {
  display: flex;
  align-items: flex-start; /* 上揃え */
  gap: 20px; /* 画像とテキストの間の余白 */
  padding: 20px;
  border-radius: 8px;
}

/* 講師の画像 */
.teacher-card__image {
  flex-shrink: 0; /* 画像が縮まないようにする */
  margin: 0;
}

.teacher-card__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.columns-content-main.single-view .teacher-card .wp-block-button {
  text-align: left;
}

/* テキストコンテンツ部分 */
.teacher-card__content {
  flex-grow: 1; /* 残りのスペースをすべて使う */
}

/* 見出し */
.columns-content-main.single-view .teacher-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
}

/* 講師名 */
.teacher-card__name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 16px 0;
}

/* 説明文 */
.teacher-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

/* ボタンのスタイル */
.teacher-card__btn .wp-block-button__link {
  display: inline-flex; /* アイコンを横並びにするため */
  align-items: center;
  gap: 8px;
  background-color: #fff;
  color: #444f56;
  border: 1px solid #444f56;
  border-radius: 99999px; /* 角を丸くする */
  padding: 10px 19px;
  transition: background-color 0.3s;
  text-decoration: none;
  line-height: 1.8;
}

.teacher-card__btn .wp-block-button__link:hover {
  background-color: #f5f5f5;
}

/* ボタンの外部リンクアイコン */
.teacher-card__btn .wp-block-button__link[target="_blank"]::after {
  content: '';
  display: inline-block;
  background: url(/wellaging/columns/img/external-link.svg);
  width: 24px;
  height: 25px;
  background-size: 100% 100%;
}

.columns-content-main.single-view h4.teacher-card-list__heading {
  font-size: 20px;
  text-align: center;
}

.columns-content-main.single-view h4.teacher-card-list__heading:before {
  content: none;
}

.wp-block-group.teacher-card > div {
  display: flex;
  gap: 24px;
}

.columns-content-main.single-view .teacher-card__name {
  margin: auto auto 10px;
  font-weight: 700;
  line-height: 1.5;
}

.columns-content-main.single-view .teacher-card__desc {
  margin: auto auto 10px;
  font-weight: 500;
  line-height: 1.5;
}

/* スマホ表示 */
@media screen and (max-width: 768px) {
  .wp-block-group.teacher-card > div {
    flex-direction: column;
  }

  .teacher-card-list {
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    padding: 32px;
  }

  .teacher-card {
    padding: 0;
  }

  .teacher-card + .teacher-card {
    margin-top: 40px;
  }

  .columns-content-main.single-view h4.teacher-card-list__heading {
    margin-bottom: 29px;
  }

  .teacher-card__image {
    width: 65vw;
    margin: auto;
  }

  .columns-content-main.single-view .teacher-card__title,
  .columns-content-main.single-view .teacher-card__name,
  .columns-content-main.single-view .teacher-card__desc {
    padding: 0;
  }

  .columns-content-main.single-view .teacher-card__title {
    font-size:14px;
  }

  .teacher-card .wp-block-button {
    text-align: center;
    margin-top: 15px;
  }

  .teacher-card .wp-block-button__link {
    font-weight: 500;
    font-size: 4vw;
  }
}

.wp-block-image.size-large img {
  margin: auto;
}

/* チェックリスト */
.column__checklist li:before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-flex;
  background: url(/wellaging/columns/img/checklist_icon.svg);
  background-size: 100%;
  background-repeat: no-repeat;
  margin-right: 15px;
}

.column__checklist li {
  text-indent: -25px;
  padding-left: 25px;
  list-style: none;
  font-weight: 500;
  color: #444f56;
}

@media screen and (max-width: 768px) {
  .column__checklist li {
    font-size: 14px;
    line-height: 2;
  }
  .wp-block-list.column__checklist {
    width: calc(100% - 32px);
    margin: auto;
    margin-top:8px;
  }
}

.column__checklist {
  padding: 0;
  margin-top: 8px;
}

.column__checklist .block-editor-rich-text__editable.rich-text {
  display: inline;
}

/* チェックボックスリスト */
.column__checkboxItem {
  margin-top:25px;
  display: flex;
  align-items: center;
  column-gap: 4px;
  width: fit-content;
  line-height: 1;
  cursor: pointer;
}

.column__checkboxItem:not(:last-of-type) {
  margin-bottom: 16px;
}

.block-editor-block-list__layout .column__checkbox__list br {
  display: none;
}

.column__checkbox {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid #b2b4c8;
  border-radius: 2px !important;
  cursor: pointer;
  appearance: none;
  margin-right: 12px;
  top: -2px;
}

.column__checkbox:checked {
  border: none;
  background: url(/wellaging/columns/img/column_check_white_icon.svg) #ff7d60;
  background-repeat: no-repeat;
  background-position: 60% 47%;
}

.column__checkbox:checked::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 6px;
}

.column__checkbox:checked::before {
  content: none !important;
}

.single-view .column__checkbox__list p + p {
  margin-top: 12px;
}
