@charset "UTF-8";

/* リード文 */
#lead-block .content {
	margin-bottom: 80px;
}

#lead-block .lead__text {
	font-size: clamp(14px, 18 / 768 * 100vw, 18px);
	font-weight: var(--fw_jp_bold);
	text-align: center;
}


/* 一覧の全体レイアウト */
#horses-block {
	margin-top: 80px;
}

#horses-block .content {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 40px 6%;
}

#horses-block .search-unit {
	width: 32%;
	position: sticky;
	top: 96px;
	left: 0;
}

#horses-block .list-unit {
	width: 62%;
}


/* 検索エリア */
.search-unit .search-form {
	width: 100%;
	padding: 40px;
	border-radius: 24px;
	-webkit-border-radius: 24px;
	-moz-border-radius: 24px;
	-ms-border-radius: 24px;
	-o-border-radius: 24px;
	background-color: var(--color01);
	position: relative;
	z-index: 2;
}
.search-unit .search-form::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: 5%;
	z-index: 1;
	width: 80%;
	max-width: 288px;
	aspect-ratio: 32/21;
	background-image: url(../img/common/illust_treats01_white.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.search-unit .search-fields {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.search-unit .search-field .field-label {
	display: block;
	color: var(--color_white);
	font-size: 18px;
	line-height: 1.6;
	padding-left: 1.5em;
	position: relative;
}
.search-unit .search-field .field-label::before {
	content: "";
	position: absolute;
	top: 0.25em;
	left: 0;
	width: 1.2em;
	height: 1.2em;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}
.search-unit .search-field .label_horse-name::before {
	background-image: url(../img/common/icon_edit_white.svg);
}
.search-unit .search-field .label_parent-horse::before {
	background-image: url(../img/common/icon_category-search_white.svg);
}

.search-unit input[type="text"] {
	width: 100%;
	height: 48px;
	padding: 0.5em 1em;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
	border: none;
	margin-top: 4px;
}
.search-unit input[type="text"]::placeholder {
	color: var(--color_gray02);
}

.search-unit select {
	width: 100%;
	height: 48px;
	padding: 0.5em 1em;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
	border: none;
	margin-top: 4px;
	color: var(--color_gray02);
}

.search-unit .search-button {
	margin-top: 16px;
}

.search-unit .search-button .link-btn {
	margin: 0 auto;
	text-align: left;
}


/* 一覧エリア */
.list-unit .list-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(248px,1fr));
	gap: 60px 4%;
}

.list-unit .list-item {
	width: 100%;
	max-width: 380px;
	display: block;
	color: var(--color_black);
	text-decoration: none;
	background-color: var(--color_white);
	border-radius: 24px;
	-webkit-border-radius: 24px;
	-moz-border-radius: 24px;
	-ms-border-radius: 24px;
	-o-border-radius: 24px;
	overflow: hidden;
}

.list-unit .list-item figure {
	width: 100%;
	height: 285px;
	overflow: hidden;
}

.list-unit .list-item img {
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
.list-unit .list-item:hover img {
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
}

.list-unit .list-item__text {
	padding: 24px;
}

.list-unit .item-ttl {
	font-size: clamp(15px, 18 / 768 * 100vw, 18px);
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
	margin-bottom: 0.5em;
}

.list-unit .list-item__nav {
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
	color: var(--color01);
	text-align: center;
	border: 1px solid currentColor;
	padding: 1em;
	margin-top: 8px;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
.list-unit .list-item:hover .list-item__nav {
	background-color: var(--color01);
	color: var(--color_white);
}


/* 検索結果0の時のメッセージ */
.list-unit .empty-msg {
	text-align: center;
	font-size: clamp(16px, 20 / 768 * 100vw, 20px);
	font-weight: var(--fw_jp_bold);
	color: var(--color01);
}


/* サブナビゲーション */
#subnav-block {
	padding: 80px 0;
	background-image: url(../img/horses/subnav_bg.webp);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

#subnav-block .list {
	display: flex;
	justify-content: center;
	gap: 24px 6%;
}

#subnav-block .list li {
	width: 47%;
	max-width: 320px;
}

