@charset "UTF-8";
/* ==========================================================================
   研修LP 共通ファーストビュー（parts/lp/hero.php）
   - 各クラスの classes/{slug}/assets/css/style.css より後に読み込む
   - クラス名はすべて lp-hero で始める（既存の .mv 系・.link-btn とは独立）
   - ブレークポイントは既存LPに合わせる：767px / 1023px / 1200px
   ========================================================================== */

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

  position: relative;
  margin: 0;
  padding: 4rem 0 4.5rem;
  background-color: #E6E6EE;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: var(--lp-hero-text);
  line-height: 1.6;
  font-weight: 600;
  text-align: left;
}

/* 背景画像（既存 .mv と同じ mv_bg）。文字を読みやすくするため白を重ねる */
.lp-hero--has-bg {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.35) 100%),
    var(--lp-hero-bg);
}
@supports (background-image: image-set(url("a.webp") type("image/webp"))) {
  .lp-hero--has-bg {
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0.35) 100%),
      image-set(var(--lp-hero-bg-webp) type("image/webp"), var(--lp-hero-bg) type("image/jpeg"));
  }
}

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

.lp-hero__inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  max-width: calc(75rem + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 左：クラス名〜受講料 ---- */
.lp-hero__main {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  flex: 1 1 auto;
  min-width: 0;
}

.lp-hero__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lp-hero__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.lp-hero__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--lp-hero-navy-dark);
  /* 長いクラス名（A-CSM・CSP-SM など）が狭い幅で「スクラムマスタ／ー」のように語の途中で折れないよう、
     半角スペースの位置で折り返す。それでも収まらない場合だけ文字単位で折る */
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.lp-hero__trademark {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
}

.lp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-hero__badge {
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--lp-hero-line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--lp-hero-navy-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  white-space: nowrap;
}

.lp-hero__badge--accent {
  border-color: var(--lp-hero-gold-dark);
  background-color: var(--lp-hero-gold-dark);
  color: #fff;
}

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

.lp-hero__title span {
  color: var(--lp-hero-gold);
}

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

/* ---- ボタン ---- */
.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 42rem;
  padding-top: 0.25rem;
}

.lp-hero__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4rem;
  margin: 0;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.1875rem;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lp-hero__btn:hover,
.lp-hero__btn:focus {
  text-decoration: none;
}
.lp-hero__btn:hover {
  opacity: 0.85;
  transform: translateY(0.125rem) translateX(0.125rem);
}
.lp-hero__btn:focus-visible {
  outline: 3px solid var(--lp-hero-gold);
  outline-offset: 2px;
}

.lp-hero__btn-label {
  flex: 1 1 auto;
  /* PC・タブレットでは途中で折り返さない（入りきらない場合はボタンごと次の行へ回る） */
  white-space: nowrap;
}

.lp-hero__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
  line-height: 1;
}

.lp-hero__btn--primary {
  flex: 3 1 18.75rem;
  background-color: var(--lp-hero-red);
  border-color: var(--lp-hero-red);
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
}
/* ボタンが1つだけのクラスでは横いっぱいに広げず、2つ並ぶとき（CSM）の主ボタンと同じ幅にする */
@media screen and (min-width: 768px) {
  .lp-hero__btn--primary:only-child {
    flex: 0 1 24rem;
  }
}
.lp-hero__btn--primary,
.lp-hero__btn--primary:hover,
.lp-hero__btn--primary:focus,
.lp-hero__btn--primary:visited {
  color: #fff;
}
.lp-hero__btn--primary .lp-hero__btn-icon {
  background-color: #F2C2C2;
  color: var(--lp-hero-navy-dark);
}

.lp-hero__btn--secondary {
  flex: 2 1 13.75rem;
  background-color: #fff;
  border-color: var(--lp-hero-navy);
  font-size: 1rem;
}
.lp-hero__btn--secondary,
.lp-hero__btn--secondary:hover,
.lp-hero__btn--secondary:focus,
.lp-hero__btn--secondary:visited {
  color: var(--lp-hero-navy);
}
.lp-hero__btn--secondary .lp-hero__btn-icon {
  background-color: #E6E6EE;
  color: var(--lp-hero-navy-dark);
}

.lp-hero__price {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--lp-hero-text);
  text-wrap: pretty;
}

