@charset "UTF-8";

:root{
    --textColor:#646464;
    --btnColor:#e6e6ee;
    --hoverColor: #B7B7B7;
    --btnShadow:#9b9b9b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-size: 10px;
    background-color: #ffffff;
}
body, footer{
    font-size: 1.6em;
    line-height: 1.5;
    font-family: "Zen Kaku Gothic New", "Noto Sans", sans-serif;
    color: var(--textColor); 
    margin: 0;
    transition: background-color 0.5s, color 0.5s;
    /* 背景色と文字色の変更にスムーズなトランジションを追加 */
}
footer{
    font-size: 1.6em;
    line-height: 1.5;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-family: "Noto Sans",serif;
}

img{
    max-width: 100%;
}
h2{
    font-size: 3em;
    padding-bottom: 1em;
}
a{
    text-decoration: none;
    color: var(--textColor);
    font-family: "M PLUS Rounded 1c", sans-serif;
}
main{
    padding-top: 10vh; 
}
:target::before {
    content: "";
    display: block;
    height: 10vh; /* ナビの高さ分 */
    margin-top: -10vh;
    visibility: hidden;
}
.title{
    color: transparent;
    -webkit-text-stroke: 1px black;
    -webkit-font-smoothing: antialiased;
    font-smooth: always;
    opacity: 0;
    visibility: hidden;
    transition: all 1s;
    transform: translateX(-150px);
}
.fadeIn{
    opacity: 0;
    visibility: hidden;
    transition: all 1s;
    transform: translateY(150px);
}
.is-active{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow: hidden;
    background-color: #000;
  }
  
  .loading video {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    max-height: 100%;
    object-fit: contain; 
    z-index: 1;
  }
  
  .loading div {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

    @keyframes open{
        0% {
        opacity: 0;
        transform: scaleY(8) scaleX(8);
        }
        70% {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
        }
    }
/***NAVE***/
header {
    top: 0em;
}
.nav{
    height: 10vh;
    width: 100%;
    padding: 1em 0;
    position: fixed;
    z-index: 500;
}
.nav ul{
    list-style: none;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1.25em;
    font-size: 1.25em;
    padding-right: 1em; 

}
.nav a{
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 500;
    font-style: normal;
    position: relative;
    display: inline-block;
    color: #5ea8c4;
}
.nav ul li a::after{
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 1px;/*下線の太さ*/
    background: #5ea8c4;
    bottom: -1px;
    transform: scale(0,1);/* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: left top;/* 変形の原点 */
    transition: transform 0.3s;/* 変形をアニメーション化 */
}
.nav ul li a:hover::after{
    transform: scale(1,1); /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
    transform-origin: right top;/* 変形の原点 */
}
#Hbg,
#Hbg+label {
    display: none;
}

