@charset "utf-8";
/*
Template:   habakiri
Theme Name: habakiri-child
*/

/* Common */
html{
  font-size: 14px;
  scroll-behavior: smooth;
}
body{
  font-family: "メイリオ",sans-serif;
  line-height: 2.0;
  color: #333;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body *{
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
img{
  max-width: 100%;
}
a{
  text-decoration: none;
}
a:hover{
  text-decoration: none;
  border-bottom: none;
}
a img:hover{
  filter: opacity(0.9);
}

/* header */
header{
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  padding:1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  background-color: #fff;
  box-shadow: 1px 1px 3px #ddd;
}
.logo a{
  display: flex;
  align-items:flex-end;
}
.logo a img{
  width: 140px;
}
.site_name{
  font-size: 1.5rem;
  color: #044d96;
  font-weight: bold;
  line-height: 1.0;
  margin-left: 10px;
}
.mnav{
  display: block;
}
.gnav{
  display: block;
}
.menu{
  display: flex;
  list-style: none;
}
.menu-item{  
}
.menu-item a{
  color: #000;
  padding: 0.5rem 1rem;
  line-height: 1.0;
  font-weight: bold;
}
.menu-item a:hover{
  color: #044d96;
  border-bottom: 1px solid #044d96;
}
.sp_nav{
  display: none;
}
.sp_gnav{
  display: none;
}

/* main */
main{
  margin-top: 80px;
}
/*main common*/
h2{
  line-height: 1.0;
  font-size: 4rem;
  font-weight: normal;
  font-family: serif;
  color: #044d96;
  display: block;
  margin: 0 auto 2rem;
  max-width: 1080px;
}
h2 span{
  font-size: 0.9rem;
  font-family: serif;
  font-weight: bold;
  display: block;
  position: relative;
  letter-spacing:2px;
  margin-bottom: 1rem;
}
h2 span::after{
  content: '';
  background-color: #044d96;
  height: 1px;
  width: 50px;
  top: calc(50% - 1px);
  position: absolute;
}
h3{
  line-height: 1.0;
  font-size: 2rem;
  font-family: serif;
  font-weight: normal;
  color: #044d96;
  padding-left: 31px;
  display: block;
  margin: 0 auto 2rem;
  max-width: 1080px;
  position: relative;
}
h3::before{
  position: absolute;
  content: '';
  background-color: #044d96;
  width: 28px;
  height: 28px;
  top: 0;
  left: 0;
}
.s_br{
  display: block;
}
.s_nbr{
  display: none;
}
.fadeUp{
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 1s, visibility 1s, transform 1s;
}
.is-fadein{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}


/*MainVisual*/
#MainVisual{
  width: 100%;
  position: relative;
}
.pc_slide{
  display: block;
}
.sp_slide{
  display: none;
}
#MainVisual p{
  position: absolute;
  bottom: 5%;
  left: 10%;
  margin: 0 auto;
  font-size: 3.5rem;
  font-weight: bold;
  font-family: serif;
  color: #fff;
  text-shadow: 0 0 15px #000;
}
.scrl{
  position: absolute;
  bottom:10%;
  right: 10%;
  animation: arrowmove 1s ease-in-out infinite;
}
@keyframes arrowmove{
  0%{bottom:3%;}
  50%{bottom:8%;}
 100%{bottom:3%;}
}
.scrl span{
position: absolute;
left: -30px;
bottom: 10px;
color: #fff;
text-shadow: 0 0 10px #000;
letter-spacing:2px;
-ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}
.scrl:before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 2px;
  height: 20px;
  background: #fff;
  transform: skewX(-31deg);
}
.scrl:after{
content:"";
position: absolute;
bottom:0;
right:0;
width: 2px;
height: 80px;
background:#fff;
}

