@charset "utf-8";

body {
  /* --key-color : $key-c; */
  --key-color: #2EBDEF;
  --border-color: #9e9e9e;
  --primary-color: #ff9124;
  --alert-color: #e95512;
}

.matching-header {
  background-color: var(--key-color);
  border-radius: 10px;
  color: #fff;
  padding: 15px;
  line-height: 1.7;
  letter-spacing: 0.2em;
  position: relative;
  margin-bottom: 60px;
  flex-direction: column;
}

.matching-header::after {
  content: "";
  width: 40px;
  height: 60px;
  position: absolute;
  bottom: -58px;
  left: calc(50% - 20px);
  border-top: 30px solid var(--key-color);
  border-right: 20px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 20px solid transparent;
  box-sizing: border-box;
}

.matching-header h2 {
  font-weight: bold;
  font-size: 22px;
  margin: 0 0 0.75em 0;
}

.matching-header strong {
  background-color: #fff;
  color: var(--key-color);
  padding-left: 0.2em;
  padding-right: 0.2em;
}

@media(min-width:768px) {
  .matching-header {
    padding: 30px;
    flex-direction: row;
  }

  .matching-header h2 {
    font-size: 28px;
  }

  .matching-header .wp-block-image {
    width: 50%;
  }
}

/* 非公開ページ用 */
.introduce-list-container {
  border: 2px solid var(--key-color);
  border-radius: 10px;
  position: relative;
  margin-bottom: 60px;
  background-color: #fff;
}

.introduce-list-container::after {
  content: "";
  width: 40px;
  height: 60px;
  position: absolute;
  bottom: -60px;
  left: calc(50% - 20px);
  border-top: 30px solid var(--key-color);
  border-right: 20px solid transparent;
  border-bottom: 30px solid transparent;
  border-left: 20px solid transparent;
  box-sizing: border-box;
}

.introduce-list-container .wp-block-heading {
  background-color: var(--key-color);
  color: #fff;
  margin: 0;
  padding: 20px;
  text-align: center;
  font-size: clamp(18px, 1.7vw, 28px);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  border-radius: 8px 8px 0 0;
}

@media(min-width:768px) {
  .introduce-list-container {
    margin-bottom: 60px;
  }
}

/* 人材ブロック */
.introduce-list {
  gap: 45px;
  padding: 20px;
  counter-reset: number 0;
  grid-template-columns: 1fr !important;
}

.c-block-person .excerpt-box {
  display: grid;
  background-color: #fff;
  gap: 15px;
  position: relative;
  grid-template-columns: 38.2% 1fr;
  counter-increment: number 1;
  cursor: pointer;
}

.c-block-person__number {
  font-size: 11px;
  line-height: 36px;
  font-weight: bold;
  background-image: url("../img/SVG/introduce-label.svg");
  background-size: 100%;
  width: 48px;
  height: 48px;
  color: #fff;
  position: absolute;
  top: 0;
  left: 10px;
  text-align: center;
  filter: drop-shadow(2px 2px 3px rgba(135, 169, 178, 0.5));
}

.c-block-person__number::after {
  content: counter(number, decimal-leading-zero);
  font-size: 18px;
}

@media(max-width:767px) {
  .c-block-person__number {
    transform: scale(0.7);
    transform-origin: top left;
    left: 0;
  }
  .detail-box .c-block-person__number {
    left: 10px;
  }
}

@media(min-width:768px) {
  .introduce-list {
    gap: 20px;
    padding: 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .c-block-person .excerpt-box {
    gap: 30px;
    padding: 30px;
    box-shadow: 2px 2px 6px rgba(135, 169, 178, 0.5);
    grid-template-columns: 38.2% 1fr;
    position: relative;
  }
}

.c-block-person__thumbnail img {
  width: 100%;
  vertical-align: bottom;
}

.c-block-person__name {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 0.25em 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.c-block-person__excerpt {
  font-size: 12px;
}

.c-block-person__excerpt strong {
  font-size: 15px;
  font-weight: bold;
}



/* クリック時 */
.detail-box {
  display: none;
}

.c-block-person.is-show .detail-box {
  display: grid;
  grid-template-columns: 38.2% 1fr;
  z-index: 10001;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  box-shadow: 2px 2px 6px rgba(135, 169, 178, 0.5);
  width: calc(100% - 30px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 15px;
  gap: 15px;
  overflow-y: scroll;
  overscroll-behavior: none;
  height: min-content;
  height: auto;
  max-height: 85vh;
}
@media(min-width:768px){
  .c-block-person.is-show .detail-box {
    width: 640px;
    padding: 30px;
    gap: 30px;
  }
}
.detail-box__back {
  content: "";
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: .3s opacity;
}
.detail-box__back.is-show {
  opacity: .3;
  pointer-events: revert;
}
.c-block-person__btn {
  font-size: 0.9em;
  background-color: var(--primary-color);
  box-shadow: inset 5px -5px 0px 0px rgba(234, 121, 19, 0.5), inset 0px -3px 6px -2px rgba(234, 121, 19, 0.5);
  border: none;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.2em;
  max-width: 320px;
  width: 100%;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  display: block;
  cursor: pointer;
  grid-column: 1/3;
  margin: auto;
}
.c-block-person__btn:hover {
  opacity: .7;
}


.update-text {
  color: var(--key-color);
  transform: translateY(35px);
}

.bg-white {
  background-color: #fff;
  padding: 15px;
}

#primary.site-main.matching {
  background-color: var(--key-color);
  padding-bottom: 0;
}

#primary.site-main.matching .tit {
  font-size: 28px;
  text-align: center;
  color: var(--key-color);
  font-weight: bold;
  margin-bottom: 1.25em;
}

#primary.site-main.matching .contact-form-container {
  background-color: #e9ffff;
  box-shadow: revert;
}

@media(min-width:768px) {
  #primary.site-main.matching .contact-form-container {
    margin: 30px;
  }
}

/* レスポンシブ調整 */
.matching .page-content {
  box-sizing: border-box;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media(max-width:767px) {
  .matching .page-content {
    width: 100% !important;
  }
}

@media(min-width:768px) {
  .bg-white {
    padding: 50px;
  }

  #primary.site-main.matching .tit {
    font-size: 36px;
  }
}


.no_scroll{
  overflow: hidden;
}