/***TOP***/
.main{
    background: url(../image/topBack.jpg) no-repeat center bottom/cover;
    height: 100vh;
}
.top {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
}
.top h1{
    font-size: 5em;
    letter-spacing: .25em;
    color: transparent;
    -webkit-text-stroke: 1px rgb(255, 255, 255);
    padding-bottom: 0;
} 
.top p{
    font-size: 1.75em;
    letter-spacing: .25em;
    line-height: 3em;
    color: #fff;
}
.scroll{
    position: absolute;
    left: 1em;
    bottom: 5em;
    color: #fff;
    writing-mode: vertical-lr;
    font-size: 1.5em;
}
.scroll::before{
    content: '';
    height: 100px;
    width: 1px;
    background-color: #fff;
    position: absolute;
    animation: scroll 2s infinite;
    left: 0.5em;
    bottom: -5em;
}
@keyframes scroll {
0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
}
50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
}
51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
}
100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
}
}
/***ABOUT***/
.about{
    width: 100%;
    /* height: 100vh; */
    display: block;
}
.inner{
    display: flex;
    width: 70%;
    margin: 15vh auto;
}
.inner .text{
    width: 50%;
    display: flex;
    flex-direction: column;
}
.inner .img{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about img{
    margin-left: auto;
}

.inner .text h3{
    font-size: 1.5em;
    padding-bottom: 1em;
    font-weight: 400;
}
.inner .text p{
    line-height: 2;
}

/****btn****/

.btn,
.btn,
button.btn {
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    letter-spacing: 0.1em;
    color: var(--textColor);
    border-radius: 0.5rem;
    width: 11em;
    margin:  auto;
    margin-bottom: 0;
    z-index: 50;
}

.btn-border-shadow {
    padding: calc(1.5rem - 12px) 2rem 1.5rem;

    background: #fff;
}

.btn-border-shadow:before {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 100%;
    height: 100%;
    content: "";
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;

    border: 1px solid var(--textColor);
    border-radius: 0.5rem;
    }

.btn-border-shadow:hover {
    padding: calc(1.5rem - 6px) 3rem;
    }

.btn-border-shadow:hover:before {
    top: 0;
    left: 0;
}

.btn-border-shadow--color {
    border-radius: 0;
    background: var(--btnColor);
    }

.btn-border-shadow--color:before {
    border-radius: 0;
}


/***WORK***/
.works h2{
    text-align: center;
}
.works .inner{
    display: block;
}
.works .inner .worksMenu ul{
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    gap: 1.25em;
    font-size: 1.5em;
    }
.works .inner .worksMenu ul li a {
    display: inline-block; 
    transition: transform 0.3s ease; 
}

.works .inner .worksMenu ul li a:hover {
    transform: scale(1.05); 
}

.works .inner .worksMenu ul{
list-style: none;
display: grid;
grid-template-columns: repeat(3,1fr);
gap: 2rem 4rem;
max-width: 1120px;
width: 100%;
margin: 0 auto;
list-style: none;
}
.works .inner .worksMenu ul li{
    margin-bottom: 1em;
}
.works .inner .worksMenu ul li a:hover::after{
    transform: scale(1,1); /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
    transform-origin: right top;/* 変形の原点 */
    }
.works .inner .worksMenu ul li dt{
    /* text-align: center;
    font-size: .85em; */
    margin: .5em 1em;
    padding-bottom: 0.2em;
    border-bottom: var(--textColor) solid 1px;
}
.works .inner .worksMenu ul li dl{
    font-size: .65em;
    text-align: center;
}
.warksImg{
    aspect-ratio: 1/1;
}
/***CONTACT***/
.contact .title{
    padding-bottom: 0.5em;
}
.contact h2{
    text-align: center;
}
.contact .inner img{
    margin-right: auto;
}
.contact .inner .contactText{
    width: 60%;
    align-items: center;
}

.contact .inner .contactText p{
    text-align: center;
    padding-bottom: 2em;
}
.contact .inner .contactText .btn,
.btn, button.btn {
    width: 20em;
    position: static;
    display: flex;
    justify-content:center;
    margin-top: 10em;
}

/**問いあわせフォーム**/
/*
.contact table{
    width: 100%;
}
.contact table tr{
    height: 2.5em;
}
.contact table th{
    width: 30%;
    text-align: right;
    font-size: .9em;
    padding-right: 1em;
}
.contact table td{
    width: 70%;
}
.contact table td input{
    width: 100%;
    padding: 5px;
}
.contact table td textarea{
    width: 100%;
    height: 10em;
}
.contact table span {
    margin-left: .5em;
    height: 1.5em;
    background-color: var(--textColor);
    color: #fff;
}
button {
    border:none;
    background: none;
} 
.contact .btn{
    display: block;
    margin: 0 auto;
    margin-top: 5em;
} */

/**FOOTER**/
footer{
    border-top: var(--btnShadow) solid 1px;
    display: block;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 15vh auto 0;
}
footer .footerNav{
    display: flex;
    margin: 0 auto;
}
footer div{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em 0;
}
.footerNav ul{
    display: flex;
    gap: 2em;
    font-size: .75em;
    list-style: none;
}
footer .eng{
    font-size: .75em;
}
footer .footer{
    color: #646464;
    width: 100%;
    height: 1em;
}

/*----------ABOUT-----------*/
/***ME***/
.me .inner{
    margin-top: 2vh;
}
.aboutTitle{
    font-size: 2em;
    font-weight: 400;
    padding-top: 4em;
    margin-bottom: 1em;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.aboutTitle:before, .aboutTitle:after{
    content: '';
    border-top: var(--textColor) 1px solid;
    width: 2em;
}
.aboutTitle:before{
    margin-right: .5em;
}
.aboutTitle:after{
    margin-left: .5em;
}
.me .aboutTitle{
    padding-top: 1em;
}
.me .text{
    width: 60%;
    display: block;
    justify-content: start;
}
.me .text h3{
    font-size: 2em;
}
.me .inner .img{
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/**SKILL**/
.skill ul{
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2em 4em;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    list-style: none;
}
.skill ul li dt{
    font-size: 1.2em;
    margin: 1em auto;
    width: 100%;
    text-align: center;
    border-bottom: var(--textColor) solid 1px;
}
.skill li dl{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.skill li dl::after{
    contain: '';
    display: block;
    width: 1em;
    border-top: 2px dotted var(--textColor);
    flex-grow: 1;
    align-self: center;
    margin: 0 0.5em;
}

/***history***/
.historyInner{
    height: 120vh;
}
.history .textBox{
    border: 1px solid var(--textColor);
    background-color: #fff;
    width: 42em;
    padding: 2em 2em 2.5em;
    position: relative;
}
.history .textBox h3{
    font-family: "Cabin", sans-serif;
    position: absolute;
    top: -.75em;
    font-size: 2.25em;
    color: #5f9ea8;
    background-color: #fff;
    padding: 0 0.5em;
}
.history .textBox h4{
    padding-bottom: 0.5em;
    font-size: 1.5em;
    font-weight: 400;
}
.historyInner {
    display: block;
    width: 70%;
    margin: 0 auto;
    position: relative;
}
.history .historyInner .box1{
    position: absolute;
    top: 0em;
}

.history .historyInner .box2{
    position: absolute;
    top: 12.5em;
    right: 5em;
}
.history .historyInner .box3{
    position: absolute;
    top: 24em;
}
.history .historyInner .box4{
    position: absolute;
    top: 34em;
    right: 0;
    width: 42em;
}
.history .historyInner .box5{
    position: absolute;
    top: 45em;
}
.left-slide {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 2s ease;
  }
  .right-slide {
    opacity: 0;
    transform: translateX(100px);
    transition: all 2s ease;
  }
  .left-slide.is-active,
  .right-slide.is-active {
    opacity: 1;
    transform: translateX(0);
  }
@keyframes fadeup {
    0% {
    transform: translateY(30px);
    opacity: 0;
}
    80% {
    opacity: 1;
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }

}
.pc{
    display: block;
}
.sp{
    display: none;
}


/**works.html**/
.worksMain .inner{
    flex-direction: column;
}

.worksTitle {
    display: flex;
    margin-bottom: 3em;
}
.worksTitle h1{
    font-size: 5em;
    color: var(--textColor);
    font-weight: 300;
}
.worksTitle p{
margin: auto 1em;
margin-bottom: 1em;
font-size: 1.5em;
}
.worksMain .worksInner h2{
    font-size: 2em;
    padding-bottom: 0;
    font-weight: 300;
}

.worksMain .worksInner img{
    height: 70vh;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}
.worksMain table{
    margin: 0 auto;
    margin-top: 2em;

}
.worksMain tr{
    line-height: 2em;
    vertical-align: bottom; 
    
} 
.worksMain th,td{
    padding-bottom: 2em;
}
.worksMain th{
    text-align: start;
    vertical-align: top;
    width: 15em;
    font-weight: normal;
}
.btnArea{
    display: flex;
}
/**** forTab 768px-960px ****/

 @media screen and (max-width: 960px){
body>header div {
    flex-direction: column;
    gap: 1em;
}
/**OPENING**/
.loading video {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 100vh;
    max-height: 100%;
    object-fit: contain; 
    z-index: 1;
    background-color: #000; 
  }
    /***NAV***/
    #Hbg+label{
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        width: 3.5em;
        height: 3.5em;
        position: absolute;
        top: 1em;
        right: 1em;
        z-index: 9999;
    }
    #Hbg+label span,
    #Hbg+label span::before,
    #Hbg+label span::after {
        content: "";
        display: block;
        height: 5px;
        width: 100%;
        background: #5ea8c4;
        transition: .5s;
    }
    #Hbg+label span {
        position: relative;
    }
    #Hbg+label span::before,
    #Hbg+label span::after{
        position: absolute;
    }
    #Hbg+label span::before{
        bottom: 15px;
    }
    #Hbg+label span::after{
        top: 15px;
    }
    #Hbg:checked+label span{
        background: transparent;
    }
    #Hbg:checked+label span::before{
        bottom: 0;
        transform: rotate(-45deg);
    }
    #Hbg:checked+label span::after {
        top: 0;
        transform: rotate(45deg);
    }
    
    .nav ul{
        position: fixed;
        display: flex;
        flex-flow: column;
        justify-content: center;
        background: #00000099;
        width: 100%;
        height: 100vh;
        top: 0;
        z-index: 1000;
        transition: .5s;
        right: -100%;
    }
    #Hbg:checked~ul {
        right: 0;
    } 

