body {
  max-width: 1500px;
  margin: auto;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  /* スクロールを防ぐ */
  background: #002a7d;
  text-rendering: optimizeLegibility;
}
button {
  all: unset;
  text-align: center;
}
#content {
  display: none;
}
/* ローディング画面 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff; /* 背景色 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #b2b2b2; /* テキストの色 */
  font-family: "Hi Melody", serif;
  color: rgb(7, 131, 255);
}

/* ローディング要素 */
.loading-image {
  text-align: center;
  animation: fade-in-out 1.5s infinite ease-in-out;
}

/* テキストスタイル */
.loading-image p {
  font-size: 32px;
  margin-bottom: 10px;
}

/* アニメーション */
@keyframes fade-in-out {
  0%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-10px);
  }
}

/* ローディング画像のスタイル */
.loading-image img {
  width: 200px;
  height: auto;
}

button {
  border: none;
}

header {
  position: fixed;
  top: 30px;
  left: 30px;
  text-align: center;
}

header img {
  width: 200px;
}

main {
  margin-top: 30px;
}

.background-name {
  font-size: 200px;
  position: absolute;
  font-weight: bold;
  top: 120px;
  z-index: -100;
  color: rgb(7 131 255 / 13%);
  margin-top: 0;
  letter-spacing: 20px;
  font-family: "Londrina Outline", sans-serif;
  font-style: italic;
}

.main-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.name {
  width: 30%;
  color: rgb(7, 131, 255);
  text-align: center;
  font-family: "Hi Melody";
  letter-spacing: 1px;

  .char {
    display: inline-block;
  }

  span {
    color: white;
  }

  h1 {
    font-size: 6em;
    text-align: center;
    font-family: "Hi Melody", serif;
    margin: 0;
    letter-spacing: 24px;
    color: white;
  }

  small {
    margin-left: -30px;
    font-size: 16px;
    color: rgb(7, 131, 255);
  }

  small i {
    padding: 3px;
    font-size: 10px;
  }
}

.meicha-tv {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Cherry Bomb One", serif;
  font-weight: bold;
  color: white;
  z-index: 100;
}

.carousel {
  position: relative;
  overflow: hidden;
  /* スライドを親要素内に収める */
  width: 70%;
  max-width: 800px;
  border-radius: 20px;
  box-shadow: 5px 5px 3px 0px rgba(0, 0, 0, 0.229);
}
.slides {
  display: flex;
  /* 横並びに配置 */
  transition: transform 0.8s ease;
  /* スライドのスムーズな移動 */
}

.slide {
  min-width: 100%;
  /* スライドを親要素の幅いっぱいに広げる */
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  display: block;
}

.thumbnails {
  display: flex;
  justify-content: center;
  background: rgb(7, 131, 255);
}

.thumbnail {
  width: 20%;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.thumbnail img {
  width: 100%;
}

.thumbnail:hover {
  opacity: 1;
}

.thumbnail.active {
  opacity: 1;
  box-sizing: border-box;
}

.arrow-background {
  padding: 20px;
  z-index: 100;
  position: absolute;
}

.arrow {
  border-radius: 50%;
  color: rgb(7, 131, 255);
  font-size: 30px;
  width: 50px;
  height: 50px;
  border: none;
  background: white;
  top: 50px;
}

.left-arrow {
  left: 50px;
  box-shadow: 2px 2px 0px rgb(0 0 0 / 13%);
  cursor: pointer;
}

.right-arrow {
  left: 80px;
  box-shadow: 2px 2px 3px 0px rgb(0 0 0 / 13%);
  cursor: pointer;
}

.character {
  display: flex;
  align-items: center;

  img {
    height: 150px;
  }
}

.btn-real-dent {
  /*周りの凹み*/
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: rgba(3, 169, 244, 0.54);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  text-align: center;
  background: #f7f7f7;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08);
  font-weight: 500;
  font-family: "Stick", serif;
}

.btn-real-dent i {
  /*ボタン自体*/
  position: absolute;
  content: "";
  width: 80px;
  height: 80px;
  line-height: 80px;
  left: 10px;
  top: 9px;
  border-radius: 50%;
  font-size: 40px;
  background-image: linear-gradient(#e8e8e8 0%, #d6d6d6 100%);
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 2px 2px rgba(0, 0, 0, 0.19);
  border-bottom: solid 2px #b5b5b5;
}

.btn-real-dent i:active {
  box-shadow: none;
}

footer {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translate(50%, -50%) rotate(90deg);
  transform-origin: center center;
  font-family: "Cherry Bomb One";
  color: #164dba;
  font-size: 12px;
}

@media screen and (max-width: 480px) {
  body {
    overflow: scroll;
    height: auto;
  }
  header {
    position: static;
    background-image: linear-gradient(
        78deg,
        rgba(255, 84, 54, 0.8),
        rgba(255, 255, 255, 0)
      ),
      linear-gradient(185deg, rgba(69, 54, 255, 0.8), rgba(255, 255, 255, 0)),
      linear-gradient(340deg, rgb(0 53 153 / 80%), rgba(255, 255, 255, 0));
  }

  h1 {
    letter-spacing: 5px !important;
  }

  .background-name {
    font-size: 3em;
    left: 50%;
    /* 横方向の中央位置 */
    transform: translateX(-50%);
    /* 要素の幅の半分だけ左に移動して中央揃え */
  }

  .main-wrapper {
    flex-wrap: wrap;
  }

  .name {
    width: 100%;
  }
  .arrow-background {
    padding: 10px;
  }
  .carousel {
    width: 90%;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 400px;
  }

  .name small {
    margin-left: auto;
  }
  .character {
    margin-top: 30px;
    justify-content: center;

    img {
      width: 120px;
      height: auto;
    }
  }

  footer {
    position: static;
    text-align: center;
    background-image: linear-gradient(
        78deg,
        rgba(255, 84, 54, 0.8),
        rgba(255, 255, 255, 0)
      ),
      linear-gradient(185deg, rgba(69, 54, 255, 0.8), rgba(255, 255, 255, 0)),
      linear-gradient(340deg, rgb(0 53 153 / 80%), rgba(255, 255, 255, 0));
    transform: none;
    color: #ffffffc7;
    margin-top: 50px;
  }
}
