* {
	box-sizing: border-box;
}

.cio-history-modal__card {
	overflow: hidden;
	background: #fff;
	border-radius: 22px;
}

/* ここが画像ではなく、CSSとテキストで作成した上部エリアです */
.cio-history-modal__visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 230px;
	padding: 42px 16px 38px;
	border-radius: 22px 22px 0 0;
	text-align: center;
}

.c1 {
	background: #f3f1f7;
}

.c2 {
	background: #EAE6F2;
}

.c3 {
	background: #E2DBED;
}

.c4 {
	background: #D5CCE4;
}

.cio-history-modal__year {
	margin: 0 0 18px;
	color: #000;
	font-family: "Roboto", "Arial", sans-serif;
	font-size: 19px;
	font-weight: 300;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.cio-history-modal__main-copy {
	margin: 0 0 18px;
	font-family: "Roboto", "Arial", sans-serif;
	font-size: 42px;
	font-weight: 300;
	letter-spacing: 0.08em;
	line-height: 1.05;
	white-space: nowrap;
	background: linear-gradient(90deg, #8c32f0 0%, #b56af0 38%, #52c8df 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cio-history-modal__sub-copy {
	margin: 0;
	color: #000;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.cio-history-modal__sub-copy span {
	color: #8c32f0;
}

.cio-history-modal__divider {
	height: 24px;
	background: #fff;
}

.cio-history-modal__content {
	padding: 20px 30px 30px;
	background: #fff;
}


.cio-history-modal__content-year {
	margin: 0 0 6px;
	color: #8c32f0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.cio-history-modal__title {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #8c32f0;
	color: #000;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
}

.cio-history-modal__text {
	color: #000;
	font-size: 13px;
	font-weight: 500;
	line-height: 2;
	letter-spacing: 0.02em;
}

.cio-history-modal__text p {
	margin: 0 0 20px;
}

.cio-history-modal__text p:last-child {
	margin-bottom: 0;
}

.cio-history-modal__image-placeholder {
	margin: 0 0 20px;
	color: #000;
	font-size: 12px;
	line-height: 2;
}

.cio-history-modal__image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 20px;
	border-radius: 12px;
}

.cio-history-modal__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 28px 22px 32px;
	background: #fff;
	border-radius: 0 0 22px 22px;
}

.cio-history-modal__pager-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 136px;
	min-height: 54px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: #eadcf8;
	color: #6b28b8;
	font-size: 21px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: none;
	text-decoration: none;
}

.cio-history-modal__pager-icon {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-top: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.cio-history-modal__pager-icon--prev {
	transform: rotate(-135deg);
}

.cio-history-modal__pager-icon--next {
	transform: rotate(45deg);
}

.cio-history-modal__pager-count {
	min-width: 110px;
	text-align: center;
	color: #b6b6b6;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.cio-history-modal__pager-current {
	color: #6b28b8;
}

@media (max-width: 768px) {
	.cio-history-modal {
		padding: 12px;
	}

	.cio-history-modal__panel {
		padding: 34px 10px 34px;
		border-radius: 14px;
	}


	.cio-history-modal__visual {
		min-height: 150px;
		padding: 30px 18px 28px;
	}

	.cio-history-modal__year {
		font-size: 15px;
		margin-bottom: 14px;
	}

	.cio-history-modal__main-copy {
		font-size: clamp(25px, 6.5vw, 35px);
		letter-spacing: 0.04em;
		margin-bottom: 14px;
	}

	.cio-history-modal__sub-copy {
		font-size: 15px;
	}

	.cio-history-modal__content {
		padding: 20px 22px 26px;
	}

	.cio-history-modal__title {
		font-size: 16px;
	}

	.cio-history-modal__text,
	.cio-history-modal__image-placeholder {
		font-size: 13px;
		line-height: 1.9;
	}

	.cio-history-modal__footer {
		gap: 8px;
		padding: 22px 10px 26px;
	}

	.cio-history-modal__pager-button {
		min-width: 88px;
		min-height: 40px;
		padding: 9px 14px;
		gap: 6px;
		font-size: 14px;
	}

	.cio-history-modal__pager-icon {
		width: 8px;
		height: 8px;
		border-top-width: 2px;
		border-right-width: 2px;
	}

	.cio-history-modal__pager-count {
		min-width: 76px;
		font-size: 13px;
	}
}
