/* CSS Document */

#main{
	margin-bottom: clamp(64px, calc(128 / 1200 * 100dvw), 128px);
}

#detail{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(24px, calc(48 / 1200 * 100dvw), 48px);
	overflow: hidden;
	#text{
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
	}
	#documents{
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
		}
	#links{
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
	}
	#photo{
		grid-row: 2;
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
	}
}

#title{
	display: grid;
	& h2{
		position: relative;
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 0.25em;
		padding-bottom: 16px;
		color: inherit;
		font-weight: 700;
		font-size: clamp(18px, calc(28 / 768 * 100dvw), 28px);
		&:before{
			content: "";
			aspect-ratio: 1;
			width: 18px;
			border: 5px solid var(--color-theme-sub);
			border-radius: 100%;
			transform: translateY(calc(0.875em - 50%));
		}
		&:after{
			content: "";
			position: absolute;
			right: 0;
			bottom: 0;
			width: 100dvw;
			border-bottom: 1px dashed currentColor;
		}
	}
	& h2+div{
		order: -1;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		grid-gap: 8px;
		margin-bottom: 8px;
		& ul{
			display: contents;
		}
		& li{
			font-weight: 500;
			font-size: 12px;
			line-height: 1;
			&[class]{
				padding: 2px 0.5em;
				color: #fff;
				text-transform: uppercase;
			}
			&:not([class]){
				display: grid;
				grid-template-columns: auto 1fr auto;
				column-gap: 0.25em;
				&:before,
				&:after{
					content: "-";
				}
			}
			&.tagCheck{
				background: #436aca;
			}
			&.tagNew{
				background: #5c9937;
			}
		}
		& time{
			font-weight: 500;
			font-size: 12px;
		}
	}
}

#text{
	font-weight: 500;
}

#links{
	& h3{
		display: none;
	}
	& ul{
		display: grid;
		justify-content: center;
		grid-gap: 16px;
		@media (min-width: 992px) {
			display: flex;
			& a{
				min-width: calc((100% - 32px) / 3);
			}
		}
	}
	& li{
		display: contents;
	}
	& a{
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 0.5em;
		min-height: 48px;
		padding: 0.25em 1em;
		background: var(--color-theme);
		border-radius: 24px;
		color: inherit;
		font-weight: 700;
		font-size: 14px;
		letter-spacing: 0.05em;
		text-align: center;
		text-decoration: none;
		&:after{
			content: "";
			aspect-ratio: 1;
			width: 10px;
			background: currentColor;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" style="fill: none; stroke: black; stroke-linecap: round; stroke-linejoin: round;"><line x1=".5" y1="5" x2="9.5" y2="5"/><polyline points="7 2.5 9.5 5 7 7.5"/></svg>') no-repeat center / contain;
		}
	}
}

#documents{
	& h3{
		display: none;
	}
	& ul{
		display: grid;
		justify-content: center;
		grid-gap: 16px;
		@media (min-width: 992px) {
			display: flex;
			& a{
				min-width: calc((100% - 32px) / 3);
			}
		}
	}
	& li{
		display: contents;
	}
	& a{
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 0.5em;
		min-height: 48px;
		padding: 0.25em 1em;
		background: var(--color-theme);
		border-radius: 24px;
		color: inherit;
		font-weight: 700;
		font-size: 14px;
		letter-spacing: 0.05em;
		text-align: center;
		text-decoration: none;
		&:after{
			content: "";
			aspect-ratio: 1;
			width: 16px;
			background: currentColor;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" style="fill: none; stroke: black; stroke-width: 1.5px;"><polyline points="11.51 6.98 7.9 10.6 4.29 6.98"/><line x1="7.93" y1="1.22" x2="7.93" y2="10.42"/><polyline points="14.5 11.5 14.5 15.5 1.5 15.5 1.5 11.5"/></svg>') no-repeat center / contain;
		}
	}
}

#photo{
	display: grid;
	& dl{
		grid-column: 1;
		grid-row: 1;
		display: grid;
		grid-row-gap: 8px;
		&:nth-child(n+2){
			visibility: hidden;
		}
	}
	& dt{
		order: 1;
		text-align: center;
	}
	& a{
		display: block;
	}
	& img{
		aspect-ratio: 3 / 2;
		object-fit: contain;
		border-radius: 16px;
	}
	&.slick-slider{
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		&:before{
			content: "";
			grid-column: 2;
			grid-row: 1;
			aspect-ratio: 3 / 2;
			margin: 0 clamp(4px, calc(10 / 1200 * 100dvw), 10px);
			visibility: hidden;
		}
		.slick-list{
			grid-column: 2;
			grid-row: 1 / 3;
			overflow: visible;
		}
		.slick-slide{
			margin: 0 clamp(4px, calc(10 / 1200 * 100dvw), 10px);
		}
		.slick-arrow{
			grid-row: 1;
			justify-self: center;
			@media (max-width: 1199.98px) {
				margin: 8px;
			}
		}
		.slick-prev{
			grid-column: 1;
		}
		.slick-next{
			grid-column: 3;
		}
		@media (min-width: 1200px) {
			grid-template-columns: 0 1fr 0;
			&:before{
				margin: 0;
			}
			.slick-list{
				margin: 0 calc(0px - clamp(4px, calc(10 / 1200 * 100dvw), 10px));
			}
		}
	}
}

#pagenation{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(48px, calc(64 / 1200 * 100dvw), 64px);
}

.slick-arrow{
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	position: relative;
	aspect-ratio: 1;
	width: clamp(40px, calc(56 / 1200 * 100dvw), 56px);
	background: #fff;
	border: 1px solid currentColor;
	border-radius: 100%;
	font-size: 0;
	z-index: 1;
	&:hover{
		background: var(--color);
		&:before{
			color: #fff;
		}
	}
	&:before{
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: currentColor;
		-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" style="fill: none; stroke: black; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"><polyline points="5 2 11 8 5 14"/></svg>') no-repeat center / 16px;
	}
	&.slick-prev:before{
		transform: scale(-1, 1);
	}
}

.pswp__counter{
	visibility: hidden;
}




