@charset "utf-8";

*, *:before, *:after {
  box-sizing: border-box;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
body {
  font-size: 15px;
  line-height: 1.6; /* 読みやすさ向上のために行間を追加 */
  margin: 0; /* 余白をリセット */
  padding: 0; /* 余白をリセット */
}

.headerTop img {
  height: 130px;
  object-fit: fill;
  display: block;
  margin: 40px auto;
}

ul {
  padding-left: 0;
}

h1 {
  text-align: center;
  padding-top: 70px;
  padding-bottom: 40px;
  font-size: 25px;
}

h2 {
  font-size: 18px;
}

/* no3-2 斜線区切り hover時背景色変更2 */
.no3-2 {
  text-align: center;
}
.no3-2 ul li {
  list-style: none;
  display: inline-block;
  width: 10%;
  -webkit-transform: skewX(150deg);
  -moz-transform: skewX(150deg);
  transform: skewX(150deg);
  border-right: 2px solid dimgray;
  background-color: black;
}
.no3-2 ul li a {
  display: block;
  text-decoration: none;
  padding: 5px 0;
  color: black;
  transform: skewX(-150deg);
  color: white;
}
.no3-2 ul li:last-child {
  border-right: 0;
}
.no3-2 ul li:hover {
  opacity: 0.8; /* hover時の不透明度を調整します */
}

section {
  background-color: whitesmoke;
  display: flex;
  border-radius: 5px;
}

aside {
  width: 20%;
}

main {
  text-align: center;
  width: 80%;
}

/* 複数画像切り替え */
.slide {
  position: relative; /* コンテナ内でスライド位置を相対的に設定 */
  width: 100%; /* コンテナ幅を100%に */
  height: 320px; /* コンテナの高さを固定 */
  overflow: hidden; /* スライドがコンテナ外に出ないように非表示 */
}

.slideimg {
  position: absolute; /* 位置を絶対指定で重ねて配置 */
  width: 100%; /* スライド画像の幅を100%に */
  height: 100%; /* スライド画像の高さを100%に */
  top: 0; /* 上からの位置を0に */
  left: 0; /* 左からの位置を0に */
  opacity: 0; /* 初期状態で透明に */
  background-size: cover; /* 画像をスライド全体にカバー */
  background-position: center center;
  animation: slideAnime 15s infinite; /* 15秒で1サイクルのアニメーションを無限ループ */
}

@keyframes slideAnime {
  0%, 30%, 100% { opacity: 0; } /* 非表示のタイミングを設定 */
  10%, 20% { opacity: 1; } /* 表示されるタイミングを設定 */
}

/* 各スライドのアニメーションタイミングを均等にずらす */
.slideimg:nth-of-type(1) {
  background-image: url(../image/mainLogo2.png); /* 1枚目の画像を指定 */
  animation-delay: 0s; /* アニメーション開始を0秒遅延 */
}
.slideimg:nth-of-type(2) {
  background-image: url(../image/mainLogo3.png);
  animation-delay: 3s;
}
.slideimg:nth-of-type(3) {
  background-image: url(../image/mainLogo4.png);
  animation-delay: 6s;
}
.slideimg:nth-of-type(4) {
  background-image: url(../image/mainLogo2.png);
  animation-delay: 9s;
}
.slideimg:nth-of-type(5) {
  background-image: url(../image/mainLogo4.png);
  animation-delay: 12s;
}

.farst {
  margin-top: 80px;
  font-size: 18px;
}

.mainfunction {
  margin-top: 80px;
}
.mainfunction ul li {
  list-style: none;
  margin: 16px 0;
}
.mainfunction ul li span {
  background: linear-gradient(transparent 80%, rgba(0,0,0,0.2) 80%);
}

.recommendation {
  margin-top: 80px;
  margin-bottom: 8px;
}
.recommendation ul li {
  list-style: none;
  margin: 16px 0;
}
.recommendation ul li span {
  background: linear-gradient(transparent 80%, rgba(0,0,0,0.2) 80%);
}

.lasty {
  margin-top: 80px;
}
.lasty p {
  margin: 24px 0;
  font-weight: bold;
}

.download-btn {
  text-decoration: none;
  display: inline-block;
  width: 300px;
  padding: 20px;
  margin: 3%;
  text-align: center;
  background: #000;
  color: #fff;
  transition: all 0.3s;
}
.download-btn:hover, .download-btn:focus {
  color: #fff;
  opacity: 0.8;
}

footer {
  text-align: center;
}

@media (max-width: 960px) {
  /* レスポンシブデザインのためのスタイル */
}
@media (max-width: 430px) {
  .no3-2 ul li {
    width: 60px;
    font-size: 8px;
  }
  .farst p span::after {
    content: "\A";
    white-space: pre;
  }
  aside {
    width: 10%;
  }
  main {
    text-align: center;
    width: 90%;
  }
  .farst p {
    font-size: 13px;
  }
  .mainfunction {
    font-size: 13px;
  }
  .mainfunction ul li span::after {
    content: "\A";
    white-space: pre;
  }
  .recommendation {
    font-size: 13px;
  }
  .lasty {
    font-size: 15px;
  }
  .download-btn {
    width: 190px;
    font-size: 13px;
  }
  footer {
    font-size: 15px;
  }
}