body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    padding-top: 150px; /* ヘッダーとタブの高さ分 */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8e7e7; /* タブの背景色と同じに */
    z-index: 1001; /* タブコンテナよりも上に */
    padding: 15px 20px;
}


.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #e74c8c; /* ピンク色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-container {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    background-color: #f8e7e7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.tab-button {
    background-color: #fff;
    color: #e74c8c; /* ピンク */
    border: none;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e74c8c; /* ピンク */
    color: #fff;
    transform: translateY(-2px);
}

.tab-button:active {
    transform: translateY(2px);
}

.tab-button:focus {
    outline: 2px solid #e74c8c; /* フォーカス時の枠線 */
    outline-offset: -2px; /* 枠線を少し内側に */
}

.tab-button.active {
    background-color: #e74c8c; /* ピンク */
    color: #fff;
}

.tab-content {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    border: 1px solid #e7e7e7; /* 白系統 */
    transition: opacity 0.3s ease, transform 0.3s ease; /* 表示と消去にアニメーション */
}

.tab-content:not(.active) {
    opacity: 0;
    transform: scale(0.95); /* 非表示時は少し小さく */
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: scale(1); /* 表示時は元のサイズ */
}

.genre-section {
    margin-bottom: 2em;
}

.genre-section h2 {
    color: #333;
    border-bottom: 2px solid #ff69b4;
    padding-bottom: 10px;
}

/* ボタンスタイルの縦サイズを統一 */
.button {
    background-color: #ff69b4;
    color: #fff;
    border: none;
    padding: 10px 20px; /* パディングをボイス一覧と同じに */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px; /* フォントサイズをボイス一覧と同じに */
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-height: 40px; /* 最小高さを設定 */
    max-height: 50px; 
    box-sizing: border-box; /* パディングがサイズに影響を与えないように */
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.button:hover {
    background-color: #ff1493;
    transform: translateY(-2px);
}

.button:focus {
    outline: 2px solid #e74c8c;
    outline-offset: -2px;
}


/* 切り抜き元一覧のスタイル */
#kirinuki-list {
    background-color: #fffaf0; /* 柔らかいクリーム色 */
    border: 1px solid #ffe4e1; /* 淡いピンクのボーダー */
}

#kirinuki-list .url-item {
    background-color: #fff;
    border: 1px solid #f0e68c; /* 淡い黄色のボーダー */
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#kirinuki-list .url-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#kirinuki-list a {
    font-weight: bold;
    color: #8b4513; /* サドルブラウン */
}

#kirinuki-list a:hover {
    color: #d2691e; /* チョコレート */
}

/* 各リンクのスタイル */
#link-list {
    background-color: #f5f5dc; /* ベージュ */
    border: 1px solid #faebd7; /* アンティークホワイト */
}

#link-list .link-item, #link-list .hashtag-item {
    background-color: #fff;
    border: 1px solid #dda0dd; /* プラム */
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

#link-list .link-item:hover, #link-list .hashtag-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 各リンクの文字色を再検討 */
#link-list a {
    font-weight: bold;
    color: #1a237e; /* インディゴブルー、ダークな青 */
}

#link-list a:hover {
    color: #303f9f; /* 少し明るい青 */
}

#link-list h2 {
    color: #4682b4; /* スティールブルー */
}

/* ちゃうメーカーのスタイル */
#asobi-list {
    background-color: #faebef; /* 非常に淡いピンク */
    border: 1px solid #e9967a; /* ダークサーモン */
    border-radius: 10px;
    padding: 20px;
}

#asobi-list h1 {
    color: #8b4513; /* サドルブラウン */
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9967a; /* ダークサーモン */
    padding-bottom: 10px;
}

#asobi-list button {
    background-color: #ffa07a; /* ライトサーモン */
    color: #463434; /* ダークブラウン */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    margin: 10px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#asobi-list button:hover {
    background-color: #e9967a; /* ダークサーモン */
    transform: translateY(-3px);
}

#asobi-list button:active {
    transform: translateY(0px);
}

#asobi-list button:disabled {
    background-color: #f4a460; /* サンディブラウン */
    cursor: not-allowed;
}

#selected-voices {
    margin-top: 20px;
    padding: 15px;
    background-color: #fffaf0; /* フラワーホワイト */
    border-radius: 5px;
    border: 1px solid #e9967a; /* ダークサーモン */
}

#selected-voices .voice-item {
    padding: 5px;
    margin-bottom: 5px;
    background-color: #fff5ee; /* シービシェル */
    border: 1px solid #ffdead; /* ナバホホワイト */
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

#selected-voices .voice-item:hover {
    background-color: #ffe4e1; /* ピンクっぽいクリーム色 */
    transform: translateY(-3px);
}

#selected-voices .voice-item:active {
    transform: translateY(0px);
}

/* 順番の表示 */
#selected-voices .voice-item::before {
    content: attr(data-order) ". ";
    font-weight: bold;
    color: #8b4513; /* サドルブラウン */
    margin-right: 5px;
}