#subnav-block .subnav__item {
	width: 100%;
	height: 240px;
	border-radius: 24px;
	-webkit-border-radius: 24px;
	-moz-border-radius: 24px;
	-ms-border-radius: 24px;
	-o-border-radius: 24px;
	overflow: hidden;
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
	padding: 16px;
	color: var(--color_white);
	text-decoration: none;
}
#subnav-block .subnav__item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent 50%, rgb(from #13110F r g b / 0.8) 100%);
	mix-blend-mode: multiply;
}
#subnav-block .subnav__item::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	background-repeat: no-repeat;
	background-size: cover;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
#subnav-block .subnav__item:hover::after {
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
}
#subnav-block .horses-active::after {
	background-image: url(../img/horses/subnav_active.webp);
	background-position: 50% 30%;
}
#subnav-block .horses-retired::after {
	background-image: url(../img/horses/subnav_retired.webp);
	background-position: 50% 55%;
}

#subnav-block .subnav__text {
	position: relative;
	z-index: 4;
	padding-right: 40px;
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
}
#subnav-block .subnav__text::after {
	content: "";
	box-sizing: border-box;
	position: absolute;
	bottom: 0;
	right: 0;
	width: 32px;
	aspect-ratio: 1/1;
	background-image: url(../img/common/icon_arrow-right_white.svg);
	background-repeat: no-repeat;
	background-size: 40%;
	background-position: center;
	border: 1px solid var(--color_white);
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
#subnav-block .subnav__item:hover .subnav__text::after {
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	-o-transform: scale(1.1);
}



/* 馬詳細 */
#detail-block {
	margin: 0 auto 160px;
}


/* 馬詳細-厩舎紹介 */
#detail-block .stables__content {
	margin: 0 auto 160px;
	max-width: 1120px;
}

#detail-block .stables__content .main-image {
	height: 720px;
	border-radius: 80px;
	-webkit-border-radius: 80px;
	-moz-border-radius: 80px;
	-ms-border-radius: 80px;
	-o-border-radius: 80px;
	overflow: hidden;
	position: relative;
	z-index: 2;
}

#detail-block .stables__content .stables__text {
	max-width: 960px;
	margin: -80px auto 0;
	padding: 160px 80px 80px 80px;
	background-color: var(--color_white);
	border-radius: 0 0 80px 80px;
	-webkit-border-radius: 0 0 80px 80px;
	-moz-border-radius: 0 0 80px 80px;
	-ms-border-radius: 0 0 80px 80px;
	-o-border-radius: 0 0 80px 80px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

#detail-block .stables__content .text {
	line-height: 1.8;
}

#detail-block .stables__content .present_count {
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
	color: var(--color01);
	text-align: center;
	border: 1px solid currentColor;
	padding: 1em;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
}

#detail-block .stables__content .link-btn__unit {
	margin-top: 0;
}

#detail-block .stables__content .link-btn {
	margin: 0 auto;
	max-width: 380px;
	padding: 20px 40px 20px 8px;
}
#detail-block .stables__content .link-btn::after {
	width: 32px;
}
#detail-block .stables__content .link-btn--primary::after {
    background-image: url(../img/common/icon_external_white.svg);
}

#detail-block .stables__content .link-btn span {
	position: relative;
	padding-left: 3.5em;
}
#detail-block .stables__content .link-btn span::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	width: 3em;
	aspect-ratio: 1/1;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}
#detail-block .stables__content .link-btn--carrot span::before {
	background-image: url(../img/common/illust_carrot_white.svg);
}


/* 馬詳細-所属馬 */
#detail-block .horses__content {
	margin: 160px auto;
	max-width: 960px;
}

#detail-block .horses__content .horses__ttl {
	font-size: clamp(16px, 24 / 768 * 100vw, 24px);
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.1em;
	text-align: center;
	color: var(--color_white);
	padding: 16px;
	background-color: var(--color01);
	border-radius: 24px 24px 0 0;
	-webkit-border-radius: 24px 24px 0 0;
	-moz-border-radius: 24px 24px 0 0;
	-ms-border-radius: 24px 24px 0 0;
	-o-border-radius: 24px 24px 0 0;
}

