@charset "UTF-8";

body {
    background-color: #f4f4f4;
    color: #565656;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings:"wdth" 100;
}

img {
    max-width: 100%;
}

header,
#top-img {
    width: 100%;
    margin: 0 auto;
}

li {
    list-style-type: none;
    font-size: 32px;
    margin-right: 20px;
}

a {
    text-decoration: none;
    color: #565656;
    font-style: italic;
    margin-right: 20px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: space-between;
}

nav ul li a:hover {
    color: #fff570;
}

nav img {
    display: none;
}

header img {
    height: 130px;
    margin-top: 15px;
    margin-left: 5px;
}

h1 a:hover img {
    opacity: 0.7;
}

header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    /* margin-top: 15px; */
    position: fixed;
    top: 0;
    z-index: 999;
}

.hambarger {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
}

#top-img {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    top: 240px;
    z-index: -1;
    transition: all 1s;
}

#top-img div:first-child{
    font-size: 30px;
    font-style: italic;
    text-align: center;
    padding-bottom: 24px;
}

#top-img img {
    height: 300px;
}

.opacity {
    opacity: .0;
}

.box1 {
    line-height: 1;
}




/* topのworks以降--------------------------------------- */

.main {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    background-color: #ffffff;
    margin-top: 845px;
}

h2 img {
    display: block;
}

.sec-ttl {
    position: relative;
    width: 50%;
}

.top_cat {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-80%);
    width: 30%;
    max-width: 150px;
    vertical-align: bottom;
}

.works_Lineup {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 70px;
    margin: 50px auto;
    padding: 0 20px 80px 20px;
}

.works_Lineup img {
    width: 100%;
    vertical-align: bottom;
    border-radius: 20px;
    box-shadow: 0 5px 5px 5px #e7e7e5;
}

.works_Lineup a:hover {
    opacity: 0.5;
}

.fade-in {
    opacity: 0;
    transform: translateY(100px);
    transition: all .5s;

}
.is-active {
    opacity: 1;
    transform: translateY(0);
}



/* profile/skill/works共通--------------------------------------- */

.main-others {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    background-color: #ffffff;
    margin-top: 180px;
    margin-bottom: 50px;
    padding-bottom: 80px;
}

.heading {
    width: 50%;
}



/* works詳細--------------------------------------- */

.works_top {
    width: 70%;
    margin: 0 auto;
}

.works-text1 {
    margin-left: 160px;
    margin-right: 160px;
}

.works-text2  {
    margin-top: 100px;
}

.works-text1 .item1,
.works-text2 .item1 {
    margin-top: 50px;
}

.item1,
.item2,
.item3,
.item4 {
    text-decoration: underline;
    text-decoration-thickness: 5px;
    text-decoration-color: #fff570;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bolder;
}

.works1 {
    width: 100%;
    margin: 0 auto;
}

.works1 img {
    width: 100%;
    margin-top: 70px;
    vertical-align: bottom;
    border-radius: 20px;
    box-shadow: 0 5px 5px 5px #e7e7e5;
}

.works2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
	gap: 80px 20px;
}

.works2 img {
    width: 100%;
    margin-top: 70px;
    vertical-align: bottom;
    border-radius: 20px;
    box-shadow: 0 5px 5px 5px #e7e7e5;
}

.page-next1 {
    text-align: right;
}

.page-previous,
.page-next,
.page-next1 {
    font-size: 24px;
    margin-top: 80px;
}

.page_flex {
    display: flex;
    justify-content: space-between;
}

.page-previous a,
.page-next a,
.page-next1 a {
    position: relative;
}

.page-next a,
.page-next1 a {
    padding-left: 20px;
}

.page-next a::before,
.page-next a::after,
.page-next1 a::before,
.page-next1 a::after {
    content: "";
    position: absolute;
    top: 35px;
    left: 20px;
    height: 3px;
    background-color: #fff570;
}

.page-previous a::before,
.page-previous a::after {
    content: "";
    position: absolute;
    top: 35px;
    right: 50px;
    height: 3px;
    background-color: #fff570;
}

a::before {
    width: 80px;
}

.page-next a::after,
.page-next1 a::after {
    width: 14px;
    transform-origin: right center;
    transform: translate(65px, 0px) rotate(45deg);
}

.page-previous a::after {
    width: 14px;
    transform-origin: center left;
    transform: translate(-65px, 0px) rotate(-45deg);
}

a:hover {
    color: #fff570;
}



/* profile--------------------------------------- */

.profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 50px 50px 0 50px;
}

.profile img {
    width: 100%;
    margin: 0 auto;
    margin-top: 30px;
    text-align: center;
}

.text-name,
.text-name2 {
    text-align: center;
}

.text-item,
.text-name {
    margin-top: 30px;
    font-size: 24px;
    font-weight: bolder;
    font-style: italic;
    position: relative;
    color: #424242;
}

