/* ===============================================
   働く環境・風土ページ
   =============================================== */
.footer {
  margin: 0;
}
.aboutus-page {
  position: relative;
  padding-bottom: 180px;
}

@media screen and (max-width: 768px) {
  .aboutus-page {
    background-size: 90% auto;
    background-position: center 200px;
    padding-bottom: 110px;
  }
}

/* ===============================================
   ページタイトル
   =============================================== */
.page-title {
  width: 84%;
  max-width: 1080px;
  margin: 50px auto 0 auto;
}

.page-title__en {
  display: block;
  font-family: var(--font-rfa);
  font-size: 16px;
  letter-spacing: 1.6px;
  line-height: 32px;
  margin-bottom: 11px;
}

.page-title__ja {
  display: inline-block;
  font-size: 40px;
  font-weight: 600;
  line-height: 32px;
  background: var(--rfa-color-strong02);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 20px 20px 20px 0;
  background-color: #fff;
}

@media screen and (max-width: 768px) {
  .page-title {
    width: 90%;
    margin: 30px auto 0 auto;
  }

  .page-title__en {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .page-title__ja {
    font-size: 30px;
    padding: 14px 7px;
  }
}

/* ===============================================
   セクションカード
   =============================================== */
.section-card {
  position: relative;
  width: 84%;
  max-width: 1080px;
  height: 370px;
  margin: 70px auto 100px auto;
  background: #d9d9d9;
}

.section-card__image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

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

.section-card__caption {
  position: absolute;
  bottom: 0;
  width: 540px;
  height: 120px;
  background: #fff;
  z-index: 10;
}

.section-card__title {
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  padding: 14px 40px;
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  line-height: 32px;
  background: var(--rfa-color-strong02);
  letter-spacing: 1.6px;
}

.section-card__desc {
  position: absolute;
  top: 63%;
  left: 30px;
  font-size: 18px;
  line-height: 32px;
  color: #272222;
}

.section-card__btn {
  position: absolute;
  right: 50px;
  top: 10px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.section-card__caption .button-next {
  position: static;
  width: 14px;
  height: 11px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(white, white) padding-box, var(--rfa-color-strong02) border-box;
  padding: 19px 18px;
  margin: 1.2% 2% 0 auto;
  align-items: center;
  cursor: pointer;
  display: flex;
  height: var(--swiper-navigation-size);
  justify-content: center;
}
.section-card__caption .button-next svg {
  height: 100%;
  object-fit: contain;
  transform-origin: center;
  width: 100%;
  fill: currentColor;
  pointer-events: none;
}
.section-card__btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* キャリアセクション - 右側配置 */
.career-section {
  margin-top: 100px;
}

.career-section .section-card__image {
  border-radius: 0;
}

.career-section .section-card__caption {
  right: 0;
}

/* 社内制度セクション - 左側配置 */
.company-system-section .section-card__image {
  border-radius: 10px 0 0 10px;
}

.company-system-section .section-card__image img {
  border-radius: 10px 0 0 10px;
}

.company-system-section .section-card__caption {
  left: 0;
}

/* 社内ツアー動画セクション - 右側配置 */
.office-tour-section .section-card__image {
  border-radius: 0;
}

.office-tour-section .section-card__caption {
  right: 0;
}

@media screen and (max-width: 768px) {
  .section-card {
    width: 90%;
    height: auto;
    margin: 50px auto 10% auto;
  }

  .career-section {
    margin-top: 50px;
  }

  .section-card__image {
    position: relative;
    width: 100%;
    height: 280px;
  }

  .section-card__image img {
    border-radius: 10px 10px 0 0;
  }

  .career-section .section-card__image img,
  .company-system-section .section-card__image img,
  .office-tour-section .section-card__image img {
    border-radius: 10px 10px 0 0;
  }

  .section-card__caption {
    position: relative;
    width: 100%;
    height: auto;
    padding: 60px 20px 20px 20px;
  }
  .section-card__caption .button-next {
    position: absolute;
    top: 0;
    right: 39px;
    padding: 11px 10px;
    width: 10px;
  }
  .career-section .section-card__caption,
  .company-system-section .section-card__caption,
  .office-tour-section .section-card__caption {
    left: 0;
    right: 0;
  }

  .section-card__title {
    position: absolute;
    top: 0;
    left: 0;
    width: 63%;
    text-align: left;
    padding: 8px 20px;
    font-size: 20px;
    line-height: 24px;
  }

  .section-card__desc {
    position: relative;
    bottom: auto;
    left: 0;
    font-size: 14px;
    line-height: 24px;
  }

  .section-card__btn {
    position: absolute;
    right: 20px;
    top: 5px;
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 440px) {
  .page-title__ja {
    font-size: clamp(1.4375rem, -0.3958rem + 9.1667vw, 1.875rem);
  }

  .section-card__title {
    font-size: clamp(1rem, -0.5rem + 7.5vw, 1.25rem);
  }

  .section-card__desc {
    font-size: clamp(0.75rem, -0.25rem + 5vw, 0.875rem);
  }
}
