/*==============
reset
==============*/
html {
	box-sizing: border-box;
	height: 100%;
	-webkit-text-size-adjust: 100%;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin-top: 0;
	margin-bottom: 0;
	padding-left: 1.5em;
}

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

button {
	cursor: pointer;
}

table {
	border-collapse: collapse;
}

/*==============
base
==============*/
:root {
	--font_size_base: 16px;
	--font_size_h1: 28px;
	--font_size_h2: 24px;
	--font_size_h3: 22px;
	--font_size_h4: 20px;
	--font_size_h5: 18px;
	--font_size_h6: 16px;
	--font_family_base: "Sawarabi Gothic", sans-serif;
	--header_height: 76px;
	--color_site_bg: #ffffff;
	--color_text: #202024;
	--color_link: #6b2d7c;
	--color_link_hover: #4f1f5d;
	--color_key: #6b2d7c;
	--color_key_dark: #2d1b33;
	--color_border: #e5dce8;
	--color_bg_light: #f7f2f8;
	--color_bg_soft: #fbf8fc;
}

body {
	min-height: 100%;
	padding-top: var(--header_height);
	color: var(--color_text);
	font-family: var(--font_family_base);
	font-size: var(--font_size_base);
	letter-spacing: 1px;
	line-height: 1.7;
	background-color: var(--color_site_bg);
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-size: cover;
}

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

a {
	color: var(--color_link);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--color_link_hover);
}

h1 {
	font-size: var(--font_size_h1);
	line-height: 1.35;
}

h2 {
	font-size: var(--font_size_h2);
	line-height: 1.4;
}

h3 {
	font-size: var(--font_size_h3);
	line-height: 1.45;
}

h4 {
	font-size: var(--font_size_h4);
	line-height: 1.5;
}

h5 {
	font-size: var(--font_size_h5);
	line-height: 1.5;
}

h6 {
	font-size: var(--font_size_h6);
	line-height: 1.5;
}

p {
	font-size: var(--font_size_base);
}

blockquote {
	padding: 20px;
	border-left: 4px solid var(--color_link);
	background: var(--color_bg_light);
}

blockquote cite {
	display: block;
	margin-top: 12px;
	color: #555;
	font-size: 14px;
}

/*==============
layout
==============*/
.inner {
	width: 100%;
	margin: 0 auto;
	padding: 0 5vw;
}

.upper,
.lower {
	background: var(--color_site_bg);
}

.main_area {
	padding: 40px 0;
}

.content_layout {
	display: grid;
	gap: 40px;
}

.main_content {
	min-width: 0;
}

/*==============
header
==============*/
.upper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	border-bottom: 0;
}

body.admin-bar .upper {
	top: 46px;
}

.upper .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 20px;
}

