body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #E7E7FF;
    color: #515151;
    max-width: 800px;
    width: 100%;
    margin: auto;
    font-family: "Kosugi Maru", sans-serif;
    font-style: normal;
    padding-top: 80px;
    min-height: 100vh; /* 画面全体の高さを確保 */
}

main {
    flex-grow: 1;
}

h3, h4, h5 {
    text-align: center;
    margin-bottom: 24px;
}

p {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

table {
    border-radius: 10px;
}

td, th {
    text-align: center;
}

form {
    max-width: 520px;
    margin: 0 auto;
}

.form-control::placeholder {
    color: #ccc; /* 色を薄いグレーに設定 */
    opacity: 0.7; /* 透明度を調整 */
}

ul {
    font-size: 20px;
    padding: 0;
    width: fit-content; /* コンテンツ幅に調整 */
    margin: 24px auto; /* 中央揃え */
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffb6c1; /* 優しいピンク */
    z-index: 1000; /* 他の要素よりも前面に表示 */
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* 画面の中央に配置 */
    width: inherit; /* 親の幅に合わせる */
}

.header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px #ff69b4; /* タイトルにシャドウを追加 */
}

.header .icon {
    font-size: 3rem;
    margin-right: 15px;
    color: #fff;
}

.title {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
    color: #3B3BFF;
    font-weight: bold;
}

.description {
    font-size: 16px;
    width: fit-content; /* コンテンツ幅に調整 */
    margin: 24px auto; /* 3中央揃え */
    border: 2px solid #666666; /* 四角の枠線を追加 */
    padding: 18px; /* 枠線とテキストの間に余白を作成 */
    border-radius: 24px; /* 角を少し丸くしたい場合 */
    max-width: 480px;
    background-color: white;
}

.custom-button {
    display: inline-block;
    width: 240px;
    max-width: 320px;
    min-width: 120px;
    padding: 12px 24px;
    background-color: white;
    color: #515151;
    text-align: center;
    border-radius: 24px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 影を追加 */
}

.custom-shadow-button {
    display: inline-block;
    width: 240px;
    max-width: 320px;
    min-width: 120px;
    padding: 12px 24px;
    background-color: gray;
    color: #515151;
    text-align: center;
    border-radius: 24px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 影を追加 */
}

.custom-button:hover {
    background-color: #B3B3FF;
    transform: scale(1.05); /* 少し大きく */
}

.back-button {
    position: relative;
    width: 56px;
    height: 32px;
    background-color: #515151;;
    color: white;
    text-align: center;
    border-radius: 16px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 影を追加 */
}

.back-button:hover {
    background-color: #B3B3FF;
    transform: scale(1.05); /* 少し大きく */
}

/* ツールチップのスタイル */
.back-button:hover::after {
    content: "前のページに戻る"; /* ツールチップの内容 */
    position: absolute;
    top: -40px; /* ボタンの上に表示 */
    left: 120%;
    transform: translateX(-50%);
    background-color: #ffb6c1; /* 柔らかいピンク */
    color: #515151;
    padding: 8px 12px;
    border-radius: 15px; /* 丸みを強調 */
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 少し影を追加 */
    z-index: 10; /* 前面に表示 */
    opacity: 1; /* 表示状態 */
    visibility: visible; /* 表示状態 */
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* 初期状態では非表示 */
.back-button::after {
    content: ''; /* ツールチップなし */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px); /* 初期位置を少し下に */
}

.small-button {
    width: 48px;
    background-color: white;
    color: #515151;
    text-align: center;
    border-radius: 16px;
    border-color: #515151;
}

.small-button:hover {
    background-color: #B3B3FF;
}

#music-button {
    /* font-size: 1.5em; */
    font-size: 16px;
    padding: 8px 16px;
    border: none;
    border-radius: 16px; /* 角を丸くする */
    background-color: #ffb6c1; /* パステルピンク */
    color: #515151;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* 影を追加 */
    display: inline-flex;
    align-items: center;
}

#music-button:hover {
    background-color: #ffccf9; /* 明るいピンクに変化 */
    transform: scale(1.05); /* 少し大きく */
}

#music-icon {
    margin-right: 10px;
    animation: bounce 1s infinite; /* アイコンを動かす */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px); /* 少し浮かび上がる動き */
    }
}

.button {
    display: flex;
    justify-content: center;
}

/* セーブデータ表示画面 */
.progress-box {
    background-color: white;
    border: 2px solid #ffccd5; /* 少し濃いピンクの枠線 */
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 440px;
    margin: 20px auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* ふんわりとした影 */
    text-align: center;
    cursor: pointer; /* クリック可能カーソル */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-box-detail {
    background-color: white;
    border: 2px solid #ffccd5; /* 少し濃いピンクの枠線 */
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    margin: 20px auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* ふんわりとした影 */
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-box:hover {
    transform: scale(1.02); /* ホバー時に少し拡大 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* ホバー時に影を強調 */
    background-color: #ffccd5;
}

  /* ボックスのヘッダー部分 */
.progress-box-header {
    font-size: 18px;
    font-weight: bold;
    color: #515151; /* 目立つピンク */
    margin-bottom: 15px;
}

.progress-box-button {
    all: unset; /* デフォルトのボタンスタイルをリセット */
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

  /* コンポーネント内部 */
.progress-bar-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.progress-bar-container {
    flex: 1;
    height: 16px;
    background-color: #ffe4e9;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff99cc, #ff66b2);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.progress-label {
    margin-left: 10px;
    font-size: 16px;
    color: #ff66b2;
    font-weight: bold;
}

/* 全体のテーブルスタイル */
.custom-pink-table {
    border: 1px solid #ffccd5;
    border-radius: 20px;
    overflow: hidden;
}

/* ヘッダーのスタイル */
.custom-pink-table thead th {
    background-color: #ffccd5; /* ピンクの背景色 */
    color: #721c24;           /* ダークピンクの文字色 */
    font-weight: bold;
    text-align: center;
    border: none;
}

/* セルの境界線と文字のスタイル */
.custom-pink-table tbody td {
    border-top: 1px solid #f8d7da; /* ピンクの境界線 */
    text-align: center;
    color: #515151;
    padding: 8px;
}

/* ホバースタイル */
.custom-pink-table tbody tr:hover {
    background-color: #ffd5dc; /* ホバー時のピンク色 */
}

.footer {
    background-color: #ffb6c1;
    color: #fff;
    text-align: center;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.footer-container {
    margin: 20px auto;
}
