body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: rgb(46,46,48);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

footer {
    margin-top: 100px;
}

nav {
    display: flex;
    gap: 30px;
}



main {
    background-color: #f5f5f5;
    padding: 50px 0;
}

h1 {
    font-family: 'Inria Sans';
    font-size: 20px;
    -webkit-text-stroke: 1px #000;
    font-weight: 700;
}

h1 a {
    color: #efcde3;
    text-decoration: none;
}

nav a {
    font-family: 'Inria Sans';
    font-size: 20px;
    -webkit-text-stroke: 1px #000;
    color: #c4e5b2;
    text-decoration: none;
    font-weight: 700;
}

.top img {
    width: 100%;
    height: 500px;
    object-fit: cover;

    /*フェードイン*/
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 2s forwards;
}

h2 {
    font-family: 'Inria Sans';
    font-size: 25px;
    color: #efcde3;
    -webkit-text-stroke: 1px #000;
    font-weight: 700;
    text-align: center;
    margin-top: 100px;
}

a {
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

.works-nav {
    font-family: 'Inria Sans';
    font-size: 20px;
    -webkit-text-stroke: 1px #000;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.works-nav a {
    color: #c4e5b2;
    text-decoration: none;
}

h3 {
    font-family: 'Inria Sans';
    font-size: 20px;
    color: #efcde3;
    -webkit-text-stroke: 1px #000;
    text-align: center;
    font-weight: 700;
}

footer {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

footer a {
    font-family: 'Inria Sans';
    font-size: 20px;
    -webkit-text-stroke: 1px #000;
    font-weight: 700;
    color: #c4e5b2;
    text-decoration: none;
    margin-left: auto;
}

footer img {
    width: 30px;
}

/*index.html*/
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    flex-wrap: wrap;

    max-width: 1000px;

    margin: 0 auto;

    padding-bottom: 50px;
    margin-bottom: 80px;

    border-bottom: 2px solid #c4e5b2;
}

.about-content img {
    width: 550px;
    height: 450px;
    object-fit: cover;

}

.about-text {
    max-width: 400px;
    line-height: 2.5;
}

.about-text p {
    white-space: pre-line;
}

.more-btn {
    display: inline-block;

    margin-top: 20px;
    padding: 6px 77px;

    background-color: #c4e5b2;

    border: 1px solid #000;
    border-radius: 50px;

    font-family: 'Inria Sans';
    font-size: 20px;
    font-weight: 700;

    color: #efcde3;
    text-decoration: none;

    -webkit-text-stroke: 1px #000;

    transition: 0.2s;
}

.more-btn:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.more-btn.active {
    transform: scale(0.92);
}

.work-group {
    width: fit-content;
    margin: 0 auto 100px;
}

.work-images {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.work-images img {
    width: 450px;
    height: 360px;
    object-fit: cover;
    border-radius: 10px;
}

.website-images img {
    width: 450px;
    height: 360px;
    object-fit: contain;
}

.banner-images img {
    width: 450px;
    height: 360px;
    object-fit: contain;
}

.graphic-images img {
    width: 450px;
    height: 360px;
    object-fit: contain;
}

/*画像ホバー拡大*/
.work-images img {
    transition: 0.3s;
}

.work-images img:hover {
    transform: scale(1.05);
}

/*profile.html*/
.profile {
    max-width: 1000px;
    margin: 0 auto;

    line-height: 2.5;

    padding-bottom: 40px;
    margin-bottom: 80px;

    border-bottom: 2px solid #c4e5b2;

}

#skill {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
}

#skill h2 {
    margin-top: -40px;
}

#skill img {
    width: 100px;
    height: 100px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.skill-text p {
    margin: 0;
}

.skill-item {
    width: calc(50% - 20px);
    display: flex;
    align-items: center;
    gap: 20px;
}

.fadein {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s;
}

.fadein.show {
    opacity: 1;
    transform: translateY(0);
}

/*各Works*/
.content-image {
    width: 500px;
    height: 400px;
    object-fit: contain;
}

.content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 120px;
}

.content li {
    margin-bottom: 20px;

    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c4e5b2;
}

.content ul {
    list-style: none;
}

.item-title {
    font-size: 18px;
}

/*トップ画*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger {
    display: none;

    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;

    margin: 6px 0;

    background-color: #c4e5b2;
    border: 1px solid #000;
}

/*スマホ*/
@media screen and (max-width: 768px) {

    /*ハンバーガーボタン*/
    .hamburger {
        display: block;
        position: relative;
        z-index: 2000;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;

        width: 100%;
        height: 100vh;

        background-color: #fff;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 30px;

        transform: translateX(100%);
        transition: 0.3s;

        z-index: 1000;
    }

    nav.active {
        transform: translateX(0);
    }

    footer {
        padding: 20px;
        gap: 12px;
    }

    footer a {
        white-space: nowrap;
        font-size: 16px;
    }

    /*index.html*/
    .about-content img {
       width: 300px;
    height: 250px;
    object-fit: cover;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px 50px;
        box-sizing: border-box;
    }

    .work-images {
        flex-direction: column;
        align-items: center;
    }

    .top img {
        height: 300px;
    }

    .about-text {
        text-align: left;
    }

    /*profile.html*/
     .profile {
        padding: 0 50px;
    }

    #skill {
        padding: 0 50px;
    }

     .skill-item {
        width: 100%;
    }

    /*各Works*/

    .content {
        padding: 0 50px;
        gap: 50px;
        flex-direction: column;
    }

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

/*ブレイクポイント*/
@media screen and (max-width: 971px) {

    .top img {
        height: 300px;
    }

    .profile {
        padding: 0 50px;
    }

    #skill {
        padding: 0 40px;
    }

    .content {
        padding: 0 40px;
        gap: 30px;
    }

    .work-images img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

}