﻿@charset "UTF-8";

#Footer {
    margin-top: 0;
}

/* contact
---------------------------------------------------*/
#contact {
    width: 100%;
    background-color: var(--background-color);
    padding-bottom: 168px;
}
#contact .inner {
    padding-top: var(--40px);
    margin: 0 auto;
}
#contact .headline {
    padding: 0 var(--24px);
    margin: 0 auto var(--40px);
}
#contact .headline .ttl-section {
    margin-bottom: var(--40px);
}
#contact .headline .txt {
    line-height: 1.8em;
    margin-bottom: 2.5em;
}
#contact .steps-wrap {
    margin: var(--16px) auto 0;
}
#contact ul.steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 380px;
    margin: 0 auto;
    z-index: 1;
}
#contact ul.steps::after {
    position: absolute;
    content: '';
    top: 12px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color : var(--black-color);
    z-index: -1;
}
#contact ul.steps li {
    position: relative;
    text-align: center;
    font-size: var(--font-size-s);
    font-weight: 400;
    background-color: var(--background-color);
    padding: 36px 40px 0;
}
#contact ul.steps li::before {
    position: absolute;
    content: '';
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 2em;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--black-color);
    border-radius: 50%;
}
#contact ul.steps li.is-current {
    color: var(--main-color);
    font-weight: 700;
}
#contact ul.steps li.is-current::before {
    background-color : var(--main-color);
}

/* form */
#contact .contact-form-wrap {
    width: 100%;
}
#contact .contact-form {
    width: 100%;
    padding: 40px 24px;
}
/* form-list */
#contact .form-list dt {
    width: 100%;
    line-height: 1.8em;
    font-weight: 700;
    margin-bottom: 0.5em;
}
#contact .form-list dt span,
#contact .agreement span {
    display: inline-block;
    line-height: 1em;
    color: var(--white-color);
    font-size: var(--font-size-s);
    font-weight: 700;
    background-color: #F13B3B;
    padding: 0.4em 1em;
    margin-left: 0.5em;
}
#contact .form-list dd {
    width: 100%;
}
#contact .form-list dd + dt {
    margin-top: var(--40px);
}
#contact .form-list dd .flex-wrap {
    display: flex;
    gap: 40px;
}
#contact .form-list dd .length-m {
    max-width: 560px;
}
#contact .form-list dd .length-s {
    max-width: 320px;
}
#contact .form-list dd .note {
    line-height: 1.8em;
    font-size: var(--font-size-s);
    margin-top: 0.5em;
}
#contact .form-list dd .note {
    line-height: 1.8em;
    font-size: var(--font-size-s);
    margin-top: 0.5em;
}
#contact .form-list dd .error {
    line-height: 1.8em;
    color: #F13B3B;
    font-size: var(--font-size-s);
    margin-top: 0.5em;
}
#contact .agreement {
    line-height: 1.8em;
    font-weight: 500;
    margin-top: 40px;
}

/* confirm */
#contact.confirm .form-list dd {
    line-height: 1.8em;
    padding-left: 1em;
    margin-top: 1em;
}
#contact.confirm .agreement {
    pointer-events: none;
}
#contact.confirm .agreement a {
    pointer-events: auto;
}

/* complete */
#contact.complete .contact-form .txt {
    line-height: 1.7em;
    margin-bottom: var(--24px);
}

/* 768 */
@media screen and (min-width:1px) and (max-width: 768px) {
    #contact {
        padding-bottom: var(--64px);
    }
    #contact .headline .ttl-section {
        margin-bottom: var(--24px);
    }
    #contact .steps-wrap {
        text-align: center;
        margin-top: var(--24px);
    }
    #contact ul.steps {
        display: inline-flex;
        flex-direction: column;
    }
    #contact ul.steps::after {
        top: 0;
        left: 3.0769vw;
        width: 1px;
        height: 100%;
    }
    #contact ul.steps li {
        display: flex;
        align-items: center;
        padding: 2.5641vw 0 2.5641vw 12.8205vw;
    }
    #contact ul.steps li:not(:first-child) {
        margin-top: 2.5641vw;
    }
    #contact ul.steps li:not(:last-child) {
        margin-bottom: 2.5641vw;
    }
    #contact ul.steps li::before {
        top: 50%;
        left: 0;
        transform: translate(0, -50%);
    }

    /* form */
    #contact .contact-form {
        padding: var(--40px) var(--16px);
    }
    /* form-list */
    #contact .form-list dd .flex-wrap {
        gap: var(--16px);
    }
    #contact .form-list dd .length-m,
    #contact .form-list dd .length-s {
        max-width: none;
    }
    #contact .agreement {
        margin-top: var(--40px);
    }
}
