@charset "UTF-8";

*{
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Allison';
    src: url(../font/Allison/Allison-Regular.ttf);
}

@font-face {
    font-family: 'Zen_Maru_Gothic';
    src: url(../font/Zen_Maru_Gothic/ZenMaruGothic-Medium.ttf);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/*header*/
/*トップ画像*/
header {
    position: relative;
    height: 56vw;
}

.img-position img:nth-of-type(1) {
    position: absolute;
    width: 18%;
    left: 1%;
}

.img-position img:nth-of-type(2) {
    position: absolute;
    top: -5%;
    left: 23%;
    width: 12%;
}

.img-position img:nth-of-type(3) {
    position: absolute;
    right: 2.8%;
    width: 15%;
}

.img-position img:nth-of-type(4) {
    position: absolute;
    top: 65%;
    left: -3%;
    width: 16%;
}

.img-position img:nth-of-type(5) {
    position: absolute;
    top: 65%;
    right: 1%;
    width: 18%;
}

.img-position img:nth-of-type(6) {
    position: absolute;
    top: 30%;
    right: 0;
    width: 5%;
}

.img-position img:nth-of-type(7) {
    position: absolute;
    top: 35%;
    right: 0;
    width: 18%;
}


.img-position2 img:nth-of-type(1) {
    position: absolute;
    top: -8%;
    right: 2%;
    width: 37%;
    animation: 20s rotate infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(-2deg);
    }
    20% {
        transform: rotate(2deg);
    }
    40% {
        transform: rotate(-2deg);
    }
    60% {
        transform: rotate(2deg);
    }
    80% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(2deg);
    }
}

.img-position2 img:nth-of-type(2) {
    position: absolute;
    top: 35%;
    width: 35%;
    animation: 20s rotate2 infinite;
}

@keyframes rotate2 {
    0% {
        transform: rotate(-2deg);
    }
    20% {
        transform: rotate(2deg);
    }
    40% {
        transform: rotate(-2deg);
    }
    60% {
        transform: rotate(2deg);
    }
    80% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(2deg);
    }
}

.img-position2 img:nth-of-type(3) {
    position: absolute;
    top: 40%;
    left: 53%;
    width: 20%;
    animation: 30s roll infinite;
    transform: rotate(0deg);
}

@keyframes roll {
    100% {
        transform: rotate(-360deg);
    }
}



.header-box {
    display: flex;
}

/* ロゴ
.header-box h1 {
    width: 10%;
    margin-top: 1%;
    margin-left: 2%;
}

.header-box h1 img {
    width: 100%;
}

header h2 {
    position: relative;
    width: fit-content;
    margin-top: 15%;
    margin-left: auto;
    margin-right: auto;
    z-index: 100;
}*/

header h1 {
    position: relative;
    width: fit-content;
    margin-top: 12%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Allison';
    font-size: 8vw;
    font-weight: 500;
    color: #656565;
    z-index: 100;
}

/*グローバルナビゲーション*/
nav {
    position: relative;
    width: 25%;
    margin-top: 2%;
    margin-left: 5%;
}

nav ul {
    display: flex;
}

nav ul li {
    width: calc( 100% / 3 );
    list-style-type: none;
}

nav ul li a {
    display: block;
    font-family: 'Allison';
    font-size: 3.5vw;
    color: #656565;
    text-align: center;
    text-decoration: none;
    transition: 1s;
}

nav ul li a:hover {
    opacity: 0.5;
    transition: 1s;
}

nav ul li a:hover::before {
    width: 30%;
    transition: 1s;
}

nav ul li a::before {
    display: block;
    position: absolute;
    top: 93%;
    width: 0%;
    height: 1%;
    content: "";
    background-color: #656565;
    transition: 1s;
}

header p {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: 8% auto;
    padding: 0.2% 0.6%;
    color: #656565;
    font-family: 'Allison';
    font-size: 4vw;
}

header p::before {
    position: absolute;
    top: 40%;
    left: 31%;
    display: block;
    content: "↓";
    color: transparent;
    font-size: 2vw;
    animation: 3s down-anime infinite;
}

