@charset "UTF-8";

.motorsports-page {
	--motorsports-ink: #24292f;
	--motorsports-blue: #062a78;
	--motorsports-inner: 120rem;
	color: var(--motorsports-ink);
	overflow: clip;
}

.motorsports-page *,
.motorsports-page *::before,
.motorsports-page *::after {
	box-sizing: border-box;
}

.motorsports-page img {
	display: block;
	max-width: 100%;
}

.motorsports-inner {
	width: min(calc(100% - 4rem), var(--motorsports-inner));
	margin-inline: auto;
}

.motorsports-hero.is-empty,
.motorsports-race.is-empty {
	min-height: 18rem;
	background: #f5f6f7;
	border: 1px dashed #c3c7cc;
}

.motorsports-block-placeholder {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	margin: 0;
	padding: 1rem 1.6rem;
	color: #59616a;
	font-size: 1.3rem;
	line-height: 1.5;
	text-align: center;
	background: #fff;
	border-radius: .4rem;
	box-shadow: 0 .3rem 1.2rem rgba(0, 0, 0, .08);
	transform: translate(-50%, -50%);
}

.motorsports-hero.is-empty .motorsports-hero__content,
.motorsports-race.is-empty .motorsports-race__content {
	display: none;
}


/* ========================================
   MOTOR SPORTS : メインビジュアル
======================================== */

.motorsports-hero {
	position: relative;
	display: grid;
	min-height: clamp(45rem, 67vw, 82rem);
	overflow: hidden;
	isolation: isolate;
	place-items: center;
}

.motorsports-hero__media,
.motorsports-race__media {
	position: absolute;
	z-index: -2;
	inset: -12rem 0;
	will-change: transform;
}

.motorsports-hero__media img,
.motorsports-race__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.motorsports-hero__shade,
.motorsports-race__shade {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 17, 38, .72), rgba(0, 20, 48, .2) 72%);
}

.motorsports-hero__content {
	width: min(calc(100% - 4rem), 92rem);
	color: #fff;
	text-shadow: 0 .2rem 1.2rem rgba(0, 0, 0, .45);
}

.motorsports-hero__content h1 {
	margin: 0 0 2.4rem;
	text-align: center;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", serif!important;
	font-size: clamp(3.4rem, 5.2vw, 7.2rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .035em;
}

.motorsports-hero__text,
.motorsports-race__text {
	font-size: clamp(1.3rem, 1.25vw, 1.7rem);
	font-weight: 600;
	line-height: 2;
}

.motorsports-hero__text p,
.motorsports-race__text p {
	margin: 0;
}

/* ========================================
   MOTOR SPORTS : レースカテゴリー
======================================== */

.motorsports-race-section__heading {
	padding-block: clamp(3rem, 5vw, 5.5rem) clamp(2rem, 3vw, 3.5rem);
}

.motorsports-race-section__heading h2 { 
	margin: 0;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", serif!important;
	font-size: clamp(2.4rem, 3.2vw, 4rem);
	font-weight: 400;
	line-height: 1.4;
}

.motorsports-race {
	position: relative;
	display: grid;
	min-height: clamp(40rem, 54vw, 68rem);
	margin: 1em 0;
	overflow: hidden;
	isolation: isolate;
	align-items: end;
}

.motorsports-race__shade {
	background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .06) 70%);
}

.motorsports-race__content {
	width: min(calc(100% - 4rem), var(--motorsports-inner));
	margin-inline: auto;
	padding-block: clamp(4rem, 8vw, 9rem);
	color: #fff;
	text-shadow: 0 .2rem 1rem rgba(0, 0, 0, .45);
}

.motorsports-race__content h2,
.motorsports-race__content h3 {
	max-width: 76rem;
	margin: 0 0 1.8rem;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", serif!important;
	font-size: clamp(2.8rem, 4vw, 5.5rem);
	font-weight: 400;
	line-height: 1.3;
}

.motorsports-race__text {
	max-width: 62rem;
}

.motorsports-race__buttons {
	display: flex;
	flex-wrap: wrap;
	/*align-items: center;
	justify-content: center;*/
	gap: 1em;
	margin-top: 2.4rem;
}

.motorsports-race__button {
	display: inline-flex;
	min-width: 12rem;
	min-height: 4rem;
	padding: .7rem 1.8rem;
	color: #fff;
	font-size: 1.2rem;
	text-decoration: none;
	border: 1px solid currentColor;
	border-radius: .5rem;
	transition: 0.3s ease-in-out;
	align-items: center;
	justify-content: center;
	margin-top: 1em;
	position: relative;
	line-height: 2.2;
}

