@charset "utf-8";

/*============

index.css

=============*/

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

content

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

.content {
	padding-bottom: 0;
	background-color: #333;
	color: #fff;
}

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

content-title

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

.content-title {
	position: relative;
	font-size: max(3.2rem, 28px);
	font-weight: bold;
	padding-top: 6.0rem;
	order: 2;
	width: 100%;
	text-align: center;
}

.content-title a:hover {
	text-decoration: underline;
}

.content-title:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 2rem;
	height: 4.8rem;
	background-color: #e60012;
}

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

section

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

.section {
	padding: 0 3rem;
}

.section__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

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

list-link

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

.list-link a {
	position: relative;
	padding-right: 4rem;
}

.list-link a:hover {
	text-decoration: underline;
	text-underline-offset: 0.1rem;
}

.list-link a:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	width: 3rem;
	height: 3rem;
	background-color: #e60012;
	transition: all 0.3s;
}

.list-link a:after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 1.2rem;
	margin: auto;
	width: 1rem;
	height: 1rem;
	transform: rotate(45deg);
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transition: all 0.3s;
}

.list-link a:hover:before {
	transform: scale(1.1);
	transition: all 0.3s;
}

.list-link a:hover:after {
	transform: rotate(45deg) scale(1.3);
	transition: all 0.3s;
}

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

section--service

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

.section--service {
	background-color: #000;
	padding: 0 3rem 8rem;
}

.section--associ {
	background-color: #999;
}

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

info-box

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

.info-box__inner {
	position: relative;
}

.info-box__btn {
	position: absolute;
	width: 17.3rem;
	padding: 1.6rem 2.4rem;
	color: #fcc;
	font-weight: bold;
	white-space: nowrap;
	text-align: center;
	left: 0;
	font-size: max(1.8rem, 16px);
	line-height: 1.4;
}

.info-box__inner .info-box__btn:nth-of-type(1) {
	top: 2rem;
	order: 1;
}

.info-box__inner .info-box__btn:nth-of-type(2) {
	top: 8rem;
	order: 2;
}

.info-box__inner .info-box__btn:nth-of-type(3) {
	top: 14rem;
	order: 3;
}

.info-box__btn:hover {
	text-decoration: underline;
	text-underline-offset: 0.1rem;
}

.info-box__btn--new {
	top: 3rem;
}

.info-box__switch:checked + .info-box__btn:before {
	position: absolute;
	content: "";
	top: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	background-color: #333;
	width: 0.3rem;
	height: 100%;
}

.info-box__content {
	display: none;
	order: 4;
	padding: 2rem 0;
	border-left: 0.3rem solid #ccc;
	margin-left: 17rem;
}

.info-box__switch:checked + .info-box__btn + .info-box__content {
	display: block;
}

.info-box__switch:checked + .info-box__btn {
	z-index: 20;
	color: #fff;
	border-bottom: 0.3rem solid #ccc;
}

.info-box__switch {
	display: none;
}

.info-box__content__inner {
	display: flex;
	flex-direction: column;
	min-height: 20rem;
}

.info-box-def__datetime:nth-of-type(n+4),
.info-box-def__data:nth-of-type(n+4),
.info-box-def__unit {
	display: none;
}

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

info-box-def

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

.info-box-def {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	flex-wrap: wrap;
}

.info-box-def a:hover {
	text-decoration: underline;
	text-underline-offset: 0.1rem;
}

.info-box-def__datetime {
	width: 20rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: max(1.6rem, 14px);
}

.info-box-def__data {
	width: calc(100% - 20rem);
	position: relative;
}

.info-box-def__data a {
	display: block;
	position: relative;
	padding: 1.2rem 0 1.2rem 3rem;
}

.info-box-def__data a:not(:first-of-type) {
	margin-top: 1rem;
}

.info-box-def__title {
	font-weight: bold;
}

.info-box-def .info-box-def__icon--ksk,
.info-box-def .info-box-def__icon--nikken {
	padding-left: 17rem;
}

.info-box-def__data:before {
	position: absolute;
	content: "";
	top: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 0.3rem;
	height: calc(100% - 3rem);
	background-color: #999;
}

