/* =========================================================
   YUMINEKO
   教材・イラスト利用ガイドライン
   /assets/css/content-guideline.css
========================================================= */

:root {
	--cg-ink: #24383A;
	--cg-muted: #6F7E80;
	--cg-main: #8BBABB;
	--cg-main-deep: #5E8F91;
	--cg-dark: #365F61;
	--cg-soft: #F3F8F8;
	--cg-warm: #F4EFE7;
	--cg-line: #DCE9E9;
	--cg-white: #FFFFFF;
	--cg-radius: 22px;
	--cg-shadow: 0 14px 38px rgba(54, 95, 97, .08);
}

/* =========================================================
   BASE
========================================================= */

.content-guideline-page {
	overflow: hidden;
	color: var(--cg-ink);
	background: var(--cg-white);
}

.content-guideline-page *,
.content-guideline-page *::before,
.content-guideline-page *::after {
	box-sizing: border-box;
}

.cg-container {
	width: min(1040px, calc(100% - 48px));
	margin-inline: auto;
}

.cg-content {
	padding-top: 76px;
	padding-bottom: 110px;
}

.content-guideline-page h1,
.content-guideline-page h2,
.content-guideline-page h3,
.content-guideline-page p {
	margin-top: 0;
}

.content-guideline-page p,
.content-guideline-page li {
	line-height: 1.95;
}

.content-guideline-page a {
	color: var(--cg-main-deep);
}

/* =========================================================
   HERO
========================================================= */

.cg-hero {
	position: relative;
	overflow: hidden;
	padding: 92px 0 82px;
	background:
		linear-gradient(
			135deg,
			#F5FAFA 0%,
			#FFFFFF 62%,
			#F4EFE7 100%
		);
	border-bottom: 1px solid var(--cg-line);
}

.cg-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -180px;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: rgba(139, 186, 187, .12);
}

.cg-eyebrow {
	position: relative;
	z-index: 1;
	margin: 0 0 16px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .17em;
	color: var(--cg-main-deep);
}

.cg-hero h1 {
	position: relative;
	z-index: 1;
	margin-bottom: 20px;
	font-size: clamp(38px, 5vw, 58px);
	line-height: 1.3;
	letter-spacing: -.03em;
}

.cg-hero__lead {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin-bottom: 20px;
	color: var(--cg-muted);
	font-size: 16px;
}

.cg-hero__date {
	position: relative;
	z-index: 1;
	margin-bottom: 0;
	font-size: 12px;
	color: #899698;
}

/* =========================================================
   INTRO
========================================================= */

.cg-intro {
	margin-bottom: 54px;
	padding: 30px 34px;
	border-left: 4px solid var(--cg-main);
	background: var(--cg-soft);
	border-radius: 0 18px 18px 0;
}

.cg-intro p {
	margin-bottom: 14px;
	color: var(--cg-muted);
}

.cg-intro p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   TOC
========================================================= */

.cg-toc {
	margin-bottom: 76px;
	padding: 34px;
	border: 1px solid var(--cg-line);
	border-radius: var(--cg-radius);
	background: #FFFFFF;
	box-shadow: var(--cg-shadow);
}

.cg-toc__title {
	margin: 0 0 22px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--cg-main-deep);
}

.cg-toc ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 44px;
	margin: 0;
	padding-left: 22px;
}

.cg-toc li {
	font-size: 13px;
	color: var(--cg-muted);
}

.cg-toc a {
	color: var(--cg-ink);
	text-decoration: none;
}

.cg-toc a:hover {
	color: var(--cg-main-deep);
	text-decoration: underline;
}

/* =========================================================
   SECTION
========================================================= */

.cg-section {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 38px;
	padding: 56px 0;
	border-top: 1px solid var(--cg-line);
	scroll-margin-top: 100px;
}

.cg-section:last-of-type {
	border-bottom: 1px solid var(--cg-line);
}

.cg-section__number {
	padding-top: 3px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--cg-main);
}

.cg-section__en {
	margin: 0 0 8px !important;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--cg-main-deep);
}

.cg-section h2 {
	margin: 0 0 26px;
	font-size: clamp(23px, 3vw, 30px);
	line-height: 1.5;
	letter-spacing: -.02em;
}

.cg-section__body > p {
	color: var(--cg-muted);
}

.cg-section__body > ul,
.cg-section__body > ol {
	margin: 0;
	padding-left: 1.5em;
}

.cg-section__body > ul > li,
.cg-section__body > ol > li {
	margin-bottom: 12px;
	padding-left: .4em;
	color: var(--cg-muted);
}