.text-item2 {
    margin-top: 10px;
}



/* skill--------------------------------------- */

.skill {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 50px 0;
    margin-top: 70px;
    text-align: center;
}

.skill p {
    padding-top: 20px;
} 



/* footer--------------------------------------- */

.footer_cat {
    position: relative;
}

.footer_cat img {
    position: absolute;
    bottom: -5px;
    right: 20px;
    width: 20%;
    max-width: 170px;
    min-width: 120px;
}

.footer_cat2 {
    position: relative;
}

.footer_cat2 img {
    position: absolute;
    bottom: -5px;
    right: 20px;
    width: 20%;
    max-width: 170px;
    min-width: 120px;
}

.footer_cat3 {
    position: relative;
}

.footer_cat3 img {
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20%;
    max-width: 90px;
}

footer {
    background-color: #fff570;
    height: 70px;
    text-align: center;
    padding-top: 20px;
}









@media(max-width: 1100px){
    header img {
        height: 100px;
    }

    #top-img div:first-child{
        font-size: 32px;
    }

    .main {
        margin-top: 650px;
    }

    #top-img img {
        height: 200px;
    }

    #top-img p {
        font-size: 24px;
    }
    
    .works_Lineup {
        gap: 70px 50px;
    }

    .works-text1 {
        margin-right: 80px;
        margin-left: 80px;
    }

    .skill {
        gap: 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    span {
        display: inline-block;
    }
}



@media(max-width: 820px){
    .works-text1 {
        margin-left: 50px;
        margin-right: 50px;
    }
    
/* skill---------------------------------------- */

    .skill {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-right: 20px;
        padding-left: 20px;
    }

    .skill img {
        margin-top: 20px;
    }
    }





@media(max-width: 768px){
    .hambarger {
        display: block;
    }

    header nav {
        position: absolute;
        left: 50%;
        top: -1000%;
        transform: translateX(-50%);
        transition: 0.5s;
        background-color: #fff570;
        width: 100%;
        height: 100vh;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    h1 img {
        height: 100px;
    }

    nav ul li {
        text-align: center;
        margin-right: 0;
    }

    ul {
        padding-left: 20px;
    }
    
    nav.active {
        top: 0%;
    }

    nav img {
        display: flex;
        height: 120px;
        padding-top: 30px;
    }

    nav a:hover img {
        opacity: 0.7;
    }

    .hambarger img {
        height: 70px;
        margin-top: 30px;
        margin-right: 10px;
    }
    
    .close-menu {
        position: absolute;
    }
    
    .close-menu.active {
        opacity: 1;
        left: 0;
    }
    
    .open-menu.active {
        opacity: 0;
    }

    nav ul {
        flex-direction: column;
    }

    #top-img img {
        display: none;
    }

    .main {
        margin-top: 520px;
    }

    .box1 {
        order: 2;
    }

    .box2 {
        order: 1;
    }

    .box1 p:last-child {
        margin-top: 16px;
    }

    .top_cat {
        width: 120px;
    }

    .works_Lineup {
        display: block;
    }

    .works_Lineup img {
        margin-top: 50px;
    }


    
/* works---------------------------------------- */

    .works-text {
            padding-right: 20px;
            padding-left: 20px;
        }

    .works-text1 {
            margin-right: 50px;
            margin-left: 50px;
    }

    .works2 {
        display: block;
    }

    .works2 img {
        margin-top: 70px;
    }

    .works3 {
        padding-right: 20px;
        padding-left: 20px;
    }



/* profile---------------------------------------- */

    .profile {
        display: block;
        padding-right: 50px;
        padding-left: 50px;
    }

    .profile img {
        width: 40%;
    }

    .profile-img {
        display: grid;
    }


/* skill---------------------------------------- */

    .skill {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 50px 20px;
        padding-right: 10px;
        padding-left: 10px;
    }
}





@media(max-width: 500px){
    .top_cat img {
        width: 100px;
    }
    
    .footer_cat3 img {
        width: 80px;
    }

    .works_Lineup {
        margin-top: 0px;
    }

    .works-text1 {
        margin-right: 20px;
        margin-left: 20px;
    }

    .works-text2 {
        margin-top: 70px;
    }

    .works1 img {
        margin-top: 30px;
    }

    .works_top {
        width: 90%;
    }

    .works2 img {
        margin-top: 30px;
    }

    .page-previous,
    .page-next {
    font-size: 20px;
    margin-top: 80px;
    }

    .page-next a::before,
    .page-next a::after {
    left: 10px;
    }

    .page-previous a::before,
    .page-previous a::after {
    right: 0px;
    }

    .profile {
        padding-right: 18px;
        padding-left: 20px;
    }

    .profile img {
        width: 70%;
    }
}