


.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5px;
    background-color: #fffaf2;
  }
  
.title {
      text-shadow: 1px 1px 1px #000, 2px 2px 1px #888;
    }


  header {
    background-image:url("img/bg1.png");
    display: flex;
    align-items: center;
    color: yellow;
  }
  
  header img {
    width: 42px;
    height: auto;
    margin-right: 10px;
    margin-left: 10px;
  }
  
  h1 {
    color: yellow;
    font-size: 42px; /* h1の文字の大きさを32pxに変更 */
    font-weight: bold;
  }
  

  .explain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .explain img {
    width: 80%;
    margin-bottom: 10px;
  }


  section {
    margin-bottom: 80px;
  }
  
  h2 {
    color: #666;
  }
  
  #topranker {
    font-weight: bold;
    color: #ebc108;
    text-shadow: #000000;
  }

  #cards {
    flex-wrap: wrap; 
    display: flex;
    justify-content: center;
  }


  .cat-card {
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
  }
  
  .cat-card img {
    width: 175px;
    height: 140px;
    margin-bottom: 10px;
  }
  

  

.explain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .explain img {
    margin-bottom: 10px;
  }
  
  .instruction-images {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .instruction-images img {
    max-width: 200px;
    height: auto;
  }
  
  .player-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
  }
  
  .player-info img {
    width: 150px;
    height: auto;
    margin-right: 20px;
  }
  
  .player-description h3 {
    margin-bottom: 10px;
  }
  
  .player-description p {
    color: #666;
  }
  


  video {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
  }



  h2 {
    margin-bottom: 20px;
  }


  .download-section, .ranking-section {
    text-align: center;
    max-width: 90%; /* 必要に応じて値を調整してください */
  }
  
  
  .download-section,
  .ranking-section {
    flex: 1 0 20em; /* 適切な最小幅を設定してください */
    margin: 1em;
    background-color: #ffffff;
    border: 2px solid #f0e4e4da;
    padding:20px;
  }
  

  .download-ranking {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap-reverse;
  }

  
  .download-link {
    display: inline-block;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
  }


  
  .ranking-window {
    padding: 10px;
    background-color: #f5f5f5;
    border: 2px solid #f0e4e4da;
    border-radius: 10px;
    max-height: 200px; /* or any other value that suits your design */
    overflow-y: auto;
  }
  
  .explain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .explain img {
    margin-bottom: 10px;
  }


  .footer {
    margin-top: 50px;
    position: relative;
  }
  
  .footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    background-image: url("img/tree.png");
    background-repeat: no-repeat;
    width: 73px; /* 画像の幅に合わせて調整してください */
    height: 150px; /* 画像の高さに合わせて調整してください */
  }


  .footer a {
    color: #000; /* リンクの色を選択 */
    margin-left: 50px;
    margin-right: 50px; /* リンク間の間隔を設定 */
    text-decoration: none; /* アンダーラインを削除 */
  }
  
  .footer a:hover {
    color: #a34040; /* マウスオーバー時のリンクの色 */
    font-weight: bold;
  }


  
/* モバイルデザイン */
@media (max-width: 768px) { /* 適切なブレイクポイントを設定してください */
  .download-ranking {
    flex-direction: column-reverse;
    align-items: center;
  }
  .download-section {
    margin-bottom: 0.5em; /* 下の余白を調整 */
  }
}


/* テーブルのスタイル */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 5px;
  text-align: center;
}

th:first-child,
td:first-child {
  text-align: left;
}

/* 順位イメージと数字のスタイル */
img {
  vertical-align: middle;
  margin-right: 5px;
}