@charset "UFT-8";

html {
    scroll-behavior: smooth;
}

body {
    background-image: url(../images/bg.png);
    background-position: center center;
    background-repeat: repeat;

    display: flex;

    font-family: "M PLUS 1";
}

.p-big {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.title-sub {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin-left: 1rem;
}

.title-sub-white {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin-left: 1rem;
}

.button-link {
    text-decoration: none;
}

.menu-button-link {
    text-decoration: none;
}

.l-button {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;

    margin-bottom: 2rem;
}

.l-menu-button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;

    margin-bottom: 2rem;
}

.button {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.menu-button {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.circle {
    color: #FFFDF6;
    text-align: center;
    align-items: center;
    padding-top: 0.25rem;

    background-color: #E47716;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 2rem;
}

.menu-circle {
    color: #FFFDF6;
    text-align: center;
    align-items: center;
    padding-top: 0.25rem;

    background-color: #E47716;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 2rem;
}

.border {
    border: 1px dashed #E47716;
}

.border-white {
    border: 1px dashed #FFFDF6;
}

.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* aside */
.nav {
    position: fixed;
}

.nav-right {
    display: none;
}


.logo {
    margin-top: 3rem;
    margin-left: 5rem;
    margin-bottom: 4rem;
}

.side-nav {
    margin-left: 5rem;
}

.side-item {
    padding-left: 0;

}

.side-list {
    list-style: none;
    margin: 1rem 0 1rem 0;
}

.side-p {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.side-p:hover {
    color: #ae5a11;
}

.menu-item {
    display: none;
}

/* main */
main {
    width: 25.875rem;
    margin: 0 auto;
}

.mainvisual {
    width: 20.9375rem;
    height: 35.8125rem;

    margin: 0 auto;
    margin-top: 5rem;
    margin-bottom: 4rem;
}

/* scroll */
.scroll_down {
    position: relative;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.scroll_down:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
}

.scroll_down a {
    display: inline-block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 0.2rem;
    color: #E47716;
    transition: .2s;
    margin: auto;
}

.scroll_down a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 0.2rem;
    height: 4rem;
    background: #ececec;
}

.scroll_down a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 4rem;
    background: #E47716;
}

.scroll_down a:hover {
    opacity: .5;
}

#type01 a:after {
    animation: sdl01 3s cubic-bezier(1, 1, 1, 1) infinite;
}

@keyframes sdl01 {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    50.1% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

/* about */
#about {
    margin: 0 2.31rem;
}

.about-title {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    padding-top: 3rem;
    margin-bottom: 1.38rem;
}

.about-p {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin-bottom: 1rem;
}

/* skill */
#skill {
    background-color: #E47716;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.skill-title {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    margin: 0 2.31rem;
    padding-top: 3.25rem;
    margin-bottom: 1rem;
}

.skill-content {
    margin: 0 2.31rem 2rem 2.31rem;
}

.skill-content-title {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    border-bottom: 2px dotted #FFFDF6;
    margin-bottom: 0.5rem;
}

.skill-content-p {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin-top: 0.5rem;
}

.skill-padding {
    padding-bottom: 3.25rem;
}

/* work */

#work {
    margin: 2.5rem 2.31rem 0 2.31rem;
}

.work-content {
    margin-bottom: 3rem;
}

.work-title {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    margin-bottom: 1rem;
}

.work-img {
    object-fit: cover;
    margin: 0 auto;
}

.work-content-title {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.category {
    background-color: #E47716;
    border-radius: 0.5rem;
    width: 3.35025rem;
    height: 1.58694rem;

    margin-top: 0.3rem;
}

.category p {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    text-align: center;
}

.work-p {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin-top: 1rem;
}

.work-p-sub {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.link-p {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    margin: 0;
}

/* gallery */
.gallery-title {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    margin-bottom: 1rem;
}

.gallery-img {
    display: flex;
    gap: 0.8rem;

    margin-bottom: 1rem;
}

.gallery-img img {
    object-fit: cover;
}

/* footer */
.footer {
    background-color: #E47716;
    border-radius: 1.25rem 1.25rem 0rem 0rem;
    margin-top: 3rem;
}

.footer-contact-title {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    text-align: center;
    padding-top: 2.75rem;
}

.footer-contact-p {
    color: #FFFDF6;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    text-align: center;
}

.footer-contact-link {
    text-decoration: none;
}

.footer-contact-button {
    background-color: #FFFDF6;
    width: 14.1875rem;
    height: 4.25rem;
    border-radius: 0.625rem;
    margin: 3.25rem auto 4rem auto;

}

.footer-contact-button-p {
    color: #E47716;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    text-align: center;
    padding-top: 1.38rem;
}

.footer-logo {
    padding-top: 2rem;
    padding-left: 2rem;
    padding-bottom: 1rem;
}

.footer-p {
    color: #FFF;
    font-family: "M PLUS 1p";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;

    text-align: center;
    padding-bottom: 0.5rem;
}


@media screen and (max-width: 800px) {
    .nav {
        display: none;
    }

    .nav-right {
        position: fixed;
    }

    /*========= ナビゲーションのためのCSS ===============*/

    #g-nav {
        /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
        position: fixed;
        z-index: -1;
        opacity: 0;
        /*はじめは透過0*/
        /*ナビの位置と形状*/
        top: 0;
        width: 100%;
        height: 100vh;
        /*ナビの高さ*/
        background-image: url(../images/ham-bg.png);
        /*動き*/
        transition: all 0.3s;
    }

    /*アクティブクラスがついたら透過なしにして最前面へ*/
    #g-nav.panelactive {
        opacity: 1;
        z-index: 999;
    }

    /*ナビゲーションの縦スクロール*/
    #g-nav.panelactive #g-nav-list {
        /*ナビの数が増えた場合縦スクロール*/
        position: fixed;
        z-index: 999;
        width: 100%;
        height: 100vh;
        /*表示する高さ*/
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /*ナビゲーション*/
    #g-nav ul {
        display: none;
        /*ナビゲーション天地中央揃え*/
        position: absolute;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #g-nav.panelactive ul {
        display: block;
    }

    /*リストのレイアウト設定*/

    #g-nav li {
        list-style: none;
        text-align: center;
    }

    #g-nav li a {
        color: #FFFDF6;
        text-decoration: none;
        padding: 10px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: bold;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        position: fixed;
        z-index: 9999;
        /*ボタンを最前面に*/
        top: 10px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
    }

    /*×に変化*/
    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: #ae5a11;
        width: 45%;
    }

    .openbtn span:nth-of-type(1) {
        top: 15px;
    }

    .openbtn span:nth-of-type(2) {
        top: 23px;
    }

    .openbtn span:nth-of-type(3) {
        top: 31px;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.active span:nth-of-type(3) {
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }


}