@charset "UTF-8";

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

body{
    font-family: Futura,"Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
}

.backlaurel{
    background-image: url(images/BK-6.jpg);
    background-position: left top;
    background-attachment: fixed;
    background-size: 100%;
}

header{
    background-image: url(images/toppage5.jpg);
    background-repeat: no-repeat;
    background-position: center;
    width:100%

}


nav{
    display: flex;
    justify-content: space-between;
}

/*-------logo-------*/

h1 img{
    text-align: left;
    height: 120px;
    padding: 10px;
}

/*-------navigation-------*/

.menu-anime1 {
    display: flex;
    padding: 25px;
    gap: 25px;
    
}

.menu-anime1 li a {
    color: snow;
    font-weight: bold;
    padding-bottom: 10px;
    position: relative;
    text-decoration: none;
}

.menu-anime1 li a::after {
    content: "";
    display: block;
    height: 2px;
    width: 90%;
    background-color: rgb(194, 253, 221);
    position: absolute;
    left: 5%;
    bottom: 0;
    transform: scale(0,1);
    transition: 0.5s;
}

.menu-anime1 li a:hover {
    color: rgb(157, 204, 212);
}

.menu-anime1 li a:hover::after {
    transform: scale(1,1);
}


/*-------linksのドロップダウンリスト-------*/

.dropdown{
    position: relative;
    flex-direction: column;
    align-items: center;
    
}

.dropdown_list {
    position: absolute;
    visibility: hidden;
    opacity: 0;/*不透明度0*/
    transition: 1s all linear;/*表示の変化を1秒に指定*/
    top: 30px;
    
}

.dropdown li:hover .dropdown_list {
   visibility: visible;
    opacity: 1;

}

.container{
    display: flex;
    
}


/*-------Hello!-------*/
.page-title{
    justify-content: center;
  color: rgb(27,20,100);
  font-weight:bold;
  text-shadow:  2px 2px 0 rgb(141, 106, 210);
  letter-spacing: -2px;
    display: flex;
    overflow: hidden;
    width: 100%;
    margin: 2% 5% 2% 0; 
    font-size: 80px;
    
}

/*Hello!の動くシマシマ影*/
.page-title p:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    font-size: 0;
    height: 100%;
    }

.page-title p:after{
        content: attr(data-shadow);
        position: absolute;
        top: 6px; left: 6px;
        z-index: -1;
        text-shadow: none;
        background-image:
          linear-gradient(
            45deg,
            transparent 45%,
            #fff 45%,/*#ebe9e0*/
            #fff 55%,
            transparent 0
            );
        background-size: 3px 3px;
        background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
        animation: shad-anim 15s linear infinite;
        }
    
    @keyframes shad-anim {
      0% {background-position: 0 0}
      0% {background-position: 100% -100%}
      }


/* Hello!のアニメーション関係 */
.page-title p{
transform: translateY(2em);
animation: textanimation 1.8s forwards;
}
/* 1文字目 */
.page-title p:nth-child(1) {
animation-delay: 0.3s
}
/* 2文字目 */
.page-title p:nth-child(2) {
animation-delay: 0.6s
}
/* 3文字目 */
.page-title p:nth-child(3) {
animation-delay: 0.9s
}
/* 4文字目 */
.page-title p:nth-child(4) {
animation-delay: 1.2s
}
/* 5文字目 */
.page-title p:nth-child(5) {
animation-delay: 1.5s
}
/* 6文字目 */
.page-title p:nth-child(6) {
animation-delay: 1.8s
}

@keyframes textanimation {
0% {
    transform: translateY(2em);
}

50% {
    transform: translateY(-0.2em); 
}

100% {
    transform: translateY(0);
}
}

.title-p{
    width: 510px;
    margin: 0 auto;
    padding-bottom: 10%;
}

/*-------about-------*/
.second-section{
    height: 500px; 
}

#second-title{
    text-align: left;
    font-size: 2em; 
    padding: 25px 25px 25px 60px; 
}

.second-p{
    text-align: left; 
    padding: 25px 25px 25px 60px; 
}

/*-------works-------*/
.third-section{
    background-color: rgb(141, 106, 210);
    height: 500px; 
}

#third-title{
    text-align: left;
    font-size: 2em; 
    padding: 25px 25px 25px 60px; 
}

.third-p{
    text-align: left; 
    padding: 25px 25px 25px 60px; 
}

.works{
    display: flex;
}

#work1{    
    text-align: left; 
    padding: 15px 15px 15px 60px;
    width: 20%;
}

#work2{
    text-align: left; 
    padding: 15px 15px 15px 60px;
    width: 20%;
}

/*-------contact-------*/
.fourth-section{
    height: 500px; 
}

#fourth-title{
    text-align: left;
    font-size: 2em; 
    padding: 25px 25px 25px 60px; 
}

.fourth-p{
    text-align: left; 
    padding: 25px 25px 25px 60px; 
}

footer{
    background-color: rgb(141, 106, 210);
    height: 100px; 
}

#pagetop{
    position: fixed;
    bottom: 20px;
    right: 20px;
}

small{
    width: 100%;
    height: 100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*-------モバイル版*-------*/
@media(max-width:600px){

    .backlaurel{
        background-image: url(images/BK-6.jpg);
        background-position: left top;
        background-attachment: fixed;
        background-size: contain;
    }

    
    nav{
        flex-direction: column;
        align-items: center;
    }

    .container{
        /*flex-direction: column;*/
        margin-left: 1px;
    }

    .page-title{
        margin:0 auto;
        display: flex;
        justify-content:center;
        font-size: 70px;
    }

    .title-p{
        text-align: left;
    padding: 5% 5% 15% 5% ; 
    width:auto;
    }

    #second-title{
    text-align: left;
    padding: 15px ; 
    }

    .second-p{
        text-align: left;
    padding: 15px ; 
    }

    #third-title{
        text-align: left;
    padding: 15px ; 
    }

    /*.works{
        display: ;
    }*/

    #work1{
        text-align: left;
    padding: 25px ; 
    width:50%;
    }
    
    #work2{
        text-align: left; 
        padding: 25px;
        width: 50%;
    }



    #fourth-title{
        text-align: left;
    padding: 15px ; 
    }

    .fourth-p{
        text-align: left;
    padding: 15px ; 
    }
    #pagetop{
        position: fixed;
        bottom: 20px;
        right: 10%;
    }




}