/*
Theme Name: Sanpuku Online
Theme URI: https://office-sanpuku.online
Author: Office Sanpuku
Author URI: https://office-sanpuku.online
Description: さんぷくオンライン塾用テーマ。白黒の編集的なレイアウト。
Version: 0.5.36
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanpuku-online
*/

:root {
	--ink: #161616;
	--gray: #3a3a3a;
	--blue: #1a5cad;
	--bg: #fff;
	--line: color-mix(in srgb, var(--ink) 18%, var(--bg));
	--page: 44rem;
	--wide: 58rem;
	--text-sm: 0.875rem;
	--font: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 4.75rem;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--bg);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 500;
	line-height: 2;
	letter-spacing: 0.02em;
}

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

a {
	color: inherit;
}

h1,
h2,
h3 {
	margin: 0 0 0.75rem;
	font-weight: 400;
	letter-spacing: 0.03em;
}

h1 {
	font-size: 1.375rem;
	line-height: 1.7;
	font-feature-settings: "palt";
}

h2 {
	margin-bottom: 1.05rem;
	font-size: 1.2rem;
	line-height: 1.75;
}

h3 {
	font-size: 1.0625rem;
	line-height: 1.7;
}

p {
	margin: 0 0 1rem;
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.is-gray {
	/* 長文は本文色に近い濃さ。ラベル（.label）は --gray のまま階層を残す */
	color: color-mix(in srgb, var(--ink) 94%, var(--bg));
}

.label {
	margin: 0 0 0.6rem;
	color: var(--gray);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}

.label--mark {
	display: inline-block;
	padding-bottom: 0.15em;
	color: var(--blue);
	border-bottom: 1px solid var(--blue);
}

.num {
	margin: 0;
	color: var(--gray);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0.85rem 1.25rem;
}

.site-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.03em;
}

.site-title a {
	text-decoration: none;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.1rem 1.35rem;
	font-size: var(--text-sm);
}

.site-nav a {
	color: var(--gray);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--ink);
}

.site-nav__cta {
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--blue);
	border-radius: 2px;
	background: var(--blue);
	color: var(--bg) !important;
}

.site-nav__cta:hover,
.site-nav__cta[aria-current="page"] {
	color: var(--bg) !important;
	opacity: 0.85;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 0.875rem;
}

.nav-toggle__bars span {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 1.5px;
	background: currentColor;
}

.nav-toggle__bars span:nth-child(1) {
	top: 0;
}

.nav-toggle__bars span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.nav-toggle__bars span:nth-child(3) {
	bottom: 0;
}

.nav-overlay,
.nav-drawer__close {
	display: none;
}

