@charset "UTF-8";
/* ============================================
   Layout — header / l-hamburger / l-drawer / main / l-sitewrapper / c-skip-link
   ============================================ */

/* .l-sitewrapper の表示制御は is-visible クラスで管理 */

header {
  width: 25.622vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  background: var(--bg);
  position: fixed;
  overflow: scroll;

  & h1 {
    margin: 14vh 0;
  }

  & nav {
    flex: 1;
    width: 100%;
    padding: 0 2.5rem;

    & ul {
      width: 100%;
      display: flex;
      list-style: none;
      padding: 0;
      margin: 0;
      justify-content: center;
      font-size: calc(0.7031rem + (1vw - 5.19px) * 0.4283);

      & li {
        writing-mode: vertical-rl;
        letter-spacing: 5px;

        &:last-child {
          letter-spacing: 3px;
        }

        & a {
          text-decoration: none;
          padding: 0 0.5rem;
          display: inline-block;
          position: relative;

          &::before {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -3px;
            content: "";
            width: 1px;
            height: 0px;
            background: var(--ink);
            transition: 0.5s;
          }

          &:hover::before {
            height: calc(100% + 3px);
          }
        }

        & .is-current {
          cursor: default;

          &::before {
            height: calc(100% + 3px);
          }
        }

        & .is-underconstruction {
          color: var(--ink-muted);

          &:hover {
            cursor: text;
          }

          &:hover::before {
            content: none;
          }
        }
      }
    }
  }

  & .copyright {
    font-size: 0.625rem;
    letter-spacing: 2px;
    text-align: center;
    padding: 1.875rem 0 0.625rem;
  }
}

.copyright__nav {
  display: none;
}

.l-hamburger {
  display: none;
}

.l-drawer {
  & h1 {
    display: none;
  }
}

main {
  width: calc(100% - 25.622vw);
  margin-left: 25.622vw;
  position: relative;
}

/* ============================================
   Sitewrapper フェードイン
   ============================================ */
.l-sitewrapper {
  opacity: 0;
  transition: opacity 2s ease;

  &.is-visible {
    opacity: 1;
  }
}

/* ============================================
   Skip Link（キーボードナビゲーション用）
   ============================================ */
.c-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.4688rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 10000;
  transition: top 0.2s;

  &:focus {
    top: 0;
  }
}

/* ============================================
   ドロワー開閉時のスクロールロック
   ============================================ */
body.is-drawer-open {
  overflow: hidden;
}

/* ============================================
   Responsive — Tablet / SP (max-width: 959px)
   ============================================ */
@media screen and (max-width: 959px) {
  #nav-btn {
    display: block;
    position: fixed;
    z-index: 11;
    top: 30px;
    right: 5%;
    background: transparent;
    border: none;
  }

  .l-hamburger {
    position: relative;
    display: block;
    width: 40px;
    height: 22px;
    z-index: 999;
    cursor: pointer;
    mix-blend-mode: difference;
  }
  .l-hamburger .l-hamburger__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    border-radius: 1px;
    background: var(--bg);
    transition: all 0.5s;
  }
  .l-hamburger .l-hamburger__bar:nth-child(1) {
    top: 0;
  }
  .l-hamburger .l-hamburger__bar:nth-child(2) {
    top: 8px;
  }
  .l-hamburger.is-active {
    mix-blend-mode: normal;
  }
  .l-hamburger.is-active .l-hamburger__bar {
    background: var(--ink);
  }
  .l-hamburger.is-active .l-hamburger__bar:nth-child(1) {
    transform: translateY(3px) rotate(25deg);
  }
  .l-hamburger.is-active .l-hamburger__bar:nth-child(2) {
    transform: translateY(-5px) rotate(-25deg);
  }

  .l-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    padding: 3.75rem 10% 0.625rem;
    height: 100%;
    background: var(--bg);
    z-index: 5;
    opacity: 0;
    transition: 0.5s;
    visibility: hidden;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .l-drawer h1 {
    display: inline;
    margin: 0 0 80px 0;
  }
  .l-drawer h1 a img {
    width: 60px;
    height: auto;
  }
  .l-drawer ul {
    flex: 1;
    font-size: 0.875rem;
    width: 50%;
  }

  .is-open {
    opacity: 1;
    visibility: visible;
  }

  .l-sitewrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }

  header {
    width: 100%;
    height: auto;
    position: relative;
  }
  header h1 {
    margin: 5rem 0;
  }
  header .copyright {
    display: none;
  }
  header nav .copyright__nav {
    display: inline;
    font-size: 0.625rem;
    letter-spacing: 2px;
  }

  main {
    width: 100%;
    min-height: 18.75rem;
    margin-left: 0;
  }
}

/* ============================================
   Responsive — Mobile (max-width: 519px)
   ============================================ */
@media screen and (max-width: 519px) {
  .l-drawer ul {
    width: 80%;
  }

  .sp-only {
    display: block;
  }

  .l-header h1 img {
    width: 60px;
    height: auto;
  }
}
