/* Japanese Interview Preparation */

/* 本文 */
.page-id-21940 .entry-content p,
.page-id-21940 .entry-content li,
.page-id-21940 .entry-content td,
.page-id-21940 .entry-content th {
  font-size: 16px !important;
  line-height: 1.8;
}

/* セクション見出し */
.page-id-21940 .entry-content h2 {
  font-size: 24px !important;
  line-height: 1.5;
}

/* 小見出し */
.page-id-21940 .entry-content h3 {
  font-size: 20px !important;
  line-height: 1.5;
}

/* 補足説明 */
.page-id-21940 .entry-content small {
  font-size: 14px !important;
  line-height: 1.7;
}

/* メインタイトル */
.page-id-21940 .entry-content > div:first-of-type h2 {
  font-size: 28px !important;
}


/* 見出しの下の余白を調整 */
.page-id-21940 .entry-content h2 {
  margin-bottom: 16px !important;
}

.page-id-21940 .entry-content h3 {
  margin-bottom: 12px !important;
}

/* 見出し直後の箇条書き・段落 */
.page-id-21940 .entry-content h3 + ul,
.page-id-21940 .entry-content h3 + ol,
.page-id-21940 .entry-content h3 + p {
  margin-top: 0 !important;
}
/* ==================================
   LEARNING EXPERIENCE Teacher's Portal
   ================================== */

/* ポータル全体 */

.lex-portal {
  background: #f9fff2;
  padding: 40px 32px 48px;
  border-radius: 16px;
  color: #364454;
}

.lex-portal * {
  box-sizing: border-box;
}

.lex-portal h2,
.lex-portal h3,
.lex-portal h4 {
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1.5;
}

.lex-portal h3 {
  margin-bottom: 16px;
}

.lex-portal h4 {
  margin-bottom: 10px;
}

/* ポータルタイトル */

.lex-portal .lex-header {
  text-align: center;
  color: #345748;
  margin-bottom: 34px;
}

.lex-portal .lex-header h2 {
  margin: 8px 0 12px;
}

.lex-portal .lex-header p {
  margin: 8px 0;
}

/* 共通カードデザイン */

.lex-portal .lex-card {
  background: #ffffff;
  border: 1px solid #dce6d6;
  border-radius: 14px;
  padding: 28px;
  margin: 0;
}

.lex-portal .lex-card h3 {
  color: #345748;
  font-size: 22px;
  margin: 0 0 18px;
}

.lex-portal .lex-card h4 {
  margin-top: 14px;
  margin-bottom: 12px;
}