.cg-section__body > ul > li:last-child,
.cg-section__body > ol > li:last-child {
	margin-bottom: 0;
}

/* =========================================================
   NOTE
========================================================= */

.cg-note {
	margin-top: 28px;
	padding: 25px 28px;
	border: 1px solid rgba(139, 186, 187, .34);
	border-radius: 16px;
	background: var(--cg-soft);
}

.cg-note strong {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
}

.cg-note p {
	margin-bottom: 0;
	font-size: 13px;
	color: var(--cg-muted);
}

/* =========================================================
   CHECKLIST
========================================================= */

.cg-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.cg-checklist__col {
	padding: 24px;
	border: 1px solid var(--cg-line);
	border-radius: 16px;
	background: #fff;
}

.cg-checklist__col h3 {
	margin-bottom: 12px;
	font-size: 17px;
	color: var(--cg-ink);
}

.cg-checklist__col ul {
	margin: 0;
	padding-left: 1.4em;
}

.cg-checklist__col li {
	color: var(--cg-muted);
}

/* =========================================================
   SAMPLE
========================================================= */

.cg-sample {
	margin-top: 18px;
}

.cg-sample__label {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--cg-main-deep);
	letter-spacing: .08em;
}

.cg-sample__box {
	padding: 16px 18px;
	border: 1px dashed var(--cg-main);
	border-radius: 14px;
	background: var(--cg-soft);
	color: var(--cg-ink);
	font-size: 14px;
}

/* =========================================================
   CONTACT
========================================================= */

.cg-contact {
	margin-top: 26px;
	padding: 26px 28px;
	border-radius: 17px;
	background: var(--cg-soft);
}

.cg-contact p {
	margin-bottom: 8px;
}

.cg-contact p:last-child {
	margin-bottom: 0;
}

.cg-contact a {
	font-weight: 700;
	text-decoration: none;
}

.cg-contact a:hover {
	text-decoration: underline;
}

/* =========================================================
   FOOTER
========================================================= */

.cg-footer {
	margin-top: 78px;
	padding: 52px;
	border-radius: 26px;
	background: var(--cg-dark);
	color: #FFFFFF;
}

.cg-footer__label {
	margin: 0 0 10px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .15em;
	color: #C7DDDD;
}

.cg-footer h2 {
	margin-bottom: 30px;
	font-size: 28px;
	color: #FFFFFF;
}

.cg-footer__links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.cg-footer__links a {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 128px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 16px;
	background: rgba(255, 255, 255, .06);
	color: #FFFFFF;
	text-decoration: none;
	transition:
		transform .2s ease,
		background .2s ease;
}

.cg-footer__links a:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .10);
}

.cg-footer__links span {
	margin-bottom: 14px;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .13em;
	color: #BFD8D8;
}

.cg-footer__links strong {
	padding-right: 28px;
	font-size: 14px;
	line-height: 1.6;
}

.cg-footer__links em {
	position: absolute;
	right: 20px;
	bottom: 18px;
	font-style: normal;
}

/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 820px) {

	.cg-hero {
		padding: 72px 0 66px;
	}

	.cg-content {
		padding-top: 60px;
		padding-bottom: 84px;
	}

	.cg-toc ol {
		grid-template-columns: minmax(0, 1fr);
	}

	.cg-section {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 24px;
	}

	.cg-checklist {
		grid-template-columns: 1fr;
	}

	.cg-footer {
		padding: 38px;
	}

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

/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 600px) {

	.cg-container {
		width: min(100% - 32px, 1040px);
	}

	.cg-hero {
		padding: 56px 0 52px;
	}

	.cg-hero h1 {
		font-size: 34px;
	}

	.cg-hero__lead {
		font-size: 14px;
	}

	.cg-content {
		padding-top: 42px;
		padding-bottom: 70px;
	}

	.cg-intro {
		margin-bottom: 38px;
		padding: 22px;
	}

	.cg-toc {
		margin-bottom: 44px;
		padding: 24px 22px;
	}

	.cg-section {
		display: block;
		padding: 42px 0;
	}

	.cg-section__number {
		margin-bottom: 10px;
	}

	.cg-section h2 {
		margin-bottom: 22px;
		font-size: 23px;
	}

	.cg-section__body > ul,
	.cg-section__body > ol {
		padding-left: 1.25em;
	}

	.cg-note,
	.cg-contact,
	.cg-checklist__col {
		padding: 22px;
	}

	.cg-footer {
		margin-top: 52px;
		padding: 30px 22px;
	}

	.cg-footer h2 {
		font-size: 24px;
	}

	.cg-footer__links {
		grid-template-columns: 1fr;
	}
}