#detail-block .horses__content .horses__inner {
	margin-top: 64px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

#detail-block .horses__content .horses__item {
	display: flex;
	justify-content: center;
	gap: 16px 6%;
}

#detail-block .horses__content .horses-image {
	width: 58%;
	height: 420px;
	border-radius: 24px;
	-webkit-border-radius: 24px;
	-moz-border-radius: 24px;
	-ms-border-radius: 24px;
	-o-border-radius: 24px;
	overflow: hidden;
}

#detail-block .horses__content .horses-info {
	width: 36%;
}

#detail-block .horses__content .item-ttl {
	font-size: clamp(15px, 18 / 768 * 100vw, 18px);
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
}

#detail-block .horses__content .list {
	margin-top: 24px;
}

#detail-block .horses__content .list dl {
	display: flex;
	gap: 0 6%;
	border-bottom: 1px solid var(--color01);
	padding: 0.6em 0;
	font-size: 14px;
	line-height: 1.8;
}
#detail-block .horses__content .list dl:first-of-type {
	border-top: 1px solid var(--color01);
}

#detail-block .horses__content .list dt {
	width: 26%;
}

#detail-block .horses__content .list dd {
	width: 68%;
}


/* 馬詳細-厩舎備考 */
#detail-block .notes__content {
	max-width: 960px;
	margin: 160px auto 0;
	border: 1px solid var(--color01);
	border-radius: 24px;
	-webkit-border-radius: 24px;
	-moz-border-radius: 24px;
	-ms-border-radius: 24px;
	-o-border-radius: 24px;
	padding: 80px;
}

#detail-block .notes__content .notes__inner {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	gap: 8px 4%;
}

#detail-block .notes__content .notes-ttl {
	width: 20%;
	background-color: var(--color01);
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	-ms-border-radius: 8px;
	-o-border-radius: 8px;
	padding: 1em;
	font-weight: var(--fw_jp_bold);
	color: var(--color_white);
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

#detail-block .notes__content .text {
	width: 76%;
}


/* 馬詳細-戻るボタン */
#detail-return-block .link-return {
	display: block;
	background-color: var(--color_white);
	margin: 0 calc(50% - 50vw);
	padding: 40px 0;
	font-size: clamp(15px, 20 / 768 * 100vw, 20px);
	line-height: 1.6;
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.05em;
	text-align: center;
	color: var(--color01);
	text-decoration: none;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
#detail-return-block .link-return:hover {
	background-color: var(--color01);
	color: var(--color_white);
}

#detail-return-block .link-return span {
	padding-right: 1.5em;
	position: relative;
}
#detail-return-block .link-return span::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	width: 1em;
	aspect-ratio: 1/1;
	background-image: url(../img/common/icon_list_blue.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
#detail-return-block .link-return:hover span::after {
	background-image: url(../img/common/icon_list_white.svg);
}


/* 馬詳細-エラーテキスト */
#detail-block .err_msg {
	font-size: 30px;
	line-height: 1.5;
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.05em;
	color: #d12926;
	text-align: center;
}



