/**
 * Make Japan Home design foundation.
 * Quiet confidence: deep navy, warm ivory and a restrained Japanese-red accent.
 */

:root {
	/*
	 * theme.json is the source of truth for shared design tokens. WordPress
	 * exposes them in #global-styles-inline-css as --wp--preset--* variables.
	 * The literal fallbacks keep the child theme usable while that stylesheet
	 * is unavailable (for example, in a minimal preview).
	 */
	--mjh-color-primary: var(--wp--preset--color--mjh-navy, #1f3147);
	--mjh-color-primary-strong: var(--wp--preset--color--mjh-deep-navy, #142235);
	--mjh-color-accent: var(--wp--preset--color--japanese-red, #bc002d);
	--mjh-color-text: var(--wp--preset--color--charcoal, #20252b);
	--mjh-color-muted: #65707b;
	--mjh-color-background: var(--wp--preset--color--white, #ffffff);
	--mjh-color-ivory: var(--wp--preset--color--warm-ivory, #f6f2ea);
	--mjh-color-surface: var(--wp--preset--color--soft-gray, #f3f5f6);
	--mjh-color-border: #d9dee2;
	--mjh-font-display: var(--wp--preset--font-family--mjh-display, "Cinzel", Georgia, "Times New Roman", serif);
	--mjh-font-sans: var(--wp--preset--font-family--mjh-sans, "Noto Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif);
	--mjh-radius-sm: 0.25rem;
	--mjh-radius-md: 0.5rem;
	--mjh-content-wide: var(--wp--style--global--wide-size, 75rem);
	--mjh-page-gutter: 1.25rem;
	--mjh-space-section: clamp(4.5rem, 9vw, 8rem);
	--ark-color_main: var(--mjh-color-primary);
}

html {
	scroll-behavior: smooth;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

body {
	color: var(--mjh-color-text);
	background: var(--mjh-color-background);
	font-feature-settings: "palt";
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
#header {
	color: var(--mjh-color-primary-strong);
	font-family: var(--wp--preset--font-family--mjh-display, var(--mjh-font-display));
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.12;
}

h3,
h4,
h5,
h6 {
	color: var(--mjh-color-primary-strong);
	font-family: var(--wp--preset--font-family--mjh-sans, var(--mjh-font-sans));
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.18;
}

:lang(ja) h1,
:lang(ja) h2,
h1:lang(ja),
h2:lang(ja) {
	font-family: var(--mjh-font-sans);
	font-weight: 600;
	letter-spacing: -0.025em;
}

p {
	line-height: 1.85;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

::selection {
	color: #ffffff;
	background: var(--mjh-color-primary);
}

:focus-visible {
	outline: 3px solid var(--mjh-color-accent);
	outline-offset: 3px;
}

img {
	border-radius: var(--mjh-radius-sm);
}

.l-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgb(255 255 255 / 96%);
	border-bottom: 1px solid var(--mjh-color-border);
	backdrop-filter: blur(12px);
}

.admin-bar .l-header {
	top: 32px;
}

.l-header__body {
	min-height: 4.75rem;
}

.l-header a {
	text-decoration: none;
}

.l-header nav a {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.l-header nav a:hover,
.l-header nav .current-menu-item > a {
	color: var(--mjh-color-accent);
}

.l-footer {
	color: rgb(255 255 255 / 76%);
	background: var(--mjh-color-primary-strong);
	border-top: 3px solid var(--mjh-color-accent);
}

.l-footer a {
	color: #ffffff;
}

.c-pageTitle__main {
	font-family: var(--mjh-font-display);
	font-weight: 500;
	letter-spacing: 0.01em;
}

@media (max-width: 782px) {
	.admin-bar .l-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
