/* CSS Document */

main {
	padding-bottom: 64px;
}

#detail {
	display: grid;
	width: var(--wrap);
	margin: 0 auto;
	grid-row-gap: 56px;
	padding: 56px 0;
}

@media (min-width: 992px) {
	#detail {
		padding: 72px 0;
		grid-row-gap: 72px;
	}

	#detail h2 {
		font-size: 32px;
	}
}

#detail h2 {
	display: grid;
	font-weight: 700;
	font-size: 24px;
}

#detailHeader {
	display: grid;
	grid-gap: 32px 64px;
}

#detailHeader #detailPhoto {
	grid-row: 2;
}

@media (min-width: 992px) {
	#detailHeader {
		grid-template-columns: repeat(2, 1fr);
	}

	#detailHeader h2 {
		grid-column: 1 / 3;
	}

	#detailHeader #detailText {
		grid-column: 1 / 3;
		margin-top: 24px;
	}

	#detailHeader #detailPhoto {
		grid-column: 1;
		grid-row: 2;
	}
}

#detailStatus dl {
	display: grid;
	border: solid #5ab6b6;
	border-width: 2px 0;
}

#detailStatus dt {
	padding-top: 16px;
	color: #5ab6b6;
	font-weight: 700;
}

#detailStatus dd + dt {
	border-top: 1px solid var(--color-border);
}

#detailStatus dd {
	padding-bottom: 16px;
}

#detailPhoto img {
	aspect-ratio: 1 / 0.667;
	object-fit: contain;
	background: #f2f2f2;
	border-radius: 16px;
}

#detailDownload {
	display: grid;
}

#detailDownload h3 {
	justify-self: center;
	color: #5ab6b6;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

@media (min-width: 992px) {
	#detailDownload h3 {
		font-size: 20px;
	}
}

#detailDownload h3 + div {
	display: flex;
	flex-wrap: wrap;
	grid-gap: 16px 24px;
	justify-content: center;
	margin-top: 32px;
}

@media (min-width: 992px) {
	#detailDownload h3 + div {
		column-gap: 48px;
	}
}

#detailDownload a {
	display: grid;
	grid-template-columns: 16px 1fr;
	align-items: center;
	grid-gap: 16px;
	width: min(100%, 280px);
	min-height: 48px;
	padding: 8px 24px;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	background: #fff;
	color: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

#detailDownload a:before {
	content: "";
	aspect-ratio: 1;
	-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="8 2 8 15" /><polyline points="2 8 15 8" /></svg>') center no-repeat;
	-webkit-mask-size: contain;
	background: currentColor;
	transform: translateX(-8px);
}

#detailDownload a#cart:hover {
	background: var(--color-theme);
	border-color: transparent;
	color: #fff;
}

#detailDownload a#delete {
	background: var(--color-theme);
	border-color: transparent;
	color: #fff;
}

#detailDownload a#delete:before {
	-webkit-mask-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="2 8 15 8" /></svg>');
}

#detailDownload a#delete:hover {
	background: #999;
}

#detailDownload a.none {
	display: none;
}

#detailFooter {
	display: flex;
	justify-content: center;
}

#detailFooter a {
	display: grid;
	grid-template-columns: 1fr 24px;
	grid-gap: 8px;
	align-items: center;
	width: min(100%, 280px);
	min-height: 64px;
	padding: 4px 16px 4px 24px;
	border-radius: 32px;
	border: 1px solid currentColor;
	color: inherit;
	letter-spacing: 0.05em;
	text-align: center;
	text-decoration: none;
}

#detailFooter a:before,
#detailFooter a:after {
	grid-column: 2;
	grid-row: 1;
	content: "";
	aspect-ratio: 1;
}

#detailFooter a:before {
	background: #5ab6b6;
	border-radius: 100%;
}

#detailFooter a:after {
	background: #fff;
	-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.81,11.4l-4.38-4.38c-.33-.33-.86-.33-1.19,0-.33.33-.33.86,0,1.19l2.79,2.79H6.93c-.55,0-.99.45-.99.99s.44.99.99.99h8.1l-2.79,2.79c-.33.33-.33.86,0,1.19.16.16.38.25.6.25s.43-.08.6-.25l4.38-4.38c.33-.33.33-.86,0-1.19Z"/></svg>') center no-repeat;
	-webkit-mask-size: contain;
}




