* {
    box-sizing: border-box;
 }

 @font-face {
    font-family: "makinas4";
    src: url("../font/makinas4/Makinas-4-Square.otf") format("opentype");
 }


body {
    background-color: black;
    color: aliceblue;
   padding: 0;
   font-family: "makinas4", sans-serif;
   width: 100%;
   margin: 0;
}

:root {
    --scrollbar: 0;
  }
  
  div {
    width: calc(100vw - var(--scrollbar));
  }

  ol,
ul {
    list-style: none;
    list-style-type: none;
}

  a {
    text-decoration: none;
    color: aliceblue;
    font-size: 15px;
    letter-spacing: 0.1em;
    box-sizing: border-box;
  }

  header {
    height: 100px;
    width: auto;
    padding:40px 0 0 9.5%;
    position: sticky;
    top: 0;
    position: sticky;
    background-color: black;
    z-index: 9999;
  }
/* ここから */
  .hamburger {
    width: inherit;
    /* max-width: 900px; */
    display: flex;
}

#headlogo {
 width: 70px;
 height: 50px;
 transition-duration: 300ms;
}
.logo {
  width: fit-content;
}

.hamburger .btn-gNav {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    z-index: 800;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}

.hamburger .btn-gNav span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: aliceblue;
    /* border-radius: 10px; */
    -webkit-transition: all 400ms;
    transition: all 400ms;
}

.hamburger .btn-gNav span:nth-child(1) {
    top: 0;
}

.hamburger .btn-gNav span:nth-child(2) {
    top: 10px;
}

.hamburger .btn-gNav span:nth-child(3) {
    top: 20px;
}



.hamburger .btn-gNav.open span:nth-child(1) {
    background: aliceblue;
    top: 6px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.hamburger .btn-gNav.open span:nth-child(2),
.hamburger .btn-gNav.open span:nth-child(3) {
    top: 6px;
    background: aliceblue;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}


.btn-gNav {
    display: none;
}

nav.gNav {
  padding-left: max(30px,10vw);
  min-width: 80%;
}

.gNav .gNav-menu {
    display: flex;
    justify-content: space-between;
    padding: 0;
    width: inherit;
}

a:hover {
  border-bottom: solid aliceblue;
}

@media screen and (max-width: 769px) {
    .btn-gNav {
        display: block;
    }

    .hamburger .btn-gNav.open #linetop {
      background: aliceblue;
      top: 6px;
      transform: rotate(45deg);
    }
    
    .hamburger .btn-gNav.open #linemiddle {
      background: aliceblue;
      top: 6px;
      opacity: 0;
    }
    
    .hamburger .btn-gNav.open #linebottom {
      background: aliceblue;
      top: 6px;
      transform: rotate(-45deg); 
    }
    

    .gNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 80vw;
        background-color: rgba(0, 0, 0, 0.8);
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        padding-top: 35px;
        padding-left: 0 !important;
        transition: .3s;
    }

    .gNav.open {
        right: 0;
        width: 40vw;
        min-width: 40vw;
        /* background-color: black; */
        border: solid aliceblue;
        z-index: 799;
        background-color: black;
    }

    .gNav.open .gNav-menu li a {
      font-size: 20px;
    }

    .gNav .gNav-menu {
        padding: 0;
        width: inherit;
        height: auto;
        display: block;
        flex-direction: column;
        padding-left: 10%;
    }

    .gNav .gNav-menu li {
        width: auto;
        margin-top: 20%;
    }

    .hamburger .btn-gNav.open #linetop {
      background: aliceblue;
      top: 6px;
      transform: rotate(45deg);
    }
    
    .hamburger .btn-gNav.open #linemiddle {
      background: aliceblue;
      top: 6px;
      opacity: 0;
    }
    
    .hamburger .btn-gNav.open #linebottom {
      background: aliceblue;
      top: 6px;
      transform: rotate(-45deg); 
    }


}

/* ここまで */


main {
    /* margin-top: 82px; */
    height: auto;
    margin-bottom: 3%;
}

.keyvisual {
    background-image: url("../img/bws-img3.jpg");
    background-size: cover;
    height: 90vh;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
	width: 100%;
    /* margin-top: 82px; */
}

.keyvisual::before {
    background-color: black;
    height: 90vh;
    width: 100%;
    opacity: 0.4;
    position: absolute;
    top: 100px;
    right: 0;
    bottom: 0;
    left: 0;
    content: ' ';
}

.TOPfront {
    margin-left: 5%;
    width: auto;
    height: auto;
    opacity: 0;
}

.TOPfront>h1,.TOPfront>h2,.TOPfront>h3 {
    filter: brightness(2);
    width: auto;
    height: auto;
}

.TOPfront>h1 {
    font-size: 80px;
    margin-top: 0;
}

.TOPfront>h2 {
    font-size: 30px;
    
}

.WN {
  display: flex;
  filter: brightness(2);
  height: 60px;
  margin-left: 5%;
  margin-bottom: 2%;
  width: auto;
}

@keyframes slideinLeft {
  0% {
    transform: translateX(-500px);
  }
  100% {
    transform: translateX(0);
  }
}

