@charset "utf-8";

body {
    color: rgb(80, 50, 0);
    background-color: rgb(255, 252, 219);
    font-family: sans-serif;
}

h1,
nav,
h2 {
    font-family: "Mochiy Pop One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* TOPページ */
header,
.works,
.about {
    width: 75%;
    margin: 0 auto;
    margin-bottom: 20vw;
}

#top {
    display: flex;
    justify-content: space-between;
    height: 56.25vw;
}

h1 {
    height: 18vw;
    font-size: 4vw;
    padding-top: 3.5vw;
    padding-bottom: 3.5vw;
    padding-left: 5.2vw;
    padding-right: 5.2vw;
    background-color: rgb(80, 50, 0);
    color: rgb(255, 252, 219);
    position: relative;
    white-space: nowrap;
    align-self: center;
}

h1:after {
    position: absolute;
    border: 0.3vw solid rgb(255, 252, 219);
    content: "";
    top: 2.5vw;
    bottom: 2.5vw;
    right: 2.5vw;
    left: 2.5vw;
}

#image-1 img,
#image-2 img,
#image-3 img {
    width: 100%;
    height: auto;
}

ul {
    list-style-type: none;
    display: flex;
}

li {
    text-align: center;
    margin-top: 2.6vw;
}

nav li a {
    display: block;
    width: 11.4vw;
    height: 4vw;
    line-height: 4.2vw;
    font-size: 2.5vw;
    color: rgb(80, 50, 0);
    text-decoration: none;
    font-weight: bold;
}

nav li a:hover {
    color: rgb(255, 252, 219);
    background-color: rgb(80, 50, 0);
    border-radius: 0.6vw;
}

header {
    position: relative;
}

#main-image p {
    max-width: 40%;
    height: auto;
    position: absolute;
    top: 9.375vw;
    right: 0;
}

#image-2,
#image-3,
#image-1.active {
    opacity: 0;
    transition: 0.5s;
}

#image-2.active,
#image-3.active {
    opacity: 1;
    transition: 0.5s;
}

.item {
    display: flex;
    align-items: center;
}

#sub-1,
#sub-3 {
    order: 1;
    transition: 0.5s;
}

#sub-2,
#sub-4 {
    order: 3;
    opacity: 1;
    transition: 0.5s;
}

.title {
    background-color: rgb(80, 50, 0);
    width: 20vw;
    height: 8vw;
    text-align: center;
    border-radius: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
    pointer-events: none;
}

#sub-1 img,
#sub-2 img,
#sub-3 img,
#sub-4 img {
    width: 100%;
    height: auto;
    display: block;
}

.item p#sub-1,
.item p#sub-2,
.item p#sub-3,
.item p#sub-4 {
    max-width: 40%;
}

#sub-2,
#sub-4 {
    opacity: 0;
}

#sub-1.active,
#sub-3.active {
    opacity: 0;
    transition: 0.5s;
}

#sub-2.active,
#sub-4.active {
    opacity: 1;
    transition: 0.5s;
}

h2 {
    color: rgb(255, 252, 219);
    font-size: 3vw;
}

.sub {
    font-size: 1.5vw;
    color: rgb(255, 252, 219);
}

.works div,
.about div {
    margin: 2.6vw auto;
}

#works-contents {
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(3, 24vw);
    gap: 3vw;
}

#works-contents div p {
    font-size: 1.2vw;
    text-align: center;
    font-weight: bold;
}

#works-contents img {
    object-fit: cover;
    width: 24vw;
    height: 13.5vw;
}

.profile {
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    gap: 5.2vw;
}

.profile p img {
    width: 20vw;
    border-radius: 50%;
}

.profile div {
    font-size: 1.2vw;
    justify-content: space-between;
    gap: 1.5vw;
}

div.myname {
    display: flex;
    justify-content: left;
    margin: 0;
    gap: 2.6vw;
    font-size: 1.6vw;
}



.tool {
    display: flex;
    flex-direction: column;
}

div.tool {
    margin: 0;
    width: 80%;
}

.tool h4 {
    font-size: 1.3vw;
}

div.software {
    display: flex;
    justify-content: space-around;
    margin: 0;
}

.software div {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
    align-items: center;
    width: 15.625vw;
}

.software div p+p {
    font-size: 1.2vw;
    font-weight: bolder;
}

.tool-1 {
    font-weight: bold;
    text-align: center;
    line-height: 5.2vw;
    width: 5.2vw;
    height: 5.2vw;
    border: 0.3vw solid rgb(80, 50, 0);
    border-radius: 25%;
    font-size: 2.4vw;
}


.tool-2,
.tool-3,
.tool-4 {
    font-weight: bold;
    text-align: center;
    width: 4.16vw;
    height: 5.2vw;
    line-height: 7.3vw;
    border: 0.3vw solid rgb(80, 50, 0);
    font-size: 1vw;
    position: relative;
}

.tool-2::before {
    content: "</>";
    position: absolute;
    top: -2.5vw;
    left: 0;
    right: 0;
    font-size: 1vw;
}