/* ---- 右：認定バッジ＋受講ステップ ---- */
.lp-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 25rem;
  width: 25rem;
}

.lp-hero__badge-img {
  display: block;
  height: auto;
  object-fit: contain;
}

.lp-hero__badge-img--pc {
  width: 100%;
  max-width: 22.5rem;
  margin: 0 auto;
}

.lp-hero__badge-img--sp {
  display: none;
}

.lp-hero__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-hero__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-hero__step-arrow {
  color: #8C8FB8;
  font-size: 0.875rem;
  line-height: 1;
}

.lp-hero__step-label {
  display: inline-block;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--lp-hero-line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--lp-hero-navy);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.lp-hero__step--current .lp-hero__step-label {
  border-color: var(--lp-hero-navy-dark);
  background-color: var(--lp-hero-navy-dark);
  color: #fff;
}

/* ---- 1024px以上（PC）：受講ステップは必ず1段。
   PO系はラベルが長く、枠との余裕が数pxしかないため、閲覧環境の文字幅の差で2段に折れることがあった ---- */
@media screen and (min-width: 1024px) {
  .lp-hero__steps {
    flex-wrap: nowrap;
  }
}

/* ---- 1200px以下 ---- */
@media screen and (max-width: 1200px) {
  .lp-hero__inner {
    gap: 2.5rem;
  }
  .lp-hero__visual {
    flex-basis: 21.25rem;
    width: 21.25rem;
  }
  .lp-hero__steps,
  .lp-hero__step {
    gap: 0.375rem;
  }
  .lp-hero__step-label {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }
}

/* ---- 1023px以下（タブレット） ---- */
@media screen and (max-width: 1023px) {
  .lp-hero {
    padding: 3rem 0 3.5rem;
  }
  .lp-hero__inner {
    gap: 2rem;
  }
  .lp-hero__visual {
    flex-basis: 15rem;
    width: 15rem;
    gap: 1rem;
  }
  .lp-hero__steps {
    flex-direction: column;
    gap: 0.25rem;
  }
  .lp-hero__step {
    flex-direction: column;
    gap: 0.25rem;
  }
  .lp-hero__step-arrow {
    transform: rotate(90deg);
  }
}

/* ---- 767px以下（スマホ）：縦積み。バッジ画像はいちばん上に中央寄せで出す ---- */
@media screen and (max-width: 767px) {
  .lp-hero {
    padding: 1.25rem 0 2rem;
  }
  .lp-hero--has-bg {
    background-position: left center;
  }
  .lp-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .lp-hero__main {
    gap: 0.875rem;
  }
  .lp-hero__head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .lp-hero__badge-img--sp {
    display: block;
    flex: 0 0 auto;
    width: 8.75rem;
    margin: 0 auto;
  }
  /* 375px幅で「スクラムマスターの第一歩を、」(14字)が1行に収まる大きさ */
  .lp-hero__title {
    font-size: clamp(1.25rem, 6.1vw, 1.75rem);
    letter-spacing: 0;
  }
  .lp-hero__badge-img--pc {
    display: none;
  }
  .lp-hero__name {
    font-size: 0.875rem;
  }
  .lp-hero__badge {
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
  }
  .lp-hero__lead {
    font-size: 0.875rem;
    line-height: 1.75;
  }
  .lp-hero__actions {
    flex-direction: column;
    gap: 0.625rem;
    max-width: none;
    padding-top: 0;
  }
  .lp-hero__btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 3.5rem;
  }
  .lp-hero__btn-label {
    white-space: normal;
  }
  .lp-hero__btn--primary {
    font-size: 1.0625rem;
  }
  .lp-hero__btn--secondary {
    font-size: 0.9375rem;
  }
  .lp-hero__btn-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
  .lp-hero__price {
    font-size: 0.8125rem;
  }
  .lp-hero__visual {
    flex: 0 0 auto;
    width: 100%;
  }
  /* スマホでは右側のバッジ画像を出さないので、ステップが無ければ右側ごと消す */
  .lp-hero__visual--no-steps {
    display: none;
  }
  .lp-hero__steps {
    flex-direction: row;
    gap: 0.375rem;
  }
  .lp-hero__step {
    flex-direction: row;
    gap: 0.375rem;
  }
  .lp-hero__step-arrow {
    transform: none;
    font-size: 0.75rem;
  }
  .lp-hero__step-label {
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
  }
}
