/*
Theme Name: MedicalX LP（MedicalX 医師求人紹介LP）
Description: 株式会社MedicalX 精神科医師求人紹介（常勤・非常勤）ランディングページのWordPressテーマ。tokushikai-lp（v1.3.5）をベースに、人材紹介業向けの表記・本文に変更したものです。
Author: 株式会社MedicalX
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medicalx-lp
*/

body {
	margin: 0;
	background: #E9ECF0;
	font-family: 'Noto Sans JP', sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* CTA → フォーム先頭へのスクロール */
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.tk-wrap {
	box-shadow: 0 0 30px rgba(16, 30, 56, 0.12);
}

details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

/*
 * PC表示ではLP全体を拡大表示する（スマホはそのまま）。
 * 幅を調整したい場合はこの倍率（1.25）を変更してください。
 * 例: 1.25 → 640px x 1.25 = 約800px幅で表示
 */
@media (min-width: 768px) {
	.tk-wrap,
	.tk-fixedbar,
	.tk-fixedbar-spacer {
		zoom: 1.25;
	}
}

/* ===== 装飾 ===== */

/* アイブロウ（小見出し）の金ライン */
.tk-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
}
.tk-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	flex-shrink: 0;
	background: #F0C557;
}

/* 年収ボックス: 上部の金ライン */
.tk-salary-box {
	position: relative;
	overflow: hidden;
}
.tk-salary-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #F0C557;
}

/*
 * スマホ幅: 年収表記を1行に収める
 * （インラインstyleを上書きするため!important使用）
 */
@media (max-width: 479px) {
	.tk-salary-line {
		flex-wrap: nowrap !important;
		gap: 4px !important;
		white-space: nowrap;
	}
	.tk-salary-num {
		font-size: min(26px, 7vw) !important;
	}
	.tk-salary-unit {
		font-size: min(12px, 3.2vw) !important;
	}
	.tk-salary-label {
		font-size: min(14px, 3.8vw) !important;
	}
	.tk-salary-tilde {
		font-size: min(16px, 4.3vw) !important;
	}
	/* 特徴チップ: 1行に2つずつ収まるサイズに */
	.tk-fv-tags span {
		font-size: 10.5px !important;
		padding: 4px 10px !important;
	}
}

/* CTAボタン: シャイン（光が流れる） */
.tk-btn-shine {
	position: relative;
	overflow: hidden;
}
.tk-btn-shine::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -75%;
	width: 50%;
	transform: skewX(-20deg);
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
	animation: tk-shine 3.2s ease-in-out infinite;
}
@keyframes tk-shine {
	0% { left: -75%; }
	55% { left: 125%; }
	100% { left: 125%; }
}

/* セクション見出しのアクセントバー */
.tk-h2 {
	position: relative;
	padding-top: 14px;
}
.tk-h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 36px;
	height: 3px;
	background: #1B3A6B;
}
.tk-h2--gold::before {
	background: #F0C557;
}

/* カード共通 */
.tk-card {
	background: #fff;
	border: 1px solid #EDF1F6;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 30, 56, 0.03), 0 10px 26px rgba(16, 30, 56, 0.06);
}

/* 強調カード: 年収ボックスと同じ金のトップライン */
.tk-card--feature {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #FFFEF9 0%, #FFFFFF 55%);
	border: 1px solid #E9DFC4;
	border-radius: 14px;
	box-shadow: 0 2px 4px rgba(16, 30, 56, 0.04), 0 14px 32px rgba(27, 58, 107, 0.10);
}
.tk-card--feature::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #B08A2E 0%, #F0C557 70%, #F6DE9A 100%);
}

/* カード内の番号見出し（根拠 / REASON） */
.tk-cardnum {
	display: flex;
	align-items: baseline;
	gap: 9px;
	margin-bottom: 12px;
}
.tk-cardnum-num {
	font-family: 'Noto Serif JP', serif;
	font-size: 27px;
	font-weight: 900;
	line-height: 1;
	color: #B08A2E;
	letter-spacing: 0.02em;
}
.tk-cardnum-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.24em;
	color: #6B7A94;
}
.tk-cardnum::after {
	content: "";
	flex: 1;
	height: 1px;
	align-self: center;
	margin-top: 6px;
	background: linear-gradient(90deg, rgba(227, 197, 103, 0.9) 0%, rgba(227, 197, 103, 0) 100%);
}