/* 再生中のアニメーション */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.button.playing {
    animation: none; /* アニメーションを取り除く */
    background-color: #ffdead; /* ナバホホワイト */
    color: #8b4513; /* サドルブラウン */
    transition: background-color 0.3s; /* 背景色の変化にアニメーションを付ける */
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 再生中のアニメーション */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.voice-item.playing {
    animation: pulse 1s infinite;
    background-color: #ffe4e1; /* 再生中は背景色を変える */
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .button {
        font-size: 12px; /* フォントサイズを小さく */
        padding: 8px 15px; /* パディングを調整 */
        min-height: 35px; /* 最小高さを調整 */
        max-height: 50px; /* 最大高さを50pxに設定 */
    }
}

@media (max-width: 480px) {
    .button {
        font-size: 10px; /* さらに小さい画面ではフォントサイズをさらに小さく */
        padding: 6px 10px; /* パディングをさらに調整 */
        min-height: 30px; /* 最小高さをさらに調整 */
        max-height: 50px; /* 最大高さを50pxに設定 */
    }
}

/* レスポンシブデザインのためのメディアクエリ */
@media (max-width: 768px) {
    .tab-container {
        flex-direction: column; /* 縦に並べ替え */
        align-items: center; /* 中央揃え */
    }

    .tab-button, .button, #asobi-list button {
        width: 80%; /* 幅を画面幅の80%に */
        margin: 0.5em 0; /* 上下のマージンを調整 */
    }

    .tab-content {
        width: 95%; /* タブコンテンツの幅を広げる */
    }

    #selected-voices .voice-item {
        font-size: 14px;
    }
}

/* ジャンル別の全体レイアウト */
#genre-list {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ジャンル別タブの見出し色を緑に */
#genre-list h1 {
    margin-bottom: 20px;
    color: #43a047; /* ダークグリーン */
    border-bottom: 2px solid #43a047; /* ダークグリーンの下線 */
    padding-bottom: 10px;
}

.genre-container {
    display: flex;
    gap: 20px;
}

.genre-buttons {
    flex: 0 0 20%; /* 左側の幅を固定 */
    max-width: 200px; /* 最大幅を設定 */
}

/* ジャンルボタンの色を緑系統に */
.genre-button {
    background-color: #e8f5e9; /* ライトグリーン */
    color: #43a047; /* ダークグリーン */
    border: 1px solid #43a047; /* ボーダーもダークグリーン */
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.genre-button:hover {
    background-color: #a5d6a7; /* ホバー時の背景色 */
    color: #1b5e20; /* ホバー時のテキスト色 */
    transform: translateY(-2px);
}

.genre-button.active {
    background-color: #43a047; /* アクティブ時の背景色 */
    color: #fff; /* アクティブ時のテキスト色 */
}


/* ジャンルコンテンツのスタイル */
.genre-content {
    flex: 1; /* 右側の内容に残りのスペースを割り当て */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.genre-content .button {
    width: 100%;
    padding: 10px; /* パディングを追加 */
    min-height: 40px; /* 最小の高さを設定 */
    font-size: 14px; /* フォントサイズを設定 */
    text-align: center;
    box-sizing: border-box; /* パディングがサイズに影響を与えないように */
}


/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .genre-buttons {
        flex: 0 0 25%; /* 中間サイズで少し幅を広げる */
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .genre-buttons {
        flex: 0 0 30%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .genre-container {
        flex-direction: column;
    }

    .genre-buttons {
        flex: none;
        max-width: 100%;
    }

    .genre-button {
        width: 100%;
        text-align: center;
    }

    .genre-content {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* グリッドサイズを小さく */
    }

    .genre-content .button {
        font-size: 12px; /* フォントサイズを小さく */
        min-height: 35px; /* 最小高さを調整 */
    }
}

@media (max-width: 480px) {
    .genre-content {
        grid-template-columns: 1fr; /* 1列に */
    }

    .genre-button {
        font-size: 14px; /* フォントサイズを小さく */
        padding: 8px 10px; /* パディングを調整 */
    }

    .genre-content .button {
        font-size: 10px; /* さらに小さい画面ではフォントサイズをさらに小さく */
        min-height: 30px; /* 最小高さをさらに調整 */
    }
}

/* オススメセクションのスタイル */
#recommended-section h2 {
    color: #1a237e; /* リンクの文字色と同じに */
    margin-bottom: 10px;
}

#recommended-section a {
    display: block;
    color: #1a237e;
    text-decoration: none;
    margin-bottom: 15px;
}

#recommended-section a:hover {
    color: #303f9f;
}

/* オススメセクションのスタイル */
.highlighted-recommendation {
    background-color: #ffebee; /* 非常に淡いピンク */
    border: 3px solid #ff4081; /* 鮮やかなピンクのボーダー */
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* より強い影 */
    animation: pulse-border 2s infinite; /* アニメーションを追加 */
}

@keyframes pulse-border {
    0% {
        border-color: #ff4081;
    }
    50% {
        border-color: #ff1493;
    }
    100% {
        border-color: #ff4081;
    }
}

.highlighted-recommendation h2 {
    color: #ff1744; /* 鮮やかな赤 */
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse-text 2s infinite; /* テキストにもアニメーション */
}

@keyframes pulse-text {
    0% {
        color: #ff1744;
    }
    50% {
        color: #ff4081;
    }
    100% {
        color: #ff1744;
    }
}

.highlighted-recommendation a {
    display: inline-block; /* inline-blockに変更 */
    color: #0d47a1; /* 濃い青 */
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    background-color: #bbdefb; /* 淡い青背景 */
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px 0; /* リンク間のマージンを追加 */
}

.highlighted-recommendation a:hover {
    background-color: #90caf9; /* ホバー時の背景色 */
    color: #002171; /* より濃い青 */
    transform: translateY(-5px); /* 浮き上がる効果 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


.button:active {
    transform: scale(0.95); /* クリックしたときにボタンが少し小さくなる */
    background-color: #ff1493; /* クリック時の一時的な背景色変更 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* クリック時の影の強調 */
}

/* ちゃうメーカーのボタンも同様の効果 */
#asobi-list button:active {
    transform: scale(0.95);
    background-color: #ff1493;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ジャンルボタンも同様の効果 */
.genre-button:active {
    transform: scale(0.95);
    background-color: #a5d6a7; /* ジャンルボタン用に調整 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