@keyframes down-anime {
    100% {
        top: 80%;
        color: #656565;
    }
}

/*About*/
main section:nth-of-type(1) h2 {
    font-family: 'Allison';
    font-size: 5vw;
    font-weight: 500;
    color: #656565;
    text-align: center;
}

.parent-box {
    display: flex;
    width: 88%;
    margin-left: auto;
    margin-right: auto;
}

.child-box:nth-child(1) {
    width: 70%;
}

.child-box p {
    position: relative;
    line-height: 1.7;
    z-index: 1000;
}

/*タイトル文字*/
.child-box p:nth-of-type(1),.child-box p:nth-of-type(2),.child-box p:nth-of-type(3),.child-box p:nth-of-type(4),.child-box p:nth-of-type(5) {
    width: 85%;
    font-size: 3vw;
    font-family: 'Allison';
    color: #656565;
    border-bottom: 1px dashed #656565;
}

/*内容文字*/
.child-box p:nth-of-type(1) span {
    margin-left: 5%;
    margin-bottom: 1.5%;
    font-size: 1.3vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
}

.child-box p:nth-of-type(2) span{
    margin-left: 5%;
    margin-bottom: 1.5%;
    font-size: 1.3vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
}

.child-box p:nth-of-type(3) span{
    margin-left: 3%;
    margin-bottom: 1.5%;
    font-size: 1.3vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
}

.child-box p:nth-of-type(4) span{
    margin-left: 7%;
    margin-bottom: 1.5%;
    font-size: 1.3vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
}

.child-box p:nth-of-type(5) span{
    margin-left: 3%;
    margin-bottom: 1.5%;
    font-size: 1.3vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
}

.child-box p:nth-of-type(5) span:nth-of-type(2) {
    display: block;
    margin-left: 14%;
    font-size: 1.3vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
}


/*丸の要素*/
.box1 {
    position: relative;
    top: -45%;
    left: 20%;
    width: 20%;
    height: 12vw;
    border-radius: 100%;
    background-color: #EFDCD0;
    opacity: 0;
    transition: 1s;
    transform: translateY(-50px);
    z-index: 0;
}

.box2 {
    position: relative;
    top: -45%;
    left: 60%;
    width: 10%;
    height: 6vw;
    border-radius: 100%;
    background-color: #EFDCD0;
    opacity: 0;
    transition: 1s;
    transform: translateY(-50px);
    z-index: 0;
}

.box3 {
    position: relative;
    top: -38%;
    left: -8%;
    width: 40%;
    height: 25vw;
    border-radius: 100%;
    background-color: #EFDCD0;
    opacity: 0;
    transition: 1s;
    transform: translateY(50px);
    z-index: 0;
}

/*右側*/
.child-box:nth-child(2) {
    width: 30%;
}

.box4 {
    opacity: 0;
    transition: 1s;
    transform: translateY(50px);
}

.box4 img {
    display: block;
    width: 100%;
    padding: 3% 2% 2% 1%;
}

.isAnimate {
    opacity: 1;
    transform: translateY(0px);
}

/*アピール文*/
.about-text-box {
    position: relative;
    width: 88%;
    margin-top: -43%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    z-index: 1000;
}
.about-text-box p:nth-of-type(1) {
    margin-top: -41%;
    font-size: 1.6vw;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
} 

.about-text-box p:nth-of-type(2),.about-text-box p:nth-of-type(3) {
    font-size: 1.6vw;
    font-weight: 500;
    font-family: 'Zen_Maru_Gothic';
    color: #656565;
} 

/*マーカーアニメーション*/
.marker-animation {
    position: relative;
}

.marker-animation:nth-of-type(1)::after {
    content: '';
    position: absolute;
    top: 90%;
    left: 0%;
    width: 0%;
    height: 0.5px;
    background: #656565;
    transition: all 3s;
}

.marker-animation:nth-of-type(1).active::after {
    width: 80%;
}

