@charset "utf-8";

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-size: 18px;
    line-height: 1.6;
    color: #2f0d34;
    font-family: 'Times New Roman', 'Baskerville', 'Yu Mincho Medium', 'YuMincho', 'Hiragino Mincho ProN', serif;
    letter-spacing: .1em;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: #f2eff7;
}

@media screen and (max-width: 640px) {
    body {
        font-size: 14px;
    }}

img {
    max-width: 100%;
    vertical-align: top;
}

p+p {
    margin-top: 15px;
}

.bg_gradient {
    background: #df81a5;
    background: linear-gradient(90deg, #df81a5 0%, #fdbb2d 100%);
}

/* ヘッダー */
header {
    padding: 30px 4% 10px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
 }
 h1 {
    margin: 0; padding: 0;
    font-size: 20px;
 }
 a {	
    text-decoration: none;
    color: #ffffff;
 }
 nav {
    margin: 0 0 0 auto;
 }
 ul {
    list-style: none;
    margin: 0;
    display: flex;
 }
 li {
    margin: 0 0 0 15px;
    font-size: 14px;
 }

 .fade-in-bottom {
    opacity: 0;
    animation-name: fadein-bottom;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;

    position: relative;
    z-index: -5;
 }
 @keyframes fadein-bottom {
    0% {
       opacity: 0;
       transform: translateY(20px);
    }
    100% {
       opacity: 1;
       transform: translateY(0);
    }
 }

 .main-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url(../images/main4.png);
    max-width: 100%;
    background-size:cover;
    background-position: center center;

        position: relative;
    z-index: -10;


 }



 h2 {
    margin: 0;
    padding-right: 30px;
    font-size: 30px;
    font-weight: normal;
    color: #fff;
 }
 
 a.button {
    display: block;
    width: 250px;
    margin: 0px 4px 50px 15px;
    padding: 15px 20px 12px 15px;

    text-align: center;
    border: 1px solid #fff;
    transition: all .3s ease-out;
}

 .sp-nav {
    display: none;
 }
 
 @media screen and (max-width: 640px) {
    .pc-nav {
       display: none;
    }

     
    .sp-nav {
       z-index: 1;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100vh;
       display: block;
       width: 100%;
       background: rgba(0, 0, 0, .8);
       opacity: 0;
       transform: translateY(-100%);
       transition: all .2s ease-in-out;
    }
    #hamburger {
       position: relative;
       display: block;
       width: 30px;
       height: 25px;
       margin: 0 0 0 auto;
    }
    #hamburger span {
       position: absolute;
       top: 50%;
       left: 0;
       display: block;
       width: 100%;
       height: 2px;
       background-color: #fff;
       transform: translateY(-50%);
    }
    #hamburger::before {
       content: '';
       display: block;
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 2px;
       background-color: #fff;
    }
    #hamburger::after {
       content: '';
       display: block;
       position: absolute;
       bottom: 0;
       left: 0;
       width: 70%;
       height: 2px;
       background-color: #fff;
    }
    /*スマホメニュー*/
    .sp-nav ul {
       padding: 0;
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: center;
       height: 100%;
    }
    .sp-nav li {
       margin: 0;
       padding: 0;
    }
    .sp-nav li span {
       font-size: 15px;
       color: #fff;
    }
    .sp-nav li a, .sp-nav li span {
       display: block;
       padding: 20px 0;
    }
    /*-閉じるアイコンー*/
    .sp-nav .close {
       position: relative;
       padding-left: 20px;
    }
    .sp-nav .close::before {
       content: '';
       position: absolute;
       top: 50%;
       left: 0;
       width: 16px;
       height: 1px;
       background: #fff;
       transform: rotate( 45deg );
    }
    .sp-nav .close::after {
       content: '';
       position: absolute;
       top: 50%;
       left: 0;
       width: 16px;
       height: 1px;
       background: #fff;
       transform: rotate( -45deg );
    }
    .toggle {
       transform: translateY( 0 );
       opacity: 1;
    }
    .main-visual {
       padding: 0 4%;
    }
    h2 {
       line-height: 1.6;
       text-align: center;
    }
 }



