body {
    margin: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

#whats-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2% 4%; /* パディングを相対単位に変更 */
    box-sizing: border-box;
    width: 100%;
    font-size: 2vw; /* ビューポート幅に基づくフォントサイズ */
}

#whats-new h2 {
    margin: 0;
    padding: 0 0; /* 相対単位のパディング */
    text-align: center;
    width: 100%;
    font-weight: normal;
}

#news-content {
    margin-top: 1%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.news-item {
    display: flex; /* フレックスボックスでレイアウト */
    padding: 1%;
    border-bottom: 1px solid #909090;
    margin-bottom: 1%;
    box-sizing: border-box;
}

.date {
    flex: 0 0 auto; /* 日付は固定幅 */
    margin-right: 10px; /* 日付とテキストの間の余白 */
}

.text {
    flex: 1; /* テキストが残りのスペースを占める */
    overflow-wrap: break-word; /* 長い単語も折り返す */
    white-space: normal; /* テキストを折り返す */
}

#pagination {
    text-align: center;
    padding: 1vh 0; /* 相対単位のパディング */
    position: absolute;
    bottom: 3vh;
    z-index: 100;
    white-space: nowrap;
    overflow-x: visible;
    overflow-y: visible;
    user-select: none;
    align-self: center;
}

#page-numbers {
    display: inline-block;
    white-space: nowrap;
}

.page-link, .nav-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5%; /* 相対単位のマージン */
    padding: 0.5vh; /* 相対単位のパディング */
    border-radius: 50%;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
    text-align: center;
    font-size: 0.5vw; /* ビューポート幅に基づくフォントサイズ */
    width: 1vw; /* 相対単位の幅 */
    height: 1vw; /* 相対単位の高さ */
    line-height: 1vw; /* 高さと一致させる */
    user-select: none;
}

.page-link::before, .nav-button::before {
    content: attr(data-content);
    font-size: 0.5vw; /* 相対単位のフォントサイズ */
}

.page-link:hover, .nav-button:hover {
    background-color: #ddd;
}

.page-link.active {
    background-color: #224a72;
    color: white;
    border-color: #007bff;
}

.nav-button:disabled {
    cursor: not-allowed;
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

@media (max-width: 700px) {
    .page-link, .nav-button {
        padding: 0.25vh;
        margin: 0 0.25%; /* 相対単位のマージン */
        font-size: 1.5vw; /* ビューポート幅に基づくフォントサイズ */
        width: 5vw; /* 相対単位の幅 */
        height: 5vw; /* 相対単位の高さ */
        line-height: 5vw;
    }
}
