/* Styles shared by the corporate and recruitment sites. */
:root {
	--marutatsu-ink: #18312c;
	--marutatsu-muted: #68736f;
	--marutatsu-line: #dfe7e3;
	--marutatsu-surface: #f5f8f6;
	--marutatsu-accent: #167b65;
	--marutatsu-white: #fff;
	--marutatsu-width: 1120px;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--marutatsu-ink);
	background: var(--marutatsu-white);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
	line-height: 1.75;
}

a {
	color: inherit;
}

/* aタグはブラウザ標準でポインターカーソルになるが、<button>要素は標準だと
 * カーソルが変わらないため、全ページ共通でボタンにポインターカーソルを付ける。 */
button:not(:disabled) {
	cursor: pointer;
}

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

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

.screen-reader-text:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--marutatsu-white);
}

.site-header,
.site-footer {
	border-color: var(--marutatsu-line);
	border-style: solid;
}

.site-header {
	position: relative;
	z-index: 10;
	border-width: 0 0 1px;
	background: rgba(255, 255, 255, 0.96);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.page-shell {
	width: min(calc(100% - 40px), var(--marutatsu-width));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.site-branding {
	display: inline-flex;
	align-items: center;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 48px;
}

.site-navigation ul {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-navigation a {
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.menu-toggle {
	display: none;
	padding: 9px 14px;
	border: 1px solid var(--marutatsu-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
}

.site-main,
.page-shell {
	padding-block: 72px 96px;
}

.page-header {
	margin-bottom: 40px;
}

.page-title {
	margin: 0;
	font-size: clamp(2rem, 6vw, 4.5rem);
	line-height: 1.15;
}

.entry-content > * {
	max-width: 760px;
}

.entry-content > .alignwide {
	max-width: var(--marutatsu-width);
}

.entry-content > .alignfull {
	max-width: none;
}

.site-footer {
	border-width: 1px 0 0;
	background: var(--marutatsu-surface);
}

.site-footer__inner {
	display: flex;
	min-height: 120px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-footer p {
	margin: 0;
}

@media (max-width: 760px) {
	.menu-toggle {
		display: inline-flex;
	}

	.site-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		padding: 20px;
		border-bottom: 1px solid var(--marutatsu-line);
		background: var(--marutatsu-white);
	}

	.site-navigation:not(.is-open) {
		display: none;
	}

	.site-navigation ul {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
	}
}

/* ===== コーポレート用デザイントークン（ヘッダー/フッター/HOMEで共用） ===== */
:root {
	--mt-navy: #0d3061;
	--mt-navy-deep: #1a355c;
	--mt-ink: #333;
	--mt-beige: #f7f5eb;
	--mt-beige-line: #eeead8;
	--mt-blue: #4c9ec7;
	--mt-green: #8ed681;
	--mt-line: #e9e9e9;
	--mt-canvas: 1440px;
}
