* {
    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;
}


@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); 
    }


}

/* ここまで */

#worksnav {
    width: 90%;
    display: inline-block;
}

#worksbar {
    list-style: none;
   margin: 0;
   display: flex;
   padding: 0;
   padding-left: clamp(20px,10vw,18.5%);
}

#worksbar>li {
    font-size: 15px;
    display: inline-block;
}

#worksbar>a {
    display: inline-block;
    text-decoration: none;
    color: aliceblue;
}

a:hover {
    text-decoration: underline;
    color: aliceblue;
} 



main {
    margin-top:3.5%;
    height: auto;
    margin-bottom: 5%;
    margin-left: 8%;
    margin-right: 8%;
    width: auto; 
}

.workstop {
    width: auto;
}

.workstop>h1{
    margin-bottom: 3%;
    font-size: 45px;
    font-weight: lighter;
}

#worksnav {
    width: 100%;
}

#worksbar {
    width: auto;
    margin-top: 140px;
}

ul#worksbar {
    padding-left: 0;
    flex-wrap: wrap;
    
}

#worksbar>li {
    width: auto;
    margin-left: 0;
    margin-right: 5%;
    padding-right: 0;
    min-width: 130px;
    padding-bottom: 2%;
}

#worksbar>.ex1 {
    min-width: 180px;
}

#worksbar>.ex2 {
    min-width: 250px;
    margin-right: 0;
}


.dli-chevron-down {
    display: inline-block;
    vertical-align: middle;
    color:aliceblue;
    line-height: 1;
    width: 10px;
    height: 10px;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-25%) rotate(135deg);
  }

  .test {
    display: inline-block;
    margin: 0;
  }

.worksjunle{
    margin-top: 6.2%;
    margin-bottom: 2.5%;
    font-size: 20px;
}

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

#swipernav {
    position: relative;
    margin-top: 3%;
}

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

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

    .swiper-wrapper {
        text-align: center;
    }
    
  }

@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%;
    }
}

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

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

.jigyougarelly {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    width: inherit;
    margin-top: 1%;
    /* justify-content: space-between; */
}

.jigyougarelly>img {
    width: 45%;
    margin-bottom: 0;
    margin:0.9% 1.9%;
}

h4 {
    margin-top: 7.5%;
    margin-bottom: 2.5%;
    font-size: 20px;
}

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


.contact {
    width: auto;
    margin-top: 6%;
    margin-left: 5%;
}

footer {
    margin: 6.5% 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: block;
    padding-left: 6%;
    margin: 0;
}

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

#footerex {
    list-style: none;
}

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

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

  #resfooter {
    display: none;
  }

}

#footerlogo>img {
    height: 60px;
}

#asw>li,#cc>li {
    margin-bottom: 3%;
    display: inline-block;
    min-width: 125px;
}

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

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

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

.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: auto;
}


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

  #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;
    border-radius: 10px;
  }
  
  /* モーダル背景のオーバーレイ部分 */
  .modal__overlay {
    position: absolute;
    width: 100%;
    height: inherit;
    cursor: pointer;
  }
  
  /* モーダルのコンテンツ */
  .modal__content {
    position: relative;
    background-color:lightgray;
    width: auto;
    height: 95vh;
    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;
    margin-top: 5%;
}

.criantinfo {
  margin-top: clamp(60px,10vh,75px);
}

.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: 10px;
    top: 30px;
    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) {
    #modalnav {
      display: none;
    }

  }

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

    p {
        word-break: keep-all;
    }

    .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;
    }

    main {
        margin-left:5%;
        margin-right: 5%;
    }

    .workstop {
        padding-top: 10%;
    }

    .workstop>h1{
        font-size: 25px;
        margin: 0 0 15% 0;
    }

    .workstop>p{
        margin: 0;
        line-height: 1.3;
    }

    #worksbar{
        margin-top: 15%;
    }

    #worksbar>li>a {
        font-size: 13.5px;
    }

    .test {
        margin-bottom: 5%;
    }

    .modal {
      width: 95%;
      height: 90vh;
      overflow-y: auto;
    overscroll-behavior-y: none; 
    border-radius: 10px;
    z-index: 10000;
    }
  
    .modal__content {
      max-width: 95vw;
      overflow-y: auto;
      height: 95vh;
      border-radius: 10px;
    }
  
    .modal__close-btn{
      top: 30px;
      right: 10px
    }
  
    .modalimg {
      border-radius: 20px;
    }
  
    .criantinfo {
      margin-top: clamp(75px,6vh,90px);
      font-size: 12px;
      margin-bottom: 5%;
    }
  
    .criantinfo>h1{
      margin: 0;
      margin-bottom: 1%;
    }
  
    .swiper-slide>.modalimg {
      width: 95%;
    }

    .worksdetail>p{
      word-break: break-all;
    }
  
    .samnail {
        border-radius: 10px;
    }
    
    #swipernav {
        margin-top: 6%;
    }

    .swiper-pagination-bullet {
        background-color: aliceblue;
        width: 9px;
        height: 9px;
    }

    .worksjunle {
        margin: 30% 0 7% 0;
    }

    #jigyou {
        margin-top: 10%;
    }

    .contact>p {
        margin: 0;
        line-height: 1.3;
    }

    .contact {
        margin-top: 25%;
    }

    .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%;
      }

      #footerflex2>nav>ul>li>a,#asw>li>a,#cc>li>a {
        font-size: 15px;
      }
    
      #footerflex1 {
        margin-top: 9%;
      }
    
      #footerflex2 {
        display: block;
      }
    
      #footerflex2>nav>ul {
        padding-left: 0;
        margin-top: 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;
      }

}
