

/* デフォルトの説明文スタイル */
.default-content {
    text-align: center;
    color: #fff;
    padding: 4rem 2rem;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.default-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.default-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}




.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.tutorial-tooltip {
    position: fixed;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 300px;
}

.tutorial-pointer {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: pulse 1.5s infinite;
}

.tutorial-highlight {
    position: relative;
    z-index: 9999;
    animation: highlight-pulse 1.5s infinite;
}

.tutorial-buttons {
    margin-top: 10px;
    text-align: right;
}

.tutorial-buttons button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.tutorial-buttons button:hover {
    background: #0056b3;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}




/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #003007, #00021a);
    padding-top: 70px; /* ヘッダーの高さ分 */
}

/* ヘッダーの固定表示設定 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1500;
}

/* メインコンテンツエリアの修正 */
.main-content {
    margin-left: 250px; /* 左サイドバーに合わせて修正 */
    padding: 2rem;
    min-height: calc(100vh - 70px);
    
}


/* タグセクションの修正 */
.tag-section {
    margin-bottom: 2rem;
}

.tag-section h2 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #d4d4d4;
}

/* タググループの修正 */
.tag-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* タグアイテムの修正 */
.tag-item {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.8rem;
    user-select: none;
    color: #333;
}

/* チェックボックスのカスタマイズ */
.tag-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.tag-item:hover input ~ .checkmark {
    background-color: #ccc;
}

.tag-item input:checked ~ .checkmark {
    background-color: #007bff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.tag-item input:checked ~ .checkmark:after {
    display: block;
}

.tag-item .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* サイトタイトルのスタイル */
.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s ease forwards;
    min-width: 200px;
}

/* 検索バーのコンテナ */
.search-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: calc(100% - 400px);
}

/* 検索バーのスタイル改善 */
.search-bar {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}


.search-bar:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* 右ハンバーガーメニュー */
.menu-btn {
    width: 30px;
    height: 24px;
    position: fixed;
    right: 2rem;
    top: 23px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.5s ease 0.4s forwards;
    z-index: 2000;
}

.menu-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.4s ease;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 11px; }
.menu-btn span:nth-child(3) { bottom: 0; }

/* ハンバーガーメニューのアニメーション */
.menu-btn.open span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.menu-btn.open span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
}

/* 右サイドバーの基本スタイル */
.sidebar {
    position: fixed;
    top: 70px; /* ヘッダーの高さ分下げる */
    right: -300px;
    width: 300px;
    height: calc(100vh - 70px); /* ビューポートの高さからヘッダーの高さを引く */
    background-color: rgba(240, 240, 240, 0.9);  /* 白 80% */
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 2rem;
    z-index: 1000;
    overflow-y: auto; /* コンテンツが多い場合にスクロール可能に */
}

.sidebar.open {
    right: 0;
}

/* プロフィール画像のスタイル改善 */
.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* プロフィール画像のコンテナ */
.profile-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

/* サイドバーのナビゲーションリンク */
.sidebar-links {
    margin-bottom: 2rem;
}

.sidebar-links a {
    display: block;
    padding: 1rem 0;
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    border-bottom: 1px solid #000000;
    font-weight: bold;
}


.sidebar-links a:hover {
    color: #007bff;
}


/* SNSアイコンのグリッド */
.social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 5px;
}

.social-icons a:hover {
    color: #007bff;
    background-color: #f8f9fa;
}



/* 左サイドバーのスタイル修正 */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 300px;
    height: calc(100vh - 70px);
    background: linear-gradient(to bottom, rgba(230,100,101,0.8), rgba(145,152,229,0.3));
    padding: 2rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 900;
    overflow-y: auto;
}


/* カードタグのスタイル修正 - 視覚的に非表示にする */
.card-tags {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tag {
    /* タグ自体も非表示にする */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    
}




.tag:hover {
    background-color: #e0e0e0;
}

/* チェックボックススタイルの改善 */
.tag-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #eee;
}

.tag-item input[type="checkbox"] {
    margin-right: 0.5rem;
}


/* カードグリッドのスタイル */
.course-grid {
    display: none;  /* 初期状態は非表示 */
}

/* カードグリッドの表示状態 */
.course-grid.visible {
    display: grid;
    grid-template-columns: 1fr;  /* 1列レイアウト */
    gap: 1.5rem;
    padding: 2rem;
    width: calc(100% - 180px);  /* 左サイドバーとマージンを考慮 */
    margin: auto;
}


/* カード本体のスタイル */
.course-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 200px;  /* カードの高さを固定 */
}


.course-card.highlighted {
    transform: translateY(-3px);
    border: 2px solid rgba(0, 123, 255, 0.3);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 画像エリアのスタイル */
.course-image {
    flex: 0 0 240px;  /* 画像の幅を固定 */
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* カードコンテンツエリアのスタイル */
.course-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* 上下に要素を分散 */
}

/* タイトルエリアの調整 */
.course-details h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    flex: 0 0 auto; /* サイズを固定 */
}

/* ダウンロードボタングループの修正 */
.download-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; 
    margin-top: auto; 
}



/* ダウンロードボタンの調整 */
.download-btn {
    width: 100%; 
    padding: 0.6rem 0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* MIDIボタン */
.download-btn.midi {
    background-color: #007bff;
    color: white;
}
.download-btn.midi:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* MP3ボタン */
.download-btn.mp3 {
    background-color: #28a745;
    color: white;
}
.download-btn.mp3:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}

/* カードタグのスタイル */
.card-tags {
    display: none;  /* タグを非表示に */
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}


/* 左サイドバーのフッター部分 */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

/* 設定ボタンとチュートリアルボタンの共通スタイル */
.sidebar-footer button {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    backdrop-filter: blur(5px);
}

.settings-btn {
    background: rgba(0, 123, 255, 0.8);
}

.settings-btn:hover {
    background: rgba(0, 98, 204, 0.9);
    transform: translateY(-2px);
}

/* チュートリアルボタン */
.tutorial-restart-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: rgba(40, 167, 69, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tutorial-restart-btn:hover {
    background: rgba(30, 126, 52, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 左サイドバーの内容がボタンと重ならないようにパディングを追加 */
.left-sidebar .tag-section {
    padding-bottom: 80px; /* ボタンの高さ分の余白 */
}


/* タグエリアのスタイル改善 */
.card-tags {
    display: none;
}


.tag {
    background-color: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag:hover {
    background-color: #e0e0e0;
}


/* フッター */
.site-footer {
    margin-left: 300px;
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* タグカウントのスタイル */
.tag-count {
    color: #c0c0c0;
    font-size: 0.85em;
    margin-left: 0.5rem;
}

/* タグアイテムの調整 */
.tag-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #eee;
}



/* アニメーション */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* タグマッチ表示のアニメーション */
@keyframes tagMatch {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 12px rgba(0,123,255,0.2);
    }
    100% {
        transform: translateY(-3px);
        box-shadow: 0 6px 8px rgba(0,123,255,0.15);
    }
}

.course-card.highlighted {
    animation: tagMatch 0.5s ease forwards;
}