.top h1{
    font-size: 8vw;
    text-align: center;
    margin-bottom: 2em;
}
.top{
    font-size: 1em;
    text-align: center;
    margin-bottom: 2em;
    line-height: .25em;
}
.inner {
    width: 80%;
}
.inner .text{
    width: 60%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}
.inner .img{
    width: 40%;
}
.about .inner{
    margin-bottom: 3em;
}
.works .inner .worksMenu ul li dt{
    font-size:0.75em;
}
.works .inner .worksMenu li dd{
    font-size: 0.75em;
}
.contact .inner{
    flex-direction: column-reverse;
    margin: 0 auto;
}
.contact .inner .contactText{
    width: 80%;
    margin: 0 auto;
}
.contact .inner .img{
    width: 100%;
}
.contact .inner img{
    width: 50%;
    margin: 2em auto 3em;
}

/**ABOUT**/
.aboutTitle{
    font-size: 1.75em;
    margin: 1.5em 0 1em;
}
.skill ul{
    gap: 2em;
    width: 80%;
}
.skill ul li dd{
font-size: .75em;
}

/***HISTORY***/

.history .historyInner .box1{
    top: 1em;
    left: -5em;
}
.history .historyInner .box2{
    top: 14.25em;
    right: -5em;
}
.history .historyInner .box3{
    top: 25.5em;
    left: -5em;
}
.history .historyInner .box4{
    top: 35.75em;
    right: -3.5em;
    width: 42em;
}
.history .historyInner .box5{
    top: 47.5em;
    left: -5em;
}
.history{
    height: 200vh;
}
    .pc{
        display: block;
    }
    .sp{
        display: none;
    }
} 