#W {
  opacity: 0;
}

#N {
  animation-delay: 2s !important;
  animation: slideinLeft 2s ;
  animation-fill-mode: forwards;
  margin-left: 1%;
  opacity: 0;
}



#delay1,#delay2 {
  margin: 0;
  margin-top: auto;
  font-size: 60px;
  font-weight: 100;
}

.TOPothers {
    margin-left: 5%;
    margin-right: 5%;
    width: auto;
}

.wbr {
    word-break: keep-all;
}

.TOPservice {
    height: auto;
    margin-top: 7%;
    width: auto;
}
.TOPservice>picture>img {
    height:auto;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 2.5%;
    width: 75%;
    position: relative;
    display: block;
}

.moreservice {
    width: 100%;
    text-align: right;
    display: inline-block;
    margin-top: 30px;
    padding-right: 11vw;
}

.TOPworks {
    width: auto;
    margin-top: 11%;
}

#worklist {
    margin-top: 2.3%;
}

.worksgarelly {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
    margin-top: 0.2%;
    justify-content: space-evenly;
    position: relative;
}

.worksgarelly>img {
    width: 40%;
    margin-bottom: 3%;
}

#worksAll {
  position: relative;
}

#morebox {
  text-align: right;
  padding-right: 3%;
  width: auto;
}
.moreworks {
  width: fit-content;
    text-align: right;
    display: inline-block;
    margin-top: 1%;
}

button {
    font-family: "makinas4", sans-serif;
    height: 30px;
    padding: 0 2%;
}

.contact {
    width: auto;
    margin-top: 7%;
}

footer {
    margin: 2% 5%;
    width: auto;
    border-top: solid aliceblue 1px;
}

#footerflex2>nav {
    width: inherit;
}

#footerflex1 {
    display: flex;
    width: auto;
    margin-top: 3.5%;
    flex-wrap: wrap;
    align-items: flex-start;
}

#footerflex2 {
    display: flex;
    width: 75%;
    height: auto;
}

#footerflex2>nav>ul {
    /* flex-direction: column; */
    height: auto;
    width: inherit;
    display: inline-block;
    padding-left: 6%;
    margin-top: 0;
}

@media screen and (min-width:769px) {

  #resfooter {
    display: none;
  }

}

#asw,#cc {
    display: block;
    width: inherit;
}

#footerlogo {
    width: auto;
    padding-bottom: 2%;
}

#footerlogo>img {
    height: 60px;
}

#asw>li,#cc>li,#lastmenu {
    margin-bottom: 7%;
    display: inline-block;
    min-width: 125px;
    list-style: none;
    text-decoration: none;
}

.footerflex3 {
    margin-top: 0;
    width: 25%;
    display: inline-block;
}

.footerflex3>p {
    margin-top: 0;
}

footer>h6 {
    text-align: center;
    margin-top: 150px;
}





#swiper1,#swiper2,#swiper3,#swiper4,#swiper5 {
  width: inherit;
  overflow: visible;
}

#swipernav {
}


.swiper-slide {
  height: auto;
}


@media screen and (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination {
    display: block ;
  }

  #swiper0,#swiper1,#swiper2,#swiper3,#swiper4,#swiper5 {
      width: inherit;
      overflow: hidden;
  }
  
}

@media screen and (min-width:769px) {
  .swiper-button-prev,
  .swiper-button-next,
  .swiper-pagination {
      display: none;
  }

  .swiper-wrapper {
      display: flex;
      flex-wrap: wrap;
      /* column-gap: 3.5%; */
  }

  .swiper-slide {
      width: 45% !important;
      margin:0.9% 1.9%;
      height: auto;
  }
}

/* 画像のサイズ調整 */
.swiper-slide img {
  height: auto;
  width: 100%;
}  

.swiper-pagination {
  width: 40%;
  height: 10%;
  left:0;
  right: 0;
  margin: auto;
  color: aliceblue;
  z-index: 9999;
  bottom:0;
}

.content {
  width: auto;
  height: auto;
}

button.js-open-modal {
  padding: 0;
  margin: 0;
  width: fit-content;
  height: fit-content;
  border: none;
  background-color: black;
}

.samnail:hover {
  opacity: 0.7;
  cursor: pointer;
}

.samnail {
  display: inline-block;
  width: 100%;
  cursor: pointer;
  background-color: whitesmoke;
}


/* モーダル */
.modal {
  position: fixed;
  top: 5%;
  left: 0;
  right: 0;
  margin: auto;
  width: 70%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  z-index: 10000;
}

#swiper11,#swiper12,#swiper13,#swiper14,#swiper21,#swiper31,#swiper32,#swiper33,#swiper34,#swiper35,#swiper36,#swiper37,#swiper41,#swiper42,#swiper43,#swiper44,#swiper51,#swiper52,#swiper53,#swiper54,#swiper55 {
  width: inherit;
  height: auto;
}

/* モーダルがactiveの時 */
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
  position: absolute;
  width: 100%;
  height: inherit;
  cursor: pointer;
}

