/* サイトTOPの「重要なお知らせ」モーダル（_php/important_notice_modal.php） */
html:has(.c-importantNotice[open]) {
	overflow: hidden;
}
.c-importantNotice {
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 720px;
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 0;
	overflow-y: auto;
	border: 0;
	background-color: #fff;
	color: #000;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.05);
}
.c-importantNotice:focus {
	outline: none;
}
.c-importantNotice[open] {
	animation: importantNoticeFadeIn 0.3s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.c-importantNotice::backdrop {
	background-color: rgba(0, 0, 0, 0.6);
}
@keyframes importantNoticeFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.c-importantNotice__inner {
	position: relative;
	border-top: 6px solid transparent;
	border-image: linear-gradient(90deg, #ffc700 30%, #ffd600 55%, #ffef85) 1;
	padding: 4rem;
}
@media (max-width: 767.98px) {
	.c-importantNotice__inner {
		padding: 4.2rem 1.6rem 3.2rem;
	}
}
.c-importantNotice__heading {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.5;
}
.c-importantNotice__icon {
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
}
.c-importantNotice__close {
	position: absolute;
	top: -6px;
	right: 0;
	width: 4.8rem;
	height: 4.8rem;
	padding: 0;
	border: 0;
	background-color: #000;
	cursor: pointer;
}
.c-importantNotice__close:before,
.c-importantNotice__close:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2.4rem;
	height: 2px;
	background-color: #fff;
}
.c-importantNotice__close:before {
	transform: translate(-50%, -50%) rotate(45deg);
}
.c-importantNotice__close:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}
.c-importantNotice__close:focus-visible {
	outline: 2px solid #007aff;
	outline-offset: -6px;
}
@media (prefers-reduced-motion: reduce) {
	.c-importantNotice[open] {
		animation: none;
	}
}

/* 「重要なお知らせ」一覧（_php/important_notice_list.php） */
.c-importantNoticeList {
	margin: 0;
	padding: 0;
	list-style: none;
}
.c-importantNoticeList__item + .c-importantNoticeList__item {
	border-top: 1px solid #e5e5e5;
}
.c-importantNoticeList__link {
	display: flex;
	align-items: baseline;
	gap: 0.4rem 2.4rem;
	padding: 1.6rem 0;
	color: inherit;
	text-decoration: none;
}
.c-importantNoticeList__date {
	flex-shrink: 0;
	color: #555;
	font-size: 1.4rem;
	line-height: 1.75;
}
.c-importantNoticeList__title {
	flex: 1;
	min-width: 0;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.75;
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.c-importantNoticeList__more {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 1.3rem;
	color: #555;
	white-space: nowrap;
}
.c-importantNoticeList__arrow {
	margin-left: 0.4rem;
}
.c-importantNoticeList__link:hover .c-importantNoticeList__title {
	text-decoration: none;
}
.c-importantNoticeList__link:focus-visible {
	outline: 2px solid #007aff;
	outline-offset: 2px;
}
@media (max-width: 767.98px) {
	.c-importantNoticeList__link {
		flex-wrap: wrap;
	}
	.c-importantNoticeList__title {
		flex-basis: 100%;
		order: 2;
	}
	.c-importantNoticeList__more {
		order: 3;
		margin-left: 0;
	}
}
.c-importantNotice__body {
	margin-top: 2rem;
}
.c-importantNotice__subheading {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1.5;
}
.c-importantNotice__text {
	margin: 1.2rem 0 0;
	font-size: 1.4rem;
	line-height: 1.85;
}
.c-importantNotice__list {
	margin-top: 2rem;
	border-top: 1px solid #e5e5e5;
}
