@charset "UTF-8";

/*****************************
  職員紹介
*****************************/
.page-staff .hcontent{
  width: 430%;
}
.pagesec1 .pscontent2{
  background: url(../../images/page/staff/staff_bg.webp) no-repeat center / cover;
}
.pagesec1 .pscontent2 h3{
  font-size: 2.6rem
}
.pagesec1 .pscontent2 .inner2{
  position: relative;
  z-index: 1;
}
.pagesec1 .pscontent2 .txtbox{
  margin: 5rem 0 3rem;
}

.pagesec2 .mov{
  aspect-ratio: 16/9;
  max-width: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 80%;
}

.pagesec3{
  background: #fff;
}
.pagesec3 .inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 5rem; 
}
.pagesec3 .staffloop > li{
  margin-top: 1rem;
  padding: 1rem;
  width: calc(100% / 6);
  width: calc(100% / 5);
}
.pagesec3 .staffloop > li:nth-child(1),
.pagesec3 .staffloop > li:nth-child(2),
.pagesec3 .staffloop > li:nth-child(3),
.pagesec3 .staffloop > li:nth-child(4),
.pagesec3 .staffloop > li:nth-child(5){
  padding-right: 4rem;
}
.pagesec3 .staffloop > li:nth-child(6),
.pagesec3 .staffloop > li:nth-child(7),
.pagesec3 .staffloop > li:nth-child(8),
.pagesec3 .staffloop > li:nth-child(9),
.pagesec3 .staffloop > li:nth-child(10){
  padding-left: 4rem;
}
/* .pagesec3 .staffloop > li:nth-child(1),
.pagesec3 .staffloop > li:nth-child(2),
.pagesec3 .staffloop > li:nth-child(3),
.pagesec3 .staffloop > li:nth-child(4),
.pagesec3 .staffloop > li:nth-child(5),
.pagesec3 .staffloop > li:nth-child(6),
.pagesec3 .staffloop > li:nth-child(13),
.pagesec3 .staffloop > li:nth-child(14),
.pagesec3 .staffloop > li:nth-child(15),
.pagesec3 .staffloop > li:nth-child(16),
.pagesec3 .staffloop > li:nth-child(17),
.pagesec3 .staffloop > li:nth-child(18){
  padding-right: 4rem;
}
.pagesec3 .staffloop > li:nth-child(7),
.pagesec3 .staffloop > li:nth-child(8),
.pagesec3 .staffloop > li:nth-child(9),
.pagesec3 .staffloop > li:nth-child(10),
.pagesec3 .staffloop > li:nth-child(11),
.pagesec3 .staffloop > li:nth-child(12){
  padding-left: 4rem;
} */
.pagesec3 .staffloop .popopen img{
  aspect-ratio: 1/1;
  object-fit: cover;
}
.pagesec3 .staffloop .popopen p{
  background: #fff;
  font-size: 2rem;
  font-weight: bold;
  padding: .5rem 1rem;
  position: absolute;
  right: -2rem;
  bottom: 1rem;
  transition: .5s;
}
.pagesec3 .staffloop .popopen:hover p{
  background: #000;
  color: #fff;
}

