@charset "UTF-8";

/* === クレディセゾンの文化を知る === */

.concept-section {
    opacity: 0;
    transition: opacity 0.5s ease;
    margin: 60px auto;
}

.concept-section.eon {
    opacity: 1;
}

.concept-inner {
    position: relative;
    padding: 50px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
}

.frame-line {
    position: absolute;
    top: 40px;
    left: 40px;
    transform-origin: left top;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.frame-line.line-h {
    width: 50px;
    height: 8px;
    background-color: #04BB83;
    z-index: 2;
}

.frame-line.line-v {
    width: 8px;
    height: 50px;
    background-color: #0388C6;
}

.concept-section.eon .line-h {
    transform: scaleX(1);
    transition-delay: 0.1s;
}

.concept-section.eon .line-v {
    transform: scaleY(1);
    transition-delay: 0.1s;
}

.concept-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 30px 0 0 30px;
}

.concept-en {
    font-size: clamp(20px, 7vw, 60px);
    font-weight: 500;
    color: #004098;
    font-family: var(--en-font);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.concept-en span {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-20px);
    transition:
        opacity 0.8s ease,
        filter 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.concept-section.eon .concept-en span {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.concept-jp-sub {
    font-size: 18px;
    padding-left: 17px;
    font-weight: 500;
    color: #004098;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.8s .8s ease, transform 0.8s .8s ease;
}

.concept-jp-sub:before {
    content: "";
    display: block;
    position: absolute;
    background: #004098;
    width: 2px;
    height: 15px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.concept-section.eon .concept-jp-sub {
    opacity: 1;
    transform: translateX(0);
}

.concept-description {
    font-size: 16px;
    line-height: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.concept-section.eon .concept-description {
    opacity: 1;
    transform: translateY(0);
}


.real-voices.fin {
    position: relative;
    margin: 30px auto 0;
    transition-delay: 0.5s;
}

.real-voices .title {
    position: relative;
}

.real-voices .title span {
    display: inline-block;
    position: relative;
    padding: 2px 20px;
    color: #FFF;
    font-size: 15px;
    border-radius: 4px;
    background: linear-gradient(90deg, #04bb83 0%, #0388c6 100%);
    left: 50%;
    transform: translateX(-50%);
}

.real-voices ul {
    margin: 50px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
}

.real-voices ul li {
    width: 32%;
    border-radius: 8px;
    padding: 35px 20px 20px;
    background: #F3FAFA;
    color: #004098;
    font-size: 14px;
    line-height: 1.6em;
    position: relative;
}

.real-voices ul li:before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/common_img/icom-human.svg');
    width: 40px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 767px) {
    .concept-section {
        margin: 30px auto;
    }

    .concept-inner {
        padding: 20px;
    }

    .frame-line {
        top: 20px;
        left: 20px;
    }

    .frame-line.line-h {
        width: 30px;
        height: 5px;
    }

    .frame-line.line-v {
        width: 5px;
        height: 30px;
    }

    .concept-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 20px;
        padding: 20px 0 0 20px;
    }

    .concept-jp-sub {
        font-size: 14px;
        padding-left: 5px;
        padding-top: 12px;
    }

    .concept-jp-sub:before {
        content: "";
        display: block;
        position: absolute;
        background: #004098;
        width: 20px;
        height: 1px;
        left: 5px;
        top: 8px;
        transform: translateY(0);
    }

    .concept-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .real-voices .title span {
        padding: 5px 20px;
        font-size: 14px;
        border-radius: 4px;
        line-height: 1.4em;
    }

    .real-voices ul {
        margin: 50px auto 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .real-voices ul li {
        width: 100%;
        border-radius: 8px;
        padding: 35px 20px 20px;
        font-size: 13px;
        margin-bottom: 30px;
    }
}





/* === クレディセゾンの文化を知る === */

.environment-intro-text {
    text-align: center;
    font-size: min(2.4vw, 24px);
    line-height: 2em;
    margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
    .environment-intro-text {
        padding: 20px 0 0;
        font-size: min(4vw, 18px);
        margin-bottom: 30px;
    }
}

.office-gallery {
    margin-bottom: 80px;
}

.office-gallery .gallery-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.office-gallery .gallery-title .title-box {
    width: 31.33%;
    box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-gallery .gallery-title .area-map {
    width: 66.66%;
    box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
    border-radius: 16px;
    padding: 20px;
}

.office-gallery .gallery-title .title-box h2 {
    text-align: center;
    color: #0388C6;
    font-size: 24px;
    padding-top: 75px;
    position: relative;
    font-weight: 500;
}

.office-gallery .gallery-title .title-box h2:before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/culture_img/icon-pin.png');
    width: 65px;
    height: 80px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}


.gallery-block01 {
    margin-bottom: 30px;
}

.gallery-block01 h3 {
    font-size: 16px;
    font-weight: 500;
    padding-left: 45px;
    position: relative;
    margin-bottom: 10px;
}

.gallery-block01 h3:before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/culture_img/icon-pin.png');
    width: 45px;
    height: 50px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gallery-block01 ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
}

.gallery-block01 ul li {
    width: 32%;
    margin-bottom: 2%;
}

.gallery-block02 {
    margin-bottom: 30px;
}

.gallery-block02 ul li p {
    font-size: 16px;
    font-weight: 500;
    padding-left: 45px;
    position: relative;
    margin-bottom: 10px;
}

.gallery-block02 ul li p:before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/culture_img/icon-pin.png');
    width: 45px;
    height: 50px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gallery-block02 ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
}

.gallery-block02 ul li {
    width: 32%;
    margin-bottom: 3%;
}


.gallery-block03 {
    margin-bottom: 30px;
}

.gallery-block03 ul li p {
    font-size: 16px;
    font-weight: 500;
    padding-left: 60px;
    position: relative;
    margin-bottom: 10px;
}

.gallery-block03 ul li p:before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/culture_img/icon-exchange.svg');
    width: 50px;
    height: 40px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.gallery-block03 ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
}

.gallery-block03 ul li {
    width: 32%;
    margin-bottom: 3%;
}

.gallery-block03 ul li.exchange-galery-title {
    box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-block03 ul li.exchange-galery-title h2 {
    text-align: center;
    color: #0388C6;
    font-size: 24px;
    padding-top: 75px;
    position: relative;
    font-weight: 500;
}

.gallery-block03 ul li.exchange-galery-title h2:before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/culture_img/icon-exchange.svg');
    width: 65px;
    height: 80px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 768px) {
    .office-gallery {
        margin-bottom: 50px;
    }

    .office-gallery .gallery-title .title-box {
        width: 100%;
        box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .office-gallery .gallery-title .area-map {
        width: 100%;
        box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
        border-radius: 16px;
        padding: 10px;
        margin-top: 20px;
    }

    .office-gallery .gallery-title .title-box h2 {
        text-align: center;
        color: #0388C6;
        font-size: 20px;
        padding-top: 75px;
        position: relative;
        font-weight: 500;
    }

    .gallery-block01 h3 {
        font-size: 14px;
        padding-left: 35px;
        margin-bottom: 5px;
    }

    .gallery-block01 h3:before {
        width: 35px;
        height: 40px;
    }

    .gallery-block01 ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 2%;
    }

    .gallery-block01 ul li {
        width: 49%;
        margin-bottom: 2%;
    }

    .gallery-block02 {
        margin-bottom: 30px;
    }

    .gallery-block02 ul li p {
        font-size: 14px;
        padding-left: 35px;
        margin-bottom: 5px;
    }

    .gallery-block02 ul li p:before {
        width: 35px;
        height: 40px;
    }

    .gallery-block02 ul {
        gap: 2%;
    }

    .gallery-block02 ul li {
        width: 49%;
        margin-bottom: 4%;
    }


    .gallery-block03 {
        margin-bottom: 30px;
    }

    .gallery-block03 ul li p {
        font-size: 14px;
        padding-left: 50px;
        margin-bottom: 8px;
    }

    .gallery-block03 ul li p:before {
        width: 40px;
        height: 30px;
    }

    .gallery-block03 ul {
        gap: 2%;
    }

    .gallery-block03 ul li {
        width: 49%;
        margin-bottom: 4%;
    }

    .gallery-block03 ul li.exchange-galery-title {
        padding: 20px;
        width: 100%;
    }

    .gallery-block03 ul li.exchange-galery-title h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-block01 ul {
        gap: 2%;
    }

    .gallery-block01 ul li {
        width: 100%;
        margin-bottom: 2%;
    }

    .gallery-block02 ul {
        gap: 2%;
    }

    .gallery-block02 ul li {
        width: 100%;
        margin-bottom: 4%;
    }

    .gallery-block03 ul {
        gap: 2%;
    }

    .gallery-block03 ul li {
        width: 100%;
        margin-bottom: 4%;
    }
}

.movie-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
}

