@charset "UTF-8";

:root {
	--color-brand: #ebc041;
	--color-ink: #211615;
	--color-text: #111;
	--color-muted: #f0f0f0;
	--color-white: #fff;
	--font-display: "Baumans", sans-serif;
	--font-body: "Noto Sans JP", sans-serif;
	--content-width: 75rem;
	--header-height: 5.125rem;
	--space-section: clamp(4rem, 10vw, 8rem);
	--focus-ring: 0 0 0 3px #fff, 0 0 0 6px #111;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--color-text);
	background: var(--color-white);
	font-family: var(--font-body);
	line-height: 1.7;
	overflow-wrap: anywhere;
}

body.has-open-panel {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

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

:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

[hidden] {
	display: none !important;
}

.c-skip-link {
	position: fixed;
	z-index: 1000;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.75rem 1rem;
	color: var(--color-white);
	background: var(--color-ink);
	transform: translateY(-150%);
}

.c-skip-link:focus {
	transform: translateY(0);
}

.l-container {
	width: min(calc(100% - 2rem), var(--content-width));
	margin-inline: auto;
}

.l-main {
	min-height: 60vh;
	padding-block: var(--space-section);
}

.l-header {
	position: relative;
	z-index: 100;
	border-top: 0.5rem solid var(--color-brand);
	background: var(--color-white);
}

.l-header__inner {
	display: grid;
	grid-template-columns: 4.5rem 1fr 4.5rem;
	align-items: center;
	min-height: var(--header-height);
	border-bottom: 0;
}

.c-site-branding {
	display: grid;
	place-items: center;
	min-width: 0;
}

.c-site-branding .custom-logo {
	display: block;
	width: auto;
	max-width: 4.25rem;
	max-height: 3.5rem;
}

.c-site-branding__name {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 5vw, 2rem);
	text-decoration: none;
}

.c-site-branding__name img {
	display: block;
	width: 3.8rem;
	height: auto;
}

.c-header-action {
	display: grid;
	place-items: center;
	align-self: stretch;
	min-width: 2.75rem;
	padding: 0.4rem;
	border: 0;
	color: var(--color-text);
	background: transparent;
	cursor: pointer;
}

.c-header-action__label {
	font-family: var(--font-display);
	font-size: 0.75rem;
	line-height: 1;
}

.c-header-action__icon {
	width: 1.45rem;
	height: 1.45rem;
	margin-bottom: 0.25rem;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.c-header-action__icon::after {
	display: block;
	width: 0.65rem;
	height: 2px;
	margin: 1.05rem 0 0 1rem;
	background: currentColor;
	content: "";
	transform: rotate(45deg);
	transform-origin: left center;
}

.c-menu-icon {
	display: grid;
	gap: 0.35rem;
	width: 1.85rem;
	margin-bottom: 0.35rem;
}

.c-menu-icon span {
	height: 2px;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.c-header-action[aria-expanded="true"] .c-menu-icon span:nth-child(1) {
	transform: translateY(0.45rem) rotate(45deg);
}

.c-header-action[aria-expanded="true"] .c-menu-icon span:nth-child(2) {
	opacity: 0;
}

.c-header-action[aria-expanded="true"] .c-menu-icon span:nth-child(3) {
	transform: translateY(-0.45rem) rotate(-45deg);
}

.c-search-panel,
.c-drawer {
	position: absolute;
	inset: 100% 0 auto;
	padding: 1rem;
	border-bottom: 1px solid var(--color-ink);
	background: var(--color-white);
	box-shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 12%);
}

.c-drawer {
	max-height: calc(100vh - var(--header-height));
	overflow: auto;
}

.c-menu {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-menu--primary {
	flex-direction: column;
}

.c-menu a {
	display: block;
	padding: 0.6rem;
	text-decoration: none;
}

.l-footer {
	text-align: center;
}

.l-footer__social {
	min-height: 4.2rem;
	padding: 1rem;
	background: var(--color-brand);
}

.l-footer__navigation {
	padding: 0.75rem 1rem;
	color: var(--color-white);
	background: var(--color-ink);
}

.l-footer .c-menu {
	flex-wrap: wrap;
	justify-content: center;
}

.l-footer__copyright {
	margin: 0;
	padding: 0.8rem 1rem;
	border-top: 1px solid var(--color-ink);
	font-family: var(--font-display);
	letter-spacing: 0.04em;
}

.c-entry__title {
	font-size: clamp(1.75rem, 5vw, 3rem);
	line-height: 1.3;
}

.c-button {
	display: inline-flex;
	justify-content: center;
	padding: 0.55rem 2rem;
	border: 2px solid var(--color-brand);
	border-radius: 100vmax;
	text-decoration: none;
}

.u-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.c-error-page {
	text-align: center;
}

.c-error-page__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(5rem, 20vw, 10rem);
	line-height: 1;
}

@media (min-width: 64rem) {
	.l-header__inner {
		width: min(calc(100% - 3rem), var(--content-width));
		margin-inline: auto;
	}
}

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

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