@charset "UTF-8";

/* ===================================
    04｜未来を知る（future/index.html）
    Figma: PC 3309-11060 / SP 3770-63534（v3）
    ・赤地に「FUTURE 0X」のピンク大ラベル＋白い角丸パネル（KNOW と同じ考え方）
    ・SP も同じ構成を 390px に縮めて積む（ラベル 56px・パネル 30px 角丸）
=================================== */
.main--future {
  padding-top: 0;
  background: var(--color-main);
  overflow-x: clip;
}

/* ===================================
    ヒーロー
=================================== */
.ftHero {
  position: relative;
  height: 70.3rem;
}

.ftHero__img {
  position: absolute;
  top: 11.5rem;
  left: 54.2rem;
  right: 0;
  height: 52.6rem;
  border-radius: 5rem;
  overflow: hidden;
}

.ftHero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ftHero__body {
  position: absolute;
  top: 22.9rem;
  left: 10.8rem;
  width: 36.4rem;
  color: #fff;
}

.ftHero__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ftHero__en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 8rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: -0.7rem;
}

.ftHero__ja {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.44;
  letter-spacing: 0.06em;
}

.ftHero__lead {
  margin-top: 5rem;
  font-size: 1.5rem;
  line-height: 1.867;
}

/* ===================================
    FUTURE ブロック（ラベル + 白パネル）
=================================== */
.ft {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  width: 138rem;
  max-width: calc(100% - 6rem);
  margin-inline: auto;
}

.ftBlock__label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14.9rem;
  line-height: 1.503;
  letter-spacing: -0.04em;
  color: #f3b7b8; /* 赤地の上で 3:1（大きな文字の下限）を満たす明度 */
}

.ftBlock--right .ftBlock__label {
  text-align: right;
}

/* ラベルに 60px 食い込ませる */
.ftBlock__panel {
  margin-top: -6rem;
  padding: 10rem 13rem;
  background: #fff;
  border-radius: 5rem;
}

/* 見出しの改行は Tab / SP だけ（PC は1行） */
.ftTitle__br {
  display: none;
}

.ftBlock__lead {
  margin-top: 2rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.993;
  color: var(--color-text);
}

.ftBlock__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1120 / 440;
  margin-top: 4.7rem; /* Figma はリード文の枠(75px)＋28px 下に写真。文字の下端から 47px */
  object-fit: cover;
  border-radius: 4rem;
}

/* ---- 小見出し「いま、動き出している未来」 ---- */
.ftSub {
  display: flex;
  align-items: center;
  margin-top: 4.2rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.458;
  color: #212121;
}

.ftSub::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 2.6rem;
  margin-right: 1.6rem;
  border-radius: 0.2rem;
  background: var(--color-main);
}

/* ---- カード（写真 + 白い本文） ---- */
.ftCards {
  display: flex;
  gap: 2.6rem;
  margin-top: 3.6rem;
}

.ftCard {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  background: var(--color-gray);
  border-radius: 2rem;
  overflow: hidden;
}

/* 写真はカードの半分（Figma 273.5 / 547）。本文側は margin と padding を持つので flex: 1 同士だと写真が細る */
.ftCard__img {
  display: block;
  flex: 0 0 50%;
  min-width: 0;
}

.ftCard__img img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  border-radius: 2rem;
}

.ftCard__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 0;
  margin: 1.3rem;
  padding: 1rem 2.2rem;
  background: #fff;
  border-radius: 1.5rem;
}

.ftCard__title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.529;
  letter-spacing: 0.04em;
  color: var(--color-main);
}

.ftCard__text {
  font-size: 1.3rem;
  line-height: 1.846;
  color: #212121;
}

/* 注釈（Figma 3770-63401）。本文の直下に詰めて置くので、.ftCard__body の gap ぶんを戻す */
.ftCard__note {
  margin-top: -0.8rem;
  font-size: 1.2rem;
  line-height: 1.667;
  color: #1b1b1b;
  font-weight: 400;
}

/* ---- この未来で、あなたが働くとしたら ---- */
.ftAction {
  display: flex;
  align-items: center;
  gap: 4.3rem;
  margin-top: 3.6rem;
  padding: 2rem 2rem 2rem 5.5rem;
  background: var(--color-main);
  border-radius: 3rem;
}

.ftAction__label {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-shrink: 0;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.579;
  color: #fff;
}

.ftAction__ico {
  width: 4.9rem;
  height: auto;
  flex-shrink: 0;
}

.ftAction__body {
  flex: 1;
  min-width: 0;
  padding: 3rem 4rem;
  background: #fff;
  border-radius: 2rem;
  font-size: 1.5rem;
  line-height: 1.867;
  color: var(--color-text);
}

/* ---- 締め ---- */
.ftClosing {
  padding: 10rem 13rem;
  background: var(--color-main);
  border-radius: 5rem;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1.529;
  text-align: center;
  color: #fff;
}

