/* CSS Document */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');
/*
Zen Kurenaido
	font-family: "Zen Kurenaido", sans-serif;
	font-weight: 400;
*/

main{
	background: var(--color-bg);
}

article{
	& 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;
			}
			& p{
				grid-column: 2;
				grid-row: 2;
				justify-self: center;
			}
		}
		& h2{
			font-weight: 900;
			font-size: clamp(24px, calc(32 / 768 * 100dvw), 32px);
			letter-spacing: 0.15em;
			text-align: center;
			text-wrap: balance;
		}
		& p{
			font-weight: 600;
			font-size: clamp(20px, calc(28 / 768 * 100dvw), 28px);
			font-family: 'Montserrat', var(--font);
			letter-spacing: 0.2em;
			text-align: center;
			text-wrap: balance;
			& span{
				display: contents;
				color: var(--color-theme);
			}
		}
	}
}

#dialect{
	&{
		display: grid;
		#lead,
		#index{
			justify-self: center;
			width: var(--wrap);
			margin-top: clamp(24px, calc(40 / 768 * 100dvw), 40px);
		}
		#contents{
			margin-top: clamp(32px, calc(56 / 768 * 100dvw), 56px);
			padding: clamp(24px, calc(40 / 768 * 100dvw), 40px);
			background: white;
			@media (max-width: 991.98px) {
				padding-bottom: clamp(64px, calc(104 / 768 * 100dvw), 104px);
			}
			@media (min-width: 992px) {
				justify-self: center;
				width: min(100%, 1120px);
				margin-bottom: clamp(64px, calc(104 / 768 * 100dvw), 104px);
				border-radius: 40px;
			}
		}
		#list{
			margin-top: 16px;
		}
		#workshop{
			margin-top: clamp(40px, calc(64 / 768 * 100dvw), 64px);	
		}
	}
}

#lead{
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 2;
	text-align: center;
	text-wrap: balance;
	word-break: keep-all;
	overflow-wrap: anywhere;
}

#index{
	& ul{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		grid-gap: clamp(16px, calc(24 / 768 * 100dvw), 24px);
	}
	& a{
		position: relative;
		display: grid;
		place-content: center;
		aspect-ratio: 1;
		width: 3.2em;
		margin-bottom: 16px;
		background: white;
		border-radius: 100%;
		color: inherit;
		font-weight: 700;
		font-size: clamp(16px, calc(20 / 768 * 100dvw), 20px);
		text-decoration: none;
		&:before{
			content: "";
			position: absolute;
			top: 100%;
			left: 0;
			width: 100%;
			height: 16px;
			background: var(--color-theme);
			-webkit-mask: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -4 16 16" style="fill: none; stroke: black; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px;"><polyline points="14 5 8 11 2 5"/></svg>') no-repeat center / contain;
		}
	}
}

#list{
	display: grid;
	grid-row-gap: clamp(24px, calc(40 / 768 * 100dvw), 40px);
	& section{
		scroll-margin-top: 24px;
		& {
			display: grid;
			grid-gap: 16px 40px;
			@media (min-width: 992px) {
				grid-template-columns: auto 1fr;
			}
		}
	}
	& h3{
		font-weight: 700;
		font-size: clamp(16px, calc(24 / 768 * 100dvw), 24px);
		letter-spacing: 0.15em;
		line-height: 1.25;
		text-align: center;
		text-wrap: balance;
		& span{
			font-size: 2em;
		}
	}
	& table{
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		& thead,
		& tbody,
		& tr{
			display: contents;
		}
		& th,
		& td{
			display: grid;
			align-items: center;
			padding: 8px;
		}
		& th{
			font-family: "Zen Kurenaido", var(--font);
		}
		& thead{
			& th,
			& td{
				color: var(--color-theme);
				border-bottom: 2px solid currentColor;
			}
			& th{
				font-size: clamp(16px, calc(20 / 768 * 100dvw), 20px);
				letter-spacing: 0.2em;
			}
			& td{
				font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
				letter-spacing: 0.3em;
			}
		}
		& tbody{
			& th,
			& td{
				min-height: clamp(48px, calc(56 / 768 * 100dvw), 56px);
				border-bottom: 1px solid color-mix(in srgb, transparent, black 15%);
			}
			& th{
				font-size: clamp(16px, calc(20 / 768 * 100dvw), 20px);
				letter-spacing: 0.1em;
			}
			& td{
				font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
				letter-spacing: 0.025em;
			}
		}
	}
}

#workshop{
	padding: clamp(24px, calc(40 / 768 * 100dvw), 40px);
	border: 1px solid currentColor;
	border-radius: clamp(24px, calc(32 / 768 * 100dvw), 32px);
	&{
		display: grid;
		grid-gap: 16px 40px;
		& h3+div+div{
			align-self: start;
			margin-top: 16px;
		}
		& figure{
			grid-column: 1;
			grid-row: 1;
		}
		@media (min-width: 992px) {
			grid-template-columns: auto 1fr;
			grid-template-rows: auto auto 1fr;
			& h3{
				margin-top: 8px;
			}
			& figure{
				grid-column: 1;
				grid-row: 1 / 4;
				width: clamp(360px, calc(414 / 1366 * 100dvw), 414px);
			}
		}
	}
	& h3{
		font-weight: 700;
		font-size: clamp(18px, calc(24 / 768 * 100dvw), 24px);
		letter-spacing: 0.1em;
	}
	& h3+div{
		font-weight: 600;
		font-size: clamp(14px, calc(16 / 768 * 100dvw), 16px);
		letter-spacing: 0.025em;
		line-height: 2;
	}
	& h3+div+div{
		display: flex;
		justify-content: center;
		& a{
			display: grid;
			grid-template-columns: 1fr auto;
			align-items: center;
			min-width: min(90%, 288px);
			min-height: 40px;
			padding: 8px;
			border: 1px solid currentColor;
			border-radius: 20px;
			color: inherit;
			font-weight: 800;
			font-size: 14px;
			letter-spacing: 0.05em;
			text-align: center;
			text-decoration: none;
			&:after{
				content: "";
				aspect-ratio: 1;
				width: 1em;
				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-linecap: round; stroke-linejoin: round;"><polyline points="5 3 9 7 5 11"/></svg>') no-repeat center / contain;
			}
		}
	}
	& figure{
		position: relative;
		aspect-ratio: 414 / 276;
		border-radius: 8px;
		overflow: hidden;
		& img{
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			object-fit: cover;
		}
	}
}




