body {
    background-color: #d6f5d6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 0.5rem;
}

h2, h3 {
    color: #003366;
}

h4 {
    color: #ff8c00;
}

textarea {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
}

.counter-table td {
    padding: 1rem;
}

/* 画像をCSSで指定 */
.ball-top {
    width: 4rem;
    height: auto;
}

.kouji-chu {
    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;
}

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

    h3 {
        font-size:1.8rem;
    }

    h4 {
        font-size:2rem;
    }

    .counter-table td img {
        width: 10rem;
        height: auto;
    }

    .ball-top {
        width: 3.5rem;
        height: auto;
    }

    .kouji-chu {
        width: 3.5rem;
        height: auto;
    }

    textarea {
        font-size:1rem;
        height: 11rem;
        width: 60%;
    }
}

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

    h3 {
        font-size:2rem;
    }

    h4 {
        font-size:1.8rem;
    }

    .ball-top {
        width: 2.6rem;
        height: auto;
    }

    .kouji-chu {
        width: 2.6rem;
        height: auto;
    }

    .counter-table td img {
        width: 8rem;
        height: auto;
    }

    textarea {
        font-size:1rem;
        height: 11rem;
        width: 80%;
    }
}

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

    h3 {
        font-size:1.2rem;
    }

    h4 {
        font-size:1.4rem;
    }

    .ball-top {
        width: 1.8rem;
        height: auto;
    }

    .kouji-chu {
        width: 1.8rem;
        height: auto;
    }

    .counter-table td img {
        width: 6rem;
        height: auto;
    }

    textarea {
        font-size:0.8rem;
        height: 9rem;
        width: 80%;
    }
}

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

    h3 {
        font-size:1rem;
    }

    h4 {
        font-size:1rem;
    }

    .ball-top {
        width: 1rem;
        height: auto;
    }

    .kouji-chu {
        width: 1rem;
        height: auto;
    }

    .counter-table td img {
        width: 4rem;
        height: auto;
    }

    textarea {
        font-size:0.5rem;
        height: 6rem;
        width: 85%;
    }
}
