@charset "UTF-8";

/*
GENERAL STYLING
================================================ */
body {
    text-align: center;
}

/* Adobe Fonts */
h1 {
    font-family: "cormorant-infant", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
}

/* Adobe Fonts */
h2, .menu-list {
    font-family: "cormorant-infant", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.5rem;
}

/* Adobe Fonts */
.title-font {
    font-family: "nort", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3rem;
}

/* Adobe Fonts */
.font-change {
    font-family: "cormorant-infant", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 120%;
}

.font-color {
    color: #fff;
}

/* Adobe Fonts */
p, figcaption {
    font-family: "nort", sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* Adobe Fonts */
.nav-c {
    font-size: 3rem;
    color: #ff117a;
    font-family: "cormorant-infant", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Adobe Fonts */
.nav-other {
    font-family: "nort", sans-serif;
    font-weight: 200;
    font-style: normal;
}









/*
COMMON
================================================ */
section {
    /* 背景画像のサイズ指定 */
    height: 100vh;
    background-repeat: no-repeat;
}
















/*
TOP
================================================ */
/* ローディング画面 */
#loading {
  background-color: #fff;
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
}

.loader {
  width: 85px;
  animation: l2 1s infinite linear;
}
@keyframes l2 {to{transform: rotate(1turn)}}

.loaded {
    opacity: 0;
    visibility: hidden;
}








.top {
    background-image: url(../images/top.jpg);
    background-size: contain;
    background-position: top center;
    padding-top: 70vh;
}

.top h1 {
    color: #b3995b;
    letter-spacing: .03rem;
    margin: 20px 0 100px;
}





/* ナビゲーション */
.nav-c {
    float: left;
    margin: 40px 570px 0 110px;
    color: #ff117a;
}

.nav-other {
    float: left;
    margin: 52px 34px 0 34px;
    font-size: 1.5rem;
    color: #fff;
}

header {
    position: sticky;
    top: 0;
    z-index: 200;
}

#nav-pc {
    display: block;
}

#nav-mobile {
    display: none;
}




/* ナビゲーションここまで */




/*上下にバウンドして動く矢印*/
.arrows {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.arrows .arrow {/*矢印を配置するベースの設定*/
  position: absolute;
  width: 80px;
  animation: arrow-move09 2s infinite ease-in-out;
}
.arrows .arrow::before,
.arrows .arrow::after {/*矢印全体の設定*/
  position: absolute;
  content: '';
  width: 40px;
  height: 2px;
  background: #b3995b;
  border-radius: 10px;
}
.arrows .arrow::before {/*矢印左の線の位置と傾斜*/
  left: 3.5px;
  transform: rotate(30deg);
}
.arrows .arrow::after {/*矢印左の線の位置と傾斜*/
  right: 3.5px;
  transform: rotate(-30deg);
}
@keyframes arrow-move09 {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0);}
  48% {transform: translateY(-20px);}
  60% {transform: translateY(-15px);}
}/* 矢印ここまで */













/*
ABOUT
================================================ */
.about {
    background-image: url(../images/milkyway.jpg);
    background-size: cover;
    background-position: center center;
}

.about h1 {
    padding: 120px 0 70px;
}

.about p {
    font-size: 22px;
    line-height: 5.5rem;
}

.diamond {
    height: 100vh;
    background-image: url(../images/diamond-right.png), url(../images/diamond-left.png);
    background-size: 125px;
    background-position: right bottom, left 50%;
    background-repeat: no-repeat, no-repeat;
}











/*
WORKS
================================================ */
.works {
    background-color: #fff;
    height: auto;
}

.krul {
    width: 450px;
    margin: 120px auto 0 auto;
}

.krul:last-child {
    margin-bottom: 100px;
}

.works h1 {
    margin: 50px auto 100px auto;
}

.gallery-image {
    border: solid 1px #b3995b;
}

.gallery-box figcaption {
    margin-top: 20px;
}



/* ギャラリーレイアウト */
.gallery-box {
    width: 1000px;
    margin: 0 auto 0 auto;
    overflow: hidden;
}

