@charset "UTF-8";
/*
Template: swell
Theme Name: SWELL CHILD - 日本事件データベース
Version: 1.9.9
*/

:root {
	--jdb-ink: #17212b;
	--jdb-muted: #5b6773;
	--jdb-line: #dce2e8;
	--jdb-surface: #f5f7f8;
	--jdb-accent: #8e2732;
	--jdb-accent-dark: #681b24;
	--jdb-focus: #1f6feb;
}

.jdb-filter-search {
	margin: 2rem 0;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--jdb-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(23, 33, 43, .07);
}

.jdb-filter-search__header { margin-bottom: 1.5rem; }
.jdb-filter-search__eyebrow {
	margin: 0 0 .35rem;
	color: var(--jdb-accent);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
}
.jdb-filter-search__title { margin: 0; color: var(--jdb-ink); font-size: clamp(1.35rem, 3vw, 1.8rem); }
.jdb-filter-search__description { margin: .65rem 0 0; color: var(--jdb-muted); }
.jdb-filter-search__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1rem; }
.jdb-filter-search__field { display: grid; gap: .4rem; min-width: 0; }
.jdb-filter-search__field > span { color: var(--jdb-ink); font-size: .85rem; font-weight: 700; }
.jdb-filter-search input,
.jdb-filter-search select {
	width: 100%;
	min-height: 48px;
	padding: .7rem .8rem;
	border: 1px solid #aeb8c2;
	border-radius: 6px;
	background: #fff;
	color: var(--jdb-ink);
	font: inherit;
}
.jdb-filter-search input:focus-visible,
.jdb-filter-search select:focus-visible,
.jdb-filter-search button:focus-visible,
.jdb-article-info a:focus-visible {
	outline: 3px solid rgba(31, 111, 235, .35);
	outline-offset: 2px;
}
.jdb-filter-search__actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.jdb-filter-search__submit,
.jdb-filter-search__reset {
	min-height: 46px;
	padding: .7rem 1.25rem;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}