.info-box-def__icon--ksk:before,
.info-box-def__icon--nikken:before {
	position: absolute;
	content: "";
	top: 1.2rem;
	bottom: 0;
	left: 3rem;
	width: 12rem;
	height: auto;
}

.info-box-def__icon--ksk:before {
	background: url(../img/news_ksk_ic01.png) no-repeat top left;
	background-size: 12rem auto;
}

.info-box-def__icon--nikken:before {
	background: url(../img/news_nikken_ic01.png) no-repeat top left;
	background-size: 12rem auto;
}

.info-box-def__list-link {
	text-align: right;
	margin-top: 1.6rem;
}

.info-box-def__title .pdf-link,
.info-box-def__title .external-link {
	padding: 1.2rem 2.4rem 1.2rem 3rem;
}

.info-box-def__title .pdf-link:after,
.info-box-def__title .external-link:after {
	top: 1.6rem;
	bottom: auto;
}

.info-box-def__title .pdf-link:after {
	width: 1.6rem;
	height: 1.8rem;
	background-size: 1.6rem 1.8rem;
}

.info-box-def__title .info-box-def__icon--ksk.pdf-link,
.info-box-def__title .info-box-def__icon--nikken.pdf-link,
.info-box-def__title .info-box-def__icon--ksk.external-link,
.info-box-def__title .info-box-def__icon--nikken.external-link {
	padding-left: 17rem;
}

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

visual-box

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

.visual-box {
	position: relative;
}

.visual-box__title {
	z-index: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	font-size: max(2.8rem, 22px);
	font-weight: bold;
	text-align: center;
	line-height: 2;
	text-shadow: 0.2rem 0.2rem 0 rgba(0, 0, 0, 0.4), -0.2rem -0.2rem 0 rgba(0, 0, 0, 0.4),
						-0.2rem 0.2rem 0 rgba(0, 0, 0, 0.4), 0.2rem -0.2rem 0 rgba(0, 0, 0, 0.4),
						0px 0.2rem 0 rgba(0, 0, 0, 0.4), 0 -0.2rem 0 rgba(0, 0, 0, 0.4),
						-0.2rem 0 0 rgba(0, 0, 0, 0.4), 0.2rem 0 0 rgba(0, 0, 0, 0.4),
						0 0 2rem rgba(0, 0, 0, 0.6), 0 0 2rem rgba(0, 0, 0, 0.2);
}

.visual-box__note-txt {
	z-index: 1;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 3rem;
	margin: auto;
	font-size: max(1.6rem, 14px);
	font-weight: bold;
	text-align: right;
	letter-spacing: 0.04rem;
	text-shadow: 0.2rem 0.2rem 0 rgba(0, 0, 0, 0.4), -0.2rem -0.2rem 0 rgba(0, 0, 0, 0.4),
						-0.2rem 0.2rem 0 rgba(0, 0, 0, 0.4), 0.2rem -0.2rem 0 rgba(0, 0, 0, 0.4),
						0px 0.2rem 0 rgba(0, 0, 0, 0.4), 0 -0.2rem 0 rgba(0, 0, 0, 0.4),
						-0.2rem 0 0 rgba(0, 0, 0, 0.4), 0.2rem 0 0 rgba(0, 0, 0, 0.4),
						0 0 2rem rgba(0, 0, 0, 0.6), 0 0 2rem rgba(0, 0, 0, 0.2);
}

.visual-box__img {
	width: 100%;
}

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

service-nav

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

.service-nav-list {
	display: flex;
	justify-content: center;
	align-items: stretch;
}

.service-nav-list__item {
	width: calc(100%/3 + 4.0rem);
	background-color: #fff;
	border-radius: 2rem;
	isolation: isolate; /* for Safari hover時にborder-radiusが解除されてしまうのを防ぐ */
	overflow: hidden;
	position: relative;
	margin-top: 4rem;
}

.service-nav-list__item:not(:nth-of-type(3n+1)) {
	margin-left: 4.8rem;
}

