
/* ======================
   もくじパネル全体（背景画像は維持し、上に濃紺のグラデーションを重ねる）
====================== */

#g-nav-mokuji{
  position:fixed;
  z-index: -1;
  opacity: 0;/*はじめは透過0*/
  /*ナビの位置と形状*/
  top: -100vh;
  width:100%;
  height: 100vh;/*ナビの高さ*/
  background:
    linear-gradient(160deg, rgba(28,18,54,0.94), rgba(15,10,30,0.97)),
    url("../img/bk/bk-lightyellow-wa.jpg") repeat;
  background-size: auto;
  transition: 0.5s ease-in-out;
}



/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav-mokuji.panelactive{
	opacity: 1;
	z-index:999;
  top: 0;
  left: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav-mokuji.panelactive #g-nav-list{
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10vw;
  padding: 100px;
  left: 50%;
  transform: translateX(-50%);
}

/* もくじパネル装飾：右側の松 */
.g-nav-mokuji__matsu{
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  object-fit: contain;
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
  transform: scale(-1, 1);
  object-position: left;
  height: 70%;
  aspect-ratio: 1 / 1;
}
/* ======================
   左：ナビゲーション（階層で見せる）
====================== */

.g-nav-main{
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.menu-group {
  display: block;
}

.menu-group h3{
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #fff;
  text-align: left;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  position: relative;
  transition: 0.3s ease-in-out;
  text-shadow: none;
  font-family: "Hina Mincho", serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

/*丸印。禅の円相をイメージした飾り*/
.menu-group h3::before{
  content: "";
  display: inline-block;
  width: 30px;
  aspect-ratio: 1 / 1;
  /* border: 1px solid #e45b08; */
  background: url(../img/icon/jimon.png) no-repeat;
  background-size: cover;
  flex-shrink: 0;
  transition: 0.3s ease-in-out;
}

.menu-group:hover h3{
  letter-spacing: 0.18em;
}

.menu-group:hover h3::before{
  background: url("../img/icon/jimon-red.png") no-repeat;
  background-size: cover;
}

/*サブナビゲーション：縦の一本線で親子関係を見せる*/
#g-nav-mokuji ul {
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 18px 0 0;
  padding: 0 0 0 21px;
  /* border-left: 1px solid rgba(255, 255, 255, 0.22); */
  border-left: 1px solid #e45b0873;
  box-sizing: border-box;
  margin-left: 15px;
}

#g-nav-mokuji.panelactive ul {
  pointer-events: auto;
  display: flex;
}

#g-nav-mokuji li{
	list-style: none;
  text-align: left;
}

#g-nav-mokuji li a{
	display: inline-block;
	text-decoration: none;
	letter-spacing: 0.06em;
	font-weight: 300;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: rgba(255,255,255,0.68);
  border-bottom: 1px solid transparent;
  padding: 2px 0 3px;
  transition: 0.3s ease-in-out;
}

/*ホバー：白く浮かび上がり、少し右へ*/
#g-nav-mokuji li a:hover{
  color: #fff;
  border-bottom-color: #e45b08;
  padding-left: 8px;
}

/* ======================
   右：寺院情報
====================== */