/**** forSf 375px-428px ****/
@media ( max-width : 640px ){
    /***NAV***/
    #Hbg+label{
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        width: 3.5em;
        height: 3.5em;
        position: absolute;
        top: 1em;
        right: 1em;
        z-index: 99999;
    }
    #Hbg+label span,
    #Hbg+label span::before,
    #Hbg+label span::after {
        content: "";
        display: block;
        height: 5px;
        width: 100%;
        background: #5ea8c4;
        transition: .5s;
    }
    #Hbg+label span {
        position: relative;
    }
    #Hbg+label span::before,
    #Hbg+label span::after{
        position: absolute;
    }
    #Hbg+label span::before{
        bottom: 15px;
    }
    #Hbg+label span::after{
        top: 15px;
    }
    #Hbg:checked+label span{
        background: transparent;
    }
    #Hbg:checked+label span::before{
        bottom: 0;
        transform: rotate(-45deg);
    }
    #Hbg:checked+label span::after {
        top: 0;
        transform: rotate(45deg);
    }

    .nav ul{
        position: fixed;
        display: flex;
        flex-flow: column;
        justify-content: center;
        background: #00000099;
        width: 100%;
        height: 100vh;
        top: 0;
        z-index: 100;
        transition: .5s;
        right: -100%;
    }
    #Hbg:checked~ul {
        right: 0;
    } 
    /***TOP***/
    .top h1{
        font-size: 8vw;
        text-align: center;
        margin-bottom: .5em;
    }
    .top p{
        font-size: 1em;
    }
    .scroll{
        position: absolute;        
        left: 1em;
        bottom: 5em;
        font-size: 1em;
    }
    .scroll::before{
        content: '';
        height: 70px;
        left: 0.15em;
    }
    .title{
        font-size: 2.5em;
        padding-bottom: 1em;
    }
    .about .inner .img{
        margin: 0 auto;
        width: 100%;
    }
    .works .inner .worksMenu ul{
        display: flex;
        flex-direction: column;
    } 

    /***ABOUT***/
    .me .inner .aboutTitle{
        margin-bottom: 1em;
    }