.marker-animation:nth-of-type(2)::after {
    content: '';
    position: absolute;
    top: 90%;
    left: 0%;
    width: 0%;
    height: 0.5px;
    background: #656565;
    transition: all 3s;
}

.marker-animation:nth-of-type(2).active::after {
    width: 47%;
}

.marker-animation:nth-of-type(3)::after {
    content: '';
    position: absolute;
    top: 90%;
    left: 0%;
    width: 0%;
    height: 0.5px;
    background: #656565;
    transition: all 3s;
}

.marker-animation:nth-of-type(3).active::after {
    width: 79%;
}

main section:nth-of-type(1) a {
    display: block;
    width: 28%;
    margin-top: 2%;
    margin-left: auto;
    margin-right: auto;
    padding: 1% 0;
    font-size: 1.6vw;
    font-family: "Zen Maru Gothic";
    color: #656565;
    border-radius: 50px;
    background-color: #CAD9EB;
    text-decoration: none;
    transition: 0.5s;
}

main section:nth-of-type(1) a::before {
    position: relative;
    left: 88%;
    content: "▶";
    font-size: 1.6vw;
    color: #656565;
}

main section:nth-of-type(1) a:hover {
    opacity: 0.8;
    transition: 0.5s;
}

main section:nth-of-type(1) i {
    margin-left: 2%;
    margin-right: 3%;
    font-size: 1.6vw;
    color: #656565;
}

/*works*/
main section:nth-of-type(2) h2 {
    margin-top: 10%;
    margin-bottom: 5%;
    font-family: 'Allison';
    font-size: 5vw;
    font-weight: 500;
    color: #656565;
    text-align: center;
}

.works-box {
    display: flex;
    position: relative;
    width: 90%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;
}

.works-box li {
    width: calc( 100% / 3 );
    margin-left: auto;
    margin-right: auto;
}

.works-box li a:hover {
    opacity: 0.6;
}

/*紹介文字*/
.works-box p:nth-of-type(1) {
    margin-top: 3%;
    font-family: 'Zen_Maru_Gothic';
    font-size: 1.2vw;
    color: #656565;
    text-align: center;
}

main section:nth-of-type(2) h3 {
    font-family: 'Zen_Maru_Gothic';
    font-size: 1.2vw;
    font-weight: 500;
    color: #656565;
    text-align: center;
}

.works-box a:nth-of-type(2) {
    margin-top: 1%;
    font-family: 'Zen_Maru_Gothic';
    font-size: 1.2vw;
    color: #669cdd;
    text-align: center;
    display: block;
}


/*1個目*/
.works-box:nth-of-type(1) li:nth-of-type(1) {
    margin-right: 2%;
    list-style-type: none;
}

.works-box:nth-of-type(1) li:nth-of-type(1) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #EFDCD0;
}

.works-box:nth-of-type(1) li:nth-of-type(1) img {
    width: 96%;
    height: 16vw;
    margin: 15% 2%;
    transition: 0.5s;
}

.works-box:nth-of-type(1) li:nth-of-type(1) img:hover {
    width: 100%;
    margin: 15% 0;
    height: 17vw;
    transition: 0.5s;
}

/*1-2*/
.works-box:nth-of-type(1) li:nth-of-type(2) {
    margin-right: 2%;
    list-style-type: none;
}

.works-box:nth-of-type(1) li:nth-of-type(2) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(1) li:nth-of-type(2) img {
    width: 96%;
    margin: 15% 2%;
    transition: 0.5s;
}

.works-box:nth-of-type(1) li:nth-of-type(2) img:hover {
    width: 100%;
    margin: 15% 0;
    transition: 0.5s;
}

/*1-3*/
.works-box:nth-of-type(1) li:nth-of-type(3) {
    list-style-type: none;
}

.works-box:nth-of-type(1) li:nth-of-type(3) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #EFDCD0;
}

.works-box:nth-of-type(1) li:nth-of-type(3) img {
    width: 96%;
    margin: 15% 2%;
    transition: 0.5s;
}

.works-box:nth-of-type(1) li:nth-of-type(3) img:hover {
    width: 100%;
    margin: 15% 0;
    transition: 0.5s;
}

