@charset "UTF-8";

*{margin: 0;padding: 0;line-height: 1; box-sizing: border-box;}
body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #555;
    letter-spacing: 0.05em;
}
li {
    list-style-type: none;
}
a {
    text-decoration: none;
}
img{
    max-width: 100%;
    vertical-align: bottom;
}
.logo{
    position: fixed;
    top:10px;
    left: 10px;
    width: 150px;
    z-index: 10;
}
header h1{
    font-size: 100px;
    font-family: "Seymour One", sans-serif;
    margin: 250px 200px 100px;
    >span{
        font-family: "Caveat", cursive;
        font-size: 80px;
    }
}
.wrapper{
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}
.loop{
    font-family: "Miltonian", serif;
    font-size: 40px;
    width: 100%;
    animation: loop 10s linear infinite;
}
@keyframes loop{
    0%{transform: translateX(100%);}
    100%{transform: translateX(-100%);}
}
.deco{
    position: absolute;
    top: 20%;
    left: 60%;
    font-family: "Homemade Apple", cursive;
    font-size: 30px;
    rotate: 10deg;
    z-index: -1;
    line-height: 2;
    opacity: 70%;
}
.scroll{
    position: absolute;
    bottom: -10%;
    right: 5%;
    writing-mode: vertical-rl;
    z-index: 1;
    >img{
        animation: scroll 2s ease-in-out infinite;
    }
}
@keyframes scroll{
    0%{translate: 0 0;}
    100%{translate: 0 200px;opacity:0%;}
}
nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 100px;
    background-color: #555;
    display: none;
    z-index: 2;
    text-align: center;
}
nav a{
    display: inline-block;
    position: relative;
    margin: 25px auto;
    overflow: hidden;
    padding: 5px 10px;
    font-family: "Permanent Marker", cursive;
    font-size: 20px;
    color: #fff;
        &:hover{
        opacity: 70%;
    }
    &::after{
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        transform: translate(-100%, 0);
        transition: .3S;
        background-color: #fff;
    }
    &:hover:after{
        transform: translate(0,0);
    }
}
#burger{
    width: 44px;
    height: 44px;
    position: fixed;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 3;
}
#burger span {
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: #555;
    border-radius: 20px;
    inset: 0;
    margin: auto;
    transition: .3s;
}
#burger span:nth-of-type(1) {
    top: -30%;
}
#burger span:nth-of-type(3){
    top: 30%;
}
#burger.active  span:nth-of-type(1) {
    top: 20%;
    background-color: #fff;
}
#burger.active  span:nth-of-type(3) {
    top: -20%;
    background-color: #fff;
}
.container{
    max-width: 960px;
    margin: 0 auto;
}
.main{
    padding: 0 20px;
}
.about{
    max-width: 300px;
    margin: -100px 0 200px auto;
        &:hover{
        opacity: 70%;
    }
    >a>h2{
    text-align: center;
    padding: 10px;
    color: #555;
    background-color: #fff;
    font-family: "Poiret One", sans-serif;
    font-size: 30px;
    border: 2px solid #555;
    border-radius: 30px;
    box-shadow: 1px 1px 10px 1px #ddd;
    &::after{
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        border-top: 3px solid #555;
        border-right: 3px solid #555;
        rotate: 45deg;
        margin-left: 20px;
        vertical-align: 1px;
    }
    }
}
.works{
    font-family: "Permanent Marker", cursive;
    font-size: 50px;
    text-align: center;
    margin-bottom: 50px;
}
h3{
    font-family: "Yeseva One", serif;
    font-size: 30px;
    margin-bottom: 50px;
    &::before{
        content: "";
        display: inline-block;
        width: 5px;
        height: 50px;
        background-color: #555;
        border-radius: 5px ;
        margin-right: 15px;
        vertical-align: middle;
    }
}
.main li a{
    color: #555;
    &:hover{
        opacity: 70%;
    }
} 
h4{
    font-size: 20px;
    padding: 10px;
}
.web-site{
    margin-bottom: 150px;
    >ul{
        width: 70%;
        margin: 0 auto;
        & h4{
            margin: -30px 0 50px;
            text-align: center;
            border-top: 1px solid #000;
        }
    }
}
.image ul{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 50px 50px;
    margin-bottom: 120px;
}
.image ul .item{
    display: block;
}
.image ul .item .photo {
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 1px 1px 10px 1px #ddd;
}
.image ul .item .photo img{
    width: 100%;
}
.image ul li .item .txt{
    width: 100%;
    >p{
        padding-left: 15px;
        line-height: 1.5;
    }
}
.more{
    cursor: pointer;
    max-width: 200px;
    margin: -80px auto 100px;
    text-align: center;
    padding: 10px;
    color: #555;
    background-color: #fff;
    font-family: "Poiret One", sans-serif;
    font-size: 26px;
    border: 2px solid #555;
    border-radius: 30px;
    box-shadow: 1px 1px 10px 1px #ddd;
    &:hover{
        opacity: 70%;
    }
    &::after{
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        border-top: 3px solid #555;
        border-right: 3px solid #555;
        rotate: 135deg;
        margin-left: 20px;
        vertical-align: 2px;
    }
}
.program li{
    margin-bottom: 80px;
    >h4{
        text-align: center;
    }
}
footer>p{
    background-color: #ccc;
    text-align: right;
    padding: 50px 100px;
}
.mail{
    text-align: center;
    font-family: "Poiret One", sans-serif;
    font-size: 26px;
    
    >span{
        font-family: "IBM Plex Sans JP", sans-serif;
        font-size: 16px;
        line-height: 5;
    }
    >a{
        color: #555;
        display: inline-block;
        position: relative;
        overflow: hidden;
        padding-bottom: 10px;
        &::after{
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            transform: translate(-100%, 0);
            transition: .4S;
            background-color: #555;
        }
        &:hover:after{
            transform: translate(0,0);
        }
    }
}
.curtain{
        display: flex; 
        align-items: center;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: calc(infinity);
        background-color: #fff;
    }