body.is-nav-lock {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

.site-main {
	max-width: var(--page);
	margin: 0 auto;
	padding: 0 1.25rem 4rem;
}

.site-main--page {
	padding-top: 2.5rem;
}

.hero {
	padding: 3.25rem 0 2.75rem;
}

.hero__headline {
	display: grid;
	gap: 1.25rem;
	align-items: center;
	margin-bottom: 1.25rem;
}

.hero__headline h1 {
	margin-bottom: 0;
}

.hero__line {
	display: block;
}

.hero h1 {
	font-size: 1.5rem;
	font-weight: 700;
}

.hero__visual {
	margin: 0;
	justify-self: center;
	width: min(100%, 7.25rem);
}

.hero__visual img {
	display: block;
	width: 100%;
	height: auto;
}

.hero__lead {
	max-width: none;
}

@media (min-width: 801px) {
	.hero__headline {
		grid-template-columns: minmax(0, 1fr) 7.5rem;
		gap: 1.5rem 1.75rem;
		align-items: center;
		margin-bottom: 1.5rem;
	}

	.hero__visual {
		justify-self: end;
		width: 7.5rem;
		max-width: 7.5rem;
	}

	.hero__line {
		white-space: nowrap;
	}
}

.hl {
	margin: 0 -0.1em;
	padding: 0.1em 0.15em 0.22em;
	background-color: color-mix(in srgb, #fff176 92%, transparent);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	color: inherit;
	font-weight: 500;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
}

.btn {
	display: inline-block;
	padding: 0.55rem 1rem;
	border: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	text-decoration: none;
	font: inherit;
	font-size: var(--text-sm);
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: opacity 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn--solid {
	padding-right: 1.35rem;
	padding-left: 1.35rem;
	border-color: var(--blue);
	border-radius: 2px;
	background: var(--blue);
	color: var(--bg);
	font-size: 0.9375rem;
}

.btn:hover {
	opacity: 0.72;
}

.section {
	padding: 2.75rem 0;
	border-bottom: 1px solid var(--line);
}

.section--framed {
	margin-top: 2.75rem;
	padding: 1.75rem 1.5rem 2rem;
	border: 1px solid var(--line);
}

.section--framed + .section {
	border-top: 0;
}

.section--end {
	border-bottom: 0;
}

h3 + .stack {
	margin-top: 0.75rem;
}

.stack {
	margin-top: 1.5rem;
}

.stack li {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: 0.75rem 1rem;
	padding: 1.15rem 0;
	border-top: 1px solid var(--line);
}

.stack li:last-child {
	padding-bottom: 0;
}

.plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.pricing-note {
	margin-top: 1.5rem;
}

.pricing-note + .pricing-note {
	margin-top: 0.65rem;
}

.plan {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--ink);
}

.plan__name {
	margin: 0 0 0.35rem;
}

.plan__name + .label {
	margin-top: 0;
}

.plan__price {
	margin: 0.15rem 0 0.35rem;
	font-size: 1rem;
}

.plan__price span {
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.plan__overseas {
	margin: 0 0 0.5rem;
}

.plan__schedule {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.75rem;
	margin: 0.75rem 0 1rem;
}

.plan__times-group {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.plan__times-label {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: 400;
}

.plan__times,
.plan__includes {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: var(--text-sm);
}

.plan__times {
	gap: 0.15rem;
	margin: 0;
}

.blocks {
	display: grid;
	gap: 1.25rem;
	margin: 1.75rem 0;
}

.board-shot {
	margin: 1rem 0 0;
}

.board-shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
}

.board-shot__cap {
	margin-top: 0.55rem;
	font-size: var(--text-sm);
	line-height: 1.65;
}

.video {
	margin: 1.5rem 0 0;
}

.video__title {
	margin: 0 0 0.6rem;
}

.video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ink);
}

.video__frame iframe,
.video__play,
.video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video__play {
	display: block;
	padding: 0;
	color: inherit;
	background: none;
	cursor: pointer;
}

.video__poster {
	object-fit: cover;
}

.video__play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	transform: translate(-50%, -50%);
	box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 28%);
}

.video__play-icon::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 0.55rem 0 0.55rem 0.9rem;
	border-color: transparent transparent transparent var(--ink);
	transform: translate(-50%, -50%);
}

.video__play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.defs {
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.defs + .defs {
	margin-top: 1.5rem;
}

.results {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.results__lead {
	margin-bottom: 0.85rem;
	font-size: var(--text-sm);
}

.results__clip {
	position: relative;
	max-height: 7.5rem;
	overflow: hidden;
}

.results__clip.is-open {
	max-height: none;
	overflow: visible;
}

.results__clip::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4.5rem;
	background: linear-gradient(to bottom, transparent, var(--bg) 75%);
	pointer-events: none;
}

.results__clip.is-open::after {
	display: none;
}

.results__content dl {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0.55rem 1rem;
}

.results__content dt {
	margin: 0;
	color: var(--gray);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
}

.results__content dd {
	margin: 0;
}

.results__more {
	position: absolute;
	z-index: 1;
	bottom: 0.65rem;
	left: 50%;
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid var(--ink);
	border-radius: 2px;
	background: var(--bg);
	color: var(--ink);
	font: inherit;
	font-size: var(--text-sm);
	letter-spacing: 0.04em;
	white-space: nowrap;
	cursor: pointer;
	transform: translateX(-50%);
}

.results__more:hover {
	opacity: 0.72;
}

.results__clip.is-open .results__more {
	position: static;
	display: block;
	margin: 1rem auto 0;
	transform: none;
}

.defs dl {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 0.55rem 1rem;
}

.defs dt {
	margin: 0;
	color: var(--gray);
	font-weight: 400;
}

.defs dd {
	margin: 0;
}

.faq {
	margin-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-question {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0.95rem 1.5rem 0.95rem 0;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5h8M5 1v8' stroke='%23161616' stroke-width='1' fill='none'/%3E%3C/svg%3E") right center no-repeat;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.faq-item.is-open .faq-question {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 5h8' stroke='%23161616' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

.faq-answer {
	max-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-answer {
	max-height: 40rem;
	padding: 0 0 1rem;
	opacity: 1;
}

/* Soft section reveal (front page). Kept even when OS “reduce motion” is on,
   because this is a light fade — vestibular-heavy motion is avoided. */
.js-reveal .site-main > .section {
	opacity: 0;
	transform: translateY(1rem);
	transition: opacity 0.7s ease, transform 0.7s ease;
	will-change: opacity, transform;
}

.js-reveal .site-main > .section.is-revealed {
	opacity: 1;
	transform: none;
	will-change: auto;
}

.js-reveal.js-reveal--soft .site-main > .section {
	transform: none;
	transition: opacity 0.45s ease;
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 2.25rem 1.25rem 2.5rem;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem 1.75rem;
	max-width: var(--wide);
	margin: 0 auto 1.75rem;
	align-items: start;
}

.site-footer__name {
	margin: 0 0 0.65rem;
	font-size: 1.0625rem;
	font-weight: 400;
	letter-spacing: 0.03em;
}

.site-footer .is-gray {
	font-size: var(--text-sm);
}

.site-footer__col--about .is-gray {
	max-width: 28rem;
	margin: 0;
	line-height: 1.9;
}

.site-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: var(--text-sm);
}

.site-footer__links a {
	color: inherit;
	text-decoration: none;
}

.site-footer__links a:hover {
	color: var(--ink);
}

.site-footer__cta {
	margin: 0 0 0.85rem;
}

.site-footer__cta .btn {
	font-size: var(--text-sm);
}

.site-footer__copy {
	max-width: var(--wide);
	margin: 0 auto;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
}

.page-article__header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}

.page-article__header .actions {
	margin-top: 1.25rem;
}

.landing-block {
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line);
}

.landing-block:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.landing-block h2 {
	margin: 0 0 1rem;
}

.landing-block .plans {
	margin-top: 1.25rem;
}

.landing-block--end {
	margin-bottom: 0.5rem;
}

.region-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.region-list li {
	margin: 0;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--line);
	font-size: var(--text-sm);
}