/*2-1*/
.works-box:nth-of-type(2) li:nth-of-type(1) {
    margin-right: 2%;
    list-style-type: none;
}

.works-box:nth-of-type(2) li:nth-of-type(1) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    line-height: 8;
    font-family: 'Allison';
    font-size: 3vw;
    text-align: center;
    text-decoration: none;
    color: #656565;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(2) li:nth-of-type(1) img {
    width: 96%;
    margin: 15% 2%;
    transition: 0.5s;
}

.works-box:nth-of-type(2) li:nth-of-type(1) img:hover {
    width: 100%;
    margin: 15% 0;
    transition: 0.5s;
}


/*2-2*/
.works-box:nth-of-type(2) li:nth-of-type(2) {
    margin-right: 2%;
    list-style-type: none;
}

.works-box:nth-of-type(2) li:nth-of-type(2) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #EFDCD0;
}

.works-box:nth-of-type(2) li:nth-of-type(2) img {
    width: 58%;
    margin: 4% 20%;
    transition: 0.5s;
}   

.works-box:nth-of-type(2) li:nth-of-type(2) img:hover {
    width: 60%;
    margin: 3% 20%;
    transition: 0.5s;
}   

/*2-3*/
.works-box:nth-of-type(2) li:nth-of-type(3) {
    list-style-type: none;
}

.works-box:nth-of-type(2) li:nth-of-type(3) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(2) li:nth-of-type(3) img {
    width: 58%;
    margin: 4% 20%;
    transition: 0.5s;
}   

.works-box:nth-of-type(2) li:nth-of-type(3) img:hover {
    width: 60%;
    margin: 3% 20%;
    transition: 0.5s;
}   

/*3-1*/
.works-box:nth-of-type(3) li:nth-of-type(1) {
    margin-right: 2%;
    list-style-type: none;
}

.works-box:nth-of-type(3) li:nth-of-type(1) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #EFDCD0;
}

.works-box:nth-of-type(3) li:nth-of-type(1) img {
    width: 58%;
    margin: 4% 20%;
    transition: 0.5s;
}   

.works-box:nth-of-type(3) li:nth-of-type(1) img:hover {
    width: 60%;
    margin: 3% 20%;
    transition: 0.5s;
}    


/*3-2*/
.works-box:nth-of-type(3) li:nth-of-type(2) {
    margin-right: 2%;
    list-style-type: none;
}

.works-box:nth-of-type(3) li:nth-of-type(2) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(3) li:nth-of-type(2) img  {
    width: 78%;
    margin: 12%; 
    transition: 0.5s;
}   

.works-box:nth-of-type(3) li:nth-of-type(2) img:hover {
    width: 80%;
    margin: 12%; 
    transition: 0.5s;
} 

/*3-3*/
.works-box:nth-of-type(3) li:nth-of-type(3) {
    list-style-type: none;
}

.works-box:nth-of-type(3) li:nth-of-type(3) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #EFDCD0;
}

.works-box:nth-of-type(3) li:nth-of-type(3) img {
    width: 78%;
    margin: 12%; 
    transition: 0.5s;
}   

.works-box:nth-of-type(3) li:nth-of-type(3) img:hover {
    width: 80%;
    margin: 12%; 
    transition: 0.5s;
} 

/*4-1*/
.works-box:nth-of-type(4) li:nth-of-type(1) {
    margin-right: auto;
    list-style-type: none;
}

.works-box:nth-of-type(4) li:nth-of-type(1) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(4) li:nth-of-type(1) img {
    width: 78%;
    margin: 12%; 
    transition: 0.5s;
}   

.works-box:nth-of-type(4) li:nth-of-type(1) img:hover {
    width: 80%;
    margin: 12%; 
    transition: 0.5s;
} 

/*4-2*/
.works-box:nth-of-type(4) li:nth-of-type(2) {
    margin-right: auto;
    list-style-type: none;
}

