/* CSS Document */

/* 共通 */
.navBtn,
nav .navi li.navi_top {
  display: none;
}

.sp {
  display: none;
}

.pc {
  display: block;
}

.fl_reverse {
  flex-direction: row-reverse;
}

.cont_title .ib {
  font-weight: bold;
}

@media screen and (max-width: 1040px) {

  html,
  body {
    min-width: 0;
  }

  main section article {
    width: 100%;
    max-width: 1000%;
    padding-left: 20px;
    padding-right: 20px;
  }


  header {
    padding-left: 20px;
  }

  nav,
  .footer_navi,
  .copyright p {
    width: 100%;
    max-width: 1000px;
  }

  .footer_navi>div:first-child {
    padding-left: 20px;
    min-width: 240px;
  }

  .footer_navi,
  .footer_navi>div {
    height: auto;
  }

  .footer_navi>div {
    padding: 0 30px;
  }

  .ib {
    display: inline-block;
  }

  .content_image {
    overflow: hidden;
  }

  .content_image .top_line,
  .content_image .bottom_line {
    width: 96%;
  }
}

@media screen and (min-width: 768px) {
  nav .navi {
    display: inline-block !important;
  }

  .footer_navi {
    max-width: 1280px;
    min-height: 218px;
  }

  .footer_navi>div{
    min-height: 170px;
  }
}

@media screen and (max-width: 767px) {
  .sp {
    display: block;
  }

  .pc {
    display: none;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 48px;
    z-index: 11;
  }

  nav {
    height: 48px;
  }

  nav .logo {
    font-size: 18px;
    width: auto;
    height: 48px;
    line-height: 48px;
  }

  nav .logo span {
    font-size: 11px;
  }

  nav .navi {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgba(13, 86, 97, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
  }

  nav .navi li {
    display: block;
    height: auto;
  }

  nav .navi li:last-child {
    background: none;
  }

  nav .navi li.navi_top {
    display: block;
  }

  nav .navi li a {
    display: block;
    font-size: 16px;
    padding: 18px 0;
    color: #fff;
  }

  .navBtn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    background-color: transparent;
    border-radius: 0;
    cursor: pointer;
    outline: none;
    display: block;
    width: 30px;
    height: auto;
    position: relative;
    z-index: 12;
  }

  .navBtn span {
    display: block;
    width: 100%;
    background: rgba(13, 86, 97, 1);
    height: 3px;
    transition: all .3s;
  }

  .navBtn span+span {
    margin-top: 6px;
  }

  .navBtn span:nth-of-type(1) {
    top: 0;
  }

  .navBtn span:nth-of-type(2) {
    top: 20px;
  }

  .navBtn span:nth-of-type(3) {
    bottom: 0;
  }

  .navBtn.active span {
    background: #fff;
  }

  .navBtn.active span:nth-of-type(1) {
    transform: translateY(9px) rotate(-45deg);
  }

  .navBtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .navBtn.active span:nth-of-type(3) {
    transform: translateY(-9px) rotate(45deg);
  }

  .to_top img {
    display: block;
    width: 60px;
    margin: 0 auto;
  }

  .footer_navi {
    display: block;
    text-align: center;
  }

  .footer_navi>div {
    padding: 0 15px;
    border: 0;
    width: 100%;
    margin-top: 40px;
  }

  .footer_navi>div:first-child {
    width: 100%;
    padding-left: 0;
    text-align: center;
    line-height: 40px;
    margin-top: 10px;
  }

  .footer_navi .map {
    margin: 10px auto 20px;
  }

  .footer_navi .map a {
    display: block;
  }

  .copyright {
    height: auto;
  }

  .copyright p {
    padding: 0;
    text-align: center;
    line-height: 30px;
    font-size: 10px;
  }

  main section {
    margin-top: 40px;
  }

  main section article {
    margin-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }

  main section .title {
    font-size: 28px;
  }

  .content_image {
    margin-top: 48px;
    height: auto;
  }

  .content_image .image {
    height: 280px;
  }

  .content_image .string,
  .content_image .top_line,
  .content_image .bottom_line {
    top: 90px;
  }

  .content_image .string p {
    font-size: 26px;
  }

  .concept_list_imge {
    width: 100%;
    margin: 0 auto;
  }

}


/* index */

#index .index_image::before {
  /* 画像先読み */
  content:
    url(/common/images/index/main_01.jpg)
    url(/common/images/index/main_02.jpg)
    url(/common/images/index/main_03.jpg)
/*    url(/common/images/index/main_04.jpg)*/
    ;
  display: none;
}

#index .index_image.on {
  /* フェード切り替え */
  
  /*  画像が3枚の場合*/
  animation: imagefade 15s ease 3s infinite normal forwards;
  
  /*  画像が4枚の場合*/
/*  animation: imagefade 20s ease 3s infinite normal forwards;*/
}

