/* Pointer and keyboard feedback for the reviewed public pages. */

div.top_main > ul li > a:focus-visible,
div.top_bnr ul li > a:focus-visible {
	outline: 3px solid #ffdf72;
	outline-offset: -5px;
}

div.top_main > .top_announcements > dl > dd > a:focus-visible,
div.top_news > ul li a:focus-visible,
div.top_link > ul > li > a:focus-visible {
	outline: 2px solid #005e9e;
	outline-offset: -1px;
}

header nav.drawer-nav a:focus-visible {
	outline: 2px solid #ffdf72;
	outline-offset: 2px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

div.top_link > ul > li > a,
.masui_greeting > a.btn[data-remodal-target],
.masui_intro > ul > li > a[data-remodal-target],
.introduction_list > ol > li > a[data-remodal-target],
.hospital_list > ul > li > a[data-remodal-target] {
	cursor: pointer;
}

div.top_link > ul > li > a > strong,
div.top_link > ul > li:nth-child(2n) > a > strong {
	width: max-content;
	min-width: 8em;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7em;
	padding-inline: 0.85em;
	clip-path: none;
	border-radius: 5px;
	box-shadow: 0 2px 6px rgba(6, 46, 76, 0.25);
}

div.top_link > ul > li > a > strong::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.introduction_list > ul > li > a[data-remodal-target] {
	display: block;
	position: relative;
	cursor: pointer;
}

ul.pankuzu li a:focus-visible {
	outline: 2px solid #005e9e;
	outline-offset: 2px;
}

.specialty_content a[href]:focus-visible,
.specialty_list > ul > li > a[href]:focus-visible,
.publication_list > ul > li > a:focus-visible,
.fjca_list dl dd a:focus-visible,
.modal dd a:focus-visible {
	outline: 2px solid #005e9e;
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	header.drawer-navbar > h1 > a:hover,
	footer > strong > a:hover,
	div.top_news > h3 > a:hover,
	body > ul.sns > li > a:hover {
		opacity: 1;
		filter: none;
		transition: none;
	}

	div.top_news > h3 > a:hover > img,
	body > ul.sns > li > a:hover > img {
		opacity: 1;
		filter: drop-shadow(0 2px 3px rgba(6, 46, 76, 0.35));
	}

	div.top_link > ul > li > a:hover,
	div.top_main > ul li > a:hover img,
	div.top_bnr ul li > a:hover img {
		opacity: 1;
	}

	div.top_link > ul > li > a:hover > strong {
		font-weight: 700;
		box-shadow: 0 3px 9px rgba(6, 46, 76, 0.32);
	}

	div.top_link > ul > li > a:hover > img {
		opacity: 0.37;
	}

	header nav.drawer-nav a:hover {
		opacity: 1;
		font-weight: 700;
		filter: none;
	}

	div.top_main > .top_announcements > dl > dd > a:hover,
	div.top_news > ul li a:hover {
		opacity: 1;
		font-weight: 700;
		text-decoration-line: underline;
	}

	footer > ul > li > a:hover {
		opacity: 1;
		font-weight: 700;
		text-decoration-line: underline;
		filter: none;
	}

	div.top_main > ul li > a:hover,
	div.top_bnr .slick-list:not(.dragging) li > a:hover {
		opacity: 1;
		box-shadow: 0 5px 12px rgba(6, 46, 76, 0.22);
		z-index: 1;
	}

	ul.pankuzu li a:hover,
	.specialty_content a[href]:hover {
		font-weight: 700;
		opacity: 1;
		filter: none;
		text-decoration-line: underline;
	}

	div.masui_greeting {
		display: flow-root;
		overflow: visible;
	}

	.masui_greeting > a.btn[data-remodal-target]:hover,
	.masui_intro > ul > li > a[data-remodal-target]:hover,
	.introduction_list > ul > li > a[data-remodal-target]:hover,
	.introduction_list > ol > li > a[data-remodal-target]:hover,
	a#pagetop:hover,
	.specialty_list > ul > li > a[href]:hover,
	.publication_list > ul > li > a[href]:hover,
	.hospital_list > ul > li > a[data-remodal-target]:hover {
		opacity: 1;
		filter: none;
		box-shadow: 0 5px 12px rgba(6, 46, 76, 0.22);
	}

	.masui_intro > ul > li > a[data-remodal-target]:hover > img,
	.introduction_list > ul > li > a[data-remodal-target]:hover > img,
	.specialty_list > ul > li > a[href]:hover > img,
	.hospital_list > ul > li > a[data-remodal-target]:hover > img,
	button.remodal-close:hover {
		opacity: 1;
		filter: none;
	}

	.fjca_list dl dd a[href]:hover,
	.modal dd a[href]:hover {
		opacity: 1;
		filter: none;
		font-weight: 700;
		text-decoration-line: underline;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	div.top_news > h3 > a > img,
	body > ul.sns > li > a > img {
		transition: transform 150ms ease, filter 150ms ease;
	}

	div.top_news > h3 > a:hover > img,
	body > ul.sns > li > a:hover > img {
		transform: translateY(-2px);
	}

	div.top_main > ul li > a,
	div.top_bnr ul li > a,
	.masui_greeting > a.btn[data-remodal-target],
	.masui_intro > ul > li > a[data-remodal-target],
	.introduction_list > ul > li > a[data-remodal-target],
	.introduction_list > ol > li > a[data-remodal-target],
	a#pagetop,
	.specialty_list > ul > li > a[href],
	.publication_list > ul > li > a[href],
	.hospital_list > ul > li > a[data-remodal-target] {
		transition: transform 150ms ease, box-shadow 150ms ease;
	}

	div.top_bnr .slick-list > .slick-track {
		padding-block: 10px 14px;
	}

	div.top_main > ul li > a:hover,
	div.top_bnr .slick-list:not(.dragging) li > a:hover,
	.masui_greeting > a.btn[data-remodal-target]:hover,
	.masui_intro > ul > li > a[data-remodal-target]:hover,
	.introduction_list > ul > li > a[data-remodal-target]:hover,
	.introduction_list > ol > li > a[data-remodal-target]:hover,
	a#pagetop:hover,
	.specialty_list > ul > li > a[href]:hover,
	.publication_list > ul > li > a[href]:hover,
	.hospital_list > ul > li > a[data-remodal-target]:hover {
		transform: translateY(-3px);
	}
}
