@charset "UTF-8";
/* form.css */

/* === ▼ 自動で付与されるclass名 === */
.wpcf7-list-item {
	display: inline !important;
	margin:  0 !important;
}
/* 入力内容にエラー */
.wpcf7 form .wpcf7-response-output {
	font-size: clamp(12px,1.4vw,14px) !important;
	text-align: justify;
	line-height: 1.5;
	color: #dc3232 !important;
	margin: 2em 0 3em !important;
	padding: 0 !important;
	border: none !important;
}
/* 「メッセージは送信されました」 */
.wpcf7 form.sent .wpcf7-response-output {
	display: none !important;
}
/* === ▲ 自動で付与されるclass名 === */

main p,
main a,
main span {
	font-size: clamp(14px,1.6vw,16px);
}

.form_wrap h2 {
	font-size: 24px;
	font-weight: bold;
	line-height: 1;
	margin-bottom: 50px;
}
/* アイコンがついてるh2 */
.fhead_icon {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
}
.fhead_icon:before {
	content: "";
	min-width:  1.25em;
	min-height: 1.25em;
	display: block;
	background-image: url(../../img/form/fhead_customer.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	margin-right: .5em;
}
.fhead_icon.head_car:before {
	background-image: url(../../img/form/fhead_car.svg);
}
.head_car.marB_add {
	margin-bottom: .5em;
}

.form_wrap dl {
	width: 100%;
	display: flex;
	position: relative;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	margin-bottom:  20px;
	padding-bottom: 20px;
}
.form_wrap dl:after {
	content: "";
	width: 100%;
	height: 7px;
	display: block;
	position: absolute;
	left:   0;
	bottom: -5px;
	background-image: url(../../img/form/form_border.svg);
	background-repeat: repeat-x;
	background-position: center;
	background-size: contain;
}
.form_wrap dl:last-of-type {
	padding-bottom: 0 !important;
}
.form_wrap dl:last-of-type:after {
	content: none;
}
.form_wrap dt {
	width: 26vw;
	max-width: 260px;
	min-width: 230px;
	font-size: clamp(14px,1.6vw,16px);
	font-weight: normal;
	font-feature-settings: "palt";
	transform: translateY(.25em);
}
.form_wrap dt small {
	display: block;
	line-height: 1;
}
.form_wrap dt.add_trans {
	transform: translateY(-.15em);
}
.form_wrap dd {
	width: calc(100% - clamp(230px,26vw,260px));
}
/* 必須入力 */
.required dt {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
}
.required dt:after {
	content: "*";
	margin-left: .25em;
	color: #ff5d00;
}
/* reset */
:focus {
	outline: none;
}
::placeholder {
	color: #b3b3b3;
}



/* textarea X軸の拡縮 解除 */
textarea {
	min-height: 180px;
	resize: vertical;
}
/* デザイン調整 */
input,
select,
textarea,
.checkboxItem,
.form_img,
.form_wrap dt,
.form_wrap dd p {
	font-size: clamp(14px,1.6vw,16px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.file_wrap	{
	width: 100%;
	line-height: 1.5 !important;
	letter-spacing: .05em !important;
	padding: .5em .75em;
	background: #f7f6f2;
}
.half_text {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.half_text > span {
	width: calc(100%/2 - 1%);
}
.half_text > .half_name {
	width: calc(100%/2 - 2%);
}

.half_text input,
.half_name span,
.half_name input {
	width: 100%;
}

/* お名前を2カ所入力とする */
.half_name   {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
}
.half_name p {
	width: 1em;
	min-width: 1em;
	margin-top: .25em;
	margin-right: .5em;
}


/* チェックボックス */
.checkboxItem.add_width {
	max-width: 500px;
}
.checkboxItem label {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	cursor: pointer;
}
.checkboxItem .wpcf7-list-item:not(:last-of-type) {
	margin-right: 2em !important;
}
.checkboxItem input[type="checkbox"] {
	width:  16px;
	height: 16px;
	appearance: none;
	position: relative;
	margin-right: .35em;
	border: 1px solid #000;
	cursor: pointer;
}
.checkboxItem input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top:  3px;
	left: 2px;
	width: 10px;
	height: 6px;
	border-left:   2px solid #000;
	border-bottom: 2px solid #000;
	transform: rotate(-45deg);
}
/* セレクトボックス */
.select_parent > span {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.select_parent > span:after {
	content: "";
    position: absolute;
    width:  12px;
	height: 10px;
    right:  12px;
    pointer-events: none;
	background-image: url(../../img/form/selectbox_arrow.svg);
	background-repeat: no-repeat;
	background-position: center;
}
.select_parent select {
	height: 2.8em;
	min-width: 230px;
    appearance: none;
    padding: .4em 1em .4em .8em;
    border-radius: 3px;
    background-color: #f7f6f2;
    color: #000000;
    cursor: pointer;
}
.select_parent > span:first-of-type select {
	margin-left: 0 !important;
}


/* input[type="file"]デザイン調整 */
.form_file {
	position: relative;
}
.form_file label {
	/* ボタン部分の見た目（任意） */
	font-size: 14px;
	font-size: clamp(13px,1.4vw,14px);
	line-height: 1;
	letter-spacing: .05em;
	display: inline-block;
	padding: .5em;
	color:#000;
}
.form_file label input {
	width:  100%;
	height: 100%;
	position: absolute;
	left: 0;
	top:  0;
	opacity: 0;
}
.form_file .filename {
	font-size: 14px;
	font-size: clamp(13px,1.4vw,14px);
	line-height: 1;
	letter-spacing: 0;
	margin-left: .25em;
}
.form_file .wpcf7-form-control-wrap {
	position: inherit !important;
}
input[type=file]::-webkit-file-upload-button { 
  cursor: pointer;
}

/* ファイルがアップロードされたとき、該当fileのlabelの背景色を消す */
.form_file label {
  background-color: #fff;
}

/* ファイルがアップされたあとの背景非表示 */
.form_file label.uploaded {
  background-color: transparent;
}
.form_file label.uploaded + .filename {
	display: none;
}


/* form内の注釈「*は入力必須項目になります。」 */
.form_note {
	width: 100%;
	font-size: 12px;
	text-align: right;
}
/* 見出し右の注釈 */
.head_note {
	font-size: 12px;
	font-weight: normal;
	text-align: center;
	margin-bottom: 50px;
}
/* 黒ボタン */
.btn_kuro a {
	min-width: 220px;
	justify-content: space-between;
}
.btn_kuro a:before {
	content: "";
	width:  0;
	height: 0;
}
.btn_kuro a:after {
	margin-left: 0;
}

/* タブ切り替え（お問い合わせフォーム用）を実装 */
.form_tabwrap {
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: space-between;
}
.form_tabwrap li {
	width: calc(100%/2);
	line-height: 1.3;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #000;
	background-color: #fff;
}
.form_tabwrap li.uk-active {
	color: #fff;
	background-color: #2c2c2c;
}
.form_tabwrap li a {
	width:  100%;
	height: 100%;
	font-size: 18px;
	font-size: clamp(16px,1.8vw,18px);
	font-weight: bold;
	text-align: center;
	padding: 1em;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip,
.custom-error {
	width: 100%;
	font-size: 12px !important;
	font-weight: normal;
	line-height: 1.5;
	display: block;
	color: #dc3232;
	margin-top: .5em;
}


/* ----- 調整 ----- */

/* 年号・年月日 */
.form_flex {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
}
.form_flex select {
	width: 7.5em;
	min-width: inherit;
}
select.select_date {
	width: 4.5em;
}
.form_flex select,
.form_flex p {
	margin-left: .75em;
}
.form_wrap p.mar_add {
	margin-left: 0 !important;
	margin-right: .75em;
}

.form_flex .mar0_L {
	margin-left: 0;
}
/* 走行距離・交換履歴 一行テキスト */
.dd_run input,
.radio_can_write input[type="text"] {
	width: 7.5em;
}
/* 登録番号（車番）の下4けた - 画像 -  */
.form_img {
	width: 60%;
	max-width: 260px;
	margin-top: 1em;
	margin-bottom: 1em;
}


/* ----- トルコン太郎専用 お問い合わせ ----- */
.first_text .color_red {
	color: #ff0000;
}
.first_text li {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
}
.first_text li span {
	text-align: justify;
	line-height: 1.5;
}
.first_text li span:first-of-type {
	min-width: 1.5em;
}
.first_text li {
	margin-top: 1em;
}

/* 承諾確認 */
.check_kakunin_wrap {
	width: 100%;
}
.check_kakunin_wrap label,
.check_kakunin {
	display: flex;
	align-items: center;
	column-gap: 8px;
	width: fit-content;
	cursor: pointer;
	margin-left:  auto;
	margin-right: auto;
}
.check_kakunin_wrap label {
	align-items: flex-start;
}
.check_kakunin_wrap span {
	line-height: 1.8;
}
.check_kakunin_wrap a {
	text-decoration: underline;
}

.input_kakunin {
	width:  16px;
	height: 16px;
	appearance: none;
	position: relative;
	border: 1px solid #000;
	cursor: pointer;
	transform: translateY(.5em);
}
.input_kakunin:checked::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0px;
	width: 20px;
	height: 8px;
	border-left:   3px solid #ff5d00;
	border-bottom: 3px solid #ff5d00;
	transform: rotate(-45deg);
}
/* 承諾確認されていないとき、送信ボタンを押せなくする */
.wpcf7 .wpcf7-submit:disabled {
	background-color: #ccc;
}


/* 交換の理由 */
.check_widmax label {
	width: 100%;
	display: inline-block;
	margin-right: 0 !important;
}
.underline_cont {
	width: fit-content;
	font-size: clamp(12px,1.4vw,14px);
	font-feature-settings: "palt";
	line-height: 1;
	letter-spacing: .15em;
	margin-top:    .75em;
	margin-bottom: .75em;
	padding-bottom: .25em;
	border-bottom: 1px solid #000;
}

/* ラジオボタン - 交換履歴（トルコン太郎） */
.form_radio {
    display: block;
    flex-wrap: wrap;
    gap: .3em 2em;
	margin-top: 10px;
    border: none;
}
.form_radio li {
	line-height: 1;
}
.form_radio li + li {
	margin-top: 15px;
}
.form_radio label {
	width: 100%;
    display: flex;
    align-items: center;
    gap: 0 .5em;
    position: relative;
    cursor: pointer;
}
.form_radio label::before,
.form_radio label::after {
	content: "";
    border-radius: 50%;
}
.form_radio label::before {
    width:  18px;
    height: 18px;
	box-sizing: border-box;
    border: 1px solid #000;
}
.form_radio label::after {
	width:  16px;
    height: 16px;
    position: absolute;
    top: 50%;
    left: 9px;
    background-color: #fff;
	transform: translate(-50%, -50%);
}
.form_radio label:has(:checked)::before {
	border-color: #ff5d00;
}
.form_radio label:has(:checked)::after {
    background-color: #ff5d00;
}
.form_radio input[type="radio"] {
    display: none;
}

/* チェックボックス（トルコン太郎） */
.sekou_group .wpcf7-form-control-wrap:first-of-type .wpcf7-not-valid-tip {
	display: none !important;
}



/* ラジオボタン + 一行テキスト入力欄 */
.radio_can_write {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}
.radio_can_write > div {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	margin-top: 0;
	margin-left: 15px;
}
.radio_can_write div p {
	margin-left: .75em;
}
/* 入力不可能とする */
input.text_disabled {
	background-color: #ddd !important;
}

/* form送信ボタン */
.btn_kuro div:after {
	position: absolute;
	right: 20px;
}
.btn_kuro div {
	padding: 0;
}
.btn_kuro input {
	width: 100%;
	min-width: 220px;
	text-align: center;
	padding: 1.25em 2.2em;
}
.btn_kuro .wpcf7-spinner {
	display: none !important;
}



/* ----- formのページはfooter上部を非表示とする ----- */
.footer_wrap {
	pointer-events: none !important;
	text-outline: none !important;
	visibility: hidden !important;
	display: none !important;
}


@media screen and (max-width:768px) {
	.white_box {
		padding-top: 30px;
	}
	.form_wrap h2 {
		font-size: 20px;
		margin-bottom: 20px;
	}
	.form_wrap dt small {
		font-size: 14px;
	}
	.form_wrap dl {
		flex-wrap: wrap;
		flex-direction: column;
		margin-bottom: 15px;
	}
	.form_wrap dt,
	.form_wrap dd {
		width: 100%;
	}
	.form_wrap dt {
		margin-bottom: .75em;
	}
	.head_note {
		display: inline-block;
		margin-top: 1em;
		margin-bottom: 30px;
	}
	.form_wrap dt span  {
		margin-bottom: .5em;
	}
	.form_wrap dt small {
		margin-top: .25em;
	}
	.form_wrap dt {
		font-size: 16px;
	}
	input,
	select,
	textarea,
	.checkboxItem,
	.form_img,
	.form_wrap dd p,
	.form_radio span {
		font-size: 14px;
		/* width370px以下用の対策 */
		font-size: clamp(12px,3.733vw,14px);
	}
	.form_img {
		width: 100%;
		max-width: 300px;
        margin-top: 1.5em;
        margin-bottom: .5em;
	}
	/* half_text（名前など） */
	.half_text > .half_name {
		width: 100%;
	}
	.half_name + .half_name {
		margin-top: 10px;
	}
	.half_name p {
		width: 1.5em;
		min-width: 1.5em;
	}
	/* select box */
	.form_flex select  {
		width: 7em;
	}
	.form_flex select,
	.form_flex p {
		margin-left: .5em;
	}
	select.select_date {
		width: 3.7em;
	}
	.select_parent > span:after {
		width: 10px;
		height: 5px;
		right:  6px;
	}
	/* 承諾確認 */
	.input_kakunin {
		width:  14px;
		height: 14px;
	}
	.check_kakunin_wrap span {
		font-size: 14px;
	}
	.input_kakunin:checked::after {
		width: 16px;
	}
	/* radio */
	.form_radio label::before {
		width:  14px;
		height: 14px;
	}
	.form_radio label::after {
		width:  12px;
		height: 12px;
		left:    7px;
	}
	/* checkbox */
	.checkboxItem input[type="checkbox"] {
		width:  13px;
		height: 13px;
	}
	.checkboxItem input[type="checkbox"]:checked::after {
		width:  9px;
		height: 5px;
		top:  2px;
	    left: 1px;
	}
	/* 添付ファイル */
	.form_file label {
		font-size: 14px;
	}
	.form_file .filename {
		display: none;
	}
	.form_note {
		margin-top: 30px;
	}
	/* タブ切り替え（お問い合わせフォームページ） */
	.form_tabwrap {
		flex-wrap: wrap;
	}
	.form_tabwrap li {
		width: 100%;
	}
	.form_tabwrap li + li {
		margin-top: 10px;
	}
	.form_tabwrap li a {
		height: 100%;
		font-size: min(4.267vw,16px);
		line-height: 1.3;
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
}