/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, main, section, .section, section#music.section, .upload-container, .upload-form, .music-gallery, .music-card, .upload-form input, .upload-form label, .upload-btn, .file-selection, h2, .music-meta, .music-title, .music-artist, .music-year {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #000 !important;
    min-height: 100vh;
    background-attachment: fixed !important;
}

/* ヘッダーとナビゲーション */
header {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

/* メインコンテンツ */
main {
    margin-top: 80px;
}

section#music.section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

h2 {
    display: none !important;
}

.upload-form {
    margin-bottom: 1.5rem !important;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('band-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* セクション共通スタイル */
section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* 音楽セクション */
.music-grid {
    max-width: 800px;
    margin: 0 auto;
}

.upload-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
}

.upload-form {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 2rem !important;
}

.upload-form input[type="file"] {
    margin-bottom: 1rem;
}

/* 削除ボタンのスタイル */
.delete-btn {
    background-color: #ff4444;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #cc0000;
}

/* 既存のボタンスタイルを更新 */
button {
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #333;
}

/* 削除ボタン以外のボタンに適用 */
button:not(.delete-btn) {
    background-color: #1a1a1a;
}

button:not(.delete-btn):hover {
    background-color: #333;
}

/* 写真セクション */
.photo-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* ブログセクション */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-form {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.blog-form input,
.blog-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.blog-form textarea {
    height: 200px;
    resize: vertical;
}

/* バンドについてセクション */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* フッター */
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    section, .section, section#music.section {
        padding: 2rem 1rem;
    }
}

/* 音楽プレイヤーのスタイル */
.music-item {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.music-item h3 {
    margin-bottom: 0.5rem;
}

.music-item audio {
    width: 100%;
    margin: 0.5rem 0;
}

/* 写真ギャラリーのスタイル */
.photo-item {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.photo-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* ブログ投稿のスタイル */
.blog-post {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.blog-post h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* アップロードフォームのスタイル */
.upload-form {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 2rem !important;
    text-align: center;
}

.upload-form input[type="file"] {
    margin-bottom: 1rem;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* レスポンシブデザインの追加 */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .music-item {
        padding: 0.8rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
}

/* 動画セクションのスタイル */
.video-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #000;
}

.video-item h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.video-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* レスポンシブデザインの更新 */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
    
    .video-item {
        padding: 0.8rem;
    }
}

/* アップロード中の表示 */
.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-item.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 2rem;
}

.video-item.loading p {
    margin-top: 1rem;
    color: #666;
}

.error {
    color: #ff4444;
    text-align: center;
    margin: 1rem 0;
}

/* アップロード完了の表示 */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

.success-message p {
    color: #4CAF50;
    font-weight: bold;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* アップロード中の表示の更新 */
.video-item.loading,
.photo-item.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.video-item.loading p,
.photo-item.loading p {
    margin: 1rem 0;
    color: #666;
}

/* キャンセルボタンのスタイル */
.cancel-btn {
    background-color: #ff9800;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #f57c00;
}

/* 進捗バーのスタイル */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 0.5rem 0 1rem 0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: #3498db;
    border-radius: 4px;
    transition: width 0.2s;
}

.remaining-time {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* 音楽ギャラリーのスタイル */
.music-gallery {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    overflow-x: auto !important;
    align-items: flex-start !important;
    width: 100% !important;
    background: transparent !important;
}

.music-card {
    min-width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 auto !important;
    margin-bottom: 1rem !important;
}

.music-cover {
    width: 100% !important;
    max-width: 220px !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    border-radius: 12px 12px 0 0 !important;
    background: #333 !important;
}

.music-meta {
    color: #fff !important;
    text-align: center;
    margin: 1rem 0 0.5rem 0;
}

.music-title {
    font-weight: bold;
    display: block;
    font-size: 1.1rem;
}

.music-artist, .music-year {
    font-size: 0.95rem;
    color: #fff !important;
    display: block;
}

.music-card audio {
    width: 90%;
    margin-top: 0.5rem;
}

/* アップロード関連のスタイル */
.upload-container {
    margin: 2rem 0;
    text-align: center;
}

.file-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.select-btn {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    margin-right: 1rem;
}

.select-btn:hover {
    background-color: #7f8c8d;
}

.upload-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #45a049;
}

.upload-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.selected-files {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

input[type="file"] {
    display: none;
}

/* セクションのスタイル */
.section {
    padding: 2rem;
    margin: 2rem 0;
    background: transparent !important;
    border-radius: 8px;
    box-shadow: none !important;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

section#music.section {
    padding: 4rem 2rem;
}

section#music.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

section#music.section .upload-container {
    margin: 2rem 0;
    text-align: center;
}

section#music.section .file-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

section#music.section .select-btn {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    margin-right: 1rem;
}

section#music.section .select-btn:hover {
    background-color: #7f8c8d;
}

