/* 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;
	& header{
		display: contents;
	}
	#title{
		order: -3;
	}
	#text{
		order: -1;
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(32px, calc(56 / 1200 * 100dvw), 56px);
	}
	#info{
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(48px, calc(96 / 1200 * 100dvw), 96px);
	}
	#favorite{
		order: -2;
		margin-top: clamp(24px, calc(40 / 1200 * 100dvw), 40px);
	}
	#photo{
		order: -3;
		margin-top: clamp(24px, calc(32 / 1200 * 100dvw), 32px);
	}
	#topics{
		order: -1;
		margin-top: clamp(64px, calc(104 / 1200 * 100dvw), 104px);
	}
	#basic{
		justify-self: center;
		width: min(100%, 940px);
		margin-top: clamp(64px, calc(80 / 1200 * 100dvw), 80px);
	}
	#movie{
		justify-self: center;
		width: min(100%, 940px);
	}
}

#title{
	display: grid;
	grid-row-gap: 16px;
	& h2{
		position: relative;
		display: grid;
		padding-bottom: 16px;
		font-weight: 700;
		font-size: clamp(24px, calc(40 / 768 * 100dvw), 40px);
		letter-spacing: 0.025em;
		&:before{
			content: attr(data-kana);
			font-size: 12px;
		}
		&:after{
			content: "";
			position: absolute;
			right: 0;
			bottom: 0;
			width: 100dvw;
			border-bottom: 1px dashed currentColor;
		}
	}
	& p{
		color: var(--color-theme-sub);
		font-weight: 700;
		font-size: clamp(20px, calc(26 / 768 * 100dvw), 26px);
		&:empty{
			display: none;
		}
	}
}

#info{
	display: grid;
	grid-gap: 16px clamp(16px, calc(32 / 1200 * 100dvw), 32px);
	@media (max-width: 991.98px) {
		#view{
			justify-self: end;
		}
	}
	@media (min-width: 992px) {
		grid-template-columns: 1fr auto;
	}
}

#category{
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: clamp(16px, calc(32 / 1200 * 100dvw), 32px);
	& h3{
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 0.5em;
		font-weight: 700;
		&:before{
			content: "";
			width: 4px;
			height: 1em;
			background: var(--color-theme-sub);
			border-radius: 2px;
			transform: translateY(calc(0.875em - 50%));
		}
	}
	& ul{
		display: flex;
		flex-wrap: wrap;
		grid-gap: clamp(8px, calc(16 / 768 * 100dvw), 16px);
	}
	& li{
		display: contents;
	}
	& a{
		display: grid;
		align-items: center;
		min-height: 32px;
		padding: 0 1em;
		border: 1px solid currentColor;
		border-radius: 16px;
		color: inherit;
		font-weight: 700;
		font-size: 14px;
		text-decoration: none;
	}
}

#view{
	display: flex;
	align-items: baseline;
	column-gap: 0.25em;
	font-weight: 700;
	white-space: nowrap;
	& span{
		font-size: 20px;
	}
}

#favorite{
	display: flex;
	justify-content: center;
	& a{
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		column-gap: 0.5em;
		min-width: min(100%, 300px);
		min-height: 48px;
		padding: 0.25em 1em;
		background: var(--color-theme);
		border-radius: 24px;
		color: inherit;
		font-weight: 700;
		letter-spacing: 0.025em;
		text-align: center;
		text-decoration: none;
		&:before,
		&: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"><rect width="100%" height="100%"/></svg>') no-repeat center / contain;
		}
		&:before{
			width: 24px;
			-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.12,9.31h-7.46l-2.3-7.2c-.11-.35-.6-.35-.72,0l-2.3,7.2H1.88c-.36,0-.51.46-.22.68l6.04,4.46-2.31,7.21c-.11.35.29.63.58.42l6.03-4.45,6.03,4.45c.29.22.69-.07.58-.42l-2.31-7.21,6.04-4.46c.29-.22.14-.68-.22-.68Z"/></svg>');
		}
		&:after{
			width: 12px;
			-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><rect x="5" width="2" height="12"/><rect x="5" width="2" height="12" transform="translate(0 12) rotate(-90)"/></svg>');
		}
		&.favOn{
			background: #f7f4be;
			&:after{
				-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><rect x="5" width="2" height="12" transform="translate(0 12) rotate(-90)"/></svg>');
			}
		}
	}
}

#photo{
	&:not(&:has(.slick-slider)){
		display: grid;
		grid-template-columns: min(75dvw, 660px);
		justify-content: center;
		& dl{
			grid-column: 1;
			grid-row: 1;
			display: grid;
			border-radius: 16px;
			overflow: hidden;
			&:nth-child(n+2){
				visibility: hidden;
			}
		}
		& dt,
		& dd{
			grid-column: 1;
			grid-row: 1;
		}
		& dt{
			display: grid;
			align-content: end;
			padding: 1em;
			background: linear-gradient(transparent, rgba(35, 24, 24, 0.1) 60%, rgba(35, 24, 24, 0.5) 85%, rgba(35, 24, 24, 0.9));
			color: #fff;
			font-weight: 700;
			font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
			text-align: center;
			pointer-events: none;
			z-index: 1;
			&:empty{
				display: none;
			}
		}
		& dd{
			& a{
				display: block;
			}
			& img{
				aspect-ratio: 3 / 2;
				object-fit: cover;
			}
		}
	}
	& dd{
		& a{
			display: block;
		}
		& img{
			aspect-ratio: 3 / 2;
			object-fit: cover;
		}
	}
	#photoSlideNav{
		margin-top: clamp(16px, calc(40 / 1200 * 100dvw), 40px);
	}
}

#photoSlide{
	& dl{
		display: grid;
		border-radius: 16px;
		overflow: hidden;
	}
	& dt,
	& dd{
		grid-column: 1;
		grid-row: 1;
	}
	& dt{
		display: grid;
		align-content: end;
		padding: 1em;
		background: linear-gradient(transparent, rgba(35, 24, 24, 0.1) 60%, rgba(35, 24, 24, 0.5) 85%, rgba(35, 24, 24, 0.9));
		color: #fff;
		font-weight: 700;
		font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
		text-align: center;
		pointer-events: none;
		z-index: 1;
		&:empty{
			display: none;
		}
	}
	& dd{
		& a{
			display: block;
		}
		& img{
			aspect-ratio: 3 / 2;
			object-fit: cover;
		}
	}
	.slick-list{
		overflow: visible;
	}
	.slick-slide{
		width: min(75dvw, 660px);
		margin: 0 clamp(8px, calc(20 / 1200 * 100dvw), 20px);
	}
}

#photoSlideNav{
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	& dl{
		border-radius: 8px;
		overflow: hidden;
	}
	& dt{
		display: none;
	}
	& dd{
		& a{
			pointer-events: none;
		}
	}
	.slick-list{
		grid-column: 2;
		&:not(:only-child){
			margin: 0 8px;
		}
	}
	.slick-slide{
		margin: 0 4px;
		cursor: pointer;
	}
	.slick-current{
		& dl{
			position: relative;
			&:before{
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background: rgba(0, 0, 0, 0.6);
			}
		}
	}
}

#topics{
	display: grid;
	grid-row-gap: clamp(48px, calc(64 / 1200 * 100dvw), 64px);
	& section{
		display: grid;
		grid-row-gap: 24px;
	}
	& h3{
		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;
		}
	}
	& dl{
		position: relative;
		display: grid;
		grid-template-rows: auto auto 1fr;
		grid-row-gap: 8px;
		&:not(:has(img)):before{
			content: "";
			aspect-ratio: 3 / 2;
			background: var(--dummy);
			border-radius: 10px;
		}
	}
	& dt{
		font-weight: 700;
		font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
	}
	& dd{
		font-size: clamp(12px, calc(14 / 768 * 100dvw), 14px);
		&:has(img){
			order: -1;
		}
		& img{
			aspect-ratio: 3 / 2;
			object-fit: cover;
			border-radius: 16px;
		}
		&:has(a){
			display: contents;
		}
		& a{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			font-size: 0;
		}
	}
	.slide{
		display: grid;
		&:not(.slick-initialized){
			grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 24px), 248px), 1fr));
			grid-gap: clamp(24px, calc(32 / 1200 * 100dvw), 32px) 16px;
		}
	}
	.slick-slider{
		grid-template-columns: auto 1fr auto;
		align-items: center;
		@media (min-width: 1200px) {
			grid-template-columns: 0 1fr 0;
			.slick-list{
				margin: 0 calc(0px - clamp(4px, calc(10 / 1200 * 100dvw), 10px));
			}
		}
		&:before{
			content: "";
			grid-column: 2;
			grid-row: 1;
			aspect-ratio: 3 / 2;
			width: calc(100% - clamp(8px, calc(20 / 1200 * 100dvw), 20px));
			margin: 0 clamp(4px, calc(10 / 1200 * 100dvw), 10px);
			visibility: hidden;
		}
		@media (min-width: 576px) {
			&:before{
				width: calc(50% - clamp(8px, calc(20 / 1200 * 100dvw), 20px));
			}
		}
		@media (min-width: 992px) {
			&:before{
				width: calc(33.33% - clamp(8px, calc(20 / 1200 * 100dvw), 20px));
			}
		}
		@media (min-width: 1200px) {
			&:before{
				width: calc((100% - (clamp(8px, calc(20 / 1200 * 100dvw), 20px) * 3)) / 4);
			}
		}
	}
	.slick-list{
		grid-column: 2;
		grid-row: 1 / 3;
		@media (max-width: 1199.98px) {
			overflow: visible;
		}
	}
	.slick-slide{
		margin: 0 clamp(4px, calc(10 / 1200 * 100dvw), 10px);
	}
	.slick-arrow{
		justify-self: center;
	}
}

#basic{
	position: relative;
	padding: clamp(64px, calc(80 / 1200 * 100dvw), 80px) 0 clamp(32px, calc(64 / 1200 * 100dvw), 64px) 0;
	&:before{
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 100dvw;
		height: 100%;
		background: #f7f4be;
		transform: translateX(-50%);
		z-index: -1;
	}
	& h3{
		color: var(--color-theme-sub);
		font-weight: 700;
		font-size: clamp(18px, calc(24 / 768 * 100dvw), 24px);
		text-align: center;
	}
	& h3+div{
		margin-top: clamp(16px, calc(24 / 1200 * 100dvw), 24px);
	}
	& h3+div+div{
		margin-top: 16px;
		& p{
			padding-left: 1em;
			text-indent: -1em;
			font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
		}
	}
	& dl{
		display: grid;
		background: #fff;
		border-radius: 16px;
		overflow: hidden;
	}
	& dt,
	& dd{
		padding: 16px 24px;
	}
	& dt{
		background: var(--color-theme-sub);
		color: #fff;
		font-weight: 700;
	}
	& li{
		& a{
			display: grid;
			grid-template-columns: auto 1fr;
			column-gap: 0.25em;
			font-weight: 700;
			&:before{
				content: "";
				aspect-ratio: 1;
				width: 16px;
				background: currentColor;
				transform: translateY(calc(0.875em - 50%));
				-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M2,4H0v12h12v-2H2V4ZM14,0H4v12h12V0h-2ZM14,10H6V2h8v8Z"/></svg>') no-repeat center / contain;
			}
		}
	}
	@media (min-width: 576px) {
		& dl{
			grid-template-columns: auto 1fr;
		}
		& dt{
			min-width: 10em;
			&:nth-of-type(n+2){
				border-top: 1px solid #fff;
			}
		}
		& dd{
			&:nth-of-type(n+2){
				border-top: 1px solid var(--color-theme-sub);
			}
		}
	}
}

#movie{
	position: relative;
	padding-bottom: clamp(64px, calc(80 / 1200 * 100dvw), 80px);
	&:before{
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		width: 100dvw;
		height: 100%;
		background: #f7f4be;
		transform: translateX(-50%);
		z-index: -1;
	}
	& h3{
		display: none;
	}
	& iframe{
		aspect-ratio: 16 / 9;
		width: 100%;
		height: auto;
	}
}

#map{
	position: relative;
	padding-top: calc(min(75dvh, 500px) + 40px);
	& iframe{
		position: absolute;
		top: 0;
		left: 50%;
		width: 100dvw;
		height: min(75dvh, 500px);
		transform: translateX(-50%);
	}
	#mapLink{
		display: flex;
		justify-content: center;
		& a{
			display: grid;
			grid-template-columns: 1fr auto;
			align-items: center;
			column-gap: 4px;
			min-width: min(100%, 560px);
			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;
			&: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;
			}
		}
	}
}

#related{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	grid-row-gap: clamp(48px, calc(80 / 1200 * 100dvw), 80px);
	margin-top: clamp(64px, calc(120 / 1200 * 100dvw), 120px);
	overflow: hidden;
	& 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{
		display: grid;
		grid-gap: clamp(24px, calc(32 / 1200 * 100dvw), 32px);
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr));
		margin-top: clamp(24px, calc(32 / 1200 * 100dvw), 32px);
	}
	& section{
		position: relative;
		display: grid;
		grid-template-columns: 70px 1fr;
		align-items: center;
		column-gap: 16px;
		&:not(:has(img)):before{
			content: "";
			aspect-ratio: 1;
			background: var(--dummy);
			border-radius: 8px;
		}
	}
	& h3{
		font-weight: 700;
		line-height: 1.625;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		max-height: calc(1.625em * 3);
		overflow: hidden;
	}
	& h3+div{
		display: contents;
		& a{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			font-size: 0;
		}
	}
	& figure{
		order: -1;
		& img{
			aspect-ratio: 1;
			object-fit: cover;
			border-radius: 8px;
		}
	}
}

#recommend{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	margin-top: clamp(64px, calc(128 / 1200 * 100dvw), 128px);
	overflow: hidden;
	& 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);
		word-break: keep-all;
		overflow-wrap: anywhere;
		&: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{
		display: grid;
		margin-top: clamp(24px, calc(32 / 1200 * 100dvw), 32px);
		&:not(.slick-initialized){
			grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 24px), 248px), 1fr));
			grid-gap: clamp(24px, calc(32 / 1200 * 100dvw), 32px) 20px;
		}
	}
	& section{
		position: relative;
		display: grid;
		align-content: start;
		grid-row-gap: 8px;
		&:not(:has(img)):before{
			content: "";
			aspect-ratio: 1;
			background: var(--dummy);
			border-radius: 16px;
		}
	}
	& h3{
		font-weight: 700;
	}
	& h3+div{
		display: contents;
		& a{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			font-size: 0;
		}
	}
	& figure{
		order: -1;
		& img{
			aspect-ratio: 1;
			object-fit: cover;
			border-radius: 16px;
		}
	}
	.slide{
		display: grid;
		&:not(.slick-initialized){
			grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 24px), 248px), 1fr));
			grid-gap: clamp(24px, calc(32 / 1200 * 100dvw), 32px) 16px;
		}
	}
	.slick-slider{
		grid-template-columns: auto 1fr auto;
		align-items: center;
		@media (min-width: 1200px) {
			grid-template-columns: 0 1fr 0;
			.slick-list{
				margin: 0 calc(0px - clamp(4px, calc(10 / 1200 * 100dvw), 10px));
			}
		}
		&:before{
			content: "";
			grid-column: 2;
			grid-row: 1;
			aspect-ratio: 1;
			width: calc(100% - clamp(8px, calc(20 / 1200 * 100dvw), 20px));
			margin: 0 clamp(4px, calc(10 / 1200 * 100dvw), 10px);
			visibility: hidden;
		}
		@media (min-width: 576px) {
			&:before{
				width: calc(50% - clamp(8px, calc(20 / 1200 * 100dvw), 20px));
			}
		}
		@media (min-width: 992px) {
			&:before{
				width: calc(33.33% - clamp(8px, calc(20 / 1200 * 100dvw), 20px));
			}
		}
		@media (min-width: 1200px) {
			&:before{
				width: calc((100% - (clamp(8px, calc(20 / 1200 * 100dvw), 20px) * 3)) / 4);
			}
		}
	}
	.slick-list{
		grid-column: 2;
		grid-row: 1 / 3;
		@media (max-width: 1199.98px) {
			overflow: visible;
		}
	}
	.slick-slide{
		margin: 0 clamp(4px, calc(10 / 1200 * 100dvw), 10px);
	}
	.slick-arrow{
		justify-self: center;
	}
}

.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{
	display: none;
}


