/* PC用のheaderのタイトル */
.h1 {
  font-size: calc(1.375rem + 1.5vw); /* 画面幅に応じてサイズが変化 */
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.h5 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color:#F0F0F0;
}

.h1 a{
  color:#F0F0F0;
  text-shadow: #05C7F2 1px 0px 10px ;
}

/* ナビメニューのスマホ（header-sp）対応 */
#navbarMobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}
#navbarMobile.expanded {
  padding: 0 1rem;
}

/*------ スマホ・タブレット ------*/
@media (max-width: 1024px) {

  /* SP用のheaderのタイトル */
  .h1 {
    font-size: calc(1.1rem + 1.5vw); /* 画面幅に応じてサイズが変化 */
  }
  .h5 {
    font-size: 1.1rem;
  }

  /* ナビバー */
  .navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右寄せしたい場合 */
 
    padding: 0.5rem 1rem;

    /* 背景色 */
    background-color: #032859 !important;
  }

  /* ハンバーガーメニュー */
  .hamburger {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
  }
  /* トグラー（ハンバーガーメニュー）関連 */
  #toggleButton{
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    border-radius: 0.375rem;
    border: 1px #032859 solid; /*←これがないと、ボタン押さない時（「）　押すとき（」）なぜかこの順に縁がつく*/
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  #toggleButton:focus {
    outline: none;
  }

  #navbarMobile {
    position: absolute;
    top: 60px; 
    right: 10px;
    width: 250px;
    background-color: rgba(1, 28, 64, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    padding: 0 1rem;
    margin-top:0;
    margin-bottom:1rem;
    z-index: 1;
    border-radius: 6px;
    
    /*滑らかに閉じる対策*/
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  #navbarMobile.expanded {
    max-height: 100vh; /*メニューの高さに応じて調整*/
  }
}
