/*===============================================================================
フォーム全体
================================================================================*/
/*===============================
共通
=================================*/
.wpcf7 {
	--cf-border-color: var(--c-dark); /* ボーダー色 */
	--cf-tr-gap: 0.5rem; /* thとtdの間の余白 */
	--cf-tr-mb: 1.5rem; /* tr下の余白 */
	--cf-cell-pad-y: 0.875rem; /* セルの上下のパディング */
	--cf-cell-pad-x: 1rem; /* セルの左右のパディング */
	--cf-unit-gap: 0.25rem; /* ｲﾝﾌﾟｯﾄｴﾘｱと単位の余白 */
	--cf-label-gap: 0.25rem; /* 必須の余白 */
}
/*===============================
input要素
=================================*/
/* input要素の親 */
.wpcf7-form-control-wrap {
	display: inline-block;
	width: 100%;
}
.wpcf7-form-control.--short{
	max-width: 480px;
}

/* 各input要素 */
.wpcf7 :is(.wpcf7-text, .wpcf7-textarea, .wpcf7-select, .wpcf7-number, .wpcf7-date), 
label:has(.wpcf7-quiz) .wpcf7-quiz{
	width: 100%;
	padding: var(--cf-cell-pad-y) var(--cf-cell-pad-x);
	vertical-align: middle; /* 要素下の余白削除 */
	border: 1px solid var(--cf-border-color);
	border-radius: var(--bd-r--sm);
	overflow: hidden;
	background-color: var(--c-light);
}

/* プレースホルダー内のテキストカラー */
:is(input, textarea)::placeholder {
	color: var(--c-gray);
}

/* 日付 */
input[type="date"] {
	cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: none;
}

/*===============================
ラジオボタン＆チェックボックス
=================================*/
.wpcf7-radio,
.wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
}
/* 縦積み */
.wpcf7-radio.--column,
.wpcf7-checkbox.--column {
	flex-direction: column;
}
:is(.wpcf7-radio, .wpcf7-checkbox) .wpcf7-list-item {
	margin: 0;
}
/* use_label_elementを設定した場合 */
:is(.wpcf7-radio, .wpcf7-checkbox) label {
	display: flex;
	gap: var(--cf-unit-gap);
	width: fit-content;
}
/* ラベル, テキスト部分 */
:is(.wpcf7-radio, .wpcf7-checkbox, .wpcf7-acceptance) label,
:is(.wpcf7-radio, .wpcf7-checkbox, .wpcf7-acceptance) input {
	cursor: pointer;
}
/* 円 */
.wpcf7-radio input {
	width: 1.25rem;
	aspect-ratio: 1;
}

/*===============================================================================
テーブル
================================================================================*/
.cfTable,
.cfTable tbody {
	display: block;
	width: 100%;
}
/* tr */
.cfTable__row {
	display: flex;
	gap: var(--cf-tr-gap);
}
.cfTable__row:not(:last-of-type) {
	margin-bottom: var(--cf-tr-mb);
}
/* 各セル */
.cfTable__head,
.cfTable__body {
	flex-grow: 1;
}
/* 1列目のセル */
.cfTable__head {
	min-width: 9em;
}
@media (min-width: 600px) {
	.cfTable:not(.--pc-column) .cfTable__head {
		max-width: 9em;
	}
}

/* 1つのセルに複数の要素が入った場合 */
.cfTable__body > *:not(:last-child) {
	margin-bottom: 0.25rem;
}

/* .cfTable__bodyの中身 */
.cfTable__list, label:has(.wpcf7-quiz) {
	display: flex;
	gap: 1rem;
}
/* 単位有りフォーム */
.cfList__unit {
	display: flex;
	gap: var(--cf-unit-gap);
	align-items: flex-end;
}
/* 単位有りフォーム */
.cfList__unit .wpcf7-form-control-wrap {
	max-width: fit-content;
}
/* 注釈 */
.cfTable__note {
	font-size: 0.75rem;
}

/*===============================
* 常に縦並び
* =================================*/
.cfTable.--pc-column :is(.cfTable__row, label:has(.wpcf7-quiz)) {
	flex-direction: column;
}
.cfTable.--pc-column :is(.cfTable__head, .cfTable__body) {
	width: 100%;
	padding: 0;
}
/*===============================
* SP時縦並び
* =================================*/
@media not all and (min-width: 600px) {
	.cfTable.--sp-column .cfTable__row {
		flex-direction: column;
	}
}

label:has(.wpcf7-quiz){
	position: relative;
	max-width: fit-content;
	padding-right: 1.5rem;
}
label:has(.wpcf7-quiz)::before{
	position: absolute;
	bottom: 0;
	right: 0;
	content: "塾";
}

.cfTable__list.--acceptance{
	max-width: fit-content;
	margin-inline: auto;
}

/*===============================================================================
各フォーム
================================================================================*/
/* CF7のショートコード内のグループ */
.cfGroup:not(:last-child) {
	margin-bottom: var(--g-sec--sm);
}

.cfGroup__lead {
	margin-bottom: 1rem;
	letter-spacing: 0.12em;
	font-size: 1.25rem;
	font-weight: var(--fw-lg);
}

/*===============================================================================
ラベル
================================================================================*/
.cfLabel {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--cf-label-gap);
}
.cfLabel::before {
	min-width: fit-content;
	padding: 0.25em 0.5em;
	line-height: 1;
	color: var(--c-light);
	font-weight: inherit;
	font-family: inherit;
}
.cfLabel.--required::before {
	content: "必須";
	background: var(--c-required);
}
.cfLabel.--any::before {
	content: "任意";
	background: #909090;
}

/*===============================================================================
ボタンのスタイル
================================================================================*/
.cfBtn {
	max-width: 6.25rem;
	margin-inline: auto;
	text-align: center;
}
.cfBtn .wpcf7-submit{
	padding: .5em;
	border: 1px solid var(--c-dark);
	background: var(--c-gray--light);
	font-size: 1rem;
}
.wpcf7-spinner {
	display: none;
}
