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

nav {
    width: 90%;
    display: inline-block;
}

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

  a {
    text-decoration: none;
    color: aliceblue;
    font-size: 17px;
    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;
    align-items: center;
}

#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: 950px) {
    .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); 
    }


}

/* ここまで */


ul {
    list-style: none;
   /* margin: 0; */
   /* display: flex; */
   padding: 0;
   padding-left: 18.5%;
   list-style-type: none;
}

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

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

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

.mainsecond {
    margin-top: 4%;
    height: auto;
    margin-bottom: 5%;
    margin-left: 5%;
    margin-right: 5%;
    width: auto; 
}

.aboutustop,.service {
    width: auto;
}

.aboutustop>h4{
    margin: 2.5% 0;
    font-size: 20px;
}

h1{
    margin:0;
    font-size: 45px;
    font-weight: lighter;
}

.secondheading {
    font-size: 25px;
}

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


#firstp {
    margin-top: 2.5%;
}

#aboutusbar {
    width: auto;
    margin-top:6%;
    padding-left: 0;
    flex-wrap: wrap;
}

#aboutusbar>li {
    width: auto;
    margin-left: 0;
    padding-right: 0;
    margin-right: 15%;
    min-width: 85px;
    padding-bottom: 2%;
}

#aboutusbar>#ex {
    min-width: 200px;
    margin-right: 0;
}

.service>.secondheading {
    margin-bottom: 0;
    margin-top: 0%;
}

#serviceimg {
    height:auto;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 2%;
    width: 70%;
    position: relative;
    display: block;
    margin-top: 3%;
}

.solution {
    width: auto;
}

.solution>.secondheading {
    margin-top: 8%
}

#solutionimg {
    height:auto;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 2%;
    width: 70%;
    position: relative;
    display: block;
    margin-top: 3%;
}

.member {
    height:auto;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 2.6%;
    row-gap: 20px;
    column-gap: 20px;
    margin-left: 1.3%;
}

h4 {
    margin-top: 6%;
}

.naoyasan {
    display: flex;
    border: solid aliceblue 1px;
    width: auto;
    padding: 20px;
    height: auto;
    align-items: center;
    border-radius: 5px;
}

.memberdetail {
    margin-left: 30px;
    width: auto;
    color: aliceblue;
}

.membername {
    font-size:20px;
}

.memberimg {
    height: auto;
    width: 40%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.membermodalbtn {
    width: 32%;
    height: auto;
    cursor: pointer;
    display: block;
    padding: 0;
    border: none;  /* 枠線を消す */
    outline: none; /* クリックしたときに表示される枠線を消す */
    background: transparent; /* 背景の灰色を消す */
}

.membarmodalbtn:hover {
    opacity: 0.7;
}

/* モーダル */
.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin: auto;
    width: 70%;
    height: 60vh;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    background-color:lightgray;
    padding: 30px;
    border-radius: 10px;
  }

  #membermodal1,#membermodal2,#membermodal3,#membermodal4,#membermodal5 {
    height: auto;
  }

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

  /* モーダルのコンテンツ */
.membercontents {
    position: relative;
    width: 100%;
    height: inherit;
    border-radius: 10px;
    display: flex;
    align-items: center;
  }

  .membermodalimg {
    width:30%;
    height: 30%;
    aspect-ratio: 1/1 ;
    border-radius: 10px;
  }

  .membermodaldetail {
    color: black;
    width: auto;
    margin-top: 5%;
    margin-left: 3%;
    order: 1;
  }

  #detailtop{
  }

.yakusyoku,.hurigana {
    margin: 0;
}  

.onamae {
    margin-top: 4%;
    margin-bottom: 3%;
}

  .keireki {
    width: inherit;
    margin-top: 5%;
  }
  
  /* モーダルを閉じるボタン */
.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;
  }  

  .modal__close-btn:hover,.membermodalbtn:hover {
    opacity: 0.7;
  }

.companyinfo {
    width: inherit;
    margin:0 5%;
}

.bossname,.businesskind {
    width: auto;
}

.jusyo {
    width: inherit;
}

p {
    width: fit-content;
}

.companyname,.startdate,.boss,.business {
    width: auto;
    display: flex;
    column-gap: 2%;
    border-bottom: solid aliceblue 1px;
    padding: 2.2% 0;
}

