/*
Theme Name: sekai.info for GeneratePress
Theme URI: https://sekai.info/
Description: GeneratePress child theme for sekai.info.
Author: Yasu Oda
Template: generatepress
Version: 1.8.1
Text Domain: sekai-info
*/

:root {
	--sekai-navy: #16324f;
	--sekai-blue: #246b9e;
	--sekai-pale: #f2f6f8;
	--sekai-ink: #27323a;
	--sekai-muted: #65727c;
	--sekai-gold: #b48a3c;
	--sekai-border: #dce4e9;
}

body {
	color: var(--sekai-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif;
	font-size: 17px;
	line-height: 1.9;
}

body.home {
	background: #fff;
	overflow-x: clip;
}

body.home #page,
body.home #primary,
body.home .site-main {
	box-sizing: border-box;
	float: none;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

a { color: var(--sekai-blue); }
a:hover, a:focus { color: var(--sekai-navy); }

.site-header {
	background: #fff;
	border-top: 5px solid var(--sekai-gold);
	border-bottom: 1px solid var(--sekai-border);
}

.inside-header {
	align-items: center;
	min-height: 0;
	padding: 11px clamp(20px, 4vw, 46px);
}

.site-logo img { max-height: 52px; width: auto; }
.site-branding .main-title {
	font-family: Georgia, "Times New Roman", "Yu Mincho", YuMincho, serif;
	font-size: clamp(1.42rem, 2.8vw, 1.82rem);
	font-style: normal;
	font-weight: 700;
	letter-spacing: .025em;
	line-height: 1.1;
}
.site-branding .main-title a {
	align-items: center;
	color: var(--sekai-navy);
	display: inline-flex;
	gap: .62rem;
	position: relative;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.site-branding .main-title a::after {
	background: linear-gradient(90deg, var(--sekai-gold), rgba(180,138,60,0));
	bottom: -.28rem;
	content: "";
	height: 2px;
	left: 2.15rem;
	position: absolute;
	width: 4.2rem;
}
.site-branding .main-title a::before {
	background:
		radial-gradient(ellipse at 38% 42%, rgba(255,255,255,.9) 0 8%, transparent 9%),
		linear-gradient(90deg, transparent 47%, rgba(255,255,255,.75) 48% 52%, transparent 53%),
		linear-gradient(0deg, transparent 47%, rgba(255,255,255,.75) 48% 52%, transparent 53%),
		linear-gradient(145deg, var(--sekai-blue), var(--sekai-navy));
	border: 1px solid #0f2b45;
	border-radius: 50%;
	box-shadow: inset 0 0 0 3px rgba(255,255,255,.15), 0 2px 5px rgba(22,50,79,.2);
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	height: 1.55rem;
	width: 1.55rem;
}
.site-branding .site-description { color: var(--sekai-muted); font-size: .88rem; }

.main-navigation {
	background: var(--sekai-navy);
}

.site-header .main-navigation:not(:has(.menu-item)) {
	display: none;
}

.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .menu-bar-items {
	color: #fff;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	background: #204664;
	color: #fff;
}

.entry-title { color: var(--sekai-navy); line-height: 1.35; }
.entry-content h2 {
	border-left: 5px solid var(--sekai-gold);
	color: var(--sekai-navy);
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	line-height: 1.45;
	margin-top: 2.4em;
	padding: .25em 0 .25em .75em;
}
.entry-content h3 { color: var(--sekai-navy); font-size: 1.2rem; margin-top: 2em; }
.entry-content h2[id],
.entry-content h3[id] { scroll-margin-top: 1.5rem; }

.sekai-auto-toc {
	background: linear-gradient(145deg, #f4f7f9 0%, #fff 100%);
	border: 1px solid var(--sekai-border);
	border-top: 4px solid var(--sekai-gold);
	border-radius: 6px;
	margin: 1.8rem 0 2.8rem;
	padding: 1.25rem 1.5rem 1.35rem;
}
.sekai-toc-title {
	color: var(--sekai-navy);
	font-size: 1.08rem;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: .65rem;
}
.sekai-auto-toc ol { margin: 0 0 0 1.35rem; }
.sekai-auto-toc li { line-height: 1.6; margin: .35rem 0; }
.sekai-auto-toc li::marker { color: var(--sekai-gold); font-weight: 700; }
.sekai-auto-toc a { color: var(--sekai-navy); text-decoration: none; }
.sekai-auto-toc a:hover { color: var(--sekai-blue); text-decoration: underline; }
.sekai-auto-toc .sekai-toc-level-3 { font-size: .92em; margin-left: 1.1rem; }

.sekai-taxonomy-chips { display: grid; gap: .5rem; margin: 1rem 0 1.75rem; }
.sekai-axis { align-items: baseline; display: flex; flex-wrap: wrap; gap: .45rem; }
.sekai-axis > span { color: var(--sekai-muted); font-size: .78rem; font-weight: 700; min-width: 4.8rem; }
.sekai-axis a {
	background: var(--sekai-pale);
	border: 1px solid var(--sekai-border);
	border-radius: 999px;
	color: var(--sekai-navy);
	font-size: .8rem;
	line-height: 1.3;
	padding: .3rem .65rem;
	text-decoration: none;
}

/* Compact classification display below individual post titles. */
.single-post .entry-header .sekai-taxonomy-chips {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1rem;
	margin: .7rem 0 1.1rem;
}
.single-post .entry-header .sekai-axis {
	align-items: center;
	display: inline-flex;
	gap: .28rem;
	line-height: 1.2;
}
.single-post .entry-header .sekai-axis > span {
	font-size: .69rem;
	letter-spacing: .02em;
	min-width: auto;
}
.single-post .entry-header .sekai-axis a {
	font-size: .72rem;
	line-height: 1.2;
	padding: .2rem .48rem;
}

.sekai-term-grid {
	display: grid;
	gap: 1.15rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 2rem 0;
}
.sekai-term-card {
	background: linear-gradient(145deg, #fff 0%, #f8fafb 100%);
	border: 1px solid var(--sekai-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(22, 50, 79, .045);
	min-height: 8.5rem;
	padding: 1.3rem 1.4rem;
	position: relative;
}
.sekai-term-card::before { background: var(--sekai-gold); content: ""; height: 3px; left: 0; position: absolute; right: 0; top: 0; }
.sekai-term-card h2 { border: 0; font-size: 1.15rem; margin: 0 0 .6rem; padding: 0; }
.sekai-term-card h2 a { color: var(--sekai-navy); text-decoration: none; }
.sekai-term-card ul { margin: .6rem 0 0 1.2rem; }

.sekai-home-hero {
	background: linear-gradient(120deg, #102a43 0%, #163f61 58%, #246b9e 100%);
	color: #fff;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.sekai-home-hero > .grid-container {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
	padding-left: clamp(28px, 5vw, 76px);
	padding-right: clamp(28px, 5vw, 76px);
	width: 100%;
}
.sekai-home-hero::after {
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 50%;
	content: "";
	height: 27rem;
	position: absolute;
	right: -10rem;
	top: -15rem;
	width: 27rem;
}
.sekai-home-intro { padding: 3.7rem 0 3.4rem; position: relative; z-index: 1; }
.sekai-home-kicker { color: #dfc88f; font-size: .78rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 .7rem; text-transform: uppercase; }
.sekai-home-intro h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.45; margin: 0 0 .7rem; }
.sekai-home-intro p { color: #dbe7f0; font-size: 1rem; margin: 0; max-width: 55rem; }
.sekai-home-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.35rem; }
.sekai-home-links a { border: 1px solid rgba(255,255,255,.38); border-radius: 3px; color: #fff; font-size: .85rem; padding: .48rem .85rem; text-decoration: none; }
.sekai-home-links a:hover { background: #fff; color: var(--sekai-navy); }
.sekai-section { box-sizing: border-box; padding: 2.8rem 0; width: 100%; }
.sekai-section > .grid-container {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1180px;
	padding-left: clamp(28px, 5vw, 60px);
	padding-right: clamp(28px, 5vw, 60px);
	width: 100%;
}
.sekai-section-alt { background: var(--sekai-pale); }
.sekai-section-head { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 1.4rem; }
.sekai-section-title { color: var(--sekai-navy); font-size: 1.5rem; margin: 0 0 1.4rem; }
.sekai-section-head .sekai-section-title { margin: 0; }
.sekai-section-note { color: var(--sekai-muted); font-size: .82rem; }
.sekai-post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sekai-post-card { border: 1px solid var(--sekai-border); border-radius: 8px; box-shadow: 0 10px 28px rgba(22,50,79,.055); background: #fff; overflow: hidden; }
.sekai-post-card img { aspect-ratio: 16 / 9; display: block; object-fit: cover; width: 100%; }
.sekai-post-card-body { padding: 1rem 1.1rem 1.2rem; }
.sekai-post-card h3 { font-size: 1.08rem; line-height: 1.5; margin: 0 0 .55rem; }
.sekai-post-card h3 a { color: var(--sekai-navy); text-decoration: none; }
.sekai-post-card time { color: var(--sekai-muted); font-size: .78rem; }
.sekai-post-excerpt {
	color: #52616c;
	display: -webkit-box;
	font-size: .86rem;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-height: 1.75;
	margin: .6rem 0 .8rem;
	overflow: hidden;
}
.sekai-post-card .sekai-taxonomy-chips {
	gap: .28rem;
	margin: .55rem 0 0;
}
.sekai-post-card .sekai-axis {
	gap: .25rem .35rem;
	line-height: 1.2;
}
.sekai-post-card .sekai-axis > span {
	font-size: .68rem;
	min-width: 2.8rem;
}
.sekai-post-card .sekai-axis a {
	font-size: .69rem;
	line-height: 1.2;
	padding: .2rem .48rem;
}
.sekai-post-card:first-child:nth-last-child(1) { border-top: 4px solid var(--sekai-gold); grid-column: 1 / -1; }
.sekai-post-card:first-child:nth-last-child(1) .sekai-post-card-body { padding: 1.6rem 1.8rem; }
.sekai-post-card:first-child:nth-last-child(1) h3 { font-size: clamp(1.25rem, 3vw, 1.65rem); max-width: 50rem; }
.sekai-empty-note { background: var(--sekai-pale); border-left: 4px solid var(--sekai-gold); padding: 1rem 1.2rem; }

.site-info { background: var(--sekai-navy); color: #dbe5ec; }
.site-info a { color: #fff; }

@media (max-width: 900px) {
	.sekai-term-grid, .sekai-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.inside-header { padding: 9px 18px; }
	.site-branding .main-title { font-size: 1.42rem; }
	.site-branding .main-title a::before { height: 1.35rem; width: 1.35rem; }
	.site-branding .main-title a::after { left: 1.95rem; width: 3.65rem; }
	.sekai-term-grid, .sekai-post-grid { grid-template-columns: 1fr; }
	.sekai-axis > span { flex-basis: 100%; }
	.sekai-home-hero > .grid-container { padding-left: 22px; padding-right: 22px; width: 100%; }
	.sekai-section > .grid-container { padding-left: 22px; padding-right: 22px; width: 100%; }
	.sekai-home-intro { max-width: 100%; overflow-wrap: anywhere; padding: 2.45rem 0 2.35rem; }
	.sekai-home-kicker { font-size: .7rem; letter-spacing: .1em; }
	.sekai-home-intro h1 { font-size: clamp(1.55rem, 7.3vw, 1.9rem); line-height: 1.45; }
	.sekai-home-intro p { font-size: .94rem; line-height: 1.8; }
	.sekai-home-links { align-items: stretch; flex-direction: column; }
	.sekai-home-links a { text-align: center; }
	.sekai-section-head { align-items: flex-start; flex-direction: column; gap: .2rem; }
	.sekai-auto-toc { padding: 1.05rem 1.1rem 1.15rem; }
	.sekai-auto-toc .sekai-toc-level-3 { margin-left: .55rem; }
	.sekai-post-card .sekai-axis > span { flex-basis: auto; }
	.sekai-post-excerpt { font-size: .84rem; }
	.single-post .entry-header .sekai-taxonomy-chips {
		gap: .28rem .58rem;
		margin: .5rem 0 .75rem;
	}
	.single-post .entry-header .sekai-axis {
		column-gap: .22rem;
		flex-wrap: wrap;
		row-gap: .2rem;
	}
	.single-post .entry-header .sekai-axis > span {
		flex: 0 0 auto;
		flex-basis: auto;
		font-size: .65rem;
		white-space: nowrap;
	}
	.single-post .entry-header .sekai-axis a {
		font-size: .68rem;
		padding: .16rem .4rem;
		white-space: nowrap;
	}
}
