/*
 * 共通
 */
.large {
	font-size: 100px;
}

.small {
	letter-spacing: -6px;
}

section {
	padding: 3rem 0;
}

section h1 {
	font-size: 48px;
}

section h1 span {
	font-size: 24px;
	margin-left: 10px;
}

/*
 * TOP画像
 */

/* アニメーション */
.animation-img-area {
	animation-duration: 1s;
	animation-fill-mode: forwards;
	animation-name: animeBase;
	opacity: 0;
	overflow: hidden;
	position: relative;
}

@keyframes animeBase {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* 中の要素 */
.bgappear {
	animation-delay: .6s;
	animation-duration: 1s;
	animation-fill-mode: forwards;
	animation-name: animeSecond;
	opacity: 0;
}

@keyframes animeSecond {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

/*左から右*/
.bgLRextend::before {
	animation-duration: 1s;
	animation-fill-mode: forwards;
	animation-name: bgLRextendAnime;
	content: "";
	height: 100%;
	opacity: .7;
	padding: 2.5rem;
	position: absolute;
	width: 100%;
}

@keyframes bgLRextendAnime {
	0% {
		transform: scaleX(0);
		transform-origin: left;
	}

	50% {
		transform: scaleX(1);
		transform-origin: left;
	}

	50.001% {
		transform-origin: right;
	}

	100% {
		transform: scaleX(0);
		transform-origin: right;
	}
}

/* スクロールをしたら出現する要素にはじめに透過0を指定*/
.animation-appear-trigger,
.animation-img-trigger,
.animation-it-img-trigger,
.animation-it-appear-trigger {
	opacity: 0;
}

span.animation-it-appear-trigger.bgappear {
	margin-left: 30%;
}

.top-img {
    margin: 5rem 0 0 0;
    padding: 0 1.5rem;
    background-image: url(/public/images/1_top/topimage_b.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 600px;
    width: 100%;
    position: relative;
    font-family: YuMincho, /* MacÃ§â€Â¨ / 'Yu Mincho', / WindowsÃ§â€Â¨ */ serif;
}


.text-over-image {
    position: absolute;
    top: 58%;
    left: 30%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    text-align: center;
}


.text-over-image img {
	width: auto;
}

.text-over-image .animation-it-appear-trigger img {
	margin-top: 20px;
}

/*
 * ニューストップ
 */
section#top_news {
	text-align: center;
	padding: 20px;
}

section#top_news .circle-button {
	background-color: #fff;
	border: 1px solid #9e9e9e;
	border-radius: 1.5rem;
	cursor: pointer;
	display: block;
	font-weight: bold;
	margin: 4px 2px;
	padding: 1rem 1.8rem;
	text-align: left;
}

section#top_news .circle-button i {
	display: none;
}

/*
 * 私たちについて
 */
section#about {
	display: flex;
	padding: 20px;
	margin-top: 50px;
}

section#about .text-area {
	padding: 0 2.5rem 0 5px;
	width: 60%;
}

section#about .img-area {
	width: 40%;
}

section#about .img-area .btn-area {
	display: none;
}

/*
 * 事業内容
 */
section#service {
	padding: 20px;
}

section#service .container {
	display: flex;
	margin-bottom: 20px;
}

section#service .container .item {
	align-items: center;
	display: flex;
	flex-direction: column;
	width: 25%;
}

section#service .container .item p {
	font-size: 16px;
	font-weight: bold;
}

.integration-img {
	background-image: url("/public/images/1_top/top-service1.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 400px;
	width: 225px;
}
.operation-img {
	background-image: url("/public/images/1_top/top-service2.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 400px;
	width: 225px;
}
.web-img {
	background-image: url("/public/images/1_top/top-service3.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 400px;
	width: 225px;
}
.iot-img {
	background-image: url("/public/images/1_top/top-service4.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 400px;
	width: 225px;
}

/* 背景が左から出現＋テキスト */
.bgLR {
	position: relative;
}

.bgLR span.mask {
	display: block;
	line-height: 0;
	overflow: hidden;
	position: relative;
}

.bgLR span.mask::before {
	background:#003399cc;
	content: "";
	height: 100%;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	transform: translateX(-100%);
	transition: .3s ease-in-out;
	width: 100%;
	z-index: 2;
}

.bgLR:hover span.mask::before {
	opacity: 1;
	transform: translateX(0);
}

.bgLR span.cap {
	color: #fff;
	left: 50%;
	line-height: 1.5;
	opacity: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: .5s ease-in-out;
	z-index: 3;
}

.bgLR:hover span.cap {
	opacity: 1;
}

/*
 * 採用情報
 */
section#recruit {
	display: flex;
	padding: 100px 20px 20px 20px;
}

section#recruit .text-area {
	padding: 0 5px 0 2.5rem;
	width: 60%;
}

section#recruit .img-area {
	width: 40%;
}

section#recruit .btn-area {
	margin-top: 3rem;
	text-align: end;
}

