body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.tpbn-container {
    width: 100%;
    padding: 2px;
    display: flex;
    justify-content: center;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid lightgray;
    margin-bottom: 10px;
}

.tpbn-button {
    background-color: white;
    border: 1px solid lightgray;
    padding: 2px 6px;
    margin: 4px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: xx-small;
    text-align: center;
    text-decoration: none;
    color: #333;
    position: relative; /* ツールチップのために相対位置指定 */
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* 現在選択中のページのボタンのスタイル */
.tpbn-button.active {
    background-color: silver;
    color: gray;
    font-weight: bold;
    border: 1px solid gray;
    box-shadow: 0 -2px -4px rgba(0, 0, 0, 0.2);
}

.tpbn-button:hover {
    background-color: #87cefa;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* カスタムツールチップのデザイン */
.tpbn-button::after {
    content: attr(data-tooltip); /* ツールチップのテキストを取得 */
    position: absolute;
    top: 150%; /* ボタンの下に表示 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(135, 206, 235, 0.2); /* 水色の淡い色を半透明に設定 */
    color: rgba(0,0,0, 0.7);
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 10px; /* ツールチップのフォントサイズ */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* ふんわりとした黒い文字のシャドウ */
}

.tpbn-button:hover::after {
    opacity: 1;
    visibility: visible;
}

.tpbn-buttons-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}