.tool-3::before {
    content: "{ }";
    position: absolute;
    top: -2.5vw;
    left: 0;
    right: 0;
    font-size: 1vw;
}

.tool-4::before {
    content: "<script>";
    position: absolute;
    top: -2.5vw;
    left: 0;
    right: 0;
    font-size: 0.8vw;
}


div.studying {
    margin: 0;
    justify-content: left;
    width: 20%;
}

.studying {
    display: flex;
    flex-direction: column;
}

.jumpbutton {
    width: 6.25vw;
    height: 6.25vw;
    font-size: 1.25vw;
    text-align: center;
    line-height: 8.75vw;
    position: fixed;
    right: 1vw;
    bottom: 6.5vw;
    color: rgb(255, 252, 219);
    background: rgb(80, 50, 0);
    transition: 0.3s;
    opacity: 0;
    z-index: -1;
    border-radius: 50%;
}

.jumpbutton a {
    width: 6.25vw;
    height: 6.25vw;
    text-decoration: none;
    color: rgb(255, 252, 219);
    position: relative;
    display: block;
}

.jumpbutton a::before {
    content: "";
    margin: auto;
    position: absolute;
    top: -1vw;
    bottom: 0;
    left: 1vw;
    right: 1vw;
    width: 1.82vw;
    height: 1.82vw;
    border-top: 0.15vw solid rgb(255, 252, 219);
    border-right: 0.15vw solid rgb(255, 252, 219);
    transform: rotate(-45deg);
}

.jumpbutton:hover {
    transform: scale(1.1, 1.1);
}

footer {
    font-size: 1vw;
    width: 100%;
    height: 5vw;
    line-height: 5vw;
    color: rgb(255, 252, 219);
    background-color: rgb(80, 50, 0);
    text-align: center;
}

.profile-main {
    display: flex;
    align-items: center;
}

.profile-text1 p {
    line-height: 2.6vw;
}

div.profile-text2 {
    margin: 0;
    display: flex;
    justify-content: space-around;
    gap: 2.6vw;
}

.profile-text2 h4 {
    font-size: 1.4vw;
    width: 11.5vw;
    text-decoration: underline;
    text-underline-offset: 0.5vw;
}

.studying p {
    font-size: 1.2vw;
    font-weight: bolder;
}

/* 作品ページ */
.sub-navi ul li {
    margin: 0 auto;
}

.page-works {
    width: 75%;
    margin: 0 auto;
    margin-bottom: 8vw;
    padding-top: 3vw;
    gap: 3vw;
}

.works-header {
    margin: 0 auto;
    margin-bottom: 2vw;
    margin-top: 2vw;
}

.works-header h1 {
    font-size: 0.83vw;
    top: 30%;
    left: 0;
    width: 10vw;
    height: 6.25vw;
    padding-top: 2vw;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    vertical-align: middle;
}

.works-header h1:after {
    position: absolute;
    border: 0.2vw solid rgb(255, 252, 219);
    content: "";
    top: 1vw;
    bottom: 1vw;
    right: 1vw;
    left: 1vw;
}

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

.sub-navi ul {
    display: flex;
    justify-content: flex-end;
    gap: 2.6vw;
}

.sub-navi li {
    display: flex;
    align-items: center;
}

.sub-navi li a {
    width: 8vw;
    font-size: 1.25vw;
}

.page-works {
    display: flex;
    flex-direction: column;
}

.works-image {
    display: flex;
    justify-content: space-between;
    gap: 5vw;
}

.works-image img {
    max-width: 100%;
}

#works-image-4 {
    justify-content: center;
}

.works-title {
    margin: 0 auto;
}

.works-title h2 {
    color: rgb(80, 50, 0);
    font-size: 1.66vw;
    font-family: sans-serif;
    font-weight: bolder;
    font-style: normal;
}

.works-contain {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    margin-top: 2.6vw;
}

.works-contain p {
    font-size: 0.83vw;
}

.works-about1 {
    display: flex;
    justify-content: center;
}

.works-about1 div {
    width: 40%;
}

.works-about1 h3 {
    font-size: 1vw;
}