/* ===================================
    Tablet（751〜1024px）
=================================== */
@media screen and (max-width: 1024px) {
  .ftHero {
    height: auto;
    padding: calc(var(--header-h) + 4rem) 4rem 6rem;
  }

  .ftHero__img {
    position: relative;
    inset: auto; /* PC 用の top / left / right を打ち消す（relative だと効いてしまう） */
    height: auto;
    aspect-ratio: 898 / 526;
    margin-bottom: 4rem;
  }

  /* 枠の高さは aspect-ratio で決まるため、img の height: 100% は iOS Safari で解決されず
     画像本来の比率の高さで描かれて下が切れる。枠いっぱいに絶対配置して object-fit で収める */
  .ftHero__img img {
    position: absolute;
    inset: 0;
  }

  .ftHero__body {
    position: static;
    width: 100%;
  }

  .ft {
    width: auto;
    max-width: none;
    margin-inline: 3rem;
  }

  .ftBlock__label {
    font-size: 9rem;
    line-height: 1.4;
  }

  .ftBlock__panel {
    margin-top: -3.6rem;
    padding: 8rem 5rem;
  }

  .ftTitle__br {
    display: inline;
  }

  .ftCards {
    flex-direction: column;
    gap: 2rem;
  }

  .ftCard__img img {
    min-height: 0;
    aspect-ratio: 274 / 200;
  }

  .ftAction {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
    padding: 3rem;
  }

  /* 768px 付近で「す。」だけ次行に落ちないよう、字と左右の余白を詰める */
  .ftClosing {
    padding: 8rem 3rem;
    font-size: 2.6rem;
  }
}

/* ===================================
    SP（〜750px）Figma 3770-63534（390px 幅・v3）
    PC と同じ「大きな FUTURE ラベル ＋ 白パネル」を FUTURE ごとに積む
=================================== */
@media screen and (max-width: 750px) {
  /* ---- ヒーロー（テキストが先、画像が後） ---- */
  .ftHero {
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 2.8rem) 0 0;
  }

  .ftHero__body {
    order: 1;
    padding: 0 2rem;
  }

  .ftHero__img {
    order: 2;
    margin: 3.2rem 0 0 2rem;
    aspect-ratio: 370 / 198;
    border-radius: 2rem 0 0 2rem;
  }

  .ftHero__en {
    font-size: 5.2rem;
    margin-bottom: 0.4rem;
  }

  .ftHero__ja {
    font-size: 1.4rem;
  }

  .ftHero__lead {
    margin-top: 2.8rem;
    font-size: 1.4rem;
    line-height: 1.714;
  }

  /* ---- FUTURE ラベル ＋ 白パネル（FUTURE ごとに1枚） ---- */
  .ft {
    gap: 4rem;
    width: auto;
    max-width: none;
    margin: 4.8rem 1rem 0;
  }

  .ftBlock__label {
    font-size: 5.6rem;
    line-height: 1.5;
  }

  /* ラベルに 22px 食い込ませる */
  .ftBlock__panel {
    margin-top: -2.2rem;
    padding: 4.8rem 2rem;
    border-radius: 3rem;
  }

  .ftBlock__panel .sec-heading__ja {
    font-size: 2.2rem;
    line-height: 1.455;
    letter-spacing: 0;
  }

  .ftBlock__panel .sec-heading__en {
    font-size: 1.3rem;
    line-height: 1.538;
    letter-spacing: 0;
  }

  .ftBlock__lead {
    margin-top: 1.6rem;
    line-height: 1.786;
  }

  .ftBlock__img {
    aspect-ratio: 330 / 200;
    margin-top: 2.4rem;
    border-radius: 2.4rem;
  }

  .ftSub {
    margin-top: 4rem;
    font-size: 1.8rem;
    line-height: 1.444;
  }

  .ftSub::before {
    height: 2.2rem;
    margin-right: 1.2rem;
  }

  /* ---- カードは写真が上、白い本文が下 ---- */
  .ftCards {
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 2rem;
  }

  .ftCard {
    flex-direction: column;
    flex: none;
  }

  .ftCard__img {
    flex: none;
    width: 100%;
  }

  .ftCard__img img {
    min-height: 0;
    aspect-ratio: 330 / 170;
  }

  .ftCard__body {
    flex: none;
    gap: 0.8rem;
    margin: 1.3rem;
    padding: 1.8rem;
  }

  .ftCard__title {
    font-size: 2rem;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .ftCard__text {
    line-height: 1.846;
  }

  /* ---- できること（赤い箱の中に白い本文） ---- */
  .ftAction {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    margin-top: 4.8rem;
    padding: 2rem;
    border-radius: 2.4rem;
  }

  .ftAction__label {
    gap: 1.4rem;
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .ftAction__ico {
    width: 2.54rem;
  }

  .ftAction__body {
    width: 100%;
    padding: 2rem 1.8rem;
    border-radius: 1.6rem;
    font-size: 1.4rem;
    line-height: 1.786;
  }

  /* ---- 締め（赤地にそのまま白文字） ---- */
  .ftClosing {
    padding: 5.6rem 2rem;
    border-radius: 0;
    font-size: 2.2rem;
    line-height: 1.636;
  }
}