.service-nav-list__item a .service-nav-list__img img {
	transition: all 0.3s;
}

.service-nav-list__item a:hover .service-nav-list__img img {
	transform: scale(1.1);
	transition: all 0.3s;
}

.service-nav-list__item a {
	display: block;
}

.service-nav-list__title {
	font-weight: bold;
	font-size: max(2.8rem, 24px);
	width: max(14rem, 140px);
	line-height: 1;
	padding: 0.5rem 1rem;
}

.service-nav-list__title img {
	width: 100%;
	height: auto;
}

.service-nav-list__img {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	border-radius: 0 0 2rem 2rem;
	height: 38rem;
	overflow: hidden;
}

.service-nav-list__img img {
	width: 100%;
	height: 38rem;
	object-fit: cover;
}

.service-nav-list__img--nikken img {
	height: 42rem;
	object-position: 66% 100%;
}

.service-nav-list__txt-unit {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 2rem 1rem;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
}

.service-nav-list__txt {
	font-size: 14px;
	width: calc(100% - 14rem);
}

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

support-nav

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

.support-nav-list {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	margin-top: 4rem;
}

.support-nav-list__item {
	width: calc(100%/4 - 2.4rem);
}

.support-nav-list__item a {
	display: block;
}

.support-nav-list__item a:hover .support-nav-list__title {
	text-decoration: underline;
	text-underline-offset: 0.1rem;
}

.support-nav-list__title {
	font-size: max(2.0rem, 20px);
	font-weight: bold;
	text-align: center;
	margin-top: 3rem;
}

.support-nav-list__txt {
	text-align: center;
	margin-top: 2rem;
}

.support-nav-list__img {
	position: relative;
	overflow: hidden;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 24rem;
	height: 24rem;
	margin: auto;
	border-radius: 50%;
}

.support-nav-list__img img {
	height: 24rem;
	object-fit: cover;
}

.support-nav-list__item a .support-nav-list__img img {
	transition: all 0.3s;
}

.support-nav-list__item a:hover .support-nav-list__img img {
	transform: scale(1.1);
	transition: all 0.3s;
}

.service-box {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
}

.service-nav {
	order: 1;
	width: 100%;
}

.support-nav {
	order: 3;
	width: 100%;
}


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

content-second-title

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

.content-second-title {
	order: 4;
	position: relative;
	font-size: max(2.6rem, 24px);
	font-weight: bold;
	text-align: center;
	padding-top: 4rem;
	margin-top: 8rem;
}

.content-second-title:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 5.6rem;
	height: 0.8rem;
	background-color: #e60012;
}

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

related-nav

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

.related-nav {
	order: 5;
	width: 100%;
}

.related-nav-list {
	display: flex;
	justify-content: center;
	align-items: stretch;
	flex-wrap: wrap;
}

.related-nav-list__item {
	width: 26rem;
	margin: 3.2rem 1.6rem 0;
}

.related-nav-list__item a {
	display: block;
	background-color: #fff;
	border-radius: 2rem;
	box-shadow: 0 0.6rem 1.2rem -0.2rem rgba(50, 50, 93, 0.25), 0 0.3rem 0.7rem -0.3rem rgba(0, 0, 0, 0.3); /* #22 */
	transition: all 0.3s;
	height: 100%;
}

.related-nav-list__item a:hover {
	box-shadow: 0 1.3rem 2.7rem -0.5rem rgba(50, 50, 93, 0.25), 0 0.8rem 1.6rem -0.8rem rgba(0, 0, 0, 0.3); /* #23 */
	transition: all 0.3s;
}

.related-nav-list__txt-unit {
	padding: 0 0.8rem 0.8rem;
}

.related-nav-list__title {
	font-size: max(2.0rem, 20px);
	margin-top: 0.8rem;
	font-weight: bold;
	text-align: center;
	color: #111;
}

.related-nav-list__title ruby rt {
	font-size: 12px;
	text-align: center;
	letter-spacing: 0.2rem;
	transform: translateY(-0.3rem);
}

.related-nav-list__title ruby b {
	font-weight: bold;
}

