@charset "utf-8";

/* --------------------------------------------------------- */
/* DIVISION */

.our-division {
	margin-bottom: 0;
	padding: 0;
	border-top: none;
}

.our-division + .home-section {
	border-top: none;
}

.our-division-inner {
	
}

.our-division__ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	background: rgba(0,0,0,0.025);
}

.our-division__li {
	box-sizing: border-box;
	border-top: 1px solid rgba(0,0,0,0.1);
	background-color: #fff;
}

.our-division__li:first-child {
	border-top: none;
}

.our-division__li-inner {
	display: block;
	width: calc(100% - 40px);
	height: 100%;
	margin: 0 auto;
	padding: 25px 0 30px;
	box-sizing: border-box;
}

@media screen and (min-width: 768px) {
	.our-division__ul {
		display: flex;
		flex-wrap: wrap;
		border-bottom: none;
	}
	
	.our-division__li {
		width: 33.333%;
	}
	
	.our-division__li {
		position: relative;
		border-top: none;
		border-bottom: 1px solid rgba(0,0,0,0.1);
	}
	
	.our-division__li:before {
		position: absolute;
		right: -1px;
		left: auto;
		top: 0;
		content: "";
		display: block;
		width: 1px;
		height: 100%;
		background: rgba(0,0,0,0.1);
		z-index: 1;
	}
	
	.our-division__li:nth-child(-n+3) {
		border-top: none;
	}
	
	.our-division__li:nth-child(3n):before {
		display: none;
	}
	
	.our-division__li-inner {
		position: relative;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	
	.our-division__li:hover:before {
		opacity: 0;
		transition: opacity 0.2s ease;
	}
}

@media screen and (min-width: 1280px) {
	.our-division__li {
		width: 20%;
		
	}
	
	.our-division__li:before {
		display: block !important;
	}
	.our-division__li:nth-child(-n+5) {
		border-top: none !important;
	}
	.our-division__li:nth-child(5n):before {
		display: none !important;
	}
}


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

.our-division__anchor {
	text-decoration: none;
}

.our-division__anchor:hover {
	text-decoration: none;
}

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

.our-division__ttl {
	display: flex;
	align-items: center;
}

.our-division__ttl-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	margin-right: 20px;
	line-height: 1;
}

.our-division__ttl-icon:before,
.our-division__ttl-icon:after {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
	display: block;
	content: "";
	width: 60px;
	height: 60px;
	background-color: #000;
	border-radius: 50%;
	z-index: 1;
	transition: all 0.4s cubic-bezier(.65,.05,.36,1);
}

.our-division__ttl-icon:after {
	width: 90px;
	height: 90px;
	z-index: 1;
	background-color: rgba(0,0,0,0.3);
	mix-blend-mode: overlay;
	transition: all 0.4s cubic-bezier(.36,-0.01,.91,-0.36);
	transform: scale(0);
}

a:hover .our-division__ttl-icon:after {
	transition: all 0.75s cubic-bezier(.22,1.42,.35,.99);
}

.our-division__ttl-icon-body {
	position: relative;
	display: block;
	width: 40px;
	color: #fff;
	z-index: 2;
}

.our-division__ttl-logo {
	width: calc(100% - 80px);
	margin: 0;
	font-size: 12px;
}

.our-division__ttl-logo img {
	display: block;
	width: auto;
	height: 60px;
	max-width: 240px;
	transform: scale(1.0001);
}

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

.our-division__meta {
	width: calc(100% - 80px);
	padding-left: 80px;
}

.our-division__meta > * {
	margin-top: 0;
}

.our-division__meta > *:last-child {
	margin-bottom: 0;
}

.our-division__meta-des {
	font-size: 1.2rem;
	margin-bottom: 0;
}

.our-division__meta-des .ib {
	display: inline;
}

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

.our-division__arrow {
	display: none;
	align-items: center;
	justify-content: center;
}

.our-division__arrow-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	text-align: center;
}

.our-division__arrow-label {
	height: 28px; /* icon height */
	opacity: 0;
}

.our-division__arrow-icon {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: auto;
	padding: 5px;
	border-radius: 50%;
	border: 1px solid currentColor;
	line-height: 1;
	text-align: center;
	z-index: 2;
	box-sizing: border-box;
}

.our-division__meta-icon svg {
	width: 16px;
	height: 16px;
	stroke-width: 1.5;
}


/* division color ----------- */

:root {
	/* Not working IE11. but avoid using polyfill */
	--hospital-color: rgba(86,117,235,1);
}

.our-division__ttl-icon:before {
	background-color: currentColor;
	opacity: 0.7;
}

a:hover .our-division__ttl-icon:before {
	opacity:
1;}

