@charset "utf-8";
/*
Theme Name: BizVektor Child
Template: biz-vektor
Description: torasan.co.jp 用の BizVektor 子テーマ。親テーマ（1.8.13）に直接入っていた改造をここへ移した。
Version: 1.1.0
Text Domain: biz-vektor
*/

/*
親テーマは functions.php の biz_vektor_wp_css() で get_stylesheet_uri() を読み込むため、
子テーマを有効にすると親の style.css の代わりにこのファイルが読まれる。
親の style.css はヘッダーと空の .sticky {} だけで見た目に効く指定が無いので、@import はしない。
*/

/*-------------------------------------------*/
/*	注文・お問い合わせのフォーム（Contact Form 7）2026-10-31
/*-------------------------------------------*/
.tora-form {
	--tora-accent: #990000;
	--tora-accent-dark: #7a0000;
	--tora-line: #e3dcd2;
	--tora-paper: #fbf8f3;
	--tora-ink: #333;
	--tora-sub: #77706a;
	max-width: 760px;
	margin: 24px auto 0;
	color: var(--tora-ink);
	font-size: 15px;
	line-height: 1.7;
}
.tora-form *,
.tora-form *::before,
.tora-form *::after { box-sizing: border-box; }
.tora-form__group {
	margin: 0 0 28px;
	padding: 8px 28px 12px;
	background: var(--tora-paper);
	border: 1px solid var(--tora-line);
	border-top: 3px solid var(--tora-accent);
	border-radius: 0 0 8px 8px;
	min-width: 0;
}
.tora-form__legend {
	float: left;
	width: 100%;
	margin: 0;
	padding: 14px 0 10px;
	border-bottom: 1px solid var(--tora-line);
	font-size: 17px;
	font-weight: bold;
	letter-spacing: 0.05em;
	color: var(--tora-accent);
}
.tora-form__legend + * { clear: both; }
.tora-field {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px dashed var(--tora-line);
}
.tora-field:last-child { border-bottom: none; }
.tora-field__label {
	flex: 0 0 210px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 10px;
	font-weight: bold;
	font-size: 15px;
}
.tora-field__body { flex: 1 1 auto; min-width: 0; }
.tora-field__body--short { max-width: 280px; }
.tora-badge {
	flex: 0 0 auto;
	display: inline-block;
	padding: 1px 8px;
	border-radius: 3px;
	background: #9a948d;
	color: #fff;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.7;
	letter-spacing: 0.08em;
}
.tora-badge--req { background: var(--tora-accent); }

/* 入力欄（テーマの form 共通の指定を上書きする） */
#content .tora-form input[type="text"],
#content .tora-form input[type="email"],
#content .tora-form input[type="tel"],
#content .tora-form select,
#content .tora-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #cfc6ba;
	border-radius: 6px;
	background: #fff;
	color: var(--tora-ink);
	font-size: 16px;
	line-height: 1.5;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color .15s, box-shadow .15s;
}
#content .tora-form textarea { min-height: 150px; resize: vertical; }
#content .tora-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23990000' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
}
.tora-form input::placeholder,
.tora-form textarea::placeholder { color: #b0a89f; }
#content .tora-form input:focus,
#content .tora-form select:focus,
#content .tora-form textarea:focus {
	outline: none;
	border-color: var(--tora-accent);
	box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.15);
}
#content .tora-form .wpcf7-not-valid { border-color: #d63638 !important; background-color: #fff6f6 !important; }
.tora-form span.wpcf7-not-valid-tip { top: 0; left: 0; margin: 6px 0 0; padding: 0; background: none; font-size: 13px; font-weight: bold; color: #d63638; }
.tora-form span.wpcf7-not-valid-tip::after { display: none; }

.tora-form__note {
	margin: 0 0 12px;
	padding: 12px 16px;
	border-radius: 6px;
	background: #fff;
	border-left: 4px solid var(--tora-accent);
	font-size: 14px;
	color: var(--tora-sub);
}

/* ラジオボタン */
.tora-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.tora-form .wpcf7-radio .wpcf7-list-item { margin: 0; padding: 0; }
.tora-form .wpcf7-radio label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid #cfc6ba;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.tora-form .wpcf7-radio label:has(input:checked) { border-color: var(--tora-accent); background: #fdf0f0; color: var(--tora-accent); font-weight: bold; }
.tora-form .wpcf7-radio input { accent-color: var(--tora-accent); margin: 0; }

/* 同意 */
.tora-form__agree { margin: 8px 0 24px; text-align: center; }
.tora-form__agree .wpcf7-list-item { margin: 0; padding: 0; }
.tora-form__agree label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.tora-form__agree input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--tora-accent); }
.tora-form__agree a { color: var(--tora-accent); text-decoration: underline; }

