/* ========== mv ========== */
.mv {
    background-image: url(../image/mv__top.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 52.083vw;
    position: relative;

    overflow-anchor: none;
}

.mv__text {
    font-size: 20px;
    letter-spacing: 0.1em;
    line-height: 2;
    min-width: 284px;
    top: 10.76vw;
    left: 11.458%;
    position: absolute;

    opacity: 0;
    transform: translateY(20px);

    animation: fadeIn 2s ease .3s 1 normal forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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



/* TB */
@media (max-width: 1000px) {
    .mv {
        background-image: url(../image/mv__top-tb.jpg);
        height: 74.82vw;
    }

    .mv__text {
        top: 11.99vw;
        left: 4.796%;
    }
}

/* SP */

@media (max-width: 600px) {

    .mv {
        background-image: url(../image/mv__top-sp.jpg);
        height: 141.6vw;
    }

    .mv__text {
        font-size: 14px;
        min-width: 107px;
        top: 16vw;
        left: 12%;
    }

    .pc-none {
        display: block;
    }
}

/* ========== works ========== */
.works__section {
    padding-top: 150px;
}

.works__title {
    color: #F5F5F5;
    font-size: 40px;
    margin-left: 2.777%;
}

.works__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0px;
    margin-top: 30px;
}

.works__item {
    transition: 0.3s;
}

.works__item:nth-child(4) {
    grid-column: span 3 / span 3;
}

.works__item:nth-child(5) {
    grid-column: span 2 / span 2;
    grid-row-start: 3;
}

.works__item:nth-child(6) {
    grid-column-start: 3;
    grid-row-start: 3;
}

.works__item:nth-child(7) {
    grid-row-start: 4;
}

.works__item:nth-child(8) {
    grid-row-start: 4;
}

.works__item:nth-child(9) {
    grid-row-start: 4;
}

.works__item:nth-child(1),
.works__item:nth-child(2),
.works__item:nth-child(5) {
    border-top: 1px solid #F5F5F5;
    border-right: 1px solid #F5F5F5;
}

.works__item:nth-child(3),
.works__item:nth-child(4),
.works__item:nth-child(6) {
    border-top: 1px solid #F5F5F5;
}

.works__item:nth-child(7),
.works__item:nth-child(8),
.works__item:nth-child(9) {
    border-top: 1px solid #F5F5F5;
    border-right: 1px solid #F5F5F5;
    border-bottom: 1px solid #F5F5F5;
}

.works__item:nth-child(1):hover {
    background-color: rgba(212, 79, 103, 0.3);
}

.works__item:nth-child(2):hover {
    background-color: rgba(40, 40, 40, 0.7);
}

.works__item:nth-child(3):hover {
    background-color: rgba(67, 45, 26, 0.7);
}

.works__item:nth-child(4):hover {
    background-color: rgba(254, 240, 118, 0.2);
}

.works__item:nth-child(5):hover {
    background-color: rgba(255, 138, 169, 0.3);
}

.works__item:nth-child(6):hover {
    background-color: rgba(108, 135, 103, 0.5);
}

.works__item:nth-child(7):hover {
    background-color: rgba(255, 211, 96, 0.3);
}

.works__item:nth-child(8):hover {
    background-color: rgba(121, 146, 161, 0.4);
}

.works__item:nth-child(9):hover {
    background-color: rgba(158, 47, 0, 0.4);
}

.works__item-box {
    width: 83.333%;
    margin: 30px auto;
    text-align: left;
}

.works__item-name {
    color: #F5F5F5;
}

.works__item-image {
    margin-top: 46px;
}

.works__item:nth-child(4) .works__item-box {
    width: 94.444%;
}

.works__item:nth-child(5) .works__item-box {
    width: 91.666%;
}

.works__item-image__box {
    display: flex;
    gap: 5.555%;
}

.works__item:nth-child(5) .works__item-image__box {
    gap: 8.333%;
}

.works__text-box {
    margin-top: 31px;
}

.works__text {
    font-size: 11px;
    color: #A1A1A1;
}

.works__text:nth-child(2) {
    margin-top: 1px;
}

.works__text span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 1px;
    background-color: #A1A1A1;
    transform: rotate(120deg) translateY(1px);
    margin-right: 2px;
    margin-left: 2px;
    vertical-align: middle;
}

/* SP */
@media (max-width: 768px) {
    .works__section {
        padding-top: 45px;
    }

    .works__title {
        font-size: 20px;
        margin-left: 4%;
    }

    .works__list {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 20px;
    }

    .works__item:nth-child(4),
    .works__item:nth-child(5),
    .works__item:nth-child(6),
    .works__item:nth-child(7),
    .works__item:nth-child(8),
    .works__item:nth-child(9) {
        grid-column: 1;
        grid-row: auto;
    }

    .works__item:nth-child(1),
    .works__item:nth-child(2),
    .works__item:nth-child(5) {
        border-right: none;
    }

    .works__item:nth-child(7),
    .works__item:nth-child(8),
    .works__item:nth-child(9) {
        border-right: none;
    }

    .works__item:nth-child(7),
    .works__item:nth-child(8) {
        border-bottom: none;
    }

    .works__item-box {
        max-width: 500px;
        width: 92%;
    }

    .works__item-image {
        margin-top: 18px;
        aspect-ratio: 345/260;
        object-fit: cover;
    }

    .works__item:nth-child(1) .works__item-image,
    .works__item:nth-child(2) .works__item-image {
        object-position: top;
    }

    .works__item-image__box {
        flex-direction: column;
        gap: 10px;
    }

    .works__text-box {
        margin-top: 15px;
    }

    .works__text {
        font-size: 10px;
        color: #A1A1A1;
    }

    .works__text span::before {
        width: 10px;
    }
}

/* ========== about ========== */
.about__section {
    overflow-x: hidden;
    padding-top: 50px;
    margin-top: 230px;
}

.about__wrapper {
    background-image: url(../image/profile-pc.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-position: bottom;
    position: relative;
}

.myname__slide {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: #9E2F00;
    font-size: 176px;
    line-height: 1;
    letter-spacing: -0.05em;
    display: flex;
    gap: 50px;
    padding-right: 50px;
    will-change: transform;
    position: absolute;
    top: -40px;
    left: 0;
    white-space: nowrap;
    animation: loop-text 20s linear infinite;
}

@keyframes loop-text {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.profile__container {
    padding: 196px 0 118px;
    margin: auto;
    min-width: 400px;
    width: 27.777%;
}

.profile__box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile__name {
    font-size: 24px;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.profile__name span {
    font-size: 10px;
    letter-spacing: 0.1em;
}

.profile__text {
    margin-top: 28px;
    line-height: 2.3;
    text-align: justify;
}

.botton {
    margin-top: 60px;
}

/* SP */
@media (max-width: 768px) {

    .about__section {
        margin-top: 66px;
    }

    .about__wrapper {
        background-image: url(../image/profile-sp.jpg);
        background-position: top;
    }

    .myname__slide {
        font-size: 80px;
        top: -18px;
    }

    .profile__container {
        padding: 112px 0 80px;
        min-width: auto;
        width: 76%;
    }

    .profile__name {
        font-size: 17px;
    }

    .profile__text {
        margin-top: 40px;
        font-size: 12px;
    }
}