/* ==========================================================================
   ジョブゼミ HOMEページ スタイルシート
   ========================================================================== */

/* ==========================================================================
   sec0 ヒーロー
   ========================================================================== */

.jsemi-hero {
  height: 100vh;
  background: url("../images/hero_bg.png") center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 50px 40px;
}

.jsemi-hero-inner {
  width: 864px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.jsemi-hero-catch {
  /* 原本はマスクがカラム全幅(864)を覆う */
  width: 100%;
  font-size: 32px;
  line-height: 44.8px;
  color: var(--yellow);
  letter-spacing: 1.6px;
  font-weight: 800;
}

.jsemi-hero-title {
  margin-top: 0;
  font-size: 90px;
  line-height: 108px;
  color: var(--yellow);
  letter-spacing: 4.5px;
  font-weight: 800;
}

.jsemi-hero-stats {
  margin-top: 60px;
  display: flex;
  gap: 8px;
}

.jsemi-stat {
  width: 210px;
  height: 77px;
  background: rgba(238, 238, 238, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.jsemi-stat-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
}

.jsemi-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}

.jsemi-stat-unit {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
}

/* ==========================================================================
   sec1 ジョブゼミとは
   ========================================================================== */

.jsemi-about {
  padding: 96px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.jsemi-about-title {
  font-size: 30px;
  line-height: 45px;
  color: var(--navy);
  font-weight: 900;
}

.jsemi-about-text {
  width: 700px;
  max-width: 100%;
  font-size: 16px;
  line-height: 28.8px;
}

/* ==========================================================================
   sec2 こんなお悩みありませんか
   ========================================================================== */

.jsemi-trouble {
  background: #D9D9D9;
  padding: 140px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.jsemi-trouble-title {
  font-size: 30px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.jsemi-trouble-list {
  width: 700px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jsemi-trouble-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jsemi-trouble-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--navy);
}

.jsemi-trouble-text {
  font-size: 16px;
  line-height: 28.8px;
}

/* ==========================================================================
   sec3 支援体制
   ========================================================================== */

.jsemi-support {
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.jsemi-support-head {
  width: 700px;
  max-width: 100%;
  text-align: center;
}

.jsemi-support-title {
  /* 原本のマスクはテキスト幅にフィット(白帯が広がらないように) */
  width: fit-content;
  margin-inline: auto;
  font-size: 30px;
  color: var(--navy);
  font-weight: 900;
}

.jsemi-support-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 28.8px;
}

.jsemi-support-illust {
  width: 520px;
  height: 386px;
  max-width: 100%;
  margin: 0 auto;
}

.jsemi-support-grid {
  display: flex;
  gap: 40px;
}

.jsemi-support-col {
  width: 331px;
}

.jsemi-support-label {
  font-size: 16px;
  color: #333;
}

.jsemi-support-coltitle {
  margin-top: 8px;
  font-size: 20px;
  line-height: 30px;
  color: var(--navy);
  font-weight: 900;
}

.jsemi-support-coltext {
  margin-top: 8px;
  font-size: 16px;
  line-height: 28.8px;
}

/* ==========================================================================
   sec4/7 CTAバナー
   ========================================================================== */

.jsemi-ctaband {
  padding: 48px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jsemi-ctaband--gray {
  background: #D9D9D9;
}

.jsemi-ctaband-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  height: 75px;
  background: var(--yellow);
  border-radius: 80px;
  font-size: 25px;
  color: #fff;
  font-weight: 800;
  /* fade-in(1s)とホバー遷移(0.3s)の両立: transitionは丸ごと上書きされるため全プロパティ併記 */
  border: 3px solid transparent;
  transition:
    opacity 1s ease-in-out,
    translate 1s ease-in-out,
    background-color 0.3s ease-in-out,
    border-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.jsemi-ctaband-btn:hover {
  background: #fff;
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ==========================================================================
   sec5 サービス
   ========================================================================== */

.jsemi-service {
  background: url("../images/services_bg.svg") center / cover no-repeat;
  padding: 140px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.jsemi-service-head {
  width: 700px;
  max-width: 100%;
  text-align: center;
}

.jsemi-service-title {
  width: fit-content;
  margin-inline: auto;
  font-size: 30px;
  color: #fff;
  font-weight: 900;
}

.jsemi-service-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 28.8px;
  color: #fff;
}

.jsemi-service-block {
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.jsemi-service-label {
  font-size: 30px;
  color: #fff;
  font-weight: 800;
  text-align: left;
}

.jsemi-service-cards {
  display: grid;
  grid-template-columns: repeat(2, 567px);
  gap: 32px;
  justify-content: center;
}

.jsemi-service-card {
  width: 567px;
  background: var(--lgray);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.jsemi-service-card--rpo {
  gap: 16px;
}

.jsemi-card-num {
  font-size: 17px;
  color: #333;
}

.jsemi-card-title {
  font-size: 28px;
  line-height: 42px;
  color: var(--yellow);
  letter-spacing: 0.84px;
  font-weight: 800;
}

.jsemi-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jsemi-card-item {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 17px;
  line-height: 25.5px;
}

.jsemi-card-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: #333;
}

.jsemi-card-desc {
  font-size: 17px;
  line-height: 25.5px;
}

/* ==========================================================================
   sec6 実績
   ========================================================================== */

.jsemi-results {
  background: url("../images/results_bg.svg") 50% 0% / cover no-repeat;
  padding: 372px 50px 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.jsemi-results-head {
  text-align: center;
}

.jsemi-results-title {
  width: fit-content;
  margin-inline: auto;
  font-size: 30px;
  color: var(--navy);
  font-weight: 900;
}

.jsemi-results-desc {
  margin-top: 16px;
  width: 583px;
  max-width: 100%;
  font-size: 16px;
  line-height: 28.8px;
}

.jsemi-results-sublabel {
  width: 100%;
  max-width: 1180px;
  font-size: 30px;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
}

.jsemi-results-stats {
  display: flex;
  gap: 24px;
}

.jsemi-results-stat {
  width: 276px;
  height: 200px;
  background: var(--lgray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.jsemi-results-stat-label {
  font-size: 20px;
  line-height: 30px;
  color: var(--navy);
}

.jsemi-results-stat-value {
  font-size: 30px;
  color: var(--navy);
  font-weight: 800;
}

.jsemi-results-stat-unit {
  font-size: 20px;
  color: var(--navy);
}

.jsemi-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 571px);
  gap: 24px;
  justify-content: center;
}

.jsemi-case-card {
  width: 571px;
  min-height: 300px;
  background: var(--lgray);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.jsemi-case-tags {
  display: flex;
  gap: 16px;
}

.jsemi-case-tag {
  padding: 10px;
  font-size: 14px;
  color: #333;
  background: var(--lgray);
  border: 1px solid var(--navy);
}

.jsemi-case-tag--navy {
  background: var(--navy);
  color: #fff;
  border: none;
}

.jsemi-case-title {
  padding: 24px 0;
  font-size: 24px;
  line-height: 36px;
  color: var(--navy);
  letter-spacing: 0.72px;
  font-weight: 800;
}

.jsemi-case-result {
  font-size: 24px;
  color: var(--yellow);
  font-weight: 800;
}

/* ==========================================================================
   sec8 ジョブゼミの約束
   ========================================================================== */

.jsemi-promise {
  background: url("../images/promise_bg.svg") center / cover no-repeat;
  padding: 140px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.jsemi-promise-title {
  font-size: 30px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.jsemi-promise-desc {
  margin-top: 16px;
  width: 583px;
  max-width: 100%;
  font-size: 16px;
  line-height: 28.8px;
  color: var(--navy);
  text-align: center;
}

.jsemi-promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 573px);
  gap: 20px;
  justify-content: center;
}

.jsemi-promise-item {
  width: 573px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jsemi-promise-num {
  font-size: 20px;
  line-height: 28px;
  color: var(--navy);
}

.jsemi-promise-title2 {
  font-size: 30px;
  line-height: 45px;
  color: var(--navy);
  font-weight: 800;
}

.jsemi-promise-text {
  font-size: 17px;
  line-height: 25.5px;
  color: var(--navy);
}

/* ==========================================================================
   sec9 ご支援の流れ
   ========================================================================== */

.jsemi-flow {
  background: url("../images/flow_bg.svg") center / cover no-repeat;
  padding: 140px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.jsemi-flow-head {
  text-align: center;
}

.jsemi-flow-title {
  width: fit-content;
  margin-inline: auto;
  font-size: 30px;
  color: #fff;
  font-weight: 900;
}

.jsemi-flow-desc {
  margin-top: 16px;
  width: 583px;
  max-width: 100%;
  font-size: 16px;
  color: #fff;
}

.jsemi-flow-cards {
  display: flex;
  gap: 16px;
}

.jsemi-flow-card {
  width: 220px;
  height: 328px;
  background: url("../images/step_figure.svg") center / cover no-repeat;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jsemi-flow-step {
  font-size: 16px;
  line-height: 28.8px;
  color: #000;
}

.jsemi-flow-title2 {
  font-size: 16px;
  line-height: 25.6px;
  color: var(--navy);
  font-weight: 800;
}

.jsemi-flow-text {
  padding: 32px 16px 0;
  font-size: 13px;
  line-height: 23.4px;
  color: #000;
}

/* モバイル用STEPカード(原本は941px以下でデスクトップ用DOMと差し替え。
   原本モバイルの背景画像は取得不能のため白カードで再構成) */
.jsemi-flow-cards-sp {
  display: none;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.jsemi-flow-card-sp {
  /* 原本画像(上辺中央にV字切れ込みの白矩形)をCSSで模倣。
     切れ込みは原本実測で幅36px・深さ約19px相当だが、ユーザー指示により浅め(12px)に調整 */
  background: #fff;
  clip-path: polygon(
    0 0,
    calc(50% - 18px) 0,
    50% 12px,
    calc(50% + 18px) 0,
    100% 0,
    100% 100%,
    0 100%
  );
  padding: 64px 50px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
}

/* 原本ママ: STEP 01のみ切れ込みなしの無地 */
.jsemi-flow-card-sp:first-child {
  clip-path: none;
}

.jsemi-flow-step-sp {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  color: #333;
}

/* 原本ママ: STEP 01のラベルのみ15px */
.jsemi-flow-card-sp:first-child .jsemi-flow-step-sp {
  font-size: 15px;
}

.jsemi-flow-title2-sp {
  font-size: 36px;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 900;
}

.jsemi-flow-text-sp {
  font-size: 15px;
  line-height: 1.4;
  color: #333;
  text-align: left;
}

/* ==========================================================================
   sec10 FAQ
   ========================================================================== */

.jsemi-faq {
  padding: 140px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.jsemi-faq-title {
  font-size: 30px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.jsemi-faq-list {
  width: 700px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.jsemi-faq-item {
  border-bottom: 1px solid var(--line);
}

.jsemi-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.jsemi-faq-q {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: var(--navy);
  font-weight: 400;
}

.jsemi-faq-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--navy);
}

.jsemi-faq-arrow {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--navy);
  /* グリフはarrow_drop_up(原本ママ)。原本は閉状態で180度回転させて下向き▼にしている */
  transform: rotate(180deg);
  transition: transform 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.jsemi-faq-item.is-open .jsemi-faq-arrow {
  transform: rotate(0deg);
}

.jsemi-faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0.4, 0, 1), padding 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.jsemi-faq-item.is-open .jsemi-faq-answer {
  padding: 12px;
}

.jsemi-faq-answer-text {
  font-size: 14px;
  line-height: 19.6px;
  color: #333;
}

/* ==========================================================================
   タブレット帯（941px以下 = 原本の構造切替帯）
   ========================================================================== */

@media (max-width: 941px) {

  /* sec0 ヒーロー(原本モバイル用DOMの値) */
  .jsemi-hero {
    height: 100vh;
    height: 100dvh;
    padding: 72px 8px 0;
  }

  .jsemi-hero-inner {
    width: 439px;
    gap: 24px;
  }

  .jsemi-hero-catch {
    font-size: 20px;
    line-height: 1.4;
  }

  .jsemi-hero-title {
    font-size: 43px;
    line-height: 51.6px;
  }

  /* 統計は2×2 */
  .jsemi-hero-stats {
    margin-top: 0;
    width: 609px;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .jsemi-stat {
    width: calc(50% - 4px);
    height: auto;
    padding: 8px 10px;
  }

  .jsemi-stat-label {
    font-size: 12px;
  }

  .jsemi-stat-value {
    font-size: 20px;
  }

  .jsemi-stat-unit {
    font-size: 14px;
  }

  /* sec1 ジョブゼミとは */
  .jsemi-about {
    padding: 96px 10px;
  }

  .jsemi-about-text {
    width: 100%;
  }

  /* sec2 こんなお悩みありませんか */
  .jsemi-trouble {
    padding: 80px 10px;
  }

  .jsemi-trouble-list {
    width: 100%;
  }

  /* sec3 支援体制 */
  .jsemi-support {
    padding: 72px 10px 0;
  }

  .jsemi-support-grid {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .jsemi-support-col {
    width: 100%;
  }

  /* sec4/7 CTAバナー(原本: 1つ目40px 16px / 2つ目24px 8px) */
  .jsemi-ctaband {
    padding: 40px 16px;
  }

  .jsemi-ctaband--gray {
    padding: 24px 8px;
  }

  .jsemi-ctaband-btn {
    width: 100%;
    max-width: 657px;
    height: auto;
    padding: 16px 15px;
    font-size: 15px;
  }

  /* sec5 サービス */
  .jsemi-service {
    padding: 56px 10px;
    gap: 56px;
  }

  .jsemi-service-title {
    font-size: 36px;
  }

  /* 原本: ラベルは企業研修48px / RPO36px */
  .jsemi-service-head + .jsemi-service-block .jsemi-service-label {
    font-size: 48px;
  }

  .jsemi-service-block + .jsemi-service-block .jsemi-service-label {
    font-size: 36px;
  }

  .jsemi-service-cards,
  .jsemi-service-cards--rpo {
    grid-template-columns: 1fr;
  }

  .jsemi-service-card {
    width: 100%;
    padding: 24px 8px;
  }

  .jsemi-card-title {
    font-size: 20px;
    line-height: 1.5;
  }

  .jsemi-card-item,
  .jsemi-card-desc {
    font-size: 15px;
    line-height: 1.5;
  }

  /* sec6 実績 */
  .jsemi-results {
    padding: 64px 10px 24px;
  }

  .jsemi-results-title {
    font-size: 36px;
  }

  .jsemi-results-sublabel {
    font-size: 36px;
    /* ユーザー指示: モバイルは左寄せ(原本仕様)だと据わりが悪いためセンター */
    text-align: center;
  }

  .jsemi-results-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .jsemi-case-grid {
    grid-template-columns: 1fr;
  }

  .jsemi-case-card {
    width: 100%;
    height: auto;
  }

  .jsemi-case-tag {
    font-size: 16px;
  }

  .jsemi-case-result {
    font-size: 20px;
  }

  /* sec8 ジョブゼミの約束 */
  .jsemi-promise {
    padding: 24px 10px 112px;
  }

  .jsemi-promise-title {
    font-size: 36px;
  }

  .jsemi-promise-grid {
    grid-template-columns: 1fr;
  }

  .jsemi-promise-item {
    width: 100%;
  }

  .jsemi-promise-text {
    font-size: 15px;
    line-height: 1.5;
  }

  /* sec9 ご導入の流れ: 原本は941以下でモバイル用カードに差し替え */
  .jsemi-flow {
    padding: 140px 16px;
  }

  /* headがfit-content幅のままだと583px指定のdescをクランプできず横はみ出しする */
  .jsemi-flow-head {
    width: 100%;
  }

  .jsemi-flow-title {
    font-size: 36px;
  }

  .jsemi-flow-cards {
    display: none;
  }

  .jsemi-flow-cards-sp {
    display: flex;
  }

  /* sec10 FAQ(質問は20pxのまま。原本は縮小しない) */
  .jsemi-faq {
    padding: 64px 10px;
  }

  .jsemi-faq-title {
    font-size: 36px;
  }

  .jsemi-faq-answer-text {
    font-size: 16px;
    line-height: 1.4;
  }
}

/* ==========================================================================
   スマホ帯（540px以下 = 原本のスマホ帯）
   ========================================================================== */

@media (max-width: 540px) {

  .jsemi-stat-label {
    font-size: 15px;
  }

  .jsemi-about-title {
    font-size: 24px;
  }

  .jsemi-about-text {
    font-size: 13px;
    line-height: 23.4px;
  }

  .jsemi-trouble-text {
    font-size: 13px;
  }

  .jsemi-support {
    gap: 8px;
  }

  .jsemi-support-title {
    font-size: 20px;
  }

  .jsemi-support-illust {
    width: 305px;
    height: 227px;
  }

  .jsemi-support-col {
    text-align: center;
  }

  .jsemi-service {
    gap: 24px;
  }

  .jsemi-service-desc {
    font-size: 13px;
  }

  .jsemi-service-card--rpo {
    padding: 16px;
  }

  .jsemi-card-title {
    font-size: 15px;
    line-height: 22.5px;
  }

  .jsemi-card-item,
  .jsemi-card-desc {
    font-size: 14px;
  }

  .jsemi-results {
    gap: 40px;
  }

  .jsemi-results-desc {
    width: 100%;
    font-size: 13px;
  }

  /* 実績統計は縦積み(原本: bg#eee 全幅) */
  .jsemi-results-stats {
    flex-direction: column;
    row-gap: 8px;
    width: 100%;
  }

  .jsemi-results-stat {
    width: 100%;
    height: auto;
    padding: 16px 10px;
    gap: 8px;
  }

  .jsemi-results-stat-label {
    font-size: 12px;
    line-height: 1.5;
  }

  .jsemi-results-stat-value {
    font-size: 16px;
    line-height: 1;
  }

  .jsemi-results-stat-unit {
    font-size: 12px;
  }

  .jsemi-case-grid {
    gap: 8px;
  }

  .jsemi-case-card {
    min-height: 0;
    padding: 24px 10px;
  }

  .jsemi-case-tag {
    font-size: 10px;
  }

  .jsemi-case-tags {
    gap: 8px;
  }

  /* 原本ママ: カード3・4枚目のみタグ間隔16px */
  .jsemi-case-card:nth-child(n+3) .jsemi-case-tags {
    gap: 16px;
  }

  .jsemi-case-title {
    padding: 8px 0;
    font-size: 16px;
    line-height: 24px;
  }

  .jsemi-promise-grid {
    gap: 0;
  }

  .jsemi-promise-title2 {
    font-size: 20px;
    line-height: 30px;
  }

  .jsemi-promise-text {
    font-size: 14px;
    line-height: 21px;
  }

  .jsemi-flow {
    padding: 64px 10px;
    gap: 32px;
  }

  .jsemi-flow-desc {
    margin-top: 40px;
    font-size: 13px;
    text-align: center;
  }

  /* 原本: スマホ帯はpadding 16px / gap 8px(941帯は64px 50px / gap 0) */
  .jsemi-flow-card-sp {
    padding: 16px;
    gap: 8px;
  }

  .jsemi-faq {
    gap: 32px;
  }
}
