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

:root {
	--yokuchi-text-color: #2B2B2B;
	--yokuchi-container-width: 1440px;
}

html {
	-webkit-text-size-adjust: 100%;
	background: #FAF9F7;
}

body {
	margin: 0;
	background: #FAF9F7;
	color: var(--yokuchi-text-color, #2B2B2B);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

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

a {
	color: var(--yokuchi-link-color, #e31e24);
	text-decoration: none;
}

a:hover,
a:focus {
	color: #c5161b;
}

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

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: #141515;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.ast-container {
	width: min(calc(100% - 48px), var(--yokuchi-container-width, 1440px));
	margin-right: auto;
	margin-left: auto;
}

.site {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	isolation: isolate;
	background: #FAF9F7;
}

.site::before {
	content: "";
	position: fixed;
	top: 46vh;
	left: 50%;
	z-index: 0;
	width: min(37.4vw, 473px);
	aspect-ratio: 1;
	background: url("/wp-content/uploads/yokuchi-visual/2026/08/Sygnet.webp") center / contain no-repeat;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.site > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 781px) {
	.site::before {
		width: min(56.1vw, 710px);
	}
}

.site-header {
	z-index: 1000;
}

.site-content {
	flex: 1 0 auto;
}

.site-header {
	position: relative;
	z-index: 50;
	background: var(--yokuchi-header-bg, #fff);
	border-bottom: 1px solid rgba(20, 21, 21, 0.08);
}

.home .site-header,
.front-page .site-header,
.page-template-page-yokuchi-home .site-header,
.page-template-page-blog .site-header,
.page-template-page-blog-php .site-header,
.yokuchi-blog-page .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom: 0;
}

.yokuchi-disable-transparent-header.home .site-header,
.yokuchi-disable-transparent-header.front-page .site-header,
.yokuchi-disable-transparent-header.page-template-page-yokuchi-home .site-header,
.yokuchi-disable-transparent-header.page-template-page-blog .site-header,
.yokuchi-disable-transparent-header.page-template-page-blog-php .site-header,
.yokuchi-disable-transparent-header.yokuchi-blog-page .site-header {
	position: relative;
	background: #fff;
	border-bottom: 1px solid rgba(20, 21, 21, 0.08);
}

.site-header__inner {
	min-height: var(--yokuchi-header-height, 92px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 36px;
}

.site-branding {
	flex: 0 0 auto;
	line-height: 0;
}

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

.site-logo-text {
	color: #141515;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

.main-navigation {
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
	margin: 0;
}

.main-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	color: #2b2b2b;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: #e31e24;
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: -24px;
	z-index: 20;
	display: block;
	min-width: 230px;
	padding: 18px 24px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .sub-menu a {
	width: 100%;
	min-height: 34px;
	font-size: 14px;
}

.site-main.ast-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 88px;
}

.yokuchi-no-sidebar .site-main.ast-container {
	display: block;
}

.content-area,
.widget-area {
	min-width: 0;
}

.ast-article-single {
	margin-bottom: 40px;
	padding: 42px;
	background: #fff;
	border: 1px solid rgba(20, 21, 21, 0.08);
}

.entry-title,
.page-title {
	margin: 0 0 24px;
	color: #141515;
	font-size: clamp(30px, 4vw, 54px);
	font-weight: var(--yokuchi-heading-weight, 800);
	text-transform: var(--yokuchi-heading-transform, none);
	line-height: 1.08;
}

.entry-title a {
	color: inherit;
}

.entry-meta {
	margin-top: -12px;
	margin-bottom: 24px;
	color: #6e6e6e;
	font-size: 14px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.post-thumbnail {
	margin-bottom: 30px;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

.widget {
	margin-bottom: 34px;
	padding: 28px;
	background: #fff;
	border: 1px solid rgba(20, 21, 21, 0.08);
}

.widget-title {
	margin: 0 0 18px;
	color: #141515;
	font-size: 16px;
	font-weight: var(--yokuchi-heading-weight, 800);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
	border: 1px solid #141515;
	border-radius: 0;
	background: transparent;
	color: #2b2b2b;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
	border-color: #e31e24;
	color: #e31e24;
}

input,
textarea,
select {
	max-width: 100%;
	border: 1px solid #d8d8d8;
	border-radius: 0;
	background: #fff;
	color: #2b2b2b;
	font: inherit;
}

input,
select {
	min-height: 44px;
	padding: 0 14px;
}

textarea {
	padding: 14px;
}

.privacy-consent label,
.privacy-checkbox label,
.comment-form-privacy label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: #8a8a8a;
	font-size: 12px;
	line-height: 1.35;
}

.privacy-consent input[type="checkbox"],
.privacy-checkbox input[type="checkbox"],
.comment-form-privacy input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	min-height: 16px;
	height: 16px;
	margin: 1px 0 0;
	padding: 0;
	background: transparent;
	border: 1px solid #d1d1d1;
	border-radius: 0;
	accent-color: #EC1D23;
}

.privacy-consent a,
.privacy-checkbox a,
.comment-form-privacy a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.site-footer {
	flex-shrink: 0;
	background: var(--yokuchi-footer-bg, #fff);
	border-top: 1px solid rgba(20, 21, 21, 0.1);
	color: #6e6e6e;
}

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(var(--yokuchi-footer-columns, 4), minmax(0, 1fr));
	gap: 42px;
	padding-top: 64px;
	padding-bottom: 54px;
}

.site-footer .widget {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.site-footer__bar {
	border-top: 1px solid rgba(20, 21, 21, 0.1);
}

.site-footer__bar .ast-container {
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.footer-menu {
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__credit {
	margin: 0;
	font-size: 13px;
}

.yokuchi-front-main {
	padding: 0;
}

.yokuchi-sticky-header .site-header {
	position: fixed;
	top: 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.yokuchi-header-at-top.yokuchi-sticky-header .site-header {
	box-shadow: none;
}

.admin-bar.yokuchi-sticky-header .site-header {
	top: 32px;
}

.yokuchi-breadcrumbs {
	padding: 18px 0;
	background: rgba(255, 255, 255, 0.72);
	border-bottom: 1px solid rgba(20, 21, 21, 0.08);
	color: #6e6e6e;
	font-size: 13px;
}

.yokuchi-breadcrumbs .ast-container {
	display: flex;
	gap: 10px;
	align-items: center;
}

.yokuchi-breadcrumbs a {
	color: var(--yokuchi-text-color, #2b2b2b);
}

.yokuchi-button-filled button,
.yokuchi-button-filled input[type="button"],
.yokuchi-button-filled input[type="submit"],
.yokuchi-button-filled .button,
.yokuchi-button-filled .wp-block-button__link {
	background: var(--yokuchi-red, #e31e24);
	border-color: var(--yokuchi-red, #e31e24);
	color: #fff;
}

.yokuchi-button-minimal button,
.yokuchi-button-minimal input[type="button"],
.yokuchi-button-minimal input[type="submit"],
.yokuchi-button-minimal .button,
.yokuchi-button-minimal .wp-block-button__link {
	min-height: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--yokuchi-red, #e31e24);
}

button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
	border-radius: var(--yokuchi-button-radius, 0);
}

.yokuchi-blog-grid .content-area {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.yokuchi-blog-grid .page-header,
.yokuchi-blog-grid .navigation {
	grid-column: 1 / -1;
}

.yokuchi-blog-grid .ast-article-single {
	margin-bottom: 0;
}
