/* --------------------------------------------------

 今週の注目２歳新馬

-------------------------------------------------- */

:root {
	/* ---- バックナンバーボタンの幅 ----- */
    --btn_size_bn: 280px;
	/* ---- アンカーリンクのボタンの幅 ----- */
    --btn_size_menu: 150px;

	/* ----- フォントサイズ ----- */
	--font-size-14_16: clamp(1.4rem, 0.5133rem + 1.1561vw, 1.6rem);
	--font-size-16_18: clamp(1.6rem, 0.7133rem + 1.1561vw, 1.8rem);
}

html {
	scroll-behavior: smooth;
}

#contentsBody {
	width: calc(100% - 20px);
	padding-inline: 0;
}

img {
	vertical-align: bottom;
}

.ready_box {
	max-width: 980px;
}

div.header_line > div.content {
	max-width: 980px;
}



/* - 上部馬名リスト
-------------------------------------------------- */

.menu_block .button-list.div5 {
    grid-template-columns: repeat(auto-fit, minmax(var(--btn_size_menu), 1fr));
}

.menu_block .button-list > div > a{
	padding: 12px 0;
	padding: clamp(6px,1.2vw,12px) 0;
}

/* - 馬詳細ブロック
-------------------------------------------------- */
.detail_unit {
	margin-top: 40px;
	background: #fff;
	scroll-margin-top: 70px;
}

.detail_unit .content {
	margin-top: 20px;
}

.grid_wrapper {
	display: grid;
	grid-template-columns: auto auto;
	gap: 20px;
}

.img_block .img_block {
	width: min(400px,50vw);
}

.img_block img{
	width: 100%;
}

.detail_unit .head_block {
	display: flex;
	gap: 20px;
	padding-bottom: 10px;
	border-bottom: 1px dotted #ccc;
}

.head_block h2 {
	margin: 0;
	display: inline-block;
	vertical-align: middle;
	font-size: 3.0rem;
	font-weight: bold;
	color: #444;
}

.detail_unit .head_block h2 a {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	transition: color 0.3s ease-in-out;
	color: #0155AD;
	border-bottom: 1px solid #0155AD;
}

.detail_unit .head_block h2 i {
	font-size: 1.8rem;
	color: #43a047;
	transition: color 0.3s ease-in-out;
}

/* - 出走レース　ボタン
-------------------------------------------------- */
.button-list a {
	font-weight: normal;
}

.button-list a .race_num {
	padding: 4px 8px;
	background-color: #eaf6fa;
	border-radius: 100vmax;
	font-size: 1.2rem;
}

.button-list a .opt{
	display: block;
	margin-top: 4px;
}

.button-list a .opt .dist{
	font-size: 1.1rem;
}

/* - 血統表
-------------------------------------------------- */

.horse_data .caution {
	display: none;
	width: 100%;
	margin-top: 10px;
}

.is-scrollable .caution {
	display: block;
	margin-top: 10px;
}

.bloodline-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(max-content, 1fr));
	grid-auto-flow: column;
	gap: 2px;
}

.ancestor {
	display: grid;
	place-content: center start;
	background: #f9f9f9;
	padding: 0.5rem;
}

.ancestor .relation {
	display: block;
	font-size: 1.2rem;
}

.ancestor .ancestor_name {
	display: block;
}

.ancestor.sire,
.ancestor.sire a{
	background-color: #EFF6FF;
	color: #235e96;
}

.ancestor.mare,
.ancestor.mare a {
	background-color: #ffefef;
	color: #a51953;
}

.ancestor a{
	font-weight: bold;
}

.ancestor.first {
	grid-column:1 / span 1;
	grid-row: span 4;
}

.ancestor.second {
	grid-column:2 / span 1;
	grid-row: span 2;
}

.ancestor.third {
	grid-column:3 / span 1;
	grid-row: span 1;
}
/* ------------ 3代目のみテキスト横並び ------------ */

.ancestor.third .row_1 {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

/* - PICK UP エリア
-------------------------------------------------- */
.txt_block_point {
	--color_point: #d13870;
	--bg-color_point: #fef1f5;
}

.txt_block_point .title {
	position: relative;
	width: fit-content;
	max-width: calc(100% - 32px);
	margin-block: 0;
	margin: 0 auto;
	margin-left: 5%;
	padding: 8px 20px;
	border-radius: 60px;
	background-color: var(--color_point);
	font-size: 1.6rem;
	font-size: var(--font-size-14_16);
	font-weight: bold;
	color: #fff;
	display: flex;
	line-height: 1;
	justify-content: center;
	align-items: center;
	gap: .5em;
}

.txt_block_point .title span.txt {
	letter-spacing: 0.04em;
}

.txt_block_point .title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	border-style: solid;
	border-width: 10px 0 0 10px;
	border-color: var(--color_point) transparent transparent;
	translate: -50% 100%;
}

