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

/*全体*/

html{
	scroll-behavior: smooth;
}

main{
	max-width: 1000px;
	padding-top: 0;
	line-height: 1.7;
}

section{
	margin-bottom: 4rem;
}

p{
	line-height: 1.7;
}

/*ヘッダー=============================================*/
header{
	max-width: 1000px;
	margin: 0 auto;
}

nav ul{
	display: flex;
	flex-grow: 1;
	color: #fff;
	background: #C43F65;
	justify-content: space-between;
	width: 100%;
}

nav li{
	display: flex;
	text-align: center;
	width: calc((100% - 5px)/6);
	justify-content: center;
	font-family: "Zen Antique", serif;
	font-weight: 600;
}

nav li + li{
	border-left : 1px solid #fff;
}

nav a{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 12px 3px;
}

nav a:hover{
	background: #C42754;
	opacity: 1;
}


/*================================================
main
=================================================*/

/* メイン画像 */
.jinja-main-img{
	margin-bottom: 1rem;
}

h2{
	color: #fff;
	background: #5f0b75;
	font-size: 1.7rem;
	text-align: center;
	padding: 0px 10px;
	margin-bottom: 2rem;
	font-family: "Zen Antique", serif;
	font-weight: 600;
	display: flex;
    align-items: center;
	position: relative;
	border: 1px solid #5f0b75;
	margin-top: 20px;
}

h2 span{
	border-right:10px solid #fff;
	border-left:10px solid #fff;
	width: 100%;
	padding: 10px 0;
}

h2:before{
	content: "";
	position: absolute;
	height: 100%;
	width: 8px;
	background: #fff;
	left: 11px;
	margin: 0 14px;
}

h2:after{
	content: "";
	position: absolute;
	right: 11px;
	height: 100%;
	width: 8px;
	background: #fff;
	margin: 0 14px;
}


/* 家紋部分 */
.flex-between{
	flex-wrap: wrap;
	gap:20px 8px;
	margin:20px 0;
	margin-bottom: 5rem;
}

dl{
	width: 23%;
	text-align: center;
}

dt{
	margin-bottom: 8px;
}

dd{
	font-size: 14px;
}

/* 戻るボタン */
.modoru a{
	padding: 1rem 3rem;
}

@media screen and (max-width: 814px){
	nav ul{
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
}
	
	nav li{
	width: calc(100%/3);
	align-items: center;
}
	nav li:nth-child(1), nav li:nth-child(2),nav li:nth-child(3){
		border-bottom: 1px solid #fff;
	}
	
	nav li:nth-child(4){
		border-left: 0;
	}
	
	nav a{
	height: 3.5rem;
}
	

}

@media screen and (max-width: 768px){
	dl{
	width: 32%;
	text-align: center;
}

}




@media screen and (max-width: 525px){
	h2{
		font-size: 1.1rem;
	}
	
	dl{
	width: 48%;
	text-align: center;
}
}

@media screen and (max-width: 440px){
	h2{
		font-size: 16px;
		line-height: 1.7;
	}
	
}