/*
Theme Name: hx-original
Description: 人材不足解消の窓口の独自WordPressテーマ
Version: 0.4.0
Text Domain: hx-original
*/

:root {
	--blue: #21517f;
	--light-blue: #5082ad;
	--link: #075094;
	--red: #ce3e3e;
	--ink: #333;
	--site-width: 1180px;
	--content-width: 990px;
	--gutter: 24px;
	--group-gap: 24px;
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: .04em;
}

h1, h2, p, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--link); }
:focus-visible { outline: 2px solid var(--light-blue); outline-offset: 4px; }
[id] { scroll-margin-top: 16px; }

.site-width, .content-width {
	width: min(var(--width), calc(100% - 2 * var(--gutter)));
	margin-inline: auto;
}

.site-width { --width: var(--site-width); }
.content-width { --width: var(--content-width); }

.skip-link {
	position: fixed;
	z-index: 5;
	inset: 10px auto auto 10px;
	padding: 8px 14px;
	transform: translateY(-150%);
	background: #fff;
	color: var(--link);
}

.skip-link:focus { transform: none; }

.header-tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	min-height: 34px;
	font-size: 13px;
}

.header-tools a, .nav-list a, .mobile-privacy, .footer-nav a { text-decoration: none; }

.header-phone { font-size: 18px; }

.header-phone::before, .contact-phone::before {
	content: "☎";
	margin-inline-end: .35em;
	font-size: .82em;
}

.social-link { padding-inline: 4px; font-weight: 700; }

.header-main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--group-gap);
	min-height: 85px;
}

.site-logo { display: block; width: 300px; max-width: 58%; }
.mobile-menu { display: none; }

.nav-list, .footer-nav ul, .company-links {
	list-style: none;
	padding: 0;
}

.nav-list { display: flex; align-items: center; }

.nav-list li + li { border-inline-start: 1px solid #aaa; }

.nav-list a {
	display: block;
	padding-inline: 16px;
	text-align: center;
	font-size: 14px;
	line-height: 1.16;
}

.nav-list li:last-child a { padding-inline-end: 0; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--light-blue); }

.nav-list small {
	display: block;
	font-size: 11px;
	letter-spacing: .05em;
}

.company { padding-block: 162px 48px; }

.page-title {
	margin-block-end: 72px;
	border-block-end: 2px solid var(--light-blue);
	padding-block-end: 28px;
	font-size: 34px;
	line-height: 1.4;
}

.company-table {
	width: calc(100% - 16px);
	margin-inline: auto;
	border-collapse: collapse;
	text-align: left;
}

.company-table th,
.company-table td {
	padding: 24px 12px;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.company-table th {
	width: 25%;
	border-block-end: 1px solid var(--light-blue);
	font-weight: 700;
}

.company-table td { border-block-end: 1px solid #777; }
.company-address { display: flex; flex-wrap: wrap; column-gap: 1em; }
.company-links a { color: var(--link); text-decoration: none; }
.company-links a:hover, .footer-nav a:hover { text-decoration: underline; }

.company-map {
	display: block;
	width: min(100%, 500px);
	height: auto;
	aspect-ratio: 5 / 3;
	margin: 24px auto 0;
	border: 0;
}

.map-placeholder {
	display: grid;
	place-items: center;
	padding: 16px;
	border: 1px solid #e4e8ec;
	background: #f7f9fa;
	color: #56616b;
	font-size: 14px;
	text-align: center;
}

.contact-band {
	background: var(--blue);
	color: #fff;
	text-align: center;
	padding-block: 60px;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--group-gap);
}

.contact-grid h2 { margin-block-end: 14px; font-size: 21px; }
.contact-hours, .contact-intro, .contact-note { font-size: 14px; }
.contact-hours { margin-block-start: 20px; }
.contact-note { margin-block-start: 12px; }

.contact-phone {
	display: inline-block;
	margin-block-start: 2px;
	color: inherit;
	text-decoration: none;
	font-size: 30px;
	font-weight: 700;
}

.contact-phone:hover { color: #fff; text-decoration: underline; }

.contact-button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: min(100%, 318px);
	min-height: 60px;
	margin-block-start: 4px;
	border: 2px solid var(--red);
	border-radius: 40px;
	padding: 10px 26px;
	background: #fff;
	color: var(--red);
	text-decoration: none;
	font-weight: 700;
}

.contact-button:hover { color: var(--red); text-decoration: underline; }
.contact-button span { font-size: 22px; line-height: 1; }

.site-footer { padding-block: 92px 36px; font-size: 14px; }

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr);
	gap: clamp(20px, 4vw, 65px);
	align-items: center;
}

