/* CSS Document */

#main{
	margin-bottom: clamp(56px, calc(104 / 1200 * 100dvw), 104px);
}

#detail{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	#detailPhoto{
		grid-row: 2;
	}
}

#detailTitle{
	display: grid;
	grid-row-gap: 16px;
	margin-top: clamp(40px, calc(80 / 1200 * 100dvw), 80px);
	& h2{
		display: grid;
		grid-row-gap: 8px;
		font-weight: 700;
		font-size: clamp(18px, calc(28 / 768 * 100dvw), 28px);
		letter-spacing: 0.05em;
		&:after{
			content: "";
			height: 2px;
			background: linear-gradient(90deg, var(--color-theme) 30%, #c8aa14 30%);
		}
		&:lang(ja){
			font-family: "Zen Kaku Gothic New", var(--font);
		}
	}
	& h2+div{
		order: -1;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		grid-gap: 4px 8px;
		& time{
			letter-spacing: 0.05em;
		}
		& ul{
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			grid-gap: 8px;
			&:nth-of-type(1){
				& li{
					display: grid;
					align-items: center;
					min-height: 20px;
					padding: 0 1em;
					background: var(--color-theme);
					border-radius: 2px;
					color: #fff;
					font-size: 14px;
					letter-spacing: 0.05em;
					text-transform: uppercase;
					text-align: center;
					&.tagNew{
						background: #d80c18;
					}
				}
			}
			&:nth-of-type(2){
				& li{
					display: grid;
					align-items: center;
					min-height: 24px;
					padding: 0 1em;
					border: 1px solid currentColor;
					border-radius: 12px;
					color: var(--color-theme);
					font-size: 14px;
					letter-spacing: 0.05em;
					text-align: center;
					&[data-cat="02"]{
						color: #e71f19;
					}
					&[data-cat="03"]{
						color: #1e643c;
					}
				}
			}
		}
	}
}

#detailBody{
	margin: clamp(32px, calc(64 / 1200 * 100dvw), 64px) 0 clamp(16px, calc(32 / 1200 * 100dvw), 32px) 0;
}

#detailDocument,
#detailLinks{
	margin-top: clamp(16px, calc(32 / 1200 * 100dvw), 32px);
	&:lang(ja){
		font-family: "Zen Kaku Gothic New", var(--font);
	}
	& ul{
		display: grid;
		grid-gap: 16px clamp(16px, calc(24 / 1200 * 100dvw), 24px);
		@media (min-width: 768px) {
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
		}
	}
	& li{
		display: contents;
	}
	& a{
		justify-self: center;
		display: grid;
		grid-template-columns: 1fr 17px;
		align-items: center;
		grid-gap: 8px;
		width: min(100%, 320px);
		min-height: 64px;
		padding: 4px 16px;
		background: #fff;
		border: 1px solid var(--color);
		border-radius: 32px;
		color: #333;
		text-align: center;
		letter-spacing: 0.05em;
		text-decoration: none;
		&:before,
		&:after{
			content: "";
			grid-column: 2;
			grid-row: 1;
			aspect-ratio: 1;
		}
		&:before{
			background: var(--color-theme);
			border-radius: 100%;
		}
		&:after{
			background: inherit;
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17"><path d="M12.45,8.09l-2.98-2.98c-.22-.22-.59-.22-.81,0-.22.22-.22.59,0,.81l1.89,1.89h-5.51c-.37,0-.68.3-.68.68s.3.68.68.68h5.51l-1.89,1.89c-.22.22-.22.59,0,.81.11.11.26.17.41.17s.29-.06.41-.17l2.98-2.98c.22-.22.22-.59,0-.81Z"/></svg>') center no-repeat;
			-webkit-mask-size: contain;
		}
	}
}

#detailDocument{
	& a{
		&:after{
			-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15V3"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><path d="m7 10 5 5 5-5"></path></svg>');
			-webkit-mask-size: 66%;
		}
	}
}

#detailPhoto{
	&>div{
		display: grid;
		grid-template-columns: 0 1fr 0;
		align-items: center;
		margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
	}
	& dl{
		display: grid;
	}
	& dt,
	& dd{
		grid-column: 1;
		grid-row: 1;
	}
	& dt{
		align-self: end;
		display: grid;
		align-content: end;
		min-height: clamp(64px, calc(120 / 1200 * 100dvw), 120px);
		padding: 1em 1.5em;
		background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
		color: #fff;
		font: 500 clamp(14px, calc(18 / 768 * 100dvw), 18px) var(--font-min);
		letter-spacing: 0.08em;
		z-index: 1;
	}
	& dd{
		& img{
			aspect-ratio: 3 / 2;
			object-fit: cover;
		}
	}
	& ul{
		display: grid;
	}
	.slick-arrow{
		all: unset;
		box-sizing: border-box;
		cursor: pointer;
		position: relative;
		justify-self: center;
		aspect-ratio: 1;
		width: clamp(32px, calc(48 / 1200 * 100dvw), 48px);
		background: rgba(0, 0, 0, 0.75);
		border-radius: 100%;
		color: #fff;
		font-size: 0;
		z-index: 1;
		&: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 14 14" style="fill: none; stroke: black; stroke-miterlimit: 10; stroke-width: 2px;"><polyline points="4.25 12.5 9.75 7 4.25 1.5"/></svg>') no-repeat center / 16px;
		}
		&.slick-prev:before{
			transform: scale(-1, 1);
		}
	}
	.photoSlideNav{
		margin-top: clamp(16px, calc(32 / 1200 * 100dvw), 32px);
		& img{
			aspect-ratio: 3 / 2;
			object-fit: cover;
		}
		.slick-track{
			transform: none !important;
		}
		.slick-slide{
			margin: 0 10px;
		}
	}
}

