@charset "UTF-8";
/* ==========================================================================
   研修LP 共通「日本語のためのクラス」セクション（parts/lp/japanese.php）
   - 各クラスの classes/{slug}/assets/css/style.css より後に読み込む
   - クラス名はすべて lp-japanese で始める（既存の .title などとは独立）
   - ブレークポイントは既存LPに合わせる：767px / 1023px / 1200px
   ========================================================================== */

.lp-japanese {
  --lp-japanese-navy: #313485;
  --lp-japanese-navy-dark: #1E2051;
  /* 強調色。クラスごとの色はfunctions.phpのauto_enqueue_lp_assets()で--lp-accent・--lp-accent-darkを出して上書きする（未指定なら金） */
  --lp-japanese-gold: var(--lp-accent, #A78431);
  --lp-japanese-gold-dark: var(--lp-accent-dark, #8C6D24); /* 小さい文字に使う金（白地でも読める濃さ） */
  --lp-japanese-text: #333333;
  --lp-japanese-card-bg: #F5F5F5;

  position: relative;
  margin: 6.5rem 0 0;
  padding: 5.5rem 0;
  background-color: #fff;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--lp-japanese-text);
  line-height: 1.6;
  font-weight: 600;
  text-align: left;
}

.lp-japanese *,
.lp-japanese *::before,
.lp-japanese *::after {
  box-sizing: border-box;
}

.lp-japanese__inner {
  max-width: calc(75rem + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 見出しブロック ---- */
.lp-japanese__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 51.25rem;
}

.lp-japanese__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--lp-japanese-gold-dark);
}

.lp-japanese__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--lp-japanese-navy-dark);
  text-align: left;
  /* 日本語の途中で改行しない（「、」の後ろで折り返す）。それでも収まらない場合だけ文字単位で折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.lp-japanese__title::before,
.lp-japanese__title::after {
  content: none;
}

.lp-japanese__lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--lp-japanese-text);
  text-wrap: pretty; /* 最終行に1〜2文字だけ残るのを避ける（未対応ブラウザは通常の折り返し） */
}

/* PC・タブレットだけ文の区切りで改行する（スマホでは自然に折り返す） */
.lp-japanese__br-pc {
  display: inline;
}

/* ---- カード ---- */
.lp-japanese__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.lp-japanese__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 1.625rem;
  border-radius: 0.5rem;
  background-color: var(--lp-japanese-card-bg);
  list-style: none;
}
.lp-japanese__card::before,
.lp-japanese__card::after {
  content: none;
}

.lp-japanese__card-num {
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--lp-japanese-gold);
}

.lp-japanese__card-title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--lp-japanese-navy-dark);
  text-align: left;
  /* PHP側で文節の間に <wbr> を入れている。そこでだけ折り返し、それでも収まらない場合だけ文字単位で折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.lp-japanese__card-title::before,
.lp-japanese__card-title::after {
  content: none;
}

.lp-japanese__card-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--lp-japanese-text);
  text-wrap: pretty;
}

/* ---- 1200px以下：4列のまま詰める ---- */
@media screen and (max-width: 1200px) {
  .lp-japanese__cards {
    gap: 1rem;
  }
  .lp-japanese__card {
    padding: 1.375rem;
  }
  .lp-japanese__card-title {
    font-size: 1.0625rem;
  }
  .lp-japanese__card-text {
    font-size: 0.875rem;
  }
}

/* ---- 1023px以下（タブレット）：2列 ---- */
@media screen and (max-width: 1023px) {
  /* 1023px以下では、直前の講師紹介が下に padding-bottom:3rem を持つ（lp-trainer.css の #trainer.trainer:has(+ .lp-japanese)）。
     それと合わせて講師紹介の中身から 6rem（767px以下は下の 2rem と合わせて 5rem）になるよう、上の間隔は控えめにする */
  .lp-japanese {
    margin-top: 3rem;
    padding: 4.5rem 0;
  }
  .lp-japanese__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2.5rem;
  }
  .lp-japanese__card {
    padding: 1.625rem;
  }
}

/* ---- 767px以下（スマホ）：1列 ---- */
@media screen and (max-width: 767px) {
  .lp-japanese {
    margin-top: 2rem;
    padding: 3.5rem 0;
  }
  .lp-japanese__head {
    gap: 0.75rem;
  }
  .lp-japanese__br-pc {
    display: none;
  }
  .lp-japanese__label {
    font-size: 0.8125rem;
  }
  .lp-japanese__title {
    font-size: clamp(1.375rem, 7vw, 1.75rem);
    letter-spacing: 0;
  }
  .lp-japanese__lead {
    font-size: 0.875rem;
    line-height: 1.75;
  }
  .lp-japanese__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
    margin-top: 2rem;
  }
  .lp-japanese__card {
    gap: 0.5rem;
    padding: 1.375rem 1.25rem;
  }
  .lp-japanese__card-num {
    font-size: 1.875rem;
  }
  .lp-japanese__card-title {
    font-size: 1rem;
  }
  .lp-japanese__card-text {
    font-size: 0.875rem;
  }
}
