
/* --------------------------------------------------
	全レース 共通（レースタイトルブロック）
-------------------------------------------------- */


/* - 注目レース header
-------------------------------------------------- */
#g1_header {
	color: #fff;
	width: 100%;
	background-color: #333;
}


#g1_header .content {
	max-width: 940px;
	box-sizing: border-box;
	margin: 0 auto;
	position: relative;
	height: auto;
	display: block;
	width: 100%;
	padding: 20px 0;
	overflow: hidden;
}

#g1_header .content:after { content: ''; display: block; clear: both; }

#category_title { }
#category_title > h1 { font-size: 1.6rem; }
#category_title > p { font-size: 1.6rem; font-weight: bold; }

#category_title a {
	text-decoration: none;
	color: #fff;
}

/* ----- レース名 ----- */
#race_title {
	margin-top: 4px;
	font-size: 1.3rem;
}

#race_title > .line + .line { }

#race_title > .line {
	display: flex;
	gap: 10px;
	width: 100%;
	align-items: baseline;
}

/* - サブタイトル - */
#race_title > .line.subtitle {
	font-size: 1.6rem;
}

/* - シリーズ名 - */
#race_title > .line.series {
	font-size: 1.6rem;
	white-space: pre-wrap;
	word-break: keep-all;
}

/* - 回数＋冠 - */
#race_title > .line.num_sponsor {
	font-size: 1.6rem;
}

#race_title > .line.main { }

/* - 回数 - */
#race_title > .line.main .num {
	font-size: 1.6rem;
	white-space: nowrap;
}

/* - レース名 - */
#race_title > .line.main .name {
	font-size: 2.8rem;
	font-weight: bold;
	line-height: 1.3;
	overflow: hidden;
}

#race_title > .line.main .name > h1 {
	width: fit-content;
	/*display: block;*/
}

/* - グレードアイコン - */
#race_title > .line.main .grade {
	align-self: center;
	width: 32px;
	min-width: 32px;
}

#race_title > .line.main .grade img {
	vertical-align: top;
	width: 32px;
	height: 18px;
}

/* - トライアル表記 - */
#race_title > .line.main .subtitle {
	font-size: 1.6rem;
}

#race_title.typeC > .line.subtitle.sp,
#race_title.typeD > .line.subtitle.sp {
	display: none;
}

/* - レース別名表記 - */
#race_title > .line.main .alias {
	font-size: 1.6rem;
}

/* - JCオプション表記（国際招待） - */
#race_title > .line.main .option {
	font-size: 1.6rem;
	white-space: nowrap;
}

/* --- 日付・レギュレーション --- */
#race_title > .line.regulation {
	margin-top: 8px;
}

/* - 日付 - */
#race_title > .line.regulation .date {
	font-size: 1.4rem;
	font-weight: bold;
	background-color: var(--color-white);
	background-color: #ddd;
	color: var(--color-black);
	padding: 0.1em 0.3em;
	width: fit-content;
}

/* - レース条件 - */
#race_title > .line.regulation .conditions {
	display: flex;
	gap: 10px;
	font-size: 1.6rem;
}


/* ----- 注目レースに戻る ----- */
#g1_index {
	position: absolute;
	top: 0;
	right: 10px;
}

#g1_index > a {
	background-color: #ddd;
	color: #222;
	text-decoration: none;
	padding: 8px;
	letter-spacing: normal;
	background-color: #546E7A;
	color: #fff;
	display: block;
	line-height: 1;
	font-size: 1.3rem;
	background-color: #DEF2ED;
	color: #333;
	border-radius: 0 0 10px 10px;
}

#g1_index > a > i { margin-right: 0.4em; }


#contents_menu {
	margin-top: 10px;
}


/* ------------------------------------------------------------
	768px〜979px
------------------------------------------------------------ */
/*
@media screen and ( min-width : 768px ) and ( max-width : 979px ) {
	
	#week_header { min-height: 162px; }
	
}
*/

/* ------------------------------------------------------------
	939px以下
------------------------------------------------------------ */
@media screen and ( max-width : 939px ) {
	
	#g1_header .content { padding: 10px; }

	#category_title > p { font-size: 1.2rem; }

	#race_title {
		margin-top: 8px;
	}

	#race_title > .line.subtitle { font-size: 1.4rem; }
	#race_title > .line.series { font-size: 1.4rem; }
	#race_title > .line.num_sponsor { font-size: 1.4rem; }

	#race_title > .line.main .num { font-size: 1.4rem; }
	#race_title > .line.main .name { font-size: 2.2rem; }
	#race_title > .line.main .subtitle { font-size: 1.4rem; }

	#race_title.typeC > .line.main .subtitle,
	#race_title.typeD > .line.main .subtitle { display: none; }

	#race_title.typeC > .line.subtitle.sp,
	#race_title.typeD > .line.subtitle.sp { display: block; }

	#race_title > .line.main .alias { font-size: 1.3rem; }

	#race_title > .line.main .option { font-size: 1.3rem; }

	#race_title > .line.regulation .date { font-size: 1.2rem; }
	#race_title > .line.regulation .conditions { font-size: 1.2rem; }
	
	
	/* ----- レース選択に戻る ----- */
	#g1_index { right: 10px; }
	#g1_index > a { font-size: 1.1rem; }

}


/* ------------------------------------------------------------
	〜767px
------------------------------------------------------------ */

@media screen and ( max-width : 767px ) {
	
	#race_title > .line.regulation { display: block; }

	#race_title > .line.regulation .conditions {
		display: block;
		margin-top: 8px;
	}

}


/* ------------------------------------------------------------
	〜639px
------------------------------------------------------------ */
@media screen and ( max-width : 639px ) {
	
}

@media screen and ( max-width : 479px ) {
    
}

@media screen and ( max-width : 359px ) {
    
}

