@charset "UTF-8";
:root {
    --light-gray: #919191;
    --gray: #3A3A3A;
    --brown: #603813;
}

form.wpcf7-form{ position: relative; }

input, select, textarea, button {
    all: unset;
    display: inline-block;
    position: relative;
    border: var(--light-gray) solid 1px;
    /* border-radius: 4px; */
    font-size: 2rem;
}
form * {
    box-sizing: border-box;
}
form *:focus {
    outline: rgba(96, 56, 19, 0.5) solid 3px;
    /* border: rgba(145,145,145,0) solid 1px; */
}
label > span, span:has(input) {
    display: inline-block;
}
select {
    padding: 8px 35px 8px 12px;
}
/* 下向き矢印 */
label {
    display: block;
    position: relative;
}
label:has(span select)::after {
    content: "";
    display: block;
    position: absolute;
    top: 40%;
    right: 13px;
    background-color: var(--gray);
    height: calc(tan(60deg) * 9px / 2);
    width: 11px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* transform: translateY(-50%); */
}
dd:has(select) {
    display: flex;
}
[type="text"], [type="email"], [type="tel"] {
    padding: 8px 12px;
    width: 100%;
}
span:has([type="text"]), span:has([type="email"]), span:has([type="tel"]) {
    position: relative;
    width: calc(100% - 65px);
}
label:has(select) + span, span:has(input) + span:not(.item_notes) {
    font-size: 1.8rem;
    vertical-align: bottom;
    margin: auto 15px 0 10px;
}
.item_notes {
    display: block;
    margin-top: 5px;
}

/* バリデーション動作 */
.wpcf7-not-valid-tip{
    display: none !important;
}
.wpcf7-list-item-label {
    font-size: 1.6rem;
}

/* チェックボックス */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    /* border: var(--light-gray) solid 1px; */
    /* border-radius: 4px; */
    /* margin-right: 12px; */
}
span:has(.wpcf7-checkbox) {
    margin: 15px auto 0 0;
}
span.wpcf7-list-item {
    margin: 0;
}
label:has(> input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.wpcf7-checkbox > span {
    display: block;
}
span:has(span:nth-child(2)) > span:not(> span.wpcf7-list-item.first.last) {
    margin: auto 0 0 0;
}
label:has(> input[type="checkbox"]:checked)::after {
    position: absolute;
    content: '';
    width: 20px;
    height: 12px;
    top: 1px;
    left: 0;
    border-left: 4px solid rgba(78, 51, 39, 1.00);
    border-bottom: 4px solid rgba(78, 51, 39, 1.00);
    transform: rotate(-45deg);
}
/* textarea */
textarea {
    width: 100%;
    padding: 13px;
}
/* 確認しましたチェックボックス */
/*
[data-name="acceptance"]{
display: block;
width: 100%;
}
[data-name="acceptance"] span{
display: block;
}
*/
/* ------------------------------------------- */
/* Submit Button */
input[type="submit"] {
    display: block;
    margin: auto;
    padding: 12px;
    width: 100%;
    text-align: center;
    opacity: 0.5 !important;
    /*
    カーソルをnot-allowed（丸斜線）にする場合、pointer-events: allにする
    Turnstileが勝手にnoneにしてしまうため!important必須
    wpcf7がカーソルをnot-allowedにしてくれる
    */
    pointer-events: all !important;
    /*cursor: not-allowed!important;*/
}
form.turnstile-success:has([name="acceptance"]:checked) input[type="submit"] {
    opacity: 1 !important;
    cursor: pointer !important;
}
/* ------------------------------------------- */
form dd div {
    margin-bottom: 15px;
}

form.validcheckd .wpcf7-validates-as-required.custom-not-valid,
form.invalid .wpcf7-validates-as-required.custom-not-valid{
    box-shadow: 0 0 0 9999px rgba(209, 69, 69, 0.25) inset;
    transition: box-shadow 0.5s;
}

.form_error_message{
    align-items: center;
    background-color: rgba(209,69,69,1.00);
    color: #fff;
    width: 100%;
    font-size: 14px;
    border-radius: 0px;
    text-align: center;
    height: auto;
    padding: 12px;
}
.form_error_message_wrapper {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.2s, opacity 0.5s;
}
.validcheckd .form_error_message_wrapper.appear {
    height: 70px;
    opacity: 1;
}
/* -------------------------------- */
/* エラー時のメッセージ表示 */
/*
.wpcf7 .screen-reader-response{
position: relative;
clip:inherit;
clip-path:none;
word-wrap: normal !important;
box-sizing: border-box;
}
.wpcf7 .screen-reader-response p{
font-size: 1.8rem;
}
.wpcf7 .screen-reader-response.error{
width: 100%;
max-width: 800px;
position: relative;
padding: 15px;
background-color: #FF7192;
color:#fff;
border-radius: 5px;
text-align: center;
margin: 30px auto 0;
height: auto;
}
*/

.wpcf7 form .wpcf7-response-output {
display: none;
/*
position: absolute;
top:50%;
left:50%;
transform: translate(-50%, -50%);
*/
}


/* -------------------------------- */
/* spinner */
#loading_spinner_wrapper {
    position: fixed;
    z-index: 10000;
    /* display: flex; */
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.30);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    width: 0;
    height: 0;
    pointer-events: all;
    /* cursor: not-allowed; */
}
#loading_spinner_wrapper.now_submit, #loading_spinner_wrapper.submit_error {
    display: flex;
    opacity: 1;
    animation-name: modalback_on;
    animation-duration: 0.3s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
    width: 100%;
    height: 100svh;
}
#loading_spinner_wrapper.now_submit > #loading_spinner {
    display: inline-block;
}
#loading_spinner_wrapper.submit_error {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}
#loading_spinner_wrapper.submit_error > #loading_spinner {
    display: none;
}
@keyframes modalback_on {
    0% {
        display: none;
        opacity: 0;
        width: 0;
        height: 0;
    }
    0% {
        display: flex;
        width: 100%;
        height: 100svh;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
#loading_spinner {
    display: inline-block;
    vertical-align: middle;
    color: #ffffff;
    line-height: 1;
    width: 5em;
    height: 5em;
    border: 0.7em solid rgba(255, 255, 255, 0.40);
    border-top-color: currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotate 1s linear infinite;
}
@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
.now_submit {
    pointer-events: none;
}