/* work1~4のスペース配分 */
.gallery-box figure {
    float: left;
    width: 450px;
    margin: 0 0 150px 100px;
}

.gallery-box figure:nth-child(1),
.gallery-box figure:nth-child(3) {
    margin-left: 0;
}

.gallery-image {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.gallery-box figure:nth-child(3) > img,
.gallery-box figure:nth-child(4) > img {
    object-fit: contain;
    width: 70%;
    height: 70%;
}

.gallery-box figure:nth-child(3),
.gallery-box figure:nth-child(4) {
    margin-bottom: 0;
}
/* ギャラリーレイアウトここまで */
/* なぜかデスクトップサイト表示でのみfigcaptionが崩れるので以下を設定 */
figcaption.fadein {
  display: block;
  opacity: 0;
  transform: translateY(20px); /* 下からせり上げる */
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-top: 20px; /* 画像との間隔 */
  text-align: center; /* 中央寄せ */
  font-size: 16px; /* 指定サイズ */
}

figcaption.fadein.show {
  opacity: 1;
  transform: translateY(0);
}









/*
SKILLS
================================================ */
.skills {
    background-image: url(../images/angel.jpg);
    background-size: 90% auto;
    background-position: bottom right;
    background-color: #b3995b;
}

.skills h1 {
    padding-top: 8%;
}

.skills h2 {
    padding-top: 3.5%;
    line-height: 6rem;
}

.skills img {
    height: 35%;
}

.pearl {
    height: 100vh;
    background-image: url(../images/pearl-right.png), url(../images/pearl-left.png);
    background-size: 80px;
    background-position: right 20%, left bottom;
    background-repeat: no-repeat, no-repeat;
}

/* デフォルトはデスクトップを表示、モバイルは非表示(aboutも同様) */
.pc {
    display: block;
}
.mobile {
    display: none;
}









/*
CONTACT
================================================ */
.contact {
    height: 50vh;
    background-color: #fff;
    padding: 0px;
}

.contact p {
    font-size: 1.3rem;
    padding-top: 105px;
}

.contact h1 {
    padding-top: 20px;
}

.contact h1:hover {
    color: #ff117a;
    transition:  color .8s;
}

.fa-arrow-up-right-from-square {
    font-size: 1rem;
    vertical-align: 3%;
}

footer p {
    padding-bottom: 10px;
}







/*
JavaScript
================================================ */
/* 要素が下からせり上がりぼやけがはっきりする動作 */
/* fadeinのアニメーション */
.fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fadein.show {
  opacity: 1;
  transform: translateY(0);
}




/* テキストアニメーション */
@keyframes showTextFromBottom {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0px);
    }
}

.textAnimation span {
    display: inline-block;
}

.textAnimation > span {
    overflow: hidden;
}

.textAnimation > span > span {
    animation: showTextFromBottom cubic-bezier(0, 0.8, 0.2, 1) 1s backwards;
}
/* テキストアニメーションここまで */




/* works セクションでのみ .nav-color-change が #000 */
.nav-color-change.nav-black {
    color: #000;
}




















