@charset "utf-8";

/* ------------------------------------------------------- */
/* フォーム ---------------------------------------------- */
/* ------------------------------------------------------- */
/* contactform7 -------------------------------------------------- */
/*reset----*/
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="confirm_email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="submit"],
.wpcf7 button,
.wpcf7 textarea,
.wpcf7 select,
.wpcf7 option,
.wpcf7-date{	
	outline: none;
	border:0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font-size:1.65rem;
	font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
/*reset----*/
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select,
.wpcf7 option,
.wpcf7-date{
	box-sizing: border-box;
}
/*//resetEND----*/
.wpcf7 .w10per input{width:10%!important;}
.wpcf7 .w20per input{width:20%!important;}
.wpcf7 .w30per input{width:30%!important;}
.wpcf7 .w40per input{width:40%!important;}
.wpcf7 .w50per input{width:50%!important;}
.wpcf7 .w60per input{width:60%!important;}
.wpcf7 .w70per input{width:70%!important;}
.wpcf7 .w80per input{width:80%!important;}
.wpcf7 .w90per input{width:90%!important;}
.wpcf7 .w1em input{width:calc( 1em + 45px )!important;}
.wpcf7 .w2em input{width:calc( 2em + 40px )!important;}
.wpcf7 .w3em input{width:calc( 3em + 30px )!important;}
.wpcf7 .w4em input{width:calc( 4em + 30px )!important;}
.wpcf7 .w5em input{width:calc( 5em + 20px )!important;}
.wpcf7 .w6em input{width:calc( 6em + 20px )!important;}
.wpcf7 .w7em input{width:calc( 7em + 10px )!important;}
.wpcf7 .w8em input{width:calc( 8em + 10px )!important;}
.wpcf7 .w8em input{width:9em!important;}
.wpcf7 .mb1 input{margin-bottom:1px!important;}
.wpcf7 .mb3 input{margin-bottom:3px!important;}
.wpcf7 .mb5 input{margin-bottom:5px!important;}
.wpcf7 .mb10 input{margin-bottom:10px!important;}

.formContainer{
	width:800px;
	margin:0px auto;
}
.wpcf7 .must {
	border-radius: 5px;
	border: 1px solid #FB4343;
	padding: 0 3px;
	color: #FB4343;
	margin-left: 5px;
	font-size: 12px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="confirm_email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 input[type="submit"],
.wpcf7-date{
	border-radius:3px;
	border:solid 1px #ccc;
	padding:10px 15px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="confirm_email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	max-width: 800px;
	width: 100%;
	font-size: 100%;
}
.wpcf7 option{
	margin:0;
	font-size:1.6rem;
}
.wpcf7 select{
	background:#fff;
	margin:0;
	padding:10px 15px;
	min-width:auto;
	max-width:800px;
}
.wpcf7 input[type="submit"].wpcf7-submit:disabled{
	background: #eee;
	color: #333;
	cursor: not-allowed;
	border: 1px solid #ccc;
}
.wpcf7 input[type="submit"].wpcf7-submit {
	color: #fff;
	padding: 12px;
	width: 140px;
	border-radius: 5px;
	font-size: 1.8rem;
	display: block;
	margin: 15px auto 0;
	background: #CF1414;
	cursor: pointer;
	border: 1px solid #CF1414;
}
/*チェックボックスのスタイルここから。使いたい場合は<div class="wpcf7CheckArea">でくるんでください。くるまなくてもデフォルトで効くようにしていたら最後の「個人情報に同意する」のチェックがおかしくなったので*/
.wpcf7 .wpcf7CheckArea{margin-bottom:15px;}
.wpcf7 .wpcf7CheckArea .wpcf7-checkbox .wpcf7-list-item{margin-right:20px;}
.wpcf7 .wpcf7CheckArea .wpcf7-checkbox .wpcf7-list-item.last{margin-right:0px;}
.wpcf7 .wpcf7CheckArea .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label{
	cursor: pointer;
	box-sizing: border-box;
	display:inline-block;
}
.wpcf7 .wpcf7CheckArea .wpcf7-checkbox input[type="checkbox"]{
	display: none;
}
.wpcf7 .wpcf7CheckArea .wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label:before {
	content:"\f14a";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	
}
.wpcf7 .wpcf7CheckArea .wpcf7-checkbox input[type="checkbox"] + .wpcf7-list-item-label:before {
	content:"\f0c8";
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	margin-right:5px;
	display:inline-block;
}
/*ラジオボタンここから*/
.wpcf7-radio{
	display:block;
	overflow: hidden;
}
.wpcf7-radio input{
	display: none;
}
.wpcf7-radio .wpcf7-list-item{
	display: block;
	float: left;
	cursor: pointer;	
	margin: 0;	
}
.wpcf7-radio input[type="radio"] + .wpcf7-list-item-label {
	padding: 12px 5px;
	color: #000;
	display:inline-block;
	width: 80px;
	background: #f5f5f5;
	text-align: center;
	line-height: 1;
	transition: .2s;
	border-right: 1px solid #ccc;
}
.wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label {
	background-color: #333333;
	padding: 12px 5px;
	color: #fff;
}
.wpcf7-radio .wpcf7-list-item.first .wpcf7-list-item-label{
	border-radius: 3px 0 0 3px;
}
.wpcf7-radio .wpcf7-list-item.last .wpcf7-list-item-label{
	border-right: 0px;
	border-radius: 0 3px 3px 0;
}
#main .wpcf7-list-item { margin-left: 0; }
.wpcf7ListBlock1 .wpcf7-list-item {
    display: block;
    margin-bottom: 10px;
}

@media only screen and (max-width:999px) {
	.formContainer{
		width:100%;
	}
	.wpcf7 .wpcf7CheckArea .wpcf7-checkbox{
		display:flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.wpcf7 .wpcf7CheckArea .wpcf7-checkbox .wpcf7-list-item{
		width:calc((100% - 10px) / 2);

		margin-right:0px;
		margin-bottom:10px;
	}
	.wpcf7 .wpcf7CheckArea .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label{
		padding:10px;
		border-radius: 5px;
		background:#f5f5f5;
		width:100%;
	}
	.wpcf7 .wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label{
		background:#ffe9e7;
	}
    .wpcf7-date {position: relative; padding-right: 20px;}
    .wpcf7-date::after {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f0da";
        position: absolute;
        right: 5px;
        top: 50%;
        margin-top: -8px;
        line-height: 1;
    }
	.wpcf7 select{
		max-width:100%;
	}
}
#main .kantanForm{
	& legend{
		width:100%;
	}
	& .wpcf7{
		& .wpcf7-radio{
			--gap:25px;
			display:flex;
			flex-wrap: wrap;
			gap:var(--gap);
			overflow: hidden;
			@media (width <= 999px) {
                --gap:15px;
            }
			& > span{			
				--colnum:2;
				width:calc((100% - (var(--gap) * (var(--colnum) - 1))) / var(--colnum));
				@media (width <= 999px) {
					width:100%;
				}
				&.wpcf7-list-item{
					display: block;
					float: none;
					cursor: pointer;	
					margin: 0;
					&.first{
						& .wpcf7-list-item-label{
							border-radius: 3px 0 0 3px;
						}
					}
					&.last{
						& .wpcf7-list-item-label{
							border-right: 0px;
							border-radius: 0 3px 3px 0;
						}
					}
					& input[type="radio"]{
						& + .wpcf7-list-item-label{
							display:flex;
							flex-direction: column;
							align-items: center;						
							justify-content: center;
							color: #000;
							width: 100%;
							height:4em;
							background: #f5f5f5;
							line-height: 1.5;
							transition: .2s;
							border-radius: 10px;
							vertical-align: middle;
							border:none;
						}
						&:checked + .wpcf7-list-item-label{
							background-color: #3F7A36;
							color: #fff;
						}
					}
				}
			}		
		}
		& .submitCustom{
			text-align: center;
			& button[type="submit"].wpcf7-submit.custom-submit-btn{
				color: #fff;
				border-radius: 5px;
				min-height:60px;
				display:inline-flex;
				justify-content: center;
				align-items: center;
				font-size: 1.8rem;
				margin: 15px auto 0;
				background: #CF1414;
				cursor: pointer;
				border: 1px solid #CF1414;
				width: 250px;
				position:relative;
				padding-right:2.5rem;
				padding:0.5em calc(1em + 2.5rem + 1em) 0.5em 1em;
				&::after{
					content:"\f1d8";
					font-family: "Font Awesome 5 Free";
					font-weight: 900;
					display:inline-block;
					font-size:2.5rem;
					position:absolute;
					right:1em;
					color:#fff;
				}
				&:disabled{
					background: #eee;
					color: #333;
					cursor: not-allowed;
					border: 1px solid #ccc;
					padding:0.5em 1em;
					&::after{display:none;}
				}
			}
		}
	}
}
#main .shosaiForm{
	& legend{
		width:100%;
	}
	& .wpcf7{
		& .wpcf7-radio{
			--gap:25px;
			--colnum:2;
			display:flex;
			flex-wrap: wrap;
			gap:var(--gap);
			overflow: hidden;
			@media (width <= 999px) {
                --gap:15px;
            }
			& > span{				
				width:calc((100% - (var(--gap) * (var(--colnum) - 1))) / var(--colnum));
				@media (width <= 999px) {
					width:100%;
				}
				&.wpcf7-list-item{
					display: block;
					float: none;
					cursor: pointer;	
					margin: 0;
					&.first{
						& .wpcf7-list-item-label{
							border-radius: 3px 0 0 3px;
						}
					}
					&.last{
						& .wpcf7-list-item-label{
							border-right: 0px;
							border-radius: 0 3px 3px 0;
						}
					}
					& input[type="radio"]{
						& + .wpcf7-list-item-label{
							display:flex;
							flex-direction: column;
							align-items: center;						
							justify-content: center;
							color: #000;
							width: 100%;
							height:4em;
							background: #f5f5f5;
							line-height: 1.5;
							transition: .2s;
							border-radius: 10px;
							vertical-align: middle;
							border:none;
						}
						&:checked + .wpcf7-list-item-label{
							background-color: #3F7A36;
							color: #fff;
						}
					}
				}
			}		
		}
		& .setChoice{
			& .wpcf7-radio{
				--colnum:5;
				& > span{
					&.wpcf7-list-item{
						& input[type="radio"]{
							& + .wpcf7-list-item-label{
								height:auto;
								padding:0.5em;
							}
							&:checked + .wpcf7-list-item-label{
								background-color: #3F7A36;
								color: #fff;
							}
						}
					}
				}
			}
		}
		& .sub-detail {
			margin-top: 15px;
			margin-bottom: 25px;
			padding: 20px;
			border: 1px solid #ccc; /* 左側にアクセントの線 */
			border-radius: 5px;
			& h4 {
				margin-top: 0;
			}
            & p{
                margin-bottom:0;
            }
		}
		& .submitCustom{
			text-align: center;
			& button[type="submit"].wpcf7-submit.custom-submit-btn{
				color: #fff;
				border-radius: 5px;
				min-height:60px;
				display:inline-flex;
				justify-content: center;
				align-items: center;
				font-size: 1.8rem;
				margin: 15px auto 0;
				background: #CF1414;
				cursor: pointer;
				border: 1px solid #CF1414;
				nax-width: 100%;
				position:relative;
				padding-right:2.5rem;
				padding:0.5em calc(1em + 2.5rem + 1em) 0.5em 1em;
				&::after{
					content:"\f1d8";
					font-family: "Font Awesome 5 Free";
					font-weight: 900;
					display:inline-block;
					font-size:2.5rem;
					position:absolute;
					right:1em;
					color:#fff;
				}
				&:disabled{
					background: #eee;
					color: #333;
					cursor: not-allowed;
					border: 1px solid #ccc;
					padding:0.5em 1em;
					&::after{display:none;}
				}
			}
		}
	}
}
/*ファイルアップロードボタンの設定*/
#main .upload-wrapper{
	margin-bottom:1em;
	& p{margin-bottom:0;}
}
/* 本物のボタンをアクセシブルに隠す */
.custom-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* カスタムボタンのデザイン（押しやすいサイズ） */
.custom-file-upload {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #f5f5f5;
    color: #000;
    border-radius: 6px;		
    cursor: pointer;
    margin-top: 5px;
}

/* フォーカス時の輪郭（アクセシビリティ） */
.custom-file-upload:has(.custom-file-input:focus-visible) {
    outline: 3px solid #56914D;
}

/* ファイル名表示エリアのスタイル */
.file-name-display {
    font-size: 0.85em;
    color: #555;
    margin-top: 4px;
    min-height: 1.2em; /* ガタつき防止 */
}
/*リキャプチャ位置調整*/
.grecaptcha-badge{
    margin-bottom: 230px;
	@media (width <= 999px) {
		margin-bottom: 220px;
	}
}