@keyframes imagefade {
  
  /*  画像が3枚の場合*/
  0% {
    background-image: url(/common/images/index/main_01.jpg);
  }

  6.6% {
    background-image: url(/common/images/index/main_01.jpg);
  }

  26.4% {
    background-image: url(/common/images/index/main_02.jpg);
  }

  39.6% {
    background-image: url(/common/images/index/main_02.jpg);
  }

  59.4% {
    background-image: url(/common/images/index/main_03.jpg);
  }

  72.6% {
    background-image: url(/common/images/index/main_03.jpg);
  }

  92.4% {
    background-image: url(/common/images/index/main_01.jpg);
  }
  
  100% {
    background-image: url(/common/images/index/main_01.jpg);
  }
  /*  画像が3枚の場合　ここまで*/
  
  
/*  画像が4枚の場合*/
/*
  0% {
    background-image: url(/common/images/index/main_01.jpg);
  }

  5% {
    background-image: url(/common/images/index/main_01.jpg);
  }

  20% {
    background-image: url(/common/images/index/main_02.jpg);
  }

  30% {
    background-image: url(/common/images/index/main_02.jpg);
  }

  45% {
    background-image: url(/common/images/index/main_03.jpg);
  }

  55% {
    background-image: url(/common/images/index/main_03.jpg);
  }

  70% {
    background-image: url(/common/images/index/main_04.jpg);
  }

  80% {
    background-image: url(/common/images/index/main_04.jpg);
  }

  95% {
    background-image: url(/common/images/index/main_01.jpg);
  }
  
  100% {
    background-image: url(/common/images/index/main_01.jpg);
  }
*/
  /*  画像が4枚の場合　ここまで*/
}

@media screen and (max-width: 1040px) {

  #index .index_image,
  #index main section .jobs_image {
    overflow: hidden;
  }

  #index .load_svg {
    display: none;
  }

  #index .index_image .anime_string {
    width: 100%;
    top: calc(50% - 81px);
    left: 0;
    border-top-left-radius: 10px;
  }

  #index .index_image .anime_string::before,
  #index .index_image .anime_string::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    box-sizing: border-box;
  }

  #index .index_image .anime_string::before {
    border-top-right-radius: 10px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    top: 0;
    left: 0;
  }

  .on .anime_string::before {
    animation: boder 1s ease 0.2s 1 normal forwards;
  }

  #index .index_image .anime_string::after {
    border-bottom-left-radius: 10px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    bottom: 0;
    right: 0;
  }

  .on .anime_string::after {
    animation: boder 1s ease 1.2s 1 normal forwards;
  }

  @keyframes boder {
    0% {
      width: 0;
      height: 0;
    }

    50% {
      width: 96%;
      height: 0;
    }

    100% {
      width: 96%;
      height: 100%;
    }
  }

  #index main section .contents_image>div>* a .title,
  #index main section .contents_image>div>* a p {
    padding-right: 20px;
  }

  #index main section .contents_image>div>* a>div {
    top: 80px;
    left: 80px;
  }

  #index main section .contents_image>div .concept,
  #index main section .contents_image>div .service,
  #index main section .contents_image>div .works,
  #index main section .contents_image>div .about {
    height: 260px;
  }

  #index main section .jobs_image .top_line,
  #index main section .jobs_image .bottom_line {
    width: 96%;
  }
}

@media screen and (max-width: 767px) {
  #index header {
    height: 48px;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s 0s, visibility 0s 0.3s;
  }

  #index header.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0s;
  }


  #index .index_image .anime_string p {
    width: 100%;
    font-size: 20px;
    padding: 0 15px;
  }

  #index .index_image {
    /* height: calc(100% - 48px); */
    height: 100%;
  }

  #index main section .contents_image>div .concept,
  #index main section .contents_image>div .service,
  #index main section .contents_image>div .works,
  #index main section .contents_image>div .about {
    display: block;
    width: 100%;
    height: 240px;
    border: none;
  }

  #index main section .contents_image>div .concept a,
  #index main section .contents_image>div .service a,
  #index main section .contents_image>div .works a,
  #index main section .contents_image>div .about a {
    padding: 40px 15px 20px;
  }

  #index main section .contents_image>div>* a>div {
    position: static;
  }

  #index main section .contents_image>div>* a .title,
  #index main section .contents_image>div>* a p {
    padding-right: 0;
  }

  #index main section .jobs_image {
    height: 280px;
  }

  #index main section .jobs_image .job_string {
    width: 100%;
    height: auto;
    padding: 0 15px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #index main section .jobs_image .job_string p {
    font-size: 20px;
    line-height: 40px;
  }

  #index main section .jobs_image .top_line,
  #index main section .jobs_image .bottom_line {
    top: 70px;
    height: 140px;
  }
}

@media screen and (max-width: 360px) {
  #index .index_image .anime_string p {
    font-size: 18px;
  }
}


/* 業務案内：concept */
.concept_list .step:nth-of-type(odd) {
  flex-direction: row-reverse;
}

