/** ************************************************************
  ヘルパー
*/
/* float 切り */
.hp_clearfix::after {
  content: "";
  display: block;
  clear: both;
}
/* padding */
.hp_ps0 {
  padding-left: 0 !important;
  padding-inline-start: 0 !important;
}

/** ************************************************************
swiper js によるトップページのカルーセル
************************************************************ */
.js_topPageCarousel > .swiper-wrapper > .swiper-slide {
  aspect-ratio: 2000/667;
}
/* .js_topPageCarousel > .swiper-wrapper > .swiper-slide > picture {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
} */

.js_topPageCarousel > .swiper-wrapper > .swiper-slide > picture > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 640px) {
  .js_topPageCarousel > .swiper-wrapper > .swiper-slide {
    aspect-ratio: 1/1;
  }
}

/* ************************************************************
ドロワーメニューで、メニューアイテムの表示が、パネルの開閉に同調しない問題の解決。
センタリングに position が使用されていたのを打ち消して grid に変更。
************************************************************ */
@media (max-width: 640px) {
  #header_menu_ul li a {
    position: static !important;
    display: grid !important;
    place-items: center;
  }
  #header_menu_ul li a img {
    position: static !important;
    top: unset !important;
    -webkit-transform: unset !important;
    -ms-transform: unset !important;
    transform: unset !important;
  }
}

/* ************************************************************
sub_wrapper / sub_wrapper_xs の上端マージンを削除
************************************************************ */
/* sub_wrapper の上端マージンを削除 */
.sub_wrapper {
  margin-top: 0;
}
/* sub_wrapper_xs の上端マージンを削除 */
.sub_wrapper_xs {
  margin-top: 0;
}

/* ************************************************************
コンテンツ幅より大きい要素の幅を制限
************************************************************ */
/* h3.title の横幅が親より大きいので修正 */
h3.title {
  box-sizing: border-box;
  width: 98%;
  margin-left: 1%;
  margin-right: 1%;
}

/* about_table テーブルの横幅が親を越えうるので修正 */
.about_table {
  box-sizing: border-box;
  margin: 10px auto;
}
.about_table th {
}
.about_table td {
}

/* about_table02 テーブルの横幅が親を越えうるので修正 */
.about_table02 {
  margin: 10px auto;
}
.about_table02 td {
  white-space: wrap;
}

/* ************************************************************
メインビジュアルが下とコンテンツ上に被る問題の解決の一環。
position を使わないように変更。
************************************************************ */
/* PC用の下層ページのメインビジュアルのスタイルを上書き */
.mainv {
  height: unset;
  width: 100%;
  min-width: 1072px;
  position: static;
  text-align: center;
  top: unset;
}

/* SP用の下層ページのメインビジュアルのスタイルを上書き */
.mainv_xs {
  height: 100% !important;
  position: static !important;
  top: unset !important;
  border-top: inset 1px #3c3c3c;
}
/* その直下の画像のスタイル */
.mainv_xs > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* 幅を1184pxに制限し、margin-x auto */
.bl_limitWidth1184 {
  max-width: 1184px;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

/* ************************************************************
パンクズリストと、下層ページのページタイトルを作り直したので、そのスタイル。
************************************************************ */
/* パンクズリストの新しいスタイル */
.bl_breadcrumbs {
  border-bottom: 2px solid #ff7d6e;
}
.bl_breadcrumbs a {
  text-decoration: none;
}
@media (max-width: 1184px) {
  .bl_breadcrumbs {
    margin-left: 0.5rem;
  }
}

/* 下層ページのページタイトル */
.el_pageHeading2 {
  font-size: 2rem;
  color: #167c3b;
  font-weight: bold;
  text-align: center;
}
@media (max-width: 640px) {
  .el_pageHeading2 {
    font-size: 1.4rem;
  }
}

/* ************************************************************
施設タブの新しいスタイル
************************************************************ */
/* タブリスト全体に適用する新クラス */
.bl_respTabList {
  box-sizing: border-box;
  width: 95%;
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 0.5rem;
}

/* タブの li のスタイル上書き */
.resp-tabs-list li {
  box-sizing: border-box;
  position: static;
  display: grid;
  place-items: center;
  width: 100%;
  background-color: #f1f1f1;
  margin: 0 !important;
  padding: 0.25rem;
  border-radius: 2px;
  text-align: center;
  list-style: none;
  cursor: pointer;
  float: unset !important;
}
@media (max-width: 640px) {
  .resp-tabs-list li {
    font-size: 70%;
  }
}
/* アクティブなタブのスタイル上書き */
.resp-tab-active {
  padding: unset !important;
  border-bottom: none !important;
  background-color: #167c3b !important;
  color: #ffffff !important;
}

/* ************************************************************
関連施設・施設案内ページ上の写真と、その四隅に表示されるタグのスタイル
************************************************************ */
.facilitiesImg {
  position: relative;
  width: fit-content;
  display: block;
}
.facilitiesImg .facilitiesImg_tag {
  position: absolute;
  right: 0;
  bottom: unset;
  left: unset;
}
.facilitiesImg .facilitiesImg_tag.facilitiesImg_tag__sp {
  top: unset;
  right: unset;
  bottom: 0;
  left: 0;
  line-height: 1;
  background: #444544;
  font-size: 13px;
  padding: 3px 5px;
}

.facilitiesImg p {
  display: inline;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  color: white;
  background: #4ccc77;
  font-size: 12px;
  line-height: 1;
  padding: 5px 10px;
}

a.fancybox.image img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  object-fit: cover;
}

/* ************************************************************
「お知らせ」一覧の余白調整
*************************************************************/
@media (max-width: 640px) {
  .blogbox > ul {
    padding-inline-start: 0;
  }
}

/* ************************************************************
「求人情報」のテーブル幅は親要素を超える問題の解決
************************************************************ */
.kyujin_table {
  width: 95%;
  margin-inline: auto;
  margin-right: auto;
  margin-left: auto;
}
.kyujin_table th {
  white-space: wrap !important;
}
.kyujin_table02 {
  width: 95%;
  margin-inline: auto;
  margin-right: auto;
  margin-left: auto;
}
.kyujin_table02 td {
  white-space: wrap !important;
}

/* 求人ページタイトルテキストが不要に改行する問題を解決 */
h4.kyujin_title {
  width: fit-content;
  min-width: 39%;
  white-space: nowrap;
}
@media (max-width: 640px) {
  h4.kyujin_title {
    width: fit-content;
    white-space: nowrap;
  }
}

/* *************************************************************
全体のために追加したスタイル
************************************************************ */
/* grid */
.ly_grid {
  display: grid;
}
.ly_grid__12c {
  grid-template-columns: repeat(2, 1fr);
}
.ly_grid__24c {
  grid-template-columns: repeat(4, 1fr);
}
.ly_grid__23c {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 767px) {
  .ly_grid__12c {
    grid-template-columns: repeat(1, 1fr);
  }
  .ly_grid__24c,
  .ly_grid__23c {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* gap */
.hp_gap025 {
  gap: 0.25rem;
}
.hp_gap050 {
  gap: 0.5rem;
}
.hp_gap075 {
  gap: 0.75rem;
}
.hp_gap100 {
  gap: 1rem;
}
.hp_gap125 {
  gap: 1.25rem;
}
.hp_gap150 {
  gap: 1.5rem;
}
.hp_gap175 {
  gap: 1.75rem;
}
.hp_gap200 {
  gap: 2rem;
}
