/* step */

.step-flow {
    margin-top: 50px;
}

.step-flow-section-inner.mini {
    padding: 0 31.5px;
    width: 35.5%;
    margin: 0 auto;
}

.contact-flow-section-inner {
    width: 50.7%;
    margin: 0 auto;
}

.contact-flow-section-inner.center {
    text-align: center;
}

/* contact form */
.contact-form {
    margin-top: 80px;
}

.contact-contents {
    margin-top: 50px;
}

.contact-form table,
.contact-form thead,
.contact-form tbody,
.contact-form tr,
.contact-form th,
.contact-form td {
    display: block;
}

.contact-form-table {
    table-layout: fixed;
    width: 100%;
}

.contact-privacy h2 {
    font-size: 18px;
    font-weight: bold;
    line-height: 24px;
    letter-spacing: 1.8px;
}

.form-group p {
    margin-top: 24px;
    width: 100%;
}

.form-caption p {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 1.8px;
}

.form-input > p,
.form-input-address > p {
    margin-top: 12px;
}

.form-required {
    display: inline-block;
    color: #F44336;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 18px;
    letter-spacing: 2px;
}

textarea {
    width: 100%;
    border: 1px solid #CACACA;
    padding: 8px 16px;
    resize: none;
    line-height: 24px;
    letter-spacing: 1.6px;
}

.contact-personal-information {
    margin-top: 24px;
}

.form-input input[type="text"],
.form-input input[type="email"] {
    border: 1px solid #CACACA;
    padding: 8px 16px;
    width: 100%;
}

.wpcf7-form textarea::placeholder {
  color: #999;
  font-size: 14px;
}

.wpcf7-text::placeholder {
    color: #999;
  font-size: 14px;
}

.form-input-address p {
    display: flex;
    align-items: center;
    padding-left: 4px;
}

.form-input-address p span:not(:first-of-type) {
    margin-left: 12px;
    display: inline-block;
    width: 160px;
}

.form-input-address p button {
    margin-left: 12px;
    display: inline-block;
    width: 160px;
    height: 36px;
    text-align: center;
    color: #fff;
    line-height: 27px;
    letter-spacing: 1.6px;
    background-color: #2668D0;
    border: 1px solid #2668D0;
    box-shadow: 2px 2px 10px 0px #0000001A;
}

.triangle {
    color: #2668D0;
    font-size: 16px;
}

.form-input-emailtext {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-privacy {
    margin-top: 24px;
}

.privacy-block:not(:first-of-type) {
    padding-top: 60px;
}

.contact-privacy-text {
    border: 1px solid #CACACA;
    font-size: 14px;
    padding: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 20px;
    overflow: auto;
    height: 200px;
    scroll-padding: 50px 0;
}

.contact-privacy-text h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 28px;
}

.privacy-item {
    margin-top: 16px;
    padding-left: 16px;
}

.privacy-item h4 {
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    margin-bottom: 8px;
}

.privacy-block p {
    line-height: 1.5;
}

.privacy-item-list li:not(:last-of-type) {
    margin-top: 8px;
    margin-bottom: 8px;
}

.privacy-item-list > li {
    margin-left: 2.5em;
    text-indent: -2.65em;
}

.privacy-item-sublist {
    list-style-type: disc;
    margin-left: 1em;
}

.privacy-item-sublist li {
    position: relative;
}

.privacy-item-sublist li {
    margin-left: 0;
    text-indent: 0; 
}

.privacy-footer {
    margin-top: 30px;
}

.contact-agree {
    margin-top: 40px;
    text-align: center;
}

.contact-agree label {
    cursor: pointer;
}

.contact-agree input[type="checkbox"]{
    appearance: none;
    width: 12px;
    height: 12px;
    border: 1px solid #111;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

/* チェック状態 */
.contact-agree input[type="checkbox"]:checked {
  background-color: #0a84ff;
  border-color: #0a84ff;
}

/* チェックマーク（擬似要素） */
.contact-agree input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-agree label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.contact-agree span {
    user-select: none;
    font-weight: bold;
}

.form-footer {
    margin-top: 80px;
    text-align: center;
    width: 92%;
    margin: 80px auto 0 auto;
}

.form-footer p {
    line-height: 28px;
    letter-spacing: 1.6px;
}

.form-btn {
    margin-top: 50px;
    margin-bottom: 80px;
}

.form-btn p {
    text-align: center;
}

.form-btn input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #2668D0;
    border: 1px solid transparent;
    color: #fff;
    box-shadow: 2px 2px 10px 0px #0000001A;
    text-align: center;
}

