/**
 * sys-tre.com /contact-us/ redesign
 * すべて .stco-contact 配下にスコープする（他ページ・他テーマへ影響させない）
 */

.stco-contact {
	--stco-o: #ff7a3d;
	--stco-o-dark: #e85f1e;
	--stco-o-soft: #fff2e9;
	--stco-o-soft2: #ffe6d6;
	--stco-bg: #fffbf7;
	--stco-line: #eee2d9;
	--stco-text: #2b2320;
	--stco-mute: #766c66;
	--stco-radius: 18px;
	--stco-shadow: 0 2px 10px rgba(43, 35, 32, .05);
	--stco-shadow-lg: 0 10px 30px rgba(43, 35, 32, .08);

	box-sizing: border-box;
	background: var(--stco-bg);
	color: var(--stco-text);
	font-size: 16px;
	line-height: 1.8;
	overflow-x: clip;
}

.stco-contact *,
.stco-contact *::before,
.stco-contact *::after {
	box-sizing: border-box;
}

.stco-contact img,
.stco-contact svg {
	max-width: 100%;
}

.stco-inner {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.stco-contact h1,
.stco-contact h2,
.stco-contact h3 {
	color: var(--stco-text);
	margin: 0;
	line-height: 1.4;
	letter-spacing: .01em;
}

.stco-contact p {
	margin: 0;
}

/* NOTE: `.stco-contact a { color: ... }` は (0,1,1) で `.stco-btn-solid` (0,1,0) に勝ち、
   オレンジ地のボタンを塗り潰す。リンク色は必ず各要素側で明示する。 */

/* ---------------------------------------------------------- section title */
.stco-sec-head {
	text-align: center;
	margin-bottom: 34px;
}

.stco-sec-head h2 {
	font-size: 28px;
	font-weight: 700;
	display: inline-block;
	padding-bottom: 12px;
	position: relative;
}

.stco-sec-head h2::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--stco-o);
}

/* ------------------------------------------------------------------- hero */
.stco-hero {
	position: relative;
	padding: 56px 0 48px;
	background:
		radial-gradient(60% 70% at 88% 18%, rgba(255, 122, 61, .10) 0%, rgba(255, 122, 61, 0) 62%),
		linear-gradient(180deg, #fff6ef 0%, var(--stco-bg) 100%);
	overflow: hidden;
}

.stco-hero-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.stco-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
}

.stco-eyebrow {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .18em;
	color: var(--stco-o);
	margin-bottom: 10px;
}

.stco-hero h1 {
	font-size: clamp(30px, 4.4vw, 50px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: .005em;
	margin-bottom: 20px;
}

.stco-hero-lead {
	font-size: 16px;
	color: #4a423e;
	margin-bottom: 24px;
}

.stco-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.stco-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--stco-line);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 13.5px;
	line-height: 1.4;
	font-weight: 500;
	box-shadow: var(--stco-shadow);
	white-space: nowrap;
}

.stco-badge svg {
	flex: 0 0 auto;
	color: var(--stco-o);
}

.stco-hero-art {
	justify-self: end;
	width: 100%;
	max-width: 540px;
}

.stco-hero-art svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------ topic cards */
.stco-topics {
	padding: 48px 0 8px;
}

.stco-topic-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.stco-topic {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	background: #fff;
	border: 1.5px solid var(--stco-line);
	border-radius: var(--stco-radius);
	padding: 24px 14px 20px;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
	font: inherit;
	color: inherit;
	width: 100%;
	height: 100%;
}

.stco-topic:hover {
	border-color: #ffbb92;
	box-shadow: var(--stco-shadow-lg);
	transform: translateY(-2px);
}

.stco-topic:focus-visible {
	outline: 3px solid rgba(255, 122, 61, .45);
	outline-offset: 2px;
}

.stco-topic[aria-pressed="true"] {
	border-color: var(--stco-o);
	box-shadow: 0 8px 24px rgba(255, 122, 61, .18);
}

.stco-topic-ico {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--stco-o-soft);
	color: var(--stco-o);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .18s ease, color .18s ease;
}

.stco-topic[aria-pressed="true"] .stco-topic-ico {
	background: var(--stco-o);
	color: #fff;
}

.stco-topic-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.stco-topic-desc {
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--stco-mute);
}

.stco-topic-check {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--stco-o);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .18s ease, transform .18s ease;
}