/*News*/
#News{
  width: 100%;
  padding: 5% 10%;
  margin: 0 auto 2rem;
}
.newslist{
  padding: 1rem 0 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.newslist ul{
  list-style: none;
  margin-bottom: 3rem;
}
.news_item{
  padding: 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 2rem;
}
.news_item a{
  display: block;
}
a .news_item:hover{
  background-color: #eee;
}
.news_i_thumb{
  width: 240px;
  height: 160px;
}
.news_i_thumb img{
  width: 240px;
  height: 160px;
  object-fit: cover;
}
.news_i_day{
  width: 120px;
  font-weight: bold;
}
.new{
  margin-left: 10px;
  background-color: #044d96;
  line-height: 1.0;
  color: #E7E3D8;
  padding: 2px 5px;
}
.more_btn{
  text-align: center;
}
.more_btn a{
  display: block;
  margin: 0 auto;
  color: #044d96;
  background-color: #fff;
  padding: 20px;
  width: 300px;
  border: 1px solid #044d96; 
}
.more_btn a:hover{
  background-color: #044d96;
  color: #fff;
}


/*About*/
#About{
  width: 100%;
  position: relative;
  display: flex;
  overflow: hidden;
}
.about_img{
  width: 50%;
  background-image: url(https://sankyo-yamagata.com/wp-content/themes/habakiri-child/images/about.png);
  background-size: cover;
  position: relative;
}
.about_h2{
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  max-width: 1080px;
  margin: 0 auto;
  text-shadow: 0 0 10px #fff;
  z-index: 998;
  padding: 10% 20%;
}
.at_wrap{
  padding: 100px 2rem 250px;
  z-index: 998;
  color: #fff;
}
.about_ttl{
  width: 100%;
  font-size: 2.5rem;
  font-family: serif;
  text-shadow: 0 0 5px #333;
  margin-bottom: 2rem;
  margin-left: 90%;
  font-weight: bold;
}
.about_text{
  width: 100%;
  font-size: 1.25rem;
  text-shadow: 0 0 5px #333;
  margin-left: 90%;
}
.abt_wrap{
  width: 50%;
  background-color: #044d96;
}



/*Service*/
#Service{
  width: 100%;
  padding: 5% 10%;
}
.service_big{
  max-width: 1080px;
  margin:0 auto;
}
.sb_item{
  width: 100%;
  margin:0 auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}
.sb_item:nth-child(2){
  margin: 3rem auto;
}
.sb_item:last-child{
  border-bottom: 1px solid #fff;
}
.sbi_text{
  margin-bottom: 1rem;
}
.sbi_t_ttl{
  font-size: 2rem;
  color: #044d96;
  margin-bottom: 1rem;
  font-family: serif;
  font-weight: bold;
}
.ss_wrap{
  max-width: 1080px;
  margin: 1rem auto 0;
}
.ssi_ttl{
  font-weight: bold;
  font-size: 1.25rem;
  position: relative;
  padding-left: 18px;
  font-family: serif;
}
.ssi_ttl::before{
  content: '';
  background-color: #044d96;
  width: 14px;
  height: 14px;
  position: absolute;
  left: 0;
  top: 8px;
}
.service_small{
  display: none;
}
.ss_item{
  margin: 1rem 0;
}
.ss_item img{
  height: 210px;
  object-fit: cover;
}
.ss_ttl{
  text-align: center;
  font-size: 1.5rem;
  padding: 1rem;
  color: #fff;
  background-color: #044d96;
  position: relative;
  font-family: serif;
}
.ss_ttl::before {
  position: absolute;
  content: "";
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  background-color: #fff;
  height: 15px;
  width: 20px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}
.ss_item p{
  line-height: 1.5;
}
.open{
  display: block;
}


