@charset "UTF-8";

/*--------------------------------------------------------
ナビゲーションスタイル
--------------------------------------------------------*/


/* =======================================
　通常メニュー
======================================= */
/*----- モバイルメニュー -----*/
/* closeの非表示 */
.stellarnav.mobile a.close-menu {
  display: none;
}



/* =======================================
　フルスクリーンメニュー
======================================= */

/*----- トグルボタン -----*/
#header-btn {
  background: var(--color-wh);
  width: 112px;
  height: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 300;
  top: 16px;
  right: 0;
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  width: 48px;
  height: 24px;
}

.nav-toggle:hover {
  opacity: 0.7;
}

.nav-toggle img {
  width: 100%;
  height: auto;
  display: block;
}

/* SP画面では非表示 */
@media screen and (max-width: 1023px) {
  #header-btn {
    display: none;
  }
}


/*----- 全画面メニュー -----*/
.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url(../../../images/common/footer_megamenu_bg.jpg) no-repeat center center;
  background-size: cover;
  z-index: 9999;
  display: none;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.fullscreen-nav.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* メニュー表示時のbody制御 */
body.nav-open {
  overflow: hidden !important;
}

/* ヘッダー部分（閉じるボタン） */
.fullscreen-nav-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  position: relative;
  top: 24px;
  right: 20px;
}

.nav-close:hover {
  opacity: 0.7;
}

.nav-close img {
  width: 32px;
  height: 32px;
  display: block;
}

/* メニューコンテンツ */
.fullscreen-nav-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px;
}

.fullscreen-nav-content .fullscreen-widget.widget_block {
  width: 100%;
}

.fullscreen-nav-menu {
  width: 100%;
  max-width: 400px;
}

/* メニューリスト */
.fullscreen-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.fullscreen-menu li {
  margin-bottom: 30px;
}

.fullscreen-menu a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  display: block;
  padding: 15px 20px;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.fullscreen-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* サブメニューがある場合の調整 */
.fullscreen-menu .sub-menu {
  margin-top: 15px;
  padding-left: 0;
}

.fullscreen-menu .sub-menu li {
  margin-bottom: 15px;
}

.fullscreen-menu .sub-menu a {
  font-size: 18px;
  opacity: 0.8;
}



.fullscreen-nav-content .fullscreen-menu-section .smb-section__background {
  background-color: transparent;
}




/* レスポンシブ調整 */
@media screen and (max-width: 480px) {
  .fullscreen-nav-header {
    top: 15px;
    right: 15px;
  }

  .nav-close img {
    width: 28px;
    height: 28px;
  }

  .fullscreen-menu a {
    font-size: 20px;
    padding: 12px 15px;
  }

  .fullscreen-menu .sub-menu a {
    font-size: 16px;
  }
}



/* =======================================
　トグルのスタイル
======================================= */

.navicon {
  width: 48px;
  height: 24px;
  right: 24px;
  background: transparent;
}

.navicon span {
  left: 0;
  height: 1px;
  background: var(--color-bk);
  width: 100%;
}

.navicon span:nth-of-type(1) {
  top: 0px;
}

.navicon span:nth-of-type(2) {
  top: 12px;
}

.navicon span:nth-of-type(3) {
  top: 24px;
}

.navicon span:nth-of-type(3)::after {
  content: none;
}


@media screen and (max-width: 1023px) {
  .navicon {
    right: 12px;
  }
}

@media screen and (max-width: 639px) {
  .navicon {
    right: 0;
  }
}

/*----- close -----*/
.navicon.open {
  right: 32px;
}

.navicon.open span:nth-of-type(1) {
  width: 100%;
}

.navicon.open span:nth-of-type(3) {
  width: 100%;
}


@media screen and (max-width: 1023px) {

  .navicon.open {
    right: 24px;
  }

  /*----- SPメニュー -----*/
  ul#menu-sp-gnavi {
    margin-top: 40px;
  }
}