#welcome{
    margin: 0 auto;
    width: 100%;
}
    #Layer_2 path{
        fill: none;
        stroke:#fff;
        stroke-width: 15;
        stroke-dashoffset: 2315px;
        stroke-dasharray: 2315px;
        animation: line 5s .2s forwards;
    }
    @keyframes line{
        0%{stroke-dashoffset: 2315px;}
        100%{stroke-dashoffset: 0;}
    }
    #Layer_2 path:nth-of-type(2).st3{
        animation: line 5s 1.9s forwards;
    }
    #Layer_2 path:nth-of-type(3).st3{
        animation: line 5s 2.2s forwards;
    }
    #Layer_2 path:nth-of-type(4).st3{
        animation: line 5s 2.6s forwards;
    }
    #Layer_2 path:nth-of-type(5).st3{
        animation: line 5s 2.8s forwards;
    }
    #Layer_2 path:nth-of-type(6).st3{
        animation: line 5s 3s forwards;
    }
    #Layer_1{
        mask: url(#mask-wrapper);
    }
@media (max-width:768px){
    .logo{
        width: 100px;
    }
    header h1{
        font-size: 60px;
        margin: 250px auto 100px;
        padding: 0 30px;
        >span{
            font-size: 50px;
        }
    }
    .deco{ 
        left: 40%;
        font-size: 20px;
    }
    .about{
        max-width: 200px;
        margin: -100px 0 150px auto;
        >a>h2{
            font-size: 24px;
        }
    }
    .works{
        font-size: 34px;
    }
    h3{
        font-size: 22px;
        margin-bottom: 30px;
        &::before{
            height: 40px;
        }
    }
    h4{
        font-size: 13px;
    }
    .web-site{
        margin-bottom: 80px;
            >ul{
            width: 70%;
            margin: 0 auto;
            & h4{
                margin: -10px 0 20px;
                text-align: center;
                border-top: 1px solid #000;
            }
        }
    }
    .image ul{
        grid-template-columns: repeat(2,1fr);
        gap: 40px 20px;
        margin-bottom: 80px;
    }
    .image ul li .item .txt{
        >p{
        font-size: 12px;
        }
    }
    .more{
        max-width: 150px;
        margin: -50px auto 80px;
        font-size: 22px;
    }
    .program li{
        margin-bottom: 50px;
    }
    footer>p{
        padding: 30px 50px;
    }
    .mail{
        font-size: 26px;
        >span{
            font-size: 16px;
            line-height: 3;
        }
    }
}