/*Recruit*/
#Recruit{
  width: 100%;
  padding: 5% 10%;
  background-color: #044d96;
}
.recruit_h2{
  color: #fff;
}
.recruit_h2 span::after{
  background-color: #fff;
}
.recruit_item{
  background-color: #fff;
  padding: 3rem;
  margin: 0 auto 2rem;
  max-width: 1080px;
}
.recruit_item table{
  margin: 0 auto;
  padding: 0 3rem;
}
.recruit_item table tbody tr{
  border: none;
}
.recruit_item table tbody tr:nth-of-type(odd){
  background-color: #eee;
}
.r_td1{
  width: 20%;
  padding: 0.5rem;
  font-weight: bold;
}
.r_td2{
  width: 80%;
  padding: 0.5rem ;
}
.recruit_contact{
  display: flex;
  column-gap: 2rem;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}
.rc_item{
  max-width: 520px;
}

/*Company*/
#Company{
  width: 100%;
  padding: 5% 10%;
  background-image: url(https://sankyo-yamagata.com/wp-content/themes/habakiri-child/images/MV.png);
  background-size: cover;
}
.ci_wrap{
  max-width: 1080px;
  margin: 0 auto;
}
.company_h2{
  text-shadow: 0 0 10px #fff;
}
.ci_wrap table{
  width: 100%;
  display: block;
  background-color: rgba(255,255,255,0.9);
  margin: 0 auto;
  padding: 2rem 3rem;
}
.c_td1{
  width: 20%;
  padding: 1rem;
  font-weight: bold;
}
.c_td2{
  width: 80%;
  padding: 1rem ;
}
.c_td2 iframe{
  max-width: 100%;
}

/*Contact*/
#Contact{
  width: 100%;
  padding: 5% 10%;
  background-image: url(https://sankyo-yamagata.com/wp-content/themes/habakiri-child/images/contact.png);
  background-size: cover;
}
.contact_h2{
  text-shadow: 0 0 10px #fff;
}
.contact_wrap{
  background-color: rgba(255,255,255,0.9);
  padding: 2rem 3rem;
  margin: 0 auto;
  max-width: 1080px;
}
.contact_wrap p{
  padding: 0 2rem;
  margin-bottom: 1rem;
}
.cw_item{
  padding: 1rem;
}
.cwi_ttl{
  display: flex;
  align-items: center;
  font-family: serif;
  margin-bottom: 1rem;
}
.cwi_ttl img{
  width: 60px;
  height: 60px;
  margin-right: 1rem;
}
.cwi_ttl div{
  line-height: 1.0;
  font-size: 2rem;
}
.cwi_phone{
  display: flex;
  column-gap: 2%;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2%;
}
.cwi_phone div{
  width: 46%;
  margin: 2% auto;
}
.cwi_phone div a{
  display: block;
  font-size: 2rem;
  padding: 1rem;
  text-align: center;
  color: #fff;
  font-weight: bold;
  line-height: 1.5;
  background-color: #044d96;
}
.cwi_phone div a:hover{
  filter: opacity(0.9)
}
.cwip_ttl{
  display: block;
  font-size: 0.95rem;
}
.cwip_time{
  display: block;
  font-size: 0.95rem;
}
.mailto_img{
  width: 600px;
  text-align: center;
  margin: 0 auto 2%;
  display: block;
}

/* footer */
#footer{
  text-align: center;
}
.copyright{
  color: #fff;
  background-color: #044d96;
  font-weight: bold;
}

/*article*/
.article{
  max-width: 1080px;
  min-height: 85vh;
  margin: 80px auto 0;
  padding: 3rem 1rem;
}
.page_h1{
  font-size: 3rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #044d96;
}
.breadcrumbs{
  padding-left: 1rem;
}
.breadcrumbs a{
  color: #222 !important;
}
.breadcrumbs strong{
  color: #222;
}

/* archive */
.news-archives{
  margin-bottom: 60px;
}
a .news_a_item{
  display: block;
}
a .news_a_item:hover{
  background-color: #eee;
}
.news_a_item{
  padding: 20px;
  display: flex;
  border-bottom: 1px solid #ddd;
}
.news_a_i_day{
  width: 120px;
  font-weight: bold;
}
.a_new{
  margin-left: 10px;
  background-color: #044d96;
  line-height: 1.0;
  color: #fff;
  padding: 2px 5px;
}

