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

th {
    color: #000080;
}

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

select
{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    border: 1px;
}

/* テーブル全体のスタイル */
table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
    background-color: #ffffe0;
}

table, th, td {
    border: 0.1rem solid black;
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    border-bottom: 0.15rem double black; /* ヘッダーとの境を二重線に設定 */
}

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

.result-top {
    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;
    }

    th {
        font-size: 2.2rem;
    }

    td {
        font-size: 2rem;
    }

    select {
        font-size: 1.5rem;
    }

    table {
        width: 85%;
    }

    th, td {
        padding: 0.5rem;
    }

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

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

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

    th {
        font-size: 2rem;
    }

    td {
        font-size: 1.5rem;
    }

    select {
        font-size: 1.2rem;
    }

    table {
        width: 85%;
    }

    th, td {
        padding: 0.5rem;
    }

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

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

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

    th {
        font-size: 1.2rem;
    }

    td {
        font-size: 1rem;
    }

    select {
        font-size: 1rem;
    }

    table {
        width: 90%;
    }

    th, td {
        padding: 0.5rem;
    }

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

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

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

    th {
        font-size: 1rem;
    }

    td {
        font-size: 0.9rem;
    }

    select {
        font-size: 0.8rem;
    }

    table {
        width: 90%;
    }

    th, td {
        padding: 0.5rem;
    }

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

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