/* モーダルのコンテンツ */
.modal__content {
  position: relative;
  background-color:lightgray;
  width: auto;
  height: inherit;
  border-radius: 10px;
}

#modalswiper1 {
  flex-wrap: nowrap;
  width: 100%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

#modalswiper1>.swiper-slide {
  width: 100% !important;
  flex-basis: auto;
  margin: 0;
}

.criantinfo,.worksdetail {
  color: black;
  width: auto;
  margin-left: 5%;
  box-sizing: border-box;
}

.worksdetail {
  display: inline-block;
  width: auto;
  height: auto;
  margin-bottom: 20px;
  bottom: 0;
  border-radius: 10px;
}

.swiper-slide>.modalimg {
  display: inline-block;
  width: 75%;
}

#modalnav {
  display: block;
  position: relative;
  margin-top: 3%;
}

/* モーダルを閉じるボタン */
.modal__close-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 40px;
  width: auto;
  height: auto;
  cursor: pointer;
  border: none;
  z-index: 10;
  outline: none;
  background: transparent; 
  padding: 0;
  font-weight: lighter;
}

/* Swiperの矢印部分 */
@media (max-width: 768px) {
  .swiper-button-next,.swiper-button-prev {
    display: none;
  }
}

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

  @keyframes slideinLeft {
    0% {
      transform: translateX(-250px);
    }
    100% {
      transform: translateX(0);
    }
  }  

  .gNav.open {
    height: 50vh;
    width: clamp(150px,50vw,250px);
    /* min-width: 60vw;
    max-width: 80vw; */
  }

  .atama {
    padding: 5px 0 0 20px;
    height: auto;
  }

  .btn-gNav {
    margin: 0;
  }

  .keycontainer {
    width: 100%;
    margin-bottom: clamp(40%,45vw,70%);
  }

  .keyvisual {
    height: 95vh;
  }

  .keyvisual::before {
    top:57px;
    height: 95vh;
  }

.WN {
  align-items: flex-end;
  height: auto;
}

  #W,#N {
    display: block;
    width: 40px;
    height: 30px;

  }

  #delay1,#delay2 {
    font-size: clamp(15px,6vw,35px);
    margin-top: 0;
  }

  .TOPfront {
    width: fit-content;
  }

  .TOPfront>h1,.TOPfront>h2,.TOPfront>h3 {
    display: block;
    width: fit-content;
  }

  .TOPfront>h1 {
    font-size: clamp(40px,8vw,80px);
  }

  .TOPfront>h2 {
    font-size: clamp(20px,4vw,40px);
  }

  .TOPservice>h2,.TOPworks>h2 {
    margin-bottom: 10%;
  }

  .TOPservice {
    margin-top: 35%;
  }

  .wbr {
    font-size: 15px;
    line-height: 1.5;
    word-break: keep-all;
  }

  .TOPservice>picture>img {
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }

  .moreservice {
    padding: 0;
  }

  .TOPworks,.contact {
    margin-top: 30%;
  }

  .TOPworks>.wbr,.contact>.wbr {
    margin: 0;
  }

  #workslist {
    margin-top: 10%;
    height: 100%;
    margin-bottom: 5%;
  }

  .worksgarelly.all6 {
    margin-top: 0;
  }

  .swiper-pagination-bullet {
    opacity: .5;
    color: lightgray;
  }

  .swiper-pagination-bullet-active {
    opacity: 2;
  }

  .modal {
    width: 95%;
    height: 90vh;
    overflow-y: auto;
  overscroll-behavior-y: none; 
  border-radius: 10px;
  }

  .modal__content {
    max-width: 95vw;
    overflow-y: auto;
    height: 95vh;
  }

  .modal__close-btn{
    top: 30px;
    right: 10px
  }

  .modalimg {
    border-radius: 20px;
  }

  .criantinfo {
    margin-top: 15%;
    font-size: 12px;
    margin-bottom: 5%;
  }

  .criantinfo>h1{
    margin: 0;
    margin-bottom: 1%;
  }

  .swiper-slide>.modalimg {
    width: 95%;
  }
  

  #morebox {
    padding-right: 0;
  }

  .contact>button {
    margin-top: 8%;
    max-width: 200px;
    width: 47%;
    opacity: 0.8;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding: 2% 0;
    height: auto;
  }

  footer {
    margin-top: 30%;
  }

  #footerflex1 {
    margin-top: 9%;
  }

  #footerflex2 {
    display: block;
  }

  #footerflex2>nav>ul {
    padding-left: 0;
    display: none;
  }

  #footerlogo {
    width: fit-content;
    margin-bottom: 6%;
  }

  #resfooter{
    width: inherit;
    display: flex;
    flex-direction: column;
    height: auto;
  }

  #resfooter>a{
    margin-bottom: 8%;
  }

  #footerlogo>img {
    height: 35px;
  }

  .footerflex3 {
    display: none;
  }

  #asw>li,#cc>li,#lastmenu {
    margin-bottom: 15%;
  }

  footer>h6 {
    margin-top: 20%;
    margin-bottom: 40px;
  }
}