.works-about2 {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.works-about2 h3 {
    font-size: 1vw;
}

.point {
    line-height: 1.5vw;
}

.side {
    display: flex;
    align-items: center;
}

.soap {
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(1, auto);
    gap: 0;
}

.ham {
    text-align: center;
    font-size: 1vw;
}

.up {
    width: 100%;
    text-align: center;
}

.up a {
    text-decoration: none;
    color: rgb(80, 50, 0);
    font-size: 1vw;
}

.up a:hover {
    border-bottom: solid 1px rgb(80, 50, 0);
}

@media (max-width: 500px) {
    header {
        margin-bottom: 150vw;
    }

    #sub-1,
    #sub-2,
    #sub-3,
    #sub-4 {
        display: none;
    }

    #main-image p {
        max-width: 100%;
        top: 140%;
        right: 7%;
    }

    #main-image p img {
        width: 65vw;
    }

    nav {
        margin-top: 9.3vw;
    }

    nav ul {
        justify-content: space-around;
        height: 11.6vw;
    }

    nav ul li {
        margin-top: 0;
        width: 28vw;
    }

    nav ul li a {
        font-size: 7vw;
        width: auto;
        height: 100%;
        line-height: 11.6vw;
    }

    #top {
        margin-top: 11.6vw;
        display: flex;
        flex-direction: column;
    }

    #top h1 {
        height: 56.25vw;
        font-size: 7.5vw;
        text-align: center;
        padding-top: 16vw;
        padding-bottom: 16vw;
    }

    .title {
        width: 50%;
        height: 15vw;
    }

    h2 {
        font-size: 6vw;
    }

    .sub {
        font-size: 3.2vw;
    }

    #works-contents {
        grid-template-columns: repeat(1, 100%);
        gap: 7vw;
    }

    #works-contents div {
        height: 56.5vw;
        width: 100%;
    }

    #works-contents div img {
        height: 45vw;
        width: 100%;
    }

    #works-contents div p {
        font-size: 3.5vw;
    }

    div.profile-main {
        margin-top: 0;
    }

    .profile-main img {
        display: none;
    }

    .profile-text1 p,
    .profile-text2 h4 {
        font-size: 3.5vw;
    }

    .profile-text2 h4 {
        width: 100%;
    }

    .profile-text1 h3 {
        font-size: 4.65vw;
    }

    div.tool,
    div.studying {
        width: 100%;
    }

    .profile-text1 p {
        line-height: 4.5vw;
    }

    div.myname {
        height: 8.5vw;
        align-items: center;
    }

    div.profile-text2 {
        flex-direction: column;
    }

    div.software {
        display: flex;
        justify-content: space-around;
        margin: 0;
    }

    .software div {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin: 0 auto;
        align-items: center;
        width: 15.625vw;
    }

    .software div p+p {
        font-size: 2.5vw;
        font-weight: bolder;
    }

    .studying p {
        font-size: 3.5vw;
        font-weight: normal;
    }

    .tool-1 {
        line-height: 10vw;
        width: 10vw;
        height: 10vw;
        border: 0.65vw solid rgb(80, 50, 0);
        border-radius: 25%;
        font-size: 3.75vw;
    }


    .tool-2,
    .tool-3,
    .tool-4 {
        width: 7vw;
        height: 9.5vw;
        line-height: 12.5vw;
        border: 0.65vw solid rgb(80, 50, 0);
        font-size: 1.8vw;
        position: relative;
    }

    .tool-2::before {
        content: "</>";
        position: absolute;
        top: -3.5vw;
        left: 0;
        right: 0;
        font-size: 2.6vw;
    }

    .tool-3::before {
        content: "{ }";
        position: absolute;
        top: -3.5vw;
        left: 0;
        right: 0;
        font-size: 2.6vw;
    }

    .tool-4::before {
        content: "<script>";
        position: absolute;
        top: -3.5vw;
        left: 0;
        right: 0;
        font-size: 1vw;
    }

    .works-about1 {
        display: flex;
        flex-direction: column;
    }

    .works-about1 div {
        width: 100%;
    }

    .works-about1 h3 {
        font-size: 3vw;
    }

    .works-about1 p {
        font-size: 3vw;
        line-height: 3.5vw;
        margin-top: 1vw;
        margin-bottom: 2vw;
    }

    .works-title h2 {
        font-size: 3vw;
    }

    .works-image {
        flex-direction: column;
    }

    .sub-navi ul {
        gap: 0;
    }

    .sub-navi ul li {
        width: 18vw;
    }

    .sub-navi ul li a {
        width: 100%;
        font-size: 3.72vw;
    }

    .up a {
        font-size: 3vw;
    }

    .jumpbutton {
        width: 14.25vw;
        height: 14.25vw;
        font-size: 3.25vw;
        text-align: center;
        line-height: 17.25vw;
        position: fixed;
        right: 3.5vw;
        bottom: 10.5vw;
        color: rgb(255, 252, 219);
        background: rgb(80, 50, 0);
        transition: 0.3s;
        opacity: 0;
        z-index: -1;
        border-radius: 50%;
    }

    .jumpbutton a {
        width: 14.25vw;
        height: 14.25vw;
        text-decoration: none;
        color: rgb(255, 252, 219);
        position: relative;
        display: block;
    }

    .jumpbutton a::before {
        content: "";
        margin: auto;
        position: absolute;
        top: -5vw;
        bottom: 0;
        left: 1vw;
        right: 1vw;
        width: 3.82vw;
        height: 3.82vw;
        border-top: 0.5vw solid rgb(255, 252, 219);
        border-right: 0.5vw solid rgb(255, 252, 219);
        transform: rotate(-45deg);
    }

    .jumpbutton:hover {
        transform: scale(1.1, 1.1);
    }

    footer {
        font-size: 3.5vw;
        height: 10vw;
        line-height: 10vw;
    }
}