@charset "UTF-8";

* {
    box-sizing: border-box;
}

header img {
    width: 100%;
    height: auto;
    display: block;
}


/* ハンバーガー*/
#menu-check {
    display: none;
}

.menu-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 100;
}

.menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-close {
    display: none;
}

#menu-check:checked~.menu-icon .menu-open {
    display: none;
}

#menu-check:checked~.menu-icon .menu-close {
    display: block;
}

/*　ハンバーガー中身 */
.hamburger {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 200vh;
    background-color: #ffccee;
    transform: translateX(100%);
    transition: 0.3s;
    z-index: 90;
    margin: 0;
}

#menu-check:checked~.hamburger {
    transform: translateX(0);
}

.hamburger {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    padding-top: 140px;
    background-color: #ffccee;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 90;
}

.hamburger ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 0;
    margin: 0;
}

.hamburger li {
    width: 70%;
    text-align: center;
}

.hamburger a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.08em;
    padding: 10px;
    transition: 0.3s;
}

.hamburger a:hover {
    color: #ff82b8;
    transform: translateX(5px);
}

h2 {
    text-align: center;
    color: #e9129e;
    font-size: 2em;
    margin-bottom: 60px;
}

body {
    background-image: url(../img/background-01-01.webp);
    background-repeat: repeat;
    background-size: 10% auto;
}

main {
    line-height: 24px;
}

.work .about {
    padding: 0 40px;
}

section {
    margin-bottom: 300px;
}

.top {
    margin-bottom: 150px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.topimg {
    width: 100%;
    margin: 0px;

}

/*制作物まとめ*/

/* WORK */

.work {
    padding: 0 40px;
}

.work-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 70px 60px;
}

.work-list {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ff82b8;
}

.work-menu a {
    display: block;
    flex-shrink: 0;
    width: 220px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.work-menu a:hover {
    transform: scale(1.05);
}

.work-menu img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    display: block;
}

.work-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.work-text h3 {
    margin: 0 0 15px;
    color: #e9129e;
    font-size: 18px;
    line-height: 1.5;
}

.work-text p {
    margin: 0;
    color: #ff6bab;
    font-size: 14px;
    line-height: 1.8;
}

.work-menu a {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.work-menu a:hover {
    transform: scale(1.08);
}

.work-menu img {
    width: 220px;
    height: auto;
    display: block;
    margin: 0;
    object-fit: cover;
}


/*アバウト*/

.aboutimg {
    width: 30%;
    height: auto;
    margin: 0px;
    display: block;
}

.about-section .about-section>h2 {
    text-align: center;
    font-size: 36px;
    letter-spacing: 0.08em;
    margin-bottom: 80px;
}

.about {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 500px auto;
    background-color: #fff;
    border-radius: 30px;
}

.aboutimg {
    width: 320px;
    max-width: 30%;
    height: auto;
    border-radius: 20px;
}

.abouttext {
    max-width: 500px;
    color: rgb(45, 87, 149);
}

.name {
    font-size: 28px;
    margin: 0 0 25px;
    letter-spacing: 0.08em;
    color: rgb(45, 87, 149);
}

.metext {
    font-size: 16px;
    line-height: 2.2;
    margin: 0;
    color: rgb(45, 87, 149);
}

ul {
    list-style: none;
    justify-content: space-around;
}

.skilltext {
    color: rgb(45, 87, 149);
}

.skills {
    max-width: 1200px;
    margin: 150px auto 0;
    text-align: center;
    background-image: url(../img/skil_background.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding: 120px 200px;
}

.skills>h2 {
    font-size: 32px;
    letter-spacing: 0.1em;
    margin: 0 0 70px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 70px;
    text-align: left;
}

.skill {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(45, 87, 149);
}

.skill>img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 25px;
}

.skill-text {
    flex: 1;
}

.sikakutext {
    color: rgb(45, 87, 149);
}

.skill-text h3 {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 12px;
    color: rgb(45, 87, 149);
}

.skill-text p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 50px;
    color: rgb(45, 87, 149);
}

.sikaku {
    text-align: center;
    margin-top: 70px;
    padding-top: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(45, 87, 149);
}

.sikaku h3 {
    font-size: 20px;
    margin: 0 0 20px;
    color: rgb(45, 87, 149);
    margin-bottom: 20px;
}

.sikaku p {
    font-size: 14px;
    line-height: 2;
    margin: 0;
    color: rgb(45, 87, 149);
}

.footer {
    background-color: #ffb2d6;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 80px 20px 90px;
    margin-top: 100px;

}

.footer h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 35px;
}

.footer a {
    display: inline-flex;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.footer a img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

/* ホバー */

.footer a:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

/*　illustration */

h1 {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    color: #e9129e;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 60px;
}

.work-item {
    width: 300px;
    overflow: hidden;
    cursor: pointer;
}

.work-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* 作品押した時に出てくるやつ */

.work-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

/* 開いたとき */

.work-modal.active {
    opacity: 1;
    visibility: visible;
}

/* 詳細 */

.modal-inner {
    width: 80%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.modal-image {
    width: 55%;
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章 */

.modal-text {
    width: 40%;
}

.modal-number {
    font-size: 14px;
    letter-spacing: 0.15em;
}

.modal-text h2 {
    margin: 15px 0 25px;

    font-size: 32px;
}

.modal-text p {
    line-height: 2;
}

/* 制作情報 */

.modal-text dl {
    margin-top: 30px;
}

.modal-text dt {
    margin-top: 15px;
    font-weight: bold;
}

.modal-text dd {
    margin: 5px 0 0;
}

/* 閉じるボタン */

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    border: none;
    background: none;
    font-size: 45px;
    cursor: pointer;
    z-index: 10000;
    color: #e9129e;
}

@media screen and (max-width: 767px) {

    section {
        margin-bottom: 50px;
    }

    .menu-icon {
        width: 60px;
        height: 60px;
        top: 15px;
        right: 15px;
    }

    .hamburger {
        width: 75%;
    }

    /* WORK */

    /* WORK */

    .work {
        padding: 70px 20px;
    }

    .work-menu {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .work-list {
        gap: 20px;
        padding-bottom: 20px;
    }

    .work-menu a {
        width: 110px;
    }

    .work-menu img {
        width: 110px;
        height: 110px;
    }

    .work-text h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .work-text p {
        font-size: 12px;
        line-height: 1.7;
    }

    .modal-text h2 {
        color: #000000;
    }


    /* ABOUT */

    .about-section {
        padding: 70px 20px;
    }

    .about {
        flex-direction: column;

        gap: 40px;

        text-align: center;
    }

    .aboutimg {
        width: 70%;
        max-width: 280px;
    }

    .abouttext {
        width: 100%;
    }

    .name {
        font-size: 24px;
    }

    .metext {
        font-size: 13px;
        line-height: 2;
    }

    /* SKILL */

    .skills {
        margin-top: 80px;
        padding: 80px 25px;
        background-size: cover;
    }

    .skills>h2 {
        font-size: 26px;
        margin-bottom: 50px;
    }

    .skills-list {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .skill {
        align-items: center;
    }

    .skill>img {
        width: 70px;
        height: 70px;
        margin-right: 18px;
    }

    .skill-text h3 {
        font-size: 15px;
    }

    .skill-text p {
        font-size: 12px;
    }

    .sikaku {
        margin-top: 50px;
    }

    /* FOOTER */

    .footer {
        padding: 70px 20px;
        margin-top: 80px;
    }

    .footer h3 {
        font-size: 28px;
    }

}