@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 共通 */
body {
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

.main-content {
	margin: 2rem 5rem;
}
.sub-content {
	margin: 3rem;
}
.content-title {
	text-align: center;
	font-size: 2.0rem;
}
.content {
	text-align: left;
	width: 80%;
	margin: auto;
	padding: 3rem;
	line-height: 25px;
}

.table {
	display: table;
	border-collapse: collapse;
}

.tr {
	display: table-row;
}
.th {
	display: table-cell;
	padding: 10px;
	border: 1px solid #000;
	vertical-align: middle;
}
.td {
	display: table-cell;
	padding: 10px;
	border: 1px solid #000;
	vertical-align: middle;
}

/* メニュー */
#nav-menu {
	width: 100%;
	margin: auto;
}

#menu {
	width: 100%;
	margin: auto;
	display: flex;

}
#menu a{
	color: #205c78;
	font-weight: bold;
}

nav {
	width: auto;
	margin: 0 auto;
/*
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background-color: #fff;
	display: flex;
*/
}

#menu ul {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}

#menu ul li {
	display: block;
	width: 176px;
	height: 40px;
	line-height: 40px;
	position: relative;
}

.link-tag {
	display: block;
	padding-top: 110px;
	margin-top: -110px;
}

/* 見出し */
h2 {
	font-size: 3.0rem;
	font-weight: bold;
	position: relative;
	padding: 4px 20px 4px 40px;
	background: #205c78;
	color: white;
	line-height: 1.3;
	width: 500px;
	margin: 3rem auto;
	z-index: 1;
}

h2:before {
	position: absolute;
	content: '';
	left: -1px;
	top: -3px;
	width: 0;
	height: 0;
	border: none;
	border-left: solid 40px white;
	border-bottom: solid 79px transparent;
	z-index: 2;
}

h2:after {
	position: absolute;
	content: '';
	right: -1px;
	top: -3px;
	width: 0;
	height: 0;
	border: none;
	border-left: solid 40px transparent;
	border-bottom: solid 79px white;
	z-index: 2;
}

.slideinRight {
	animation: slideinRight 0.5s 1;
}

/* TOP */
.topimage {
	position: relative;
	padding-bottom: 3rem;
}
.topimage-title {
	position: absolute;
	top: 300px;
	right: 180px;
	font-size: 30px;
	color: #fff;
	text-shadow: 0px 1px 4px #000;
}

/* SERVICE */
.service-content {
	margin: 0 3rem 3rem 3rem;
	padding: 2rem 0;
}
.service-content-1 {
	border: 1px solid #000;
	padding: 1rem;
	background: linear-gradient(-20deg, #205c78 0%, #23698b 30%, #7ab3cd 50%, #23698b 70%, #243e7c 100%);
	color: white;
}
.service-content-1 .service-content-title {
	text-align: center;
	font-size: 1.5rem;
	font-weight: bold;
	padding-bottom: 5px;
}
.service-content-2 {
	border: 1px solid #000;
	border-top: none;
	padding: 1rem;
	background-color: #e0f1f5;
}
.service-content-2 .service-content-title {
	font-weight: bold;
}
.service-content-2 ul {
	margin: 0.5rem;
	list-style: none;
	padding: 0;
}
.service-content-2 ul li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 10px;
}
.service-content-2 ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1.0em;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid #243e7c;
}


/* COMPANY */
.company-table {
	width: 80%;
	margin: auto;
}

/* NEWS */
.news-content {
	border: 1px solid #000;
	height: 150px;
	width: 80%;
	margin: auto;
	padding: 1rem;
}
.td-column {
	background-color: #c0e4e8;
}

/* アニメーション */
/*
@keyframes slideinRight {
  0% {
    transform: translateX(200px);
  }
  100% {
    transform: translateX(0);
  }
}

.fadeUp{
	animation-name: fadeUpAnime;
	animation-duration: 1.0s;
	animation-fill-mode: forwards;
	opacity:0;
}

@keyframes fadeUpAnime{
	from {
		opacity: 0;
		transform: translateY(100px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
*/

/* アニメーション */
@keyframes slideinRight {
  0% {
    transform: translateX(200px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 初期状態で非表示にする */
.h2-slideinRight,
.service-content {
  opacity: 0;
  visibility: hidden;
}

.h2-slideinRight.active {
  animation-name: slideinRight;
  animation-duration: 1.0s;
  animation-fill-mode: forwards;
  visibility: visible;
}

.service-content.active {
  animation-name: fadeUpAnime;
  animation-duration: 1.0s;
  animation-fill-mode: forwards;
  visibility: visible;
}

/* 画像 */

#middle-area img {
	max-width: 80%;
}

#bottom-area img {
	max-width: 80%;
}


@media (max-width: 768px) {

	body {
		font-size: 0.9rem;
	}

	h2 {
		font-size: 2.0rem;
		position: relative;
		padding: 4px 20px 4px 40px;
		background: #205c78;
		color: white;
		line-height: 1.5;
		width: 100%;
		margin: 5rem auto 2rem;
		z-index: 1;
		opacity: 0;
		visibility: hidden;
	}
	
	nav {
		display: block;
	}
	
	#menu {
		display: block;
	}

	.main-content{
		margin: 0;
		width: 100%;
	}
	
	.topimage img {
		width: 100%;
	}

	.topimage-title {
		top: 230px;
		right: 10px;
	}
	
	.sub-content {
		margin: 1.5rem;
	}
	
	.content {
		text-align: left;
		width: 100%;
		margin: 10px 0;
		padding: 0 0 2rem
	}
	
	.service-content {
		margin: 0;
		padding: 0 0 2rem
	}

	.service-content-2 {
		padding: 1rem 0.8rem;
	}

	.service-content-2 ul {
		margin: 0.5rem 0;
	}

	.service-content-2 ul li {
		padding-left: 15px;
	}

	.company-table {
		width: 100%;
	}
	
	.news-content {
		width: 100%;
	}
	
	.link-tag {
		padding-top: 10px;
		margin-top: -10px;
	}
}