.stco-topic[aria-pressed="true"] .stco-topic-check {
	opacity: 1;
	transform: scale(1);
}

/* ------------------------------------------------------------------- main */
.stco-main {
	padding: 40px 0 56px;
}

.stco-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
	gap: 24px;
	align-items: start;
}

.stco-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.stco-card {
	background: #fff;
	border: 1px solid var(--stco-line);
	border-radius: var(--stco-radius);
	box-shadow: var(--stco-shadow);
	padding: 24px;
}

.stco-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.stco-card-head svg {
	flex: 0 0 auto;
	color: var(--stco-o);
}

.stco-card-head h3 {
	font-size: 17px;
	font-weight: 700;
}

.stco-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stco-list li {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.75;
	color: #453d39;
	margin: 0;
}

.stco-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .68em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--stco-o);
}

.stco-card-text {
	font-size: 14px;
	line-height: 1.8;
	color: #453d39;
	margin-bottom: 16px;
}

.stco-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	border: 1.5px solid var(--stco-o);
	color: var(--stco-o-dark);
	background: #fff;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .18s ease, color .18s ease;
}

.stco-btn-ghost:hover,
.stco-btn-ghost:focus {
	background: var(--stco-o);
	color: #fff;
}

.stco-contact-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.stco-contact-lines li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	font-weight: 600;
	margin: 0;
}

.stco-contact-lines svg {
	flex: 0 0 auto;
	color: var(--stco-o);
}

.stco-contact-lines a {
	color: var(--stco-text);
	text-decoration: none;
	word-break: break-all;
}

.stco-contact-lines a:hover {
	color: var(--stco-o-dark);
}

/* ------------------------------------------------------------------- form */
.stco-formcard {
	background: #fff;
	border: 1px solid var(--stco-line);
	border-radius: var(--stco-radius);
	box-shadow: var(--stco-shadow-lg);
	padding: 32px;
}

.stco-formcard > h2 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 6px;
}

.stco-form-lead {
	font-size: 14px;
	color: var(--stco-mute);
	margin-bottom: 24px;
}

.stco-contact .wpcf7 {
	margin: 0;
}

.stco-contact .wpcf7-form > p {
	margin: 0;
}

.stco-field {
	display: grid;
	/* 最長ラベル「スクリーンショット添付」+「任意」バッジが 1 行に収まる幅 */
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 8px 16px;
	align-items: start;
	margin-bottom: 18px;
}

.stco-field-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 600;
	padding-top: 15px;
	line-height: 1.5;
}

.stco-req,
.stco-opt {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 4px;
	letter-spacing: .02em;
}

.stco-req {
	background: var(--stco-o-soft);
	color: var(--stco-o-dark);
}

.stco-opt {
	background: #f2efec;
	color: #857b74;
}

.stco-field-body {
	min-width: 0;
}

.stco-contact .wpcf7-form-control-wrap {
	display: block;
}

.stco-contact input[type="text"],
.stco-contact input[type="email"],
.stco-contact select,
.stco-contact textarea {
	width: 100%;
	background: #fdfbfa;
	border: 1.5px solid #e6dcd5;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--stco-text);
	font-family: inherit;
	transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
	-webkit-appearance: none;
	appearance: none;
}

.stco-contact input[type="text"],
.stco-contact input[type="email"],
.stco-contact select {
	height: 54px;
}

.stco-contact select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238b8079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 42px;
	cursor: pointer;
}

.stco-contact textarea {
	min-height: 168px;
	resize: vertical;
	display: block;
}

.stco-contact input[type="text"]:focus,
.stco-contact input[type="email"]:focus,
.stco-contact select:focus,
.stco-contact textarea:focus {
	outline: none;
	background: #fff;
	border-color: var(--stco-o);
	box-shadow: 0 0 0 4px rgba(255, 122, 61, .16);
}

.stco-contact ::placeholder {
	color: #b3a9a2;
	opacity: 1;
}

.stco-counter {
	text-align: right;
	font-size: 12px;
	color: #a49a93;
	margin-top: 6px;
}

.stco-counter.is-over {
	color: #d8442f;
}

/* file */
.stco-file-zone {
	position: relative;
	border: 1.5px dashed #dfd3cb;
	border-radius: 12px;
	background: #fdfbfa;
	padding: 18px 16px;
	text-align: center;
	cursor: pointer;
	transition: border-color .16s ease, background .16s ease;
}

