/* =========================================================
   お問い合わせページ
========================================================= */

.tks-page {
	position: relative;
	z-index: 3;
	background: #fff;
	color: #111;
}

.tks-page-hero {
	position: relative;
	overflow: hidden;
	padding: 190px 40px 120px;
	color: #fff;
	background: linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)), url("/wp-content/uploads/2026/04/inquiry-bg.webp") center / cover no-repeat;
}

.tks-page-hero__inner {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.tks-page-hero__heading {
	position: relative;
	display: inline-block;
	margin-bottom: 28px;
}

.tks-page-hero__heading-bg {
	position: absolute;
	top: -12px;
	left: -10px;
	z-index: 3;
	width: calc(100% + 20px);
	height: 72px;
	background: linear-gradient(90deg, #4689ca 0%, #133a7a 100%);
	transform: scaleX(0);
	transform-origin: left center;
	animation: tksHeadingBgBox 1.05s cubic-bezier(0.76, 0, 0.24, 1) 0.25s forwards;
}

.tks-page-hero__title {
	position: relative;
	z-index: 2;
	margin: 0;
	color: #fff;
	font-size: clamp(38px, 4vw, 58px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0.04em;
	opacity: 0;
	animation: tksHeadingText 0.01s linear 0.87s forwards;
}

.tks-page-hero__subtitle {
	position: relative;
	z-index: 2;
	margin-top: 10px;
	color: #2f72b8;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: 0.12em;
	opacity: 0;
	filter: blur(10px);
	animation: tksBlurFade 0.8s ease 1.2s forwards;
}

.tks-page-hero__lead {
	max-width: 680px;
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 2;
	letter-spacing: 0.04em;
	opacity: 0;
	transform: translateY(28px);
	animation: tksFadeUp 0.75s ease 1.37s forwards;
}

.tks-contact-section {
	position: relative;
	padding: 120px 40px;
	background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 34%, #f7f9fc 100%);
}

.tks-contact-section__inner {
	width: min(920px, 100%);
	margin: 0 auto;
}

.tks-contact-section__intro {
	position: relative;
	max-width: 920px;
	margin: 0 auto 38px;
	padding-top: 8px;
	text-align: left;
}

.tks-contact-section__intro h2 {
	position: relative;
	display: inline-block;
	margin: 0 0 18px;
	padding-left: 18px;
	font-size: clamp(28px, 2.6vw, 40px);
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.tks-contact-section__intro h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 6px;
	height: calc(100% - 6px);
	background: linear-gradient(180deg, #5aa4e8 0%, #174f9f 100%);
	border-radius: 999px;
}

.tks-contact-section__intro p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 2;
	letter-spacing: 0.03em;
}

.tks-contact-section__tel {
	display: flex;
	align-items: stretch;
	gap: 0;
	width: 100%;
	margin: 34px auto 0;
	padding: 0;
	color: #fff;
	background: linear-gradient(135deg, #5c9fe0 0%, #1f4f98 100%);
	border-radius: 16px;
	box-shadow: 0 16px 34px rgba(19, 58, 122, 0.14);
	text-align: left;
	overflow: hidden;
}

.tks-contact-section__tel div {
	flex: 1 1 0;
	padding: 28px 24px;
	text-align: center;
}

.tks-contact-section__tel div + div {
	margin-top: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.tks-contact-section__tel span {
	display: inline-block;
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.tks-contact-section__tel a,
.tks-contact-section__tel strong {
	color: #fff;
	font-size: clamp(24px, 2vw, 30px);
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.tks-contact-section__hours {
	margin-top: 14px !important;
	color: #2f72b8;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.7 !important;
	text-align: center;
}

.tks-contact-section__form {
	position: relative;
	max-width: 920px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.tks-contact-section__form .wpcf7 {
	position: relative;
	padding: 4px;
	background: linear-gradient(135deg, rgba(90, 164, 232, 0.34) 0%, rgba(47, 114, 184, 0.22) 55%, rgba(255, 255, 255, 0.9) 100%);
	border-radius: 28px;
	box-shadow: 0 18px 42px rgba(19, 58, 122, 0.08);
}

.tks-contact-section__form .wpcf7-form {
	position: relative;
	padding: 46px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 22px;
	overflow: hidden;
}

.tks-contact-section__form .wpcf7-form::before {
	content: "";
	position: absolute;
	top: -160px;
	right: -160px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(90, 164, 232, 0.2) 0%, rgba(90, 164, 232, 0) 70%);
	pointer-events: none;
}

.tks-contact-section__form .wpcf7-form::after {
	content: "TOKUSHO";
	position: absolute;
	right: -10px;
	bottom: -18px;
	z-index: 0;
	color: rgba(47, 114, 184, 0.045);
	font-size: clamp(58px, 8vw, 112px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.06em;
	pointer-events: none;
}

.tks-cf7 {
	position: relative;
	z-index: 2;
}

.tks-cf7__intro {
	position: relative;
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	column-gap: 18px;
	row-gap: 10px;
	margin: 0 0 34px;
	padding: 24px 26px;
	background: linear-gradient(135deg, #f7fbff 0%, #edf5fc 58%, #e5f0fa 100%);
	border: 1px solid rgba(47, 114, 184, 0.14);
	border-radius: 18px;
	box-shadow: 0 12px 26px rgba(19, 58, 122, 0.07);
}

.tks-cf7__intro::before {
	content: "i";
	grid-row: 1 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	font-style: italic;
	line-height: 1;
	background: linear-gradient(135deg, #5aa4e8 0%, #174f9f 100%);
	border-radius: 50%;
	box-shadow: 0 10px 20px rgba(47, 114, 184, 0.18);
}

.tks-cf7__intro p {
	margin: 0;
	color: #16325f;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.9;
	letter-spacing: 0.03em;
}

.tks-cf7__intro p:first-of-type,
.tks-cf7__intro p:last-of-type {
	grid-column: 2 / 3;
}

.tks-cf7__intro p + p {
	margin-top: 0;
}

.tks-cf7__intro span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 6px 0 0;
	padding: 4px 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	background: #d94848;
	border-radius: 999px;
}

.tks-cf7__table {
	counter-reset: tks-form-row;
	display: grid;
	gap: 16px;
}

.tks-cf7__row {
	counter-increment: tks-form-row;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	background: #fff;
	border: 1px solid rgba(19, 58, 122, 0.12);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(19, 58, 122, 0.055);
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tks-cf7__row:hover {
	border-color: rgba(47, 114, 184, 0.28);
	box-shadow: 0 16px 34px rgba(19, 58, 122, 0.1);
	transform: translateY(-2px);
}

.tks-cf7__head {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 74px;
	padding: 20px 20px 20px 58px;
	color: #111;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: 0.03em;
	background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
	border-right: 1px solid rgba(19, 58, 122, 0.1);
}

.tks-cf7__head::before {
	content: counter(tks-form-row, decimal-leading-zero);
	position: absolute;
	left: 18px;
	top: 50%;
	color: rgba(47, 114, 184, 0.38);
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	transform: translateY(-50%);
}

.tks-cf7__head span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	padding: 5px 9px;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	background: #d94848;
	border-radius: 999px;
}

.tks-cf7__body {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 12px;
	background: #fff;
}

.tks-cf7__body p,
.tks-cf7__body .wpcf7-form-control-wrap,
.tks-cf7__body .wpcf7-form-control {
	width: 100%;
}

.tks-cf7__body .wpcf7-form-control-wrap {
	display: block;
}

.tks-cf7__input,
.tks-cf7__select,
.tks-cf7__textarea {
	width: 100%;
	min-height: 52px;
	padding: 0 18px;
	color: #111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	background: #f8fbfd;
	border: 1px solid transparent;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tks-cf7__select {
	appearance: auto;
}

.tks-cf7__textarea {
	min-height: 190px;
	padding: 16px 18px;
	resize: vertical;
}

.tks-cf7__input::placeholder,
.tks-cf7__textarea::placeholder {
	color: rgba(0, 0, 0, 0.34);
	font-weight: 500;
}

.tks-cf7__input:focus,
.tks-cf7__select:focus,
.tks-cf7__textarea:focus {
	outline: none;
	background: #fff;
	border-color: rgba(47, 114, 184, 0.55);
	box-shadow: 0 0 0 4px rgba(47, 114, 184, 0.12);
}

.tks-cf7__privacy {
	position: relative;
	margin-top: 28px;
	padding: 24px 26px;
	color: #111;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
	background: #f8fbfd;
	border: 1px solid rgba(19, 58, 122, 0.12);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(19, 58, 122, 0.055);
}

.tks-cf7__privacy .wpcf7-list-item {
	margin: 0;
}

.tks-cf7__privacy label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.tks-cf7__privacy input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #2f72b8;
}

.tks-cf7__submit {
	margin-top: 34px;
	text-align: center;
}

.tks-cf7__submit p {
	position: relative;
	margin: 0;
}

.tks-cf7__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(460px, 100%);
	min-height: 64px;
	padding: 0 72px;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.06em;
	text-decoration: none;
	background: linear-gradient(90deg, #5aa4e8 0%, #174f9f 100%);
	border: none;
	border-radius: 999px;
	box-shadow: 0 16px 34px rgba(47, 114, 184, 0.28);
	cursor: pointer;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.tks-cf7__button:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 22px 44px rgba(47, 114, 184, 0.36), 0 0 18px rgba(90, 164, 232, 0.45);
	filter: brightness(1.07);
}

.tks-cf7 .wpcf7-spinner {
	position: absolute;
	right: -34px;
	top: 50%;
	margin: 0;
	transform: translateY(-50%);
}

.tks-cf7 .wpcf7-not-valid-tip {
	margin-top: 8px;
	color: #d83a3a;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
}

.tks-cf7 .wpcf7-response-output {
	margin: 28px 0 0;
	padding: 18px 20px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.7;
	background: #fff;
	border-radius: 12px;
}

@media (max-width: 959px) {
	.tks-page-hero {
		padding: 140px 24px 82px;
	}

	.tks-page-hero__title {
		font-size: 34px;
	}

	.tks-page-hero__subtitle {
		font-size: 16px;
	}

	.tks-page-hero__lead {
		font-size: 14px;
		line-height: 1.9;
	}

	.tks-contact-section {
		padding: 74px 20px;
	}

	.tks-contact-section__inner {
		display: block;
		width: 100%;
	}

	.tks-contact-section__intro {
		margin-bottom: 34px;
	}

	.tks-contact-section__tel {
		display: block;
		width: 100%;
		padding: 0;
		border-radius: 14px;
	}

	.tks-contact-section__tel div {
		padding: 24px 20px;
	}

	.tks-contact-section__tel div + div {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
	}

	.tks-contact-section__tel a,
	.tks-contact-section__tel strong {
		font-size: 26px;
	}

	.tks-contact-section__form .wpcf7 {
		padding: 6px;
		border-radius: 20px;
	}

	.tks-contact-section__form .wpcf7-form {
		padding: 24px 16px 26px;
		border-radius: 16px;
	}

	.tks-cf7__intro {
		display: block;
		padding: 22px 18px;
		border-radius: 14px;
	}

	.tks-cf7__intro::before {
		display: none;
	}

	.tks-cf7__intro p:first-of-type,
	.tks-cf7__intro p:last-of-type {
		grid-column: auto;
	}

	.tks-cf7__row {
		display: block;
		border-radius: 14px;
	}

	.tks-cf7__head {
		min-height: auto;
		padding: 18px 18px 0 52px;
		background: #fff;
		border-right: none;
	}

	.tks-cf7__head::before {
		left: 18px;
		top: 21px;
		transform: none;
	}

	.tks-cf7__body {
		padding: 12px 14px 16px;
	}

	.tks-cf7__input,
	.tks-cf7__select,
	.tks-cf7__textarea {
		min-height: 50px;
		font-size: 14px;
	}

	.tks-cf7__textarea {
		min-height: 160px;
	}

	.tks-cf7__privacy {
		padding: 20px 18px;
		font-size: 13px;
		border-radius: 14px;
	}

	.tks-cf7__privacy label {
		align-items: flex-start;
	}

	.tks-cf7__privacy input {
		flex: 0 0 auto;
		margin-top: 4px;
	}

	.tks-cf7__button {
		width: 100%;
		min-height: 58px;
		padding: 0 56px 0 24px;
		font-size: 15px;
	}

	.tks-cf7__submit p {
		display: block;
	}

	.tks-cf7__submit p::after {
		right: 24px;
	}

	.tks-cf7 .wpcf7-spinner {
		position: static;
		display: block;
		margin: 12px auto 0;
		transform: none;
	}
}

.tks-contact-section.is-complete .tks-contact-section__form {
	display: none;
}

.tks-contact-complete {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.tks-contact-complete.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.tks-contact-complete__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 18, 32, 0.72);
	backdrop-filter: blur(8px);
}

.tks-contact-complete__dialog {
	position: relative;
	z-index: 2;
	width: min(560px, 100%);
	padding: 48px 42px 42px;
	text-align: center;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
	transform: translateY(18px) scale(0.96);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tks-contact-complete.is-visible .tks-contact-complete__dialog {
	transform: translateY(0) scale(1);
}

.tks-contact-complete__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 24px;
	color: #fff;
	font-size: 38px;
	font-weight: 900;
	line-height: 1;
	background: linear-gradient(135deg, #5aa4e8 0%, #174f9f 100%);
	border-radius: 50%;
	box-shadow: 0 16px 34px rgba(47, 114, 184, 0.28);
}

.tks-contact-complete__title {
	margin: 0;
	color: #111;
	font-size: clamp(20px, 2.5vw, 30px);
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.tks-contact-complete__text {
	margin: 18px 0 0;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	line-height: 2;
	letter-spacing: 0.03em;
}

.tks-contact-complete__tel {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px;
	padding: 16px 24px;
	color: #fff;
	background: linear-gradient(135deg, #5c9fe0 0%, #1f4f98 100%);
	border-radius: 999px;
    justify-content: center;
    width: min(320px, 100%);
}

.tks-contact-complete__tel span {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.tks-contact-complete__tel a {
	color: #fff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
}

.tks-contact-complete__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(320px, 100%);
	min-height: 54px;
	margin: 30px auto 0;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	background: #111;
	border-radius: 999px;
	transition: transform 0.25s ease, background 0.25s ease;
}

.tks-contact-complete__button:hover {
	background: #2f72b8;
	transform: translateY(-2px);
}

@media (max-width: 959px) {
	.tks-contact-complete {
		padding: 20px;
	}

	.tks-contact-complete__dialog {
		padding: 38px 22px 30px;
		border-radius: 20px;
	}

	.tks-contact-complete__icon {
		width: 64px;
		height: 64px;
		margin-bottom: 20px;
		font-size: 32px;
	}

	.tks-contact-complete__text {
		text-align: left;
	}

	.tks-contact-complete__tel {
		display: flex;
		justify-content: center;
		width: 100%;
		padding: 16px 18px;
	}

	.tks-contact-complete__tel a {
		font-size: 20px;
	}
}
.tks-contact-section.is-complete .wpcf7-response-output {
	display: none;
}