.business {
    border: none;
}

.companyflex {
    width: auto;
    display: flex;
    column-gap: 2%;
    padding: 2.2% 0;
}

.companyaddress {
    border-bottom: solid aliceblue 1px;
    padding-bottom: 2.2%;
}

.companyinfo>h4 {
    margin-bottom: 0.5%;
}

.smallheader {
    min-width: 8%;
    margin-left: 1.7%;
}

div {
    width: auto;
}


#jsmap {
    max-width: 60%;
    width: 50vw;
    min-width: 40vw;
    height:30vw;
    margin-left: 12%;
}

/* .gmnoprint {
    width: inherit;
} */

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

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

#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;
}
@media screen and (min-width:769px) {

    #resfooter {
      display: none;
    }
  
  }  

@media screen and (max-width:769px) {
    p {
        word-break: keep-all;
    }

    .secondheading {
        font-size: 25px;
    }

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

    h1 {
        font-size: 25px;

    }
    
    .mainsecond {
        margin-left: 5%;
        margin-right: 5%;
    }

    .aboutustop {
        padding-top: 10%;
    }

    .aboutustop>p {
        font-size: 17px;
        margin: 2% 0;
    }

    .aboutustop>h4 {
        font-size:16px;
        margin-top:10%;
        word-break: keep-all;
        margin-bottom: 7%;
        line-height: 1.3;
    }

    .aboutustop>.res1 {
        font-size: 15.5px;
        line-height: 1.3;
        margin: 0;
    }

    #firstp {
        margin-top: 15%;
    }

    #aboutusbar {
        margin-top: 25%;
        margin-bottom: 10%;
    }

    #aboutusbar>li {
        margin-right: 4%;
    }

    #aboutusbar>#barmember {
        margin-right: 0;
    }

    .test {
        font-size: 14px;
    }

    .service {
        margin-bottom: 35%;
    }

    .service>p {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 10%;
    }

    #serviceimg {
        margin-top: 7%;
        width: 100%;
    }

    .solution>p {
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
    }

    #solutionimg {
        width: 100%;
        margin-top: 7%;
    }

    .member {
        column-gap: 10px;
    }

    #scrollmember {
        margin-top: 30%;
    }

    .modal{
        width: 95%;
        padding: 10px;
        max-height: 90vh;
        z-index: 10000;
        overflow-y: auto;
        overscroll-behavior-y: none;       
    }

    .membercontents{
        display: flex;
        flex-direction: column;
    }

    .membermodalbtn {
        width: 48.5%;
    }

    .membermodalimg {
        width: inherit;
        max-height: 50vh;
        order: 1;
    }

    #detailtop{
        order: 0;
        width: 100%;
    }

    #detailbottom {
        width: 100%;
        order: 2;
        margin: 5% 0;
    }

    .keireki {
        margin: 0;
    }

    .keireki>p{
        word-break: break-all;
        margin: 0;
        line-height: 1.3;
    }

    .onamae{
        margin-bottom: 1%;
    }

    .hurigana{
        font-size: 12px;
        margin-bottom: 3%;
    }

    .naoyasan {
        display: block;
        padding: 10px;
    }

    .memberimg {
        width: 95%;
        border-radius: 10px;
    }

    .memberdetail {
        margin-left: 2%;
    }

    .membername {
        margin: 0;
        text-align: left;
        font-size: 17px;
        padding-top: 5%;
    }

    .memberdetail>p {
        margin: 5% 0;
    }

    .companyinfo {
        margin-top: 30%;
    }

    .companyname, .startdate, .companyflex, .boss, .business{
        column-gap: 10%;
    }

    .companyaddress {
        padding-bottom: 7%;
    }

    #jsmap {
        max-width: 95%;
        width: 90vw;
        height: 25vh;
        margin-left: 3%;
    }

    .businesskind {
        padding-left: 3%;
    }

    .businesskind>p>span{
        display: inline-block;
        width: 20px;
        height: 10px;
    }

    .bkline {
        line-height: 1.3;
    }

    .contact {
        margin-top: 30%;
    }

    .contact>p {
        margin: 0;
    }

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

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