@charset "utf-8";

.p-after {
	--after-primary: #2d4390;
	--after-accent: #2ca89f;
	--after-text: #333;
	--after-muted: #667085;
	--after-border: #dfe4ec;
	--after-soft: #f4f7fb;
	--after-soft-green: #eef8f6;
	--after-body: clamp(1rem, .965rem + .17vw, 1.125rem);
	--after-heading: clamp(2rem, 3vw, 2.75rem);
	width: 100%;
	color: var(--after-text);
}

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

.p-after__container { width: min(100% - 40px, 1120px); margin: 0 auto; }
.p-after__container--narrow { max-width: 900px; }

.p-after__hero {
	position: relative;
	overflow: hidden;
	padding: 42px 0 50px;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(0, 119, 0, .18), transparent 30%),
		radial-gradient(circle at 90% 18%, rgba(255, 102, 0, .16), transparent 26%),
		linear-gradient(135deg, rgba(246, 251, 246, .88) 0%, rgba(255, 255, 255, .80) 55%, rgba(255, 249, 241, .88) 100%),
		url("../../../images/set-course/top_slide_01_03_pc.webp");
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-bottom: 1px solid var(--after-border);
}

.p-after__hero-inner { min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.p-after__eyebrow, .p-after__label { margin: 0 0 12px; color: var(--after-primary); font-size: .875rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; }
.p-after__hero-title { max-width: 900px; margin: 0; color: var(--after-text); font-family: var(--font-family-serif, "Yu Mincho", "YuMincho", serif); font-size: clamp(2.15rem, 4.2vw, 3.65rem); line-height: 1.35; letter-spacing: .035em; }
.p-after__hero-lead { max-width: 760px; margin: 20px 0 0; color: #444; font-size: clamp(1.05rem, 1.02rem + .2vw, 1.25rem); line-height: 1.9; }

.p-after__section { padding: 76px 0; }
.p-after__section--soft { background: var(--after-soft-green); }
.p-after__intro { padding-top: 64px; padding-bottom: 58px; }
.p-after__intro p, .p-after__container > p:not(.p-after__label):not(.p-after__note), .p-after__feature-body > p:not(.p-after__label), .p-after__support p { margin: 18px 0 0; font-size: var(--after-body); line-height: 1.95; }
.p-after__section-title { margin: 0; font-family: var(--font-family-serif, "Yu Mincho", "YuMincho", serif); font-size: var(--after-heading); line-height: 1.55; letter-spacing: .025em; }
.p-after__section-heading { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.p-after__section-heading .p-after__label { margin-bottom: 8px; }

.p-after__overview { padding-top: 64px; padding-bottom: 72px; background: #f8f7f3; }
.p-after__topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.p-after__topic { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 16px 18px; border: 1px solid var(--after-border); background: #fff; color: var(--after-text); font-weight: 700; line-height: 1.6; text-decoration: none; }
.p-after__topic span { color: var(--after-accent); font-size: .82rem; letter-spacing: .06em; }
.p-after__topic:hover, .p-after__topic:focus-visible { border-color: var(--after-accent); color: var(--after-primary); }

.p-after__related-link { margin-top: 24px !important; }
.p-after__related-link a, .p-after__text-link, .p-after__support-links a { color: var(--after-primary); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.p-after__link-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }
.p-after__text-link { line-height: 1.8; }

.p-after__feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
.p-after__feature-grid--media-right .p-after__feature-body { grid-column: 1; grid-row: 1; }
.p-after__feature-grid--media-right .p-after__image { grid-column: 2; grid-row: 1; }
.p-after__feature { display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1.22fr); gap: 24px; align-items: center; padding: 26px; border: 1px solid var(--after-border); background: #fff; }
.p-after__feature + .p-after__feature { margin-top: 20px; }
.p-after__image, .p-after__inline-image { margin: 0; }
.p-after__image img { display: block; width: 100%; height: auto; object-fit: contain; }
.p-after__image--wide img { aspect-ratio: 4 / 3; object-fit: cover; }
.p-after__inline-image { max-width: 520px; margin-top: 24px; }
.p-after__inline-image img { display: block; width: 100%; height: auto; }
.p-after__feature-body h3 { margin: 0; color: var(--after-text); font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.55; }
.p-after__feature-body > p:not(.p-after__label) { margin-top: 14px; }
.p-after ruby { ruby-position: over; }
.p-after rt { font-size: .58em; }

.p-after__timeline { background: var(--after-soft); }
.p-after__table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--after-border); background: #fff; -webkit-overflow-scrolling: touch; }
.p-after__table { width: 100%; border-collapse: collapse; font-size: var(--after-body); line-height: 1.75; }
.p-after__table th, .p-after__table td { padding: 18px 22px; border-bottom: 1px solid var(--after-border); text-align: left; vertical-align: top; }
.p-after__table thead th { background: #eef2f8; color: var(--after-primary); font-weight: 700; }
.p-after__table tbody th { width: 25%; color: var(--after-text); font-weight: 700; }
.p-after__table tr:last-child > * { border-bottom: 0; }
.p-after__note { margin: 14px 0 0; color: var(--after-muted); font-size: .9rem; line-height: 1.7; }

.p-after__religion-list { margin: 26px 0 0; padding: 0; border-top: 1px solid var(--after-border); list-style: none; }
.p-after__religion-list li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--after-border); font-size: var(--after-body); line-height: 1.8; }
.p-after__religion-list strong { color: var(--after-primary); }

.p-after__support { padding: 70px 0; background: #f8f7f3; }
.p-after__support-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 42px; align-items: center; }
.p-after__support-links { display: grid; gap: 12px; }
.p-after__support-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--after-border); line-height: 1.7; }
.p-after__support-phone a { color: var(--after-primary); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 767px) {
	.p-after__container { width: min(100% - 32px, 1120px); }
	.p-after__hero { padding: 24px 0; background-position: 62% center; }
	.p-after__hero-inner { min-height: 240px; }
	.p-after__hero-title { font-size: clamp(1.9rem, 8vw, 2.45rem); }
	.p-after__hero-lead { margin-top: 14px; font-size: 1rem; }
	.p-after__section { padding: 54px 0; }
	.p-after__intro { padding: 46px 0; }
	.p-after__section-title { font-size: clamp(1.65rem, 6vw, 2rem); }
	.p-after__section-heading { margin-bottom: 24px; text-align: left; }
	.p-after__topic-grid { grid-template-columns: 1fr; gap: 8px; }
	.p-after__topic { min-height: 58px; padding: 13px 15px; }
	.p-after__feature-grid { grid-template-columns: 1fr; gap: 20px; }
	.p-after__feature-grid--media-right .p-after__feature-body,
	.p-after__feature-grid--media-right .p-after__image { grid-column: auto; grid-row: auto; }
	.p-after__feature { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
	.p-after__feature + .p-after__feature { margin-top: 14px; }
	.p-after__image { max-width: 100%; }
	.p-after__image--wide img { aspect-ratio: 16 / 10; }
	.p-after__link-row { flex-direction: column; gap: 12px; }
	.p-after__table { min-width: 520px; }
	.p-after__table th, .p-after__table td { padding: 14px 16px; }
	.p-after__religion-list li { grid-template-columns: 1fr; gap: 4px; }
	.p-after__support { padding: 54px 0; }
	.p-after__support-inner { grid-template-columns: 1fr; gap: 24px; }
}