.related-nav-list__txt {
	margin-top: 2rem;
}

.related-nav-list__img {
	height: auto;
	overflow: hidden;
	border-radius: 2rem 2rem 0 0;
	isolation: isolate; /* for Safari */
}

.related-nav-list__img img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.related-nav-list__item a .related-nav-list__img img {
	transition: all 0.3s;
}

.related-nav-list__item a:hover .related-nav-list__img img {
	transform: scale(1.1);
	transition: all 0.3s;
}

.related-nav-list__title__ruby--challenge__logo {
	width: 100%;
	max-width: 17rem;
	margin-top: 0.1rem;
}

.related-nav-list__title__ruby--luchta__logo {
	width: 100%;
	max-width: 10rem;
	margin-top: 0.4rem;
}

.related-nav-list__title__ruby-uper--luchta {
	font-size: 12px;
	display: block;
}

.related-nav-list__title__ruby--luchta {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.related-nav-list__title ruby .related-nav-list__title__ruby--luchta__text {
	font-size: 12px;
	transform: translateY(0.3rem);
}

.related-nav-list__img__img--shortest-pass {
	object-position: bottom;
}

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

associ-box

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

.associ-box__title-unit {
	padding: 0 3rem;
}

.associ-box__title-unit__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 3rem 0;
}

.associ-box__title {
	font-size: 3.2rem;
	font-weight: bold;
	text-align: center;
}

.associ-box__title a:hover {
	text-decoration: underline;
}

.associ-nav-list__item {
	padding: 2rem 1rem;
	width: 42rem; /* for safari */
}

.associ-nav-list__item a {
	display: block;
	position: relative;
	box-shadow: 0 0.6rem 1.2rem -0.2rem rgba(50, 50, 93, 0.25), 0 0.3rem 0.7rem -0.3rem rgba(0, 0, 0, 0.3); /* #22 */
	border-radius: 2rem;
}

.associ-nav-list__title {
	position: absolute;
	padding: 1rem 1.6rem;
	width: 100%;
	bottom: 0;
	font-weight: bold;
	border-radius: 0 0 2rem 2rem;
	z-index: 2;
	background: url(../img/external_ic01.svg) no-repeat center right 2.0rem rgba(0, 0, 0, 0.8);
	background-size: 1.6rem auto;
}

.associ-nav-list__img {
	position: relative;
	overflow: hidden;
	z-index: 1;
	height: 24rem;
	border-radius: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff;
	padding-bottom: 4rem;
}

.associ-nav-list__img img {
	width: 100%;
	height: auto;
}

.associ-nav-list__item a .associ-nav-list__title {
	transition: all 0.3s;
}

.associ-nav-list__item a:hover .associ-nav-list__title {
	background-color: rgba(0, 0, 0, 0.7);
	transition: all 0.3s;
}

.associ-nav-list__item a .associ-nav-list__img img {
	transition: all 0.3s;
}

.associ-nav-list__item a:hover .associ-nav-list__img img {
	transform: scale(1.1);
	transition: all 0.3s;
}

.associ-box__list-link {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
}

.associ-nav {
	padding-bottom: 4rem;
}

/*============

media queries

=============*/

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

タブレット・スマホ

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

