body{
    color: #121212;
    font-size: 10px;
    line-height: 10px;
}
p{
    font-size: clamp(1.5rem, 2.5vw, 1.6rem);
    margin: 20px;
    line-height: 1.8;
    text-align: justify;
}
p span{
    display: inline-block;
}

.clear{clear: both;}

hr{
    margin:40px 0;
}

a {
    text-decoration: none;
    font-size:1.5rem;
}

.second{
    width:100%;
    padding:clamp(0.5rem, 2.5vw, 1rem);
    background: url(../common2024/img/bg_secong_contents.png) center top repeat-y;
    background-size: 200%;
    font-family: sans-serif;
    padding-bottom: 25px;
    line-height: 180%;
    box-sizing: border-box;
}
.second header{
    margin-bottom:20px;
}
.second header h1{
    display: flex;
    justify-content: center;
    height:45px;
    padding:0.2rem;
    margin-top:1rem;
}
.second header h1 > img, .second header h1 > a img{
    margin:0 0.2rem;
    height:100%;
}
.second header h1 img[*.svg]{
    
}

.second-header-img{
    width:80%;
    margin:0 auto;
}
.g_navi{
    display: none;
}
.second-header-img img{
    width:100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.second section{
    width:100%;
}
.second .section-inner{
    width:98%;
    max-width:1000px;
    margin:0 auto;
}
.second .section-inner h2{
    font-size: clamp(2rem, 2.5vw, 2.4rem);
    font-family: serif;
    border-bottom:1px solid #513688;
    padding:0.5rem 0;
    margin:1rem;
    color:#513688;
    text-align: center;
}
.second .section-inner h3{
    font-size: clamp(1.6rem, 2.5vw, 1.8rem);
    font-family: serif;
    padding:0.5rem 0 0.5rem 1rem;
    margin:2rem 0 1rem;
    color:#513688;
    text-align: left;
    border-left:10px double #513688;
    background-color:#f1edf5;
}
.second .section-inner h4{
    font-size: clamp(1.6rem, 2.5vw, 1.8rem);
    font-family: sans-serif;
    font-weight: bold;
    padding:0.5rem 0 0 1rem;
    margin:2rem 0 0 0;
    color:#513688;
    text-align: left;
}

.second footer{
    border-top:2px solid #513688;
    border-bottom:2px solid #513688;
    position: relative;
    margin-top:100px;
    margin-bottom:30px;
    min-height: inherit;
}
.second .footer-inner{
    width:100%;
    max-width:1000px;
    position: relative;
    margin:0 auto;
    padding:1.5rem 0;
}

.second footer .footer_shamon01{
    position:absolute;
    width:80px;
    height: 80px;
    top:-45px;
    left:1rem;
}
.second footer .footer_shamon02{
    position:absolute;
    width:60px;
    height: 60px;
    bottom: -40px;
    right:1rem;
}
.second footer .footer_shamon01 img, .second footer .footer_shamon02  img{
    width:100%;
}
.second footer h1{
    text-align: center;
}
.second footer h1 img{
    width:65%;
    max-width:200px;
}
.second footer .add{
    font-size:clamp(1.4rem, 2.5vw, 1.6rem);
    text-align: center;
}
.sub-link{
    display: flex;
    justify-content: center;
}
.sub-link li{
    width:48%;
    margin:0.2rem;
}
.sub-link li a{
    border:thin solid #513688;
    color: #513688;
    padding:0.7rem 0;
    display: block;
    text-align: center;
}
.sub-link li a:hover, .sub-link li a.active{
    border:thin solid #513688;
    background:#513688;
    color: #fff;
}
.txt-b{
    font-size:clamp(1.8rem, 2.5vw, 2rem);
    font-weight: bold;
}

table td{
    padding:0.5rem;
}

.second img.right{
    width:100%;
    margin-bottom: 1rem
}
.second img.left{
    width:100%;
    margin-bottom: 1rem
}

.second img.gyouji-left{
    float:left;
    margin-right:1rem;
    margin-bottom:0.5rem;
    max-width:140px;
}
.botan a{
    display: block;
    padding:1rem 3rem;
    width:80%;
    max-width:500px;
    border:thin solid navy;
    border-radius: 25px;
    text-align: center;
    margin:0 auto;
    color:navy;
}
.botan a:hover{
    display: block;
    padding:1rem 3rem;
    width:80%;
    max-width:500px;
    border:thin solid navy;
    background-color:navy;
    color:#fff;
    border-radius: 25px;
    text-align: center;
    margin:0 auto
}

/*結婚式*/
.wedding-nagare-cover{
    display:inherit;
    position: relative;
}
.wedding-nagare-content{
        background-image: url(../img/category/wedding-bg.jpg);
        background-size: cover;
        padding:1.5rem;
        margin:0.5rem;
    }
.wedding-nagare-content h5{
    display: block;
    font-size: clamp(1.8rem, 2.5vw, 2rem);
    color: #cd5e3c;
    font-family: serif;
    margin-bottom:1rem;
    margin-top:1rem;
    margin-left:1rem;
}
.arrow{
    display: none;
}

.wedding-nagare-content p{
    margin:0 2rem;
}

.wedding-nagare-img{
    width:100%;
    margin:10px 0.5rem;
    padding:0; 
}
.wedding-nagare-img img{
    width:100%;
    height: 280px;
    object-fit: cover;   
}
.wed-qa{
    font-size:1.5rem;    
}
.wed-qa dt:before{
    content:'Ｑ';
    font-size:2.5rem;
    font-family: serif;
    color:#cd5e3c;
    margin-right:0.5rem;
    border:solid thin #cd5e3c;
}
.wed-qa dt{
    line-height: 1.4;
    margin-left: 3rem;
    text-indent: -3rem;
}
.wed-qa dd:before{
    content:'Ａ';
    font-size:2.5rem;
    font-family: serif;
    color:navy;
    margin-right:0.5rem;
    border:solid thin navy;
}
.wed-qa dd{
    line-height: 1.4;
    margin-left: 3rem;
    text-indent: -3rem;
    margin-bottom:2rem;
}

/*境内案内*/
.keidai-annai{
    display: inherit;
}
.keidai-annai > div.tate-line{
        display: none;
    }

/*photoalbum*/
.list {
  display: grid;
  row-gap: 20px;
  padding: 20px;
}

.details {
  background-color: white;
    margin-bottom:0.2rem;
    font-size:clamp(1.5rem, 2.5vw, 1.6rem);
}
.album-year {
  cursor: pointer;
  font-weight: bold;
  padding: 1rem;
    background-color:#f1edf5;
    color:navy;
}
.album-contents {
  overflow: hidden;
}
.album-contents-Inner {
  padding: 0 20px 20px;
    border:#f1edf5 thin solid;
}
.album-contents-Inner ul{
    padding:1rem;
}
.album-contents-Inner li{
    border-bottom:navy thin dotted;
    padding:0.5rem 0;
}

.youtube-iframe {
	margin-bottom: 60px;
	width: 100%;
}

.contents-title {
	margin-bottom: 10px;
	width: 100%;
	font-size: clamp(2rem, 2.5vw, 2.4rem);
}

.iframeWrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.iframeWrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/*崇敬会会報リスト*/

.sukei-details {
  background-color: white;
    margin-bottom:1rem;
    font-size:clamp(1.5rem, 2.5vw, 1.6rem);
}
.sukei-number {
  cursor: pointer;
  font-weight: bold;
  padding: 1rem;
    background-color:#f1edf5;
    color:navy;
}
.sukei-contents {
  overflow: hidden;
}
.sukei-contents-Inner {
    padding: 0;
    border:#f1edf5 thin solid;
}
.sukei-contents-Inner table, .sukei-contents-Inner a{
    font-size:clamp(1.4rem, 2.5vw, 1.5rem);
}
.sukei-contents-Inner table td{
    padding:1rem 0.5rem;
}


/*御守りページ*/
ul.oma-tab{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
ul.oma-tab li{
    width:32%;
    margin:0.5%;
}
ul.oma-tab li a{
    width:100%;
    font-size:clamp(1.4rem, 2.5vw, 1.5rem);
    padding:0.7rem 0;
    border-radius: 5px;
    border:#513688 thin solid;
    color:#513688;
    text-align: center;
    display: block;
}
ul.oma-tab li a:hover{
    border:#513688 thin solid;
    background:#513688;
    color:#fff;
    cursor: pointer;
}
.area {
	display: none;/*はじめは非表示*/
	opacity: 0;
    padding:1rem 0;
}
.area.is-active {
    display: block;/*表示*/
    animation-name: displayAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

@keyframes displayAnime{
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.area > h5{
    border-top: solid 3px #513688;
    padding:0;
    display: flex;
    margin-bottom:1rem;
}
.area > h5 div.text{
    font-size: 1.6rem;
    font-family: serif;
    position: relative;
    background: #513688;
    color: #fff;
    line-height: 1.3;
    z-index:-2;
    padding:0.8rem 3rem 1rem 0.5rem ;
    height:40px;
    border-right:1px solid #513688;
}
.triangle {
    width: 0;
    height: 0;
    border-left:1px solid #513688;
    border-right: 40px solid transparent;
    border-top: 40px solid #513688; 
}
.area ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.area ul li{
    width:46%;
    margin:0.5%;
    border-bottom:#513688 thin solid;
    padding:0.5rem;
}
.area ul li:nth-child(odd){
    border-right:#513688 thin solid;
}
.second .section-inner .area ul li > h4{
    font-size:clamp(1.6rem, 2.5vw, 1.8rem);
    font-weight: bold;
    margin:1rem 0;
    padding-left:0.5rem;
}
.area ul li img{
    width:100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    /*background:url(../img/omamori_img/bg_omamori.jpg);*/
}
.area ul li p{
    margin:0.5rem;
    font-size:clamp(1.4rem, 2.5vw, 1.5rem);
    font-weight: lighter;
    letter-spacing: 0;
    line-height: 1.4;
}
.area ul li p span{
    display: inline-block;
}
.setsumei{
    font-size:clamp(1.3rem, 2.5vw, 1.4rem);
}

/*四神*/
.sisin_img{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.sisin_img > div{
    margin:1rem;
}

/*お問い合わせtel*/
.contact-tel{
    font-size:2rem;
    font-weight: bold;
    text-decoration: underline;
}

/*PC用メディアクエリ*/
@media screen and (min-width: 1025px){
    .second{
    width:100%;
    padding:clamp(0.5rem 2.5vw 1rem);
    background: url(../common2024/img/bg_secong_contents.png) center top repeat-y;
    background-size: 100%;
    font-family: sans-serif;
    padding-bottom: 25px;
}
    .second header h1{
    display: flex;
    justify-content: center;
    height:80px;
    padding:0.2rem;
    margin-top:1rem;
}
    
    .second .section-inner h2{
        margin:5rem 0 3rem;
        padding-bottom:2rem;
    }
    .second .section-inner h3{
        margin-top:5rem;
    }
    
    .g_navi{
        display: block;
        margin:5rem auto 3rem;
        width:80%;
    }
    .g_navi ul{
        display: flex;
        justify-content: center;
    }
    .g_navi ul li{
        padding:0.8rem;
        margin:0rem;
        border-right:thin solid #513688;
        font-size:1.6rem;
        font-family: serif;
        flex:1;
        text-align: center;
        position: relative;
    }
    .g_navi ul li:first-child{
        border-left:thin solid #513688;
        border-right:thin solid #513688;
    }
    .g_navi ul li:hover{
        background-color:rgba(80,54,136,0.2);
        position: relative;
    }
    .g_navi ul li i{
        margin-right: 0.5rem;
        color:252525;
    }
    .g_navi ul li a{
        display: block;
        color:252525;
        font-size:1.6rem;
    }
    .g_navi ul li a:hover{
        color:#513688;
        cursor: pointer;
    }

    .g_navi ul ul{
	display: block;
}
    .g_navi ul li.has-child ul{
    /*絶対配置で位置を指定*/
	position: absolute;
	left:0;
	top:3.4rem;
	z-index: 4;
	background:#efefef;
	width:100%;
    display: none;
	transition: all .3s;
}
    .g_navi ul li.has-child ul li{
        border-left:thin solid #513688;
        border-right:thin solid #513688;
        border-bottom:thin dashed #513688;
        padding:1rem;
    }
    .g_navi ul li.has-child ul li:last-child{
        border-bottom:none;
    }

/*hoverしたら表示*/
.g_navi ul li.has-child:hover > ul,
.g_navi ul li.has-child ul li:hover > ul,
.g_navi ul li.has-child:active > ul,
.g_navi ul li.has-child ul li:active > ul{
  display: block;
}

/*ナビゲーションaタグの形状*/
.g_navi li.has-child ul li a{
	color: #252525;
}


    @media (max-width: 1350px) {
        .g_navi ul li{
        flex:initial;
        padding:0.8rem 1.5rem;
    }
    }
    @media (max-width: 1120px) {
        .g_navi ul li{
        flex:initial;
        padding:0.8rem 0.8rem;
    }
    }
    
    .second-header-img img{
    width:100%;
    height: auto;
    aspect-ratio: 27 / 9;
    object-fit: cover;
        object-position: center center;
}
    
    .second img.right{
    float:right;
    margin-left:1rem;
    margin-bottom:0.5rem;
    max-width:480px;
}
    /*結婚式*/
    .second img.left{
    margin-right:1rem;
    margin-bottom: 1rem;
    float:left;
    width:300px;
}
    
    .wedding-nagare-cover{
    display:flex;
        justify-content: flex-start;
    flex-wrap: wrap;
    position: relative;
}
    .wedding-nagare-content{
        width:28%;
    }
    .wedding-nagare-img{
    width:45.5%;
    margin:10px 0.5rem;
        padding:0; 
}
    .wedding-nagare-img img{
        width:100%;
        height: 280px;
    object-fit: cover;   
}
    .arrow{
        display: block;
        margin-top:50px;
}
    
    .second img.gyouji-left{
    float:left;
    margin-right:1rem;
    margin-bottom:0.5rem;
    max-width:280px;
}
    
    .keidai-annai{
        display: flex;
        align-items: stretch;
        flex-wrap:wrap;
}
    .keidai-annai > div{
        width:47%;
        border-bottom:#513688 thin solid;
        padding:1rem;
        margin:1%;
    }
    .keidai-annai > div:last-child{
        width:47%;
        border-bottom:none;
        padding:1rem;
        margin:1%;
    }
    .keidai-annai > div.tate-line{
        display: block;
        width:1px;
        padding:0rem;
        margin:0%;
        border-right:#513688 thin solid;
    }
        .second .section-inner .keidai-annai > div h3{
        margin-top:0;
    }
    
    .map-illust{
        width:100%;
        max-width:420px;
        margin:0 auto;
    }
    
}

/*pc・タブレットで電話を無効化*/
@media (min-width: 751px) {
a[href*="tel:"] {
pointer-events: none;
cursor: default;
text-decoration: none;
    color:#252525
}
    .contact-tel{
    font-size:1.6rem;
    font-weight: inherit;
    text-decoration: inherit;
}
}