/* スマートフォン用 - ブレイクポイント768 */
@media screen and (max-width: 768px) {

	/* リード文 */
	#lead-block .content {
		margin-bottom: 40px;
	}


	/* 一覧の全体レイアウト */
	#horses-block {
		margin-top: 40px;
	}

	#horses-block .content {
		flex-direction: column;
	}

	#horses-block .search-unit {
		width: 100%;
		position: relative;
		top: 0;
	}

	#horses-block .list-unit {
		width: 100%;
	}


	/* 検索エリア */
	.search-unit .search-form {
		padding: 24px;
		border-radius: 16px;
		-webkit-border-radius: 16px;
		-moz-border-radius: 16px;
		-ms-border-radius: 16px;
		-o-border-radius: 16px;
	}
	.search-unit .search-form::after {
		bottom: -32px;
		left: 2%;
		width: 60%;
		max-width: 180px;
	}

	.search-unit .search-fields {
		gap: 16px;
	}

	.search-unit .search-field .field-label {
		font-size: 15px;
	}

	.search-unit input[type="text"] {
		height: 40px;
	}

	.search-unit select {
		height: 40px;
	}


	/* 一覧エリア */
	.list-unit .list-inner {
		grid-template-columns: repeat(auto-fit,minmax(216px,1fr));
		gap: 32px 4%;
	}

	.list-unit .list-item {
		max-width: none;
		border-radius: 16px;
		-webkit-border-radius: 16px;
		-moz-border-radius: 16px;
		-ms-border-radius: 16px;
		-o-border-radius: 16px;
	}

	.list-unit .list-item figure {
		height: 240px;
	}

	.list-unit .list-item__text {
		padding: 16px;
	}


	/* サブナビゲーション */
	#subnav-block {
		padding: 40px 0;
	}

	#subnav-block .list {
		flex-direction: column;
	}

	#subnav-block .list li {
		width: 100%;
		max-width: 400px;
		margin: 0 auto;
	}

	#subnav-block .subnav__item {
		height: 160px;
		border-radius: 16px;
		-webkit-border-radius: 16px;
		-moz-border-radius: 16px;
		-ms-border-radius: 16px;
		-o-border-radius: 16px;
	}

	#subnav-block .subnav__text {
		padding-right: 32px;
	}
	#subnav-block .subnav__text::after {
		width: 24px;
	}



	/* 馬詳細 */
	#detail-block {
		margin: 0 auto 80px;
	}


	/* 馬詳細-厩舎紹介 */
	#detail-block .stables__content {
		margin: 0 auto 80px;
	}

	#detail-block .stables__content .main-image {
		height: 280px;
		border-radius: 40px;
		-webkit-border-radius: 40px;
		-moz-border-radius: 40px;
		-ms-border-radius: 40px;
		-o-border-radius: 40px;
	}

	#detail-block .stables__content .stables__text {
		margin: -40px auto 0;
		padding: 64px 24px 24px 24px;
		border-radius: 0 0 40px 40px;
		-webkit-border-radius: 0 0 40px 40px;
		-moz-border-radius: 0 0 40px 40px;
		-ms-border-radius: 0 0 40px 40px;
		-o-border-radius: 0 0 40px 40px;
		gap: 24px;
	}


	/* 馬詳細-所属馬 */
	#detail-block .horses__content {
		margin: 80px auto;
	}

	#detail-block .horses__content .horses__ttl {
		border-radius: 16px 16px 0 0;
		-webkit-border-radius: 16px 16px 0 0;
		-moz-border-radius: 16px 16px 0 0;
		-ms-border-radius: 16px 16px 0 0;
		-o-border-radius: 16px 16px 0 0;
	}

	#detail-block .horses__content .horses__inner {
		margin-top: 40px;
		gap: 48px;
	}

	#detail-block .horses__content .horses__item {
		flex-direction: column;
	}

	#detail-block .horses__content .horses-image {
		width: 100%;
		height: 240px;
		border-radius: 16px;
		-webkit-border-radius: 16px;
		-moz-border-radius: 16px;
		-ms-border-radius: 16px;
		-o-border-radius: 16px;
	}

	#detail-block .horses__content .horses-info {
		width: 100%;
	}

	#detail-block .horses__content .list {
		margin-top: 16px;
	}

	#detail-block .horses__content .list dt {
		width: 22%;
	}

	#detail-block .horses__content .list dd {
		width: 72%;
	}


	/* 馬詳細-厩舎備考 */
	#detail-block .notes__content {
		margin: 80px auto 0;
		border-radius: 16px;
		-webkit-border-radius: 16px;
		-moz-border-radius: 16px;
		-ms-border-radius: 16px;
		-o-border-radius: 16px;
		padding: 24px;
	}

	#detail-block .notes__content .notes__inner {
		flex-direction: column;
	}

	#detail-block .notes__content .notes-ttl {
		width: 100%;
	}

	#detail-block .notes__content .text {
		width: 100%;
	}


	/* 馬詳細-戻るボタン */
	#detail-return-block .link-return {
		padding: 24px 0;
	}


	/* 馬詳細-エラーテキスト */
	#detail-block .err_msg {
		font-size: 18px;
		letter-spacing: 0;
	}

}