*{
  box-sizing: border-box;
}
.sp{
	display: none;
}
a{
  text-decoration: none;
}
body{
  margin: 0;
}
img{
	width: 100%;
}
section,main{
	display: block;
	margin: 0 auto;
	max-width: 1000px;
	width: 100%;
	position: relative;
	padding: 50px 0 0 0;
	line-height: 1.5;
}
main{
	height: 96vh;
	width: 100%;
}
h1{
	position: absolute;
	font-size: 2.8rem;
	right: 0;
}
h2{
	font-size: 1.8rem;
	margin-top: -9vh;
}
.top{
    position: absolute;
    right: 50px;
    top: 25vh;
}
.jojo {
	white-space:nowrap;
	overflow:hidden;
	animation:jojo 1s linear infinite;
	animation-iteration-count: 1; 
}
@keyframes jojo {

from {

width:0%;
}

to {

width:100%;
}
}
h3,.h3{
	color: rgba(0, 0, 0, 0.1); 
    font-size: 5.8rem;
    display: block;
    margin: 0;
    padding: 0;
	position: relative;
	font-weight: bold;
}
h3 span{
	font-size: 2rem;
	color: rgba(0, 0, 0, 1.0); 
	display: block;
	position: absolute;
	bottom: 0;
}
.flex{
	display: flex;
}

.top_back{
	background-image: url('../img/back.jpg'); 
	background-size: cover;
	background-attachment: fixed;
	width: 100%;
	background-position: center;
}
.top_img{
	width: 40%;
	height: 65vh;
	object-fit: cover;
	object-position: top;
	display: block;
	position: absolute;
	left: 0;
	bottom: 14vh;
}

.about {
	line-height: 2.5;
}
.news-list{
  list-style: none outside;
  margin: 0;
  padding: 0;
}
.news-list .item a{
  display: flex;
  flex-wrap: wrap;
  flex-wrap: nowrap;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #CCC;
  padding: 20px 20px;
}
.news-list .item:first-child a{
  border-top: 1px solid #CCC;
}
.news-list .item .date{
  margin: 0;
  min-width: 140px;
  font-size: 16px;
  color: #999;
  padding: 0 20px 0 0;
}
.news-list .item .category{
  margin: 0;
  min-width: 140px;
  padding: 0 20px 0 0;
}
.news-list .item .category span{
  background: #999;
  color: #FFF;
  text-align: center;
  display: inline-block;
  padding: 5px 20px;
  font-size: 12px;
  line-height: 1;
}
.news-list .item .title{
  margin: 0;
  width: 100%;
}
.news-list .item a:hover .title{
  color: #00F;
}
.messege{
	width: 50%;
	display: block;
	margin: 0 50px;
}
.takahama{
	width: 30%;
	display: block;
	padding-top: 10%;
}
.p_t_50{
	padding-top: 50px;
}
.pro_box{
	display: block;
	border: 1px #7E7E7E solid;
    width: 21%;
    margin: 1% 2%;
	color: #000;
}
.pro_box:hover{
	opacity: 0.6;
}
.pro_box p{
	height: 5em;
    font-size: 13px;
    padding: 0 10px;
    margin: 0;
}
.pro_box span{
	font-size: 10px;
	display: block;
}
footer{
	background-color: #A5A5A5;
	width: 100%;
	padding: 20px;
	text-align: center;
	margin-top: 100px;
}
.sp_top_back{
	background-image: none;
}
.sp_top_img{
	display: none;
}
/* ===========================
   スマホ最適化（767px以下）
   =========================== */
@media screen and (max-width: 767px){
  section{
    width: 90%;
    padding-top: 150x;
	  line-height: 2;
  }

  .sp{ display: block; }
  .pc{ display: none; }

  main{
      margin: 0;
	  width: 100%;
	  padding: 0;
	  height: auto;
	  
  }
	.about {
		line-height: 2;
	}
	.top_back {
		background-image: none;
  }
	.sp_top_back{
		background-image: url('../img/back.jpg'); 
		background-size: cover;
		height: 30vh;
	}
	.sp_top_img{
        height: 25vh;
        width: auto;
	  margin: 0;
	  position: absolute;
        left: 13px;
        top: 4vh;
		display: block;
	}
  h1{
	  width: 45%;
	  font-size: 2rem;
	  margin: 0;
	  position: absolute;
	  right: 10px;
	  top: 11vh;
	  line-height: 1.5;
	}

  /* h2 */
  h2{
    font-size: 1.5rem;
    margin: 0;
  }
  h3{
    font-size: 3rem;
  }
  .h3{
	  font-size: 3rem;
	  padding-top: 30px;
	}
  h3 span{
    font-size: 1.5rem;
  }

  /* top（テキストブロック） */
  .top{
		width: 90%;
        margin: 0 auto;
        transform: none;
        display: block;
        position: static;
  }

  .top_img {
	  display: none;
  }

  /* ニュースリスト */
  .news-list .item a{
    flex-wrap: wrap;
	  padding: 20px 0;
  }
  .news-list .item .date{
    min-width: 100px;
  }
  .news-list .item .title{
    margin-top: 10px;
  }

  /* フレックス解除 */
  .flex{
    display: block;
  }

  /* メッセージ */
  .messege {
    width: auto;
    display: block;
	  margin: 0 auto;
  }
	.p_t_50{
		padding-top: 0;
	}
  .takahama{
    width: 60%;
    height: 260px;
    object-fit: cover;
    object-position: top;
    display: block;
    margin: 20px auto;
  }

  /* プロボックス */
  .pro_box {
    display: inline-block;
    width: 47%; 
    margin: 1%;
    vertical-align: top;
  }
  .pro_box img{
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .pro_box p {
	line-height: 1.5;
	padding: 0 5px;
	  height: 5.5em;
  }
}
 
