/*
Theme Name: Makuhari Twenty Twenty-Five Child
Description: Twenty Twenty-Fiveの子テーマです。
Author: Makuhari
Template: twentytwentyfive
Version: 1.0.37
Text Domain: makuhari-twentytwentyfive-child
*/

/*
 * Most shared design tokens live in theme.json.
 * Keep only CSS that cannot be expressed with theme.json here.
 */

:where(.wp-site-blocks) > header,
:where(.wp-site-blocks) > footer {
	margin-block-start: 0;
}

.site-header-shell {
	border-bottom: 1px solid #999;
}

.site-footer-shell {
	border-top: 1px solid #999;
	padding-block: clamp(24px, 5vw, 40px) !important;
}

.wp-block-navigation a {
	text-decoration: none;
}

.front-page-section-heading,
.bibsync-latest__heading {
	font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.front-page-news-item {
	border-bottom: 1px solid #ddd;
}

.front-page-layout {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 720px) minmax(0, 200px);
	justify-content: center;
}

.front-page-main {
	max-width: 720px;
	width: 100%;
}

.front-page-banners {
	max-width: 200px;
	width: 100%;
}

.front-page-banner-list {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.front-page-banner-list > * {
	margin-block: 0;
}

.front-page-banner-list .wp-block-image img {
	display: block;
	height: auto;
	width: 100%;
}

.standard-page-title,
.news-list-heading {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-block: 0 var(--wp--preset--spacing--30);
}

.error-404__links {
	gap: 0.75rem;
	margin-block-start: var(--wp--preset--spacing--40);
}

.error-404__links .wp-block-button__link {
	font-size: 0.875rem;
	padding: 0.55rem 1rem;
}

.news-category-filter {
	border-bottom: 1px solid #ddd;
	gap: 0.75rem;
	margin-block-end: var(--wp--preset--spacing--30);
	padding-block-end: 0.75rem;
}

.news-category-filter p,
.news-category-filter .wp-block-categories {
	margin-block: 0;
}

.news-category-filter select {
	background: #fff;
	border: 1px solid #777;
	color: #000;
	font: inherit;
	font-size: 0.875rem;
	padding: 0.35rem 2rem 0.35rem 0.6rem;
}

.news-category-filter__reset a {
	border: 1px solid #777;
	border-radius: 0.25rem;
	color: #000;
	display: inline-block;
	font-size: 0.8125rem;
	padding: 0.35rem 0.7rem;
	text-decoration: none;
}

.news-category-filter__reset a:hover,
.news-category-filter__reset a:focus-visible {
	background: #f0f0f0;
	text-decoration: none;
}

.news-list-item {
	padding-block: var(--wp--preset--spacing--30);
}

.news-list .wp-block-post + .wp-block-post .news-list-item {
	border-top: 1px solid #ddd;
}

.news-list-item__meta {
	gap: 0.5rem 1rem;
}

.news-list-item__meta a {
	text-decoration: none;
}

.news-category-badges {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.65rem;
	gap: 0.3rem;
	line-height: 1.2;
}

.news-category-badges a {
	background: #666;
	border-radius: 0.25rem;
	color: #fff !important;
	display: inline-block;
	font-size: 0.65rem;
	padding: 0.18em 0.45em;
	text-decoration: none;
}

.news-category-badges a:hover,
.news-category-badges a:focus-visible {
	background: #4d4d4d;
	color: #fff !important;
	text-decoration: none;
}

.news-list-item__title {
	font-size: clamp(1rem, 2vw, 1.2rem);
	margin-block: 0.4rem 0;
}

.news-list-pagination {
	margin-block-start: var(--wp--preset--spacing--40);
}

.wp-block-table.info-table table,
table.info-table {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
}

.wp-block-table.info-table :is(th, td),
table.info-table :is(th, td) {
	border: 0;
	overflow-wrap: anywhere;
	padding: 0.4rem 0.75rem;
	vertical-align: top;
}

.wp-block-table.info-table :is(th, td):first-child,
table.info-table :is(th, td):first-child {
	font-size: 0.875em;
	font-weight: 600;
	padding-inline-start: 0;
	text-align: right;
	width: 12rem;
}

.wp-block-table.info-table :is(th, td):last-child,
table.info-table :is(th, td):last-child {
	padding-inline-end: 0;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.wp-block-navigation__responsive-container.is-menu-open :is(
	.wp-block-navigation-item,
	.wp-block-navigation-item__content,
	a,
	button
):focus,
.wp-block-navigation__responsive-container.is-menu-open :is(
	.wp-block-navigation-item,
	.wp-block-navigation-item__content,
	a,
	button
):focus-visible {
	border: 0;
	box-shadow: none;
	outline: 0;
}

.site-header-logo {
	justify-self: start;
}

.site-header-logo img {
	display: block;
	height: auto;
	max-width: min(240px, 60vw);
}

.site-header-inner {
	align-items: center;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr) auto;
	width: 100%;
}

.site-header-navigation {
	font-weight: 600;
	justify-self: center;
}

.site-header-navigation .wp-block-navigation__container {
	column-gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-header-socials {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	justify-self: end;
}

.site-header-socials__link {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
}

.site-header-socials__link span {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	display: block;
	height: 26px;
	width: 26px;
}

.site-header-socials__link--x span {
	background-image: url("assets/images/x_logo.svg");
}

.site-header-socials__link--instagram span {
	background-image: url("assets/images/insta_logo.svg");
}

.site-header-socials__link--note span {
	background-image: url("assets/images/note_logo.svg");
	width: 56px;
}

.site-header-socials__link:hover,
.site-header-socials__link:focus-visible {
	opacity: 0.7;
}

.site-header-socials__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.site-footer-content {
	font-size: 0.8125rem;
	line-height: 1.6;
	width: 100%;
}

.site-footer-content > * {
	margin-block: 0 !important;
}

.site-footer-content > * + * {
	margin-block-start: 24px !important;
}

.site-footer-navigation {
	font-size: 0.875rem;
	font-weight: 600;
	width: 100%;
}

.site-footer-navigation .wp-block-navigation__container {
	column-gap: clamp(1.5rem, 3vw, 2.25rem);
	row-gap: 0.75rem;
}

.site-footer-navigation a {
	color: inherit;
	font-size: inherit;
	text-decoration: none;
}

.site-footer-navigation a:hover,
.site-footer-navigation a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.site-footer-divider {
	background-color: #ddd !important;
	border: 0 !important;
	color: #ddd !important;
	height: 1px;
	opacity: 1;
	width: 100%;
}

.site-footer-address p {
	margin-block: 0;
}

.site-footer-notices {
	line-height: 1.5;
	margin-block: 0;
	padding-inline-start: 1.5em;
}

.site-footer-notices li + li {
	margin-block-start: 0.25em;
}

@media (max-width: 700px) {
	.site-header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.site-header-navigation {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
	}
}

@media (max-width: 480px) {
	.wp-block-table.info-table :is(th, td):first-child,
	table.info-table :is(th, td):first-child {
		width: 7rem;
	}

	.site-header-inner {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.site-header-logo {
		grid-column: 1;
		grid-row: 1;
		justify-self: center;
	}

	.site-header-logo img {
		max-width: min(240px, 80vw);
		width: 100%;
	}

	.site-header-socials {
		grid-column: 1;
		grid-row: 2;
		justify-content: center;
		justify-self: center;
	}

	.site-header-socials__link {
		min-height: clamp(34px, 10vw, 44px);
		min-width: clamp(34px, 10vw, 44px);
	}

	.site-header-socials__link span {
		height: clamp(20px, 6vw, 26px);
		width: clamp(20px, 6vw, 26px);
	}

	.site-header-socials__link--note span {
		width: clamp(42px, 13vw, 56px);
	}

	.site-header-navigation {
		grid-column: 1;
		grid-row: 3;
	}
}

@media (max-width: 800px) {
	.front-page-layout {
		grid-template-columns: minmax(0, 720px);
	}

	.front-page-banners {
		justify-self: center;
	}
}
