
/* ==================================================
   Header
================================================== */
.header-nav .contact .header-nav-item {
    border: 2px solid #21a4dc;
    border-radius: 25px;
}

/* =========================
   お問い合わせ
========================= */
.sec.contact {
    margin: 200px auto 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .sec .ttl, .sec .ttl-j, .sec .ttl-e は page.css で定義 */
.sec.contact .ttl {
    margin-bottom: 40px;
    text-align: center;
}

.sec.contact .ttl-j {
    letter-spacing: .05em;
}

.sec.contact .ttl-e {
    top: 32%;
    color: #f4f8f9;
}

.text {
    margin-bottom: 60px;
    width: 100%;
    max-width: 1000px;
}

.text h3 {
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 3.1rem;
    line-height: 1.6;
}

.text p {
    color: #686868;
    font-weight: bold;
    font-size: 2.4rem;
    line-height: 1.7;
}

.wpcf7 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wpcf7 form {
    margin: 0 auto 80px;
    font-size: 1.5rem;
    width: 85vw;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-wraper {
    width: 70vw;
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 80px 100px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
    background-color: #f4f8f9;
}


.form-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 40px;
}

.message {
    margin-bottom: 50px;
}

.form-row label {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-weight: bold;
    font-size: 2.4rem;

    gap: 24px;
}

.form-row:not(.input-top) input[type="text"],
.form-row:not(.input-top) input[type="email"],
.form-row:not(.input-top) input[type="tel"],
.form-row textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #ffffff;
    font-size: 2.4rem;
    text-align: left;
    transition: border-color .3s ease;
}

.form-row textarea {
    height: 320px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: #0065a1;
    outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #aaaaaa;
}

.wpcf7 .check {
    margin-bottom: 70px;
    font-weight: bold;
    font-size: 2.4rem;
}

.wpcf7 .required {
    padding: 3px 6px;
    background-color: #ea3411;
    color: #ffffff;
    font-size: 1.8rem;
}

.submit {
    margin: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 38px 130px 38px 65px;
    border-radius: 120px;
    background-color: #21a4dc;
    color: #ffffff;
    font-weight: bold;
    font-size: 2.4rem;
    font-family: "biz-udgothic", sans-serif;
    cursor: pointer;
    transition: transform .3s ease;
}

.btn-submit {
    position: relative;
    display: inline-block;
}

/* Contact Form 7のsubmitボタンを透明にして全体をクリック可能に */
.btn-submit input[type="submit"],
.btn input[type="submit"],
.wpcf7 input[type="submit"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border: none;
    background: transparent;
    color: transparent;
    font: inherit;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* ボタンのテキストを表示するためのspan要素 */
.btn-submit .btn-text,
.btn .btn-text {
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
}

.submit-circle {
    position: absolute;
    top: 50%;
    right: 2%;
    z-index: 1;
    transform: translateY(-50%);
    width: 85px;
    height: 85px;
}

.submit-circle svg {
    width: 100%;
    height: auto;
    animation: submit-spin 15s linear infinite;
}

.submit-circle text {
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 1.1px;

    fill: #ffffff;
}

.btn::after {
    position: absolute;
    top: 50%;
    right: 35px;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 3.2rem;
    content: "→";
}

span.wpcf7-spinner {
    display: none;
}

/* =========================
   回転アニメーション
========================= */
@keyframes submit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* hover */
@media (min-width: 1026px) {
    .btn:hover {
        transform: translateY(-6px);
    }
}


/* =========================
   Tablet
========================= */
@media (max-width: 1025px) {
    .sec.contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-wraper {
        width: 90vw;
        max-width: 1000px;
        padding: 60px 50px 50px;
        margin-bottom: 80px;
    }

    .wpcf7 form {
        width: 100%;
        margin: 0 auto 60px;
        font-size: 1.4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        margin-bottom: 35px;
    }

    .form-row label {
        font-size: 2rem;
        margin-bottom: 14px;
        gap: 18px;
    }

    .form-row:not(.input-top) input[type="text"],
    .form-row:not(.input-top) input[type="email"],
    .form-row:not(.input-top) input[type="tel"],
    .form-row textarea {
        padding: 14px 16px;
        font-size: 2rem;
    }

    .form-row textarea {
        height: 280px;
    }

    .wpcf7 .check {
        margin-bottom: 45px;
        font-size: 2rem;
    }

    .submit {
        margin: 20px;
    }

    .btn {
        padding: 30px 60px;
        font-size: 2.2rem;
    }

    .wpcf7 input[type="submit"] {
        border: none;
        background: transparent;
        color: inherit;
        font: inherit;
        cursor: pointer;
        padding: 0;
    }

    .submit-circle {
        display: none;
    }

    .btn::after {
        display: none;
    }

    span.wpcf7-spinner {
        display: none;
    }
}
/* =========================
   SP
========================= */
@media (max-width: 767px) {
    .sec.contact {
        margin: 100px auto 0;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sec.contact .ttl {
        margin-bottom: 30px;
    }

    .sec.contact .ttl-j {
        font-size: 3.6rem;
    }

    .sec.contact .ttl-e {
        top: 40%;
        font-size: 9rem;
    }

    .text {
        margin-bottom: 40px;
        width: 100%;
        max-width: 100%;
    }

    .text h3 {
        font-size: 1.6rem;
    }

    .text p {
        font-size: 1.4rem;
    }

    .contact-wraper {
        width: 100%;
        max-width: 100%;
        padding: 35px 20px 40px;
        margin: 0 auto 50px;
        border-radius: 10px;
    }

    .wpcf7 {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .wpcf7 form {
        width: 100%;
        margin: 0 auto 40px;
        font-size: 1.3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        margin-bottom: 24px;
    }

    .form-row label {
        font-size: 1.4rem;
        margin-bottom: 10px;
        gap: 10px;
    }

    .form-row:not(.input-top) input[type="text"],
    .form-row:not(.input-top) input[type="email"],
    .form-row:not(.input-top) input[type="tel"],
    .form-row textarea {
        padding: 12px 12px;
        font-size: 1.4rem;
    }

    .form-row textarea {
        height: 220px;
    }

    .wpcf7 .check {
        margin-bottom: 32px;
        font-size: 1.4rem;
    }

    .wpcf7 .required {
        font-size: 1.3rem;
        padding: 2px 5px;
    }

    .submit {
        margin: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn {
        padding: 20px 25px 20px 36px;
        font-size: 1.6rem;
        border-radius: 80px;
    }

    .wpcf7 input[type="submit"] {
        border: none;
        background: transparent;
        color: inherit;
        font: inherit;
        cursor: pointer;
        padding: 0;
    }

    .submit-circle {
        display: none;
    }

    .btn::after {
        display: none;
    }

    span.wpcf7-spinner {
        display: none;
    }
}


