@charset "utf-8";

/* ==================================================================

    voice.css

=================================================================== */

.voice__contents {
    padding: 6rem 0 12rem;
    background-image: url("../../images/voice/background.jpg");
    background-size: 25rem auto;
}

.voice__list {
    display: flex;
    flex-wrap: wrap;
    max-width: 101.8rem;
    margin: 0 auto 2rem;
}

.voice__item {
    width: calc(100% / 3);
    margin-bottom: 6rem;
    padding: 0 2.7rem;
}
.voice__item:nth-of-type(n + 10) {
    display: none;
}

.voice__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
}
@media screen and (min-width: 1024px) {
    .voice__link:hover .voice__image {
        filter: brightness(0.49);
    }
    .voice__link:hover .voice__caption {
        border-color: #F5DA44;
    }
}

.voice__imageWrapper {
    position: relative;
    margin-bottom: 1rem;
    padding: 1.2rem;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

.voice__image {
    width: 100%;
    height: auto;
    transition: filter 0.4s ease-in-out;
}

.voice__caption {
    border-bottom: 0.3rem solid #000;
    text-align: left;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.448;
    transition: border-color 0.4s ease-in-out;
}

.voice__caption__type {
    margin-left: 1rem;
    font-weight: 800;
}

.voice__caption em {
    margin-left: 0.7rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.voice__caption__number {
    font-size: 2.9rem;
}

/* SP用
----------- */
@media only screen and
(max-width : 767px) {
    .voice__contents {
        padding: 4rem 0 8rem;
    }

    .voice__list {
        display: block;
    }

    .voice__item {
        width: 100%;
        padding: 0 2.5rem;
    }

    .voice__link {
        align-items: center;
    }

    .voice__imageWrapper {
        margin-bottom: 0.8rem;
        padding: 0.6rem;
    }

    .voice__caption {
        text-align: center;
        line-height: 1.458;
    }

    .voice__caption em {
        margin-left: 1rem;
    }

    .voice__caption__number {
        font-size: 2.4rem;
    }
}

/* --------------------------------
    □ modal
-------------------------------- */
.modal {
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    width: 100%;
    max-width: 72.5rem;
    max-height: 100vh;
    margin: 3.2rem;
    overflow-x: clip;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 900;
}
.modal__close:focus {
    outline: none;
}

.modal__closeIcon {
    position: relative;
    width: 3rem;
    height: 3rem;
    margin-left: 0.6rem;
    transform: rotate(45deg);
}
.modal__closeIcon::before,
.modal__closeIcon::after {
    content: "";
    position: absolute;
    background-color: #000;
}
.modal__closeIcon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.35rem;
    transform: translateY(-50%);
}
.modal__closeIcon::after {
    top: 0;
    left: 50%;
    width: 0.35rem;
    height: 100%;
    transform: translateX(-50%);
}

.modal__content {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 4rem 5rem 5rem;
    background-color: #EFEBE1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    text-align: left;
}

.modal__image {
    width: 26.1rem;
    height: auto;
    margin-right: 3rem;
}

.modal__title {
    display: inline-block;
    margin-bottom: 3.5rem;
}

.modal__text {
    font-size: 1.5rem;
    line-height: 2;
    color: #555;
}

.modal[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn 0.4s;
}

.modal[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut 0.4s;
}

.modal .modal__container,
.modal .modal__overlay {
    will-change: transform;
}

@media only screen and
(max-width: 767px) {
    .modal__container {
        margin: 0;
        padding: 2.5rem;
    }

    .modal__content {
        display: block;
        padding: 5rem 2rem 2rem;
    }

    .modal__image {
        display: block;
        width: 75%;
        margin: 0 auto 1.5rem;
    }

    .modal__title {
        margin-bottom: 1.5rem;
    }

    .modal__text {
        font-size: 1.4rem;
        line-height: 1.75;
    }
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