.works-box:nth-of-type(4) li:nth-of-type(2) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(4) li:nth-of-type(2) img {
    width: 78%;
    margin: 12%; 
    transition: 0.5s;
}   

.works-box:nth-of-type(4) li:nth-of-type(2) img:hover {
    width: 80%;
    margin: 12%; 
    transition: 0.5s;
}

/*4-1*/
.works-box:nth-of-type(4) li:nth-of-type(3) {
    margin-right: auto;
    list-style-type: none;
}

.works-box:nth-of-type(4) li:nth-of-type(3) a:nth-of-type(1) {
    display: block;
    width: 100%;
    height: 25vw;
    border-radius: 10px;
    background-color: #CAD9EB;
}

.works-box:nth-of-type(4) li:nth-of-type(3) img {
    width: 78%;
    margin: 12%; 
    transition: 0.5s;
}   

.works-box:nth-of-type(4) li:nth-of-type(3) img:hover {
    width: 80%;
    margin: 12%; 
    transition: 0.5s;
}

/*contact*/
main section:nth-of-type(3) h2 {
    margin-top: 10%;
    margin-bottom: 1%;
    font-family: 'Allison';
    font-size: 5vw;
    font-weight: 500;
    color: #656565;
    text-align: center;
}

main section:nth-of-type(3) img:nth-of-type(1) {
    display: block;
    width: 45%;
    margin-left: auto;
    margin-right: auto;
}

main section:nth-of-type(3) img:nth-of-type(2) {
    position: relative;
    display: block;
    width: 45%;
    margin-top: -1%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10%;
    z-index: 1000;
}

form {
    width: 40%;
    margin-left: auto;
    margin-right: auto;
    padding: 2%;

}  

.flex-box {
    display: flex;
    margin-bottom: 3%;
}

label {
    width: 50%;
    font-family: 'Allison';
    font-size: 2.5vw;
    color: #656565;
}

input[required] { 
    width: 100%;
}

textarea {
    width: 100%;
}

/*送信ボタン*/
input[type="submit"] {
    display: block;
    width: 30%;
    margin: 5% auto 0;
    padding: 2% 5%;
    font-size: 1.1vw;
    border: 2px solid transparent;
    transition: 1s;
    color: #656565;
    border-radius: 10px;
    background-color: #CAD9EB;
}

input[type="submit"]:hover {
    background-color: #EFDCD0;
    transition: 1s;
}

/*フッターナビゲーション*/
footer {
    position: relative;
    padding-top: 1%;
    margin-top: 5%;
}

.footer-box {
    display: flex;
    position: relative;
    width: 30%;
    margin-top: 5%;
    margin-left: auto;
    margin-right: auto;    
    z-index: 100;
}

.footer-box li {
    width: 30%;
    border-radius: 100%;
    list-style-type: none;
    background-color: #CAD9EB;
}

.footer-box li:nth-of-type(2) {
    width: 30%;
    margin-left: 2%;
    margin-right: 2%;
    border-radius: 100%;
    list-style-type: none;
    background-color: #EFDCD0;
}

.footer-box li a {
    display: block;
    line-height: 2.4;
    font-family: 'Allison';
    font-size: 3vw;
    color: #656565;
    text-align: center;
    text-decoration: none;
    transition: 0.5s;
}

.footer-box li a:hover {
    opacity: 0.5;
    transition: 0.5s;
}

.footer-img img:nth-of-type(1) {
    position: absolute;
    display: block;
    top: -80%;
    left: 0;
    width: 36%;
    height: 36vw;
    z-index: 0;
}

.footer-img img:nth-of-type(2) {
    position: absolute;
    display: block;
    top: -80%;
    right: 0;
    width: 30%;
    height: 36vw;
    z-index: 0;
}

.scroll-button img {
    position: relative;
    width: 6%;
    border-radius: 100%;
    margin-left: 93%;
    padding-left: 0.3%;
    padding-bottom: 0.3%;
    background-color: #CAD9EB;
    z-index: 100;
    transition: 1s;
}

.scroll-button img:hover {
    background-color: #87adda;
    transition: 1s;
}