.stco-file-zone:hover,
.stco-file-zone.is-drag {
	border-color: var(--stco-o);
	background: var(--stco-o-soft);
}

.stco-file-main {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #4a423e;
	line-height: 1.6;
}

.stco-file-main svg {
	color: var(--stco-o);
	flex: 0 0 auto;
}

/* span なので display を明示しないと注記が同じ行に流れる */
.stco-file-note {
	display: block;
	font-size: 12px;
	color: #a49a93;
	margin-top: 4px;
}

.stco-file-zone .wpcf7-form-control-wrap {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.stco-file-zone input[type="file"] {
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.stco-file-name {
	display: none;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--stco-o-dark);
	word-break: break-all;
}

.stco-file-zone.has-file .stco-file-name {
	display: block;
}

/* acceptance */
.stco-consent {
	margin: 22px 0 18px;
	font-size: 14px;
}

.stco-contact .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.stco-contact .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-weight: 500;
}

.stco-contact .wpcf7-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--stco-o);
	cursor: pointer;
}

.stco-contact .wpcf7-acceptance .wpcf7-list-item-label a {
	color: var(--stco-o-dark);
	text-decoration: underline;
}

/* submit */
.stco-submit-wrap {
	position: relative;
	margin-top: 4px;
}

.stco-contact input[type="submit"].wpcf7-submit {
	display: block;
	width: 100%;
	border: none;
	border-radius: 12px;
	background: linear-gradient(180deg, #ff8a4f 0%, var(--stco-o) 100%);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 19px 20px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(255, 122, 61, .30);
	transition: filter .16s ease, box-shadow .16s ease, transform .12s ease;
	font-family: inherit;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
}

.stco-contact input[type="submit"].wpcf7-submit:hover:not(:disabled) {
	filter: brightness(1.05);
	box-shadow: 0 10px 26px rgba(255, 122, 61, .38);
}

.stco-contact input[type="submit"].wpcf7-submit:active:not(:disabled) {
	transform: translateY(1px);
}

.stco-contact input[type="submit"].wpcf7-submit:disabled,
.stco-contact form.submitting input[type="submit"].wpcf7-submit {
	opacity: .6;
	cursor: not-allowed;
	box-shadow: none;
}

.stco-contact .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	margin: 0;
}

.stco-submit-note {
	text-align: center;
	font-size: 12.5px;
	color: var(--stco-mute);
	margin-top: 14px;
	line-height: 1.7;
}

/* 同意前は CF7 が送信ボタンを disabled にするので、理由を出す */
.stco-consent-hint {
	display: none;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #b3552d;
	margin-top: 12px;
	line-height: 1.7;
}

.stco-formcard.stco-need-consent .stco-consent-hint {
	display: block;
}

/* CF7 messages */
.stco-contact .wpcf7-not-valid-tip {
	display: block;
	margin-top: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #d8442f;
	line-height: 1.6;
}

.stco-contact .wpcf7-form-control.wpcf7-not-valid {
	border-color: #e8836f;
	background: #fff8f6;
}

.stco-contact .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1.5px solid var(--stco-line);
	font-size: 14.5px;
	line-height: 1.7;
	background: #faf7f5;
}

.stco-contact form.sent .wpcf7-response-output {
	border-color: #6cba7d;
	background: #f2fbf4;
	color: #1f6b33;
	font-weight: 600;
}

.stco-contact form.invalid .wpcf7-response-output,
.stco-contact form.unaccepted .wpcf7-response-output,
.stco-contact form.payment-required .wpcf7-response-output {
	border-color: #efb08a;
	background: #fff7f1;
	color: #a5522a;
}

.stco-contact form.failed .wpcf7-response-output,
.stco-contact form.aborted .wpcf7-response-output,
.stco-contact form.spam .wpcf7-response-output {
	border-color: #e8836f;
	background: #fff5f3;
	color: #b3382a;
}

/* 送信完了パネル */
.stco-done {
	display: none;
	text-align: center;
	padding: 34px 24px;
	border: 1.5px solid #9ed4ac;
	background: #f4fcf6;
	border-radius: var(--stco-radius);
	margin-bottom: 24px;
}

.stco-done.is-shown {
	display: block;
}

.stco-done-ico {
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: #35a558;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.stco-done h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #1f6b33;
}

.stco-done p {
	font-size: 14.5px;
	line-height: 1.85;
	color: #3a5c43;
}