.movie-links ul li {
    width: 32%;
    margin-bottom: 3%;
}

.movie-links ul li .bg,
.movie-links ul li .bg img {
    border-radius: 10px;
}

.movie-links ul li .text {
    padding: 10px 0 0;
}

.movie-links ul li .text p {
    text-align: center;
    line-height: 1.4em;
}

.movie-links ul li .text p span {
    display: block;
    font-size: 12px;
    color: #0388C6;
}

.movie-links ul li.cs {
    pointer-events: none;
}

.movie-links ul li.cs .text p {
    opacity: .5;
}

.movie-links ul li .bg:after {
    content: "";
    display: block;
    position: absolute;
    background: url('../img/common_img/button-window-blue.svg') no-repeat center/contain;
    width: 16px;
    height: 16px;
    right: 7px;
    bottom: 7px;
}

.movie-links ul li.cs .bg:after {
    display: none;
}


@media screen and (max-width: 768px) {
    .movie-links ul {
        gap: 3%;
    }

    .movie-links ul li {
        width: 48.5%;
        margin-bottom: 3%;
    }
}

@media screen and (max-width: 480px) {
    .movie-links ul {
        gap: 0px;
    }

    .movie-links ul li {
        width: 100%;
        margin-bottom: 3%;
    }
}



/* === 社員に聞いてみた === */