.g-nav-info{
  flex-shrink: 0;
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.g-nav-info-logo{
  display: block;
  width: 180px;
}

.g-nav-info-logo img{
  width: 100%;
  display: block;
}

.g-nav-contact{
  margin-top: 0;
}

.g-nav-address{
  font-style: normal;
}

.g-nav-address p{
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-family: "Shippori Mincho B1", serif;
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.g-nav-address a:hover p{
  text-decoration: underline;
}

.g-nav-map{
  margin-top: 24px;
}

.g-nav-map iframe{
  display: block;
  width: 100%;
  height: 450px;
  max-width: 100%;
  -webkit-filter: grayscale(1) contrast(.95) brightness(1.08);
}

.g-nav-contact p{
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.04em;
  align-items: center;
}

.g-nav-contact p .material-symbols-outlined{
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

.g-nav-contact p small{
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.g-nav-contact a{
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.g-nav-contact a:hover{
  color: #e45b08;
}


/*========= ボタンのためのCSS ===============*/
.openbtn{
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  cursor: pointer;
  background: url(../img/bk/bk-brown-wa.jpg) repeat;
  background-size: cover;
  color: #fff;
  font-weight: 400;
  font-style: normal;
  font-family: "Shippori Mincho B1", serif;
  width: 80px;
  height: 120px;
  font-size: 1.05rem;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  transition: all 0.25s ease;
}

	
/*×に変化*/	
.openbtn span{
  display: inline-block;
  transition: all .4s;
  height: 1px;
  border-radius: 2px;
  background-color: #fff;
  width: 40%;
}

.openbtn span:nth-of-type(1) {
	top:20px;	
}

.openbtn span:nth-of-type(2) {
	top:30px;
}

.openbtn span:nth-of-type(3) {
	top:40px;
}

.openbtn.active span:nth-of-type(1) {
  transform: translateY(7px) rotate(-45deg);
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
  transform: translateY(-7px) rotate(45deg);
}



/* 電話ボタン　*/


#header-tel-button{
  position: relative;
  z-index: 100;
}

#header-tel-button a{
  gap: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url(../img/bk/bk-lightyellow-wa.jpg) repeat;
  background-size: cover;
  top: 0;
  right: 80px;
  height: 120px;
  border-radius: 0 0 0 100px;
  cursor: pointer;
  position: fixed;
  color: #201542;
  font-family: "Shippori Mincho B1", serif;
  width: fit-content;
  padding: 0 20px 0 50px;
  transition: opacity .3s ease;
}


.tel-button-top{
  display: flex;
  gap: 8px;
  text-align: center;
  align-items: center;
}


.tel-button-top p{
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.075rem;
}


.tel-button-top i{
  font-size: 125%;
  margin-top: 4px;
  line-height: 1;
}

.tel-time {
  letter-spacing: 1rem;
}

#header-menu-list,
.openbtn,
h1 a{
  pointer-events: auto;
}

.open-line{
  position: relative;
  width: 60px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.openbtn p{
  font-size: 0.9rem;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  color: #fff;
}

/* 電話ボタン　*/


@media(max-width: 1560px){

  
  #header,
  .openbtn,
   #header-tel-button a {
    height: 100px;
  }
  
  h1 span {
    width: 170px;
  }
  
  #header {
    padding: 0 300px 0 3vw;
  }
  
  .tel-button-top p {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05rem;
  }
  
  .tel-button-top i {
    font-size: 100%;
  }

  #header-tel-button a {
    padding: 0 20px 0 45px;
  }
  
  .tel-time p{
    line-height: 1.2;
    font-size: 0.9rem;
  }
  
  .openbtn p {
    font-size: 0.85rem;
  }

}

@media(max-width: 1260px){
  
  .openbtn,
   #header-tel-button a {
    height: 80px;
  }
  
  #header {
    padding: 0 300px 0 30px;
    height: 80px;
  }
  
  
  #header-menu-list a p {
    font-size: 0.85rem;
  }
}


@media(max-width:1100px){
  #header-tel-button a{
    display: none;
  }
  
  .openbtn{
    background: none;
  }
  
  .openbtn span {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.52);
  }
  
  .openbtn p {
    font-size: 0.75rem;
  }
}

@media(max-width: 900px){
  
  #header{
    padding-left:20px;
  }
  
  h1 span,
  #header.header-scrolled h1 span{
    background-size: 100% 100%;
    width: 130px;
    aspect-ratio: 60 / 22;
  }

  #g-nav-mokuji.panelactive #g-nav-list{
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 60px;
    padding: 80px 8vw 80px 30px;
  }

  .g-nav-main{
    gap: 40px;
  }

  .menu-group h3{
    font-size: clamp(1.3rem, 5.5vw, 1.6rem);
  }

  .g-nav-info{
    width: 100%;
    padding-left: 0;
    padding-top: 40px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.22);
  }

  .g-nav-mokuji__matsu{
    width: 70%;
    opacity: 0.1;
  }

}

@media (max-width: 500px) {
  #header {
      padding-left: 10px;
  }
  
  .openbtn{
    width: 60px;
  }
}