.txt_block_point dl dt span:first-child {
	width: 1.2em;
}

.txt_block_point dl dt span img {
	width: 100%;
}

.txt_block_point dl dd {
	padding: calc((var(--font-size-14_16)*1.25) + 18px) 12px 18px;
	border-radius: var(--radius_sm);
	margin-top: calc(var(--font-size-14_16)*-1.25);
	letter-spacing: 0.02em;
	background-color: var(--bg-color_point);
}

.txt_block_point dl dd ul li::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: '\f00c';
	color: var(--color_point);
}

.txt_block_point dl dd ul {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .8em;
}

.txt_block_point dl dd ul li {
	display: grid;
	grid-template-columns: subgrid;
	grid-column: span 2;
	/* font-size: 1.5rem; */
	font-size: var(--font-size-14_16);
	font-weight: bold;
}

/* --- 下部　注意書き --- */

#caution_block {
	max-width: 100%;
	margin-inline: 0;
}

/* --- 署名 --- */
.signature {
	margin-top: 15px;
	text-align: right;
	font-size: 1.1rem;
}


/* - バックナンバーブロック
-------------------------------------------------- */


.horse_nav .panel .content {
	padding: 16px;
	font-size: 1.2rem;
	background-color: #F3F3F3;
}
.horse_nav .button-list {
	grid-template-columns: repeat(auto-fit, minmax(var(--btn_size_bn), 1fr));
}

.horse_nav .panel .content a {
	font-size: inherit;
}

.horse_nav .particle {
	padding-inline: 0.1em;
	font-size: 0.9em;
}


/* - JRAアプリブロック
-------------------------------------------------- */

.app_area {
	background-color: #dfecd6;
}

.app_txt_block {
	display: grid;
	place-content: center;
	justify-items: center;
	row-gap: 8px;
	padding: clamp(1.6rem, -0.0983rem + 2.6578vw, 2.4rem) 16px;
}

.app_area .title {
	font-size: clamp(1.8rem, 0.5262rem + 1.9934vw, 2.4rem);
	font-weight: bold;
	letter-spacing: 0.04em;
	color: #00677a;
	.break {
		display: inline-block;
	}
}

.app_area .text {
	display: grid;
	justify-content: center;
	row-gap: 4px;
	font-weight: 500;
	font-size: clamp(1.4rem, 0.9754rem + 0.6645vw, 1.6rem);
}

.app_dl_btn {
	padding: 20px 16px;
	background-color: #000;
	}

.app_dl_btn .content ul {
	display: flex;
	gap: 12px;
    justify-content: center;
	align-items: center;
}

.app_dl_btn .content ul li a {
	display: block;
}

.app_dl_btn .content ul :is(li.android,li.ios) img {
	max-height: clamp(4.8rem, 1.2532rem + 4.6243vw, 5.6rem);
}

.app_dl_btn .content ul li.qr img {
	max-height: 72px;
}

.app_dl_btn .content p {
	text-align: center;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 700;
	padding-bottom: 1em;
	line-height: 1.2;
}

/* ----- SP QR非表示 ----- */
.touch .app_dl_btn .content ul li.qr {
	display: none;
}


/* ------------------------------------------------------------

	767px以下

------------------------------------------------------------ */
@media screen and (max-width : 767px) {


	.detail_unit {
		scroll-margin-top: 55px;
	}

	.grid_wrapper {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.img_block {
		text-align: center;
		& img {
			max-width: 400px;
		}
	}

	.txt_block_point .title {
		width: min(400px,calc(100% - 60px));
		margin-left: auto;
	}


	/* - 上部　アンカーリンクリスト
	-------------------------------------------------- */

	.button-list {
		gap: 6px;
	}

}


/* ------------------------------------------------------------

	639px以下

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

	.detail_unit .head_block>.horse_data p {
		font-size: 1.3rem;
	}

	.detail_unit .head_block>.horse_data p span {
		display: block;
	}

	.detail_unit .head_block {
		flex-flow: column;
	}

	.detail_unit .head_block h2 a {
		display: inline-flex;
		font-size: 2.4rem;
	}

	/* ----------- ここに注目 ----------- */
	.txt_block dl dt {
		font-size: 1.4rem;
	}

	/* ----------- アプリブロック ----------- */
	.app_txt_block {
		justify-items: start;
	}
}


/* ------------------------------------------------------------

	360px以下

------------------------------------------------------------ */
@media screen and (max-width : 360px) {
	.horse_nav .button-list {
		grid-template-columns: 1fr;
	}

}