.region-list li::before {
	content: none;
}

.stack__more {
	margin: 0.65rem 0 0;
}

.stack__more a {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.page-article__header + .stack {
	margin-top: 0;
}

.page-article__header + .stack > li:first-child {
	border-top: 0;
}

.page-article__thumb {
	margin: 0 0 1.75rem;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: color-mix(in srgb, var(--ink) 8%, var(--bg));
}

.page-article__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-article__body {
	max-width: none;
	line-height: 2.15;
}

/* ブログ本文のみ両端揃え */
.single-post .page-article__body p {
	text-align: justify;
}

/* フロントページ本文も両端揃え（ラベル・ボタン行は除く） */
body.home .site-main p:not(.label):not(.actions) {
	text-align: justify;
}

/* 単元チェックリストなど記事内の表は、例外的に小さめ */
.single-post .page-article__body table,
.single-post .page-article__body .wp-block-table {
	font-size: var(--text-sm);
	line-height: 1.65;
}

.single-post .page-article__body .wp-block-table table {
	font-size: inherit;
	line-height: inherit;
}

.page-article__body h2 {
	color: var(--blue);
}

.page-article__body h3 {
	display: inline-block;
	margin-top: 1.75rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.2rem;
	border-bottom: 2px solid var(--blue);
}

.page-article__body ul {
	margin: 0.85rem 0 1.25rem;
	padding: 0 0 0 0.75rem;
}

.page-article__body ul li {
	position: relative;
	padding-left: 1.15rem;
}

.page-article__body ul li + li {
	margin-top: 0.35rem;
}

.page-article__body ul li::before {
	content: "";
	position: absolute;
	top: 0.78em;
	left: 0;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 50%;
	background: var(--blue);
}

.page-article__body > *:last-child {
	margin-bottom: 0;
}

.page-article__body hr,
.page-article__body .wp-block-separator {
	border: 0;
	height: 0;
	margin: 2.25rem 0;
	background: none;
	border-top: 1px dotted color-mix(in srgb, var(--gray) 45%, var(--bg));
}

.page-article__body .wp-block-separator.is-style-wide,
.page-article__body .wp-block-separator.is-style-dots {
	border-top: 1px dotted color-mix(in srgb, var(--gray) 45%, var(--bg));
	width: 100%;
}

.legal-body {
	max-width: none;
}

.legal-list {
	margin: 0;
}

.legal-list__row {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 0.75rem 1.25rem;
	padding: 1rem 0;
	border-top: 1px solid var(--line);
}

.legal-list__row:last-child {
	border-bottom: 1px solid var(--line);
}

.legal-list dt {
	margin: 0;
	color: var(--gray);
	font-size: var(--text-sm);
	font-weight: 400;
	letter-spacing: 0.04em;
}

.legal-list dd {
	margin: 0;
}

.legal-list dd a {
	display: inline-block;
	margin-left: 0.5rem;
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--blue);
}

