@charset "utf-8";
/* CSS Document */
body {
    overflow-x: hidden;
    font-family: 'メイリオ', sans-serif, 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', sans-serif;
    color: #333;
    line-height: 1.6;
}
main {
    overflow: hidden;
    margin-bottom: 80px;
}

#form_wrap {
    padding: 20px;
}

.form-title {
    margin: 60px auto 40px;
    text-align: center;
}
.form-title h2 {
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    color: #856b30;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}
.form-title h2:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    display: inline-block;
    width: 80px;
    height: 1px;
    background-color: #bb8f55;
    transition: .5s all;
}
.form-title p {
    font-size: 1.1rem;
    color: #555;
}

.form-tel {
    width: 60%;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.form-tel p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}
.form-tel a {
    font-size: 1.8rem;
    color: #bb8f55;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.form-tel a:hover {
    color: #856b30;
}

#contact-form {
    width: 60%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #FFF;
    border: solid 1px #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.color-wrap {
    padding: 0;
    background: none;
}

dl.mailform {
    width: 100%;
    margin: 0 auto;
    border: none;
    background: none;
    padding: 0;
}
dl.mailform dt {
    margin-bottom: 8px;
    color: #444;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
dl.mailform dd {
    margin-bottom: 25px;
    border-bottom: none;
    padding-bottom: 0;
}

.must {
    font-size: 10px;
    color: #D00;
    margin-left: 5px;
}

input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    box-sizing: content-box;
}

input[type="radio"] {
    width: auto;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    padding: 0;
    outline: none;
    border-radius: 50%;
    -webkit-appearance: radio;
    -moz-appearance: radio;
    appearance: radio;
    box-sizing: content-box;
}

.check_wrap {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.check_wrap label {
    font-size: 1rem;
    color: #444;
    cursor: pointer;
}

.privacy_link {
    text-align: center;
    margin: 30px 0;
    font-size: 0.9rem;
    color: #666;
}
.privacy_link a {
    display: inline;
    color: #bb8f55;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.privacy_link a:hover {
    color: #856b30;
}

div.mfp_buttons {
    clear: both;
    padding: 20px 0;
    text-align: center;
}
div.mfp_buttons button {
    background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    color: #FFF;
    width: 300px;
    border-radius: 10px;
    text-shadow: none;
    transition: .3s ease-in-out;
}
div.mfp_buttons button:hover {
    background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
    opacity: .5;
}

.thanks-cap {
    margin: 50px auto;
    text-align: center;
    font-size: 1.2rem;
    color: #555;
}
.done a {
    display: inline-block;
    text-align: center;
    padding: 15px;
    width: 300px;
    margin: 30px auto;
    transition: .5s all;
    background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
    border-radius: 5px;
    color: #FFF;
    text-decoration: none;
}
.done a:hover {
    opacity: .8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    margin: 80px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-form-details {
    margin-top: 20px;
}
.modal-form-details p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-form-details strong {
    color: #555;
    display: inline-block;
    width: 120px;
}

.modal-actions {
    text-align: center;
    margin-top: 30px;
}

.modal-button {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.confirm-button {
    background-color: #bb8f55;
    color: white;
}

.confirm-button:hover {
    background-color: #cd853f;
}

.cancel-button {
    background-color: #777;
    color: white;
}

.cancel-button:hover {
    background-color: #555;
}

.agree-checkbox {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #444;
}

.agree-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    height: 18px;
    width: 18px;
    cursor: pointer;
}

.agree-checkbox label {
    cursor: pointer;
    vertical-align: middle;
}

a.back-link {
    display: block;
    width: 300px;
    margin: 20px auto;
    text-align: center;
    background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
    border-radius: 30px;
    color: #FFF;
    padding: 15px;
    transition: .3s ease-in-out;
}
a.back-link i {
    color: #FFF;
    margin-right: 10px;
}
a.back-link:hover {
    opacity: .5;
}

@media screen and (max-width: 768px) {
    .agree-checkbox {
        margin-top: 10px;
        margin-bottom: 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 1024px) {
    #contact-form {
        width: 75%;
        padding: 30px;
    }
    .form-tel {
        width: 75%;
    }
}

@media screen and (max-width: 768px) {
    .form-title h2 {
        font-size: 1.8rem;
    }
    .form-title h2:before {
        width: 50px;
        bottom: -8px;
    }
    .form-tel {
        width: 100%;
        padding: 15px;
    }
    .form-tel a {
        font-size: 1.4rem;
    }
    #contact-form {
        width: 100%;
        padding: 15px;
    }
    .half {
        flex-direction: column;
        gap: 0;
    }
    .half > div {
        width: 100%;
    }
    .half dt {
        margin-top: 15px;
    }
    .half dt:first-child {
        margin-top: 0;
    }
    dl.mailform dd {
        margin-bottom: 20px;
    }
    div.mfp_buttons button {
        width: 90%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .modal-content {
        margin: 40px auto;
        width: 95%;
        padding: 20px;
    }
    .modal-form-details strong {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
    .modal-button {
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
    }
}

@media screen and (max-width: 480px) {
    .form-title h2 {
        font-size: 1.5rem;
    }
    .form-title p {
        font-size: 1rem;
    }
    .form-tel a {
        font-size: 1.2rem;
    }
}

.mfp_rows {
    display: block !important;
}
.mfp_col5, .mfp_col10 {
    width: 100% !important;
}

form#mailformpro input,
form#mailformpro select,
form#mailformpro textarea,
#contact-form input:not([type="radio"]),
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: solid 1px #ccc;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#contact-form select {
    background: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23333%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 10px center / 18px 18px;
}