section {
    padding: 80px 0;
}

.inner {
    width: 1000px;
    max-width: 100%;
    margin-inline: auto;

}

.inner2 {
    width: 960px;
    max-width: 90%;
    padding-bottom: 5%;
    margin-inline: auto;
    background-color: rgba(240, 240, 240, 0.7);

}

.title {
    color: #2f0d34;
    font-size: 50px;
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.title:before,
.title:after {
    border-top: 1px solid;
    content: "";
    width: 3em;
}

.title:before {
    margin-right: 1em;
}

.title:after {
    margin-left: 1em;
}

.profole_img {
    float: left;
    margin: 0 15px 30px 15px;
    width: 300px;
}

.textabout{
    margin: 0 15px 10px 15px;

}


/* ワークス　原本 */
.WORKS {
    background-image: url(../images/sora3.png);
    background-attachment: fixed;
    background-size: cover;
    color: #2f0d34;
    background: #f2eff7;

}

.works_img {
    background-color: #FFFFFF;
    background-size: cover;
    padding: 10px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery_box:nth-of-type(even) .works_img {
    background-size: contain;
}

.works_img img {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    width: 100%;
height: 100%;
}

.works_info {
    margin-top: auto;
    background: #e7e2f0;
    padding: 10px;
    font-size: 14px;
}

.works_gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
}

.gallery_box {
    display: flex;
    flex-direction: column;
}

.gallery_box>p {
    margin: 0 0 20px;
}



.works_btn {
    text-align: center;
}

.works_btn a {
    border: 1px solid #2f0d34;
    border-radius: 30px;
    padding: 10px 90px;
    display: inline-block;
    margin: 30px 0;
    color: #2f0d34;
    text-decoration: none;
    background-color: #fff;
}

.works_btn a:hover {
    background-color: #9d84a1;
}

/* 自己紹介 */
.about {
    background-image: url(../images/sea.jpg);
    background-attachment: fixed;
    background-size: cover;
}


/* スキル */
.skills {
    background-image: url(../images/pink.jpg);
    background-attachment: fixed;
    background-size: cover;
    color: #2f0d34;
    
}

.skills_img {
    background-size: cover;
    padding: 10px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery_box:nth-of-type(even) .skills_img {
    background-size: contain;
}

.skills_img img {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.skills_info {
    margin-top: auto;
    background: #e7e2f0;
    padding: 10px;
    font-size: 14px;
}

.skills_gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 30px;
}


.gallery_box {
    display: flex;
    flex-direction: column;
}

.gallery_box>p {
    margin: 0 0 10px;
    text-align: center;
}



/* コンタクト */
.contact {
    background-image: url(../images/yama.jpg);
    background-attachment: fixed;
    background-size: cover;
}

.textabout2{
    margin: 0 15px 10px 15px;
    text-align: center;

}

.contact_btn {
    text-align: center;
}

.contact_btn a {
    border: 1px solid #2f0d34;
    border-radius: 30px;
    padding: 10px 90px;
    display: inline-block;
    margin: 30px 0;
    color: #2f0d34;
    text-decoration: none;
    background-color: #fff;
}

.contact_btn a:hover {
    background-color: #9d84a1;
}



/* フッター */
.footer_logo {
    text-align: center;
    padding: 20px 0;
}

.footer_logo img {
}

.copyright {
    text-align: center;
    padding: 10px;
    font-size: 14px;
}



@media screen and (max-width:1000px) {
    .works_gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery_box {
        margin: 15px;
    }

    .skills_gallery {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

}

@media screen and (max-width:600px) {
    .profole_img {
        width: 45%;
    }

    .about_box {
        width: 90%;
        margin: 0 auto 50px;
    }

    .works_gallery {
        display: grid;
        grid-template-columns: 1fr;
    }

    .skills_gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:480px) {
    .skills_gallery {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        text-align: center;}
    
    }

/* ポップアップ */
