@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');

.nav-pc-links {
    position: fixed;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    text-align: center;
    z-index: 1000;
    writing-mode: horizontal-tb; /* nav全体は横書きに戻す */
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;
    list-style: none;
  }

  .nav-pc-links a {
    position: relative;
    writing-mode: vertical-rl;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: block;
    letter-spacing: 1.5px;
  }

.nav-pc-links a {
  color: #222;
  transition: color 0.3s ease;
}

.nav-pc-links.dark-text a {
  color: white !important;
}


  .nav-pc-links a::before {
    content: '';
    position: absolute;
  top: 0;           /* 上端から開始 */
  left: 0;   
    width: 1px;
    height: 0;
    background-color: #797979;
    transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  }

  .top-left-logo{
    display: none;
  }

  .nav-pc-links a:hover::before {
    height: 100%;
  }
  
  .logo-fixed img{
    width:60px;
    position: absolute;
    position: fixed;
    top:60px;
    right:60px;
    z-index: 3000;
  }

  .button-fixed-bottom img{
      display: none;
  }

/* ハンバーガー */
.hamburger {
  width: 35px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  top: 20px;
  right: 5vw;
}

.hamburger span {
  height: 1px;
  background: #747474;
  border-radius: 1.5px;
  transition: 0.5s;
}

/* アニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -10px);
}


@media screen and (max-width: 1300px) {
  .top-left-logo {
  display: block;
  width: 100%;
  height: 60px;
  position: fixed;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.6); /* 半透明の白 */
  backdrop-filter: blur(8px); /* すりガラス効果 */
  -webkit-backdrop-filter: blur(8px); /* Safari対応 */
  border-bottom: solid 1px #E3E3E3;
  }

  .top-left-logo img {
    position: fixed;
    height: 20px;
    top: 20px;
    left: 5vw;
  }

  .nav-pc-links {
    display: none;
  }

  .logo-fixed{
    display: none;
  }

  .nav-sp-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;              /* 幅を画面全体に */
    height: 110vh;             /* 高さを画面全体に */
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;             /* 常にflexにしておく */
    flex-direction: column;
    justify-content: center;   /* 中央揃え（縦方向） */
    align-items: center;       /* 中央揃え（横方向） */
    list-style: none;
    z-index: 1000;             /* 前面に表示 */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;      /* 開いていない間はクリックできない */
    opacity: 0;
    padding: 0;
    margin: 0;
    list-style: none; /* マーカーも不要なら */
  }
  
  .nav-sp-links.open {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;   
  }
  
  .nav-sp-links li{
      list-style: none;
      margin-bottom:3rem;
  }
    
    .nav-sp-links a{
      text-decoration: none;
      color: #333;
      font-size:20px;
    }
    
    .hamburger {
      display: flex;
      position: fixed;
    }

    #backToTop {
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      position: fixed;
      bottom: 60px;
      right: 5vw;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      z-index: 5000;
    }

    #backToTop.show {
      opacity: 1;
      pointer-events: auto;
    }

    #backToTop::before {
      content: "";
      position: fixed;
      bottom: 60px;
      right: 10vw;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border: 1px solid #E3E3E3;
      z-index: 5000;
      transform: translate(12.5px, 50%);
    }

    #backToTop img {
      display: block;
      width: 35px;
      height: auto;
      position: fixed;
      bottom: 60px;
      right: 10vw;
      transform: translate(0%, 50%);
      z-index: 5000;
      cursor: pointer;
    }
}

@media screen and (min-width: 1300px) {
  .nav-sp-links {
    display: none !important;
  }
}


