@charset "utf-8";

html {
    font-size: 100%;
    /* scroll-behavior: smooth; */
}

body {
    background-color: #F7F3E5;
    color: black;
    /* font-family: "Zen Old Mincho", serif; */
    font-family: serif;
    font-weight: 400;
    font-style: normal;
}

img {
    max-width: 100%;
}

/* -----header----- */

header {
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    /* 固定 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f7f3e5a8;
    z-index: 1000;
}


header p {
    font-size: 1.5rem;
    font-weight: lighter;
}

header ul {
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 80px;
}

header a {
    color: black;
    text-decoration: none;
    transition: color 0.2s;
}

header nav a:hover {
    color: rgb(187, 187, 187);
}

header h1 {
    color: #F7F3E5;
    -webkit-text-stroke: 1px #333;
    font-size: 4rem;
    position: absolute;
    right: 10%;
    bottom: 40%;
}

header img {
    max-width: 100%;

}

/* -----ライトアニメーション----- */
.scroll {
    position: relative;
    z-index: 3;
}

.scroll-border {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.scroll-border::before {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 100px;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(187, 187, 187);
    animation: scroll 2.0s ease-in-out infinite;
    margin: auto;
}

.scroll-border::after {
    content: "";
    display: block;
    position: absolute;
    width: 5px;
    height: 30px;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(187, 187, 187);
    animation: scrollbar 2.0s ease-in-out infinite;
    margin: auto;
}

@keyframes scrollbar {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    100% {
        -webkit-transform: translateY(350%);
        transform: translateY(350%);
    }
}

/* -----ラインアニメーションここまで----- */


/* ----- About ----- */

.about-title {
    display: block;
    margin-top: 50px;
    width: 50%;
    max-width: 600px;
}

.box {
    border: black 1px solid;
    border-radius: 35px;
    padding: 10px;
    width: 135px;
    text-align: center;
}

.box {
    font-size: 18px;
    font-weight: lighter;
    text-align: center;
}

.about p {
    font-size: 16px;
    margin-top: 13px;
}

.flex-about {
    display: flex;
    margin-top: 200px;
    margin-right: 115px;
    justify-content: center;
    gap: 180px;
}

.flex-box1 {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.flex-box2 {
    display: flex;
    align-items: flex-start;
    margin-top: 50px;
    gap: 50px;
}

.img-box {
    position: relative;
}

.grad-img {
    width: 318px;
    height: auto;
    position: absolute;
    top: -30px;
    left: 30px;
    z-index: -1;
}

.face-img {
    width: 318px;
    height: auto;
}

.about-left {
    position: relative;
}

.about-right {
    position: absolute;
    top: 300px;
}



/* -----skills----- */

.skills-title {
    margin: 10% 0 8% auto;
    width: 50%;
    max-width: 600px;
    display: block;
}

.flex-skills {
    display: grid;
    grid-template-columns: 1fr 9fr 1fr 9fr;
    gap: 10rem 0;
    width: 90%;
    margin: 0 10% 20%;
}

.icon {
    max-width: 100px;
    text-align: center;
    margin-right: 16px;
}

.icon:nth-child(even) {
    margin-left: auto;
}

.icon h2 {
    border: black 1px solid;
    border-radius: 35px;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: lighter;
}

.icon .vs {
    font-size: 13px;
}

.works-btn {
    margin-left: auto;
    display: block;
    width: fit-content;
}

.skills-text{
    margin-top: 7%;
    margin-left: 10%;
}

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

.works-title {
    display: block;
    margin-top: 10%;
    margin-bottom: 10%;
    width: 50%;
    max-width: 600px;
}

.works-list {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 20%;
}

.works-list:nth-child(odd) {
    flex-direction: row-reverse;
}


.works-list img {
    width: 50%;
}

.works-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10%;

}

.works-text p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 5%;
}

/* x-----contact----- */

.contact-title {
    margin-top: -10%;
    width: 50%;
    max-width: 600px;
    margin-left: auto;
    display: block;
}

.contact {
    text-align: center;
}

.contact p {
    font-size: 1rem;
    padding: 40px 0;
}


/* -----fooder----- */

footer {
    background-color: black;
    text-align: center;
    margin-top: 5%;
    padding: 5px 0;
}

footer small {
    color: #F7F3E5;
    font-size: 0.8rem;
}










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

.works-title{
    margin: 10% 0 10% 0;
}

.folios{
    width: 90%;
    margin: auto;
    display: flex;
    gap: 10%;
    align-items: flex-start;
}

.iphone{
    width: 30%;
    max-width: 375px;
    height: auto;
}

.pc{
    width: 60%;
    height: auto;
}

.works h2{
    margin: 10% 0 5% 0;
    white-space: nowrap;
}

.folio-icon h3{
    text-align: center;
    border: black 1px solid;
    border-radius: 35px;
    font-size: 1rem;
    padding: 0.5%;
    font-weight: lighter;
    width: 10%;
    margin-left: 20%;
}

.folio-icon p{
    margin: 3% 0 3% 23%;
    font-size: 1rem;
}

.img{
    width: 50%;
    max-width: 650px;
    margin: auto;
    display: block;
}

.img-cafe{
    width: 80%;
    max-width: 1200px;
    margin: auto;
    display: block;
}

/* -----pasta-web.html----- */



.pasta-img{
    width: 50%;
    margin: auto;
}

/* -----スマホ----- */



@media (max-width: 768px) {

    /* -----header----- */
    header {
        overflow-x: clip;
    }

    .header {
        padding: 10px 20px;
    }

    .header p {
        font-size: 1.1rem;
        font-weight: bold;
    }

    .header nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s;
    }

    .header nav.open {
        opacity: 1;
        visibility: visible;
    }

    header ul {
        flex-direction: column;
        align-items: center;

    }

    #hum-btn {
        width: 24px;
        height: 24px;
    }


    #hum-btn span {
        display: block;
        width: 24px;
        height: 1px;
        background-color: black;
        position: absolute;

    }

    #hum-btn span::before {
        content: "";
        display: block;
        width: 24px;
        height: 1px;
        background-color: black;
        position: absolute;
        top: -4px;
    }

    #hum-btn span::after {
        content: "";
        display: block;
        width: 24px;
        height: 1px;
        background-color: black;
        position: absolute;
        top: 4px;
    }


    header h1 {
        font-size: 24px;
        -webkit-text-stroke: 0.8px #333;
        right: 0;
        left: 15%;
    }

    header img {
        max-width: initial;
        rotate: 34deg;
        width: 241%;
        margin-left: -50%;
        margin-top: 43%;
    }


    /* -----ライトアニメーション----- */
    .scroll-border {
        height: 70px;
    }

    .scroll-border::before {
        width: 1px;
        height: 70px;
    }

    .scroll-border::after {
        width: 5px;
        height: 25px;
    }

    /* -----about----- */

    .about-title {
        width: 70%;
        margin-bottom: 10%
    }

    .img-box {
        order: 1;
        margin: 10%;
    }

    .flex-about>div:first-child {
        order: 2;
        width: 100%;
    }

    .face-img {
        width: 133px;
        height: auto;
        margin-left: 30%;
        margin-bottom: 10%;
    }

    .grad-img {
        width: 133px;
        height: auto;
        margin-top: 5%;
        margin-left: 25%;
        margin-bottom: 10%;
    }

    .flex-about {
        flex-direction: column;
        padding: 0 10px;
        margin: 0;
        gap: 20%;
    }

    .flex-about>div:first-child {
        order: 2;
        width: 100%;
    }

    .flex-box1 .flex-box2 {
        align-items: flex-start;
        gap: 16px;
        margin-top: 24px;
    }

    .flex-box1 {
        display: contents;
    }

    .flex-box2 {
        display: contents;
    }

    .box {
        border: black 0.2px solid;
        font-size: 14px;
        padding: 5px;
        width: 100px;
    }

    .about p {
        font-size: 12px;
        padding: 5%;
        margin-left: 5%;
    }

    /* -----skills----- */
    .skills-title {
        width: 60%;
    }


    .flex-skills {
        display: contents;
        width: 60%;
    }

    .icon {
        max-width: 25%;
        margin: auto;
    }

    .icon h2 {
        border: black 0.5px solid;
        padding: 5px;
        font-size: 14px;

    }

    .icon .vs {
        font-size: 13px;
    }

    .skills-text {
        width: 50%;
        margin: auto;
        font-size: 12px;
        text-align: center;
        margin-top: 5%;
        margin-bottom: 30%;
    }

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

    .works-title {
        width: 70%;
    }

    .works-list {
        display: contents;
    }

    .works-list img {
        margin: 5% 25%;
    }

    .works-text h2 {
        font-size: 1rem;
        text-align: center;
    }

    .works-text p {
        font-size: 0.7rem;
    }

    .works-text a {
        font-size: 0.9rem;
    }

    /* -----contact----- */

    .contact-title {
        margin-top: 10%;
        width: 65%;
    }

    .contact p {
        font-size: 0.7rem;
    }

    .contact-btn a {
        font-size: 0.9rem;
    }

    /* -----fooder----- */

/* -----skin-web.html----- */

.works-pad{
    padding: 0 10%;
}

.works h2{
    margin-left: 0;
}

.folios{
    width: 100%;
}

.works-title{
    margin-bottom: 10%;
}

.folio-icon{
    margin-top: 40px;
}

.folio-icon p {
    margin: 3% 0 3% 0%;
}

.folio-icon h3{
    margin-left: 0;
    width: 120px;
}

/* -----pasta-web.html----- */

.pasta-img{
    width: 80%;
}


}