.voice-intro-text {
    text-align: center;
    font-size: min(2.4vw, 24px);
    line-height: 2em;
    margin-bottom: 50px;
}

@media screen and (max-width: 768px) {
    .voice-intro-text {
        padding: 20px 0 0;
        font-size: min(4vw, 18px);
        margin-bottom: 30px;
    }
}

.voice {
    margin-bottom: 20px;
    --bubble-bg: #EDF8F0;
    --header-bg: linear-gradient(90deg, #04bb83 0%, #197937 100%);
    --theme-color: #197937;
}

.voice-career {
    --bubble-bg: #ECF8F8;
    --header-bg: linear-gradient(90deg, #0388c6 0%, #1a4e89 100%);
    --theme-color: #004098;
}


.voice-header {
    background: var(--header-bg);
    color: #fff;
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0px 0px 8px rgba(0, 64, 152, 0.3);
    transition: opacity 0.2s;
}

.voice-header:hover {
    opacity: 0.9;
}

.q-text {
    margin: 0;
    font-size: clamp(14px, 3vw, 20px);
    line-height: 1.5em;
    display: flex;
    font-weight: 500;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.05em;
}

.q-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: var(--en-font);
    color: #FFF;
    font-weight: 500;
    font-size: clamp(24px, 5vw, 36px);
}

.toggle {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.toggle::before,
.toggle::after {
    content: '';
    position: absolute;
    background-color: var(--theme-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.toggle::before {
    width: 12px;
    height: 2px;
}

.toggle::after {
    width: 2px;
    height: 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.voice.active .toggle::before {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.voice.active .toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.voice-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.voice.active .voice-body {
    grid-template-rows: 1fr;
}

.voice-body-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.voice.active .voice-body-inner {
    opacity: 1;
    transition: opacity 0.4s ease-out 0.15s;
}

.voice-layout01,
.voice-layout02,
.voice-layout03,
.voice-layout04,
.voice-layout05 {
    padding: 30px 0;
}

.bubble {
    background-color: var(--bubble-bg);
    padding: 20px 20px;
    border-radius: 8px;
    position: relative;
    font-size: clamp(12px, 1.3vw, 16px);
    line-height: 1.6em;
}

.bubble.down::after {
    content: '';
    position: absolute;
    top: calc(100% - 4px);
    left: 45%;
    width: 0;
    height: 0;
    border-top: 25px solid var(--bubble-bg);
    border-left: 15px solid transparent;
    border-right: 0;
    border-bottom: 0;
    transform: rotate(-25deg);
}

.bubble.down.flip::after {
    content: '';
    position: absolute;
    top: calc(100% - 4px);
    left: 45%;
    width: 0;
    height: 0;
    border-top: 25px solid var(--bubble-bg);
    border-left: 0;
    border-right: 15px solid transparent;
    border-bottom: 0;
    transform: rotate(25deg);
}

.bubble.left::after {
    content: '';
    position: absolute;
    right: calc(100% - 4px);
    top: 45%;
    width: 0;
    height: 0;
    border-right: 25px solid var(--bubble-bg);
    border-bottom: 15px solid transparent;
    border-top: 0;
    border-left: 0;
    transform: rotate(25deg);
}

.voice .illust {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================
     レイアウトパターン
  ======================== */

/* layout01 */
.voice-layout01 .bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.voice-layout01 .bubble {
    width: calc((100% - 60px) / 5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 10px;
}

.voice-layout01 .bubble:nth-child(4).down::after,
.voice-layout01 .bubble:nth-child(5).down::after,
.voice-layout01 .bubble:nth-child(8).down::after,
.voice-layout01 .bubble:nth-child(9).down::after {
    content: '';
    position: absolute;
    top: calc(100% - 4px);
    left: 45%;
    width: 0;
    height: 0;
    border-top: 25px solid var(--bubble-bg);
    border-left: 0;
    border-right: 15px solid transparent;
    border-bottom: 0;
    transform: rotate(25deg);
}

.voice-layout01 .illust {
    max-width: 370px;
    height: 90px;
    margin: 0 auto;
    border: none;
    background: transparent;
}

/* layout02 */
.voice-layout02 {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.voice-layout02 .illust {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    padding-top: 30px;
}

.voice-layout02 .bubbles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    flex-grow: 1;
    align-content: start;
}

.voice-layout02 .bubble {
    height: 100%;
    display: flex;
    align-items: center;
}

/* layout03 */
.voice-layout03 {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.voice-layout03 .item {
    max-width: calc(33.33% - 18px);
    display: flex;
    align-items: stretch;
    gap: 25px;
    flex-shrink: 0;
}

.voice-layout03 .illust {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
}

.voice-layout03 .bubble {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* layout04 */
.voice-layout04 .bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.voice-layout04 .bubble {
    width: calc((100% - 60px) / 4);
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 10px;
}

.voice-layout04.with-title .bubble {
    flex-direction: column;
}

.voice-layout04 .illust {
    max-width: 570px;
    height: 170px;
    margin: 0 auto;
    border: none;
    background: transparent;
}

.voice-layout04 .bubble span {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    color: #004098;
    padding-bottom: 5px;
}


@media (max-width: 800px) {
    .voice-layout01 .bubble {
        width: calc((100% - 45px) / 3);
    }
}

@media (max-width: 767px) {

    .voice {
        margin-bottom: 10px;
    }

    .voice-header {
        padding: 10px 10px;
    }

    .q-text {
        font-size: clamp(14px, 2.4vw, 18px);
        gap: 10px;
    }

    .q-icon {
        font-size: clamp(20px, 3vw, 22px);
    }

    .toggle {
        width: 22px;
        height: 22px;
    }

    .bubble {
        background-color: var(--bubble-bg);
        padding: 15px 15px;
        border-radius: 8px;
        position: relative;
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.6em;
    }

    .voice-layout01,
    .voice-layout02,
    .voice-layout03,
    .voice-layout04,
    .voice-layout05 {
        padding: 20px 0;
    }

    .voice-layout01 .bubbles {
        gap: 10px;
    }

    .voice-layout01 .bubble {
        width: calc((100% - 20px) / 2);
        margin-bottom: 15px;
    }

    .voice-layout01 .bubble:nth-child(odd).down::after {
        content: '';
        position: absolute;
        top: calc(100% - 4px);
        left: 45%;
        width: 0;
        height: 0;
        border-top: 25px solid var(--bubble-bg);
        border-left: 15px solid transparent;
        border-right: 0;
        border-bottom: 0;
        transform: rotate(-25deg);
    }

    .voice-layout01 .bubble:nth-child(even).down::after {
        content: '';
        position: absolute;
        top: calc(100% - 4px);
        left: 45%;
        width: 0;
        height: 0;
        border-top: 25px solid var(--bubble-bg);
        border-left: 0;
        border-right: 15px solid transparent;
        border-bottom: 0;
        transform: rotate(25deg);
    }

    .voice-layout02 {
        flex-direction: column-reverse;
        align-items: center;
    }

    .voice-layout02 .bubbles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .voice-layout02 .bubble {
        width: calc(50% - 7.5px);
        height: auto;
        margin-bottom: 5px;
    }

    .voice-layout02 .bubble.left::after {
        right: 50%;
        top: calc(100% - 4px);
        left: auto;
        border-top: 25px solid var(--bubble-bg);
        border-left: 15px solid transparent;
        border-right: 0;
        border-bottom: 0;
        transform: rotate(-20deg);
    }

    .voice-layout01 .illust {
        max-width: 300px;
        height: 80px;
    }

    .voice-layout02 .illust {
        width: 120px;
        flex-shrink: 0;
        padding-top: 0;
    }

    .voice-layout03 {
        flex-direction: column;
        gap: 15px;
    }

    .voice-layout03 .item {
        max-width: 100%;
    }

    .voice-layout03 .illust {
        width: 60px;
        height: 60px;
    }

    .voice-layout04 .bubbles {
        gap: 10px;
    }

    .voice-layout04 .bubble {
        width: calc((100% - 20px) / 2);
        margin-bottom: 10px;
    }

    .voice-layout04 .illust {
        max-width: 370px;
        height: 120px;
    }

    .voice-layout04 .bubble span {
        font-size: 0.9rem;
    }
}


.voice-layout05 {
    --bubble-border-before: #F7D492;
    --bubble-border-after: #BEF5CD;
}

.voice-layout05 {
    display: flex;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.voice-layout05 .bubble {
    background: #FFF;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.box-before .bubble {
    border: 2px solid var(--bubble-border-before);
}

.box-after .bubble {
    border: 2px solid var(--bubble-border-after);
}

.voice-layout05 .item {
    position: relative;
    z-index: 1;
    width: 50%;
}

.box-before .item::before {
    content: '';
    position: absolute;
    top: calc(100% - 6px);
    left: 45%;
    width: 0;
    height: 0;
    border-top: 22px solid #FFF;
    border-left: 15px solid transparent;
    border-right: 0;
    border-bottom: 0;
    transform: rotate(-25deg);
    z-index: 2;
}

.box-before .item::after {
    content: '';
    position: absolute;
    top: calc(100% - 4px);
    left: calc(45% + 1px);
    width: 0;
    height: 0;
    border-top: 24px solid var(--bubble-border-before);
    border-left: 17px solid transparent;
    border-right: 0;
    border-bottom: 0;
    transform: rotate(-25deg);
    z-index: -2;
}

.box-after .item::before {
    content: '';
    position: absolute;
    top: calc(100% - 6px);
    left: 45%;
    width: 0;
    height: 0;
    border-top: 22px solid #FFF;
    border-right: 15px solid transparent;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(25deg);
    z-index: 2;
}

.box-after .item::after {
    content: '';
    position: absolute;
    top: calc(100% - 4px);
    left: calc(45% - 3px);
    width: 0;
    height: 0;
    border-top: 24px solid var(--bubble-border-after);
    border-right: 17px solid transparent;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(25deg);
    z-index: -2;
}

.box-before {
    width: 50%;
    background: #F8F5ED;
    padding: 30px 30px 0;
    border-radius: 8px 0 0 8px;
    position: relative;
}

.box-after {
    width: 50%;
    background: #EDF8F0;
    padding: 30px 30px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.voice-layout05 .illust {
    max-width: 660px;
    width: 70%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.box-before .title {
    position: absolute;
    width: 175px;
    height: 350px;
    border-radius: 175px 0 0 175px;
    background: linear-gradient(#fdeca6 0%, #ffead5 100%);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-after .title {
    position: absolute;
    width: 175px;
    height: 350px;
    border-radius: 0 175px 175px 0;
    background: linear-gradient(#e7ffe3 0%, #bfe6d1 100%);
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-before .title h3,
.box-after .title h3 {
    font-weight: 500;
    color: #004098;
    font-size: 20px;
    line-height: 1.4em;
}

.box-before .title h3 span,
.box-after .title h3 span {
    display: block;
    font-family: var(--en-font);
    font-size: 10px;
    color: #009944;
}

.box-before div.item:nth-of-type(2) {
    top: 0;
    left: 0;
}

.box-before div.item:nth-of-type(3) {
    position: relative;
    top: -35px;
    left: 40%;
}

.box-before div.item:nth-of-type(4) {
    position: relative;
    top: -35px;
    left: 5%;
}

.box-before div.item:nth-of-type(5) {
    position: relative;
    top: -35px;
    left: 20%;
}

.box-after div.item:nth-of-type(2) {
    top: 0;
    left: 0;
}

.box-after div.item:nth-of-type(3) {
    position: relative;
    top: -55px;
    left: 48%;
}

.box-after div.item:nth-of-type(4) {
    position: relative;
    top: -50px;
    left: 35%;
}

.box-after div.item:nth-of-type(5) {
    position: relative;
    top: -45px;
    left: 45%;
}


@media (max-width: 767px) {
    .voice-layout05 .item {
        position: relative;
        z-index: 1;
        width: 100%;
        margin-bottom: 20px;
    }

    .box-before {
        width: 50%;
        padding: 200px 10px 0;
    }

    .box-after {
        width: 50%;
        padding: 200px 10px 40px;
    }

    .voice-layout05 .illust {
        max-width: 660px;
        width: 90%;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .box-before .title {
        position: absolute;
        width: 120px;
        height: 240px;
        border-radius: 120px 0 0 120px;
        background: linear-gradient(#fdeca6 0%, #ffead5 100%);
        right: 0;
        top: 20px;
        transform: translateY(0);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .box-after .title {
        position: absolute;
        width: 120px;
        height: 240px;
        border-radius: 0 120px 120px 0;
        background: linear-gradient(#e7ffe3 0%, #bfe6d1 100%);
        left: 0;
        top: 20px;
        transform: translateY(0);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .box-before .title h3,
    .box-after .title h3 {
        font-weight: 500;
        color: #004098;
        font-size: 16px;
        line-height: 1.4em;
    }

    .box-before .title h3 span,
    .box-after .title h3 span {
        display: block;
        font-family: var(--en-font);
        font-size: 10px;
        color: #009944;
    }

    .box-before div.item:nth-of-type(2) {
        top: 0;
        left: 0;
    }

    .box-before div.item:nth-of-type(3) {
        top: 0;
        left: 0;
    }

    .box-before div.item:nth-of-type(4) {
        top: 0;
        left: 0;
    }

    .box-before div.item:nth-of-type(5) {
        top: 0;
        left: 0;
    }

    .box-after div.item:nth-of-type(2) {
        top: 0;
        left: 0;
    }

    .box-after div.item:nth-of-type(3) {
        top: 0;
        left: 0;
    }

    .box-after div.item:nth-of-type(4) {
        top: 0;
        left: 0;
    }

    .box-after div.item:nth-of-type(5) {
        top: 0;
        left: 0;
    }
}