/* UI-SUP-NOTICE-01: TOP notices only. */
.c-list-news--notice-modal { height: auto; max-height: 18rem; padding: 0; overflow-y: auto; }
.c-list-news--notice-modal .c-list-news__item { margin: 0; border-bottom: 1px solid #ddd; }
.c-list-news--notice-modal .c-list-news__item:last-child { border-bottom: 0; }
.c-list-news--notice-modal .c-list-news__button { display: flex; width: 100%; padding: .85em 1em; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.c-list-news--notice-modal .c-list-news__button:hover, .c-list-news--notice-modal .c-list-news__button:focus { background: #f5f5f5; }
.c-list-news--notice-modal .c-list-news__date { flex: 0 0 7.5em; margin: 0; }
.qsg-notice-modal { position: fixed; z-index: 10000; inset: 0; display: none; padding: 1rem; }
.qsg-notice-modal.is-open { display: flex; align-items: center; justify-content: center; }
.qsg-notice-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.qsg-notice-modal__dialog { position: relative; width: min(720px, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; background: #fff; box-sizing: border-box; }
.qsg-notice-modal__header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; }
.qsg-notice-modal__label { margin: 0 0 .75rem; font-weight: bold; }
.qsg-notice-modal__close { border: 0; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; }
.qsg-notice-modal__title { margin: 1rem 0; font-size: 1.25rem; }
.qsg-notice-modal__body { line-height: 1.8; }
body.qsg-notice-modal-open { overflow: hidden; }
@media screen and (max-width: 767px) { .c-list-news--notice-modal .c-list-news__button { display: block; } .c-list-news--notice-modal .c-list-news__date { display: block; margin-bottom: .25rem; } }

/* UI-SUP-NOTICE-01-R4: TOP-only normal-flow notice section and modal. */
.qsg-notice-section .c-list-news--notice-modal {
	height: auto;
	max-height: none;
	overflow: visible;
	padding: 0;
	border: 0;
	background: transparent;
}

.qsg-notice-section .c-list-news--notice-modal .c-list-news__item {
	margin: 0;
}

/* The unique TOP dialog is a direct child of body, outside section flow. */
.qsg-notice-modal {
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: none;
	place-items: center;
	padding: 1rem;
}

.qsg-notice-modal.is-open {
	display: grid;
}

.qsg-notice-modal__backdrop {
	position: absolute;
	inset: 0;
}

.qsg-notice-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: calc(100% - 2rem);
	max-width: 760px;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	overflow: hidden;
	box-sizing: border-box;
}

.qsg-notice-modal__body {
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 767px) {
	.qsg-notice-modal {
		padding: .75rem;
	}

	.qsg-notice-modal__dialog {
		width: calc(100% - 1.5rem);
		max-height: calc(100vh - 1.5rem);
		max-height: calc(100dvh - 1.5rem);
	}
}

/* UI-SUP-NOTICE-01-R5: TOP notice icon is changed in index.php; animate its dialog. */
.qsg-notice-modal {
	display: grid;
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .24s ease, visibility 0s linear .24s;
}

.qsg-notice-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition-delay: 0s;
}

.qsg-notice-modal__dialog {
	transform: translateY(1rem) scale(.98);
	transition: transform .24s ease;
}

.qsg-notice-modal.is-open .qsg-notice-modal__dialog {
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.qsg-notice-modal,
	.qsg-notice-modal__dialog {
		transition: none;
	}
}

/* UI-SUP-NOTICE-01-R10: Compact TOP notice rows on small screens. */
@media screen and (max-width: 767px) {
	.qsg-notice-section .c-list-news--notice-modal .c-list-news__button {
		display: grid;
		grid-template-columns: max-content minmax(0, 1fr);
		align-items: center;
		column-gap: .75em;
		min-height: 44px;
		padding: .55em .75em;
		box-sizing: border-box;
	}
	.qsg-notice-section .c-list-news--notice-modal .c-list-news__date {
		display: block;
		margin: 0;
		white-space: nowrap;
	}
	.qsg-notice-section .c-list-news--notice-modal .c-list-news__title {
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

/* UI-SUP-NOTICE-01-R11: One-step smaller type for compact SP notice rows. */
@media screen and (max-width: 767px) {
	.qsg-notice-section .c-list-news--notice-modal .c-list-news__button {
		font-size: 1.4rem;
	}
}

/* UI-SUP-NOTICE-01-R12: Double only the SP top spacing above TOP section headings. */
@media screen and (max-width: 767px) {
	.qsg-top-section {
		padding-top: 6vw;
	}
}

/* UI-SUP-NOTICE-01-R13: Give the first TOP notice heading extra SP clearance below the site header. */
@media screen and (max-width: 767px) {
	.qsg-notice-section.qsg-top-section {
		padding-top: 10vw;
	}
}

/* UI-SUP-NOTICE-01-R14: Modal title scale above 16px body copy. */
.qsg-notice-modal__title {
	font-size: clamp(1.8rem, 1.4rem + .5vw, 2rem);
	line-height: 1.5;
}

/* UI-SUP-NOTICE-01-R16: Match the modal title to the site heading navy. */
.qsg-notice-modal__title {
	color: #1568a2;
}

/* UI-SUP-NOTICE-CHEVRON-20260909: decorative chevron on TOP notice buttons only. */
.qsg-notice-section .c-list-news--notice-modal .c-list-news__button {
	position: relative;
	padding-right: 2.5em;
}

.qsg-notice-section .c-list-news--notice-modal .c-list-news__button::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1em;
	width: .45em;
	height: .45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	pointer-events: none;
}
