/*
 * ドカント テーマの CSS（レスポンシブ。768px 以上が PC の見た目）。
 * 旧サイトの色: 赤 #eb2f06（見出し・電話）、リンク #0457f2、線 #808080 / #ccc、薄いグレー #f6f6f6。
 * 旧サイトの CSS（reference/pc/css）は使わず、作り直している。
 * 今これを読むのは固定ページ・応募フォーム・完了・404 の本文だけ（ヘッダー・フッターとトップ・一覧・求人詳細は旧サイトの CSS。inc/top.php）。
 * ①のヘッダー・検索ナビ・パンくず・求人詳細・最近見た求人・フッターのスタイルは 2026-11-11 に削除した
 */

/* ============================================================ 基本 */
:root {
	--c-red: #eb2f06;
	--c-red-dark: #c42504;
	--c-link: #0457f2;
	--c-text: #222;
	--c-sub: #666;
	--c-line: #ccc;
	--c-line-dark: #808080;
	--c-bg: #f6f6f6;
	--c-line-app: #06c755;
	--c-apply: #ff7a00;
	--c-full: #079992;
	--c-part: #e55039;
	--c-temp: #a8907f;
	--c-cont: #c76aa6;
	--w-container: 1000px;
	--w-side: 230px;
	--radius: 4px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #fff;
	color: var(--c-text);
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

/* 旧サイトのヘッダー・フッター（.legacy-pc / .legacy-sp。template-parts/chrome/）には、ここの body の文字の設定を引き継がない */
.legacy-pc,
.legacy-sp {
	line-height: normal;
	overflow-wrap: normal;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--c-link);
}

