/* 下層ページのセクション共通スタイルを上書き */
body.sub-page section {
  margin-top: 0;
  padding: 0;
  background-color: transparent;
}

/* 下層ページのページタイトル */
body.sub-page .main-visual .page-title {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 522px;
  z-index: 10;
}

body.sub-page .main-visual .page-title img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 834px) {
  body.sub-page .main-visual .page-title {
    max-width: 370px;
    top: calc(50% - 110px);
    transform: translate(-50%, -50%);
  }
}

@media screen and (max-width: 550px) {
  body.sub-page .main-visual .page-title {
    width: 240px;
  }
}

/* SP（480px以下）でのファーストビュー調整 */
@media screen and (max-width: 480px) {
  body.sub-page .main-visual .image-container {
    position: absolute !important;
    top: 0 !important;
    right: 6.5% !important;
    bottom: 200px !important;
    left: 6.5% !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden !important;
    z-index: 5 !important;
  }
}

/* 下層ページのロゴ位置 */
body.sub-page .logo-container {
  position: absolute;
  top: 83px;
  left: 105px;
  z-index: 20;
}

body.sub-page .logo-lower {
  max-width: 90px;
  width: 90px;
}

@media screen and (max-width: 834px) {
  body.sub-page .logo-container {
    position: static;
    top: auto;
    left: auto;
    z-index: 20;
    margin-top: 22px;
  }

  body.sub-page .logo-lower {
    max-width: 104px;
    width: 104px;
    height: auto;
  }

  body.sub-page .hamburger-menu {
    top: 25px !important;
    right: 5% !important;
    width: 34px !important;
  }
}

/* SP（480px以下）でのヘッダー調整 */
@media screen and (max-width: 480px) {
  body.sub-page .sidebar-inner {
    width: 87% !important;
  }

  body.sub-page .hamburger-menu {
    top: 25px !important;
    right: 6% !important;
    width: 34px !important;
  }
}

/* タブレット以下でセクションの位置調整 */
@media screen and (max-width: 834px) {
  body.sub-page section:first-of-type {
    margin-top: 96vh;
  }
}

/* ラッパー幅の設定 */
.wrapper-1172 {
  width: 90%;
  margin: auto;
}

/* SP（480px以下） */
@media screen and (max-width: 480px) {

  /* ラップ幅の調整 - 優先度を高くする */
  .wrapper-790,
  .wrapper-1172,
  .wrapper-1272 {
    width: 87% !important;
  }

  /* セクションの位置調整 */
  body.sub-page section:first-of-type {
    margin-top: 95vh;
  }
}

/* タイトルセクション */
.recruit-title-section {
  padding: 84px 0 60px;
  background-color: #fff;
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  /* 初期状態で非表示にして、ちらつきを防ぐ */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ロード完了後に表示 */
body.site-loaded .recruit-title-section {
  opacity: 1;
}

/* セクションタイトル */
.recruit-section-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 82px;
  color: #474646;
}

/* 赤波 */
.recruit-wave {
  text-align: center;
  margin-bottom: 47px;
  line-height: 0;
}

.recruit-wave img {
  width: 60px;
  height: 15px;
}

/* 波線画像の表示/非表示制御 */
.recruit-wave .pc-wave {
  display: inline-block;
}

.recruit-wave .tab-wave {
  display: none;
}

.recruit-wave .sp-wave {
  display: none;
}

/* タブレット用の波線表示 */
@media screen and (min-width: 481px) and (max-width: 834px) {
  .recruit-wave .pc-wave {
    display: none;
  }

  .recruit-wave .tab-wave {
    display: inline-block;
  }

  .recruit-wave .sp-wave {
    display: none;
  }
}

/* SP用の波線表示 */
@media screen and (max-width: 480px) {
  .recruit-wave .pc-wave {
    display: none;
  }

  .recruit-wave .tab-wave {
    display: none;
  }

  .recruit-wave .sp-wave {
    display: inline-block;
  }
}

/* 固定ナビゲーション */
.recruit-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-586px);
  z-index: 20;
  width: auto;
  /* 初期状態で非表示にして、ちらつきを防ぐ */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ロード完了後に表示 */
body.site-loaded .recruit-nav {
  opacity: 1;
}

.recruit-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.recruit-nav-item {
  position: relative;
}

.recruit-nav-item a {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #474646;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
  transition: opacity 0.3s ease;
}

.recruit-nav-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 5px;
  background-repeat: no-repeat;
  background-size: 0% 4.5px;
  background-position: 0% center;
  opacity: 0;
  transition: background-size 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* 手伝いますナビの線 */
.recruit-nav-item:first-child a::after {
  background-image: url('../image/underline-black-tesudai.svg');
}

/* スタッフ募集ナビの線 */
.recruit-nav-item:last-child a::after {
  background-image: url('../image/underline-black.svg');
}

.recruit-nav-item.active a::after {
  background-size: 100% 5.5px;
  background-position: 0% center;
  opacity: 1;
}