.footer-logo { width: 200px; margin-block-end: 12px; }
.footer-group { display: flex; align-items: center; gap: var(--group-gap); }
.footer-group img { width: 75px; flex: 0 0 auto; }
.footer-group p { font-size: 13px; }

.copyright {
	display: block;
	margin-block-start: 75px;
	text-align: center;
	font-size: 11px;
}

.floating-contact {
	position: fixed;
	z-index: 2;
	inset: 30% 0 auto auto;
	width: 55px;
	font-size: 14px;
}

.floating-contact a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 53px;
	padding: 12px 8px;
	background: var(--blue);
	color: #fff;
	text-decoration: none;
}

.floating-contact a:first-child { flex-direction: column; gap: 8px; }
.floating-contact a:last-child { background: #f96d73; }
.floating-contact a:hover { text-decoration: underline; }
.floating-contact :focus-visible { outline-offset: -4px; }
.floating-label { writing-mode: vertical-rl; }

.fallback-content { padding-block: 70px; }

@media (max-width: 767px) {
	:root { --gutter: 16px; }
	.header-tools, .desktop-nav, .floating-contact { display: none; }
	.header-main { min-height: 58px; justify-content: flex-start; gap: 12px; }
	.site-logo { width: 220px; max-width: calc(100% - 50px); }
	.mobile-menu { display: block; }

	.mobile-menu summary {
		display: grid;
		place-items: center;
		width: 36px;
		min-height: 44px;
		margin-inline-start: -5px;
		list-style: none;
		color: var(--blue);
		cursor: pointer;
	}

	.mobile-menu summary::-webkit-details-marker { display: none; }

	.menu-icon {
		display: block;
		width: 24px;
		height: 16px;
		border-block: 1px solid currentColor;
		background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
	}

	.mobile-nav {
		position: absolute;
		z-index: 3;
		inset: 100% calc(-1 * var(--gutter)) auto;
		max-height: calc(100dvh - 58px);
		overflow-y: auto;
		border-block: 1px solid #dbe4eb;
		padding: 12px var(--gutter);
		background: #fff;
		box-shadow: 0 8px 16px #21384c20;
	}

	.mobile-nav .nav-list { display: block; }
	.mobile-nav .nav-list li + li { border: 0; }

	.mobile-nav .nav-list a, .mobile-privacy {
		display: block;
		min-height: 44px;
		padding: 10px 0;
		text-align: start;
	}

	.mobile-contact {
		display: grid;
		gap: 4px;
		margin-block-start: 12px;
		border-block-start: 1px solid #dbe4eb;
		padding-block-start: 12px;
	}

	.company { padding-block: 138px 38px; }

	.page-title {
		margin-block-end: 78px;
		padding-block-end: 24px;
		font-size: 32px;
	}

	.company-table { width: 100%; }
	.company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; }
	.company-table tr { margin-inline: 24px; margin-block-end: 14px; }
	.company-table th { width: auto; padding: 6px 0 4px; font-size: 20px; }
	.company-table td { padding: 6px 0 10px; border: 0; }
	.company-address { flex-direction: column; }
	.company-map { margin-block-start: 16px; }
	.contact-band { padding-block: 44px; }
	.contact-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.contact-hours { margin-block-start: 0; }
	.site-footer { padding-block: 48px 24px; }
	.copyright { margin-block-start: 42px; }
}

@media (min-width: 768px) and (max-width: 1100px) {
	.company { width: calc(100% - 124px); }
}