@media (max-width: 959px) {
	/* visual-box */
	.visual-box__img {
		object-fit: cover;
		height: 50rem;
	}

	/* info-box */
	.info-box-def {
		margin-left: 2rem;
		margin-bottom: 2.4rem;
	}

	.info-box-def__datetime {
		width: 100%;
		justify-content: flex-start;
	}

	.info-box-def__datetime:not(:first-of-type) {
		margin-top: 3rem;
	}

	.info-box-def__data {
		width: 100%;
	}

	.info-box-def__data:before {
		width: 100%;
		height: 0.2rem;
		top: auto;
		bottom: -1.0rem;
	}

	.info-box-def__data a {
		padding: 0 0 0.6rem 0;
	}

	.info-box-def__title .pdf-link,
	.info-box-def__title .external-link {
		padding: 0 2.4rem 0.6rem 0;
	}

	.info-box-def__title .pdf-link:after,
	.info-box-def__title .external-link:after {
		top: 0.2rem;
	}

	.info-box-def__title .info-box-def__icon--ksk.pdf-link:after,
	.info-box-def__title .info-box-def__icon--nikken.pdf-link:after,
	.info-box-def__title .info-box-def__icon--ksk.external-link:after,
	.info-box-def__title .info-box-def__icon--nikken.external-link:after {
		top: 4.4rem;
	}

	.info-box-def .info-box-def__icon--ksk,
	.info-box-def .info-box-def__icon--nikken {
		padding-left: 0;
		padding-top: 4rem;
	}

	.info-box-def__icon--ksk:before,
	.info-box-def__icon--nikken:before {
		top: 0.4rem;
		left: 0;
	}

	.info-box-def__title .info-box-def__icon--ksk.pdf-link,
	.info-box-def__title .info-box-def__icon--nikken.pdf-link,
	.info-box-def__title .info-box-def__icon--ksk.external-link,
	.info-box-def__title .info-box-def__icon--nikken.external-link {
		padding-left: 0;
	}

	/* support-nav */
	.support-nav-list {
		flex-wrap: wrap;
		margin-top: 0;
	}

	.support-nav-list__item {
		width: calc(100%/2 - 1.6rem);
		margin-top: 4rem;
	}

	/* service-nav */
	.service-nav-list {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.service-nav-list__item {
		width: calc(100%/2 - 1.6rem);
		display: flex;
	}

	.service-nav-list__item:not(:nth-of-type(3n+1)) {
		margin-left: 0;
	}

	.service-nav-list__img {
		margin-top: auto;
	}

	.service-nav-list__txt-unit {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		position: relative;
		background-color: transparent;
	}

	.service-nav-list__txt {
		padding-left: 0;
		width: 100%;
		margin-top: 1rem;
		text-align: center;
	}

	.service-nav-list__item a {
		display: flex;
		flex-direction: column;
		background-color: #999;
		width: 100%;
	}

	.service-nav-list__img,
	.service-nav-list__img img {
		height: 28rem;
	}

	.service-nav-list__img--nikken img {
		height: 38rem;
		object-position: 80% 100%;
	}

	/* support-nav */
	.support-nav-list__img,
	.support-nav-list__img img {
		width: 21rem;
		height:21rem;
	}
}

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

スマホ

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

@media (max-width: 519px) {
	/* info-box */
	.info-box__inner {
		display: flex;
		flex-wrap: wrap;
	}

	.info-box__btn {
		position: relative;
		width: calc(100%/3);
		white-space: normal;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.info-box__content {
		margin-left: 0;
		border-left: none;
		margin-top: 2rem;
	}

	.info-box__inner .info-box__btn:nth-of-type(1),
	.info-box__inner .info-box__btn:nth-of-type(2),
	.info-box__inner .info-box__btn:nth-of-type(3) {
		top: 0;
	}

	.info-box-def {
		margin-left: 0;
	}

	.info-box-def__icon--ksk:before,
	.info-box-def__icon--nikken:before {
		background-size: 14rem auto;
	}

	.info-box-def__icon--ksk:before,
	.info-box-def__icon--nikken:before {
		width: 14rem;
	}

	/* service-nav */
	.service-nav-list {
		flex-direction: column;
	}

	.service-nav-list__item {
		width: 100%;
	}

	/* support-nav */
	.support-nav-list {
		flex-direction: column;
	}

	.support-nav-list__item {
		width: 100%;
	}

	.support-nav-list__img,
	.support-nav-list__img img {
		width: 34rem;
		height:34rem;
	}

	/* related-nav-list */
	.related-nav-list {
		flex-direction: column;
	}

	.related-nav-list__item {
		width: 34rem;
		margin: 3.2rem auto 0;
	}

	/* associ-box */
	.associ-box__title-unit__inner {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		padding: 3rem 0 1rem;
	}

	.associ-box__list-link {
		position: relative;
		transform: none;
		display: flex;
		justify-content: flex-end;
		width: 100%;
		margin-top: 1rem;
	}
}
