/* お問い合わせ CTA */

.s5 {
    position: relative;
    padding: 105px 20px 60px;
}

.s5 p {
    text-align: center;
}

.s5 .t1 {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin-bottom: -20px;
}
.s5 .t1 span {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-align: center;
}

.s5 .mail_contact {
    position: relative;
    width: 548px;
    margin: 0 auto;
    margin-bottom: 49px;
}

.s5 .speech-bubble-down {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 370px;
    position: relative;
    background-color: #ffffff;
    border: 3px solid #FD9C01;
    border-radius: 100px;
    padding: 11px 14px;
    text-align: center;
    font-size: 16px;
    color: #333333;
    font-weight: 500;
}

.s5 .speech-bubble-down::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
}

.s5 .speech-bubble-down::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #FD9C01;
    z-index: -1;
}

.s5 .speech-bubble-down .soudan_madoguchi {
    font-size: 16px;
    color: #E78E00 !important;
    font-weight: 600;
}

.s5 .nowrap { white-space: nowrap; }

.s5 .mail_btn {
    background-color: #FD9C01;
    border-radius: 100px;
    padding: 32px 0;
    color: #fff;
    font-weight: 700;
    justify-content: space-between;
    margin-top: 30px;
    cursor: pointer;
    text-decoration: none;
}

.s5 .mail_btn p {
    color: #fff;
    font-weight: 700;
    font-size: 24px;
}

.s5 .mail_btn .mail_icon {
    width: 35px;
    aspect-ratio: 1/1;
    background-image: url("../../media/p1_s5_1.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 71px;
}
.s5 .mail_btn .arrow_btn {
    width: 26px;
    aspect-ratio: 1/1;
    background-image: url("../../media/p1_s5_2.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 37px;
}
.s5 .phone_contact p {
    text-align: center;
    font-size: 16px;
    color: #535353;
    font-weight: 600;
    margin-bottom: 8px;
}

.s5 .phone_btn {
    background-color: #fff;
    border-radius: 100px;
    box-shadow:3px 4px 4px 0px rgba(0, 0, 0, 0.15);
    width: 300px;
    height: 72px; 
    margin: 0 auto;
    cursor: pointer;
}

.s5 .phone_icon {
    width: 26px;
    height: 32px;
    background-image: url("../../media/h_1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 21px;
}

.s5 .phone_detail p {
    text-align: start;
}

.s5 .phone_detail .t2 {
    color: #1E4B9F;
    font-size: 24px;
    font-weight: 700;
    font-family: "DIN Alternate", sans-serif;
}

.s5 .phone_detail .t3 {
    color: #1E4B9F;
    font-size: 12px;
    font-weight: 350;
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
}

.s5 .bg_1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../media/p1_s5_3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .s5 { padding-top: 90px; padding-bottom: 50px; }
    .s5 .mail_contact { width: 70%; max-width: 520px; }
    .s5 .speech-bubble-down { top: 40px; width: 340px; font-size: 15px; }
    .s5 .mail_btn p { font-size: 22px; }
    .s5 .t1 { font-size: 22px; }
    .s5 .t1 span{ font-size: 22px; }
}

@media (max-width: 768px) {
    .s5 { padding-top: 70px; padding-bottom: 50px; }
    .s5 .mail_contact { width: 90%; max-width: 480px; }
    .s5 .speech-bubble-down { width: 300px; padding: 10px 18px; font-size: 14px; }
    .s5 .speech-bubble-down span { font-size: 14px; }
    .s5 .mail_btn { padding: 26px 0; }
    .s5 .mail_btn .mail_icon { margin-left: 40px; }
    .s5 .mail_btn .arrow_btn { margin-right: 28px; }
    .s5 .mail_btn p { font-size: 20px; }
    .s5 .phone_btn { width: 260px; height: 66px; }
    .s5 .phone_detail .t2 { font-size: 22px; }
    .s5 .t1 { font-size: 20px; }
    .s5 .t1 span{ font-size: 20px; }
}

@media (max-width: 480px) {
    .s5 { padding-top: 80px; padding-bottom: 80px; }
    .s5 .t1 { font-size: 20px; line-height: 1.55; padding: 0 16px; margin-bottom: 40px;}
    .s5 .t1  span{ font-size: 18px; line-height: 1.55; padding: 0 16px; }
    .s5 .mail_contact { width: 100%; margin-bottom: 40px; }
    .s5 .speech-bubble-down { position: absolute; top: -17px; left: 50%; transform: none; transform: translateX(-50%); width: 280px; border-radius: 60px; font-size: 10px; z-index: 10;}
    .s5 .speech-bubble-down::after { margin-top: -3px;}
    .s5 .speech-bubble-down span { font-size: 10px !important; }
    .s5 .mail_btn { width: calc(100% - 32px); margin: 0 auto; padding: 22px 0;}
    .s5 .mail_btn .mail_icon { margin-left: 24px; width: 30px; }
    .s5 .mail_btn .arrow_btn { margin-right: 20px; width: 22px; }
    .s5 .mail_btn p { font-size: 18px; }
    .s5 .phone_contact p { font-size: 14px; }
    .s5 .phone_btn { width: calc(100% - 120px); max-width: 280px; height: 64px; }
    .s5 .phone_icon { margin-right: 14px; width: 22px; height: 28px; }
    .s5 .phone_detail .t2 { font-size: 20px; }
    .s5 .phone_detail .t3 { font-size: 11px; }
}

@media (max-width: 360px) {
    .s5 .mail_btn p { font-size: 16px; }
    .s5 .speech-bubble-down { font-size: 12px; }
    .s5 .phone_detail .t2 { font-size: 18px; }
    .s5 .t1 { font-size: 16px; }
    .s5 .t1 span{ font-size:16px; }
}
