.index{
	background-image: url(../img/komahei.webp?25b);
	background-size:  cover;
	background-attachment: fixed;
	background-position: 12% 0%;
}

@media only screen and (max-width: 520px) {
	.index{
		background-image: none;
		background-position: 50% 50%;
		min-height: 100vh;
	}
	.index:before{
		content:"";
		display:block;
		position:fixed;
		top:0;
		left:0;
		z-index:-1;
		width:100%;
		height:100vh;
		background-repeat:no-repeat;
		background-position:66% 0%;
		background-image:url(../img/komahei_sp.webp?25);
		background-size:cover;
	}
}

.index .box{
	width:40vw;
	margin:60vh 0 0 auto;
}

.index h1{
	position: absolute;
	top:0;
	left:0;
	padding: 20px 0 0 5px;
}

.index h1 img{
	height:90vh;
	margin: auto;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}


.index .box ul li{
    list-style: none;
    display: block;
	font-size:36px;
	color:#eee;
	text-align: left;
	margin-bottom: 10px;
	background-color: rgba(255,255,255,.15);
	letter-spacing: 0.1em;
	font-family: 'Shadows Into Light', cursive;
}

.index .box ul li a{
	position: relative;
	display:block;
	color:#111;
	height:100%;
	width: calc(100% - 25px);
	padding-left: 30px;
	transition: .2s;
}
.index .box ul li a::before{
	position: absolute;
	content: '';
	width: 10px;
    height: 10px;
    border-bottom: #111 2px solid;
    border-right: #111 2px solid;
    bottom: 18px;
    left: 180px;
    transform: rotate(-45deg);
	transition: .2s;
}
.index .box ul li a::after {
	position: absolute;
	left: 0;
	content: '';
	width: 100%;
	height: 4px;
	background: #111;
	bottom: -1px;
	transform: scale(0, 1);
	transform-origin: left top;
	transition: transform 0.3s;
}
@media only screen and (min-width: 768px){
	.index .box ul li a:hover{
		width: 100%;
		padding-left: 40px;
	}
	.index .box ul li a:hover::before{
		border-color:rgba(255,255,255,0);
	}
	.index .box ul li a:hover::after {
		transform: scale(1, 1);
	}
}

@media only screen and (max-width: 767px) {
	.index .box ul li{
		background-color: rgba(255,255,255,.75);
	}
}
@media only screen and (max-width: 520px) {
	.index .box ul li{
		background-color: rgba(255,255,255,.9);
	}
	.index .box ul li a::before{
		border-color:rgba(255,255,255,0);
	}
}

/*=====================*/

.index .prof{
	width:40vw;
	margin:30px 0 auto auto;
	background:linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,.7));
}
.index .prof .prof_box{
	text-align: right;
	padding-top: 15px;
}
.index .prof .prof_box h2{
	text-align: left;
	margin: 0 25px;
	color:#111;
	font-family: 'Zen Antique', serif;
	letter-spacing: 0.05em;
	font-size:46px;
	font-weight:400;
}

.index .prof .prof_box h3{
	text-align: center;
	color:#111;
	background-color: rgba(255,255,255,.2);
	font-family: 'Zen Antique', serif;
	letter-spacing: 0.2em;
	font-size:24px;
	font-weight:400;
	padding:3px 0;
}

.prof_box img{
	width:100%;
}
.prof_box p{
	text-align: left;
	color:#111;
	font-family:serif;
	letter-spacing: 0.05em;
	font-weight:400;
	margin: 10px 25px;
}

.prof_box p.h2_sub{
	margin-top: -3px;
}

.prof_link{
	position: relative;
	display: inline-block;
	color:#111;
	font-family: serif;
	background-color: rgba(255,255,255,.1);
	margin: 10px 25px 25px;
	padding:2px 15px;
	transition: .3s;
}

.prof_link::after {
	position: absolute;
	right: 0;
	content: '';
	width: 100%;
	height: 1px;
	background: #111;
	bottom: -1px;
	transform: scale(0, 1);
	transform-origin: right top;
	transition: transform 0.3s;
}
@media only screen and (min-width: 519px){
	.prof_link:hover{
		background-color: rgba(255,255,255,0);
	}
	.prof_link:hover::after {
		transform: scale(1, 1);
	}
}

@media only screen and (max-width: 1100px) {
	.index .prof{
		background: none;
		background-color: rgba(255,255,255,.15);
	}
}

@media only screen and (max-width: 767px) {
	.index .prof .prof_box h3{
		margin-top: 30px;
	}
	.index .prof .prof_box {
		padding-bottom: 25px;
	}
	.prof_link {
		text-decoration:underline;
	}
}

@media only screen and (max-width: 520px) {
	.prof_link {
		padding:2px 0;
	}
}

/*=====================*/

.news{
	width:40vw;
	margin:30px 0 auto auto;
}

.news_img img{
	width:100%;
}

.news.twt{

}

.news.twt .twt_box{
	margin: 10px auto 30px;
	width:80%;
}

.news iframe{

	
}


/*スライダー*/
#slider_top{
	max-width: 1100px;
    margin:0 auto;
	line-height: 0;
    overflow: hidden;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: center;
}

#slider_top a{
	display: block;
    min-width: 100%;
    animation: sliderAnime 18s ease-in-out infinite;
}
  
@keyframes sliderAnime{
    0%,22%{transform: translateX(0%);
    }
    33%,55%{transform: translateX(-100%);
    }
    66%,88%{transform: translateX(-200%);
    }
    100%{transform: translateX(0);
    }
} 

#slider_top:hover a{
	animation-play-state: paused;
}





@media only screen and (max-width: 1300px) {
	.index .box ul li{
		margin-bottom: 10px;
	}
	.index .prof{
		padding-top:15px;
	}
	.news{
		margin:15px 0 auto auto;
		background-color:rgba(255,255,255,.95);
	}
	.news.twt{
		background:none;
	}
	
	#page_top {
		left: 40px;
		transform: none;
	}
	#page_top a{
		width:60px;
		height:auto;
		aspect-ratio:1 / 1;
		display: flex;
		padding: 0;
	}
	#page_top a span{
		margin: auto;
	}
	
}

@media only screen and (max-width: 1300px) {
	.index .box,
	.index .prof,
	.index .news{
		width:50vw;
	}
}


@media only screen and (max-width: 767px) {
	.index .box{
		width:60vw;
		margin:56vh 0 0 auto;
	}
	.index h1{
		position: absolute;
		top:0;
		right:0;
		left:auto;
		padding: 20px 5px 0 0;
	}
	.index h1 img{
		height:45vh;
		width:auto;
	}
	.index .prof{
		width:100%;
		margin:30px auto 0;
		background-color: rgba(255,255,255,.95);
	}
	.index .news{
		width:100%;
		margin:0 auto;
	}
	.news.twt{
		margin-top: -1px;
		background-color:rgba(255,255,255,.95);
	}
	
}

@media only screen and (max-width: 520px){
	.prof_box p{
		font-size:14px;	
	}
	.news.twt .twt_box {
		width: 94%;
	}
	#page_top {
		left: auto;
		right: 20px;
		bottom:45px;
	}
	#page_top a{
		width:30px;
	}
}
@media only screen and (max-width: 374px){
	.news.twt .twt_box {
		width: 100%;
	}
}
