/*------------------------------------------------------------------------------
  PC or ALL 
------------------------------------------------------------------------------*/
body{
	background: url(/mwp/wp-content/themes/mwp-theme/assets/images/bg.png) repeat center 0;
}
.header{
	.header-inner{
		padding-right: 150px;
		.header-logo{
			width: auto;
		}
		.header-nav{
			transform: translateY(80%);
			ul{
				li{
					margin: 0 1.0em;
					a{
						.en{
							font-family: "Shippori Mincho", serif;
							font-weight: 500;
							font-style: normal;
							letter-spacing: 0.04em;
							font-size: max(calc((17 / 1920) * 100vw),15px);
						}
					}
					&:last-child{
						margin-right: 0;
					}
				}
			}
		}
		.header-translate{
			position: absolute;
			top: 15px;
			right: 150px;
		}
	}
}

.home{
	.header{
		.header-inner{
			.header-logo{
				transform: translateY(30%);
			}
			.header-nav{
				ul{
					li{
						a{
							.en{
								color: #fff;
							}
						}
					}
				}
			}
		}
	}
	.content{
		margin-top: -100px;
	}
}

.mainvisual{
	.mainvisual-catch{
		.copy{
			font-size: max(calc((36 / 1920) * 100vw),33px);
			font-weight: 500;
		}
		.sub-text{
			line-height: 2.5;
			span{
				display: block;
				&.ja{
					font-size: max(calc((18 / 1920) * 100vw),15px);
				}
				&.en{
					font-size: max(calc((11 / 1920) * 100vw),9px);
				}
			}
		}
	}
}

.title-type02{
	h2{
		.ja{
			font-size: 4rem;
		}
		.en{
			color: #553d20;
			font-size: 1.8rem;
			opacity: 1;
		}
	}
	&::before{
		display: none;
	}
}

.box{
	.btn{
		a{
			font-size: 1.6rem;
			-webkit-border-radius: 0;
			-moz-border-radius: 0;
			border-radius: 0;
		}
	}
}

.main-message{
	display: flex;
	justify-content: space-between;
	.title-type02{
		width: 270px;
		text-align: left;
		margin: 0;
		h2{
			span{
				display: block;
				&.ja{
					font-size: 3.2rem;
					line-height: 1.3;
				}
				&.en{
					font-size: 1.6rem;
					line-height: 3;
				}
			}
		}
	}
	.lead-type01{
		margin: 0;
		width: 640px;
		text-align: left;
		h3{
			font-size: 2.4rem;
		}
		p{
			font-size: 1.6rem;
			line-height: 2;
		}
	}
}

.main-history{
	.image-text-type03 {
		.text{
			width: 45.8%;
			padding: calc((5 / 192) * 100vw) calc((9 / 192) * 100vw) calc((2 / 192) * 100vw) calc((77 / 1920) * 100vw);
			h3{
				font-size: calc((3 / 192) * 100vw);
			}
			p{
				font-size: calc((16 / 1920) * 100vw);
			}
			.btn{
				display: flex;
				justify-content: flex-start;
				align-items: center;
				gap: 24px;
				a{
					margin: 0;
				}
			}
			&::before{
				display: none;
			}
		}
		.image{
			width: 54.2%;
		}
	}
}

.main-banner01{
	margin-left: calc(50% - var(--vw) * 50.6) !important;
    margin-right: calc(50% - var(--vw) * 50.6) !important;
	width: calc(var(--vw) * 101.2) !important;
	.banner-type01{
		ul{
			li{
				.text{
					a{
						padding: 122px 50px;
						.ja{
							font-size: 2.6rem;
							font-weight: 500;
						}
						.en{
							font-size: 1.8rem;
							font-weight: 500;
						}
						&::after{
							bottom: 0;
							right: 0;
							margin: 0;
							width: 38px;
							height: 38px;
							line-height: 38px;
							text-align: center;
							background: #4e5f43;
						}
					}
				}
			}
		}
	}
}

.main-deities{
	.copy{
		text-align: center;
		font-size: 1.8rem;
		font-weight: 500;
		margin-bottom: 2em;
	}
	.banner-type02{
		ul{
			li{
				background: #fff;
				-webkit-box-shadow: unset;
				-moz-box-shadow: unset;
				box-shadow: unset;
				.text{
					h3{
						color: #2b2b2b;
						font-size: 2.6rem;
						font-weight: 500;
					}
					.copy{
						color: #2b2b2b;
						font-size: 2rem;
						font-weight: 500;
						margin-bottom: 0;
					}
					.btn{
						a{
							background: #fff;
							color: #5a5552;
							border: #5a5552 1px solid;
						}
					}
				}
			}
		}
	}
	&::before{
		background: url(/mwp/wp-content/themes/mwp-theme/assets/images/main-deities-bg.png) no-repeat center center / cover !important;
		z-index: 0 !important;
	}
}