.about .inner{
    flex-direction: column;
    width: 90%;
    margin: 5em auto;
}
.inner .text{
    width: 100%;
    display: flex;
    flex-direction: none;
    text-align: center;
    font-size: 0.85em;
}
.about {
    height: none;
}
.btn{
    margin-top: 2em;
    margin-bottom: 1em;
}
.about .inner .pc {
    display: none;
}
.inner .img{
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.about img{
    width: 60%;
    margin: 3em auto;
}

/***WORKS***/
.works .inner .worksMenu ul{
    gap: 3em;
    width: 80%;
}

/***CONTACT***/
.contact .inner{
    width: 100%;
}
.inner .contactText p {
    font-size: .85em;
}
.contact .inner .contactText .btn,
.btn, button.btn {
    margin-top: 2em;
}

/* .contact .inner .contactText div table td{
    width: 100%;
}
.contact .inner .contactText div table th,td{
    display: inline-block;
    width: 100%;
}
.contact .inner .contactText div table th{
    margin-top: 1em;
    text-align: left;
}

.contact .inner .contactText div table th .spmassage br{
    display: none;
} */
/**ABOUT**/
.pc{
    display: none;
}
.sp{
    display: block;
}
.aboutTitle {
    font-size: 1.25em;
    margin: 2em 0;
}
.me .inner h3{
    font-size: 1.5em;
}
.me .inner{
    display: flex;
    flex-direction: column-reverse;
}
.me .inner .img {
    width: 70%;
    margin: 0 auto;
    margin-bottom: 2em;
}
.me .inner .text{
    text-align: left;
}
.me .inner .text p{
    font-size: 0.85em;
}
.skill ul{
    display: flex;
    flex-direction: column;
    width: 80%;
}
.skill ul li dt{
    font-size: .85em;
}
.skill ul li dd{
    font-size: .75em;
}
.history .aboutTitle{
    margin-bottom: 0;
}
.history{
    height: 110vh;
}
.historyInner{
    display: flex;
    flex-direction: column;
    width: 95%;
    height: 100%;
}
.historyInner .textBox{
    margin: 0 auto 1em;
    position: relative;
    width: 100%;
    max-width: 40em;
    padding: 1.5em 1em 1em;
}
.history .historyInner .box1,
.history .historyInner .box2,
.history .historyInner .box3,
.history .historyInner .box4,
.history .historyInner .box5 {
    position: static;
    top: auto;
    left: auto;
    max-width: 22em;
}
.historyInner .textBox h3{
    font-size: 1.25em;
}
.historyInner .textBox h4{
    font-size: .85em;
}
.historyInner .textBox p{
    font-size: 0.75em;
}

/**works.html**/
.worksTitle {
    flex-direction: column;
}
.worksTitle h1{
    font-size: 3em;
    color: var(--textColor);
    font-weight: 300;
}
.worksTitle p{
    margin: 0; 
    font-size: 1.25em;
}

.worksMain .worksInner h2{
    font-size: 1.25em;
}

.worksMain .worksInner img{
    height: 50vh;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}
.worksMain table{
    display: block;

}
.worksMain tr{
    line-height: 2em;
    vertical-align: bottom; 
    
} 
.worksMain th,td{
    padding-bottom: 2em;
    display: inline-block;
    line-height: 1.5em;
}
.worksMain th{
    text-align: start;
    vertical-align: top;
    width: 100%;
    font-weight: normal;
    padding-bottom: 0;
    border-bottom: var(--btnShadow) solid 1px;
}
.worksMain td{
    padding-top: 0.5em;
}
}