.header_brand {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.header_description {
	display: none;
	font-size: 12px;
	line-height: 1.5;
}

.logo {
	width: fit-content;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.logo_link {
	display: inline-flex;
	align-items: center;
	color: var(--color_key_dark);
	text-decoration: none;
}

.logo_link:hover {
	color: var(--color_key_dark);
	opacity: 0.78;
}

.site_logo_image {
	width: auto;
	max-width: 210px;
	max-height: 54px;
}

.nav_toggle {
	position: relative;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border: 1px solid var(--color_border);
	border-radius: 4px;
	background: #fff;
}

.nav_toggle_line,
.nav_toggle_line::before,
.nav_toggle_line::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	border-radius: 999px;
	background: var(--color_key_dark);
	transform: translateX(-50%);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav_toggle_line {
	top: 50%;
}

.nav_toggle_line::before,
.nav_toggle_line::after {
	content: "";
}

.nav_toggle_line::before {
	top: -7px;
}

.nav_toggle_line::after {
	top: 7px;
}

.is_nav_open .nav_toggle_line {
	transform: translateX(-50%) rotate(45deg);
}

.is_nav_open .nav_toggle_line::before {
	transform: translateX(-50%) translateY(7px) rotate(90deg);
}

.is_nav_open .nav_toggle_line::after {
	opacity: 0;
}

.gnav {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: calc(100dvh - var(--header_height));
	padding: 0 5vw 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	border-bottom: 1px solid var(--color_border);
	background: var(--color_site_bg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

body.admin-bar .gnav {
	height: calc(100dvh - var(--header_height) - 46px);
}

.is_nav_open .gnav {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav_list {
	display: grid;
	gap: 4px;
	padding-left: 0;
	list-style: none;
}

.nav_link {
	display: block;
	padding: 12px 0;
	color: var(--color_key_dark);
	text-decoration: none;
}

.nav_link:hover {
	color: var(--color_link_hover);
}

/*==============
footer
==============*/
.lower {
	padding: 32px 0 20px;
	border-top: 0;
}

.lower .inner {
	display: grid;
	justify-items: center;
	gap: 88px;
}

.footer_logo {
	width: fit-content;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.footer_logo_link {
	display: inline-flex;
	align-items: center;
	color: var(--color_key_dark);
	text-decoration: none;
}

.footer_logo_link:hover {
	color: var(--color_key_dark);
	opacity: 0.78;
}

.copyright {
	font-size: 14px;
	text-align: center;
}

/*==============
sidebar
==============*/
.side_area {
	padding-top: 8px;
}

.widget {
	margin-bottom: 28px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--color_border);
}

.widget_title,
.side_area .wp-block-heading {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.4;
}

/*==============
search
==============*/
.search_form {
	display: grid;
	gap: 8px;
}

.search_form_field {
	width: 100%;
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid var(--color_border);
	border-radius: 4px;
	background: #fff;
}

.search_form_submit {
	padding: 11px 16px;
	border: 0;
	border-radius: 4px;
	color: #fff;
	background: var(--color_link);
}

.search_form_submit:hover {
	background: var(--color_link_hover);
}

/*==============
parts
==============*/
.no_posts,
.not_found {
	margin-bottom: 48px;
	padding: 28px;
	border: 1px solid var(--color_border);
	background: var(--color_bg_soft);
}

.no_posts_title,
.not_found_title {
	margin: 0 0 12px;
	line-height: 1.3;
}

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--color_border);
	color: var(--color_link);
	text-decoration: none;
	background: #fff;
}

.pagination .current {
	color: #fff;
	background: var(--color_link);
}

.post_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin-bottom: 14px;
	color: #666;
	font-size: 14px;
}

.post_categories {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border: 1px solid var(--color_border);
	border-radius: 999px;
	color: var(--color_text);
	background: var(--color_bg_soft);
}

.post_date,
.archive_post_date,
.search_post_date,
.home_post_date {
	display: inline-flex;
	align-items: center;
}

.imgbox {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--color_bg_light);
}

.imgbox::before {
	content: "";
	display: block;
	padding-top: 62.5%;
}

.imgbox img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page_title {
	margin: 0 0 24px;
}

.area_title {
	margin: 0 0 16px;
}

.sub_title {
	margin: 0 0 24px;
	color: #555;
}

.the_txt {
	line-height: 1.8;
}

.the_txt > * + * {
	margin-top: 1.2em;
}

.the_txt a {
	word-break: break-word;
}

.wp-block-image,
.wp-block-quote,
.wp-block-pullquote,
.wp-block-table,
.wp-block-gallery {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
}

.scroll_top_button {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: var(--color_link);
	box-shadow: 0 8px 20px rgba(32, 32, 36, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.scroll_top_button:hover {
	background: var(--color_link_hover);
}

.scroll_top_button.is_visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/*==============
accessibility
==============*/
.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;
}

/*==============
tablet
==============*/
@media (min-width: 641px) {
	:root {
		--header_height: 82px;
	}

	.inner {
		padding: 0 32px;
	}

	.main_area {
		padding: 56px 0;
	}

	.search_form {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.gnav {
		padding-right: 32px;
		padding-left: 32px;
	}

	.header_description {
		display: block;
	}
}

/*==============
pc
==============*/
@media (min-width: 1040px) {
	:root {
		--header_height: 92px;
	}

	.inner {
		width: 1080px;
		padding: 0 40px;
	}

	.upper .inner {
		min-height: 78px;
	}

	.logo {
		font-size: 28px;
	}

	.site_logo_image {
		max-width: 280px;
		max-height: 64px;
	}

	.nav_toggle {
		display: none;
	}

	.gnav {
		position: static;
		width: fit-content;
		height: auto;
		max-height: none;
		padding: 0;
		overflow: visible;
		border-bottom: 0;
		background: transparent;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	body.admin-bar .gnav {
		height: auto;
		max-height: none;
	}

	.nav_list {
		display: flex;
		flex-wrap: wrap;
		gap: 34px;
	}

	.nav_link {
		padding: 8px 0;
		font-size: 16px;
		font-weight: 700;
	}

	.content_layout {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
		gap: 48px;
	}

	.scroll_top_button {
		right: 28px;
		bottom: 28px;
	}

	.lower {
		padding: 30px 0 18px;
	}

	.lower .inner {
		gap: 118px;
	}

	.footer_logo {
		font-size: 30px;
	}
}

@media (min-width: 783px) {
	body.admin-bar .upper {
		top: 32px;
	}

	body.admin-bar .gnav {
		height: calc(100dvh - var(--header_height) - 32px);
	}
}