.staffbox{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  max-width: 1000px;
  max-height: calc(80vh - 80px);
  height: 100%;
  width: 100%;
}
.staffbox .inbox{
  background: #000;
  overflow-y: scroll;
  padding: 2rem;
  height: 100%;
  width: 100%;
}
.staffbox .content .ttl{
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  font-size: 2rem;
  padding: 1rem;
  width: 100%;
}
.staffbox .content .ttl span{
  font-size: 1.6rem;
}
.staffbox .content .profilebox{
  margin: 2rem 0;
}
.staffbox .content .profilebox .fbox{
  width: calc(100% - 225px);
}
.staffbox .content .profilebox .fbox .fimgbox{
  width: 30%;
}
.staffbox .content .profilebox .fbox .ftxtbox{
  width: 65%;
}
.staffbox .content .profilebox .fbox2{
  width: 225px;
}
.staffbox .content .mov{
  margin: 2rem auto;
  text-align: center;
  max-width: 700px;
}
.staffbox .content .mov iframe{
  aspect-ratio: 16/9;
}
.staffbox .qabox .qa{
  margin-top: 2rem;
}
.staffbox .qabox .qattl{
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.staffbox .popclose{
  color: #fff;
  font-size: 3rem;
  position: absolute;
  top: -3.5rem;
  right: 0;
}

@media only screen and (max-height: 720px) and (min-width: 1024px){
  .pagesec3 .staffloop .popopen p{
    right: -1rem;
  }
  .pagesec3 .staffloop > li {
    width: calc(100% / 5.8);
    width: calc(100% / 5.8);
  }
  .pagesec3 .staffloop > li:nth-child(1),
  .pagesec3 .staffloop > li:nth-child(2),
  .pagesec3 .staffloop > li:nth-child(3),
  .pagesec3 .staffloop > li:nth-child(4),
  .pagesec3 .staffloop > li:nth-child(5){
    padding-right: 2rem;
    padding-left: 0;
  }
  .pagesec3 .staffloop > li:nth-child(6),
  .pagesec3 .staffloop > li:nth-child(7),
  .pagesec3 .staffloop > li:nth-child(8),
  .pagesec3 .staffloop > li:nth-child(9),
  .pagesec3 .staffloop > li:nth-child(10){
    padding-left: 2rem;
    padding-right: 0;
  }
  /* .pagesec3 .staffloop > li:nth-child(1),
  .pagesec3 .staffloop > li:nth-child(2),
  .pagesec3 .staffloop > li:nth-child(3),
  .pagesec3 .staffloop > li:nth-child(4),
  .pagesec3 .staffloop > li:nth-child(5),
  .pagesec3 .staffloop > li:nth-child(11),
  .pagesec3 .staffloop > li:nth-child(12),
  .pagesec3 .staffloop > li:nth-child(13),
  .pagesec3 .staffloop > li:nth-child(14),
  .pagesec3 .staffloop > li:nth-child(15){
    padding-right: 2rem;
    padding-left: 0;
  }
  .pagesec3 .staffloop > li:nth-child(6),
  .pagesec3 .staffloop > li:nth-child(7),
  .pagesec3 .staffloop > li:nth-child(8),
  .pagesec3 .staffloop > li:nth-child(9),
  .pagesec3 .staffloop > li:nth-child(10),
  .pagesec3 .staffloop > li:nth-child(16),
  .pagesec3 .staffloop > li:nth-child(17),
  .pagesec3 .staffloop > li:nth-child(18){
    padding-left: 2rem;
    padding-right: 0;
  } */
}
@media only screen and (max-height: 720px) and (min-width: 1081px){
  .pagesec3 .staffloop > li {
    width: calc(100% / 6);
  }
}
@media only screen and (max-height: 720px) and (min-width: 1024px){
  .pagesec3 .inner{
    justify-content: end;
  }
}
@media only screen and (max-width: 1440px) {

}
@media only screen and (max-width: 1280px) {
  .pagesec3 .staffloop .popopen p {
    font-size: 1.6rem;
  }
}
@media only screen and (max-width: 1180px) {
    
}
@media only screen and (max-width: 1080px) {
  .pagesec3 .staffloop .popopen p{
    right: -1rem;
  }
  .pagesec3 .staffloop > li {
    width: calc(100% / 5.4);
  }
  .pagesec3 .staffloop > li:nth-child(1),
  .pagesec3 .staffloop > li:nth-child(2),
  .pagesec3 .staffloop > li:nth-child(3),
  .pagesec3 .staffloop > li:nth-child(4),
  .pagesec3 .staffloop > li:nth-child(5){
    padding-right: 2rem;
    padding-left: 0;
  }
  .pagesec3 .staffloop > li:nth-child(6),
  .pagesec3 .staffloop > li:nth-child(7),
  .pagesec3 .staffloop > li:nth-child(8),
  .pagesec3 .staffloop > li:nth-child(9),
  .pagesec3 .staffloop > li:nth-child(10){
    padding-left: 2rem;
    padding-right: 0;
  }
  /* .pagesec3 .staffloop > li:nth-child(1),
  .pagesec3 .staffloop > li:nth-child(2),
  .pagesec3 .staffloop > li:nth-child(3),
  .pagesec3 .staffloop > li:nth-child(4),
  .pagesec3 .staffloop > li:nth-child(5),
  .pagesec3 .staffloop > li:nth-child(11),
  .pagesec3 .staffloop > li:nth-child(12),
  .pagesec3 .staffloop > li:nth-child(13),
  .pagesec3 .staffloop > li:nth-child(14),
  .pagesec3 .staffloop > li:nth-child(15){
    padding-right: 2rem;
    padding-left: 0;
  }
  .pagesec3 .staffloop > li:nth-child(6),
  .pagesec3 .staffloop > li:nth-child(7),
  .pagesec3 .staffloop > li:nth-child(8),
  .pagesec3 .staffloop > li:nth-child(9),
  .pagesec3 .staffloop > li:nth-child(10),
  .pagesec3 .staffloop > li:nth-child(16),
  .pagesec3 .staffloop > li:nth-child(17),
  .pagesec3 .staffloop > li:nth-child(18){
    padding-left: 2rem;
    padding-right: 0;
  } */
}

@media only screen and (max-width: 1024px) {
  .pagesec3 .staffloop > li {
    width: calc(100% / 5);
  }
}
@media only screen and (max-width: 1023px) {
  #pageheadsec.pagesec1 .pscontent2 {
    padding: 15rem 0;
  }
  .pagesec2{
    height: auto;
    padding: 8rem 0;
  }
  .pagesec2 .mov{
    margin: 0 auto;
    position: static;
    transform: none;
  }
  .pagesec3{
    height: auto;
    padding: 8rem 0;
  }
  .pagesec3 .staffloop > li {
    width: calc(100% / 3);
  }
  .pagesec3 .staffloop > li:nth-child(1),
  .pagesec3 .staffloop > li:nth-child(2),
  .pagesec3 .staffloop > li:nth-child(3),
  .pagesec3 .staffloop > li:nth-child(7),
  .pagesec3 .staffloop > li:nth-child(8),
  .pagesec3 .staffloop > li:nth-child(9),
  .pagesec3 .staffloop > li:nth-child(13),
  .pagesec3 .staffloop > li:nth-child(14),
  .pagesec3 .staffloop > li:nth-child(15){
    padding-right: 4rem;
    padding-left: 0;
  }
  .pagesec3 .staffloop > li:nth-child(4),
  .pagesec3 .staffloop > li:nth-child(5),
  .pagesec3 .staffloop > li:nth-child(6),
  .pagesec3 .staffloop > li:nth-child(10),
  .pagesec3 .staffloop > li:nth-child(11),
  .pagesec3 .staffloop > li:nth-child(12),
  .pagesec3 .staffloop > li:nth-child(16),
  .pagesec3 .staffloop > li:nth-child(17),
  .pagesec3 .staffloop > li:nth-child(18){
    padding-left: 4rem;
    padding-right: 0;
  }
  .staffbox{
    max-height: calc(85vh - 80px);
    width: 90%;
  }
}
@media only screen and (max-width: 820px) {
    
}
@media only screen and (max-width: 768px) {
    
}
@media only screen and (max-width: 767px) {
  #pageheadsec.pagesec1 .pscontent2 {
    padding: 8rem 0;
  }
  .pagesec1 .pscontent2 h3 {
    font-size: 2.2rem;
  }
  .pagesec1 .pscontent2 .txtbox {
    margin: 3rem 0 2rem;
  }
  .pagesec3 .inner{
    padding: 0 3rem;
  }
  .pagesec3 .staffloop > li {
    /* margin: 2rem auto; */
    margin: 2rem 1%;
    padding: 0 !important;
    width: 48%;
  }
  .pagesec3 .staffloop .popopen p {
    right: 0rem;
    bottom: -1rem;
  }
  .staffbox .content .profilebox .fbox,
  .staffbox .content .profilebox .fbox .ftxtbox,
  .staffbox .content .profilebox .fbox2 {
    width: 100%;
  }
  .staffbox .content .profilebox .fbox .fimgbox{
    margin: 0 auto 1rem;
    max-width: 250px;
    width: 100%;
  }
  .staffbox .content .profilebox .fbox2 .imgbox{
    margin: 2rem auto 0;
    width: 100%;
  }
  .staffbox .content .profilebox,
  .staffbox .content .mov {
    margin: 2rem 0 4rem;
  }
}