/* ========== Contact Page Styles ========== */
/* スリーケシステム お問い合わせページ専用スタイル */

/* ----- Reset / Base ----- */
.ths-contact-page {
	margin: 0;
	padding: 0;
	background: var(--ths-dark-mid);
	color: var(--ths-text);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.ths-contact-page * {
	box-sizing: border-box;
}
.ths-contact-page #wpadminbar { display: none; }
html.ths-contact-page,
.ths-contact-page html { margin-top: 0 !important; }

/* ----- Mini Header ----- */
.ths-mini-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(8, 14, 32, 0.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--ths-border);
	padding: 18px 24px;
}
.ths-mini-header-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.ths-mini-header-brand {
	display: inline-flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--ths-text);
	line-height: 1.2;
}
.ths-mini-header-brand-name {
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--ths-text);
}
.ths-mini-header-brand-en {
	font-family: "Outfit", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	color: var(--ths-accent-light);
	text-transform: uppercase;
	margin-top: 2px;
}
.ths-mini-header-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--ths-border-strong);
	background: rgba(51, 136, 238, 0.05);
	color: var(--ths-text-sub);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: all 0.3s;
}
.ths-mini-header-back:hover {
	background: rgba(51, 136, 238, 0.15);
	color: #ffffff;
	border-color: var(--ths-accent-light);
	transform: translateX(-2px);
}
.ths-mini-header-back i { font-size: 1.05rem; }