.policy-body {
	max-width: 40rem;
}

.policy-section {
	padding: 1.15rem 0;
	border-top: 1px solid var(--line);
}

.policy-section:last-child {
	border-bottom: 1px solid var(--line);
}

.policy-section h2 {
	margin-bottom: 0.55rem;
	font-size: 1rem;
}

.policy-section p {
	margin: 0;
}

.policy-section a {
	margin-left: 0.35rem;
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--blue);
}

.site-footer__copy a {
	color: inherit;
	text-decoration: none;
}

.site-footer__copy a:hover {
	text-decoration: underline;
}

.post-footer {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.author-box {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.author-box__name {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.25rem;
}

.author-box__meta {
	margin: 0;
}

.author-box__bio {
	margin: 0.85rem 0 0;
}

.author-box__more {
	margin: 0.85rem 0 0;
	font-size: var(--text-sm);
}

.author-box__more a {
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--blue);
}

.author-box__more a:hover {
	opacity: 0.8;
}

.blog-header {
	margin-bottom: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
}

.blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 1rem;
	font-size: var(--text-sm);
}

.blog-filters a {
	color: inherit;
	text-decoration: none;
}

.blog-filters a:hover,
.blog-filters a[aria-current="page"] {
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
}

.post-list {
	display: grid;
	gap: 0;
}

.post-card {
	display: grid;
	grid-template-columns: 11.5rem minmax(0, 1fr);
	gap: 1.25rem 1.5rem;
	align-items: start;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.post-card:first-child {
	padding-top: 0;
}

.post-card__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: color-mix(in srgb, var(--ink) 8%, var(--bg));
	text-decoration: none;
}

.post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, var(--bg)) 0%, color-mix(in srgb, var(--ink) 4%, var(--bg)) 100%);
}

.post-card__body {
	min-width: 0;
}

.post-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a:hover {
	opacity: 0.72;
}

.post-card__meta {
	margin: 0;
}

.post-card__sep {
	margin: 0 0.35rem;
}

.post-card__tags,
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	margin: 0.45rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
}

.post-card__tags a,
.post-tags a {
	color: var(--gray);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--gray) 35%, var(--bg));
}

.post-card__tags a:hover,
.post-tags a:hover {
	color: var(--ink);
}

.page-article__header .post-tags {
	margin-top: 0.65rem;
}

.post-card__excerpt {
	margin-top: 0.65rem;
}

.post-card__more {
	margin-top: 0.75rem;
	font-size: var(--text-sm);
}

.post-card__more a {
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--blue);
}

.navigation.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 0.85rem;
	margin-top: 2rem;
	font-size: var(--text-sm);
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.85rem;
	justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span {
	text-decoration: none;
}

.navigation.pagination .current {
	color: var(--ink);
	font-weight: 400;
}

.contact-paths {
	margin-top: 0.5rem;
}

.contact-paths__title {
	margin-bottom: 0.35rem;
	font-size: 1.0625rem;
}

.contact-paths__title a {
	text-decoration: none;
}

.contact-paths__title a:hover {
	opacity: 0.72;
}

.contact-paths__more {
	margin-top: 0.55rem;
	font-size: var(--text-sm);
}

.contact-paths__more a {
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--blue);
}

.contact-paths__guides {
	margin-top: 1.5rem;
	font-size: var(--text-sm);
}

.contact-paths__guides a {
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid var(--blue);
}

/* Local illustration size trials (gray dummies) */
.section-visual {
	display: grid;
	gap: 1rem;
	align-items: end;
	margin-bottom: 1.25rem;
}

.section-visual__copy h2 {
	margin-bottom: 0.35rem;
}

.section-visual__copy h3 {
	margin-bottom: 0;
}

.section-visual__media {
	margin: 0;
	justify-self: start;
	width: min(100%, 7.5rem);
}

.section-visual--cta .section-visual__media,
#pricing .section-visual__media {
	width: min(100%, 7.5rem);
}

.section-visual__media img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 801px) {
	.section-visual {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 1.25rem 1.5rem;
		align-items: end;
	}

	.section-visual__media {
		justify-self: end;
	}
}

.page-article__header .label a {
	color: inherit;
	text-decoration: none;
}

.page-article__header .label:not(.label--mark) a {
	border-bottom: 1px solid currentColor;
}

.contact-form {
	display: grid;
	gap: 1rem;
}

.contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.contact-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: var(--text-sm);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--bg);
	color: var(--ink);
	font: inherit;
}

.contact-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.form-notice {
	margin-bottom: 1.25rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	font-size: var(--text-sm);
}