h1,
h2,
h3,
p,
ul,
ol,
table {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

table {
	border-collapse: collapse;
	width: 100%;
}

summary {
	cursor: pointer;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.l-container {
	width: 100%;
	max-width: var(--w-container);
	margin: 0 auto;
	padding: 0 12px;
}

.l-narrow {
	max-width: 800px;
}

.button {
	display: inline-block;
	padding: 10px 24px;
	border-radius: var(--radius);
	background: var(--c-red);
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}

/* 表の箱（応募フォームの上の求人の表。①の求人詳細の残り） */
.job-box__title {
	position: relative;
	padding: 6px 10px;
	border-top: 6px solid var(--c-red);
	border-left: 6px solid var(--c-red);
	border-right: 1px solid var(--c-line-dark);
	font-size: 18px;
	line-height: 1.4;
}

.job-table {
	border: 1px solid var(--c-line-dark);
}

.job-table th,
.job-table td {
	display: block;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.job-table th {
	background: var(--c-bg);
	font-size: 14px;
	white-space: nowrap;
}

.job-table tr + tr th {
	border-top: 1px solid var(--c-line);
}

/* ============================================================ 応募フォーム */
.apply {
	padding-bottom: 40px;
}

/*
 * 応募フォームの上の求人（旧サイトの応募ページに合わせる。2026-11-06 ユーザー指示）
 *   スマホ: 赤い帯に求人名 → エリア／業種 → 画像 → 表（旧 sp の .detail_h1Box・.list_area_category_input・.large_img・.info01）
 *   PC（960px〜）: 赤い枠。キャッチ（薄いオレンジの帯）→ 求人名 → 左に画像・右に表（旧 pc の section.keep_list）
 */
.apply-job {
	margin: 8px 0 0;
	background: #fff;
}

.apply-job__catch {
	display: none;
}

.apply-job__name {
	display: flex;
	align-items: center;
	min-height: 40px;
	margin: 0 0 5px;
	padding: 0 10px;
	background: #ff0000;
	color: #fff;
	font-size: 11px;
	line-height: 15px;
}

.apply-job__name a {
	color: inherit;
	text-decoration: none;
}

.apply-job__area {
	padding: 0 10px 10px;
	font-size: 10px;
}

.apply-job__body {
	display: block;
}

.apply-job__image {
	margin-bottom: 10px;
}

.apply-job__image img {
	width: 100%;
	height: auto;
}

.apply-job .job-table {
	width: 100%;
	border: 0;
	background: #fff;
}

.apply-job .job-table th,
.apply-job .job-table td {
	display: table-cell;
	padding: 8px;
	border: 1px solid #9f9f9f;
	vertical-align: middle;
	white-space: normal;
}

.apply-job .job-table th {
	width: 70px;
	padding-right: 2px;
	padding-left: 2px;
	background: #e6e6e6;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
}

.apply-job .job-table td {
	font-size: 13px;
}

@media (min-width: 960px) {
	.apply-job {
		margin-bottom: 30px;
		border: 1px solid #ff0000;
	}

	.apply-job__catch {
		display: block;
		padding: 10px 20px;
		background: #fff0e7;
		color: #000;
		font-size: 18px;
		font-weight: bold;
	}

	.apply-job__name {
		display: block;
		min-height: 0;
		margin: 10px 20px;
		padding: 0;
		background: none;
		color: #000;
		font-size: 16px;
		font-weight: normal;
		line-height: 1.5;
	}

	.apply-job__area {
		display: none;
	}

	.apply-job__body {
		display: flex;
		justify-content: space-between;
		gap: 18px;
		margin: 0 20px 20px;
	}

	.apply-job__image {
		flex: 0 0 282px;
		margin: 0;
	}

	.apply-job .job-table {
		flex: 1;
		border: 1px solid #a4a3a3;
	}

	.apply-job .job-table th,
	.apply-job .job-table td {
		padding: 15px;
		border: 1px solid #a4a3a3;
		font-size: 14px;
	}

	.apply-job .job-table th {
		width: 160px;
		padding: 15px 0;
	}
}

.apply-form {
	margin-top: 24px;
}

.apply-form > p {
	margin: 10px 0;
}

/* Contact Form 7（フォームの中身は CF7 の管理画面で組む。table で組んでも、p で組んでも崩れないように） */
.wpcf7 table th,
.wpcf7 table td {
	display: block;
	padding: 6px 0;
	text-align: left;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px;
	border: 1px solid #aaa;
	border-radius: var(--radius);
	font: inherit;
	font-size: 16px;
}

.wpcf7 textarea {
	height: 8em;
}

.wpcf7 input[type="submit"] {
	display: block;
	width: 100%;
	max-width: 360px;
	margin: 20px auto 0;
	padding: 14px;
	border: 0;
	border-radius: 6px;
	background: var(--c-apply);
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
}

.wpcf7 .required,
.wpcf7 .marker_red {
	color: var(--c-red);
	font-size: 12px;
}

.dokant-admin-notice {
	padding: 12px;
	border: 2px dashed var(--c-red);
	color: var(--c-red);
}

/* ============================================================ 完了・固定ページ・404 */
.complete,
main.page { /* body にも WordPress の class「page」が付くので main に限る */
	padding-top: 16px;
	padding-bottom: 48px;
}

.complete__title,
.page__title {
	margin-bottom: 16px;
	padding-bottom: 6px;
	border-bottom: 3px solid var(--c-red);
	font-size: 22px;
}

.complete p,
.page__content p {
	margin-bottom: 1em;
}

/* 固定ページの本文（管理画面の本文。tools/pages/*.html から取り込んだもの） */
.page__content h2 {
	margin: 32px 0 12px;
	padding: 6px 10px;
	border-left: 5px solid var(--c-red);
	background: var(--c-bg);
	font-size: 17px;
}

.page__content h2:first-child {
	margin-top: 0;
}

.page__content h3 {
	margin: 24px 0 8px;
	font-size: 16px;
}

.page__content a:not(.button):not(.page-button) {
	color: var(--c-link);
}

.page__content img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.page__content ol,
.page__content ul {
	margin: 0 0 1em;
	padding-left: 1.6em;
	list-style: disc;
}

.page__content ol {
	list-style: decimal;
}

.page__content li {
	margin-bottom: 0.8em;
}

.page__content dl {
	margin: 0 0 1.5em;
}

.page__content dt {
	margin-top: 16px;
	padding-bottom: 2px;
	border-bottom: 1px dotted var(--c-line);
	font-weight: bold;
}

.page__content dd {
	margin: 6px 0 0;
}

.page__content table {
	width: 100%;
	margin-bottom: 1.5em;
	border-collapse: collapse;
}

.page__content th,
.page__content td {
	padding: 10px 12px;
	border: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}

.page__content th {
	width: 32%;
	background: var(--c-bg);
	font-weight: normal;
}

.page__content .page-center {
	text-align: center;
}

.page__content .page-date {
	text-align: right;
	color: var(--c-sub);
}

.page__content .page-button {
	display: inline-block;
	padding: 10px 28px;
	border-radius: var(--radius);
	background: var(--c-red);
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}

.page__content .page-button:hover {
	background: var(--c-red-dark);
}

/* 求人募集掲載の料金資料（画像のリンク）・LINE の登録手順（画像＋説明） */
.page__content .page-media,
.page__content .page-steps {
	display: grid;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.page__content .page-media {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.page__content .page-steps {
	grid-template-columns: repeat(4, 1fr);
	text-align: center;
	font-size: 13px;
}

.page__content .page-media li,
.page__content .page-steps li {
	margin: 0;
}

.page__content .page-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 24px;
	margin-bottom: 1em;
	padding: 16px;
	background: #00b900; /* 旧サイトの LINE ページと同じ（画像の白い文字が見えるように） */
	text-align: center;
}

.page__content .page-line p {
	margin: 0;
}

.page__content .page-line p + p {
	padding: 10px 14px;
	border-radius: 8px;
	background: #fff;
	color: #00b900;
	font-weight: bold;
}

.page__content .page-line p:last-child img {
	width: 140px;
}

@media (max-width: 599px) {
	.page__content .page-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.page__content th {
		width: 38%;
	}
}

.complete__job {
	font-size: 18px;
	font-weight: bold;
}

.complete__back {
	margin-top: 24px;
	text-align: center;
}

@media (min-width: 768px) {
	body {
		font-size: 14px;
	}

	.l-container {
		padding: 0 16px;
	}

	.job-table th,
	.job-table td {
		display: table-cell;
		padding: 10px 14px;
		border-top: 1px solid var(--c-line);
	}

	.job-table tr:first-child th,
	.job-table tr:first-child td {
		border-top: 0;
	}

	.job-table th {
		width: 150px;
		border-right: 1px solid var(--c-line);
	}

	.wpcf7 table th,
	.wpcf7 table td {
		display: table-cell;
		padding: 10px;
		border-bottom: 1px solid var(--c-line);
	}

	.wpcf7 table th {
		width: 180px;
		background: var(--c-bg);
	}
}
