@charset "utf-8";

.about__profile {
    width: 176px;
    height: 165px;
    display: block;
    margin: 158px auto 0;
}

.about__text {
    text-align: center;
    width: 85%;
    margin: 40px auto 0;
}

/* about PC */
@media screen and (min-width: 769px) {
    .about__profile {
        width: 293px;
        height: 275px;
        margin: 231px auto 0;
    }

    .about__text {
        text-align: start;
        width: 55%;
        max-width: 800px;
        margin: 71px auto 0;
    }

    .about__text:last-of-type {
        margin-top: 15px;
    }


}

/*==========================
skill
==========================*/

.custom-shape-divider-bottom-1731140490 {
    margin-top: 38px;
}

.background {
    background-color: var(--lightgray);
    padding-bottom: 95px;
}

.skill__item {
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding: 5px 0 30px 0;
    margin-top: 37px;
}

.skill__item:first-of-type {
    background-image: url(../images/design.png);
    background-position: 50% 50%;
}

.skill__item:nth-of-type(2) {
    background-image: url(../images/coding.jpg);
}

.skill__title {
    color: var(--pink, #FF8484);
    text-align: center;
    font-family: 'Kapakana';
    font-size: 3.2rem;
    border-bottom: 2px solid var(--pink);
    width: 120px;
    line-height: 0.8;
    margin: 0 auto;
}

.skill__tool {
    padding: 0 10px;
    background-color: rgb(255, 255, 255, 0.75);
    display: block;
    margin: 14px auto 0;
    width: 244px;
    text-align: center;
}

.skill__desc {
    text-align: center;
    background-color: rgb(255, 255, 255, 0.75);
    width: 85%;
    margin: 21px auto 0;
}

/* skill PC */
@media screen and (min-width: 769px) {

    .custom-shape-divider-bottom-1731140490 {
        margin-top: 117px;
    }

    .background {
        padding-bottom: 90px;
    }

    .skill__list {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    .skill__item {
        width: 41%;
        max-width: 700px;
        padding: 10px 0 80px 0;
    }

    .skill__title {
        font-size: 4.8rem;
        margin: 10px auto 0;
    }

    .skill__tool {
        margin: 68px auto 0;
        width: 300px;
    }

    .skill__desc {
        text-align: start;
        width: 80%;
        margin: 28px auto 0;
    }
}

/*==========================
personal
==========================*/

body.active {
    overflow: hidden;
}

.title:nth-of-type(2) {
    margin-top: 60px;
}

.personal__text {
    font-family: 'Kapakana';
    font-size: 3.2rem;
    text-align: center;
}

.personal__list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 5%;
}

.personal__item {
    background-color: var(--pink);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 0 3px;
    position: relative;
    cursor: pointer;
}

.personal__item:nth-of-type(odd) {
    margin-top: 20px;
    margin-left: 5px;
}

.personal__item:nth-of-type(even) {
    margin-left: 12px;
}

.personal__item:nth-of-type(even) {
    background-color: var(--red);
    color: #ffffff;
}

.personal__item:nth-of-type(4n) {
    background-color: #ffffff;
    color: var(--text);
}

.personal__item::after {
    content: '';
    border: 1px solid var(--red);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    display: inline-block;
    position: absolute;
    top: 6%;
    right: 10%;
}

.personal__item::before {
    content: '';
    border: 0.5px solid var(--red);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    display: inline-block;
    position: absolute;
    top: 4%;
    left: 4%;
}

.personal__item:nth-of-type(even)::before,
.personal__item:nth-of-type(even)::after {
    border: 0.5px solid var(--pink);
}

.personal__item:nth-of-type(4n)::before,
.personal__item:nth-of-type(4n)::after {
    border: 0.5px solid var(--red);
}


.personal__item:nth-last-of-type(odd)::after {
    top: 10%;
    right: 5%;
}

.personal__item:nth-last-of-type(odd) {
    animation-delay: 0.4s;
}

.personal__item:nth-last-of-type(3n)::after {
    top: -3%;
    left: 10%;
}


.personal__item:nth-last-of-type(3n) {
    animation-delay: 0.9s;
}

.personal__item {
    animation: floating-y 1.8s ease-in-out infinite alternate-reverse;
}

@keyframes floating-y {
    0% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(5%);
    }
}


/* modal */
.modal__item {
    background-color: var(--pink);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 30px;
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 400px;
    max-height: 400px;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 1s;
    opacity: 0;
    z-index: -10;
}

.modal__item.open {
    z-index: 50;
    opacity: 1;

}

.modal__item::after {
    content: '';
    border: 1px solid var(--red);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    width: 105%;
    height: 105%;
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;

}

.modal__item::before {
    content: '';
    border: 1px solid var(--red);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    width: 95%;
    height: 95%;
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
}

.modal__title {
    font-size: 1.8rem;
    font-weight: 500;
}

.modal__desc {
    margin-top: 10px;
}

.container::after {
    display: none;
    content: '';
    background-color: rgba(249, 248, 248, 0.9);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.container.open::after {
    display: block;
}

.modalCloseBtn {
    display: none;
    width: 25px;
    height: 25px;
    position: fixed;
    top: 13%;
    right: 6%;
    z-index: 100;
}

.modalCloseBtn.open {
    display: block;
}

.modalCloseBtn img {
    width: 100%;
}

/* personal PC */
@media screen and (min-width: 769px) {

    .title:nth-of-type(2) {
        margin-top: 70px;
    }

    .personal__text {
        font-size: 4.8rem;
    }

    .personal__list {
        width: 68%;
        max-width: 900px;
        margin: 0 auto;
    }

    .modal__item {
        max-width: 500px;
        max-height: 500px;
    }

    .modal__title {
        font-size: 2.4rem;
    }

    .modal__desc {
        margin-top: 20px;
    }

    .modalCloseBtn {
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    .personal__item:hover {
        box-shadow: 0px 0px 15px 2px rgba(0, 0, 0, 0.3);


    }

}