html, body {
  margin: 0;
  padding: 0;
}
canvas {
  display: block;
}

main{
  font-family: SicGothicDuex-HDL-E;
  font-weight: 400;
  font-style: normal;
}

.logo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.title{
  font-family: SicGothicDuex-HDL-E;
  color: #F4F8E9;
  position: absolute;
}

.title-namebox{
  margin: 0px;
}

.title-name{
  text-decoration: none;
  color: #F4F8E9;
  line-height: 0%;
}

.title-locationbox{
  margin: 0px;
}

.title-place{
  vertical-align: middle;
  text-decoration: none;
  color: #F4F8E9;
}

.material-icons-outlined.title-icon-location{
  vertical-align: middle;
}

/* pc */

@media screen and (min-width:767px) {
  .only_sp {
    display: none;
  }

  .logo {
    width: 40%;
  }

  .title {
    bottom: 82px;
    margin-left: 86px;
    width: 100%;
  }

  .title-name {
    font-size: 64px;
    margin-right: 10px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
  }

  .title-name:hover {
    opacity: 0.5;
  }

  .title-day {
    font-size: 40px;
    margin-right: 10px;
  }

  .title-week {
    font-size: 20px;
  }

  .title-place {
    font-size: 32px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
  }

  .title-place:hover {
    opacity: 0.5;
  }

  .material-icons-outlined.title-icon-arrow {
    font-size: 36px;
  }

  .material-icons-outlined.title-icon-location {
    font-size: 48px;
    margin-right: 5px;
    vertical-align: middle;
  }

  /* === 修正部分 === */
  .links {
    position: absolute;   /* ←親要素を基準に固定 */
    top: 0;
    right: 0;
    bottom: 0;            /* ←縦方向に画面いっぱい */
    width: 220px;         /* 横幅を固定（適宜調整） */
    
    font-family: SicGothicDuex-HDL-E;
    color: #F4F8E9;
    font-size: 24px;
    padding-right: 4%;
    padding-left: 40px;   /* ←150pxだと横に広がりすぎるかも */
    text-align: right;

    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦方向に中央寄せ */
    align-items: flex-end;
    gap: 20px;              /* パーセントだと見た目が崩れるのでpxに */
    overflow: hidden;
    z-index: 0;
  }

  .links::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: -1;
  }

  .links:hover::before {
    opacity: 1;
  }

  .link-text {
    text-decoration: none;
    color: #F4F8E9;
    margin: 4px 0;
    display: inline-block;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    z-index: 1;
    position: relative;
  }

  .link-text:hover {
    opacity: 0.5;
  }
}

/* sp */
@media screen and (max-width:767px) {
  .only_pc{
    display: none;
  }

  .only_sp{
    position: relative;
  }

  .logo{
    width: 75%;
  }

  .title{
    /* width: min-content; */
    margin-left: 30px;
    bottom: 40px;
  }

  .title-name{
    font-size: 48px;
    margin-right: 10px;
  }

  .title-day{
    font-size: 20px;
    margin-right: 6px;
  }

  .title-week{
    font-size: 14px;
  }

  .material-icons-outlined.title-icon-arrow{
    font-size: 15px;
  }

  .title-place{
    font-size: 18px;
  }

  /* ハンバーガーメニュー */
  .hamburger-menu {
      position: absolute;
      right: 1%;
      width: 70px;
      height: 70px;
      border: none;
      background: transparent;
      appearance: none;
      padding: 0;
      cursor: pointer;
      z-index: 9999;
      border-radius: 50%;
  }

  .hamburger-menu__bar {
      display: inline-block;
      width: 44%;
      height: 3px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      transition: 0.5s;
      background-color: #9ed2d6;
  }

  .hamburger-menu__bar:first-child {
      top: 34%;
  }

  .hamburger-menu__bar:nth-child(2) {
      top: 50%;
  }

  .hamburger-menu__bar:last-child {
      top: 65%;
  }

  .hamburger-menu--open .hamburger-menu__bar {
      top: 50%;
  }

  .hamburger-menu--open .hamburger-menu__bar:first-child {
      transform: translateX(-50%) translateY(-50%) rotate(45deg);
  }

  .hamburger-menu--open .hamburger-menu__bar:last-child {
      transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  }

  .hamburger-menu--open .hamburger-menu__bar:nth-child(2) {
      display: none;
  }

  /* ハンバーガーのナビゲーション↓*/
  .navigation {
      background-color: #091e35;
      position: absolute;
      width: 100%;
      z-index: 9998;
      height: 100vh;
      display: none;
  }

  .navigation a {
      color: #ffffff;
      font-family: sicgothicduex-hdl-e, sans-serif;
      font-style: normal;
      font-weight: 400;
      margin: 0;
      display: inline-block;
      font-size: 20px;
      line-height: 2.5em;
      text-decoration: none;
  }

  .navigation_ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
  }

  .navigation_ul a{
      text-align: center;
  }

  .about-bottom{
      padding-top: 15%;
  }

  .about-bottom , .event-bottom , .pr-bottom{
      padding-bottom: 10%;
  }


  /* snsアイコン */
  .navigation-img {
      display: flex;
      justify-content: center;
      gap: 100px;
  }

  .navigation-img img {
      height: 2rem;
  }
}
