/*
Theme Name: MANABI Column
Theme URI: https://kagoshima-manabi.com/column/
Author: MANABI
Author URI: https://kagoshima-manabi.com/
Description: 鹿児島中央自習室 MANABI の公式コラム用WordPressテーマです。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: manabi-column
*/

:root {
	--teal: #0abab5;
	--teal-dark: #087d7a;
	--teal-pale: #e8f9f8;
	--navy: #002a5c;
	--ink: #234745;
	--muted: #657d7b;
	--cream: #fffaf7;
	--white: #ffffff;
	--line: #dcebea;
	--shadow: 0 18px 48px rgba(0, 42, 92, 0.09);
	--radius-lg: 30px;
	--radius-md: 20px;
	--serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
	--sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.9;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
}

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

.content-shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

.skip-link,
.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;
}

.skip-link:focus {
	z-index: 9999;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	clip: auto;
	background: var(--white);
	color: var(--navy);
	font-weight: 700;
}

.opening-bar {
	padding: 6px 20px;
	background: var(--navy);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-align: center;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid rgba(10, 186, 181, 0.18);
	background: rgba(255, 250, 247, 0.94);
	backdrop-filter: blur(16px);
}

.header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 36px;
	align-items: center;
	width: min(1200px, calc(100% - 48px));
	min-height: 88px;
	margin-inline: auto;
}

.brand,
.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--navy);
	text-decoration: none;
}

.brand img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgba(0, 42, 92, 0.12);
}