/* 送信ボタン */
.tora-form__submit { text-align: center; }
#content .tora-form input.tora-btn {
	display: inline-block;
	min-width: 280px;
	padding: 16px 40px;
	border: none;
	border-radius: 999px;
	background: var(--tora-accent);
	color: #fff;
	font-size: 17px;
	font-weight: bold;
	letter-spacing: 0.1em;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--tora-accent-dark);
	transition: transform .1s, box-shadow .1s, background .15s;
	-webkit-appearance: none;
	appearance: none;
}
#content .tora-form input.tora-btn:hover { background: #b30000; }
#content .tora-form input.tora-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tora-accent-dark); }
#content .tora-form input.tora-btn:disabled { background: #c9c2ba; box-shadow: 0 4px 0 #aaa39b; cursor: not-allowed; }
.tora-form .wpcf7-spinner { display: block; margin: 12px auto 0; }

/* 送信後のお知らせ */
.wpcf7 form .wpcf7-response-output {
	max-width: 760px;
	margin: 20px auto 0;
	padding: 14px 18px;
	border-radius: 6px;
	font-size: 15px;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; background: #eef7ef; color: #1b5e20; }

/* スマホ */
@media (max-width: 640px) {
	.tora-form__group { padding: 4px 16px 8px; }
	.tora-field { display: block; padding: 14px 0; }
	.tora-field__label { justify-content: flex-start; padding: 0 0 8px; }
	.tora-field__body--short { max-width: none; }
	#content .tora-form input.tora-btn { width: 100%; min-width: 0; }
}


/* 段を 1 枚の箱にまとめる（別々のフォームに見えないように・2026-10-31） */
.tora-form__group {
	margin: 0;
	border-top: none;
	border-bottom: none;
	border-radius: 0;
}
.tora-form__group:first-of-type {
	border-top: 1px solid var(--tora-line);
	border-radius: 8px 8px 0 0;
}
.tora-form__group + .tora-form__group {
	padding-top: 20px;
}
.tora-form__group:last-of-type {
	margin-bottom: 28px;
	border-bottom: 1px solid var(--tora-line);
	border-radius: 0 0 8px 8px;
}


/* 案内文の余白（テーマの #content p { padding: 0 5px } に負けていた）・選択欄の下に寄せる（2026-10-31） */
.tora-form .tora-field:has(+ .tora-form__note) {
	border-bottom: none;
	padding-bottom: 10px;
}
#content .tora-form__note {
	margin: 0 0 12px 230px;
	padding: 12px 16px;
	line-height: 1.7;
}
@media (max-width: 640px) {
	#content .tora-form__note { margin: 0 0 12px; }
}

/* 質問の開閉（details）2026-11-07: WP Canvas - Shortcodes の [wc_toggle] を HTML の details に置き換えた。見た目は元の部品に合わせた */
#content details.torasan-qa { margin: 0 0 20px; }
#content details.torasan-qa > summary {
	display: block;
	position: relative;
	padding: 10px 20px 10px 40px;
	border: 1px solid #cccccc;
	color: #990000;
	text-decoration: underline;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}
#content details.torasan-qa > summary::-webkit-details-marker { display: none; }
#content details.torasan-qa > summary::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}
#content details.torasan-qa[open] > summary::before { transform: rotate(45deg); margin-top: -5px; }
#content details.torasan-qa > summary:hover { text-decoration: none; }
#content details.torasan-qa .torasan-qa-a {
	padding: 20px;
	border: 1px solid #cccccc;
	border-top: 0;
}
#content details.torasan-qa .torasan-qa-a > *:last-child { margin-bottom: 0; }