section#music.section .upload-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

section#music.section .upload-btn:hover {
    background-color: #45a049;
}

section#music.section .upload-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

section#music.section .selected-files {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

section#music.section input[type="file"] {
    display: none;
}

section#music.section .music-player {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .music-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    .music-card {
        width: 100%;
        min-width: 0;
        margin: 0 auto 1rem auto;
        border-radius: 10px;
        padding-bottom: 1rem;
    }
    .music-cover {
        border-radius: 10px 10px 0 0;
        height: auto;
        max-height: 220px;
        object-fit: cover;
    }
    .music-meta {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    .music-title {
        font-size: 1.1rem;
    }
    .music-artist, .music-year {
        font-size: 0.95rem;
    }
    .upload-container, .section, .about-section {
        padding: 1rem 0.5rem;
    }
    header nav {
        flex-direction: column;
        padding: 0 0.5rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .nav-links li {
        margin: 0 0.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

/* --- アーティストヒーロー（パララックス） --- */
.artist-hero {
    position: relative;
    width: 100%;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)), url('rafull.jpg') center/cover no-repeat !important;
}

.artist-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.artist-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 24px #000a;
    margin-bottom: 1rem;
}

.artist-info {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 8px #000a;
}

.artist-info h1 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.artist-followers {
    font-size: 1rem;
    margin-bottom: 0.7rem;
    color: #e0e0e0;
}

.shuffle-btn {
    background: #00cfff;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.6rem 2.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 8px #0004;
    cursor: pointer;
    transition: background 0.2s;
}

.shuffle-btn:hover {
    background: #009bbf;
}

/* --- 音楽セクションをartist-heroの背景上に重ねる --- */
section#music.section {
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.upload-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 2rem;
}

.upload-form {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    padding: 2rem 0;
    border-radius: 0;
    margin-bottom: 2rem;
}

.music-gallery {
    background: rgba(0,0,0,0.7);
    border-radius: 16px;
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .artist-hero {
        height: 220px;
        margin-bottom: 0;
    }
    .artist-photo {
        width: 80px;
        height: 80px;
    }
    .artist-info h1 {
        font-size: 1.3rem;
    }
    .shuffle-btn {
        font-size: 0.95rem;
        padding: 0.5rem 1.5rem;
    }
    section#music.section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    section, .section, section#music.section {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* --- 最終強制上書き --- */
body, main, section, .section, section#music.section, .upload-container, .upload-form, .music-gallery, .music-card, .music-item, .music-meta, .music-title, .music-artist, .music-year, .file-selection, .upload-btn, .select-btn, .selected-files {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    color: #fff !important;
}

.music-card {
    background: rgba(20,20,20,0.95) !important;
}

.section, section#music.section, .music-gallery {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.music-gallery {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 2rem !important;
}

.music-card {
    margin: 1rem !important;
}

.music-main {
    display: flex;
    width: 100%;
    min-height: 500px;
    background: transparent;
    color: #fff;
    gap: 2rem;
    margin-top: 2rem;
}

.music-list {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: transparent;
}

.music-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30,30,30,0.8);
    border-radius: 8px;
    padding: 0.7rem 1rem;
}

.music-list-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #222;
}

.music-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.music-artist {
    font-size: 0.95rem;
    color: #aaa;
}

.artist-visual {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.artist-bg {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    object-fit: cover;
    opacity: 0.85;
    box-shadow: 0 4px 32px #000a;
}

.music-list-horizontal {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 2rem 1rem 2rem;
    background: transparent;
}

.music-card {
    min-width: 160px;
    max-width: 180px;
    background: #181818;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0006;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
}

.music-card img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.7rem;
}

.music-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #fff;
}

.music-artist {
    color: #aaa;
    font-size: 0.95rem;
}

.music-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.music-list-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00cfff;
    letter-spacing: 0.05em;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.upload-music-btn {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.upload-music-btn:hover {
    background: #218838;
}

.music-shuffle-btn {
    background: #00cfff;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.music-shuffle-btn:hover {
    background: #009bbf;
}

.music-card {
    position: relative;
}

.play-btn {
    position: absolute;
    right: 12px;
    bottom: 60px;
    background: #00cfff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #0006;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.play-btn:hover {
    background: #009bbf;
}

.now-playing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(0,0,0,0.85);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    margin: 2rem auto 1rem auto;
    max-width: 520px;
    box-shadow: 0 4px 32px #000a;
}
.now-playing img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    background: #222;
}
.now-playing-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.now-playing-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.5rem;
}
.now-playing-artist {
    font-size: 1.1rem;
    color: #00cfff;
} 