.form-btn input[type="submit"]:hover {
    color: #2668D0;
    background-color: #fff;
    border-color: #2668D0;
}

.form-btn input[type="submit"].disabled {
    background-color: #707070;
    border-color: #707070;
    pointer-events: none;
}

.form-btn span {
    display: none;
}

.form-input .wpcf7-not-valid-tip {
    font-size: 14px;
    margin-top: 8px;
}

.form-input .input-error {
    display: none;
    font-size: 14px;
    margin-top: 8px;
    color: #dc3232;
}

.contact-form .wpcf7-response-output {
    text-align: center;
}

/* contact complete */
.contact-form.contact-complete {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 80px;
}

.contact-form.contact-complete p {
    line-height: 28px;
    letter-spacing: 1.6px;
}

.btn.white-blue {
    margin-top: 50px;
    border: none;
}

.btn.white-blue a {
    display: inline-block;
    width: 100%;
    color: #2668D0;
    border: 1px solid #2668D0;
    transition: all .3s;
}

.btn.white-blue a:hover {
    color: #fff;
    background-color: #2668D0;
}

/* confirm modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0; 
    right: 0; 
    bottom: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    padding: 3rem;
    max-width: 760px;
    margin: 10% auto;
    border-radius: 8px;
    text-align: center;
}

.modal-content p {
    line-height: 28px;
    letter-spacing: 1.6px;
}

.modal-actions {
    margin-top: 50px;
}

.modal-actions p {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.modal-actions button {
    margin: 0 10px;
}

.modal-actions button.cancel {
    background-color: #707070;
    color: #fff;
    border-color: #707070;
    transition: all .3s;
}

.modal-actions button.cancel:hover {
    background-color: #fff;
    color: #111;
}

.modal-actions button.send {
    background-color: #2668D0;
    color: #fff;
    border-color: #2668D0;
    transition: all .3s;
}

.modal-actions button.send:hover {
    background-color: #fff;
    color: #111;
}

.wpcf7-response-output {
  display: none !important;
}

@media only screen and (max-width: 1089px) {
    .step-flow {
        margin-top: 40px;
    }
    .step-flow-section-inner.mini {
        width: 90.7%;
        padding: 0;
    }

    .step-flow ul li a {
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 1.2px;
    }

    .step-flow ul li.current {
        padding-left: 4px;
    }

    .step-flow ul li:nth-last-of-type(2) a {
        padding-left: 6px;
    }

    .step-flow ul li.current:nth-last-of-type(2) a {
        margin-left: 4px;
    }
    
    .step-flow ul li.current:nth-of-type(3) a {
        margin-left: 4px;
    }

    .step-flow ul li:not(:last-of-type) >::after {
        border-left-width: 8px;
    }

    .step-flow ul li:not(:last-of-type)::after {
        border-left-width: 8px;
    }

    .contact-flow-section-inner {
        width: 89.3%;
    }

    .contact-form {
        margin-top: 40px;
    }

    .form-title {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 1.6px;
    }

    .form-group p {
        margin-top: 16px;
    }

    .form-caption p {
        font-size: 16px;
        letter-spacing: 1.6px;
    }

    .form-input-address p span:not(:first-of-type),
    .form-input-address p button {
        width: 130px;
    }

    .form-input-address p button {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 1.4px;
    }

    .contact-agree {
        margin-top: 50px;
    }

    .contact-agree span {
        font-size: 14px;
        line-height: 22px;
        letter-spacing: 1.4px;
    }

    .form-footer {
        margin-top: 50px;
    }
    
    .form-footer p {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 1.4px;
    }

    .form-btn {
        margin-top: 32px;
        margin-bottom: 50px;
    }

    .modal-actions p {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0;
    }

    /* contact confirm */
    .contact-form.confirm {
        margin-top: 30px;
    }

    .contact-form.confirm .form-group th > p {
        margin-top: 16px;
    }

    .contact-form.confirm .form-group td > p {
        margin-top: 12px;
    }

    .contact-form.confirm .form-input-address p span:not(:first-of-type) {
        margin-left: 4px;
    }

    .contact-form.confirm .form-group .form-input-address p {
        margin-top: 12px;
    }

    .contact-form.confirm .form-group .form-input-address-desc p {
        margin-top: -16px;
    }

    .confirm .form-footer {
        margin-top: 50px;
        margin-bottom: 50px;
    }

    /* contact complete */
    .contact-form.contact-complete {
        margin-top: 50px;
    }

    .contact-form.contact-complete p {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 1.4px;
    }
}