@charset "UTF-8";

/* ------------------------------------------- */

/* reset for form */

input,
button,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

input[type='checkbox'],
input[type='radio'] {
    display: none;
}

input[type='submit'],
input[type='button'],
label,
button,
select {
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

/* ------------------------------------------- */
.member_info_form{
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea{
        font-size: 1.6rem;
        width: 80%;
        padding: 6px 10px 5px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"]{
        line-height: 1;
    }
    .wpcf7-list-item:first-child {
        margin-left: 0;
    }
    .cf7-cf-turnstile{
        margin-bottom: 25px!important;
    }
}

/* ------------------------------------------- */

/* fomr.member_info_form */

.memb_form {
    border-top: solid 1px #d4d4d4;
    margin-bottom: 30px;
}

/* dl.form__item */
dl.form__item {
    border-bottom: solid 1px #d4d4d4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* dt.fomr__label */
dt.fomr__label {
    padding: 16px 0px;
    width: 200px;
    font-weight: bold;
}
dt.fomr__label .hosoku {
    display: block;
    font-weight: normal;
    letter-spacing: 0em;
}

/* dd.form__elm */
dd.form__elm {
    padding: 16px 0px;
    width: calc(100% - 200px);
}
dd.form__elm > span{
    display: block;
}

dd.form__elm > span > [type="text"],
dd.form__elm > span > [type="email"],
dd.form__elm > span > [type="tel"],
dd.form__elm > span > textarea{
    width: 100%;
    border: solid 1px #BEBEBE;
}
/*
dl.form__item.kknn dt.fomr__label {
    width: 100%;
    padding-bottom: 6px;
}
dl.form__item.kknn dd.form__elm {
    padding: 0px 0px 16px;
}
*/

/* ------------------------------------------- */

/* radio button */

span.wpcf7-radio{
    display: flex;
}
span.wpcf7-radio > span{
    display: block;
}
.wpcf7-radio > span > label {
    line-height: 1;
}
.wpcf7-list-item {
    margin: 0 0 0 1.5em;
}
label:has([type="radio"]) {
    display: flex;
    position: relative;
    cursor: pointer;
    padding-left: 30px;
    align-items: center;
}
[type="radio"] + span{
    font-weight: bold;
    text-align:center;
    font-size: 1.5rem;
}

label:has([type="radio"])::before,
label:has([type="radio"])::after {
    content: "";
    display: block; 
    border-radius: 50%;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
}
label:has([type="radio"])::before {
    background-color: #fff;
    border: 1px solid #A7A7A7;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    left: 5px;
}

label:has([type="radio"])::after {
    background-color: rgba(19, 174, 103, 1);
    border-radius: 50%;
    opacity: 0;
    width: 14px;
    height: 14px;
    left: 8px
}
label:has(input:checked)::after {
    opacity: 1;
}

/* ------------------------------------------- */

/*
[type="file"]
ファイル添付形式input

元のボタンをdisplay:noneにし、labelでボタンを作成
アラートはCF7標準のものを表示させる

*/
input[type="file"]{
    display: none;
}
.file-attached__label{
    display: inline-block;
    width: 120px;
    height: 40px;
    margin-right: 8px;
    border: 0px;
    border-radius: 3px;
    background: #8F8F8F;
    font-size: 13px;
    line-height: 40px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    pointer-events: all;
    opacity: 1;
    transition: all 0.3s;
}
.file-attached__label:hover{
    opacity: 0.5;
}
.form__elm:has( .attached) .file-attached__label{
    color: #8F8F8F;
    background: #D9D9D9;
}

/* ------------------------------------------- */

/* accrptance */

.form__item-acceptance{
    padding-top: 40px;
    text-align: center;
}
.form-acceptance__text{
    margin-bottom: 20px;
}

.acceptance__wrap{
    display: flex;
    width: fit-content;
    margin: auto;
    
}
.acceptance__wrap span{
    pointer-events: none;
}
input[name="acceptance"]{
    display: block;
    height: 22px;
    width: 22px;
    border: solid 2px #BEBEBE;
    margin-right: 8px;
    pointer-events: auto;
    cursor: pointer;
}

input[name="acceptance"]:checked::after{
    display: block;
    position: absolute;
    content: '';
    width: 22px;
    height: 13px;
    top: 0;
    left: 0;
    border-left: 4px solid rgba(19, 174, 103, 1);
    border-bottom: 4px solid rgba(19, 174, 103, 1);
    transform: rotate(-45deg);
    pointer-events: none;
}

/* ------------------------------------------- */

/* submit button */
.submit_b_con {
    width: 300px;
    margin: 0 auto;
    text-align: center;
}
.submit_b_con input {
    display: block;
    font-size: 1.6rem;
    width: 300px;
    height: 40px;
    background-color: rgba(19, 174, 103, 1.00);
    font-weight: bold;
    color: #fff;
    border: none;
    cursor: pointer;
    transition-property: all;
    transition-duration: 0.4s;
}

form:has(.wpcf7-not-valid) input[type="submit"],
input[type="submit"]:disabled{
    background-color: rgba(19, 174, 103, 0.5);
    pointer-events: none!important;
}
input[type="submit"]:hover {
    background-color: rgba(17, 147, 88, 0.7);
}


.is_sp{
	.submit_b_con {
		width: 100%;
		max-width: 300px;
	}
	.submit_b_con input {
		width: 100%;
		max-width: 300px;
	}
}

/* ------------------------------------------- */

form.alert_on .wpcf7-not-valid{
    box-shadow: 0 0 0 9999px rgba(209, 69, 69, 0.15) inset;
    /* transition: box-shadow 0.5s; */
}
[type="file"].wpcf7-not-valid,
form.alert_on [type="file"].wpcf7-not-valid{
    box-shadow: none;
}

/* 一瞬表示されてしまうチェックを隠すための保険 */
form:has( .wpcf7-not-valid) input[name="acceptance"]::after{
    visibility: hidden;
}
form:has( .wpcf7-not-valid) [type="submit"]{
    pointer-events: none;
}

.wpcf7-not-valid-tip{
    visibility: hidden;
    height: 0;
    margin-top: 0px;
    color:#c5222e;
    line-height: 1;
    opacity: 0;
    transition: all 0.2s;
}
.alert_on .wpcf7-not-valid-tip,
[type="file"] + .wpcf7-not-valid-tip{
    visibility: visible;
    height: auto;
    margin-top: 8px;
    opacity: 1;
    transition: all 0.2s;
}

/* ------------------------------------------- */

/* wpcf7-response-output */
.wpcf7 form .wpcf7-response-output{
    display: block;
    text-align: center;
    line-height: 0;
    width: 100%;
    background-color: #c5222e;
    color: #ffffff;
    font-weight: bold;
    
    visibility: hidden;
    height: 0;
    
    margin: 0px;
    padding: 0;
    opacity: 0;
    transition: all 0.3s;
    
    border: none;
    
    
}


.wpcf7 form.alert_on:has(.wpcf7-not-valid) .wpcf7-response-output{
    display: block;
    visibility: visible;
    opacity: 1;
    margin-bottom: 0px;
    height: 36px;
    /*margin: 20px 0px;*/
    line-height: 36px;
    transition: all 0.3s;
}

.wpcf7 form.alert_on .form__item + .wpcf7-response-output{
    margin-top: 30px;
    margin-bottom: 0px;
}

.wpcf7 form.alert_on .memb_form_st + .wpcf7-response-output{
    margin-bottom: 20px;
}

/* Cloudflare Turnstile */
.cf7-cf-turnstile{
    display: flex;
    justify-content: center;
}
.cf-turnstile{
    width: 300px;
}

/* ------------------------------------------- */

/* Member infomation form for is_sp */


.is_sp{

    #member_form_main{
        margin-bottom: 24px;
    }
    
    .memb_form {
        margin-bottom: 20px;
    }
    
    .box_line {
        border: solid 2px #dff4ea;
    }
    .contents_flsb{
        display: block;
    }
    .ttl22,
    .ttl22 + p{
        margin-bottom: 20px;
    }
    .ttl22{
        line-height: 1.5;
    }
    .memb_form_st{
        margin-bottom: 24px;
    }
    .memb_form_st .notes{
        display: block;
        margin-top: 15px;
    }
    .member_info_form, 
	.thanks__wrap {
        padding: 25px 18px;
    }

    .form__item{
        display: block;
        padding-bottom: 10px;
    }
    .fomr__label,
    .form__elm{
        width: 100%;
    }
    .fomr__label{
        padding: 16px 0px 6px;
    }
    .form__elm{
        padding: 0px 0px 6px;
    }

    .form__item:has( .wpcf7-radio) .fomr__label{
        margin-bottom: 10px;
    }
    span.wpcf7-radio{
        display: block;
    }
    .wpcf7-radio > span{
        display: block;
        margin-left: 0;
    }
    
    .wpcf7-list-item.first{
        margin-bottom: 18px;
    }
    .wpcf7-list-item.last{
        margin-bottom: 6px;
    }
    
    .wpcf7-radio > span > label{
        display: block;
        line-height: 20px;
    }
    
    /* type=file */
    
    dt.fomr__label .hosoku {
        display: inline-block;
        margin-left: 16px;
        font-size: 1.3rem;
    }
    .file-attached__label-wrpper{
        display: flex;
        align-items: center;
    }
    .file-attached__label {
        width: 106px;
    }
    .file-attached__file-name{
        flex: 1;
    }
    
    .form__item-acceptance {
        padding-top: 30px;
        text-align: center;
    }

}

/* ------------------------------------------- */

/* 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.20);
    -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;
}


/* ------------------------------------------- */

/* Thanks Message */

.thanks__header,
.thenks__thanks{
    font-size: 2rem;
    font-weight: bold;
}
.thenks__thanks{
    margin-bottom: 20px;
}

/* ------------------------------------------- */

/* 会員専用ログインフォーム */

.container.cnt_w:has( .members-login__wrapper){
    display: flex;
    justify-content: center;
    align-items: center;
}

.members-login__wrapper {
    width: fit-content;
    max-width: 480px;
    margin: auto;
    padding: 28px;
    background-color: #fff;
}

.members-login__form {
    background-color: #fff;
    padding-bottom: 15px;
}

.members-login__form label {
    font-size: 1.5rem;
    font-weight: bold;
}
.login-input__name,
.login-input__password{
    display: block;
    position: relative;
    line-height: 42px;
    width: 100%;
    padding: 0px 10px;
    border:#dcdcdc solid 1px;
    font-size: 2.2rem;
}

.members-login__form button {
    display: block;
    font-size: 1.6rem;
    width: 100%;
    height: 40px;
    background-color: rgba(19, 174, 103, 1.00);
    font-weight: bold;
    color: #fff;
    border: none;
    cursor: pointer;
    transition-property: all;
    transition-duration: 0.4s;
}
.login-input__name-wrapper,
.login-input__password-wrapper{
    position: relative;
}
.login-input__name-wrapper{ margin-bottom: 14px; }
.login-input__password-wrapper{ margin-bottom: 20px; }


/* password visibility icon */

.login-input__password{
    padding-right: 42px;
}

.icon__wrapper{
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    right: 0;
    cursor: pointer;
    border-left:#dcdcdc solid 1px;
}
.icon__wrapper [class^="icon__"]{
    display: block;
    width: 22px;
    height: 22px;
    position: absolute;
    fill:#6F6F6F;
}
.login-input__password[type="text"] + .icon__wrapper .icon__visibility{
    opacity: 0;
}
.login-input__password[type="password"] + .icon__wrapper .icon__hidden{
    opacity: 0;
}

.members_login_submit_btn{
    margin-bottom: 30px;
}

#err_msg {
    margin-bottom: 10px;
    font-weight: bold;
    /*color: rgba(255,0,88,1.00);*/
}


/* ------------------------------------------- */

/* for is_sp */

.is_sp .container.cnt_w:has( .members-login__wrapper){
    display: block;
}

.is_sp .members-login__wrapper {
    width: auto;
    margin: auto;
    padding: 5%;
    background-color: #fff;
}

.is_sp .thanks__header,
.is_sp .thenks__thanks{
    font-size: 1.8rem;
}