/* ------------------------------------------------------------------ steps */
.stco-steps {
	background: linear-gradient(180deg, #fff4ec 0%, #ffeee2 100%);
	padding: 52px 0;
}

.stco-step-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
}

.stco-step {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid #f5dfd0;
	border-radius: var(--stco-radius);
	padding: 20px 18px;
	box-shadow: var(--stco-shadow);
	height: 100%;
}

.stco-step-no {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid var(--stco-o);
	color: var(--stco-o);
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	letter-spacing: .02em;
}

.stco-step-ico {
	flex: 0 0 auto;
	color: var(--stco-o);
	display: flex;
	align-items: center;
}

.stco-step-body h3 {
	font-size: 15.5px;
	font-weight: 700;
	margin-bottom: 4px;
}

.stco-step-body p {
	font-size: 13px;
	line-height: 1.7;
	color: var(--stco-mute);
}

.stco-step-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e2a97f;
}

/* ---------------------------------------------------------------- faq cta */
.stco-faqcta {
	padding: 0 0 60px;
	background: var(--stco-bg);
}

.stco-faqcta-inner {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	background: linear-gradient(135deg, #fff2e6 0%, #ffe7d5 100%);
	border: 1px solid #f7dcc8;
	border-radius: 22px;
	padding: 32px 36px;
}

.stco-faqcta-art {
	display: flex;
	justify-content: center;
}

.stco-faqcta h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
}

.stco-faqcta p {
	font-size: 14.5px;
	line-height: 1.85;
	color: #554b45;
}

.stco-btn-solid {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--stco-o);
	color: #fff;
	border-radius: 12px;
	padding: 16px 26px;
	font-size: 15.5px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(255, 122, 61, .28);
	transition: filter .16s ease, box-shadow .16s ease;
}

.stco-btn-solid:hover,
.stco-btn-solid:focus {
	filter: brightness(1.06);
	color: #fff;
	box-shadow: 0 10px 26px rgba(255, 122, 61, .36);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.stco-hero {
		padding: 44px 0 40px;
	}

	.stco-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.stco-hero-art {
		justify-self: center;
		max-width: 460px;
	}

	.stco-topic-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.stco-main-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.stco-side {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.stco-faqcta-inner {
		grid-template-columns: 150px minmax(0, 1fr);
		gap: 20px 24px;
	}

	.stco-faqcta .stco-btn-solid {
		grid-column: 1 / -1;
		justify-self: center;
	}
}

@media (max-width: 782px) {
	.stco-step-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.stco-step-arrow {
		padding: 10px 0;
		transform: rotate(90deg);
	}
}

@media (max-width: 640px) {
	.stco-contact {
		font-size: 15px;
	}

	.stco-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.stco-hero {
		padding: 34px 0 34px;
	}

	.stco-hero h1 {
		font-size: 30px;
	}

	.stco-hero-lead {
		font-size: 14.5px;
	}

	.stco-badge {
		font-size: 12.5px;
		padding: 8px 13px;
	}

	.stco-hero-art {
		max-width: 330px;
	}

	.stco-sec-head h2 {
		font-size: 22px;
	}

	.stco-topics {
		padding: 36px 0 4px;
	}

	.stco-topic-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.stco-topic {
		padding: 20px 10px 16px;
		gap: 8px;
	}

	.stco-topic-ico {
		width: 48px;
		height: 48px;
	}

	.stco-topic-name {
		font-size: 14px;
	}

	.stco-topic-desc {
		font-size: 11.5px;
	}

	.stco-main {
		padding: 32px 0 44px;
	}

	.stco-side {
		grid-template-columns: minmax(0, 1fr);
	}

	.stco-card,
	.stco-formcard {
		padding: 20px 18px;
	}

	.stco-formcard > h2 {
		font-size: 19px;
	}

	.stco-field {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin-bottom: 16px;
	}

	.stco-field-label {
		padding-top: 0;
	}

	.stco-contact input[type="submit"].wpcf7-submit {
		font-size: 16px;
		padding: 17px 18px;
	}

	.stco-steps {
		padding: 40px 0;
	}

	.stco-faqcta-inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
		padding: 26px 20px;
	}

	.stco-faqcta-art {
		max-width: 150px;
		margin: 0 auto;
	}

	.stco-faqcta h2 {
		font-size: 20px;
	}

	.stco-contact br.stco-br-pc {
		display: none;
	}
}