/*page*/
.single_post{
  padding: 1rem;
}
.return_top {
  margin-top: 4rem;
}
.return_top a {
  display: block;
  margin: 0 auto;
  color: #044d96;
  background-color: #fff;
  padding: 20px;
  width: 300px;
  border: 1px solid #044d96;
  text-align: center;
}
.return_top a:hover {
  background-color: #005caf;
  color: #fff;
}


@media screen and (max-width:991px){
  /* header */
  .sp_nav{
    display: block;
    width: 50px;
    margin-top: 10px;
    padding: 5px;
    align-items: center;
    z-index: 9999;
  }
  .sp_nav span{
    display: block;
    content: '';
    width: 100%;
    height: 2px;
    margin-bottom: 10px;
    border-radius: 1px;
    background-color: #044d96;
    transition: 0.5s;
  }
  .sp_nav.active_btn span:nth-of-type(1){
    transform: rotate(-45deg);
    margin-top: 0;
    background-color: #044d96;
  }
  .sp_nav.active_btn span:nth-of-type(2){
    opacity: 0 ;
  }
  .sp_nav.active_btn span:nth-of-type(3){
    transform: rotate(45deg);
    margin-top: -24px;
    background-color: #044d96;
  }
  .sp_gnav{
    display: block;
    width: 50px;
    margin-top: 10px;
    padding: 5px;
    align-items: center;
    z-index: 9999;
  }
  .sp_gnav span{
    display: block;
    content: '';
    width: 100%;
    height: 2px;
    margin-bottom: 10px;
    border-radius: 1px;
    background-color: #044d96;
    transition: 0.5s;
  }
  .sp_gnav.active_btn span:nth-of-type(1){
    transform: rotate(-45deg);
    margin-top: 0;
    background-color: #044d96;
  }
  .sp_gnav.active_btn span:nth-of-type(2){
    opacity: 0 ;
  }
  .sp_gnav.active_btn span:nth-of-type(3){
    transform: rotate(45deg);
    margin-top: -24px;
    background-color: #044d96;
  }
  .mnav{
    display: none;
  }
  .gnav{
    display: none;
  }
  .active{
    display: block;
  }
  .menu-main_manu-container{
    position:fixed;
    z-index: 999;
    top: 0;
    right: -120%;
    margin-top: 80px;

  }
  .menu-main_manu-container.active{
    right: 0;
  }
  .menu-g_menu-container{
    position:fixed;
    z-index: 999;
    top: 0;
    right: -120%;
    margin-top: 80px;

  }
  .menu-g_menu-container.active{
    right: 0;
  }
  .menu{
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    background-color: #044d96;
    width: 100vw;
    height: 100vh;
    text-align: center;
  }
  .menu-item a{
    display: block;
    padding: 2rem 1rem !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    border-bottom: 1px solid #044d96;
  }
  .menu-item a:hover{
    border-bottom: 1px solid #fff;
  }

  /* main */
  /*main common*/
  .s_br{
    display: none;
  }
  .pc_slide{
    display: none;
  }
  .sp_slide{
    display: block;
  }
  #MainVisual p{
    left: 5%;
    bottom: 5%;
  }
  /*about*/
  .at_wrap{
    padding: 150px 5%;
  }

  /*Recruit*/
  .recruit_item{
    padding: 2rem;
  }

  /*Contact*/
  .cwi_phone div{
    font-size: 1.25rem;
    line-height: 1.5;
    width: 100%;
  }
}

