/* ========================
   contact page styles
======================== */

.contact {
    padding: 10rem 0;
}

.contact-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

.contact-title {
    margin-bottom: 8rem;
    color: #000;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: center;
}

.contact-title span {
    display: block;
    color: #000;
    font-family: 'Toppan Bunkyu Midashi Gothic', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    font-size: 3rem;
    font-weight: 900;
}

.contact-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 4rem;
    font-size: 2rem;
    font-weight: 700;
    padding-left: 2rem;
}

.contact-text span {
    color: #000;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-left: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form {
    padding: 0 2rem;
}

.flex {
    border-bottom: 1px solid #a1a1a1;
    padding: 1rem 0;
    font-weight: bold;
}

.flex:first-of-type {
    border-top: 1px solid #a1a1a1;
}

.contact-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea,
.contact-form input:-internal-autofill-selected {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #a1a1a1;
    border-radius: 8px;
    font-size: 1rem;
    background: #f6f9fa;
    resize: vertical;
    box-sizing: border-box;
}

.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
    background-color: #f6f9fa !important;
    -webkit-box-shadow: 0 0 0px 1000px #f6f9fa inset !important;
    box-shadow: 0 0 0px 1000px #f6f9fa inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #f6f9fa inset !important;
  box-shadow: 0 0 0px 1000px #f6f9fa inset !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
}

.btn {
    display: block;
    width: 100%;
    padding: 1rem 0;
    background: #0070c0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background: #0082d8;
}

#form .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

#form .flex label {
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}

.input-wrapper {
    width: 70%;
    position: relative;
}

#form span.required {
    color: #ed4b00;
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
    padding-left: 1rem;
}

#form input,
#form select,
#form .box_det,
#form textarea {
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 70px;
    padding: 0 1em;
    font-size: 1.2rem;
}

#form input:focus,
#form select:focus,
#form .box_det:focus,
#form textarea:focus {
    outline: none;
}

#form textarea {
    padding-top: 0.5em;
    height: 15rem;
}

#form .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

#form p.error {
    color: #ed4b00;
    font-size: 1rem;
    left: -8px;
    position: relative;
}

.privacy-check {
    margin: 2rem 0 1rem 0;
    font-size: 1rem;
    color: #333;
}

#form .flex .privacy-check label {
    margin: 0 auto;
}

.privacy-check a {
    text-decoration: underline;
    margin-left: 8px;
}

.privacy-check label {
    margin: 0 auto;
}

#form .privacy-check input[type='checkbox'] {
    margin-right: 8px;
    accent-color: #0070c0;
    width: 1.2rem;
    height: 1.2rem;
    display: inline;
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#form .radio-group input {
    height: 1.2rem;
    width: 1.2rem;
    display: inline;
    vertical-align: sub;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #0070c0;
    width: 1.5rem;
    height: 1.5rem;
}

.radio-label span {
    font-weight: 500;
}

#form input[type="submit"] {
    border: 1px solid #333;
    border-radius: 50px;
    width: 20rem;
    margin: 5rem auto 0;
    display: block;
    background: #fff;
    color: #333;
    font-weight: bold;
}

@media (max-width: 800px) {
    .contact {
        padding: 5rem 0;
    }

    .contact-inner {
        padding: 1.5rem 1rem;
        margin: 0;
        width: 100%;
    }

    .contact-title {
        margin-bottom: 2rem;
        font-size: 1.3rem;
    }

    .contact-title span {
        font-size: 2.5rem;
    }

    .contact-tel-group h3,
    .contact-mail-group h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    #form span.required {
        font-size: 0.8rem;
        padding-left: 0.5rem;
    }

    .contact-text {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        padding-left: 0rem;
    }

    .contact-text span {
        color: #000;
        font-size: 0.8rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        padding-left: 0rem;
        display: block;
    }

    .contact-form {
        padding: 0;
    }

    #form .radio-group input {
        height: 1rem;
        width: 1rem;
        margin: 0;
        display: inline;
        vertical-align: middle;
    }

    #form .flex label {
        font-size: 1rem;
    }

    #form .flex {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .input-wrapper {
        width: 100%;
    }

    .required {
        white-space: nowrap;
    }

    #form input,
    #form select,
    #form .box_det,
    #form textarea {
        height: 50px;
        padding: 0 1rem;
        font-size: 1rem;
    }

    #form textarea {
        padding-top: 0.5em;
    }

    #form p.error {
        font-size: 0.8rem;
    }

    .privacy-check {
        margin: 0rem 0 2rem 0;
        font-size: 0.8rem;
    }

    #form .privacy-check input[type='checkbox'] {
        margin-right: 0px;
        accent-color: #0070c0;
        width: 0.8rem;
        height: 0.8rem;
        display: inline;
    }
}

/* ========================
   thanks page styles
======================== */

.finish {
    padding: 10rem 0;
    text-align: center;
}

.finish-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.finish-title {
    margin-bottom: 4rem;
    color: #1d2577;
    font-family: 'Toppan Bunkyu Midashi Gothic', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
    letter-spacing: 0.1rem;
}

.finish-title span {
    display: block;
    color: #000;
    font-family: 'Toppan Bunkyu Midashi Gothic', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    font-size: 4.25rem;
    font-weight: 900;
}

@media (max-width: 900px) {
    .finish {
        padding: 5rem 0;
    }

    .finish-title {
        font-size: 1.2rem;
        padding-top: 2rem;
        margin-bottom: 2rem;
    }

    .finish-inner {
        padding: 1.5rem 1rem;
        margin: 0;
        width: 100%;
    }

    .finish p {
        text-align: left;
    }

    .finish-btn {
        margin-top: 3rem;
        text-align: center;
    }

    .finish-btn .btn {
        display: inline-block;
        padding: 1rem 2rem;
        background: #0070c0;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: bold;
        transition: background 0.3s;
    }

    .finish-btn .btn:hover {
        background: #0082d8;
    }
}