/* ハンバーガーナビ */



/* ボタン（　open,close まとめて ） */
.hamburger-btn,
.drawer-close {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1000;
  border: none;
}

/* PCビューでは非表示 */
@media screen and (min-width: 768px) {
	.hamburger-btn {
		display:none;
	}
}

/* OPEN 個別 */
.hamburger-btn {
  background: #ffffff;
  z-index: 1000;
}

/* OPEN 3本ライン */
.hamburger-btn span:nth-child(1),
.hamburger-btn span:nth-child(2),
.hamburger-btn span:nth-child(3) {
  width: 26px;
  height: 3px;
  background: #10a5c6;
  border-radius: 999px;
}
.hamburger-btn span:nth-child(1){
    margin-top: 10px;
}

/* CLOSEボタン 個別 */
.drawer-close {
  background: #10a5c6;
}

.drawer-close span:nth-child(1),
.drawer-close span:nth-child(2) {
  position: absolute;
  top: 40%;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
 
}
.drawer-close span:nth-child(1) { transform: rotate(45deg); }
.drawer-close span:nth-child(2) { transform: rotate(-45deg); }


/* MENUボタンの文字 */
.hamburger-text,
.drawer-close-text{
    font-size: 11px;
    letter-spacing: 0.12em;
    }
.hamburger-text {
    margin-top: -2px;
    color: #0b7c95;
}
.drawer-close-text {
  margin-top: 30px;
  color: #fff;
}



/* 透過黒レイヤー  */
.nav-overlay {
  position: fixed;
  inset: 0;  
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

/* 開閉時 */
.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}


/* ドロワーメニュー */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;

  /*左側に余白を作る  */
  width: 82%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 0 0 0 40px;
  transform: translateX(100%); /* 右に隠す */
  transition: transform 0.35s ease;
  padding: 56px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 901; /* overlay より前面 */
}

/* 表示状態 */
.drawer.is-open {
  transform: translateX(0);
}


/* メニュー内部 */
.drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-nav > li {
  margin-bottom: 1em;
}

.drawer-nav > li > a {
  display: flex;
  justify-content: start;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #123056;
}

/* ▼ 右側の矢印アイコン（CSSだけで作る） */
.drawer-nav > li > a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #123056;
  border-bottom: 2px solid #123056;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  margin-right: 0.5em;
}

/* サブメニュー  */
.drawer-submenu {
  list-style: none;
  padding-left: 16px;
  margin-top: 10px;
}
.drawer-submenu li a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  padding:0.3em;
  color: #3a4e6a;
}

/* CTAボタン */
.drawer-cta {
  margin-top: auto;
  width: 100%;

}
.drawer-cta a{
    display: block;
    text-align: center;
    padding: 16px 24px;
    border-radius: 50vw;
    background: #15c6b0;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 1em;

}


/* PC時はメニュー幅を制限 */
@media (min-width: 768px) {
  .drawer {
    max-width: 480px;
    margin-left: auto;
  }
}
