#voice {
    padding: 100px 0 49.7% 0;
}

.voice-container {
    width: 1049px;
    margin: 0 auto 0 auto;
}

.voice-title {
    background: url(../../images/voice_title_pc.png) no-repeat center center;
    background-size: auto;
    padding: 85px 0 85px 0;
}

.voice-title-h1 {
    font-size: 40px;
    letter-spacing: 0.02em;
}

.voice-box {
    flex-wrap: wrap;
    width: 100%;
    gap: 24px;
    justify-content: center;
}

.voice-box-column {
    cursor: pointer;
    background: #FFF;
    border-radius: 16px;
    width: 48.85%;
    transition: opacity 0.3s ease;
}

.voice-box-column:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.voice-box-column.column-2 {
  width: calc(50% - 12px); /* gapを考慮 */

  img {
    border-radius: 16px 16px 0 0;
    width: 100%;
    aspect-ratio: 513 / 401;
    object-fit: cover;
    display: block;
  }
}

.voice-box-column.column-3 {
  width: calc(33.333% - 16px); /* gapを考慮 */

    img {
        border-radius: 16px 16px 0 0;
        width: 100%;
        aspect-ratio: 339 / 225;
        object-fit: cover;
        display: block;
    }
}

.voice-box-txt-column {
    width: 84%;
    margin: 0 auto 0 auto;
    padding: 24px 0 28px 0;
}

.voice-box-txt-h2-column {
    font-size: 24px;
    letter-spacing: 0.04em;
    line-height: 29px;
    font-weight: bold;
}

.voice-box-txt-p-column {
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 24px;
    margin-top: 24px;
}

.voice-btn {
    margin: 128px auto 0 auto;
    width: 85.502%;
}

/* モーダル */
.voice-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* display: none; は使わずvisibilityで管理 */
    position: fixed;
    inset: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.4);
}

.voice-modal.open {
  opacity: 1;
  visibility: visible;
}

.voice-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F9F9F9;
    padding: 160px 0 128px 0;
    max-width: 1720px;
    width: 91%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 60px;   
    height: 90%;
    overflow-y: scroll;
    -ms-overflow-style: none; /* IE/Edge用 */
    scrollbar-width: none; /* Firefox用 */
}

.voice-modal-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari用 */
}

.voice-modal-inner {
    width: 60%;
    margin: 0 auto 0 auto;
}

.voice-modal-inner-box {
    width: 100%;
}

.voice-modal-inner-box-img {
    width: 50.38%;
}

.voice-modal-inner-box-txt {
    width: 45.74%;
}

.voice-modal-inner-box-h3 {
    font-size: 24px;
    letter-spacing: 0.04em;
    line-height: 29px;
    font-weight: bold;
}

.voice-modal-title {
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 24px;
    margin-top: 23px;
}

.voice-modal-profile {
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 24px;
    font-weight: bold;
    margin-top: 26px;
}

.voice-modal-sub {
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 28px;
    margin-top: 15px;
}

.modal-under-box {
    width: 100%;
    margin-top: 56px;

    .has-medium-font-size {
        margin-top: 60px;
    }

    strong {
        font-weight: bolder !important;
        line-height: 24px;
    }

    p {
        font-size: 16px;
        letter-spacing: 0.04em;
        line-height: 28px;
        margin-top: 16px;
    }

    figure {
        margin-top: 56px;
    }
}

.interview-title {
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 24px;
    font-weight: bold;
    margin-top: 48px;
}

.interview-txt {
    font-size: 16px;
    letter-spacing: 0.04em;
    line-height: 28px;
    margin-top: 21px;
}

.interview-img {
    width: 100%;
    margin-top: 60px;
}

.voice-modal-close-box {
    width: 12.68%;
    margin: 80px auto 0 auto;
}