.main-sanzan{
	.image-bg-type01{
		.image{
			height: 540px;
		}
		.text{
			margin-top: -180px;
			h3{
				font-size: 3.2rem;
				font-weight: 500;
			}
			p{
				font-size: 1.8rem;
				font-weight: 500;
			}
		}
	}
}

.main-insta{
	margin-bottom: 0;
	padding-bottom: 0 !important;
	.title-type02{
		padding-bottom: 0;
	}
	.row{
		margin-bottom: 0;
	}
	&::before{
		z-index: 0 !important;
	}
}

.main-blog{
	margin-bottom: 0;
	.title-type02{
		padding-bottom: 0;
	}
	.blog-type01{
		ul{
			li{
				.text{
					.category{
						font-size: 1.2rem;
						font-weight: 500;
					}
				}
			}
		}
	}
	&::before{
		z-index: 0 !important;
	}
}

.home .page-content{
	margin-bottom: 0;
}

.footer-contact{
	.contact-type01{
		.title{
			.ja{
				font-size: 4rem;
				font-weight: 500;
			}
			.en{
				font-size: 1.8rem;
				font-weight: 500;
			}
		}
		.text{
			.tel{
				margin-top: -.5em;
				font-family: "Shippori Mincho", serif;
				font-weight: 500;
				font-style: normal;
				letter-spacing: 0.04em;
				font-size: 7.1rem;
			}
			.datetime{
				font-size: 1.6rem;
				font-weight: 500;
			}
			.btn{
				a{
					padding: 13px 30px 12px 50px;
					&::after{
						content: "\e158";
						right: auto;
						left: 25px;
					}
				}
			}
		}
	}
}

.footer-access{
	margin-bottom: 90px !important;
	.title-type02{
		margin-bottom: 0;
	}
	iframe{
		height: 450px;
	}
}
.footer{
	.footer-main{
		.nav{
			ul{
				li{
					a{
						font-size: 1.3rem;
						font-weight: 500;
					}
				}
			}
		}
		.logo{
			width: auto;
			margin-bottom: 20px;
		}
		.about{
			font-size: 1.5rem;
		}
		&::after{
			background: #fff;
		}
	}
}

.pagetop{
	z-index: 9999;
}

/* ======================================
2026/4/20 added by tsuji
======================================== */

/* --------------- イカロス見出しテキストのmargin --------------- */

/*見出しテキストのmargin*/
.page-content h2:not([class]),
.page-content h3:not([class]),
.page-content h4:not([class]){
	margin: var(--text-margin) 0 25px 0;
}

/*見出しテキストのmargin*/
.biog-content h2:not([class]),
.biog-content h3:not([class]),
.biog-content h4:not([class]){
	margin: var(--text-margin) 0 25px 0;
}

/* --------------- 縁起 --------------- */

.table-bordered th {
	border: none;
	border-bottom: 2px solid #dcdcdc;
	background-color: none;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-size:20px;
	font-weight:bold;
}
.table-bordered td {
	border: none;
	border-bottom: 2px solid #dcdcdc;
	text-align:left;
	vertical-align:middle;
	padding:15px;

}

/* --------------- 善水寺の歴史 --------------- */

.table-nenpyou {
  border-collapse: separate;
}

.table-nenpyou tr:nth-child(2n-1) th{
	background-color: #dedede;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-weight:bold;
}
.table-nenpyou tr:nth-child(2n-1) td{
	background-color: #dedede;
	text-align:left;
	vertical-align:middle;
	padding:15px;
}
.table-nenpyou th {
	background-color: none;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-weight:bold;
}
.table-nenpyou td {
	background-color: none;
	text-align:left;
	vertical-align:middle;
	padding:15px;
}

@media all and (max-width: 767px) {
.table-nenpyou th, .table-nenpyou td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
.table-nenpyou tr:last-child td:last-child {
    border-bottom: 1px solid #ccc;
  }
}

/* --------------- 拝観 --------------- */

.table-haikan {
	border-collapse: separate;
	width:670px;
}

.table-haikan th {
	background-color: #373331;
	border-bottom: 2px solid #fff;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-weight:bold;
	color:#fff;
}
.table-haikan td {
	background-color: #F5F1EF;
	border-bottom: 2px solid #fff;	
	text-align:left;
	vertical-align:middle;
	padding:15px;
}

@media all and (max-width: 767px) {	
	
.table-haikan, .table-haikan td {
	width: 100%;
    display: block;
    border-bottom: none;
  }
table-haikan tr:last-child td:last-child {
    border-bottom: 1px solid #ccc;
  }
}

