@charset "UTF-8";

:root {
  --vivant-color-primary: #D71718;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
}

#header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100vw;
  height: 80px;
  padding: 0 1em;
  background-color: #00000099;
  p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vivant-color-primary);
  }
}

#chart-area {
  width: 100vw;
  height: 100vh;
}

#chart-navigation {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template: auto / 1fr auto;
  align-items: center;
  width: 100vw;
  height: 64px;
  padding: 10px 20px;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
  /* 初期表示 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* */
  h1 {
    font-size: clamp(2rem, 2vw, 3rem);
    font-weight: 700;
    color: var(--vivant-color-primary);
    line-height: 1;
    font-family: "anton", sans-serif;
    font-weight: 400;
    font-style: normal;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 8px 0;
    img {
      width: auto;
      max-height: 100%;
      object-fit: contain;
      display: block;
    }
  }
  /* 退出ボタン */
  .exit-button {
    background-image: url(../img/btn_exit.svg);
    background-size: auto 100%;
    background-repeat: no-repeat;
    height: 100%;
    width: auto;
    aspect-ratio: 14/5;
    box-shadow: 0 4px 4px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    span {
      opacity: 0;
    }
  }
  @media (hover: hover) {
    .exit-button:hover {
      background-image: url(../img/btn_exit_hover.svg);
    }
  }
}
body.is-chart-ready #chart-navigation {
  opacity: 1;
  visibility: visible;
}
/* height 100vh を保つために上書き */
.is-chart-ready #menu_new {
  position: fixed !important;
}

#sp_menu {
  position: fixed !important;
}

.cd-menu {
  z-index: 2;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #chart-navigation {
    height: 50px;
    padding: 8px 12px;
    /* */
    h1 {
      padding: 8px 0;
    }
  }
}