/*
MOBILE SIZE
================================================ */
@media (max-width: 700px) {
    
    /* GENERAL STYLING======================== */
    h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2.8rem;
    }




    /* top======================== */
    /* ローディング画面 */
    .loader {
        width: 75px;
    }

    /* ナビゲーション */
    #nav-pc {
        display: none;
    }

    #nav-mobile {
        display: block;
    }
    
    #nav-mobile .nav-c {
        font-size: 2.5rem;
        margin: 25px 0 0 40px;
    }

    /* スライドメニュー */
    /* 開閉ボタン */
    .btn-menu {
        color: #fff;   /* worksセクションで黒くなるためのコード */
        position: fixed;
        right: 16px;
        top: 16px;
        z-index: 4;
        padding: 8px 16px;
        height: 64px;
        width: 64px;
        transition: 4s;
    }

    .btn-menu svg {
        fill: currentColor;    /* worksセクションで黒くなるためのコード */
        margin-top: 4px;
        height: 32px;
        width: 32px;
    }

    /* 閉じるボタン */
    #menu-close svg {
        fill: #fff;    /* worksセクションで黒くなるためのコード */
    }

    /* スライドメニューパネル */
    #menu-panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 4;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, .3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        translate: 100vw;
    }

    .menu-list {
        list-style: none;
    }

    .menu-list li {
        margin: 80px 0 0;
    }

    .menu-list li:first-child {
    margin: 120px 0 0;
    }

    .menu-list a {
        color: #fff;
        text-decoration: none;
    }
    /* スライドメニューここまで */
    /* ナビゲーションここまで */



    .top {
        background-image: url(../images/top-m.jpg);
        background-size: 100% auto;
        background-position: top center;
        padding-top: 70vh;
    }

    .top h1 {
        margin: 50px 0 100px;
        letter-spacing: 0;
        font-size: 2.2rem;
    }




    /* about======================== */
    .about {
        height: auto;
        background-image: url(../images/milkyway-m.jpg);
        background-size: 100% auto;
        background-position: top center;
    }

    .about h1 {
        padding: 165px 0 50px;
    }

    .about p {
        font-size: 15px;
        line-height: 2rem;
    }

    .diamond {
        height: 100%;
        padding-bottom: 165px;
        background-image: url(../images/diamond-m-top.png), url(../images/diamond-m-bottom.png);
        background-size: 45px;
        background-position: center 80px, center 92%;
        background-repeat: no-repeat, no-repeat;
    }














    /* works======================== */
    .krul {
        width: 270px;
        margin: 100px auto 0 auto;
    }

    .krul:last-child {
        margin: 0 0 100px;
    }

    .works h1 {
        margin: 50px auto 100px auto;
    }


    
    /* ギャラリーレイアウト */
    .gallery-box {
        width: 380px;
        margin: 0 auto 0 auto;
        overflow: visible;
    }

    /* work1~4のスペース配分 */
    .gallery-box figure {
        float: none;
        width: 350px;
        margin-bottom:100px;
        margin-left: 15px;/* これだけだとなぜかwork1,3がずれる */
    }

    .gallery-box figure:nth-child(1),
    .gallery-box figure:nth-child(3) {
        margin-left: 15px;/* これを加えるとなぜかwork1,3がずれない */
    }

    .gallery-image {
        object-fit: contain;
        width: 70%;
        height: 70%;
    }

    .gallery-box figure:nth-child(3) > img,
    .gallery-box figure:nth-child(4) > img {
        object-fit: contain;
        width: 70%;
        height: 70%;
    }

    .gallery-box figure:nth-child(3),
    .gallery-box figure:nth-child(4) {
        margin-bottom: 100px;
    }
    /* ギャラリーレイアウトここまで */








    /* skills======================== */
    .skills {
        height: auto;
        background-image: url(../images/angel-m.jpg);
        background-size: contain;
        background-position: center center;
        background-color: #b3995b;
    }

    .skills h1 {
        padding-top: 150px;
        padding-bottom: 15px;
    }

    .skills h2 {
        padding-top: 13px;
        line-height: 3rem;
    }

    .skills img {
        height: 35%;
    }

    .pearl {
        height: 100%;
        padding-bottom: 150px;
        background-image: url(../images/pearl-m.png), url(../images/pearl-m.png);
        background-size: 50px;
        background-position: center 80px, center 92%;
        background-repeat: no-repeat, no-repeat;
    }

    /* スマホサイトならモバイルを表示、デスクトップを隠す(aboutも同様) */
    .pc {
        display: none;
    }
    .mobile {
        display: block;
    }





    /* contact======================== */
    .contact {
        height: 25vh;
        background-color: #fff;
        padding: 0px;
    }

    .contact p {
        font-size: 1.2rem;
        padding-top: 70px;
    }

    .contact h1 {
        padding-top: 10px;
        font-size: 2rem;
    }

    .contact h1:hover {
        color: #ff117a;
        transition:  color .8s;
    }

    .fa-arrow-up-right-from-square {
        font-size: .75rem;
        vertical-align: 3%;
    }







    /* JavaScript======================== */
    .no-scroll {
        overflow: hidden;
    }





    
}