.motorsports-race__button::before{
	position: absolute;
    top: 50%;
	right: 1rem;
    width: 0;
    height: 0;
    content: "";
    border-top: .5rem solid transparent;
    border-bottom: .5rem solid transparent;
    border-left: 0.8rem solid #fff;
    transform: translateY(-50%);
    transition: 0.3s ease-in-out;
}

.motorsports-race__button:hover::before{
	right: 0.8rem;
	border-top: .5rem solid transparent;
    border-bottom: .5rem solid transparent;
    border-left: 0.8rem solid var(--motorsports-blue);
}

.motorsports-race__button:hover,
.motorsports-race__button:focus-visible {
	color: var(--motorsports-blue);
	background: #fff;
}
/* ========================================
   MOTOR SPORTS : HISTORY
======================================== */

.motorsports-history {
	padding: clamp(6rem, 10vw, 12rem) 0 clamp(4rem, 7vw, 8rem);
}

.motorsports-history h2,
.motorsports-support h2,
.motorsports-support h3 {
	margin: 0;
	font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", serif!important;
	font-weight: 400;
}

.motorsports-history h2 {
	margin-bottom: 1.4rem;
	font-size: clamp(2.6rem, 3.5vw, 4.2rem);
}

.motorsports-history__list {
	display: grid;
	gap: 1rem;
}

.motorsports-history__button {
	position: relative;
	display: grid;
	width: 100%;
	min-height: 4.8rem;
	padding: .9rem 6rem;
	color: var(--motorsports-ink);
	font-size: clamp(1.2rem, 1.4vw, 1.5rem);
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	border: 1px solid #aeb4ba;
	border-radius: .9rem;
	transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
	place-items: center;
}

.motorsports-history__button::after {
	position: absolute;
	top: 50%;
	right: 2rem;
	width: 0;
	height: 0;
	content: "";
	border-top: .65rem solid transparent;
	border-bottom: .65rem solid transparent;
	border-left: 1rem solid #111;
	transform: translateY(-50%);
	transition: border-left-color 220ms ease, transform 220ms ease;
}

.motorsports-history__button--disabled {
	cursor: default;
}

.motorsports-history__button--disabled::after {
	display: none;
}

a.motorsports-history__button:hover,
a.motorsports-history__button:focus-visible {
	color: #fff;
	background: var(--motorsports-blue);
	border-color: var(--motorsports-blue);
}

a.motorsports-history__button:hover::after,
a.motorsports-history__button:focus-visible::after {
	border-left-color: #fff;
	transform: translate(.4rem, -50%);
}


/* ========================================
   MOTOR SPORTS : Official Support
======================================== */

.motorsports-support {
	padding: clamp(4rem, 7vw, 8rem) 0;
}

.motorsports-support + .motorsports-support {
	padding-top: 2rem;
}

.motorsports-support h2 {
	margin-bottom: clamp(3rem, 5vw, 5.5rem);
	font-size: clamp(2.8rem, 4vw, 4.8rem);
}

.motorsports-support h3 {
	margin-bottom: 2.4rem;
	font-size: clamp(2rem, 2.7vw, 3.2rem);
}

.motorsports-support__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 5rem) clamp(1.2rem, 2vw, 2.4rem);
}

.motorsports-support-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.motorsports-support-card__image {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e9edf2;
}

.motorsports-support-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 450ms cubic-bezier(.22, 1, .36, 1);
}

a.motorsports-support-card:hover .motorsports-support-card__image img,
a.motorsports-support-card:focus-visible .motorsports-support-card__image img {
	transform: scale(1.045);
}

.motorsports-support-card h4 {
	margin: 1.2rem 0 .4rem;
	font-size: clamp(1.3rem, 1.35vw, 1.6rem);
	font-weight: 500;
	line-height: 1.45;
}

.motorsports-support-card p {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.6;
}

/* ========================================
   MOTOR SPORTS : TEAM MEMBERS
======================================== */

.motorsports-team-members {
	padding: 4em 0;
}

.motorsports-team-members__inner {
	width: calc(100% - 2.5em);
	max-width: 1200px;
	margin: 0 auto;
}

.motorsports-team-members__title {
	margin: 0 0 1em;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.4;
}

.motorsports-team-members__list {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5em 1.5em;
	justify-content: center;
}

.motorsports-team-members__item {
	width: calc((100% - 3em) / 3);
	text-decoration: none!important;
}

.motorsports-team-members__image {
	width: 100%;
	overflow: hidden;
}

.motorsports-team-members__image img {
	display: block;
	width: 100%;
	height: auto;
}