/* ----- Contact Hero ----- */
.ths-section--contact-hero {
	position: relative;
	background:
		radial-gradient(ellipse 70% 55% at 50% 0%, rgba(51, 136, 238, 0.18) 0%, transparent 65%),
		radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 85, 204, 0.10) 0%, transparent 65%),
		linear-gradient(180deg, var(--ths-dark) 0%, var(--ths-dark-mid) 100%);
	color: var(--ths-text);
	padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
	text-align: center;
	overflow: hidden;
}
.ths-contact-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(51, 136, 238, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(51, 136, 238, 0.06) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 90%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 90%);
}
.ths-section--contact-hero .ths-container {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}
.ths-section--contact-hero .ths-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: "Outfit", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ths-accent-light);
	margin-bottom: 28px;
}
.ths-section--contact-hero .ths-eyebrow span {
	padding: 4px 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 0.75rem;
}
.ths-section--contact-hero .ths-headline {
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: 0.04em;
	color: var(--ths-text);
	margin: 0 0 32px;
	text-align: center;
}
.ths-section--contact-hero .ths-headline-accent {
	color: var(--ths-accent-light);
	background: linear-gradient(transparent 60%, rgba(51, 136, 238, 0.25) 60%);
	padding: 0 6px;
}
.ths-section--contact-hero .ths-lead {
	font-size: clamp(1rem, 1.25vw, 1.18rem);
	line-height: 2;
	color: var(--ths-text-sub);
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

/* ----- Contact Main Section ----- */
.ths-section--contact-main {
	background:
		radial-gradient(ellipse 70% 55% at 50% 0%, rgba(51, 136, 238, 0.12) 0%, transparent 65%),
		linear-gradient(180deg, #fafcff 0%, #eef3fb 100%);
	color: var(--ths-text-dark);
	padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
}
.ths-section--contact-main .ths-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ----- Floating Home Button (FAB) ----- */
.ths-home-fab {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px 14px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ths-accent) 0%, var(--ths-accent-light) 100%);
	color: #ffffff !important;
	text-decoration: none !important;
	font-family: "Outfit", "Noto Sans JP", sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	box-shadow:
		0 12px 30px rgba(0, 85, 204, 0.4),
		0 0 0 4px rgba(255, 255, 255, 0.9);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.ths-home-fab i {
	font-size: 1.1rem;
	line-height: 1;
}
.ths-home-fab:hover,
.ths-home-fab:focus,
.ths-home-fab:active {
	transform: translateY(-3px);
	color: #ffffff !important;
	background: linear-gradient(135deg, #4ea3ff 0%, #7fc3ff 100%);
	box-shadow:
		0 18px 40px rgba(78, 163, 255, 0.5),
		0 0 0 4px rgba(255, 255, 255, 0.95),
		0 0 0 6px rgba(78, 163, 255, 0.35);
	text-decoration: none !important;
}

/* ----- Privacy Policy Notice (clean & elegant) ----- */
.ths-privacy-notice {
	max-width: 720px;
	margin: 0 auto 64px;
	padding: 24px 32px;
	display: flex;
	align-items: center;
	gap: 18px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(15, 30, 70, 0.05);
}
.ths-privacy-notice-icon {
	flex-shrink: 0;
	font-size: 1.6rem;
	color: var(--ths-accent);
	line-height: 1;
}
.ths-privacy-notice-text {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.85;
	color: var(--ths-text-dark);
	letter-spacing: 0.03em;
	font-weight: 500;
}
.ths-privacy-notice-link {
	color: var(--ths-accent);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(51, 136, 238, 0.35);
	text-underline-offset: 4px;
	text-decoration-thickness: 1.5px;
	transition: text-decoration-color 0.3s, color 0.3s;
}
.ths-privacy-notice-link:hover {
	color: var(--ths-accent-light);
	text-decoration-color: var(--ths-accent-light);
}

/* ----- Contact Form Wrapper ----- */
.ths-contact-form-wrap {
	max-width: 880px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid rgba(0, 30, 90, 0.08);
	border-radius: 20px;
	box-shadow: 0 16px 50px rgba(15, 30, 70, 0.08);
	overflow: hidden;
}
.ths-contact-form-header {
	background: linear-gradient(135deg, var(--ths-accent) 0%, var(--ths-accent-light) 100%);
	color: #ffffff;
	padding: 32px 40px;
	text-align: center;
}
.ths-contact-form-title {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: clamp(1.3rem, 1.8vw, 1.6rem);
	font-weight: 800;
	letter-spacing: 0.05em;
	color: #ffffff;
	margin: 0 0 8px;
}
.ths-contact-form-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-family: "Outfit", sans-serif;
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.ths-contact-form-desc {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.04em;
}
.ths-contact-form-body {
	padding: 40px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	color: var(--ths-text-dark);
}

/* WP Forms / Contact Form 7 / standard forms styling */
.ths-contact-form-body input[type="text"],
.ths-contact-form-body input[type="email"],
.ths-contact-form-body input[type="tel"],
.ths-contact-form-body input[type="url"],
.ths-contact-form-body input[type="number"],
.ths-contact-form-body input[type="date"],
.ths-contact-form-body input[type="search"],
.ths-contact-form-body select,
.ths-contact-form-body textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(0, 30, 90, 0.15);
	border-radius: 10px;
	background: #fafcff;
	font-family: inherit;
	font-size: 1rem;
	color: var(--ths-text-dark);
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
	box-sizing: border-box;
}
.ths-contact-form-body input:focus,
.ths-contact-form-body select:focus,
.ths-contact-form-body textarea:focus {
	outline: none;
	border-color: var(--ths-accent);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(51, 136, 238, 0.12);
}
.ths-contact-form-body textarea {
	min-height: 160px;
	resize: vertical;
	line-height: 1.7;
}
.ths-contact-form-body label {
	display: block;
	font-weight: 700;
	color: var(--ths-text-dark);
	margin-bottom: 8px;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
}
.ths-contact-form-body p {
	margin: 0 0 20px;
}

/* Submit button */
.ths-contact-form-body input[type="submit"],
.ths-contact-form-body button[type="submit"],
.ths-contact-form-body .wpcf7-submit,
.ths-contact-form-body button.btn,
.ths-contact-form-body a.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 56px;
	min-width: 260px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ths-accent) 0%, var(--ths-accent-light) 100%) !important;
	color: #ffffff !important;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	cursor: pointer;
	box-shadow: 0 12px 32px rgba(0, 85, 204, 0.3);
	transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.ths-contact-form-body input[type="submit"]:hover,
.ths-contact-form-body button[type="submit"]:hover,
.ths-contact-form-body .wpcf7-submit:hover {
	transform: translateY(-3px);
	background: linear-gradient(135deg, #4ea3ff 0%, #7fc3ff 100%) !important;
	box-shadow: 0 18px 44px rgba(78, 163, 255, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.95), 0 0 0 6px rgba(78, 163, 255, 0.3);
	color: #ffffff !important;
}
.ths-contact-form-body input[type="submit"]:active,
.ths-contact-form-body button[type="submit"]:active {
	transform: translateY(-1px);
}

/* CF7 specific tweaks */
.ths-contact-form-body .wpcf7-form .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-radius: 10px;
	border: 1px solid rgba(0, 85, 204, 0.2);
	background: rgba(51, 136, 238, 0.05);
	color: var(--ths-text-dark);
}
.ths-contact-form-body .wpcf7-form.invalid .wpcf7-response-output {
	border-color: rgba(220, 53, 69, 0.4);
	background: rgba(220, 53, 69, 0.06);
}
.ths-contact-form-body .wpcf7-not-valid-tip {
	color: #d93055;
	font-size: 0.85rem;
	margin-top: 6px;
	font-weight: 600;
}

