/* CSS Document */

#main{
	background: var(--color-bg);
}

#pamphlet,
#poster{
	display: grid;
	&:before{
		content: "";
		grid-column: 1;
		grid-row: 3;
		justify-self: center;
		width: min(100%, 1236px);
		height: 100%;
		margin-top: clamp(48px, calc(64 / 768 * 100dvw), 64px);
		background: white;
	}
	& hgroup{
		display: grid;
		grid-template-columns: 1fr var(--wrap) 1fr;
		grid-row-gap: 16px;
		&:before{
			content: "";
			grid-column: 1 / 4;
			grid-row: 1;
			background: white;
			margin-bottom: -8px;
		}
		& h2{
			grid-column: 2;
			grid-row: 1;
			margin-top: 24px;
			text-align: center;
		}
		& p{
			grid-column: 2;
			grid-row: 2;
			justify-self: center;
			font-weight: 600;
			font-size: clamp(20px, calc(28 / 1366 * 100dvw), 28px);
			font-family: 'Montserrat', var(--font);
			letter-spacing: 0.2em;
			white-space: nowrap;
		}
	}
	& h2{
		font-weight: 900;
		font-size: clamp(24px, calc(32 / 768 * 100dvw), 32px);
		letter-spacing: 0.15em;
	}
	#text{
		justify-self: center;
		max-width: var(--wrap);
		margin-top: clamp(24px, calc(40 / 768 * 100dvw), 40px);
	}
	#list{
		grid-column: 1;
		grid-row: 3;
		justify-self: center;
		width: var(--wrap);
		margin-top: clamp(48px, calc(64 / 768 * 100dvw), 64px);
		padding: clamp(32px, calc(48 / 768 * 100dvw), 48px) 0 clamp(96px, calc(120 / 768 * 100dvw), 120px) 0;
		z-index: 1;
	}
	@media (min-width: 992px) {
		&:before{
			border-radius: 40px 40px 0 0;
		}
	}
}

#pamphlet{
	& hgroup{
		& p{
			background: linear-gradient(90deg, var(--color-theme) 0.8em, currentColor 0.8em, currentColor 6.6em, var(--color-theme) 6.6em, var(--color-theme) 7.6em, currentColor 7.6em);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
		}
	}
}

#poster{
	& hgroup{
		& p{
			background: linear-gradient(90deg, var(--color-theme) 0.8em, currentColor 0.8em, currentColor 6.6em, var(--color-theme) 6.6em, var(--color-theme) 7.6em, currentColor 7.6em);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
		}
	}
}

#list{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 16px), 272px), 1fr));
	grid-gap: 40px 16px;
	&:has(ul):has(label){
		& section{
			grid-row: span 5;
		}
	}
	& section{
		display: grid;
		grid-template-columns: calc(100% - 16px);
		justify-content: center;
		align-content: start;
		grid-row-gap: 8px;
		grid-template-rows: subgrid;
		grid-row: span 4;
		&:not(:has(figure)):before{
			content: "";
			aspect-ratio: 210 / 297;
			background: var(--dummy);
			border-radius: 4px;
		}
		&:before,
		& figure{
			grid-column: 1;
			grid-row: 2;
			margin-inline: -8px;
		}
	}
	& h3{
		font-weight: 700;
	}
	& h3+div{
		display: contents;
	}
	& p{
		font-weight: 600;
		font-size: 14px;
		letter-spacing: 0.025em;
	}
	& ul{
		display: grid;
		grid-gap: 8px;
		margin-top: 8px;
		@media (min-width: 576px) {
			grid-template-columns: repeat(2, 1fr);
		}
	}
	& li{
		display: contents;
		& a{
			display: grid;
			/*grid-template-columns: auto 1fr;*/
			align-items: center;
			column-gap: 8px;
			min-height: 48px;
			/*padding: 8px 16px;*/
			padding: 8px;
			background: var(--color);
			border-radius: 24px;
			color: white;
			font-weight: 700;
			font-size: 14px;
			text-align: center;
			text-decoration: none;
			&:before{
				/*content: "";*/
				aspect-ratio: 1;
				width: 16px;
				background: currentColor;
			}
			li:nth-child(1) &[href]{
				background: #B80000;
			}
			&:not([href]){
				background: silver;
				color: gray;
			}
		}
	}
	& label{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		grid-gap: 8px;
		margin-top: 8px;
		text-align: center;
		& select{
			field-sizing: content;
			width: auto;
			min-height: 48px;
			padding: 8px;
			padding-right: 2em;
			background: white url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><polygon fill="silver" points="0,0 16,0 8,16"></polygon></svg>') no-repeat calc(100% - 0.75em) center / auto min(20%, 0.5em);
			cursor: pointer;
			border: 1px solid silver;
			&:focus-visible{
				outline: 2px solid var(--color-theme);
				outline-offset: -1px;
			}
			&:required{
				background-color: lemonchiffon;
				outline: 2px solid orangered;
				outline-offset: -1px;
			}
		}
	}
	& figure{
		& img{
			aspect-ratio: 210 / 297;
			object-fit: cover;
			border-radius: 4px;
		}
	}
}

#check{
	display: grid;
	grid-template-columns: var(--wrap);
	justify-content: center;
	width: min(100%, 1236px);
	margin-inline: auto;
	padding-bottom: clamp(96px, calc(120 / 768 * 100dvw), 120px);
	background: white;
	&{
		#checkList{
			margin-top: clamp(16px, calc(24 / 768 * 100dvw), 24px);
		}
		#checkLink{
			margin-top: clamp(32px, calc(48 / 768 * 100dvw), 48px);
		}
	}
	& h2{
		font-weight: 900;
		font-size: clamp(24px, calc(32 / 768 * 100dvw), 32px);
		letter-spacing: 0.15em;
		text-align: center;
		text-wrap: balance;
	}
	#checkList{
		& ul{
			display: grid;
			justify-content: center;
			grid-row-gap: 8px;
		}
		& li{
			position: relative;
			padding-left: calc(1em + 8px);
			&:before{
				content: "";
				position: absolute;
				top: 0;
				left: 0;
				aspect-ratio: 1;
				width: 1em;
				background: currentColor;
				transform: translateY(calc(0.875em - 50%)) scale(0.9);
			}
		}
	}
	#checkLink{
		display: grid;
		justify-items: center;
		grid-gap: clamp(16px, calc(32 / 768 * 100dvw), 32px);
		& label{
			display: grid;
			grid-template-columns: auto 1fr;
			align-items: baseline;
			column-gap: 8px;
			font-weight: 700;
			font-size: clamp(16px, calc(18 / 768 * 100dvw), 18px);
			letter-spacing: 0.05em;
			text-align: center;
			text-wrap: balance;
			cursor: pointer;
			& input{
				display: inline-block;
				aspect-ratio: 1;
				width: 1em;
				background: currentColor url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0.5 12 12" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="1 7 4 10 11 3" /></svg>') no-repeat center / 60%;
				border-radius: 2px;
				color: silver;
				&:checked{
					color: var(--color-theme);
					border-color: currentColor;
				}
				&:not(:disabled){
					cursor: pointer;
				}
			}
		}
		& a{
			display: grid;
			align-items: center;
			min-width: 272px;
			min-height: 48px;
			padding: 8px 16px;
			background: var(--color);
			border-radius: 24px;
			color: white;
			font-weight: 800;
			font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
			letter-spacing: 0.05em;
			text-align: center;
			text-decoration: none;
			label:not(:has(:checked))+&{
				opacity: 0.5;
				pointer-events: none;
			}
		}
	}
}




