@charset 'utf-8';

.top-mv {
	color: #fff;
	position: relative;
	padding: 0;
}
.top-mv-img {
	opacity: 0;
	-webkit-animation: mv-animation 0.3s ease 0.5s 1 forwards;
	animation: mv-animation 0.3s ease 0.5s 1 forwards;
}
/* ロード画面が出ている間はMVの演出を止めておき、消え始めてから再生する */
html.is-loading .top-mv-img,
html.is-loading .top-mv-en {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}
.top-mv-text {
	width: 100%;
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin: 0 auto;
}
.top-mv-h1 {
	font-size: 4rem;
	letter-spacing: 0.1em;
	line-height: 1.26;
	width: 100%;
	max-width: 45rem;
	margin: 0 auto;
	text-shadow: 0 4px 8px rgba(0,0,0,.85);
}
#mv-text01, #mv-text02 {
  visibility: hidden;
	display: block;
}
#mv-text01 span:first-child, #mv-text01 span:nth-child(4), #mv-text01 span:nth-child(5), #mv-text02 span:first-child, #mv-text02 span:nth-child(2), #mv-text02 span:nth-child(4), #mv-text02 span:nth-child(5) {
	font-size: 5rem;
}
.top-mv-h1-bottom {
	text-align: right;
	
}
.top-mv-en {
	font-size: 13px;
	text-align: center;
	letter-spacing: -0.02em;
	text-shadow: 0 4px 8px rgba(0,0,0,.85);
	opacity: 0;
	-webkit-animation: mv-animation 0.2s ease 2.7s 1 forwards;
	animation: mv-animation 0.2s ease 2.7s 1 forwards;
}
@-webkit-keyframes mv-animation {
  100% {
    opacity: 1;
  }
}
@keyframes mv-animation {
  100% {
    opacity: 1;
  }
}

@media (min-width:576px){
	.top-mv-text {
		top: 55%;
	}
	.top-mv-h1 {
		font-size: 6rem;
		max-width: 60rem;
	}
	#mv-text01 span:first-child, #mv-text01 span:nth-child(4), #mv-text01 span:nth-child(5), #mv-text02 span:first-child, #mv-text02 span:nth-child(2), #mv-text02 span:nth-child(4), #mv-text02 span:nth-child(5) {
		font-size: 1.247em;
	}
	.top-mv-en {
		font-size: 16px;
	}
}
@media (min-width:768px){
	.top-mv-text {
		top: 33%;
	}
	.top-mv-h1 {
		font-size: 4.5rem;
		line-height: 1.7;
	}
	.top-mv-en {
		font-size: 2rem;
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		margin: -15px auto 0;
	}
}
@media (min-width:992px){
	.top-mv-h1 {
		font-size: 5.5rem;
		max-width: 65rem;
	}
}
@media (min-width:1200px){
	.top-mv-h1 {
		font-size: 6.5rem;
		max-width: 75rem;
	}
	.top-mv-en {
		font-size: 3rem;
		margin-top: -30px;
	}
}
@media (min-width:1600px){
	.top-mv-h1 {
		font-size: 9.7rem;
		max-width: 100%;
	}
}