/* Tables in form (used by some plugins) */
.ths-contact-form-body table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}
.ths-contact-form-body table th,
.ths-contact-form-body table td {
	padding: 12px 8px;
	border-bottom: 1px solid rgba(0, 30, 90, 0.08);
	text-align: left;
	vertical-align: top;
}
.ths-contact-form-body table th {
	color: var(--ths-text-dark);
	font-weight: 700;
	width: 30%;
	min-width: 120px;
}

/* ----- the_content 見出し・本文（お問合せに際して 等） ----- */
.ths-contact-form-body h1,
.ths-contact-form-body h2 {
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 800;
	color: var(--ths-text-dark);
	letter-spacing: 0.04em;
	margin: 0 0 22px;
	padding-bottom: 14px;
	border-bottom: 2px solid rgba(51, 136, 238, 0.25);
}
.ths-contact-form-body .wp-block-group,
.ths-contact-form-body .wp-block-group__inner-container,
.ths-contact-form-body .wp-block-columns,
.ths-contact-form-body .wp-block-column { display: block; width: 100%; }
/* カード内では幅広(alignwide)/全幅(alignfull)のマイナスマージンを無効化 */
.ths-contact-form-body .alignwide,
.ths-contact-form-body .alignfull {
	margin-left: auto !important;
	margin-right: auto !important;
	width: auto !important;
	max-width: 100% !important;
	left: auto !important;
}
.ths-contact-form-body p {
	color: var(--ths-text-dark-sub);
	line-height: 1.9;
	font-size: 0.97rem;
}
.ths-contact-form-body a {
	color: var(--ths-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(51, 136, 238, 0.4);
}
.ths-contact-form-body a:hover { color: var(--ths-accent-light); }
.ths-contact-form-body mark {
	display: block;
	background: rgba(51, 136, 238, 0.07);
	color: var(--ths-text-dark-sub);
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.88rem;
	line-height: 1.8;
	margin-top: 12px;
}

/* ----- CF7 フォーム（dl レイアウト） ----- */
.ths-contact-form-body dl.contact7 {
	margin: 30px 0 0;
	display: block;
}
.ths-contact-form-body dl.contact7 dt {
	margin: 22px 0 8px;
	font-weight: 700;
	color: var(--ths-text-dark);
	font-size: 0.98rem;
	letter-spacing: 0.03em;
}
.ths-contact-form-body dl.contact7 dt:first-of-type { margin-top: 0; }
.ths-contact-form-body dl.contact7 dt p { margin: 0; color: var(--ths-text-dark); font-size: inherit; }
.ths-contact-form-body dl.contact7 dd { margin: 0; }
.ths-contact-form-body dl.contact7 dd p { margin: 0; }

/* 必須バッジ */
.ths-contact-form-body .must {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #ffffff;
	background: #e0457b;
	border-radius: 5px;
	letter-spacing: 0.02em;
	vertical-align: 2px;
}

/* 同意チェック・送信ボタンは中央寄せ */
.ths-contact-form-body .wpcf7-form > p { text-align: center; margin-top: 28px; }
.ths-contact-form-body .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.ths-contact-form-body .wpcf7-acceptance label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: var(--ths-text-dark);
	cursor: pointer;
	font-size: 0.95rem;
}
.ths-contact-form-body input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--ths-accent);
	cursor: pointer;
}
.ths-contact-form-body .wpcf7-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
	.ths-mini-header { padding: 14px 18px; }
	.ths-mini-header-brand-name { font-size: 1rem; }
	.ths-mini-header-back { padding: 8px 14px; font-size: 0.82rem; }
	.ths-mini-header-back span { display: none; }
	.ths-section--contact-hero .ths-headline br { display: none; }
	.ths-section--contact-hero .ths-lead br { display: none; }
	.ths-home-fab {
		left: 14px;
		bottom: 14px;
		padding: 12px 16px 12px 14px;
		font-size: 0.78rem;
	}
	.ths-home-fab i { font-size: 1rem; }
	.ths-home-fab .ths-home-fab-label { display: none; }
	.ths-privacy-notice {
		padding: 18px 20px;
		gap: 14px;
		align-items: flex-start;
	}
	.ths-privacy-notice-icon { font-size: 1.4rem; margin-top: 4px; }
	.ths-privacy-notice-text { font-size: 0.92rem; }
	.ths-privacy-notice-br { display: none; }
	.ths-contact-form-header { padding: 24px 22px; }
	.ths-contact-form-body { padding: 26px 22px; }
	.ths-contact-form-body input[type="submit"],
	.ths-contact-form-body button[type="submit"] { width: 100%; min-width: 0; padding: 14px 24px; }
	.ths-contact-form-body table th,
	.ths-contact-form-body table td { display: block; width: 100%; border: none; padding: 8px 0; }
	.ths-contact-form-body table th { padding-top: 14px; }
}
