/*
========================
footer-contact
========================
*/
.contact {
    width: 100%;
    height: fit-content;
    padding: 40px 20px;
    box-sizing: border-box;
    background: var(--wp--custom--color--blue--100);
}

.contact_wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 28px;
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(287deg, #0A72DB -1.08%, #4BC0E8 100%);
}

.contact_wrapper::before {
    position: absolute;
    top: 35px;
    left: -11px;
    mix-blend-mode: overlay;
    color: var(--color-blue-blue-500, #3C8FDC);
    font-family: "Noto Sans JP";
    font-size: 53px;
    font-weight: 700;
}

.contact_box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 12px;
    gap: 28px;
}

.contact_box:not(:last-child)::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    border-radius: 9999px;
    background: var(--wp--custom--color--neutral--50);
}

.contact_text_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.contact_title_accent {
    color: var(--wp--custom--color--gray--50);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.7px;
}

.contact_title {
    color: var(--wp--custom--color--gray--50);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 1.2px;
}

.contact_btn_box {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media screen and (min-width: 1280px) {
    .contact {
        padding: 160px 120px;
        display: flex;
        justify-content: center;
    }

    .contact_wrapper {
        flex-direction: row;
        padding: 48px 0;
        border-radius: 28px;
        width: 1280px;
    }

    .contact_wrapper::before {
        top: 24px;
        left: -36px;
        font-size: 120px;
    }

    .contact_box {
        width: 100%;
        padding: 32px 40px 40px;
        gap: 28px;
    }

    .contact_box:not(:last-child)::before {
        bottom: 0;
        right: 0;
        width: 2px;
        height: 100%;
    }

    .contact_btn_box {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

/*
========================
contact_btn
========================
*/
.contact_btn {
    position: relative;
    display: flex;
    padding: 10px 12px 10px 14px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 300px;
    font-size: 12px;
    font-weight: 700;
    font-family: "Noto Sans JP", serif;
    color: var(--wp--custom--color--gray--50);
    border: 2px solid var(--wp--custom--color--gray--50);
    border-radius: 9999px;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: color 0.6s ease;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.contact_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: all 0.3s ease 0s;
    background-color: var(--wp--custom--color--gray--50);
    border-radius: 9999px;
    z-index: -1;
}

.contact_btn_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    aspect-ratio: 1/1;
    border-radius: 9999px;
    background: var(--wp--custom--color--gray--50);
    flex-shrink: 0;
    color: var(--wp--custom--color--blue--400);
    padding: 4px;
    box-sizing: border-box;
    fill: var(--wp--custom--color--blue--400);
    transition: all 0.3s ease;
}

@media screen and (max-width: 1280px) {
    .contact_btn:active::before {
        width: 100%;
    }

    .contact_btn:active {
        color: var(--wp--custom--color--blue--400);
    }

    .contact_btn:active .contact_btn_icon {
        background: var(--wp--custom--color--gradation--blue);
        color: var(--wp--custom--color--gray--50);
        fill: var(--wp--custom--color--gray--50);
    }
}

@media screen and (min-width: 1280px) {
    .contact_btn {
        align-items: center;
    }

    .contact_btn_icon {
        width: 24px;
    }

    .contact_btn:hover::before {
        width: 100%;
    }

    .contact_btn:hover {
        color: var(--wp--custom--color--blue--400);
    }

    .contact_btn:hover .contact_btn_icon {
        background: var(--wp--custom--color--gradation--blue);
        color: var(--wp--custom--color--gray--50);
        fill: var(--wp--custom--color--gray--50);
    }
}