/* 根拠02: 成果→報酬のフロー図 */
.tk-flow {
	display: flex;
	align-items: stretch;
	gap: 8px;
}
.tk-flow-box {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #EEF3FA;
	border-radius: 10px;
	padding: 14px 10px;
}
.tk-flow-sign {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #1B3A6B;
	font-weight: 900;
}

/* FV: 小型スマホでも就職祝い金バナーがファーストビューに入るよう圧縮 */
@media (max-width: 479px) {
	.tk-fv-photo {
		height: min(24vw, 110px) !important;
		object-fit: cover;
		object-position: center 32%;
	}
	.tk-fv-lead {
		font-size: 12.5px !important;
		line-height: 1.75 !important;
		margin-bottom: 12px !important;
	}
	.tk-eyebrow {
		margin-bottom: 8px !important;
	}
	h1 {
		font-size: min(23px, 6vw) !important;
		margin-bottom: 10px !important;
	}
}
/* さらに背の低い端末(iPhone SE等)ではリード文を省略気味に */
@media (max-width: 479px) and (max-height: 700px) {
	.tk-fv-photo {
		height: 80px !important;
	}
	.tk-fv-lead {
		display: none !important;
	}
	.tk-fv-tags {
		margin-bottom: 14px !important;
	}
}

/* スマホ幅では縦並びにして折り返しを防ぐ */
@media (max-width: 479px) {
	.tk-flow {
		flex-direction: column;
		gap: 6px;
	}
	.tk-flow-box {
		padding: 12px 10px;
	}
	.tk-flow-box br {
		display: none;
	}
	.tk-flow-sign--arrow {
		transform: rotate(90deg);
	}
}

/* FAQ: 開閉マーク */
details.tk-faq summary {
	position: relative;
	padding-right: 30px;
}
details.tk-faq summary::after {
	content: "＋";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	font-weight: 900;
	color: #1B3A6B;
}
details.tk-faq[open] summary::after {
	content: "−";
}

/* 追従バー: すりガラス */
.tk-fixedbar {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* 固定ページ（プライバシーポリシー等）本文 */
.tk-page-body h2 {
	font-family: 'Noto Serif JP', serif;
	font-size: 17px;
	font-weight: 700;
	color: #16233C;
	line-height: 1.6;
	margin: 30px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #EEF3FA;
}

.tk-page-body h3 {
	font-size: 14px;
	font-weight: 700;
	color: #1B3A6B;
	margin: 20px 0 6px;
}

.tk-page-body p {
	font-size: 13px;
	line-height: 2;
	color: #4B5563;
	margin: 0 0 12px;
}

.tk-page-body ul {
	margin: 0 0 14px;
	padding-left: 20px;
}

.tk-page-body li {
	font-size: 13px;
	line-height: 1.9;
	color: #4B5563;
	margin-bottom: 4px;
}

/* ============================================================
 * ファーストビュー 一体型フォーム（Contact Form 7）
 * ============================================================ */
.tk-fv-form {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid #E3C567;
	border-radius: 14px;
	padding: 20px 18px 22px;
	margin: 0 0 16px;
	box-shadow: 0 8px 28px rgba(27, 58, 107, 0.12);
	scroll-margin-top: 16px;
}
.tk-fv-form::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #B08A2E 0%, #F0C557 70%, #F6DE9A 100%);
}
.tk-fv-form-head {
	margin-bottom: 16px;
}
.tk-fv-form-title {
	font-family: 'Noto Serif JP', serif;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.5;
	color: #16233C;
}
.tk-fv-form-title span {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 12px;
	color: #B08A2E;
}
.tk-fv-form-sub {
	margin-top: 4px;
	font-size: 11.5px;
	font-weight: 700;
	color: #6B7480;
}