.jdb-filter-search__submit { border: 1px solid var(--jdb-accent); background: var(--jdb-accent); color: #fff; }
.jdb-filter-search__submit:hover { border-color: var(--jdb-accent-dark); background: var(--jdb-accent-dark); }
.jdb-filter-search__reset { border: 1px solid #aeb8c2; background: #fff; color: var(--jdb-muted); }

.jdb-article-info {
	margin: 2.5rem 0 1rem;
	padding: clamp(1rem, 3vw, 1.75rem);
	border-top: 4px solid var(--jdb-accent);
	background: var(--jdb-surface);
}
.jdb-article-info h2 { margin-top: 0; }
.jdb-article-info__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--jdb-line); background: #fff; }
.jdb-article-info__facts > div { display: grid; grid-template-columns: minmax(7rem, .45fr) 1fr; border-bottom: 1px solid var(--jdb-line); }
.jdb-article-info__facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.jdb-article-info__facts dt,
.jdb-article-info__facts dd { margin: 0; padding: .7rem .8rem; }
.jdb-article-info__facts dt { background: #e9edf0; font-weight: 700; }
.jdb-article-info__sources { padding-left: 1.25rem; }
.jdb-article-info__sources a { overflow-wrap: anywhere; }

/* SWELL内の長い概要表をスマートフォンで安全に横スクロールさせる */
.post_content table { min-width: 36rem; }
.post_content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post_content :target { scroll-margin-top: 6rem; }

@media (max-width: 959px) {
	.jdb-filter-search__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jdb-filter-search__field--wide { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
	.jdb-filter-search { margin-inline: -.5rem; padding: 1.1rem; border-radius: 8px; }
	.jdb-filter-search__grid { grid-template-columns: 1fr; gap: .8rem; }
	.jdb-filter-search__field--wide { grid-column: auto; }
	.jdb-filter-search__actions { flex-direction: column; }
	.jdb-filter-search__submit,
	.jdb-filter-search__reset { width: 100%; }
	.jdb-article-info__facts { grid-template-columns: 1fr; }
	.jdb-article-info__facts > div,
	.jdb-article-info__facts > div:nth-last-child(-n+2) { grid-template-columns: 7.25rem 1fr; border-bottom: 1px solid var(--jdb-line); }
	.jdb-article-info__facts > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 1200 × 630 アイキャッチ表示最適化（40:21） */
body.single-post .p-articleThumb {
	width: 100%;
	aspect-ratio: 40 / 21;
	margin-inline: auto;
	overflow: hidden;
	border-radius: 12px;
	background: #eee9df;
}
body.single-post .p-articleThumb__img,
body.single-post .p-articleThumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.jdb-news-list--swell .p-postList__thumb,
.jdb-news-list--swell .c-postThumb,
.jdb-rank-clean .p-postList__thumb,
.jdb-rank-clean .c-postThumb,
.jdb-hub-post-list .p-postList__thumb,
.jdb-hub-post-list .c-postThumb {
	flex: 0 0 112px !important;
	width: 112px !important;
	min-width: 112px !important;
	max-width: 112px !important;
	height: auto !important;
	aspect-ratio: 40 / 21 !important;
	overflow: hidden !important;
	background: #eee9df !important;
}
.jdb-news-list--swell .c-postThumb__figure,
.jdb-news-list--swell .c-postThumb__img,
.jdb-news-list--swell .p-postList__thumb img,
.jdb-rank-clean .c-postThumb__figure,
.jdb-rank-clean .c-postThumb__img,
.jdb-rank-clean .p-postList__thumb img,
.jdb-hub-post-list .c-postThumb__figure,
.jdb-hub-post-list .c-postThumb__img,
.jdb-hub-post-list .p-postList__thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
}

.jdb-related-posts .jdb-related-posts__thumb {
	flex: 0 0 180px !important;
	width: 180px !important;
	height: auto !important;
	aspect-ratio: 40 / 21 !important;
	overflow: hidden !important;
	background: #eee9df !important;
}
.jdb-related-posts .jdb-related-posts__thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
}

@media (max-width: 600px) {
	body.single-post .p-articleThumb { border-radius: 8px; }
	.jdb-news-list--swell .p-postList__thumb,
	.jdb-news-list--swell .c-postThumb,
	.jdb-rank-clean .p-postList__thumb,
	.jdb-rank-clean .c-postThumb,
	.jdb-hub-post-list .p-postList__thumb,
	.jdb-hub-post-list .c-postThumb {
		flex-basis: 96px !important;
		width: 96px !important;
		min-width: 96px !important;
		max-width: 96px !important;
	}
	.jdb-related-posts .jdb-related-posts__thumb {
		flex-basis: 116px !important;
		width: 116px !important;
	}
}


/* 公開ページ共通のアーカイブ導線。SWELL標準Footerは変更しない。 */
.jdb-archive-footer-nav{margin-top:48px;padding:48px 20px;background:#151a21;border-top:1px solid #27313d;color:#f5f7fa}.jdb-archive-footer-nav__inner{width:min(100%,1200px);margin-inline:auto}.jdb-archive-footer-nav__intro{display:grid;gap:8px;max-width:680px;margin-bottom:28px}.jdb-archive-footer-nav__intro p{margin:0;color:#a92432;font-size:12px;font-weight:700;letter-spacing:.12em}.jdb-archive-footer-nav__intro h2{margin:0;color:#f5f7fa;font-size:clamp(24px,3vw,36px);line-height:1.3}.jdb-archive-footer-nav__intro span{color:#b4bdc8;font-size:15px;line-height:1.8}.jdb-archive-footer-nav__conditions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}.jdb-archive-footer-nav__conditions a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid #374454;color:#f5f7fa;text-decoration:none}.jdb-archive-footer-nav__groups{display:grid;gap:24px}.jdb-archive-footer-nav__groups section{min-width:0;padding-top:16px;border-top:1px solid #27313d}.jdb-archive-footer-nav__groups h3{margin:0 0 10px;color:#f5f7fa;font-size:16px;line-height:1.5}.jdb-archive-footer-nav__groups ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}.jdb-archive-footer-nav__groups a{display:inline-flex;align-items:center;min-height:44px;color:#b4bdc8;font-size:14px;line-height:1.5;text-decoration:none}.jdb-archive-footer-nav a:visited{color:#b4bdc8}.jdb-archive-footer-nav a:hover{color:#f5f7fa;text-decoration:underline;text-underline-offset:3px}.jdb-archive-footer-nav a:focus-visible{outline:3px solid #a92432;outline-offset:2px}@media (min-width:768px){.jdb-archive-footer-nav{padding-block:64px}.jdb-archive-footer-nav__groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}#body_wrap.jdb-v3-preview .jdb-archive-footer-nav{display:none}