@media (max-width: 800px) {
	html {
		scroll-padding-top: 4.25rem;
	}

	.site-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 0.75rem 1rem;
		padding: 0.7rem 1.1rem;
	}

	.site-title {
		grid-column: 1;
		grid-row: 1;
		font-size: 1rem;
		min-width: 0;
	}

	.nav-toggle {
		display: inline-flex;
		grid-column: 2;
		grid-row: 1;
		z-index: 1;
	}

	.nav-shell {
		position: fixed;
		inset: 0;
		z-index: 50;
		visibility: hidden;
		pointer-events: none;
	}

	.site-header.is-nav-open .nav-shell {
		visibility: visible;
		pointer-events: auto;
	}

	.nav-overlay {
		display: block;
		position: absolute;
		inset: 0;
		background: rgb(0 0 0 / 45%);
		opacity: 0;
		transition: opacity 0.28s ease;
		cursor: pointer;
	}

	.site-header.is-nav-open .nav-overlay {
		opacity: 1;
	}

	.nav-drawer {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		height: 100dvh;
		padding: 1rem 1.25rem 2rem;
		background: var(--bg);
		box-shadow: -8px 0 24px rgb(0 0 0 / 12%);
		transform: translateX(100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.site-header.is-nav-open .nav-drawer {
		transform: translateX(0);
	}

	.nav-drawer__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		align-self: flex-end;
		width: 2.5rem;
		height: 2.5rem;
		margin: 0 0 0.75rem;
		padding: 0;
		border: 0;
		background: none;
		color: var(--ink);
		cursor: pointer;
	}

	.nav-drawer__close-icon {
		position: relative;
		display: block;
		width: 1.15rem;
		height: 1.15rem;
	}

	.nav-drawer__close-icon::before,
	.nav-drawer__close-icon::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		height: 1.5px;
		background: currentColor;
	}

	.nav-drawer__close-icon::before {
		transform: translateY(-50%) rotate(45deg);
	}

	.nav-drawer__close-icon::after {
		transform: translateY(-50%) rotate(-45deg);
	}

	.site-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		padding: 0;
	}

	.site-nav a {
		padding: 0.95rem 0;
		border-bottom: 1px solid var(--line);
		font-size: 1rem;
	}

	.site-nav a:last-child {
		border-bottom: 0;
	}

	.site-nav__cta {
		align-self: stretch;
		margin-top: 1rem;
		padding: 0.75rem 1rem;
		text-align: center;
	}

	.hero {
		padding: 2.25rem 0 2.25rem;
	}

	.hero h1 {
		font-size: 1.35rem;
	}

	.hero__visual {
		width: min(100%, 6.5rem);
	}

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

	.actions .btn {
		text-align: center;
	}

	.plans,
	.site-footer__inner,
	.defs dl,
	.results__content dl,
	.legal-list__row {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		gap: 1.75rem;
	}

	.defs dt,
	.results__content dt {
		margin-top: 0.6rem;
	}

	.defs dt:first-child,
	.results__content dt:first-child {
		margin-top: 0;
	}

	.results__more {
		white-space: normal;
		text-align: center;
		max-width: calc(100% - 1.5rem);
	}

	.video {
		margin-top: 1.25rem;
	}

	.post-card {
		grid-template-columns: 1fr;
		gap: 0.9rem;
	}

	.post-card__thumb {
		max-width: 20rem;
	}
}

@media (min-width: 481px) and (max-width: 800px) {
	.nav-drawer {
		width: 22rem;
		max-width: 22rem;
	}
}

@media (min-width: 801px) {
	/* PC: 保護者向けに本文・見出し・ナビをわずかに大きく */
	html {
		font-size: 17px;
	}

	body {
		font-size: 1rem;
		line-height: 2.1;
	}

	h1 {
		line-height: 1.85;
	}

	h2 {
		line-height: 1.9;
	}

	h3 {
		line-height: 1.85;
	}

	.hero h1 {
		line-height: 1.95;
	}

	/* 受講料の但し書きは一段小さく */
	#pricing .pricing-note {
		font-size: var(--text-sm);
		line-height: 1.85;
	}

	/* 講師紹介：略歴・合格実績は注記サイズ */
	#instructor .defs,
	#instructor .results {
		font-size: var(--text-sm);
		line-height: 1.9;
	}

	.nav-shell,
	.nav-drawer {
		display: contents;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 14.5px;
	}

	.site-main {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	.hero h1 {
		font-size: 1.3rem;
	}

	.plan__times-label {
		font-size: 0.8125rem;
	}
}
