@charset "utf-8";
/* CSS Document */

/*---------  ファーストビュー  ---------------*/
#mv {
	width: 100%;
	min-height: 240px;
	position: relative;
	background-image: url("../img/photo-23.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}
#mv::before{
	content: '';
	display: block;
	width: 100%;
	min-height: 240px;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(255,255,255,0.40);
}

main section:not(.path){
	max-width: 960px;
	margin: 0 auto;
}	
main section#mv{
	max-width: 100%;
	margin: 0 auto 100px;
}

#mv h1{
	max-width: 960px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
#mv h1 img{
	position: absolute;
	top: 0;
	left: 0;
	transform: translateY(30%);
}


@media screen and (max-width: 768px) {
	#mv {
		min-height: 150px;
	}
	#mv h1{
		width: 90%;
	}
	#mv h1 img{
		width: 35%;
		transform: translateY(20%);
	}
	main {
		overflow: hidden;
	}
	main img{
		width: inherit;
		max-width: 100%;
		box-sizing: border-box;
	}
	#content {
		width: 95%;
	}
}



#link {
	margin: 100px auto;
	text-align: center;
}
#link ul{
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 5px;
	border: 10px solid #A9D5B3;
}
#link a:not(ul>li>a){
	display: inline-block;
	margin-top: 50px;
}
@media screen and (max-width: 768px) {
	#link{
		width: 95%;
	}
	#link ul{
		border: 5px solid #A9D5B3;
	}
	
	#link a:not(ul>li>a) {
		width: 80%;
	}
}

/*---------  コンテンツ内容  ---------------*/


#nav {
	padding-top: 60px;
	margin-bottom: 100px;
}
#nav ul{
	display: flex;
	justify-content: space-around;
}
#nav ul li{
	padding: 10px 50px;
	align-self: flex-start;
	position: relative;
	border: 3px solid #1D4567;
	border-radius: 20px;
	font-size: clamp(1rem, 1vw + 1rem, 1.6rem);
	font-weight: 600;
}

#nav ul li::after,#nav ul li::before{
	content: '';
	display: block;
	width: 65px;
	height: 65px;
	position: absolute;
	top: -40px;
	left: -20px;
	background-image: url("../img/off.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
#nav ul li::before {
	background-image: url("../img/on.png");
	opacity: 0;
	transition: .5s;
	z-index: 1;
}
#nav ul li:hover::before,#nav ul li.on::before{
	opacity: 1;
}
#nav ul li a::before{
	content: '';
	width: 277px;
	height: 395px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateY(-50%) translateX(-50%);
	background-image:url("../img/bk.png");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	opacity: 0;
	transition: .5s;
}
#nav ul li a:hover::before,#nav ul li.on a::before{
	opacity: 1;
}

@media screen and (max-width: 768px) {
	#nav ul{
		flex-wrap: wrap;
		text-align: center;
	}
	#nav ul li{
		width:80%;
	}
	#nav ul li:not(:last-child){
		margin-bottom: 30px;
	}
}

#content {
	display: flex;
	padding-top: 100px;
    margin-top: -100px;
}
#content ul{
	display: flex;
	flex-direction: column;
	width: 4%;
	text-align: center;
}
#content ul li{
	width: 100%;
	padding: 10px;
	flex: 1 auto;
	border-bottom: solid 5px #A9D5B3;
	border-top: solid 5px #A9D5B3;
	border-left: solid 5px #A9D5B3;
	border-radius: 10px 0 0 10px ;
	writing-mode: vertical-rl;
	font-size: 1.6rem;
}

#content ul li:not(.on){
	background-color: #CBE2D3;
}
#content ul li a:hover {
	opacity: .5;
}
#content div:not(#content div.vertical div){
	margin: 0 auto;	
	height: 100%;
	padding: 10%;
	border: solid 5px #A9D5B3;
	text-align: center;
}
#content div p,#content div h2{
	text-align: start;
}
#content div h2{
	margin: 0 auto 1em;
}
#content div img{
	margin-bottom: 1em;
}
#content .vertical{
	display: flex;
	align-items: flex-end;
}
#content .vertical img{
	margin-bottom: 0;
	margin-right: 1em;
}
#content.tenjo div{
	padding-top: 5%!important;
}
#content.tenjo div dl{
	display: flex;
	justify-content: space-between;
}
#content.tenjo div dl:not(:last-child){
	margin-bottom: 2em;
}
#content.tenjo div dl dt{
	width: 20%;
	text-align: start;
}
#content.tenjo div dl dd{
	width: 75%;
	text-align: start;
}
#content div dl:nth-child(even) dt{
	order: 2;
}

@media screen and (max-width: 768px) {
	#content div{	
		padding: 5%;
		width: 91%;
	}
	#content ul {
		width: 10%;
	}
	#content ul li{
		padding: 0 10px 0 0;
		font-size: 1.1rem;
	}
	#content .vertical{
		flex-wrap: wrap;
		justify-content: center;
	}
	#content div:not(#content div.vertical div){
		min-height: 600px;
		padding: 5%;
	}
	#content .vertical img{
		width: 50%;
		margin-right: 0;
	}
	#content.isho_2 ul li{
		height: calc(76vh / 8);
		font-size: 1.3rem;
	}
	#content.tenjo div dl{
		flex-wrap: wrap;
	}
	#content.tenjo div dl dt,#content.tenjo div dl dd{
		width: 100%;
	}
	#content div dl:nth-child(even) dt{
		order: 0;
	}
}