@media screen and (max-width: 1040px) {

  #concept .concept .concept_list .step {
    align-items: center;
  }

  #concept .concept .concept_list .step>div.str {
    width: 55%;
    padding: 3% 4%;
  }

  .concept_list_imge {
    width: 45%;
  }

  .concept_list_imge img {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #concept .concept .concept_list .step {
    display: block;
    padding: 15px 15px 40px;
  }

  #concept .concept .concept_list .step>div.str {
    width: 100%;
    padding: 0;
    margin-top: 20px;
  }

  .concept_list_imge {
    width: 100%;
  }

  #concept section.number {
    padding: 40px 0;
  }

  #concept section.number article {
    display: block;
  }

  #concept .number .l_str {
    margin-right: 0;
  }

  #concept .number .r_str {
    margin-left: 0;
  }

  #concept .number .l_str,
  #concept .number .r_str,
  #concept .number .l_img,
  #concept .number .r_img {
    width: 100%;
  }

  .concept_title {
    margin-top: 20px;
  }

  .concept_btn {
    margin: 30px auto 0;
  }
}

/* 施工までの流れ：service */
@media screen and (max-width: 1040px) {
  .flow {
    padding: 0 20px;
  }

  #service section .flow .step,
  #service section.contact {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .flow {
    padding: 0 15px;
  }

  #service section .flow .step>div {
    padding: 15px;
  }

  #service section .flow .step>div:first-child {
    width: 50px;
    font-size: 26px;
    padding: 0;
  }

  #service section .flow .step>div:first-child span {
    font-size: 14px;
  }

  #service section .flow .step .flow_title .en {
    display: block;
    position: static;
    font-size: 12px;
  }
}

/* 施工実績：works */

@media screen and (max-width: 1040px) {

  #works main section.works_list {
    padding: 0 20px;
  }

  #works main section.works_list>div {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #works main section.works_list {
    background-size: 96% auto;
    background-position: center;
  }

  #works main section.works_list>div {
    display: block;
    border-top: 0;
    margin-bottom: 40px;
  }

  #works main section.works_list>div .title {
    width: 100%;
    border-bottom: 1px solid rgba(13, 86, 97, 1);
    padding: 0 0 5px;
    font-size: 18px;
  }

  #works main section.works_list>div .list {
    width: 100%;
  }

  #works main section.works_list>div .list dl dt {
    min-width: 64px;
  }
}


/* 企業情報：company */
#company section .map {
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

#company section .map iframe {
  width: 100%;
}

#company section .map>div {
  width: 47%;
  margin-bottom: 20px;
}

@media screen and (max-width: 1040px) {
  #company .company_list {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #company .company_list dl {
    padding: 15px 0;
  }

  #company .company_list dl dt {
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
  }

  #company .company_list dl dd {
    width: 100%;
  }

  #company section .map {
    display: block;
  }

  #company section .map>div {
    width: 100%;
  }

  #company section .map>div:first-child {
    margin-right: 0;
    margin-bottom: 15px;
  }

  #company section .map>div p {
    font-weight: normal;
    padding-bottom: 5px;
  }

  #company section .map iframe {
    height: 240px;
  }
}

/* 採用情報：jobs */
@media screen and (max-width: 1040px) {
  #jobs .jobs_list {
    width: 100%;
  }

  #jobs .jobs article>div:first-child {
    width: 46%;
    min-width: 300px;
  }

  #jobs .jobs article>div:first-child img {
    width: 100%;
  }

  #jobs .jobs article>div:last-child {
    padding: 2% 20px;
  }
}


@media screen and (max-width: 767px) {
  #jobs .content_image .jobs {
    background-position: left 20% center;
  }

  #jobs .jobs article {
    display: block;
  }

  #jobs .jobs article>div:first-child {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 auto 20px;
  }

  #jobs .jobs article>div:last-child {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
  }

  #jobs .jobs article>div:last-child .cont_title {
    font-size: 16px;
    text-align: center;
  }

  #jobs .jobs article>div:last-child .pc {
    display: none;
  }

  #jobs .jobs_list dl dt {
    width: 80px;
    vertical-align: top;
  }

  #jobs .jobs_list dl dd {
    width: calc(100% - 80px);
  }
}


/* お問い合わせ：contact */
#contact section form .contact_btn {
  margin-top: 20px;
}

@media screen and (max-width: 1040px) {
  #contact .step_bar ul {
    left: auto;
    right: 20px;
  }
}

@media screen and (max-width: 767px) {
  #contact {
    display: block;
    padding-top: 48px;
  }

  #contact .step_bar ul {
    justify-content: center;
    position: static;
    width: 100%;
    padding: 0 15px;
  }

  #contact .step_bar ul li {
    padding: 10px 0;
    font-size: 13px;
  }

  #contact section form p {
    margin-bottom: 40px;
  }

  #contact section form dl {
    display: block;
    margin: 20px 0;
  }

  #contact section form dl dt {
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
  }

  #contact section form dl dd {
    width: 100%;
  }

  #contact section form dl dd input[type^="te"],
  #contact section form dl dd input[type^="email"],
  #contact section form dl dd textarea {
    width: 100%;
    font-size: 16px;
  }

  #contact section form dl dd textarea {
    height: 160px;
  }
}