.lex-portal .lex-card p {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.lex-portal .lex-card > :last-child {
  margin-bottom: 0;
}

/* Teacher's Guide */

.lex-portal .lex-guide {
  border-left: 5px solid #527d70;
  margin-bottom: 28px !important;
}

/* ボタン共通 */

.lex-portal .lex-btn .wp-block-button__link {
  background: #527d70;
  color: #ffffff !important;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
  transition: opacity 0.2s ease,
              transform 0.2s ease;
}

.lex-portal .lex-btn .wp-block-button__link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Lesson Programs */

.lex-portal .lex-blue .wp-block-button__link {
  background: #3b6daa;
}

.lex-portal .lex-card .wp-block-image {
  margin-bottom: 18px;
}

.lex-portal .lex-card .wp-block-image img {
  border-radius: 8px;
}

/* Useful Resources */

.lex-portal .lex-resource {
  background: #fff7e6;
  border: 1px solid #f0e3ca;
  border-radius: 10px;
  padding: 18px;
  margin-top: 18px;
  margin-bottom: 0;
}

.lex-portal .lex-resource + .lex-resource {
  margin-top: 18px !important;
}

.lex-portal .lex-resource h4 {
  margin: 0 0 8px;
}

.lex-portal .lex-resource p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.lex-portal .lex-resource a {
  color: #806537;
  font-weight: 700;
  text-decoration: none;
}

.lex-portal .lex-resource a:hover {
  text-decoration: underline;
}

/* キャプション */

.lex-portal .lex-caption {
  font-size: 12px;
  color: #758379;
  text-align: center;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

/* セクション見出し */

.lex-portal .lex-section-title {
  color: #345748;
  border-top: 1px solid #d7e2d7;
  padding-top: 28px;
  margin-top: 42px !important;
  margin-bottom: 18px !important;
}

.lex-portal .lex-section-title + h3 {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* 2カラム・3カラムの余白 */

.lex-portal .wp-block-columns {
  gap: 26px;
  margin-top: 0;
  margin-bottom: 26px !important;
}

.lex-portal .wp-block-columns:last-child {
  margin-bottom: 0 !important;
}

.lex-portal .wp-block-column {
  min-width: 0;
}

.lex-portal .wp-block-column > .lex-card {
  height: 100%;
}

/* EIKEN Resources
   級別カード */

.lex-portal .lex-grade {
  background: #ffffff;
  border: 1px solid #dce6d6;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  height: 100%;
}

.lex-portal .lex-grade-head {
  background: var(--grade-bg);
  color: var(--grade-color);
  font-size: 20px;
  font-weight: 700;
  padding: 15px 20px;
  margin: 0 !important;
}

.lex-portal .lex-grade-body {
  padding: 20px;
  margin-top: 0 !important;
}

.lex-portal .lex-grade .wp-block-buttons,
.lex-portal .lex-grade .wp-block-button {
  width: 100%;
}

.lex-portal .lex-grade .wp-block-buttons {
  margin-top: 0;
  margin-bottom: 0;
}

.lex-portal .lex-grade .wp-block-button__link {
  width: 100%;
  background: var(--grade-color);
  color: #ffffff !important;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.lex-portal .lex-grade .wp-block-button__link:hover {
  opacity: 0.85;
}

.lex-portal .lex-grade-body p {
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  margin: 10px 0 20px;
}

.lex-portal .lex-grade-body p:last-child {
  margin-bottom: 0;
}

/* 英検4級 */

.lex-portal .lex-g4 {
  --grade-color: #c43b79;
  --grade-bg: #fceef5;
}

/* 英検3級 */

.lex-portal .lex-g3 {
  --grade-color: #167db4;
  --grade-bg: #eaf6fc;
}

/* 英検準2級 */

.lex-portal .lex-pre2 {
  --grade-color: #7969bb;
  --grade-bg: #f1eeff;
}

/* 英検2級 */

.lex-portal .lex-g2 {
  --grade-color: #438951;
  --grade-bg: #ebf7ed;
}

/* Interview Test
   二次試験対策 */

.lex-portal .lex-interview-note {
  background: #e9f0e3;
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.9;
  margin-top: 18px;
  margin-bottom: 24px !important;
}

.lex-portal .lex-interview-note p {
  margin-top: 0;
  margin-bottom: 12px;
}

.lex-portal .lex-interview-note p:last-child {
  margin-bottom: 0;
}

/* 動画カード */

.lex-portal .lex-video-card {
  background: #ffffff;
  border: 1px solid #dce6d6;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.lex-portal .lex-video-card iframe {
  display: block;
  max-width: 100%;
}

.lex-portal .lex-video-label {
  text-align: center;
  padding: 12px;
  margin: 0 !important;
  font-size: 15px;
  font-weight: 700;
  background: #edf3e9;
}

/* スマートフォン・タブレット */

@media (max-width: 781px) {

  .lex-portal {
    padding: 24px 14px 32px;
  }

  .lex-portal .lex-header {
    margin-bottom: 24px;
  }

  .lex-portal .lex-card {
    padding: 20px;
  }

  .lex-portal .lex-card h3 {
    font-size: 20px;
  }

  .lex-portal .lex-guide {
    margin-bottom: 20px !important;
  }

  .lex-portal .wp-block-columns {
    gap: 18px;
    margin-bottom: 20px !important;
  }

  .lex-portal .lex-section-title {
    margin-top: 30px !important;
    padding-top: 22px;
  }

  .lex-portal .lex-grade-head {
    font-size: 18px;
    padding: 13px 16px;
  }

  .lex-portal .lex-grade-body {
    padding: 16px;
  }

  .lex-portal .lex-resource {
    padding: 16px;
  }

  .lex-portal .lex-interview-note {
    padding: 16px;
  }

}