body {
  margin-right: auto;
  margin-left: auto;
  background-color: #333333;
  color: #eeeeee;
}
.slider-container {
  position: relative; /* コンテナ内でスライド位置を相対的に設定 */
  width: 100%;
  min-height: 500px;
  overflow: hidden; /* スライドがコンテナ外に出ないように非表示 */
}

/*画像の配置*/
.slideimg {
  position: absolute; /* 位置を絶対指定で重ねて配置 */
  inset: 0; /*親要素内にフルサイズで配置*/
  opacity: 0; /* 初期状態で透明に */
  background-size: contain; /* 画像をスライド全体にカバー */
  animation: slideAnime 16s infinite; /* 1サイクル15秒を無限ループ */
  background-repeat: no-repeat;
  background-position: center;
}

/* スライド個別設定 */
.slideimg:nth-of-type(1) {
  background-image: url("../img/top1.png");
  animation-delay: 0s;
}
.slideimg:nth-of-type(2) {
  background-image: url("../img/top2.png");
  animation-delay: 8s;
}

/*タイミング設定*/
@keyframes slideAnime {
  0%,
  60% {
    opacity: 0;
  } /* 非表示のタイミング */
  10%,
  50% {
    opacity: 1;
  } /* 表示されるタイミング */
}
.flex {
  width: 90%;
  gap: 3%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.content {
  text-align: center;
  color: #000000;
}
h3 {
  text-align: center;
}
h2 {
  text-align: center;
  color: #65bbe9;
}
h1 {
  text-align: center;
  color: #65bbe9;
  font-size: 1.5em;
}
.taiken {
  max-width: 80%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.content2 {
  margin: 1%;
}
.content-boxm {
  background-color: #444444;
  padding-bottom: 20px;
  padding-right: 10px;
  padding-left: 10px;
  border-top: solid 8px #aaaaaa;
  border-bottom: solid 8px #aaaaaa;
  justify-content: center;
}

.btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 300px;
  height: 60px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn a:hover {
  color: #f2f2f2;
}
.btn a {
  background-color: #65bbe9;
  border: 1px solid transparent;
}

.btn a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #333;
}

.btn a:hover {
  background-color: #76ccfa;
  border: 1px solid #333;
}

.btn a:hover::after {
  border-color: transparent transparent transparent #f2f2f2;
}
.btn {
  margin: 0 auto;
  width: 300px;
  height: 60px;
}

@media screen and (max-width: 440px) {
  body {
    font-size: 0.8em;
  }
  .flex {
    display: flex;
    flex-wrap: wrap;
    background-color: #65bbe9;
    border-radius: 5px;
    color: #000000;
    padding: 10px;
  }
  .yokonarabiimg {
    width: 100%;
    margin: 2%;
  }
  .content {
    width: 100%;
  }
  .content-boxm {
    margin: 1%;
  }
}
@media screen and (min-width: 441px) {
  body {
    font-size: 1.2em;
  }
  .flex {
    display: flex;
    flex-wrap: wrap;
  }
  .flexi {
    display: flex;
    flex-wrap: nowrap;
  }
  .content {
    width: 30%;
    background-color: #65bbe9;
    border-radius: 5px;
    padding: 4px;
    color: #000000;
	margin: 1rem 0;
  }
  .content2 {
    width: 43%;
    background-color: #65bbe9;
    border-radius: 5px;
    padding: 10px;
    color: #000000;
  }
  .yokonarabiimg {
    width: 44.5%;
    margin: 2%;
    max-height: 500px;
  }
  .content-boxm {
    margin: 5%;
  }
}
@media screen and (min-width: 441px) and (max-width: 768px) {
  .flex .content {
    width: 90%;
	margin: 1rem 0;
  }
}