.table-haikan02 th {
	background-color: #373331;
	border-bottom: 2px solid #fff;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-weight:bold;
	color:#fff;
}
.table-haikan02 td {
	background-color: #F5F1EF;
	border-bottom: 2px solid #fff;	
	text-align:center;
	vertical-align:middle;
	padding:15px;
}

/* --------------- 善水寺の年間行事 --------------- */


.table-year tr:nth-child(2n-1) th{
	background-color: #dedede;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-weight:bold;
}
.table-year tr:nth-child(2n-1) td{
	background-color: #dedede;
	text-align:left;
	vertical-align:middle;
	padding:15px;
}
.table-year th {
	background-color: none;
	text-align:center;
	vertical-align:middle;
	padding:15px;
	font-weight:bold;
}
.table-year td {
	background-color: none;
	text-align:left;
	vertical-align:middle;
	padding:15px;
}




/*------------------------------------------------------------------------------
  TABLET and SHONE
------------------------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
}

/*------------------------------------------------------------------------------
  TABLET ONLY
------------------------------------------------------------------------------*/
@media screen and (min-width: 600px) and (max-width: 1024px) {
}

/*------------------------------------------------------------------------------
  SPHONE ONLY
------------------------------------------------------------------------------*/
@media screen and (max-width: 599px) {
.header{
	.header-inner{
		padding-right: 3.7vw;
		.header-logo{
			width: 40vw;
			transform: translateY(30%);
		}
		.header-translate{
			position: absolute;
			top: 2vw;
			right: 65px;
		}
	}
}

.mainvisual{
	height: 150vw;
	.mainvisual-catch{
		transform: translateY(70%);
		padding: 0 6vw;
		.copy{
			font-size: 8vw;
		}
		.sub-text{
			span{
				&.ja{
					font-size: 5vw;
				}
				&.en{
					font-size: 3vw;
				}
			}
		}
	}
}

.title-type02{
	padding-bottom: 0;
	margin-bottom: 5vw;
	h2{
		.ja{
			font-size: 7vw;
		}
		.en{
			font-size: 4vw;
		}
	}
}

.box{
	.btn{
		a{
			font-size: 4vw;
			margin-left: auto;
			margin-right: auto;
			width: 60vw;
		}
	}
}

.main-message{
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 2vw;
	.title-type02{
		width: 100%;
		text-align: center;
		h2{
			.ja{
				font-size: 7vw !important;
			}
			.en{
				font-size: 4vw !important;
			}
		}
	}
	.lead-type01{
		width: 100%;
		h3{
			font-size: 5vw;
			text-align: center;
		}
		p{
			font-size: 3.7vw;
			text-align: center;
		}
	}
}

.main-history{
	padding: 0 !important;
	.image-text-type03 {
		.text{
			width: 100%;
			margin: 0;
			padding: 0;
			background: none;
			h3{
				font-size: 5vw;
			}
			p{
				font-size: 3.7vw;
			}
			.btn{
				display: grid;
				grid-template-columns: repeat(1, 1fr);
				gap: 2vw;
				a{
					margin: 0 auto;
				}
			}
			&::before{
				display: none;
			}
		}
		.image{
			width: 100%;
			margin-bottom: 2vw;
		}
	}
}

.main-banner01{
	.banner-type01{
		ul{
			li{
				.text{
					a{
						padding: 15vw 5vw;
						.ja{
							font-size: 6vw;
						}
						.en{
							font-size: 4vw;
						}
					}
				}
			}
		}
	}
}

.main-deities{
	.copy{
		font-size: 4vw;
	}
	.banner-type02{
		ul{
			li{
				.text{
					h3{
						font-size: 6vw;
					}
					.copy{
						font-size: 4vw;
					}
				}
			}
		}
	}
}

.main-sanzan{
	.image-bg-type01{
		.image{
			height: 30vw;
		}
		.text{
			padding: 4vw;
			margin-top: -5vw;
			h3{
				font-size: 6vw;
			}
			p{
				font-size: 3.7vw;
			}
		}
	}
}

.footer-contact{
	.contact-type01{
		.title{
			.ja{
				font-size: 7vw;
			}
			.en{
				font-size: 4vw;
			}
		}
		.text{
			.tel{
				font-size: 9vw;
			}
			.datetime{
				font-size: 3.7vw;
			}
			.btn{
				a{
					padding: 13px 0 12px 0;
					&::after{
						display: none;
					}
				}
			}
		}
	}
}

.footer-access{
	margin-bottom: 90px !important;
	.title-type02{
		margin-bottom: 30px;
	}
	iframe{
		height: 80vw;
	}
}
.footer{
	.footer-main{
		.nav{
			ul{
				li{
					a{
						font-size: 3.7vw;
					}
				}
			}
		}
		.logo{
			width: auto;
			margin-bottom: 5vw;
		}
		.about{
			font-size: 3.7vw;
		}
	}
}
}
