@charset "utf-8";

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

body {
    max-width: 100%;
    text-align: center;
    font-family: serif;
    margin: 0;
}

section {
    min-height: 100px;
}

h2 {
    color: black;
    margin: 20px auto;
    font-size: 50px;
}

/* header部分　*/
.header-top {
    width: 100%;
    height: 100vh;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.header-h1 {
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%);
    font-family: serif;
    font-size: 100px;
    font-style: italic;
    font-weight: normal;
    line-height: 1;
    margin: 0 auto;
}

.year {
    color: #fff;
    margin: 0 auto;
    font-size: 40px;
    transform: translateY(7px);
}

.main-photo {
    position: absolute;
    top: 7%;
    right: 5%;
    width: 30%;
    height: 85%;
    object-fit: cover;
}

.header-nav {
    width: 100%;
    height: 150px;
    background-color: #fff;
}

.nav-list {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 80px;
}

.nav-list a {
    text-decoration: none;
    color: black;
    font-size: 30px;
}

/* Portfolio部分　*/
#Portfolio {
    padding: 40px 50px;
}

.Portfolio h2 {
    margin: 40px auto 20px auto;
}

.works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.works-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.works-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.works-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.works-text {
    text-align: center;
}

.works-text dl {
    margin: 20px 0 0;
}

.works-text dt {
    font-weight: bold;
    margin-top: 20px;
}

.works-text dd {
    margin: 3px 0 0;
    line-height: 1.8;
}

.works-item {
    transition: transform 0.3s ease;
}

.works-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* skill部分　*/
.skill {
    min-height: auto;
    padding: 40px 50px;
}

.skill h2 {
    margin: 20px auto;
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 30px 20px;
    margin: 50px 0;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
}

.skill-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.skill-text h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.skill-text p {
    font-size: 15px;
    margin: 5px 0;
    line-height: 1.6;
}

/* Profile部分　*/
#Profile {
    padding: 40px 50px;
}

.Profile-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 10vw));
    grid-template-rows: repeat(3, minmax(100px, 10vw));
    gap: 20px;
}

.Profile-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.Profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.Profile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10vw;
    margin: 50px auto;
    width: 80%;
}

.Profile-text dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    row-gap: 15px;
    margin: 0;
}

.Profile-text dt {
    font-weight: bold;
}

.Profile-text dd {
    margin: 0;
    line-height: 1.8;
}



/* footer部分　*/
footer {
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 20px;
}

footer h2 {
    margin: 0 0 20px;
    color: #fff;
}

.email-list {
    margin: 0;

}

.email {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 5px;
}

.email dt {
    width: 180px;
    text-align: right;
    margin: 0;
}

.email dd {
    width: 300px;
    text-align: left;
    margin: 0 0 0 30px;
}

@media screen and (max-width:767px) {
    #Profile {
        padding: 40px 20px;
    }

    #Profile h2 {
        font-style: 32px;
        margin-bottom: 40px;
    }

    .works {
        display: grid;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .works-item {
        width: 100%;
    }

    .works-image {
        width: 100%;
        height: auto;
    }

    .works-image img,
    .works-image video {
        width: 100%;
        height: auto;
        display: block;
    }

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

    .works-text h3 {
        font-style: 20px;
        margin: 20px 0 15px;
    }

    .works-text dl {
        font-style: 14px;
    }

    /* skill部分　*/
    .skill-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skill-item {
        width: 100%;
    }

    /* Profile部分　*/
    .Profile-content {
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(3, 1fr);
    }

    .Profile-text {
        grid-columns: 1/-1;
        order: -1;
        width: 100%;
        margin-bottom: 20px;
    }

    .Profile-image {
        width: 100%;
        animation-range: 1/1;
        overflow: hidden;
    }

    .Profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


}