@media screen and (max-width:767px){
  /* header */
  .logo a img{
    width: 80px;
  }
  .site_name{
    font-size: 1rem;
    margin-bottom: 0;
  }

  /* main */
  /*main common*/
  h2{
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto 2rem;
  }
  h3{
    font-size: 1.5rem;
    padding-left: 24px;
    font-weight: bold;
    margin: 0 auto 1rem;
  }
  h3::before{
    width: 21px;
    height: 21px;
  }
  .s_br{
    display: none;
  }
  .s_nbr{
    display: block;
  }
  
  /*MV*/
  #MainVisual p{
    font-size: 1.5rem;
  }

  /*News*/
  #News{
    padding: 3rem 1rem;
  }
  .newslist{
    padding: 0;
  }
  .news_item{
    padding: 15px;
    flex-direction: column;
    gap: 0.5rem;
  }
  .news_i_thumb{
    width: 100%;
    height: 180px;
  }
  .news_i_thumb img{
    width: 100%;
    height: 180px;
  }
  .news_i_day{
    width: 100%;
    font-weight: bold;
  }
  
  /*about*/
  .about_img{
    width: 100%;
    padding: 3rem 1rem;
  }
  .about_h2{
  text-shadow: 0 0 5px #fff;
  padding: 0;
  }
  .at_wrap{
    padding: 50px 0 75px;
    margin: 2rem 1px 0;
    padding: 1.5rem;
    background-color: rgba(255,255,255,0.8);
    color: #333;
  }
  .about_ttl{
    font-size: 1.5rem;
    width: 100%;
    text-shadow: 0 0 0 #333;
    margin-left: 0;
    padding: 0;
    margin-bottom: 1rem;
  }
  .about_text{
    font-size: 1rem;
    width: 100%;
    text-shadow: 0 0 0 #333;
    z-index: 998;
    margin-left: 0%;
    padding: 0;
  }
  .abt_wrap{
    display: none;
  }

  /*Service*/
  #Service{
    padding: 3rem 1rem;
  }
  .sb_item{
    margin-bottom: 2rem;
  }
  .ss_wrap {
    margin-top: 1rem;
  }
  .sbi_t_ttl{
    margin-bottom: 0.5rem;
    line-height: 1.0;
  }
  .ss_item{
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 1rem;
  }
  .ss_item .col-md-8{
    order: 1;
    margin-bottom: 0.5rem;
  }
  .ss_item .col-md-4{
    order: 2;
  }

  /*Recruit*/
  #Recruit{
    padding: 3rem 1rem;
  }
  .recruit_item{
    padding: 1.5rem 1rem;
  }
  .recruit_contact{
    flex-wrap: wrap;
  }
  .rc_item{
    max-width: 100%;
    margin-bottom: 2%;
    padding: 0;
  }
  .r_td1{
    display: block;
    width: 100%;
    padding: 1rem 0.5rem 0 ;
  }
  .r_td2{
    display: block;
    width: 100%;
    padding: 0 0.5rem 1rem ;
  }

  /*Company*/
  #Company{
    padding: 3rem 1rem;
  }
  .ci_wrap table{
    padding: 1rem 1.5rem;
  }
  .c_td1{
    display: block;
    width: 100%;
    padding: 1rem 0.5rem 0 ;
  }
  .c_td2{
    display: block;
    width: 100%;
    padding: 0 0.5rem 1rem ;
  }
  /*Contact*/
  #Contact{
    padding: 3rem 1rem;
  }
  .contact_wrap{
    padding: 1.5rem 1.5rem;
  }
  .contact_wrap p{
    padding: 0;
  }
  .cw_item{
    padding: 0;
    margin-top: 2rem;
  }
  .cwi_ttl{
    margin-bottom: 0.5rem;
  }
  .cwi_ttl img{
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
  }
  .cwi_ttl div{
    font-size: 1.25rem;
    font-weight: bold;
  }
  .cwi_phone div a{
    font-size: 1.5rem;
  }
  .cwi_phone p{
    padding: 0.5rem 1rem;
  }

  /*article*/
  .article{
    padding: 2rem 1rem;
  }
  .page_h1{
    font-size: 2rem;
  }

  /* archive */
  .news-archives{
    margin-bottom: 60px;
  }
  .news_a_item{
    flex-direction: column;
  }
  .news_a_i_day{
    width: 100%;
  }

}