@charset "UTF-8";

/*
VARIABLES
================================================ */
:root {
    --light-green: #d5edeb;
    --green: #63dbd0;
    --brown: #403632;
    --light-grey: #eee;
    --white: #fff;
    --silver: linear-gradient(#c0c0c0);
    --oswald-font: 'Oswald', sans-serif;

}

/*
GENERAL STYLING
================================================ */
body {
    color: var(--brown);
    background: #fff  no-repeat right bottom / cover fixed;
    text-align: center;
}

/*
COMMON
================================================ */
p {
    line-height: 1.7;
}
img {
    max-width: 100%;
}
.title {
    font-family: var(--oswald-font);
    font-size: min(10vw, 4rem);
    margin-bottom: 2rem;
}
.btn {
    color: var(--white);
    background: var(--brown);
    border: 1px solid var(--brown);
    text-decoration: none;
    padding: 1rem;
    display: inline-block;
    margin: 2rem 0;
    transition: .4s;
}
.fadein{
    opacity: 0;
}

/*
LAYOUT
================================================ */
.wrapper {
    max-width: 38rem;
    margin: auto;
    padding: 0 1rem;
}

/*
LOADING
================================================ */
#load {
    background-color: var(--light-grey);
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
}
#loading-screen {
    background-color: var(--light-green);
    position: fixed;
    inset: 0;
    z-index: 9998;
    translate: 0 100vh;
}
#load p {
    font-size: 2rem;
    font-family: var(--oswald-font);
}

/*
SLIDE MENU
================================================ */
/* 開閉ボタン */
.btn-menu {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 4;
    padding: .5rem 1rem;
    border: 1px solid var(--brown);
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    transition: .4s;
}
.btn-menu svg {
    fill: var(--brown);
    margin-top: .25rem;
    height: 2rem;
    width: 2rem;
}

/* 閉じるボタン */
#menu-close {
    border: 1px solid var(--light-green);
}
#menu-close svg {
    fill: var(--light-green);
}

/* スライドメニューパネル */
#menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    padding: 8rem 2rem 2rem;
    width: max(32vw, 20rem);
    height: 100vh;
    background-color: var(--brown);
    box-shadow: 0 0 2rem var(--brown);
    font-family: var(--oswald-font);
    translate: 100vw;
}
.nav-list {
    list-style: none;
}
.nav-list li {
    margin: 1.5rem 0;
    opacity: 0;
}
.nav-list a {
    color: var(--light-green);
    text-decoration: none;
    font-size: 2rem;
}

/*
HERO
================================================ */
.hero {
    height: 100vh;
    position: relative;
}
.hero::after {
    content: '';
    width: 50%;
    height: 100vh;
    background: url('../images/uranokao.jpg') no-repeat center / cover;
    position: absolute;
    inset: 0;
}
.hero .title {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 2;
    width: 100%;
    font-size: max(12vw, 3rem);
    line-height: 1.2;
}

/*
about
================================================ */
.about {
    margin: 8rem 0;
    background-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 20%,
        var(--light-grey) 20%,
        var(--light-grey) 100%
    );
}
.about p {
    text-align: left;
    margin-bottom: 2rem;
}

/*
works
================================================ */
.works {
    display: flex;
    flex-direction: column-reverse;
}
.works-image {
    width: min(100%, calc(38rem - 2rem));
    margin: auto;
    position: relative;
}

.works-image::after {
    display: block;
    content: '';
    width: calc(100% - 2rem);
    height: calc(100% - 2.5rem);
    z-index: 3;
    border: 3px solid var(--white);
    top: 1rem;
    left: 1rem;
    position: absolute;
}
.works-image img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}
.works-thumbnails {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 1rem 0;
}
.works-thumbnails img {
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
}


/*
skills
================================================ */
#skills h2 {
    font-size: 4rem;
    text-align: center;
}

#skills .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.skill {
    text-transform: inherit;
    text-align: center;
    padding: 1rem;
  }
  
  .skill img {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    object-fit: contain;
    transition: .7s;
    &:hover {
      filter: drop-shadow(5px 10px 3px #856845);
      transform: scale(1.2);
    }
  }

/*
contact
================================================ */
.contact {
    background: url('../images/植物背景.jpg') no-repeat center top / cover;
    margin-top: 16rem;
    position: relative;
    height: 40rem;
}
.contact-content {
    background: var(--white);
    position: absolute;
    top: 6rem;
    width: 90vw;
    left: 0;
    right: 0;
}
.contact h3 {
    margin: 1rem 0;
    padding-top: 2rem;
    font-weight: normal;
    /* border-top: 1px solid var(--light-grey); */
}

.copyright {
    background-color: #432;
    text-align: center;
    padding: 2rem 0;
    /* margin-top: 6rem; */
    color: #fff;
}

/*
DESKTOP SIZE
================================================ */
@media(min-width: 800px){
/* COMMON */
    .title {
        margin-bottom: 3rem;
    }
    .btn:hover {
        color: var(--brown);
        background: var(--green);
    }

/* SLIDE MENU */
    .btn-menu:hover {
        background-color: var(--light-green);
    }
    #menu-close:hover svg {
        fill: var(--brown);
    }
    .nav-list a:hover {
        transition: .4s;
        color: var(--green);
    }

/* about*/
    .about {
        display: flex;
        margin: 16rem 0;
    }

    .reverse {
        flex-direction: row-reverse;
    }

    .about p {
        text-align-last: left;
    }
    .about img {
        margin: -6rem 0;
        max-width: 38rem;
    }
    

/* GALLERY */
    .works {
        flex-direction: row;
    }
    .works-image {
        width: 50vw;
        margin: 0 auto;
    }
    .works-image img {
        height: 90vh
    }
    .works-content {
        width: 30vw;
    }
    .works-thumbnails {
        gap: 2vw;
        grid-template-columns: repeat(3, 1fr);
    }

    .works-thumbnails img:hover {
        box-shadow: 0 0 1rem rgba(0,0,0,.4);
        transition: .4s;
    }

    /* skill */

    #skills h2 {
        font-size: 4rem;
        text-align: center;
    }
    
    #skills .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 26px;
    }

    .skills {
        margin: 8rem 0;
    }
    
    .skill {
        text-transform: inherit;
        text-align: center;
        padding: 1rem;
      }
      
      .skill img {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
        object-fit: contain;
        transition: .7s;
        &:hover {
          filter: drop-shadow(5px 10px 3px #856845);
          transform: scale(1.2);
        }
      }

/* contact */
    .contact {
        margin-top: 20rem;
        height: 50rem;
    }
}