.voice-modal-close {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

@media screen and (max-width: 1500px) {
    .voice-modal-inner-box {
        display: block;
    }

    .voice-modal-inner-box-img {
        width: 100%;
    }

    .voice-modal-inner-box-txt {
        width: 100%;
        margin-top: 41px;
    }

    .voice-modal-inner-box-h3 {
        font-size: 18px;
        letter-spacing: 0.04em;
        line-height: 28px;
    }
}


@media screen and (max-width: 1200px) {
    .voice-modal-inner-box {
        display: block;
    }

    .voice-container {
        width: 80%;
    }

    .voice-title {
        padding: 8.12% 0 8.12% 0;
    }
}


/* タブレット */
@media screen and (max-width: 1024px) {
  .voice-container {
    width: 90%;
  }

  .voice-box-txt-h2-column {
    font-size: 20px;
  }

  .voice-box-txt-p-column {
    font-size: 16px;
    margin-top: 10px;
  }
}


/* SP */
@media screen and (max-width: 768px) {
    #voice {
        padding: 75px 0 329px 0;
    }

    .voice-container {
        width: 87.1%;
    }

    .voice-title {
        background: url(../../images/voice_title_sp.png) no-repeat center center;
        background-size: auto 100%;
        padding: 30px 0 30px 0;
    }

    .voice-title-h1 {
        font-size: 28px;
        line-height: 34px;
    }

    .voice-box {
        display: block;
        width: 100%;
    }

    .voice-box-column {
        background: #FFF;
        border-radius: 16px;
        width: 100%;

        &:nth-child(n+2) {
            margin-top: 16px;
        }

        img {
            width: 100%;
        }
    }

    .voice-box-column.column-2 {
        width: 100%;

          img {
            border-radius: 12px 12px 0 0;
            aspect-ratio: 340 / 320;
        }
    }

    .voice-box-column.column-3 {
        width: 100%;

        img {
            border-radius: 12px 12px 0 0;
            aspect-ratio: 340 / 180;
        }
    }

    .voice-box-txt-column {
        width: 83.3%;
        margin: 0 auto 0 auto;
        padding: 19px 0 19px 0;
    }

    .voice-box-txt-h2-column {
        font-size: 19px;
        letter-spacing: 0.04em;
        line-height: 23px;
        font-weight: bold;
    }

    .voice-box-txt-p-column {
        font-size: 16px;
        letter-spacing: 0.04em;
        line-height: 19px;
        margin-top: 10px;
    }

    .voice-btn {
        margin: 80px auto 0 auto;
        width: 100%;
    }

    /* モーダル */
    .voice-modal-content {
        padding: 0px 0 52px 0;
        width: 87.1%;
        border-radius: 20px;
    }

    .voice-modal-inner {
        width: 88.3%;
        margin-top: 28px;
    }

    .voice-modal-inner-box {
        display: block;
    }

    .voice-modal-inner-box-img {
        width: 100%;
    }

    .voice-modal-inner-box-txt {
        width: 100%;
        margin-top: 19px;
    }

    .voice-modal-inner-box-h3 {
        font-size: 18px;
        letter-spacing: 0.04em;
        line-height: 28px;
    }

    .voice-modal-title {
        font-size: 12px;
        letter-spacing: 0.04em;
        line-height: 14px;
        margin-top: 12px;
    }

    .voice-modal-profile {
        font-size: 14px;
        letter-spacing: 0.04em;
        line-height: 23px;
        margin-top: 12px;
    }

    .voice-modal-sub {
        font-size: 13px;
        letter-spacing: 0.04em;
        line-height: 19px;
        margin-top: 12px;
    }

    .modal-under-box {
        width: 100%;
        margin-top: 26px;

        strong {
            font-weight: bolder !important;
            font-size: 16px;
            line-height: 19px;
        }

        .has-medium-font-size {
            margin-top: 19px;
        }

        p {
            font-size: 14px;
            letter-spacing: 0.04em;
            line-height: 23px;
            margin-top: 19px;
        }

        figure {
            margin-top: 19px;
        }
    }

    .interview-title {
        font-size: 16px;
        letter-spacing: 0.04em;
        line-height: 23px;
        margin-top: 19px;
    }

    .interview-txt {
        font-size: 14px;
        letter-spacing: 0.04em;
        line-height: 23px;
        margin-top: 19px;
    }

    .interview-img {
        margin-top: 19px;
    }

    .voice-modal-close-box {
        width: 23.01%;
        margin: 28px auto 0 auto;
    }

    .voice-modal-close {
        padding: 0;
    }
}