/*top-scroll（MV下のスクロール表示）*/
.top-scroll {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 1rem;
	height: 5rem;
	margin-top: 20px;
	pointer-events: none;
}
/* 縦線 */
.top-scroll-line {
	position: relative;
	display: block;
	width: 2px;
	height: 100%;
	background-color: #3B4043;
}
/* 線の上を落ちていく点 */
.top-scroll-line:after {
	content: '';
	position: absolute;
	left: 50%;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-radius: 50%;
	background-color: #3B4043;
	-webkit-animation: top-scroll-dot 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
	animation: top-scroll-dot 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
/* 縦書きの Scroll */
.top-scroll-text {
	-webkit-writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	writing-mode: vertical-rl;
	font-family: "din-2014", "BIZ UDPGothic", sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1;
	color: #3B4043;
	margin-top: 0.4rem;
}
@-webkit-keyframes top-scroll-dot {
	0%   { top: 0;    opacity: 0; }
	15%  { opacity: 1; }
	75%  { opacity: 1; }
	100% { top: 100%; opacity: 0; }
}
@keyframes top-scroll-dot {
	0%   { top: 0;    opacity: 0; }
	15%  { opacity: 1; }
	75%  { opacity: 1; }
	100% { top: 100%; opacity: 0; }
}
/* 動きを抑える設定の端末では点を止める */
@media (prefers-reduced-motion: reduce) {
	.top-scroll-line:after {
		-webkit-animation: none;
		animation: none;
		top: 50%;
		opacity: 1;
	}
}
@media (min-width:768px) {
	.top-scroll {
		height: 6.5rem;
	}
	.top-scroll-text {
		font-size: 1.4rem;
	}
}

/*top-message*/
.top-message {
	background: url("../images/top/top_message_bg01.png") left 0 bottom 3.1vw / 20% no-repeat,
		url("../images/top/top_message_bg02_full.png") right 3vw bottom 0 / 80% no-repeat,
		linear-gradient(#FBFBFB, #FBFBFB) left bottom / 80% 62% no-repeat;
	padding-bottom: 15%;
}
.top-message-text {
	text-align: left;
	line-height: 1.55;
	letter-spacing: 0.07em;
	margin-bottom: 3rem;
}
.top-message-text .bigger {
	font-size: 1.2em;
	font-weight: 700;
	color: #3B4043;
}
.top-message-copy {
	font-size: 2.3rem;
	font-weight: 700;
	text-align: left;
	margin: 5rem 0 5px;
}
.top-message-flexitem {
	font-size: 2.8rem;
	font-weight: 700;
	text-align: center;
}
@media (min-width:992px){
	.top-message-text {
		font-size: 2.3rem;
	}
	.top-message-copy {
		font-size: 2.8rem
	}
	.top-message-flex {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.top-message-flexitem {
		font-size: 3.2rem;
	}
	.top-message-flexitem + .top-message-flexitem {
		margin: 0 0 0 7rem;
	}
}
@media (min-width:1800px){
	.top-message {
		width: 100%;
		max-width: 1800px;
		margin: 0 auto;
		background: url("../images/top/top_message_bg01_full.png") left 0 bottom 3.1vw / 20% no-repeat,
			url("../images/top/top_message_bg02_full.png") right 3vw bottom 0 / 80% no-repeat,
			linear-gradient(#FBFBFB, #FBFBFB) left bottom / 80% 62% no-repeat;
	}
}

/*top-news*/
.top-news {
	padding: 8rem 0;
}
.top-news-list li {
	border-bottom: 0.5px solid #3F9877;
}
/* 一覧の一番上にも同じ線を引く */
.top-news-list li:first-child {
	border-top: 0.5px solid #3F9877;
}
/* 罫線の上下の余白を均等にするため、間隔は各記事の内側(a)の padding で作る。
   下は抜粋テキストの行間ぶん(約7px)がすでに空くので、その分だけ差し引く */
.top-news-list a {
	display: block;
	padding: 15px 0 8px;
}
.top-news-list .news-date {
	font-size: 1.7rem;
	line-height: 1;
}
.top-news-list .news-title {
	color: #2E7568;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.6;
}
.top-news-list .news-excerpt {
	font-size: 1.7rem;
	padding: 5px 0 0;
}
@media (min-width:1200px){
	/* お知らせ・ブログは .wider-container と同じ幅まで広げる */
	.top-news .container,
	.top-blog .container {
		max-width: 1230px;
	}
}
@media (min-width:992px){
	.top-news {
		padding: 10rem 0 12.5rem;
	}
	/* 見出し＋ボタンを左、記事リストを右の2カラムに配置する。
	   HTMLの並び順（見出し→リスト→ボタン）は変えずグリッドで置き直しているので、
	   992px未満は従来どおりの縦積みのまま */
	.top-news .container {
		display: grid;
		grid-template-columns: 24% 1fr;
		grid-template-rows: auto 1fr;
		column-gap: 5rem;
	}
	.top-news .common-title {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 0;
	}
	.top-news-list {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
	.top-news .common-btn {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
		margin-top: 3rem;
	}
	.top-news-list a {
		display: flex;
		flex-direction: column;
		gap: 5px;
	}
	.top-news-left {
		width: 100%;
	}
	.top-news-list .news-excerpt {
		width: 100%;
	}
}

/*top-nav*/
.top-nav {
	color: #fff;
	font-size: 1.8rem;
	padding: 6rem 0 0 0;
	overflow: hidden;
}
.top-nav-content {
	display: flex;
	align-items: center;
	padding: 15px;
	position: relative;
}
.top-nav-content .container {
	padding: 0;
}
.top-nav-content + .top-nav-content {
	margin-top: 7rem;
}
.top-nav .common-title, .top-nav .common-title_en {
	color: #fff;
}
.top-nav .common-title {
	margin-bottom: 4rem;
	font-size: 2.5rem;
}
.top-nav .common-title_en {
	font-size: 8rem;
	font-weight: 700;
}
.top-nav .common-title:after {
	content: none;
}
.top-nav-textarea {
	width: 100%;
	line-height: 1.375;
}
.top-nav-textarea p {
	line-height: 1.6;
}
.top-company {
	background: url("../images/top/top_company_bg.jpg") left / cover no-repeat;
	z-index: 10;
}
.top-company:before {
	content: '';
	background: url("../images/top/top_nav_bg01.png") bottom right / contain no-repeat;
	position: absolute;
	top: -6rem;
	right: 0;
	width: 90%;
	height: 6rem;
}
.top-company:after {
	content: '';
	background: url("../images/top/top_nav_bg03.png") bottom right / contain no-repeat;
	position: absolute;
	bottom: -6rem;
	right: 0;
	width: 100%;
	height: 6rem;
}
.top-service {
	background: url("../images/top/top_service_bg.jpg") center / cover no-repeat;
	z-index: 9;
}
.top-service:before {
	content: '';
	background: url("../images/top/top_nav_bg02.png") bottom left / contain no-repeat;
	position: absolute;
	top: -12rem;
	left: 0;
	width: 75%;
	height: 12rem;
}
.top-service .top-nav-textarea {
	flex-direction: row-reverse;
}
.top-recruit {
	background: url("../images/top/top_recruit_bg.jpg") center / cover no-repeat;
	z-index: 8;
}
.top-recruit:before {
	content: '';
	background: url("../images/top/top_nav_bg04.png") bottom left / contain no-repeat;
	position: absolute;
	top: -10rem;
	right: 0;
	width: 100%;
	height: 10rem;
}
.top-nav-titlearea {
	text-align: right;
	margin-bottom: 4rem;
}
.top-nav .common-btn_white {
	margin-top: 4rem;
}
.top-nav-text {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
}
.top-nav-text .bigger {
	font-size: 1.6em;
}
@media (min-width:576px){
	.top-nav-content {
		padding: 4rem;
	}
}
@media (min-width:992px){
	.top-nav {
		padding-top: 15rem;
	}
	.top-nav-content {
		height: 35rem;
	}
	.top-nav-content + .top-nav-content {
		margin-top: 13rem;
	}
	.top-nav-textarea {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.top-nav-titlearea {
		margin: 0 5rem 0 0;
	}
	.top-service .top-nav-titlearea {
		margin: 0 0 0 5rem;
	}
	.top-nav .common-title {
		text-align: right;
	}
	.top-company:before {
		top: -15rem;
		height: 15rem;
	}
	.top-company:after {
		bottom: -12rem;
		height: 12rem;
	}
	.top-service:before {
		top: -25rem;
		height: 25rem;
	}
	.top-recruit:before {
		top: -20rem;
		height: 20rem;
	}
	.top-nav-text {
		font-size: 2.5rem;
	}
}
@media (min-width:1400px){
	.top-nav-content + .top-nav-content {
		margin-top: 18rem;
	}
	.top-company:after {
		bottom: -16rem;
		height: 16rem;
	}
}
@media (min-width:1600px){
	.top-nav-content + .top-nav-content {
		margin-top: 20.7rem;
	}
	.top-company:after {
		bottom: -18rem;
		height: 18rem;
	}
}
/*
@media (min-width:1200px){
	.top-nav {
		padding-top: 15rem;
	}
}
*/

/*top-blog*/
.top-blog {
	padding: 8rem 0;
}
/* ブログ一覧・記事ページと共用しているので消さないこと */
.blog-date {
	font-size: 1.5rem;
	margin-right: 16px;
	margin-bottom: 0.4rem;
	line-height: 1.2;
}
.blog-title {
	font-size: 2rem;
	font-weight: 700;
	color: #2E7568;
	line-height: 1.3;
}

/* マガジン型レイアウト：1件目を大きく、2〜3件目を右に縦積み */
.top-blog-magazine,
.top-blog-subs {
	display: grid;
	gap: 2rem;
}
/* グリッド項目の既定 min-width:auto で横にはみ出すのを防ぐ */
.top-blog-magazine > *,
.top-blog-subs > * {
	min-width: 0;
}
.top-blog-main-link,
.top-blog-sub-link {
	position: relative;
	display: flex;
	height: 100%;
	border-radius: 4px;
	overflow: hidden;
}
/* 大きいカード（写真の上に文字を載せる） */
.top-blog-main-link {
	flex-direction: column;
	justify-content: flex-end;
	min-height: 32rem;
	padding: 2.5rem;
	color: #fff;
}
.top-blog-main-img {
	position: absolute;
	inset: 0;
	margin: 0;
}
.top-blog-main-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.top-blog-main-img:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.75) 100%);
}
.top-blog-main .top-blog-cat {
	position: absolute;
	top: 2.5rem;
	left: 2.5rem;
}
.top-blog-main-body {
	position: relative;
}
.top-blog-main .top-blog-date,
.top-blog-main .top-blog-title,
.top-blog-main .top-blog-excerpt,
.top-blog-main .top-blog-more {
	color: #fff;
}
/* 小さいカード（左に写真・右に白地の本文） */
.top-blog-sub-link {
	background-color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.top-blog-sub-img {
	position: relative;
	width: 42%;
	flex-shrink: 0;
	min-height: 16rem;
	margin: 0;
}
.top-blog-sub-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.top-blog-sub-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 2.2rem;
}
/* カード内の共通パーツ */
.top-blog-cat {
	display: inline-block;
	align-self: flex-start;
	background-color: #2E7568;
	color: #fff;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
	padding: 0.8rem 1.4rem;
	border-radius: 2px;
	margin-bottom: 1.6rem;
}
.top-blog-date {
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}
.top-blog-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
.top-blog-excerpt {
	font-size: 1.5rem;
	line-height: 1.8;
	margin-top: 1.2rem;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
/* 「記事を読む ──▷」 */
.top-blog-more {
	display: flex;
	align-items: center;
	font-size: 1.5rem;
	margin-top: auto;
	padding-top: 2rem;
}
.top-blog-more span {
	order: 0;
	border-bottom: 1px solid currentColor;
	padding-bottom: 4px;
}
.top-blog-more:before {
	content: '';
	order: 1;
	width: 3.6rem;
	height: 1px;
	background-color: currentColor;
	margin-left: 2.4rem;
}
.top-blog-more:after {
	content: '';
	order: 2;
	width: 7px;
	height: 7px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
	margin-left: -7px;
}
@media (min-width:768px){
	.top-blog {
		padding: 15rem 0;
	}
	.top-blog-main-link {
		min-height: 40rem;
		padding: 3rem;
	}
	.top-blog-main .top-blog-cat {
		top: 3rem;
		left: 3rem;
	}
	.top-blog-main .top-blog-title {
		font-size: 2.8rem;
	}
	.top-blog-sub-img {
		min-height: 18rem;
	}
}
@media (min-width:992px){
	.top-blog-magazine {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: stretch;
	}
	.top-blog-subs {
		grid-template-rows: 1fr 1fr;
		gap: 2rem;
	}
	.top-blog-main-link {
		min-height: 34rem;
		padding: 3rem;
	}
	.top-blog-main .top-blog-cat {
		top: 3rem;
		left: 3rem;
	}
	.top-blog-main .top-blog-title {
		font-size: 2.4rem;
	}
	.top-blog-sub-img {
		min-height: 0;
	}
	.top-blog-sub-body {
		padding: 1.4rem 2rem;
	}
	.top-blog-sub .top-blog-title {
		font-size: 1.5rem;
	}
	.top-blog-sub .top-blog-cat {
		margin-bottom: 0.8rem;
	}
	.top-blog-sub .top-blog-date {
		margin-bottom: 0.6rem;
	}
	.top-blog-sub .top-blog-more {
		padding-top: 1rem;
	}
}

/* SPは通常のカード型（写真が上・本文が下） */
@media (max-width:767px){
	.top-blog-main-link {
		flex-direction: column;
		justify-content: flex-start;
		min-height: 0;
		padding: 0;
		background-color: #fff;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	}
	.top-blog-main-img {
		position: relative;
		inset: auto;
		width: 100%;
		height: 0;
		padding-bottom: 58%;
	}
	.top-blog-main-img img {
		position: absolute;
		inset: 0;
	}
	.top-blog-main-img:after {
		display: none;
	}
	.top-blog-main .top-blog-cat {
		top: 1.6rem;
		left: 1.6rem;
	}
	.top-blog-main-body {
		padding: 2rem;
	}
	.top-blog-main .top-blog-date,
	.top-blog-main .top-blog-title,
	.top-blog-main .top-blog-excerpt,
	.top-blog-main .top-blog-more {
		color: #3B4043;
	}
	.top-blog-sub-link {
		flex-direction: column;
	}
	.top-blog-sub-img {
		width: 100%;
		height: 0;
		min-height: 0;
		padding-bottom: 58%;
	}
	.top-blog-sub-body {
		padding: 2rem;
	}
	/* バッジは大カードと同じく写真の上に重ねる */
	.top-blog-sub .top-blog-cat {
		position: absolute;
		top: 1.6rem;
		left: 1.6rem;
		margin-bottom: 0;
	}
}
