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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダーとナビゲーション */
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 {
    padding: 4rem 2rem;
}

/* ヒーローセクション */
.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-form {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.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 {
        padding: 2rem 1rem;
    }
}

/* 音楽プレイヤーのスタイル */
.music-item {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.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: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    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: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.music-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.music-item:hover {
    transform: translateY(-5px);
}

.music-info {
    margin-bottom: 1rem;
}

.music-info h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.music-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

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

.music-item .delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.music-item .delete-btn:hover {
    background-color: #c0392b;
}

/* アップロード関連のスタイル */
.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: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.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;
} 