@charset "utf-8";

:root{
    --content-width: 1182px;
    --fz10: calc(10/16*1rem);
    --fz12: calc(12/16*1rem);
    --fz14: calc(14/16*1rem);
    --fz16: calc(16/16*1rem);
    --fz17: calc(17/16*1rem);
    --fz20: calc(20/16*1rem);
    --main-color: #bdcecd;
    --white-color: #ffffff;
    --white-trp: rgb(255 255 255/0.5);
    --fill-color: #667776;
    --sub-colour: #f2f2f2;
    --text-color: #373e3e;
    --font-jp:"Noto Serif JP", sans-serif;
    --font-en: "Barlow Semi Condensed", sans-serif;
    --font-btn: "Rounded Mplus 1c";
    --infinity:calc(infinity*1px);
}

body{
    background-color: var(--main-color);
    font-family: var(--font-jp);
    font-weight: 300;
    font-size: var(--fz16);
    letter-spacing: 15%;
    color: var(--text-color);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.h2{
    font-family: var(--font-jp);
    font-weight: 300;
    color: var(--text-color);
    font-size: var(--fz20);
    letter-spacing: 20%;
}



/* header */
.header{
    width: 100%;
    max-width: var(--content-width);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px 30px 30px;
    align-items:flex-end;

    .header_sub{
        display: flex;
        gap: 55px;
        align-items:flex-end;
    }
    

    .logo{
        width: 364px;
        height: 50px;
        display: block;
        img{
            width: 100%;
        }
    }

    .header-nav{
        display: flex;
        


        .header-link{
            display:flex;
            gap: 55px;

           
            .nav{
                font-family: var(--font-en);
                font-size: var(--fz20);
                letter-spacing: 0.1em;
                 &:hover{
                opacity: 0.5;
                }
            }

            .lang{
                font-family: var(--font-en);
                display:flex;
                gap: 8px;
                font-size: var(--fz17);
                font-weight: 400;
                letter-spacing: 0.1em;
                opacity: 0.85;
                .lang_en{
                    opacity: 0.5;
                }
                .lang_jp:hover{
                    opacity: 0.5;
                }
            }
        }

        .sns-outer{
            display:flex;
            gap: 8px; 
           .sns:hover{
            opacity: 0.5;
            }
        }
    }



    .menu_btn{
        display: none;
        position: relative;
    }
}

/* header responsive */
@media(width < 989px){
    .header .header-nav .header-link,
    .header .sns-outer
        {
        display: none;
    }

    .header .menu_btn{
        display: block;
        width: 32px;
        height: 28px;

       .menu_btn_inner{
           width: 100%;
           height: 3px;
           background-color: var(--fill-color);
           display: block;
           border-radius: var(--infinity);
               
            &::before{
                content:"";
                display: block;
                width: 100%;
                height: 3px;
                background-color: var(--fill-color);
                border-radius: var(--infinity);
                position: absolute;
                top: 0;
            }

            &::after{
                content:"";
                display: block;
                width: 100%;
                height: 3px;
                background-color: var(--fill-color);
                border-radius: var(--infinity);
                position: absolute;
                bottom: 0;
            }                
        }
    } 

/* ハンバーガーメニュー（width < 989px） */

  .header.is-open {
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    right: 0 !important; 
    width: 100% !important; 
    height: 100vh !important; 
    background-color: var(--main-color) !important; 
    z-index: 9999 !important; 
    box-sizing: border-box !important;
    padding: 20px 30px !important; 
    margin: 0 !important;
    
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important; 
  }

  .header.is-open .header_sub {
    display: flex !important;
    align-items: center !important; 
    gap: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
  }
  .header.is-open .logo {
    width: 364px !important; 
    height: 50px !important;
    display: block !important;
    margin: 0 !important;
  }
  .header.is-open .logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .header.is-open .menu_btn {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    z-index: 10000 !important;
    top: 22px !important; 
    scale: 1; 
    transform-origin: initial;
  }

  .header.is-open .header-nav,
  .header.is-open .header-link {
    display: block !important;
    position: static !important; 
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .header.is-open .header-link .lang {
    display: flex !important;
    position: absolute !important; 
    z-index: 10005 !important; 
    left: 30px !important;
    gap: 8px !important;
    
    top: 95px !important;       /* 修正 */
    bottom: auto !important;     /* 修正 */
    align-items: baseline !important; 
  }

  .header.is-open .sns-outer {
    display: flex !important;
    position: absolute !important;
    right: 30px !important;
    gap: 8px !important;
    
    top: 95px !important;       /* 修正 */
    bottom: auto !important;     /* 修正 */
    align-items: flex-end !important; 
  }

  .header.is-open .header-link .nav {
    display: block !important;
    position: absolute !important; 
    left: 30px !important;
  }
  
  .header.is-open .header-link .nav:nth-child(1) { top: 180px !important; }
  .header.is-open .header-link .nav:nth-child(2) { top: 235px !important; } 
  .header.is-open .header-link .nav:nth-child(3) { top: 290px !important; } 

  .header.is-open::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 145px !important; 
    left: 30px !important;  
    right: 30px !important; 
    height: 1px !important;
    background-color: var(--fill-color) !important; 
    opacity: 0.5 !important; 
    z-index: 9998 !important;
  }

  /* ハンバーガーアニメーション*/
  
  .header.is-open .menu_btn_inner {
    background-color: transparent !important; 
  }

  .header.is-open .menu_btn_inner::before {
    top: 50% !important;
    width: 60% !important; 
    left: 20% !important;
    transform: translateY(-50%) rotate(45deg) !important;
    transition: top 0.2s, width 0.2s, transform 0.3s !important;
  }

  .header.is-open .menu_btn_inner::after {
    bottom: auto !important;
    top: 50% !important;
    width: 60% !important;
    left: 20% !important;
    transform: translateY(-50%) rotate(-45deg) !important;
    transition: top 0.2s, width 0.2s, transform 0.3s !important;
  }
}
    

    

@media(width < 699px){
    .header{
        padding: 16px;   
        width: 100%;

        
         .header_sub .logo{
              width: 240px;
              height: auto;
              img{
                 width: 100%;
                 height: 100%;
                }
            }
        

        .menu_btn{
            scale: 0.8; 
            transform-origin: bottom right; 
        }
        
    } 

  
  .header.is-open {
    padding: 16px !important;
  }
  
  .header.is-open .logo {
    width: 240px !important; 
    height: auto !important; 
  }
  .header.is-open .logo img {
    width: 100% !important;
    height: auto !important;
  }

  .header.is-open .menu_btn {
    scale: 0.8 !important;
    transform-origin: bottom right !important;
    top: 5px !important; 
  }

  .header.is-open .header-link .lang { 
    left: 16px !important; 
    top: 75px !important;       /* 追加 */
    bottom: auto !important;     /* 修正 */
  }
  
  .header.is-open .sns-outer { 
    right: 16px !important; 
    top: 75px !important;       /* 追加 */
    bottom: auto !important;     /* 修正 */
  }

  .header.is-open::after {
    top: 120px !important;   
    left: 16px !important;   
    right: 16px !important;  
  }

  .header.is-open .header-link .nav {
    left: 16px !important;
  }
  .header.is-open .header-link .nav:nth-child(1) { top: 155px !important; }
  .header.is-open .header-link .nav:nth-child(2) { top: 205px !important; }
  .header.is-open .header-link .nav:nth-child(3) { top: 255px !important; }
}



/* main */
.works_outer{
    width: 100%;
    max-width: var(--content-width);
    padding: 0 30px;
    box-sizing: border-box;

    .work-list{
     display: grid;
     grid-template-columns: repeat(4, minmax(0,1fr));
     width: 100%;
     gap: 16px;

        .work{
          width: 100%;
          box-sizing: border-box;
          

            a{
              display: grid;
              grid-template-areas: "oevrlap";
              width: 100%;
              text-decoration: none;
              overflow: hiddne;
        

               .thn{
                   grid-area: overlap;
                   z-index: 1;
                   width: 100%;
                   height: auto;
                   transition: opacity 0.4s ease;

                   img{
                      width: 100%;
                      max-width: 100%;
                      height: auto;
                    }
                }

               .white{
                   grid-area: overlap;
                   z-index:0;
                   width: 100%;
                   height: 100%;
                   background-color: var(--white-color);
                }

               .title{
                   grid-area: overlap;
                   z-index:3;
                   place-self: center;
                   width: 90%;
                   box-sizing: border-box;
                   text-align: center;
                   font-family: var(--font-en);
                   font-size: var(--fz20);
                   font-weight: 600;
                   line-height: 1.3;
                   letter-spacing: 15%;
                   text-align:center;
                   color: var(--text-color);
                   -webkit-text-stroke: 0.5px #ffffff;
                   paint-order: stroke fill;
                   opacity: 0;
                   transition: opacity 0.8s ease;
       
                }

   
                &:hover{
                    .thn{
                        opacity: 0.35;
                    }
                   .title{
                        opacity:1;
                    }
                }
            }
        }
    }
}

/* main responsive */
@media (width < 989px){
    .works_outer {
        padding: 0 30px;

        .work-list{
        grid-template-columns: repeat(3, minmax(0,1fr));
        width: 100%;
        gap: 16px;
        }
    }

}

@media (width < 699px){
    .works_outer {
        padding: 0 10px;
        .work-list{
        grid-template-columns: repeat(2, minmax(0,1fr));
        width: 100%;
        gap: 8px;
        }
    }

}
        

/* footer */
.footer_outer{
    width: 100%;
    max-width: var(--content-width);
    padding: 30px;
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    box-sizing: border-box;
    


    .back-to-top{
        font-family: var(--font-en);
        font-size: var(--fz17);
        font-weight: 300;
        letter-spacing: 10%;
        display: flex;
        align-items: baseline;
        gap: 8px;

        &::before{
           content:"";
           display: inline-block;
           background-color: var(--fill-color);
           width: 12px;
           height: 14px;
           clip-path: polygon(0 100%,50% 0, 100% 100%);
        }
        &:hover{
           opacity: 50%;
        }
    }

    .copy{
      font-family: var(--font-en);
      font-size: var(--fz12);
      font-weight: 300;
      letter-spacing: 10%;
    }
}


/* footer responsive */

@media (width < 989px){
    .footer_outer {
        padding: 30px;
    }

}

@media (width < 699px){
    .footer_outer {
        padding: 16px;


        .back-to-top{
            align-items: baseline;
            font-size: var(--fz14);
            gap: 6px;
            &::before{
                scale: 0.8;
                transform-origin: bottom left;
            }

        }

        .copy{
             font-size: var(--fz10);
        }

    }

}

/* footer_02 */
.footer_02_outer{
    width: 100%;
    max-width: var(--content-width);
    padding: 30px;
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    box-sizing: border-box;

    .back-to-home{
        font-family: var(--font-en);
    font-size: var(--fz17);
    font-weight: 300;
    letter-spacing: 10%;
     &::before{
        content: "";
        display: inline-block;
        width: 16.5px;
        height: 14px;
        padding: 0 8px 0 0;

        background-image: url("../img/home.svg");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
     }
     &:hover{
        opacity: 50%;
     }


    }

    p{
      font-family: var(--font-en);
      font-size: var(--fz12);
      font-weight: 300;
      letter-spacing: 10%;
    }
}

/* footer_02 responsive */

@media (width < 989px){
    .footer_02_outer {
        padding: 30px;
    }

}

@media (width < 699px){
    .footer_02_outer {
        padding: 16px;


        .back-to-home{
            align-items: baseline;
            font-size: var(--fz14);
            gap: 6px;
            &::before{
                scale: 0.8;
                transform-origin: bottom left;
            }

        }

        .copy{
             font-size: var(--fz10);
        }

    }

}


/* about */
.grid{
    letter-spacing: 7%;
    width: 100%;
    max-width: var(--content-width);
    display: flex;
    flex-direction: column;
    
    padding-top: 16px;
    padding-right: 117px;
    padding-bottom: 16px;
    padding-left: 117px; 

    align-items: flex-start !important;
    gap: 30px;
}

.grid .col01{
    display: flex;
    justify-content: flex-end;
    align-items: top;
}

.grid .col03{
    display: flex;
    justify-content: flex-start;
    align-items: top;
    gap: 16px 48px;
    flex-wrap: wrap;
}


.grid .grid1{
    width: 100%;
    display: grid;
    grid-template-rows: repeat(12, minmax(36px, auto));
    grid-template-columns:113px 93px 1fr;
    align-items: center;

    .row01{    
    font-family: var(--font-jp);
    font-weight: 300;
    color: var(--text-color);
    font-size: var(--fz20);
    letter-spacing: 20%;
    margin: 0 0 20px 0;
    }

    .row04,
    .row08{
    margin: 0 0 18px 0;
    }

    .content_02{
    display: none;
    }

}


.grid .grid2{
    width: 100%;
    display: grid;
    grid-template-rows: repeat(5, minmax(40px, auto));
    grid-template-columns:113px 93px 1fr;
    align-items: center;

    .col03.row01{    
    font-family: var(--font-jp);
    font-weight: 300;
    color: var(--text-color);
    font-size: var(--fz20);
    letter-spacing: 20%;
    }

    .col01.row01{
    font-size: var(--fz16);
    letter-spacing: 15%;
    line-height: 1.6;
    text-align: right;
    }
}




/* about responsive */
@media (990px <= width <= 1182px) {
  .grid {
    padding-left: calc(30px + (117 - 30) * ((100vw - 990px) / (1182 - 990))) !important;
    padding-right: calc(30px + (117 - 30) * ((100vw - 990px) / (1182 - 990))) !important;
  }
}

@media (width < 989px) {

    .grid {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

  .grid .grid1 .col03,
  .grid .grid2 .col03 {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start !important; 
    text-align: left;
    gap: 4px 0; 
  }

  .grid .grid1 .row03{
    margin: 0 0 8px 0;
  }
}

@media (width < 699px) {

   .grid{
      font-size: var(--fz10);
     padding: 0 16px;
     gap: 20px;

     .grid1 .row01,
     .grid2 .row01{
        font-size: var(--fz14);
        margin: 0 0 8px 0;
      }
   }

    .grid .grid1 {

        grid-template-rows: repeat(12, minmax(20px, auto));
        grid-template-columns:78px 36px 1fr;

        .row03{
            margin: 0 0 0 0;
        }

        .row04,
        .row08{
             margin: 0 0 2px 0;
        }

        .content_01{
            display: none;
        }

        .content_02{
            display: block !important;
        }

    }

    .grid .grid2{
      grid-template-rows: repeat(5, minmax(24px, auto));
      grid-template-columns:78px 36px 1fr;

        .col03.row01{
            font-size: var(--fz14);
            margin: 0 0 8px 0;
        }

        .col01.row01{
            font-size: var(--fz10);
        }
    }

  .grid1 > div,
  .grid2 > div {
    padding-top: 4px;   
    padding-bottom: 4px; 
    box-sizing: border-box;


    align-items: flex-start !important;
  }

    
}

/* contact */
.contact_outer{
    letter-spacing: 5%;
    width: 100%;
    max-width: var(--content-width);
    display: flex;
    flex-direction: column;
    
    padding-top: 16px;
    padding-right: 117px;
    padding-bottom: 16px;
    padding-left: 117px; 
    
    align-items: flex-start !important;
    gap: 60px;

    .form-box {
        width: 100%;
        max-width: 950px;
        display: grid;
        grid-template-columns: 1.0fr 1.0fr;
        gap: 41px max(0px, 2.5vw);

        justify-items: end;
        > *:nth-child(odd) {
           justify-self: start;
        }

        .form-item {
            width: 100%;
            display: flex;
            align-items: center;
        }

        > *:nth-child(odd) {
            justify-content: flex-start;
        }
        > *:nth-child(odd) label {
            width: 135px;
            text-align: left;
            margin-right: 16px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        > *:nth-child(even) {
            justify-content: flex-end;
        }
        > *:nth-child(even) label {
            width: 135px;
            text-align: right;
            margin-right: 16px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .item {
            width: 100%;
            max-width: 322px; 
            height: 36px;
            background-color: var(--sub-colour);
            border: 1px solid var(--fill-color);
        }

        .ph {
            padding: 0;
            margin: 0;
        }
    }

        .form-message{
            width: 100%;
            max-width: 950px;
            display: flex;
            flex-direction: column;
            gap: 16px;

            textarea{
                width: 100%;
                background-color: var(--sub-colour);
                border: 1px solid var(--fill-color);
                resize: none;
            }

            #myTextarea::placeholder {
                letter-spacing: 0.1em;
            }
        }

        .form-btn{
            width: 130px;
            height: 35px;
            border-radius: 2px;
            margin: 0 0 0 auto;
            background-color: var(--fill-color);
            font-family: var(--font-btn);
            font-weight: 400;
            font-size: var(--fz16);
            letter-spacing: 0.1em;
            color: var(--main-color);
            &::before{
                content: "";
                display: inline-block;
                width: 25px;
                height: 25px;
                background-image:url(../img/arrow.svg);
                background-size: contain;
                background-repeat: no-repeat;
            }
            display: flex;
            gap: 10px;
            justify-content: center;
            align-items: center;

            &:hover{
                opacity: 0.5;
            }
        }
    

}

/* contact responsive */

@media (990px <= width <= 1182px) {
  .contact_outer {
    padding-left: calc(30px + (117 - 30) * ((100vw - 990px) / (1182 - 990))) !important;
    padding-right: calc(30px + (117 - 30) * ((100vw - 990px) / (1182 - 990))) !important;
  }
}

@media (width < 989px) {
    .contact_outer {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .form-box .item {
        width: calc(200px + (322 - 200) * ((100vw - 700px) / (989 - 700)));
    }
}

@media (max-width: 699px){
    .contact_outer {
        font-size: var(--fz12);
        gap: 40px;
    }

    .contact_outer .form-box{
        grid-template-columns: 1fr;
        gap: 24px 0;
        justify-items: stretch;

        > *:nth-child(odd),
        > *:nth-child(even) {
        justify-self: stretch;
        justify-content: flex-start;
        }

        > *:nth-child(odd) label,
        > *:nth-child(even) label {
        width: 90px;
        text-align: left;
        margin-right: 16px;
        }

        .item {
        height: 30px;
        width: 100%;
        max-width: 100%;
            }
    }

    .contact_outer .form-btn{
            width: 80px;
            height: 28px;
            border-radius: 2px;
            font-size: var(--fz12);
            &::before{
                width: 20px;
                height: 20px;
            }
            gap: 8px;   
        }
        
}

/* contact_02 */

.contact_02{
    width: 100%;
    max-width: var(--content-width);
    display:flex;
    flex-direction: column;

    padding-top: 16px;
    padding-right: 117px;
    padding-bottom: 412.26px;
    padding-left: 117px; 

    align-items: center;

    div{
        width: 100%;
        max-width: 950px;
        display:flex;
        flex-direction: column;
        gap: 40px;

        p{
            width: 100%;
            max-width: 700px;
            text-align: justify;
            font-weight: 400;
             
        }

        .privacy{
            font-style: italic;
            font-weight: 300;
        }
        
    }

    .h2{
        letter-spacing: 15%;
        font-weight: 500;
    }


}

/* contact_02 responsive */

@media (990px <= width <= 1182px) {
  .contact_02 {
    padding-left: calc(30px + (117 - 30) * ((100vw - 990px) / (1182 - 990))) !important;
    padding-right: calc(30px + (117 - 30) * ((100vw - 990px) / (1182 - 990))) !important;
  }
}

@media (width < 989px) {
    .contact_02 {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .form-box .item {

        width: calc(200px + (322 - 200) * ((100vw - 700px) / (989 - 700)));
    }
}

@media (width < 699px){
    .contact_02 .h2{
        font-size: var(--fz14);
    }
    .contact_02 {
        font-size: var(--fz12);
        gap: 40px;
    }

}


/* The Dots CSS Loaders */

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--main-color); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#page-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loader {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
  0%   { box-shadow: 15px 0 #0002, -15px 0 var(--fill-color); background: #0002; }
  50%  { box-shadow: 15px 0 #0002, -15px 0 #0002; background: var(--fill-color); }
  100% { box-shadow: 15px 0 var(--fill-color), -15px 0 #0002; background: #0002; }
}

