body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(48, 34, 96);
}

.header {
    background: linear-gradient(to bottom right, #2a45b1, #593798);
    color: #ffffff;
    text-align: center;
    padding: 40px 0;
    border-bottom-left-radius: 20px; /* 左下の角を丸くする */
    border-bottom-right-radius: 20px; /* 右下の角を丸くする */
    border-bottom: solid 6px #1f2f73;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    background: linear-gradient(to bottom right, #2a45b1, #593798);
    color: #ffffff;
    text-align: center;
    padding: 40px 0;
    border-top-left-radius: 20px; /* 左下の角を丸くする */
    border-top-right-radius: 20px; /* 右下の角を丸くする */
}

.box {
    padding: 0.5em 1em;
    margin: 2em;
    color: #ffffff;
    background: linear-gradient(to bottom right, #2a45b1, #593798);
    border-bottom: solid 6px #1f2f73;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    border-radius: 9px;
}
.box p {
    margin: 0; 
    padding: 0;
}

/* 固定ヘッダー */
.fixed-header {
  position: fixed;
  top: -150px; /* 初期状態では非表示にする */
  left: 0;
  width: 100%;
  z-index: 10;
  background: linear-gradient(to bottom right, #2a45b1, #593798);
  padding: 10px 0;
  @media (max-width: 800px){
    padding: 20px 0;
  }
  text-align: center;
  transition: top 0.3s; /* スクロール時のアニメーションを追加 */
  border-bottom-left-radius: 20px; /* 左下の角を丸くする */
  border-bottom-right-radius: 20px; /* 右下の角を丸くする */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 800px) {
  .menu {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 800px) {
  ul {
    display: flex;
    justify-content: space-around; /* リンクを均等に配置 */
  }
  .menu {
    display: flex;
  }
}

ul {
  list-style-type: none;
  a {
    text-decoration: none;
    padding: 10px 20px; /* リンクのパディングを追加 */
    color: #fff;
  }
  li {
    span {
      color: #fff;
    }
  }
}

@media (max-width: 800px) {
  .nav__wrapper {
    position: absolute;
    right: 0;
    left: 0;
    top: 45px;
    z-index: 10;
    background: linear-gradient(to bottom right, #13256d, #593798);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  .nav__wrapper.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav__item a {
    display: block;
    padding: 1.5rem 1rem;
  }
}
.nav__toggle {
  display: none;
}

@media (max-width: 800px) {
  .nav__toggle {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 40px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  /* ハンバーガーの線 */
  .nav__toggle div {
    width: 100%;
    height: 5px;
    background-color: black;
    border-radius: 5px;
    transition: 0.3s;
  }

  /* 開閉時のアニメーション */
  .nav__toggle.open div:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .nav__toggle.open div:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open div:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  /*ハンバーガーメニューが開いたら表示*/
  .active .black-bg {
    opacity: 0.3;
    visibility: visible;
  }
}

.footer {
    padding: 2rem;
}

.grid {
    display: grid;
    justify-content: flex-end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.footer__navi {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__navi li a {
    color: rgb(163, 163, 163);
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-justify-between {
        justify-content: space-between;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