.motorsports-team-members__text { 
	margin: 0.7em 0 0;
	line-height: 1.7;
	white-space: normal;
}

@media (max-width: 1024px) {

	.motorsports-team-members__item {
		width: calc((100% - 1.5em) / 2);
	}

}


@media (max-width: 900px) {
	.motorsports-support__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.motorsports-inner,
	.motorsports-hero__content,
	.motorsports-race__content {
		width: min(calc(100% - 3.2rem), var(--motorsports-inner));
	}

	.motorsports-hero {
		min-height: 62rem;
		place-items: end center;
	}

	.motorsports-hero__content {
		padding-bottom: 6rem;
	}

	.motorsports-hero__media,
	.motorsports-race__media {
		inset: -7rem 0;
	}

	.motorsports-hero__text,
	.motorsports-race__text {
		font-size: 1.3rem;
		font-weight: 500;
		line-height: 1.8;
		text-align: left;
	}

	.motorsports-race {
		min-height: 50rem;
	}

	.motorsports-history__button {
		min-height: 5.4rem;
		padding-inline: 4.5rem;
	}

	.motorsports-history__button::after {
		right: 1.5rem;
	}

	.motorsports-support__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.motorsports-team-members {
		padding: 3em 0;
	}

	.motorsports-team-members__inner {
		width: calc(100% - 2em);
	}

	.motorsports-team-members__title {
		margin-bottom: 1em;
		font-size: 1.25rem;
	}

	.motorsports-team-members__list {
		flex-direction: column;
		gap: 2em;
	}

	.motorsports-team-members__item {
		width: 100%;
	}

	.motorsports-team-members__text {
		margin-top: 0.6em;
		font-size: 0.8125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motorsports-hero__media,
	.motorsports-race__media,
	.motorsports-support-card__image img,
	.motorsports-history__button::after {
		transition: none;
		transform: none !important;
	}
}


.motorsports-archive .motorsports-archive__support-group {
  margin-top: 48px;
}

.motorsports-archive .motorsports-race.is-empty {
  background: #17212e;
}

/* 既存CSSのis-emptyによる本文非表示を、年度アーカイブだけ解除。 */
.motorsports-archive .motorsports-hero.is-empty {
  display: grid;
  min-height: clamp(280px, 35vw, 480px);
  padding: 64px 0;
  border: 0;
  background: #e5e5e5;
}

.motorsports-archive .motorsports-hero.is-empty .motorsports-hero__content {
  display: block;
  color: #24292f;
  text-shadow: none;
}

.motorsports-archive .motorsports-race.is-empty .motorsports-race__content {
  display: block;
}

.motorsports-years {
  padding-top: 64px;
  padding-bottom: 80px;
}

.motorsports-years > h2 {
  margin: 0 0 28px;
  font-size: 2.4rem;
  text-align: center;
}

.motorsports-years__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.motorsports-years__card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #17212e;
  color: #fff;
  text-decoration: none;
}

.motorsports-years__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.motorsports-years__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.motorsports-years__card span {
  position: relative;
  z-index: 1;
  padding: 16px;
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.motorsports-years__card:hover img,
.motorsports-years__card:focus-visible img {
  transform: scale(1.035);
}

.motorsports-years__card[aria-current="page"] {
  outline: 3px solid var(--motorsports-blue);
  outline-offset: 3px;
}

.motorsports-archive .motorsports-support-card__image--noimg {
  display: grid;
  aspect-ratio: 4 / 3;
  background: #ededed;
  color: #888;
  place-items: center;
}

.motorsports-archive .motorsports-support-card__image--noimg > span {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
}

.motorsports-archive .motorsports-support-card__image--noimg > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


@media screen and (max-width: 768px) {
  .motorsports-years__list {
    gap: 16px;
  }

  .motorsports-years__card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .motorsports-years__card img {
    transition: none;
  }
}
/* Legacy team information link below the year archive cards. */
.motorsports-archive .motorsports-years__legacy {
  margin-top: 32px;
}

/* Motorsport landing artwork includes its own shading. */
.motorsports-hero.motorsports-hero--landing {
    min-height: 0;
    aspect-ratio: 20 / 7;
    place-items: center;
}

.motorsports-hero--landing .motorsports-hero__media { inset: 0; }
.motorsports-hero--landing .motorsports-hero__media img { display: block; }
.motorsports-hero--landing .motorsports-hero__content { padding: 0; text-shadow: none; }
.motorsports-hero--landing .motorsports-hero__content h1 {
    margin: 0;
    font-family: inherit !important;
    font-size: clamp(2rem, 4.2vw, 8rem);
    font-weight: 700;
    letter-spacing: 0;
}
