/*
【notice】
TOPページ用のスタイルを記載
*/

/* HEADER */
.block-site-header {
  margin-block-end: -80px;
  transition: background-color .4s ease-out;
}

.is-head-scroll .block-site-header {
  background-color: rgba(255, 255, 255, 80%);
}

.searchbox+.wp-block-buttons {
  gap: 10px;
}

@media (min-width: 992px) {
  .block-site-header {
    margin-block-end: -100px;
  }
}


/* CONTENTS */
.home .home__kv {
  align-items: flex-end;
  background-color: #FBFFD8 !important;
  background-position: center top !important;
  background-size: contain !important;
}

.home__catchword {
  display: flex;
  align-items: flex-end;
  min-height: 110vw;
  color: #fff;
  text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
}

.home__catchword .has-huge-font-size {
  font-size: 42px !important;
  text-decoration: underline;
  text-underline-offset: 6px;
}

@media (min-width: 414px) {
  .home__catchword {
    min-height: 114vw;
  }
}

@media (min-width: 768px) {
  .home .home__kv {
    align-items: flex-end;
    padding-block-end: 10px;
    background-size: 100% auto !important;
  }

  .home__catchword {
    min-height: 100vw;
  }

  .home__catchword * {
    margin-inline: auto;
  }

  .home__catchword .has-huge-font-size {
    font-size: 64px !important;
    text-underline-offset: 10px;
  }

}

@media (min-width: 992px) {
  .home .home__kv {
    min-height: 780px;
    padding-block-end: 60px;
    background-position: center !important;
    background-size: cover !important;
  }

  .home__catchword {
    min-height: 0;
  }

  .home .home__kv .vk_outer_container {
    margin-block-start: 190px;
  }
}



/* 検索ボックス */
.home__search {
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 20%);
  overflow: hidden;
}

@media (min-width: 375px) {
  .home__search {
    padding: 12px 16px;
  }
}

@media (min-width: 768px) {
  .home__search {
    max-width: 600px;
    padding: 20px 32px;
    max-height: 480px;
    margin-inline: auto !important;
  }
}

.home__search .home__search--title {
  gap: 10px;
  margin-block-end: 20px;
}

.home__search .home__search--title .wp-block-heading {
  margin: 0;
}

.home__search .vkfs {
  margin: 0;
  height: 120px;
  overflow-y: hidden;
  transition: height .4s ease-out;
  position: relative;
}

.home__search .vkfs::after {
  content: '';
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 10;
}

.home__search .vkfs.is-show {
  margin: 0;
  height: auto;
  overflow-y: auto;
}

.home__search .vkfs.is-show::after {
  display: none;
}

.home__search .vkfs.is-show+#searchopen {
  display: none;
}

.home__search #searchopen {
  padding-block-start: 10px;
}

#searchopen * {
  pointer-events: none;
}

@media (min-width: 768px) {
  .home__search .vkfs {
    height: auto;
  }

  .home__search .vkfs::after {
    display: none;
  }
}

.home__search .vkfs::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.home__search .vkfs::-webkit-scrollbar-track {
  background-color: #fff;
}

.home__search .vkfs::-webkit-scrollbar-thumb {
  background-color: #0882DB;
  border-radius: 8px;
}


.home__search .vkfs .vkfs_submit {
  display: none;
}

.home__search .vkfs .vkfs__outer-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 10px;
}

.home__search .vkfs .vkfs__label-name {
  flex: 0 0 64px;
  translate: 0 0;
}

/* @media (min-width: 992px) {
  .home__search .vkfs .vkfs__label-name {
    translate: 0 6px;
  }
} */

.home__search .vkfs .vkfs__input-wrap {
  justify-content: flex-start;
  margin: 0;
  gap: 4px;
}

.home__search .vkfs .vkfs__input-wrap li {
  padding: 0 0 0 20px;
}

.home__search .vkfs input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin: 2px 8px 0 0;
}

.home__search .vkfs input[type=checkbox]::before {
  width: 15px;
  height: 15px;
}

.home__search .vkfs #vkfs_careertype li {
  flex: 0 0 auto;
}

.home__search .vkfs #vkfs_recruittype li {
  flex: 0 0 auto;
}

@media (min-width: 768px) {

  .home__search .vkfs .vkfs__input-wrap {
    gap: 5px 15px;
  }

  .home__search .vkfs input[type=checkbox] {
    top: 2px;
  }
}


/* スタッフインタビュー */
.home__interviewpost {
  gap: 15px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.home__interviewpost .interviewpost__phrase {
  display: none;
}

.home__interviewpost .interviewpost {
  flex: 0 1 calc(50% - 7.5px);
}

@media (min-width: 768px) {
  .home__interviewpost {
    gap: 30px;
  }

  .home__interviewpost .interviewpost {
    flex: 0 1 calc(50% - 15px);
  }
}


/* 職種から探す */
.home__jobsearch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin-inline: auto;
}