.brand span {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.brand b {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.16em;
}

.brand small,
.footer-brand small {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.site-nav {
	display: flex;
	gap: 28px;
	justify-content: flex-end;
	align-items: center;
}

.site-nav a {
	position: relative;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.site-nav a::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 2px;
	transform: scaleX(0);
	background: var(--teal);
	content: "";
	transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav .is-current::after {
	transform: scaleX(1);
}

.header-cta,
.primary-button,
.light-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.primary-button {
	background: var(--teal);
	color: var(--navy);
	box-shadow: 0 10px 24px rgba(10, 186, 181, 0.2);
}

.header-cta:hover,
.primary-button:hover,
.light-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 42, 92, 0.15);
}

.eyebrow {
	margin: 0 0 10px;
	color: var(--teal-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
}

.archive-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(130deg, var(--teal-pale) 0%, #fff 58%, #fff4ed 100%);
}

.archive-hero::before,
.archive-hero::after {
	position: absolute;
	border-radius: 50%;
	content: "";
}

.archive-hero::before {
	top: -180px;
	right: -90px;
	width: 460px;
	height: 460px;
	border: 1px solid rgba(10, 186, 181, 0.24);
}

.archive-hero::after {
	right: 180px;
	bottom: -95px;
	width: 190px;
	height: 190px;
	background: rgba(10, 186, 181, 0.08);
}

.archive-hero-inner {
	position: relative;
	z-index: 1;
	padding-block: 92px 100px;
}

.archive-hero h1,
.compact-hero h1,
.single-header h1,
.page-main h1,
.not-found h1 {
	margin: 0;
	color: var(--navy);
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.45;
}

.archive-hero h1 {
	max-width: 760px;
	font-size: clamp(36px, 5vw, 62px);
}

.archive-hero h1 em {
	color: var(--teal-dark);
	font-style: normal;
}

.archive-hero-inner > p:last-child {
	max-width: 630px;
	margin: 24px 0 0;
	color: var(--muted);
}

.article-section {
	padding-block: 90px 110px;
}

.section-heading {
	display: flex;
	gap: 32px;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 38px;
}

.section-heading h2,
.footer-cta h2,
.article-note h2,
.empty-state h2 {
	margin: 0;
	color: var(--navy);
	font-family: var(--serif);
	font-weight: 500;
}

.section-heading h2 {
	font-size: 34px;
}

.search-form {
	display: flex;
	width: min(100%, 360px);
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 8px 28px rgba(0, 42, 92, 0.05);
	overflow: hidden;
}

.search-form label {
	display: flex;
	min-width: 0;
	flex: 1;
}

.search-form input[type="search"] {
	min-width: 0;
	flex: 1;
	padding: 13px 6px 13px 20px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 14px;
}

.search-form button,
.search-form input[type="submit"] {
	padding: 10px 20px;
	border: 0;
	background: var(--navy);
	color: var(--white);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.empty-state .search-form {
	margin: 28px auto 0;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.article-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	border: 1px solid rgba(10, 186, 181, 0.16);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: 0 10px 34px rgba(0, 42, 92, 0.06);
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.article-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.card-image {
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--teal-pale);
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.article-card:hover .card-image img {
	transform: scale(1.025);
}

.image-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(140deg, var(--teal-pale), #fff4ed);
	color: var(--teal-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.card-meta,
.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.card-meta span {
	color: var(--teal-dark);
}

.article-card h2 {
	margin: 12px 0 10px;
	color: var(--navy);
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.55;
}

.article-card h2 a {
	text-decoration: none;
}

.article-card h2 a:hover,
.read-more:hover {
	color: var(--teal-dark);
}

.card-content > p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 14px;
}

.read-more {
	margin-top: auto;
	color: var(--navy);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.navigation.pagination {
	margin-top: 52px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: center;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--teal);
	background: var(--teal);
}

.empty-state {
	padding: 70px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--white);
	text-align: center;
}

.empty-state > span {
	color: var(--teal-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.empty-state h2 {
	margin-top: 12px;
	font-size: 30px;
}

.empty-state p {
	margin-bottom: 0;
	color: var(--muted);
}

.compact-hero {
	padding-block: 64px;
	background: linear-gradient(135deg, var(--teal-pale), var(--cream));
}

.compact-hero h1 {
	font-size: clamp(32px, 4vw, 50px);
}

.archive-description {
	max-width: 720px;
	margin-top: 18px;
	color: var(--muted);
}

.archive-description p {
	margin: 0;
}

.single-header {
	padding-block: 72px 48px;
}

.back-link {
	display: inline-block;
	margin-bottom: 30px;
	color: var(--teal-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.single-header h1 {
	max-width: 900px;
	margin-top: 18px;
	font-size: clamp(34px, 5vw, 58px);
}

.single-lead {
	max-width: 820px;
	margin: 24px 0 0;
	color: var(--muted);
	font-size: 18px;
}

.single-thumbnail {
	margin-bottom: 56px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.single-thumbnail img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
	gap: 72px;
	align-items: start;
	padding-bottom: 80px;
}

.article-content {
	min-width: 0;
	font-size: 17px;
	line-height: 2;
}

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

.article-content h2,
.article-content h3,
.article-content h4 {
	color: var(--navy);
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.6;
}

.article-content h2 {
	margin: 3em 0 1.2em;
	padding: 0.2em 0 0.55em 0.7em;
	border-bottom: 1px solid var(--line);
	border-left: 5px solid var(--teal);
	font-size: 30px;
}

.article-content h3 {
	margin: 2.4em 0 0.9em;
	font-size: 24px;
}

.article-content h4 {
	margin: 2em 0 0.8em;
	font-size: 19px;
}

.article-content a {
	color: var(--teal-dark);
}

.article-content img {
	margin-block: 32px;
	border-radius: 18px;
}

.article-content ul,
.article-content ol {
	padding-left: 1.4em;
}

.article-content li + li {
	margin-top: 0.45em;
}

.article-content blockquote {
	margin: 2em 0;
	padding: 24px 28px;
	border: 0;
	border-left: 5px solid var(--teal);
	border-radius: 0 16px 16px 0;
	background: var(--teal-pale);
}

.article-content blockquote > :first-child {
	margin-top: 0;
}

.article-content blockquote > :last-child {
	margin-bottom: 0;
}

.article-content table {
	display: block;
	width: 100%;
	margin-block: 28px;
	border-spacing: 0;
	border-collapse: collapse;
	overflow-x: auto;
}

.article-content th,
.article-content td {
	padding: 12px 15px;
	border: 1px solid var(--line);
	text-align: left;
}

.article-content th {
	background: var(--teal-pale);
	color: var(--navy);
}

.article-content code {
	padding: 0.15em 0.35em;
	border-radius: 5px;
	background: #edf3f3;
	font-size: 0.9em;
}

.article-note {
	position: sticky;
	top: 125px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: 0 12px 38px rgba(0, 42, 92, 0.06);
}

.article-note h2 {
	font-size: 23px;
}

.article-note p:not(.eyebrow) {
	color: var(--muted);
	font-size: 14px;
}

.article-note a {
	color: var(--teal-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding-bottom: 90px;
}

.post-navigation div:last-child {
	text-align: right;
}

.post-navigation a {
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
}

.page-main {
	padding-block: 72px 100px;
}

.page-main h1 {
	margin-bottom: 48px;
	font-size: clamp(34px, 5vw, 54px);
}

.page-main .article-content {
	max-width: 800px;
	margin-inline: auto;
}

.not-found {
	padding-block: 120px 140px;
	text-align: center;
}

.not-found h1 {
	font-size: clamp(34px, 5vw, 54px);
}

.not-found p:not(.eyebrow) {
	margin-bottom: 30px;
	color: var(--muted);
}

.footer-cta {
	background: var(--teal);
}

.footer-cta-inner {
	display: flex;
	gap: 40px;
	justify-content: space-between;
	align-items: center;
	padding-block: 64px;
}

.footer-cta .eyebrow,
.footer-cta h2,
.footer-cta p {
	color: var(--navy);
}

.footer-cta h2 {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.55;
}

.footer-cta p:not(.eyebrow) {
	margin-bottom: 0;
	font-weight: 600;
}

.light-button {
	flex: 0 0 auto;
	background: var(--white);
	color: var(--navy);
}

.site-footer {
	padding-block: 42px;
	background: var(--navy);
	color: var(--white);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 36px;
	align-items: center;
}

.footer-brand {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	color: var(--white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	letter-spacing: 0.17em;
}

.footer-brand small {
	font-family: var(--sans);
	letter-spacing: 0.12em;
}

.footer-nav {
	display: flex;
	gap: 22px;
}

.footer-nav a {
	color: rgba(255, 255, 255, 0.9);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.footer-nav a:hover {
	color: var(--teal);
}

.footer-inner > p {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11px;
	letter-spacing: 0.08em;
}

@media (max-width: 980px) {
	.site-nav {
		display: none;
	}

	.header-inner {
		grid-template-columns: 1fr auto;
	}

	.article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.article-note {
		position: static;
	}

	.footer-cta-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer-inner {
		grid-template-columns: 1fr auto;
	}

	.footer-inner > p {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 680px) {
	.content-shell,
	.header-inner {
		width: min(100% - 32px, 1120px);
	}

	.opening-bar {
		font-size: 9px;
		letter-spacing: 0.12em;
	}

	.header-inner {
		gap: 12px;
		min-height: 76px;
	}

	.brand img {
		width: 46px;
		height: 46px;
	}

	.brand b {
		font-size: 18px;
	}

	.brand small {
		display: none;
	}

	.header-cta {
		min-height: 42px;
		padding-inline: 16px;
		font-size: 11px;
	}

	.archive-hero-inner {
		padding-block: 66px 72px;
	}

	.archive-hero h1 {
		font-size: 36px;
	}

	.archive-hero h1 br,
	.footer-cta h2 br {
		display: none;
	}

	.article-section {
		padding-block: 64px 76px;
	}

	.section-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.search-form {
		width: 100%;
	}

	.article-grid {
		grid-template-columns: 1fr;
	}

	.card-content {
		padding: 21px;
	}

	.compact-hero,
	.single-header,
	.page-main {
		padding-block: 52px;
	}

	.single-header h1 {
		font-size: 34px;
	}

	.single-lead {
		font-size: 16px;
	}

	.single-thumbnail {
		width: 100%;
		margin-bottom: 42px;
		border-radius: 0;
	}

	.article-content {
		font-size: 16px;
		line-height: 1.95;
	}

	.article-content h2 {
		font-size: 25px;
	}

	.article-content h3 {
		font-size: 21px;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation div:last-child {
		text-align: left;
	}

	.footer-cta-inner {
		padding-block: 52px;
	}

	.light-button {
		width: 100%;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.footer-nav {
		flex-wrap: wrap;
	}

	.footer-inner > p {
		grid-column: auto;
	}
}
