:root {
	--clubs-blue: #1088d0;
	--clubs-sky: #35a6df;
	--clubs-green: #40b237;
	--clubs-ink: #222;
	--clubs-text: #222;
}

html {
	scroll-behavior: smooth;
}

.clubs-page {
	overflow: hidden;
	background: #fff;
	color: var(--clubs-text);
	font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Yu Gothic", sans-serif;
}

.site-header--subpage + #primary.clubs-page {
	padding-top: 0;
}

.clubs-container {
	width: min(calc(100% - 48px), 1280px);
	margin-inline: auto;
}

.clubs-hero {
	position: relative;
	min-height: min(43.509vw, 744px);
	padding: 0 24px;
	background: #fff;
}

.clubs-hero__title {
	position: absolute;
	top: min(12vw, 205px);
	left: 50%;
	z-index: 1;
	text-align: center;
	transform: translateX(-50%);
}

.clubs-page .clubs-hero__title p {
	margin: 0;
	color: #bcdff4;
	font-size: clamp(6rem, 8.187vw, 8.75rem);
	font-weight: 300;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.clubs-page .clubs-hero__title h1 {
	margin: max(-52px, -3.041vw) 0 0;
	color: #222;
	font-size: clamp(2rem, 2.339vw, 2.5rem);
	font-weight: 800;
	letter-spacing: 0.08em;
}

.clubs-hero__links {
	position: absolute;
	z-index: 2;
	bottom: min(5vw, 85px);
	left: 50%;
	display: grid;
	width: min(calc(100% - 48px), 58.48vw, 1000px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: min(3.158vw, 54px);
	transform: translateX(-50%);
}

.clubs-hero__links a {
	position: relative;
	display: flex;
	min-height: min(6.082vw, 104px);
	align-items: center;
	justify-content: center;
	padding: 18px 28px;
	border: 0;
	border-radius: min(0.585vw, 10px);
	background: #2582b8;
	color: #fff;
	font-size: clamp(1.1rem, 1.521vw, 1.625rem);
	font-weight: 700;
	text-decoration: none;
	transition: filter 180ms ease, transform 180ms ease;
}

.clubs-hero__links a:last-child {
	background: #71bb6b;
}

.clubs-hero__links a span:last-child {
	position: absolute;
	right: 28px;
	color: #fff;
	font-size: 1.25rem;
}

.clubs-hero__links a:hover,
.clubs-hero__links a:focus-visible {
	color: #fff;
	filter: brightness(0.92);
	transform: translateY(-2px);
}

.club-section {
	padding: 112px 0 69px;
	scroll-margin-top: 120px;
}

.club-section--sports {
	padding-top: 56px;
}

.club-section--cultural {
	padding-bottom: 110px;
	background: #fff;
}

.club-section__header {
	display: grid;
	min-height: 321px;
	grid-template-columns: minmax(0, 1fr) 560px;
	align-items: start;
	gap: 48px;
}

.club-section__english {
	margin: 0;
	color: transparent;
	font-size: clamp(4rem, 7vw, 6.75rem);
	font-weight: 300;
	letter-spacing: 0.015em;
	line-height: 1.02;
	text-transform: uppercase;
	-webkit-text-stroke: 1px var(--clubs-blue);
}

.club-section--cultural .club-section__english {
	-webkit-text-stroke-color: var(--clubs-green);
}

.club-section__header h2 {
	margin: 10px 0 0 7px;
	color: #222;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.club-section__feature {
	justify-self: end;
	width: 560px;
	height: 286px;
	transform: translateX(-96px);
}

.club-section__feature img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (min-width: 1025px) {
	.clubs-hero .lower-hero-decoration--right {
		top: 100px;
	}

	.clubs-hero .lower-hero-decoration--left {
		bottom: -24px;
	}

	.clubs-hero .lower-hero-decoration--left-dots {
		bottom: 210px;
	}
}

.club-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 15px;
}

.club-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 5px;
	aspect-ratio: 1;
	background: #d9dde1;
	cursor: pointer;
	font: inherit;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.club-card:hover,
.club-card:focus-visible {
	z-index: 1;
	box-shadow: 0 12px 28px rgb(23 71 101 / 24%);
	outline: 3px solid rgb(16 136 208 / 30%);
	outline-offset: 2px;
	transform: translateY(-4px);
}

.club-card img,
.club-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.club-card:hover img {
	transform: scale(1.035);
}

.club-card__name {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	min-height: 77px;
	align-items: flex-end;
	justify-content: center;
	padding: 28px 9px 14px;
	background: linear-gradient(to top, #0085d5 0%, rgb(0 133 213 / 86%) 42%, rgb(0 133 213 / 0%) 100%);
	color: #fff;
	font-size: clamp(15px, 1.22vw, 1.1rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.55;
	text-align: center;
}

.club-card--cultural .club-card__name {
	background: linear-gradient(to top, #40b237 0%, rgb(64 178 55 / 86%) 42%, rgb(64 178 55 / 0%) 100%);
}

body.is-club-modal-open {
	overflow: hidden;
}

.club-modal[hidden] {
	display: none;
}

.club-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	padding: 24px;
	place-items: center;
}

.club-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(15 36 52 / 68%);
	backdrop-filter: blur(3px);
}

.club-modal__panel {
	position: relative;
	z-index: 1;
	width: min(1270px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 26px 80px rgb(0 0 0 / 28%);
	overscroll-behavior: contain;
}

.club-modal__content {
	width: min(calc(100% - 96px), 1120px);
	margin-inline: auto;
	padding: 66px 0 72px;
}

.club-modal__close {
	position: sticky;
	z-index: 3;
	top: 18px;
	left: calc(100% - 66px);
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: -48px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--clubs-blue);
	box-shadow: 0 5px 18px rgb(18 71 105 / 20%);
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
}

.club-modal__close:hover,
.club-modal__close:focus-visible {
	background: #096ca8;
	outline: 3px solid rgb(16 136 208 / 30%);
	outline-offset: 3px;
}

.club-modal__intro {
	display: grid;
	min-height: 340px;
	grid-template-columns: minmax(0, 1fr) 393px;
	align-items: center;
	gap: 72px;
}

.club-modal__category {
	display: inline-block;
	margin: 0 0 10px;
	padding-bottom: 7px;
	border-bottom: 2px solid var(--clubs-sky);
	color: var(--clubs-sky);
	font-size: 0.94rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.club-modal__category--cultural {
	border-bottom-color: var(--clubs-green);
	color: var(--clubs-green);
}

.club-modal__copy h2 {
	margin: 0 0 22px;
	color: var(--clubs-ink);
	font-size: clamp(2rem, 3.35vw, 3rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.club-modal__lead p {
	margin: 0;
	color: #222;
	font-size: 1.1rem;
	letter-spacing: 0.025em;
	line-height: 1.9;
}

.club-modal__image {
	height: 312px;
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #d9dde1;
}

.club-modal__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.club-modal__results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.club-result {
	min-height: 226px;
	overflow: hidden;
	border: 1px solid var(--clubs-sky);
	border-radius: 8px;
	background: #fff;
}

.club-result--green {
	border-color: #71bb6b;
}

.club-result h3 {
	margin: 0;
	padding: 7px 20px;
	background: var(--clubs-sky);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.45;
	text-align: center;
}

.club-result--green h3 {
	background: #71bb6b;
}

.club-result ul {
	margin: 0;
	padding: 17px 28px 24px 49px;
	color: var(--clubs-text);
	font-size: 1rem;
	line-height: 1.9;
}

.club-result li + li {
	margin-top: 3px;
}

.club-modal__about {
	position: relative;
	margin-top: 36px;
}

.club-modal__about h3 {
	position: relative;
	margin: 0 0 11px;
	padding-left: 34px;
	color: var(--clubs-blue);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.5;
}

.club-modal__about h3::before {
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--clubs-blue);
	content: "";
}

.club-modal__about--cultural h3 {
	color: var(--clubs-green);
}

.club-modal__about--cultural h3::before {
	background: var(--clubs-green);
}

.club-modal__about p {
	margin: 0;
	color: var(--clubs-text);
	font-size: 1rem;
	letter-spacing: 0.02em;
	line-height: 1.9;
}

@media (max-width: 1024px) {
	.club-section__header {
		grid-template-columns: minmax(0, 1fr) 420px;
	}

	.club-section__feature {
		width: 420px;
		height: 250px;
		transform: none;
	}

	.club-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.club-modal__intro {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 42px;
	}
}

@media (max-width: 767px) {
	.clubs-container {
		width: min(calc(100% - 32px), 1280px);
	}

	.clubs-hero {
		min-height: 500px;
		padding-inline: 16px;
	}

	.clubs-hero__title {
		top: 94px;
	}

	.clubs-page .clubs-hero__title p {
		font-size: clamp(4.5rem, 23vw, 6rem);
	}

	.clubs-page .clubs-hero__title h1 {
		margin-top: -34px;
	}

	.clubs-hero__links {
		bottom: 35px;
		width: calc(100% - 32px);
		gap: 12px;
	}

	.clubs-hero__links a {
		min-height: 74px;
		padding: 14px 16px;
		border-radius: 8px;
		font-size: 1rem;
	}

	.clubs-hero__links a span:last-child {
		right: 14px;
	}

	.club-section {
		padding-block: 68px;
	}

	.club-section--sports {
		padding-top: 34px;
	}

	.club-section__header {
		min-height: 0;
		grid-template-columns: 1fr;
		gap: 30px;
		margin-bottom: 38px;
	}

	.club-section__english {
		font-size: clamp(3.6rem, 18vw, 5.5rem);
	}

	.club-section__feature {
		width: min(100%, 520px);
		height: auto;
		aspect-ratio: 1125 / 572;
		justify-self: center;
	}

	.club-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.club-card__name {
		min-height: 62px;
		padding: 24px 6px 10px;
		font-size: 15px;
	}

	.club-modal {
		padding: 12px;
	}

	.club-modal__panel {
		max-height: calc(100vh - 24px);
	}

	.club-modal__content {
		width: calc(100% - 36px);
		padding: 58px 0 42px;
	}

	.club-modal__close {
		top: 10px;
		left: calc(100% - 54px);
		width: 42px;
		height: 42px;
	}

	.club-modal__intro {
		min-height: 0;
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.club-modal__copy h2 {
		margin-bottom: 14px;
		font-size: 2rem;
	}

	.club-modal__lead p {
		font-size: 0.96rem;
	}

	.club-modal__image {
		height: auto;
		aspect-ratio: 393 / 312;
	}

	.club-modal__results {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 28px;
	}

	.club-result {
		min-height: 0;
	}

	.club-result h3,
	.club-modal__about h3 {
		font-size: 1.2rem;
	}

	.club-result ul,
	.club-modal__about p {
		font-size: 15px;
	}
}

@media (max-width: 640px) {
	.clubs-page .clubs-hero__title h1 {
		margin-top: -24px;
	}
}