.home__jobsearch--trigger {
  padding: 0;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  background-color: #fff;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  transition: opacity .4s ease-out;
}

.home__jobsearch--trigger:hover {
  opacity: .7;
}

.home__jobsearch--img {
  height: 100%;
  margin: 0;
  position: relative;
}

.home__jobsearch--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: bottom;
}

.home__jobsearch--name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #fff;
  font-size: clamp(0.938rem, 0.763vw + 0.759rem, 1.125rem);
  padding: 8px;
  border-radius: 0 0 6px 6px;
  background: rgba(8, 130, 219, 80%);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.home__jobsearch--name::after {
  display: block;
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  mask: url('../img/common/icon-arr1light_blue.svg') no-repeat;
  mask-size: contain;
  background-color: currentColor;
}

@media (min-width: 768px) {
  .home__jobsearch {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      'doctor nurse pharmacist paramedical clerical'
      'trainee nurse pharmacist paramedical assistant';
    gap: 20px 25px;
  }

  .home__jobsearch .is-doctor {
    grid-area: doctor;
  }

  .home__jobsearch .is-trainee {
    grid-area: trainee;
  }

  .home__jobsearch .is-nurse {
    grid-area: nurse;
  }

  .home__jobsearch .is-pharmacist {
    grid-area: pharmacist;
  }

  .home__jobsearch .is-paramedical {
    grid-area: paramedical;
  }

  .home__jobsearch .is-clerical {
    grid-area: clerical;
  }

  .home__jobsearch .is-assistant {
    grid-area: assistant;
  }
}

/* モーダル */
.modal {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1000;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal[aria-hidden="false"] {
  display: block;
  animation: fadein .4s ease-out forwards;
}

.modal__overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 70%);
}

.modal__container {
  max-width: 280px;
  width: 100%;
  padding: 24px 12px;
  border-radius: 10px;
  background-color: rgba(15, 142, 212, 70%);
  position: relative;
}

.modal__contents {}

.home__jobsearch--modalname {
  font-size: 20px;
  color: #fff;
  text-align: center;
  margin-block-end: 16px;
}

.home__jobsearch--termlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  padding-left: 0;
}

.home__jobsearch--termitem {
  margin: 0 !important;
}

.home__jobsearch--termlink {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  color: #00021C;
  background-color: #fff;
  border-radius: 10px;
  list-style: none;
  text-decoration: none;
}

.home__jobsearch--termlink::before {
  display: block;
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  mask: url('../img/common/icon-arr1light_blue.svg') no-repeat;
  mask-size: contain;
  background-color: #0882DB;
}

.home__jobsearch--termlink .is-label {
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.modal__close {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  cursor: pointer;
}

.modal__close::before {
  display: block;
  content: '';
  width: 18px;
  height: 2px;
  background-color: #fff;
  border-radius: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  rotate: 45deg;
}

.modal__close::after {
  display: block;
  content: '';
  width: 18px;
  height: 2px;
  background-color: #fff;
  border-radius: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  rotate: -45deg;
}

@media (min-width: 375px) {
  .modal__container {
    max-width: 340px;
  }
}

@media (min-width: 768px) {
  .modal__container {
    max-width: 600px;
    padding: 24px;
  }

  .home__jobsearch--termlist {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .home__jobsearch--termlink .is-label {
    font-size: 14px;
  }
}

/* ３分で分かるかりゆし会 */
@media (min-width: 992px) {
  .home__data .home__data--img {
    flex: 0 1 100%;
    margin-inline-start: calc(50% - 50vw);
  }

  .home__data .home__data--contents {
    flex: 0 0 auto;
    max-width: 546px;
  }
}



/* お知らせ */
.home__info {
  position: relative;
}

.home__info .wp-block-column {
  position: relative;
  z-index: 1;
}

.home__info::before {
  content: '';
  width: calc(100vw - 10px);
  height: calc(100% - 182px);
  background-color: #F4EFDE;
  position: absolute;
  top: -32px;
  left: calc(50% - 50vw);
  z-index: 0;
  border-radius: 0 8px 8px 0;
}

.home__info .home__info--list {
  gap: 20px;
  margin-right: 0;
  margin-left: 0;
}


@media (min-width: 992px) {
  .home__info::before {
    content: '';
    width: calc(100vw - 27vw);
    height: calc(100% + 160px);
    background-color: #F4EFDE;
    position: absolute;
    top: 50%;
    left: calc(50% - 50vw);
    z-index: 0;
    translate: 0 -50%;
    border-radius: 0 8px 8px 0;
  }
}