/* 行・ラベル */
.tk-fv-form .tk-form-row {
	margin-bottom: 13px;
}
.tk-fv-form .tk-form-label {
	display: block;
	margin-bottom: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: #16233C;
}
.tk-fv-form .tk-form-req {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 6px;
	font-size: 10px;
	font-weight: 900;
	color: #fff;
	background: #C0392B;
	border-radius: 4px;
	vertical-align: 1px;
}
.tk-fv-form .tk-form-note {
	margin-left: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #9AA4B2;
}
.tk-fv-form .tk-form-unit {
	margin-left: 6px;
	font-size: 12.5px;
	font-weight: 700;
	color: #6B7480;
}

/* 入力欄 */
.tk-fv-form input[type="text"],
.tk-fv-form input[type="email"],
.tk-fv-form input[type="tel"],
.tk-fv-form input[type="number"],
.tk-fv-form select,
.tk-fv-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 16px; /* 16px未満だとiOSでフォーカス時に自動ズームするため */
	line-height: 1.5;
	color: #16233C;
	background: #F8FAFC;
	border: 1px solid #C3D0E0;
	border-radius: 8px;
	padding: 10px 12px;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tk-fv-form input[type="number"] {
	width: auto;
	max-width: 140px;
}
.tk-fv-form .tk-form-inline {
	display: flex;
	align-items: center;
	gap: 8px;
}
.tk-fv-form .tk-form-inline .wpcf7-form-control-wrap {
	display: inline-block;
}
.tk-fv-form textarea {
	min-height: 84px;
	resize: vertical;
}
.tk-fv-form input:focus,
.tk-fv-form select:focus,
.tk-fv-form textarea:focus {
	outline: none;
	background: #fff;
	border-color: #1B3A6B;
	box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}
.tk-fv-form select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231B3A6B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
}

/* チェックボックス群 */
.tk-fv-form .wpcf7-checkbox .wpcf7-list-item {
	display: inline-flex;
	align-items: center;
	margin: 4px 12px 0 0;
}
.tk-fv-form .wpcf7-checkbox .wpcf7-list-item-label {
	margin-left: 6px;
	font-size: 13px;
	color: #16233C;
}
.tk-fv-form input[type="checkbox"],
.tk-fv-form input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: #1B3A6B;
}

/* 同意チェック */
.tk-fv-form .tk-form-consent {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	background: #F3F6FA;
	border-radius: 8px;
	padding: 11px 12px;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.7;
	color: #4B5563;
}
.tk-fv-form .tk-form-consent .wpcf7-list-item {
	margin: 0;
}
.tk-fv-form .tk-form-consent a {
	color: #1B3A6B;
	text-decoration: underline;
}

/* 送信ボタン */
.tk-fv-form .tk-form-submit {
	width: 100%;
	height: 56px;
	margin-top: 8px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 900;
	color: #fff;
	background: #1B3A6B;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(27, 58, 107, 0.35);
	transition: filter 0.15s;
}
.tk-fv-form .tk-form-submit:hover {
	filter: brightness(1.1);
}
.tk-fv-form .tk-form-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

/* CF7 バリデーション・応答表示 */
.tk-fv-form .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 11.5px;
	font-weight: 700;
	color: #C0392B;
}
.tk-fv-form .wpcf7-form-control-wrap {
	display: block;
}
.tk-fv-form .wpcf7 form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	line-height: 1.7;
	color: #16233C; /* S8はダーク背景で文字色が白に継承されるため、明示的に指定（白文字が白いフォームカードに溶けて見えなくなる不具合の対策） */
	background: #F3F6FA;
}
.tk-fv-form .wpcf7-form.sent .wpcf7-response-output {
	background: #EAF7EE;
	border-color: #46b450 !important;
}
.tk-fv-form .wpcf7-form.failed .wpcf7-response-output,
.tk-fv-form .wpcf7-form.spam .wpcf7-response-output,
.tk-fv-form .wpcf7-form.aborted .wpcf7-response-output {
	background: #FDECEA;
	border-color: #C0392B !important;
}
.tk-fv-form .wpcf7-spinner {
	margin: 10px auto 0;
}
