/* 基本のスタイル */
body {
    background-color: #d6f5d6;
    padding: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h2 {
    color: #003366;
    font-size: 2rem;
}

h3 {
    color: #B8860B;
    font-size: 3rem;
}

th, td {
    color: #0000FF;
    font-size: 1rem;
}

td {
    padding: 3px; /* セル内のスペースを調整 */
}

.trophy-left, .trophy-right {
    display: inline-block;
    width: 40px; /* 画像の幅を指定 */
    height: 40px; /* 画像の高さを指定 */
    background-image: url('../image/表彰台.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-first {
    display: inline-block;
    width: 50px; /* 画像の幅を指定 */
    height: 50px; /* 画像の高さを指定 */
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-second {
    display: inline-block;
    width: 50px; /* 画像の幅を指定 */
    height: 50px; /* 画像の高さを指定 */
    background-image: url('../image/準優勝.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-third {
    display: inline-block;
    width: 50px; /* 画像の幅を指定 */
    height: 50px; /* 画像の高さを指定 */
    background-image: url('../image/三位.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.top-btn {
    width: 4rem;
    height: auto;
}

.back-btn {
    width: 4rem;
    height: auto;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* 初期は非表示 */
  background-color: #d0f4de;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  z-index: 1000; /* 他の要素より上に表示 */
}

#scrollToTopBtn:hover {
  background-color: #b2e2c4;
}

/* 大きなデスクトップ向けのスタイル */
@media (min-width: 1024px) {
    h2 {
        font-size: 3.5rem;
    }

    h3 {
        font-size: 3.5rem;
    }

    th, td {
        font-size: 2rem;
    }

    .top-btn, .back-btn {
        width: 8rem;
        height: auto;
    }

    .result-top {
        width: 4.2rem;
        height: auto;
    }

    .trophy-left, .trophy-right {
        width: 4rem;
        height: auto;
    }

    .icon-first, .icon-second, .icon-third {
        width: 2rem;
        height: auto;
    }
}

/* ラップトップや小さめのデスクトップ向けのスタイル */
@media (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 3rem;
    }

    th, td {
        font-size: 1.5rem;
    }

    .top-btn, .back-btn {
        width: 7rem;
        height: auto;
    }

    .trophy-left, .trophy-right {
        width: 3rem;
        height: auto;
    }

    .icon-first, .icon-second, .icon-third {
        width: 2.5rem;
        height: auto;
    }
}

/* タブレット向けのスタイル */
@media (min-width: 481px) and (max-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    th, td {
        font-size: 1.3rem;
    }

    .top-btn, .back-btn {
        width: 6rem;
        height: auto;
    }

    .trophy-left, .trophy-right {
        width: 2.5rem;
        height: auto;
    }

    .icon-first, .icon-second, .icon-third {
        width: 1.8rem;
        height: auto;
    }
}

/* スマートフォン向けのスタイル */
@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    th, td {
        font-size: 1.1rem;
    }

    .top-btn, .back-btn {
        width: 4rem;
        height: auto;
    }

    .trophy-left, .trophy-right {
        width: 1.8rem;
        height: auto;
    }

    .icon-first, .icon-second, .icon-third {
        width: 1.5rem;
        height: auto;
    }
}