.d-hospital           .our-division__ttl-icon:before { color: rgba(86,117,235,1);}
.d-rehabilis          .our-division__ttl-icon:before { color: rgba(0,160,170,1);}
.d-letsrehaplus       .our-division__ttl-icon:before { color: rgba(113,170,0,1);}
.d-home-visit-nursing .our-division__ttl-icon:before { color: rgba(219,150,41,1);}
.d-support            .our-division__ttl-icon:before { color: rgba(229,93,71,1);}

.windows .our-division__ttl-logo,
.windows .our-division li,
.windows .our-division p {
	transform: inherit;
}

@media screen and (min-width: 768px) {
	
	.our-division__anchor {
		width: 100%;
		height: 100%;
		transition: none;
	}
	
	.our-division__anchor:hover {
		background-color: #fff;
		color: #fff !important;
		transition-duration: 0.5s !important;
	}
	
	.our-division__anchor:before {
		position: absolute;
		left: 0;
		top: 0;
		content: "";
		display: block;
		width: 100%;
		height: 100%;
		box-shadow: 0 0 0 rgba(0,0,0,0.5);
		transition: box-shadow 0.2s ease;
		z-index: 1;
	}
	
	.our-division__anchor:hover:before {
		box-shadow: 0 8px 20px rgba(0,0,0,0.25);
	}
	
	.our-division__anchor-inner {
		position: relative;
		width: 100%;
		height: 100%;
		overflow: hidden;
		padding: 40px 20px 80px;
		box-sizing: border-box;
	}
	
	.our-division__ttl {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		margin-bottom: 10px;
		text-align: center;
	}
	
	.our-division__ttl-icon {
		width: 90px;
		height: 90px;
		margin: 0 auto 10px;
	}
	
	.our-division__ttl-icon:before {
		width: 90px;
		height: 90px;
		transform: scale(1);
	}
	
	a:hover .our-division__ttl-icon:before {
		transform: scale(8);
	}
	
	a:hover .our-division__ttl-icon:after {
		transform: scale(1);
	}
	
	a:hover .our-division__ttl-logo {
		transition: filter 0.75s ease;
		filter: brightness(0%) invert(100%);
	}
	
	.our-division__ttl-icon-body {
		width: 60px;
		height: 60px;
	}
	
	.our-division__ttl-logo {
		position: relative;
		width: 100%;
		z-index: 2;
		transition: filter 0.5s ease;
	}
	
	.our-division__ttl-logo img {
		width: 100%;
		height: auto;
		margin: auto;
	}
	
	.our-division__meta {
		position: relative;
		width: 100%;
		padding: 0;
		margin: auto;
		z-index: 2;
	}
	
	.our-division__meta-des {
		text-align: center;
	}
	
	.our-division__meta-des .ib {
		display: inline-block;
	}
	
	/* ---------- */
	
	.our-division__arrow {
		display: flex;
		position: absolute;
		bottom: 30px;
		top: auto;
		left: 0;
		right: 0;
	}
	
	.our-division__arrow-icon {
		position: absolute;
	}
	
	.our-division__arrow-icon svg {
		width: 28px;
		height: 28px;
		transition: none !important;
	}
}

@media screen and (min-width: 1280px) {
	.our-division__anchor-inner {
		padding: 90px 20px 120px;
	}
	
	.our-division__ttl-icon {
		width: 120px;
		height: 120px;
		margin-bottom: 20px;
	}
	
	.our-division__ttl-icon:before {
		width: 120px;
		height: 120px;
	}
	.our-division__ttl-icon:after {
		width: 120px;
		height: 120px;
	}
	.our-division__ttl-icon-body {
		width: 84px;
		height: 84px;
	}
	
	.our-division__ttl-logo {
		margin-bottom: 10px;
	}
	
	.our-division__ttl-logo img {
		width: auto;
		height: calc(30px + 3vw);
		max-width: initial;
		max-height: 90px;
	}
	
	/* ---------- */
	
	.our-division__arrow {
		bottom: 50px;
	}
	
	.our-division__arrow-label {
		display: inline-block;
		margin: 0;
		padding-right: 35px;
		opacity: 0;
		z-index: 1;
		transition: all 0.3s ease;
		font-weight: 600;
		font-size: 1.3rem;
		color: #fff;
		line-height: 28px;
	}
	
	.our-division__arrow-icon {
		transition: transform 0.3s cubic-bezier(.77,0,.18,1);
	}
	
	a:hover .our-division__arrow-label {
		opacity: 1;
		transition-delay: 0.2s;
	}
	
	a:hover .our-division__arrow-icon {
		/* width : 28px */
		transform: translateX(35px);
		border-width: 2px;
		stroke-width: 3.5;
	}
	
}
