@charset "utf-8";
/* ==========================================
Portfolio
============================================= */

body {
    background-color: var(--primary_portfolio);
}

.topic__box {
    width: 50%;
    overflow: auto;
    margin-left: auto;
}

.section__Portfolio {
    width: 100%;
    height: auto;
    background-color: var(--primary_portfolio);
    margin-top: 80px; 
    position: relative;
}

.topic__box--group {
    width: 100%;
    display: block;
}

.topic__group {
    width: 50%;
}

.topic__group--portfolio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    padding-bottom: 80px;
    max-width: 700px;
    margin: 0 auto;
}

.topic__group--ph {
    max-width: 214px;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    /* ↑拡大後 */
}

.topic__group--ph img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.topic__group--ph:hover img {
  transform: scale(1.1);/* 拡大 */
}

.topic__group--ph--a {
    display: block;
    overflow: hidden;
}

.spec {
    font-family: "Outfit",
        serif;
    font-size: 1.4rem;
    margin-top: 8px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.text_caption {
    font-size: 1.4rem;
    text-align: right;
    padding: 0 16px 16px 0;
}

/* Portfolio pc end */

@media screen and (max-width: 769px) {
     .topic__box {
        width: 100%;
        overflow: initial;
    }

    .section__Portfolio {
        margin-top: 0; 
        position: relative;
        display: block;
    }

    .topic__box--group {
        display: block;
        width: 100%;
    }

    .topic__group {
        width: 100%;
    }

    .topic__group--portfolio {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 48px;
        padding-bottom: 88px;
    }

    .topic__group--ph {
        width: 260px;
    }


    .br__sp {
        display: block;
    }

    .text_caption {
        font-size: 1.3rem;
        text-align: right;
    }

}

/* Portfolio sp end */



