@charset 'utf-8';

header {
  background-image: url("../image/works-top_image.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 520px;
  position: relative;
  background-position: center;
}

@media screen and (max-width: 767px) {
  header {
    height: 360px;
  }
}

@media screen and (max-width: 430px) {
  header {
    background-image: url("../image/works-top_sp_image.jpg");
  }
}
.header-wrapper {
  background-color: rgba(0, 0, 0, 0.4);
  height: 520px;
}
@media screen and (max-width: 767px) {
  .header-wrapper {
    height: 360px;
  }

}

.header-wrapper h2 {
  width: 383px;
  height: auto;
  margin-bottom: 30px;

}

@media screen and (max-width: 767px) {
  .header-wrapper h2 {
    width: 186px;
    height: auto;
    margin-bottom: 15px;

  }

}

.main-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 30px;

}

.main-title_en img {
  width: 100%;
  height: 100%;
}

.main-title h3 {
  font-size: 3.6rem;
  letter-spacing: 0.2em;
  text-align: center;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .main-title h3 {
    font-size: 1.8rem;
    }
  }



.tab-group {
  display: flex;
  padding-top: 40px;
  padding-bottom: 70px;
  justify-content: space-between;
  max-width: 950px;
  width: 86%;
  margin: 0 auto;
  gap: 10px;
  font-size: 2.0rem;
}
@media screen and (max-width: 990px) {
  .tab-group {
flex-wrap: wrap;
gap:0;
row-gap: 5px;
  }
}

@media screen and (max-width: 767px) {
  .tab-group {
    font-size: 1.3rem;
    padding-bottom:40px;
    padding-top:20px;
  }
}




.tab-group li {


  width: 100%;
  border: solid 1px #333;
  text-align: center;
  cursor: pointer;
}
.tab-group li a{
  padding-top: 20px;
  padding-bottom: 20px;
  display:block;
}



@media screen and (max-width: 990px) {
  .tab-group li {
width:calc(50% - 3px)
  }
  
}

.gallery{
  display: none;
  width: 86%;
  max-width:1440px;
  margin: 0 auto;
  justify-content: space-between
}
@media screen and (max-width: 1279px) {
.gallery{
    width: 89.74%;
  }
}

.tab.is-active {
  background: #0C3561;
  color: #FFF;
  transition: all 0.2s ease-out;
}


.gallery{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 45px;
  justify-content: space-between;
}

@media screen and (max-width: 767px) {
  .gallery{
    row-gap: 25px;

  }

}

.gallery li {
  width: calc(33.333% - 12px);
  display: none;
}

.gallery li.show{
  display: block;
}
@media screen and (max-width: 990px) {
  .gallery li {
    width: calc(50% - 9px);
  }

}
@media screen and (max-width: 767px) {
  .gallery li {
    width: calc(50% - 5px);
  }

}


.slider-image {
  aspect-ratio: 400 / 250;
}



.slider-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.no-image{
  display:flex;
  justify-content: center;
  align-items: center;
}
.no-image img{
  width:50%;
  height:50%;
}



.slider-img_title {
  display: flex;
  font-size: 1.4rem;
  gap: 20px;
  color: #757575;
  margin-top: 10px;
  margin-bottom: 5px
}



@media screen and (max-width: 767px) {
  .slider-img_title {
    font-size: 1.0rem;
    gap: 10px;
    color: #757575;
    margin-top: 10px;
    margin-bottom: 5px
  }
}

.work-title {
  line-height: 22px;
  margin-left:-3px;
}

@media screen and (max-width: 767px) {
  .work-title {
    font-size: 1.2rem;
    line-height: 19px;
  }
}




.btn-container {
  border: 1px solid #333;
  background-color: #FFF;
  display: inline-block;
  font-size: 1.8rem;
  width: 240px;
  height: 55px;
  position: relative;
}


.btn.js-btn-more{
  display:table;
  margin:70px auto 0;
}

@media screen and (max-width: 767px) {
  .btn.js-btn-more{
    margin:40px auto 0;
  }
  }



.btn.js-btn-close{
  display:table;
  margin:70px auto 0;
}

@media screen and (max-width: 767px) {
  .btn.js-btn-close{
    margin:40px auto 0;
  }
  }