section#recruit .img-area .btn-area {
	display: none;
}

/* タブレットサイズに適用 */
@media screen and (max-width:913px) {
	/*
     * TOP画像
     */
	.text-over-image {
		left: 40%;
	}

	.text-over-image img {
		width: 100%;
	}

	.top-img {
		margin: 0;
	}

	/*
     * ニューストップ
     */
	section#top_news .circle-button {
		border: none;
		border-bottom: 1px solid #9e9e9e;
		border-radius: 0;
		border-top: 1px solid #9e9e9e;
		display: block;
		text-align: center;
	}

	/*
     * 私たちについて
     */
	section#about {
		align-items: center;
		display: flex;
		flex-direction: column;
	}

	section#about .img-area {
		width: auto;
	}

	section#about .text-area {
		width: auto;
	}

	section#about .text-area .arrow-btn {
		display: none;
	}

	section#about .img-area .btn-area {
		display: block;
	}

	/*
     * 事業内容
     */
	section#service .container {
		display: flex;
		flex-direction: column;
	}

	section#service .container .item {
		align-items: center;
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	section#service .container .item p {
		font-weight: bold;
	}

	.integration-img {
		background-image: url("/public/images/4_service/systemintegration.jpg");
		height: 200px;
		width: 100%;
	}

	.operation-img {
		background-image: url("/public/images/4_service/operationmanagement.jpg");
		height: 200px;
		width: 100%;
	}

	.web-img {
		background-image: url("/public/images/4_service/webservice.jpg");
		height: 200px;
		width: 100%;
	}

	.iot-img {
		background-image: url("/public/images/4_service/Internetofthings.jpg");
		height: 200px;
		width: 100%;
	}

	.bgLR {
		height: 100%;
		width: 100%;
	}

	/*
     * 採用情報
     */
	section#recruit {
		align-items: center;
		display: flex;
		flex-direction: column-reverse;
	}

	section#recruit .text-area .arrow-btn {
		display: none;
	}

	section#recruit .img-area .btn-area {
		display: block;
	}

	section#recruit .img-area {
		width: 80%;
	}

	section#recruit .text-area {
		padding: 0;
		width: 100%;
	}
}

/*スマホサイズに適用*/
@media screen and (max-width:599px) {
	/*
     * 共通
     */
	section h1 {
		display: flex;
		flex-direction: column;
		line-height: 50px;
	}

	section h1 span {
		margin-left: 2px;
	}

	.text-over-image img {
		width: 120%;
	}

	/*
     * トップ画像
     */
	.top-img {
        margin: 5rem 0 0 0;
        padding: 0 1.5rem;
        background-image: url(/public/images/1_top/topimage_sp_b.jpg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        height: 600px;
        width: 100%;
        position: relative;
        font-family: YuMincho, /* MacÃ§â€Â¨ / 'Yu Mincho', / WindowsÃ§â€Â¨ */ serif;
    }

    .text-over-image {
        position: absolute;
        top: 68%;
        left: 37%;
        transform: translate(-50%, -50%);
        font-weight: bold;
        text-align: center;
    }

    span.animation-it-appear-trigger.bgappear {
        margin-left: 28%;
    }

	/*
     * ニューストップ
     */
	section#top_news .circle-button {
		align-items: center;
		display: flex;
		justify-content: space-between;
	}

	section#top_news .circle-button i {
		display: block;
		font-weight: bold;
	}

	/*
     * 事業内容
     */
	.integration-img {
		height: 100px;
	}

	.operation-img {
		height: 100px;
	}

	.web-img {
		height: 100px;
	}

	.iot-img {
		height: 100px;
	}

	/*
     * 採用情報
     */
	section#recruit {
		display: flex;
		padding: 60px 20px 20px 20px;
	}
}