#backlink{
	margin: clamp(32px, calc(64 / 1200 * 100dvw), 64px) 0 clamp(16px, calc(32 / 1200 * 100dvw), 32px) 0;
	& a{
		justify-self: center;
		display: grid;
		grid-template-columns: 1fr 17px;
		align-items: center;
		grid-gap: 8px;
		min-width: min(100%, 320px);
		min-height: 64px;
		padding: 4px 16px;
		background: var(--color-theme);
		border-radius: 32px;
		color: #fff;
		text-align: center;
		letter-spacing: 0.05em;
		text-decoration: none;
		&:before,
		&:after{
			content: "";
			grid-column: 2;
			grid-row: 1;
			aspect-ratio: 1;
		}
		&:before{
			background: #fff;
			border-radius: 100%;
		}
		&:after{
			background: var(--color-theme);
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17"><path d="M12.45,8.09l-2.98-2.98c-.22-.22-.59-.22-.81,0-.22.22-.22.59,0,.81l1.89,1.89h-5.51c-.37,0-.68.3-.68.68s.3.68.68.68h5.51l-1.89,1.89c-.22.22-.22.59,0,.81.11.11.26.17.41.17s.29-.06.41-.17l2.98-2.98c.22-.22.22-.59,0-.81Z"/></svg>') center no-repeat;
			-webkit-mask-size: contain;
		}
	}
}

#detailLink{}
	#detailLink *{
		margin: 0;
		padding: 0;
		color: inherit;
		font-size: inherit;
		}
	#detailLink a{
		display: block;
		border: 1px solid #ccc;
		text-decoration: none;
		transition: border-color 0.2s ease-out;
		}
		#detailLink a:hover{
			border-color: #0068b7;
			}
	#detailLink .microlink_card{
		display: flex;
		width: 100%;
		max-width: 100%;
		border: none;
		background: none;
		color: inherit;
		font-family: inherit;
		font-size: inherit;
		}
	#detailLink .microlink_card__media_video_wrapper{
		flex: 0 0 12em;
		}
	#detailLink .microlink_card__content{
		flex: 0 0 calc(100% - 12em);
		justify-content: flex-start;
		padding: 1em;
		}
		#detailLink .microlink_card__content *{
			flex-grow: inherit;
			}
	#detailLink .microlink_card__content_title{}
		#detailLink .microlink_card__content_title p{
			font-size: 1.2em;
			line-height: 1.5em;
			}
	#detailLink .microlink_card__content_description{
		width: 100%;
		margin-top: 0.5em;
		}
	#detailLink .microlink_card__content_url{
		margin-top: auto;
		padding-top: 1em;
		font-size: 0.85em;
		line-height: 1em;
		opacity: 0.5;
		}

#detailFile{
	position: relative;
	display: flex;
	}
	#detailFile *{
		margin: 0;
		padding: 0;
		color: inherit;
		font-size: inherit;
		}
	#detailFile figure{
		position: relative;
		flex: 0 0 12em;
		background: #f2f2f2;
		order: -1;
		}
	#detailFile dl{
		display: flex;
		flex-direction: column;
		flex: 0 0 calc(100% - 12em);
		padding: 1em;
		}
	#detailFile dt{
		font-weight: bold;
		font-size: 1.2em;
		line-height: 1.5em;
		}
	#detailFile dt+dd{
		margin-top: 0.5em;
		}
	#detailFile dt+dd+dd{
		margin-top: auto;
		padding-top: 1em;
		font-size: 0.85em;
		line-height: 1em;
		opacity: 0.5;
		}
	#detailFile a{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border: 1px solid #ccc;
		color: transparent;
		z-index: 1;
		transition: border-color 0.2s ease-out;
		}
		#detailFile a:hover{
			border-color: #0068b7;
			}
	#detailFile .thumb{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding: 0;
		}

/* Small */
@media (max-width: 767.98px) {
/*767以下px*/
#detailLink{}
	#detailLink .microlink_card{
		display: flex;
		flex-direction: column;
		height: auto;
		}
		#detailLink .microlink_card > *{
			}
#detailFile{
	display: flex;
	flex-direction: column;
	}
}

/* Medium */
@media (min-width: 768px) {
/*768px以上*/
#detailLink{}
	#detailLink .microlink_card__content_title p{
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		}
	#detailLink .microlink_card__content_description p{
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		height: 5.8em;
		text-overflow: inherit;
		white-space: inherit;
		overflow: hidden;
		}
#detailFile{}
	#detailFile dl{
		height: 12em;
		}
	#detailFile dt{
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		}
	#detailFile dt+dd{
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		height: 5.8em;
		overflow: hidden;
		}
}

