@charset "utf-8";

/* -------------------------------------------------------------
    case-area ※TOPページ：実績・事例エリア
-------------------------------------------------------------- */
#top .case-area {
	margin: 130px 0 0 0;
}
#top .case-in {
	padding: 0 0 80px;
	position: relative;
}

#top .case-in::before,
#top .case-in::after {
	content: "";
	background: var(--beige);
	height: 100%;
	top: 0;
	position: absolute;
	z-index: -1;
}

#top .case-in::before {
	left: 0;
	width: 720px;
}

#top .case-in::after {
	left: -100%;
	width: 100%;
}

#top .case-elements {
	display: flex;
	position: relative;
}

#top .case-ttl {
	position: relative;
	top: -40px;
}

#top .case-ttl .en {
	font-size: 7.2rem;
}

#top .case-ttl .ja {
	display: block;
	margin: 12px 0 0 0;
}

#top .case-ttl-wrap {
	flex-shrink: 0;
}

#top .case-catch {
	font-size: 3.4rem;
	font-weight: bold;
	line-height: 1.52;
	margin: 20px 0 0 0;
}

#top .case-btn {
	top: 400px;
	position: absolute;
	left: 0;
}

#top .case-note {
	font-weight: 500;
	margin: 30px 0 0 0;
	line-height: 2.1;
}

#top .case-box-wrap {
	margin: 13px 0 0 94px;
}

#top .case-scroll {
	overflow-x: scroll;
}

#top .case-box {
	display: flex;
	width: 1180px;
	padding: 0 20px 10px 0;
}

#top .case-box-list {
	margin: 0 20px 0 0;
}

#top .case-box .case-box-list:nth-child(n+8) {
	display: none;
}

#top .case-box-list a {
	border: 1px solid #231815;
	background: #fff;
	display: block;
	width: 360px;
	position: relative;
	height: 416px;

	border-radius: 10px;
}

#top .case-box-list .anime-border::before {
	top: -1px;
}

#top .case-box .thumb {
	height: 240px;
	width: 100%;
	line-height: 240px;
	text-align: center;
	overflow: hidden;

	border-radius: 10px;
}

#top .case-box .thumb img {
	max-height: 100%;
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	transition: all .5s;
	width: auto;
}

#top .case-box .case-contents {
	padding: 10px 10px 20px 10px;
}

#top .case-txt-wrap {
	margin: 10px 0 0 0;
}

#top .case-txt-wrap .title {
	font-weight: 500;
	line-height: 1.6;
	max-height: 55px;
	font-size: 1.6rem;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#top .case-txt-wrap .client {
	border-top: 1px solid #dddbd9;
	font-size: 1.3rem;
	line-height: 1.5;
	margin: 20px 0 0 0;
	padding: 10px 0 0 0;
	color: #777;
}


/*カテゴリ*/
#top .category-wrap {
	display: flex;
	flex-wrap: wrap;
}

#top .category-wrap .cate {
	background: var(--white02);
	font-size: 1.2rem;
	line-height: 1.2;
	padding: 6px 10px 7px 10px;
	margin: 5px 10px 0 0;
}

#top .category-wrap .cate:last-child {
	margin-right: 0;
}

#top .category-wrap .cate:nth-child(n+3) {
	display: none;
}

#top .case-box a:hover {
	color: #231815;
}

#top .case-box a:hover .case-txt-wrap .title {
	color: var(--red);
}

/* 実績・実例ボタン */
#top .case-area .case-btn a { 
    background: var(--red);
    color: #fff;
    border-radius: 5px;
	position: relative;
}
#top .case-area .cmn-btn::after{
	color: #fff;
}
#top .case-area .case-btn a::before {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: #e73405;
    border-radius: 5px;  
    transition: all 0.3s ease;
}
#top .case-area .case-btn a:hover::before {
    right: 0;
    width: 100%;  
}


@media screen and (min-width: 769px) {
	/*pc only*/
	#top .case-box a:hover .thumb img {
		transform: scale(1.2,1.2);
	}
}


@media screen and (max-width: 768px) {
	
	#top .case-area {
		margin: 30px 0 80px 0;
	}
	
	#top .case-in {
		padding: 30px 20px 60px 20px;
	}
	
	#top .case-ttl {
		top: auto;
	}
	
	#top .case-ttl .en {
		font-size: 4.2rem;
	}
	
	#top .case-catch {
		font-size: 2.3rem;
		margin: 25px 0 0 0;
	}
	
	#top .case-note {
		display: none;
	}
	
	#top .case-elements {
		display: block;
	}
	
	#top .case-box-wrap {
		margin: 25px 0 0 0;
		position: relative;
		z-index: 0;
	}
	
	#top .case-box {
		max-width: 1180px;
		min-width: 335px;
		width: auto;
	}
	
	#top .case-box a {
		width: 236px;
		height: 293px;

		border-radius: 5px;
	}
	
	#top .case-box .thumb {
		height: 146px;
		line-height: 146px;

		border-radius: 5px;
	}
	
	#top .case-txt-wrap .title {
		display: block;
		height: auto;
		margin: 10px 0 0 0;
		-webkit-box-orient: unset;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	#top .case-txt-wrap .client {
		margin: 15px 0 0 0;
	}
	
	#top .case-btn {
		top: auto;
		bottom: -32px;
		left: 0;
		right: 0;
	}
	
	#top .case-btn .cmn-btn {
		width: 295px;
	}
	
	#top .category-wrap .cate {
		padding: 3px 8px 4px 8px;
	}
	
	#top .case-in::after {
		display: none;
	}
	
	#top .case-in::before {
		bottom: 0;
		height: calc( 100% - 50px );
		top: unset;
	}

	/* 実績・実例ボタン */
	#top .case-area .case-btn .cmn-btn {
		margin: -35px auto 0 auto;
	}

	
}