/* 手伝いますセクション - 優先度を高くする */
body.sub-page .help-section {
  padding: 0 0 100px !important;
  position: relative;
  z-index: 10;
  /* 初期状態で非表示にして、ちらつきを防ぐ */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ロード完了後に表示 */
body.site-loaded .help-section {
  opacity: 1;
}

/* 手伝いますセクションのコンテンツ配置 */
.help-section .wrapper-1172 {
  padding-left: 204px;
}

/* スタッフ募集セクション - 優先度を高くする */
body.sub-page .staff-section {
  padding: 100px 0 !important;
  background-image: url('../../image/background-gray.jpg') !important;
  background-size: 70% !important;
  background-repeat: repeat !important;
  position: relative;
  z-index: 10;
  /* 初期状態で非表示にして、ちらつきを防ぐ */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ロード完了後に表示 */
body.site-loaded .staff-section {
  opacity: 1;
}

/* スタッフ募集セクションのコンテンツ配置 */
.staff-section .wrapper-1172 {
  padding-left: 204px;
}

/* 各パート共通 */
.recruit-part {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* 募集アイテム */
.recruit-item {
  display: flex;
  gap: 62px;
  align-items: flex-start;
}

/* 画像 */
.recruit-item-image {
  flex-shrink: 0;
  width: 431px;
}

.recruit-item-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* コンテンツ */
.recruit-item-content {
  width: 475px;
  flex-shrink: 0;
}

/* タグ */
.recruit-tag {
  display: inline-block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #DE6564;
  border: 2px solid #DE6564;
  border-radius: 17px;
  padding: 0px 20px;
  margin-bottom: 8px;
}

.recruit-tag-yellow {
  color: #ADAB2E;
  border-color: #ADAB2E;
}

/* タイトル */
.recruit-item-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 29px;
  font-weight: 700;
  color: #474646;
  margin-bottom: 17px;
  line-height: 1.4;
}

/* タイトル（小さめ） */
.recruit-item-title.small {
  font-size: 26px;
}

/* 本文 */
.recruit-item-text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #474646;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* スタッフ募集セクションの本文 */
.staff-section .recruit-item-text {
  margin-bottom: 20px;
}

/* 募集要項テーブル */
.recruit-table {
  border-top: 1px solid #ABABAB;
  margin-bottom: 36px;
}

.recruit-table-row {
  display: flex;
  align-items: flex-start;
  padding: 4px 0;
  border-bottom: 1px solid #ABABAB;
}

.recruit-table-label {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #474646;
  width: 100px;
  flex-shrink: 0;
  padding-right: 20px;
}

.recruit-table-data {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #474646;
  line-height: 1.8;
  flex: 1;
}

/* 数字にPoppinsフォント */
.recruit-table-data .number {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

/* ボタン */
.recruit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 359px;
  height: 62px;
  background-color: #3D98C7;
  color: #ffffff;
  text-decoration: none;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 20px;
  padding: 0 19px;
  box-sizing: border-box;
  border-radius: 10px;
  transition: opacity 0.3s ease;
  position: relative;
}

.recruit-button:hover {
  opacity: 0.8;
}

.recruit-button span {
  flex: 1;
  text-align: center;
}

.recruit-button img {
  position: absolute;
  right: 19px;
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

/* ホバー時のアイコンアニメーション */
.recruit-button:hover img {
  transform: translateY(-1px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 1285px) {

  /* タイトルセクションの調整 */
  .recruit-title-section {
    text-align: center;
    padding-bottom: 0;
  }

  /* 赤波の調整 */
  .recruit-wave {
    text-align: center;
    margin-bottom: 0;
    line-height: 0;
  }

  /* ナビゲーションをタイトルセクション内に移動 */
  .recruit-nav {
    position: sticky;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 30;
    margin-top: 0;
    transition: position 0s;
  }

  .recruit-nav-list {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
  }

  /* セクションのコンテンツ配置を中央揃えに */
  .help-section .wrapper-1172,
  .staff-section .wrapper-1172 {
    padding-left: 0;
    text-align: center;
  }

  .recruit-item {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* 手伝いますの1つ目だけ特別な設定 */
  .help-section .recruit-item:first-child {
    margin-top: 5px;
  }

  .recruit-item-image {
    width: 100%;
    max-width: 600px;
  }

  .recruit-item-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
  }

  /* タグもセンター揃え */
  .recruit-tag {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  /* タイトルもセンター揃え */
  .recruit-item-title {
    text-align: center;
  }

  /* 本文もセンター揃え */
  .recruit-item-text {
    text-align: left;
  }

  /* スタッフ募集（ボイラー・清掃）の本文はセンター揃え */
  .staff-section .recruit-item:nth-child(1) .recruit-item-text,
  .staff-section .recruit-item:nth-child(2) .recruit-item-text {
    text-align: center;
  }

  /* テーブルも中央に配置 */
  .recruit-table {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 36px;
    text-align: left;
  }

  .recruit-table-label,
  .recruit-table-data {
    text-align: left;
  }

  .recruit-button {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 1100px) {
  .recruit-nav-list {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
  }

  .help-section .wrapper-1172,
  .staff-section .wrapper-1172 {
    padding-left: 0;
  }

  .recruit-item {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .recruit-item-image {
    width: 100%;
    max-width: 600px;
  }

  .recruit-item-content {
    width: 100%;
    max-width: 600px;
  }

  .recruit-button {
    width: 100%;
    max-width: 400px;
  }
}

@media screen and (max-width: 834px) {
  .recruit-title-section {
    padding: 45px 0 40px;
  }

  .recruit-section-title {
    font-size: 36px;
  }

  .recruit-wave {
    margin-bottom: 0;
  }

  .recruit-nav-list {
    gap: 40px;
  }

  .recruit-nav-item a {
    font-size: 18px;
  }

  body.sub-page .help-section {
    padding: 0 0 70px !important;
  }

  body.sub-page .staff-section {
    padding: 70px 0 !important;
  }

  .recruit-part {
    gap: 90px;
  }

  .recruit-item-title {
    font-size: 24px;
  }

  .recruit-item-title.small {
    font-size: 22px;
  }

  /* タブレット以下ではホバーエフェクトを無効化 */
  .recruit-button:hover {
    opacity: 1;
  }

  .recruit-button:hover img {
    transform: none;
  }
}

@media screen and (max-width: 480px) {
  .recruit-title-section {
    padding: 50px 0 30px;
  }

  .recruit-section-title {
    font-size: clamp(18px, 5.33vw, 22px);
    margin-bottom: 8px;
  }

  .recruit-wave img {
    width: 30px;
    height: 8px;
  }

  .recruit-nav {
    padding: 10px 0 10px;
  }

  .recruit-nav-list {
    gap: 30px;
  }

  .recruit-nav-item a {
    font-size: 16px;
    padding: 10px 0;
  }

  body.sub-page .help-section {
    padding: 0 0 70px !important;
  }

  body.sub-page .staff-section {
    padding: 70px 0 !important;
  }

  .recruit-part {
    gap: 70px;
  }

  .recruit-item {
    gap: 22px;
  }

  .recruit-tag {
    font-size: 14px;
    padding: 1px 16px;
    margin-bottom: 8px;
  }

  .recruit-item-title {
    font-size: clamp(18px, 4.17vw, 20px);
    margin-bottom: 12px;
  }

  .recruit-item-title.small {
    font-size: 18px;
  }

  .recruit-item-text {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .staff-section .recruit-item-text {
    margin-bottom: 12px;
  }

  /* スタッフ募集（ボイラー・清掃）の本文をSPでは左揃え */
  .staff-section .recruit-item:nth-child(1) .recruit-item-text,
  .staff-section .recruit-item:nth-child(2) .recruit-item-text {
    text-align: left;
  }

  .recruit-table {
    margin-bottom: 30px;
  }

  .recruit-table-label,
  .recruit-table-data {
    font-size: 14px;
  }

  .recruit-button {
    font-size: 16px;
    height: 59px;
    max-width: 298px;
  }

  .recruit-button img {
    width: 14px;
    height: 14px;
  }

  /* SP以下でもホバーエフェクトを無効化 */
  .recruit-button:hover {
    opacity: 1;
  }

  .recruit-button:hover img {
    transform: none;
  }
}

/* 募集中カルーセルセクション - 優先度を高くする */
body.sub-page .recruit-carousel-section {
  padding: 140px 0 70px !important;
  overflow: hidden;
  background-color: transparent;
  /* 初期状態で非表示にして、ちらつきを防ぐ */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ロード完了後に表示 */
body.site-loaded .recruit-carousel-section {
  opacity: 1;
}

/* スクリーンリーダー用の非表示見出し */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* スライダー共通スタイル */
.carousel-ltr {
  width: 100%;
  overflow: hidden;
}

.carousel-ltr .swiper-wrapper {
  transition-timing-function: linear;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* カルーセル用スライド */
.recruit-carousel-section .swiper-slide {
  width: 504px;
  margin-right: 14px;
}

/* カルーセル画像のサイズ調整 */
.recruit-carousel-section .swiper-slide img {
  height: 316px;
  width: 504px;
  object-fit: cover;
  display: block;
}

/* タブレット（834px以下） */
@media screen and (max-width: 834px) {
  body.sub-page .recruit-carousel-section {
    padding: 90px 0 45px !important;
  }

  .recruit-carousel-section .swiper-slide {
    width: 319px;
    margin-right: 11px;
  }

  .recruit-carousel-section .swiper-slide img {
    height: 197px;
    width: 319px;
  }
}

/* SP（480px以下） */
@media screen and (max-width: 480px) {
  body.sub-page .recruit-carousel-section {
    padding: 70px 0 35px !important;
  }

  .recruit-carousel-section .swiper-slide {
    width: 157px;
    margin-right: 5px;
  }

  .recruit-carousel-section .swiper-slide img {
    height: 97px;
    width: 157px;
  }
}