@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600;700;900&display=swap');

/* 全体設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif JP', serif;
    color: #14171a;

}

html {
    font-size: 100%;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

body {
    background-color: #FAACA8;
    background-image: linear-gradient(19deg, #FAACA8 0%, #DDD6F3 50%, #ffffff 100%);
}

/* linear-gradient(19deg, #FAACA8 0%, #DDD6F3 50%, #ffffff 100%) */


.wrapper {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#about,
#skills,
#works {
    background-color: #ffffff;
    padding: 53px;
}

#about,
#skills {
    margin-bottom: 150px;
}

header .wrapper {
    margin-bottom: 0;
}

.section-title {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 60px;
    border-bottom: 1px solid #383e45;
}

.content-title {
    font-size: 1rem;
    margin: 10px 0;
}

/* マウスストーカー */
#mouse-stalker {
    pointer-events: none;
    position: fixed;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: rgba(255, 179, 221, 0.4);
    border-radius: 50%;
    transform: translate(0, 0);
    transition: transform 0.2s;
    transition-timing-function: ease-out;
    z-index: 999;
}

/* ヘッダー設定 */

header {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.8);
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2%;
    max-width: none;
}

header h1 a {
    color: #fafafa;
    background-color: #a278bd88;
    padding: 0 1rem;
}

header nav ul {
    display: flex;
    padding: 10px 0;
}

header li {
    margin-left: 30px;
    letter-spacing: 1px;
}

header li a {
    color: #a278bd88;
    font-weight: 700;
}

header li a:hover {
    opacity: 0.7;
}

/* メインビジュアル */
main {
    margin-top: 66px;

}

#mainvisual {
    position: fixed;
    top: 66px;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

#mainvisual h1 {
    position: absolute;
    z-index: 2;
    top: 9%;
    left: 2%;
    text-align: left;
    font-size: 5rem;
    letter-spacing: 0.2em;
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

#mainvisual h1 br {
    display: block;
    content: "";
    margin-bottom: 1rem;
}

#mainvisual img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* スライダー */
.slider {
    position: relative;
    height: 100vh;
    /*スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/
    list-style: none;
}


/*　背景画像設定　*/

.slider-item01 {
    background: url(img/main1.jpg);
}

.slider-item02 {
    background: url(img/main2.jpg);
}

.slider-item03 {
    background: url(img/main3.jpg);
}

.slider-item {
    width: 100%;
    /*各スライダー全体の横幅を画面の高さいっぱい（100%）にする*/
    height: 100vh;
    /*各スライダー全体の縦幅を画面の高さいっぱい（100vh）にする*/
    background-repeat: no-repeat;
    /*背景画像をリピートしない*/
    background-position: center;
    /*背景画像の位置を中央に*/
    background-size: cover;
    /*背景画像が.slider-item全体を覆い表示*/
}

.slick-track {
    height: 100vh;
}

#container {
    background-color: #FAACA8;
    background-image: linear-gradient(19deg, #FAACA8 0%, #DDD6F3 50%, #ffffff 100%);
    margin-top: 100vh;
    padding-top: 150px;
    padding-bottom: 150px;
}


/* スクロールダウン */

/*スクロールダウン全体の場所*/
.scrolldown {
    /*描画位置*/
    position: absolute;
    bottom: 30px;
    left: 50%;
}

/*Scrollテキストの描写*/
.scrolldown span {
    /*描画位置*/
    position: absolute;
    left: 10px;
    bottom: 10px;
    /*テキストの形状*/
    color: #ffffff;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-weight: bold;
    /*縦書き設定*/
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}

/* 丸の描写 */
.scrolldown:before {
    content: "";
    /*描画位置*/
    position: absolute;
    bottom: 0;
    left: -4px;
    /*丸の形状*/
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    /*丸の動き1.6秒かけて透過し、永遠にループ*/
    animation:
        circlemove 1.6s ease-in-out infinite,
        cirlemovehide 1.6s ease-out infinite;
}

/*下からの距離が変化して丸の全体が上から下に動く*/
@keyframes circlemove {
    0% {
        bottom: 45px;
    }

    100% {
        bottom: -5px;
    }
}

/*上から下にかけて丸が透過→不透明→透過する*/
@keyframes cirlemovehide {
    0% {
        opacity: 0
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

/* 線の描写 */
.scrolldown:after {
    content: "";
    /*描画位置*/
    position: absolute;
    bottom: 0;
    left: 0;
    /*線の形状*/
    width: 2px;
    height: 50px;
    background: #ffffff;
}

/* ABOUT */

#about .content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#about img {
    width: 250px;
    height: 250px;
    /* 丸く切り抜く */
    border-radius: 50%;
    /* 画像の右側に余白を置き、テキストとの距離を保つ */
    margin-right: 50px;
}

#about .text {
    text-align: left;
}

/* PHOTO,WORKS */

#skills ul,
#works ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#skills li {
    width: 32%;
}

#works li {
    width: 32%;
    margin-bottom: 30px;
}

#skills img,
#works img {
    width: 100%;
    /* height: 50%; ←親要素である<li>の高さが指定されてないので指定しない*/
    object-fit: cover;
}

#works li a:hover {
    opacity: 0.7;
}

.space {
    margin-bottom: 10px;
}

/* フッター */

footer {
    padding: 20px 0;
    text-align: center;
}



/* ハンバーガーメニュー */
.site-header-navbtn {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 1;
}

.site-header-navbtn span,
.site-header-navbtn::before,
.site-header-navbtn::after {
    width: 30px;
    height: 1px;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 5px;
    transition: transform .4s;
}

.site-header-navbtn::before,
.site-header-navbtn::after {
    content: '';
}

.site-header-navbtn::before {
    transform: translateY(-8px);
}

.site-header-navbtn::after {
    transform: translateY(8px);
}

body.is-nav-open .site-header-navbtn span {
    transform: scaleX(0);
}

body.is-nav-open .site-header-navbtn::before {
    transform: translateY(0) rotate(45deg);
}

body.is-nav-open .site-header-navbtn::after {
    transform: translateY(0) rotate(-45deg);
}


/* SP */

@media screen and (max-width:599px) {
    .wrapper {
        margin-bottom: 100px;

    }

    header .wrapper,
    .wrapper p {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #about .content {
        flex-direction: column;
    }

    #about img {
        margin-right: 0;
        margin-bottom: 3rem;
    }


    #about .text {
        text-align: center;
    }

    #skills ul,
    #works ul {
        flex-direction: column;
    }

    #skills li,
    #works li {
        width: 100%;
        margin-bottom: 2rem;
    }

}

@media screen and (max-width: 768px) {

    /* スクリーンサイズが768pxまでのスタイルを記述 */
    .site-header-navbtn {
        display: block;
    }

    .site-header-nav {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background-color: #2e2b3ad9;
        transform: translateX(-100%);
        transition: transform .6s;
    }

    body.is-nav-open .site-header-nav {
        transform: translateX(0);
    }

    .site-header-nav ul {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .site-header-nav ul li {
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .site-header-nav ul li a {
        font-size: 1.5rem;
        color: #ffffff;
    }

    #mouse-stalker {
        display: none;
    }

    #mainvisual h1 {
        font-size: 2.5rem;
    }

}