/**
 * Contact Form 7 - お問い合わせフォーム
 *
 * @package irohasoft-corp
 */

/* --------------------------------------------------------------------------
   フォーム全体
-------------------------------------------------------------------------- */
.contact-page .page,
.contact-page .post-content {
	max-width: 100%;
}

.contact-intro {
	margin: 0 0 30px;
	padding: 0;
	font-size: 14px;
	line-height: 2;
	color: var(--iroha-text);
}

.contact-intro ul {
	list-style: disc;
	margin: 0 0 0 1.5em;
	padding: 0;
}

.contact-intro li {
	margin-bottom: 0.3em;
	line-height: 2;
}

.contact-intro a {
	color: var(--iroha-primary);
	text-decoration: underline;
}

.contact-intro a:hover {
	text-decoration: none;
}

.contact-footnote {
	margin-top: 20px;
	font-size: 12px;
	color: var(--iroha-text-light);
	line-height: 1.8;
}

.wpcf7 {
	width: 100%;
	margin: 0 0 2em;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 14px;
}

.wpcf7 form {
	margin: 0;
	padding: 0;
}

/* CF7 5.x がフォーム先頭に出力する hidden 用 fieldset（枠線が細い箱として見える） */
.wpcf7 fieldset.hidden-fields-container {
	display: contents;
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
}

.wpcf7 fieldset.hidden-fields-container input[type="hidden"] {
	display: none;
}

/* --------------------------------------------------------------------------
   フィールドグループ（ラベル上・入力下）
-------------------------------------------------------------------------- */
.wpcf7 p,
.wpcf7 .wpcf7-form-group {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	line-height: 1.4;
	gap: 4px;
}

/* 入力がラベルより先に出力される CF7 標準マークアップを視覚的に反転 */
.wpcf7 p:not(.submit-row):has(> .wpcf7-form-control-wrap:first-child) {
	flex-direction: column-reverse;
}

.wpcf7 p.submit-row {
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	margin-top: 20px;
	gap: 0;
}

.wpcf7 label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	font-weight: normal;
	color: var(--iroha-text);
	margin: 0;
	padding: 0;
	line-height: 1.4;
	cursor: default;
}

/* label 内で入力がテキストより先に来る場合 */
.wpcf7 label:has(> .wpcf7-form-control-wrap:first-child) {
	flex-direction: column-reverse;
}

.wpcf7 label br,
.wpcf7 p br {
	display: none;
}

.wpcf7 .field-label {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
	color: var(--iroha-text);
}
.wpcf7 label .iroha-required,
.wpcf7 .wpcf7-form-label .required {
	color: #e74c3c;
	font-size: 13px;
	font-weight: normal;
	margin-left: 4px;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
	width: 100%;
}

/* スパム対策などの不要フィールドを非表示（人間には見えない想定） */
.wpcf7 .akismet-fields-container,
.wpcf7 .wpcf7-form-control-wrap.honeypot,
.wpcf7 input[name="honeypot"],
.wpcf7 input[name^="ak_"],
.wpcf7 input[name*="_hp_"],
.wpcf7 textarea[name^="ak_"],
.wpcf7 textarea[name*="_hp_"],
.wpcf7 form > p.akismet-fields-container,
.wpcf7 p:has(> .wpcf7-form-control-wrap.honeypot),
.wpcf7 p:has(> .wpcf7-form-control-wrap[class*="honeypot"]) {
	display: none !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* --------------------------------------------------------------------------
   テキスト入力・テキストエリア・セレクト
-------------------------------------------------------------------------- */
.wpcf7 input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100% !important;
	max-width: 100%;
	min-height: 42px;
	box-sizing: border-box;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	color: var(--iroha-text);
	background-color: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 2px;
	transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7 select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 20px;
	padding-right: 36px;
	cursor: pointer;
}

.wpcf7 textarea {
	min-height: 180px;
	height: 180px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--iroha-primary);
	background-color: #fff;
	box-shadow: 0 0 0 2px rgba(0, 52, 116, 0.12);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #999;
}

/* --------------------------------------------------------------------------
   ファイルアップロード
-------------------------------------------------------------------------- */
.wpcf7 input[type="file"] {
	display: block;
	width: 100%;
	padding: 8px 0;
	font-size: 13px;
	color: var(--iroha-text);
	background: transparent;
	border: none;
	cursor: pointer;
}

.wpcf7 input[type="file"]::file-selector-button {
	padding: 8px 16px;
	margin-right: 12px;
	font-size: 13px;
	font-family: inherit;
	color: var(--iroha-text);
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 2px;
	cursor: pointer;
	transition: background 0.2s;
}

.wpcf7 input[type="file"]::file-selector-button:hover {
	background: #e4e4e4;
}

.wpcf7 .file-hint {
	display: inline;
	margin-top: 0;
	font-size: 12px;
	color: var(--iroha-text-light);
	line-height: 1.4;
	font-weight: normal;
}

/* --------------------------------------------------------------------------
   チェックボックス・ラジオ
-------------------------------------------------------------------------- */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: auto;
	max-width: none;
	min-height: 0;
	margin-right: 6px;
	padding: 0;
	vertical-align: middle;
	background: #fff;
}

.wpcf7 .wpcf7-list-item {
	display: block;
	margin: 0 0 8px;
}

.wpcf7 .wpcf7-list-item-label {
	font-size: 14px;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   送信ボタン
-------------------------------------------------------------------------- */
.wpcf7 .wpcf7-submit-wrap,
.wpcf7 p.submit-row {
	text-align: right;
	margin-top: 20px;
	margin-bottom: 0;
}

.wpcf7 input.wpcf7-submit,
.wpcf7 .wpcf7-previous {
	display: inline-block;
	width: auto;
	min-width: 120px;
	height: auto;
	padding: 12px 40px;
	margin: 0;
	background-color: var(--iroha-primary);
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	font-weight: normal;
	line-height: 1.5;
	text-align: center;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.wpcf7 input.wpcf7-submit:hover,
.wpcf7 .wpcf7-previous:hover {
	background-color: #3e933c;
}

.wpcf7 .wpcf7-previous + br {
	display: none;
}

/* --------------------------------------------------------------------------
   バリデーション・メッセージ
-------------------------------------------------------------------------- */
.wpcf7 .wpcf7-not-valid {
	border-color: #e74c3c !important;
	background-color: #fff5f5 !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #e74c3c;
}

.wpcf7 form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 12px 16px;
	border-radius: 2px;
	font-size: 14px;
	text-align: left;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 .wpcf7-validation-errors {
	color: #b94a48;
	background-color: #f2dede;
	border: 1px solid #eed3d7;
}

.wpcf7 .wpcf7-mail-sent-ok {
	color: #3a87ad;
	background-color: #d9edf7;
	border: 1px solid #bce8f1;
}

.wpcf7 form.sent .wpcf7-response-output {
	border: none;
	background: transparent;
	padding: 0;
	text-align: center;
	color: #3a87ad;
}

/* --------------------------------------------------------------------------
   スピナー
-------------------------------------------------------------------------- */
.wpcf7 .wpcf7-spinner {
	margin: 0 0 0 10px;
	vertical-align: middle;
}

/* reCAPTCHA */
.wpcf7 .wpcf7-recaptcha {
	margin-bottom: 20px;
}
