.topic {
	width: 600px;
	margin-top: 20px;
	margin-bottom: 80px;
	margin-left: 185px;
	line-height: 1.8em;
}
.topic table {
	margin-top: 30px;
	margin-bottom: 20px;
	border: 1px solid #999999;
}
.topic img {
	margin: 3px;
}

#topic_midashi {
	font-size: 18px;
	font-weight: bold;
	margin-top: 30px;
	margin-bottom: 20px;
	border-bottom: 1px dotted #999999;
	line-height: 1.6em;
	padding-bottom: 5px;
}
#title {
	font-size: 18px;
	line-height: 1.6em;
	font-weight: bold;
	border-bottom: 1px dotted #999999;
	margin-bottom: 20px;
	text-align: left;
	width: 600px;
	height: 50px;
	padding-bottom: 5px;
}






#pankuzu a:last-child {
	pointer-events: none;
	color: #999;
}

article {
	width: 600px;
	margin-top: 20px;
	margin-bottom: 80px;
	margin-left: 185px;
	line-height: 1.8em;
}
article :is(p,ul,dl,div,hgroup) {
	margin: 1.5rem 0;
	padding: 0;
}
article * {
	text-wrap: pretty;
}
article hgroup {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
article hgroup p {
	margin: 0;
	width: 100%;
	text-align: right;
}
article hgroup h3 {
	width: 100%;
	border-bottom: dotted thin #999;
	margin: 0;
	font-size: 18px;
	line-height: 1.6em;
	padding-bottom: 5px;
}

article hr.dotted {
	display: block !important;
	margin: calc(-1rem - 4px) 0 calc(-0.5rem - 6px);
	border: none;
	height: 1px;
	border-top: dotted thin #999;
}
article hr.wide {
	display: block !important;
	margin: 1.25rem 0;
	border: none;
	height: 1px;
	clear: both;
}
article .big {
	font-size: 16px;
}
article ul {
	margin-left: 0 !important;
	padding-left: 0 !important;
}
article ul li {
	margin-left: 1.5rem !important;
}

article ul#move {
	display: flex;
	justify-content: center;
	gap: 1rem;
	list-style: none !important;
	margin:  5rem 0 0 !important;
	padding: 0 !important;
	clear: both;
}
article ul#move li {
	margin: 0 !important;
}
article ul#move li a:any-link {
	padding: 0.25rem 1rem;
	border: solid thin red;
	text-decoration: none;
}
article ul#move li a:hover {
	box-shadow: 0.25em 0.25em 0.5em rgba(0,0,0,0.1);
}
article ul#move li:nth-child(1) a,
article ul#move li:nth-child(3) a {
	color: red;
}
article ul#move li:nth-child(2) a {
	color: white;
	background: red;
}
article ul#move li.noway a {
	color: #CCC;
	border: solid thin #CCC;
	pointer-events: none;
}
article ul#move + p {
	font-size: 12px;
	text-align: center;
	position: relative;
	top: -0.5rem;
}

article dl {
	display: grid;
	grid-template-columns: auto 1fr;
	border-top: dotted thin #999;
	clear: both;
}
article hgroup + dl,
article h4 + dl,
article h5 + dl {
	border-top: none;
}
article dt {
	margin: 0;
	padding: 0.75rem 2rem 0.75rem 0;
	border-bottom: dotted thin #999;
}
article dd {
	margin: 0;
	padding: 0.75rem 0;
	border-bottom: dotted thin #999;
}
article iframe {
	width: 24rem;
	height: 13.5rem;
	display: block;
	margin: 1.5rem auto;
}
article div.img_wrap {
	margin: 1.5rem 0;
	display: flex;
	gap: 0.5rem;
	max-width: 100%;
	overflow: hidden;
	justify-content: center;
	align-items: flex-start;
}
article div.img_wrap  img {
	max-width: 100%;
	min-width: 0;
	object-fit: contain;
}
article div.img_wrap + div.img_wrap {
	margin-top: -1rem;
}
article figure {
	margin: 1.5rem 0;
	padding: 0 !important;
}
article div.img_wrap figure {
	margin: 0;
}
article figure figcaption {
	margin-top: 0.25rem;
	font-size: 13px;
	display: flex;
	justify-content: center;
	align-items: center;
}
article a[target="_blank"]::after {
	content: '';
	display: inline-block;
	margin: 0 0.125rem;
	width: 0.95em;
	height: 0.95em;
	background: url(./topics_img/out.svg) center center no-repeat;
	background-size: contain;
	position: relative;
	top: -0.25rem;
}
article div.img_wrap a[target="_blank"]::after {
	display: none;
}

article div.img_wrap a img {
	opacity: 1;
	transition: .5s;
}
article div.img_wrap a:hover img {
	opacity: 0.75;
}

article a[href$=".pdf"] {
	display: flex;
	align-items: center;
	width: fit-content;
	gap: 0.25rem;
}
article a[href$=".pdf"]::before {
	display: block;
  content: '';
  width: 2rem;
  height: 2rem;
  background: url(./topics_img/pdf.svg) center center no-repeat;
  background-size: contain;
}
article h4 {
	color: white;
	background: red;
	font-size: 15px;
	font-weight: 700;
	padding: 0.25em 0.5em;
	position: relative;
	top: 0.25rem;
	clear: both;
}
article h5 {
	font-size: 15px;
	background: #DDD;
	font-weight: 700;
	padding: 0.25em 0.5em;
	position: relative;
	top: 0.25rem;
	clear: both;
}

article div.float_left {
	float: left;
	padding: 0 1rem 1rem 0;
	max-width: 50%;
}
article div.float_right {
	float: right;
	padding: 0 0 1rem 1rem;
	max-width: 50%;
}
article div.float_left,
article div.float_right {
	max-width: 100%;
}

#pager {
	display: flex;
	flex-wrap: wrap;
	margin: 3rem 0 0 !important;
	gap: 1rem;
}
#pager li {
	list-style: none;
}
#pager li::before {
	content: none;
}
#pager li a:any-link {
	width: 2em;
	height: 2em;
	display: flex;
	justify-content: center;
	align-items: center;
	border: solid thin red;
	color: red;
	transition: .5s;
}
#pager li a:hover {
	text-decoration: none;
	box-shadow: 0.25em 0.25em 0.5em rgba(0,0,0,0.1);
}
#pager li.here a:any-link {
	pointer-events: none;
	color: white;
	background: red;
	transform: scale(1.2);
}
#pager + p a:hover {
	text-decoration: none;
}