.btn p {
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: #333;
  text-align: center;
  display:flex;
  align-items: center;
  justify-content: center;
  height:100%;
}

.botton-click {
  content: '';
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  width: 8px;
  height: 8px;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(-50%) rotate(135deg);
  position:absolute;
  right:19%;
  top:48%;
  
}

.close-botton-click {
  content: '';
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  width: 8px;
  height: 8px;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(-50%) rotate(-45deg);
  position:absolute;
  right: 19%;
  top:52%;
}

/* ボタンホバー */

.btn.js-btn-more:hover .hover-animation p{
	color:#fff;
}
.btn.js-btn-more:hover .botton-click{
  color:#fff;
}
.btn.js-btn-close:hover .hover-animation p {
	color:#fff;
}
.btn.js-btn-close:hover .close-botton-click{
  color:#fff;
}
.hover-animation {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.5s ease;
}
.hover-animation:hover::before {
  transform: scale(1) translate(-50%,-50%);
}
.hover-animation::before {
  content: '';
  width: 120%;
  padding-top: 120%;
  border-radius: 100%;
  background-color: #0C3561;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform-origin: top left;
  transform: scale(0) translate(-50%,-50%);
  transition: inherit;
}


.js-btn-close p {
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: #333;
  text-align: center;
}





/* next-page-button */
.next-page_button {
  width: 86%;
  margin: 100px auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  

}

.next-page_button a {
  width: 100%;
}


@media screen and (max-width: 767px) {
  .next-page_button {
    flex-direction: column;
    margin: 50px auto;
  }
}


.next-page_button h3 {
  color: #fff;
  font-size: 2.0rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 25px;
}
.next-button_service_title_margin{
  margin-top: 20px
}


@media screen and (max-width: 767px) {
  .next-page_button h3 {
    font-size: 1.5rem;
    margin-top: 15px;
  }
}

.next-page_button_inner {
  background-color: #0C3561;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 575 / 271;
}

@media screen and (max-width: 480px) {
  .next-page_button_inner {
    background-color: #0C3561;

    margin: 0 auto;
  }

}


.next-button_recruit_title {
  width: 127px;
  height: auto;
}

@media screen and (max-width: 480px) {
  .next-button_recruit_title {
    width: 96px;
  }
}

.next-button_recruit_title img {
  width: 100%;
  height: 100%;
}

.next-button_service_title {
  width: 127px;
  height: auto;
}


@media screen and (max-width: 599px) {
  .next-button_service_title {
    width: 95px;
  }
}

.next-button_service_title img {
  width: 100%;
  height: 100%;
}



.next-button {
  content: "";
  width: 75px;
  height: 75px;
  border: 1px #fff solid;
  border-radius: 50%;
  margin-bottom: 10px;

  position: relative;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 13%;
  transition: 0.3s;
}

@media screen and (max-width: 599px) {
  .next-button {
    width: 50px;
    height: 50px;
  }
}

@media screen and (max-width: 400px) {
  .next-button {
    width: 40px;
    height: 40px;
    right: 10%;
  }
}
.next-button::after {
  content: "";
  height: 4px;
  width: 19.5px;
  background-image: url(../image/circle-button_arrow.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50% ,-50%);
}

@media screen and (max-width: 599px) {
  .next-button::after {

    height: 3px;
    width: 12.5px;
  }

}




@media screen and (max-width: 990px) {
  .service-button_a {
    display: none;
  }
}




.next-page_button_inner_recruit::before {
  opacity: 0;
  background-image: url(../image/next-page_recruit.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;

}

.next-page_button_inner_recruit:hover:before {

  opacity: 1;
}


.next-page_button_inner_service::before {
  opacity: 0;
  background-image: url(../image/next-page_service.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 100%;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;

}

@media screen and (max-width: 990px) {
  .service-button_a{
    display: none;
  }
}



.next-page_button_inner_service:hover:before {

  opacity: 1;
}

.service-next_button,
.recruit-next_button {
  position: absolute;
}


.tab-group .active{
  background-color:#0C3561;
  color:#fff;
  border-style: none;
}

.next-page_button_inner_service:hover .next-button{
  transform:translateY(-50%) scale(1.2, 1.2);
}

.next-page_button_inner_recruit:hover .next-button{
  transform:translateY(-50%) scale(1.2, 1.2);
}
