/* Records2.css - Enhanced design for ensemble.html */

/* Color Variables */
:root {
    --main-color: #80c9ec;
    --accent-color: #ffcf4a;
    --secondary-color: #9eb4ba;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Records Container */
#records {
    margin-top: 1rem;
    margin-right: 1rem;
    margin-left: 1rem;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Album Cover Section */
#records .img {
    text-align: center;
    margin-bottom: 2rem;
}

#records img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

/* #records img:hover {
    transform: scale(1.02);
} */

/* Video Section */
.moive {
    margin-top: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.moive iframe {
    width: 100%;
    height: 100%;
}

/* Album Title */
#records h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--main-color);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card Sections */
.album-info-card,
.program-card,
.member-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--main-color);
    box-sizing: border-box;
    overflow: hidden;
}

/* Release Date */
.date {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

/* Album Description */
.note {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.75rem;
    font-size: 1rem;
    text-align: center;
    color: var(--text-color);
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Purchase Links */
.link {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.link div {
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Enhanced Button Styles */
.btn {
    margin: 0.5rem 0.25rem;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    background-color: var(--secondary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    will-change: transform;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.alice {
    background-color: #1387cd;
}

.booth {
    background: var(--accent-color);
    box-shadow: 0 2px 8px rgba(255, 207, 74, 0.3);
    padding: 0.6rem 1.5rem 0.6rem 1.8rem;
    font-size: 1rem;
    border-radius: 25px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.booth:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 207, 74, 0.4);
}

.booth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    will-change: left;
}

.booth:hover::before {
    left: 100%;
}

.twitter {
    background: linear-gradient(135deg, var(--secondary-color), #8ba0a6);
    box-shadow: 0 2px 8px rgba(158, 180, 186, 0.3);
}

.twitter:hover {
    background: linear-gradient(135deg, #8ba0a6, var(--secondary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 180, 186, 0.4);
}

.youtube {
    background: linear-gradient(135deg, var(--secondary-color), #8ba0a6);
    box-shadow: 0 2px 8px rgba(158, 180, 186, 0.3);
}

.youtube:hover {
    background: linear-gradient(135deg, #8ba0a6, var(--secondary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 180, 186, 0.4);
}

/* Program Card Title */
.program-card h3 {
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
}

/* Program List */
.program {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.75rem;
    background: var(--light-bg);
    padding: 1rem 1rem 1rem 2.7rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    font-family: "Courier New", monospace;
    font-size: 0.95rem;
    color: var(--text-color);
    list-style-type: decimal;
}

.program li {
    margin-bottom: 0.5rem;
    text-indent: -0.4em;
}
.program li:last-child {
    margin-bottom: 0;
}

/* 楽曲タイトル部分を太字で表示 */
.program span.song-title {
    font-weight: 700;
    margin-right: 0.3em;
}

/* ハイフン以降のアーティスト名を小さく表示 */
.program span.artist-name {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 0.3em;
}

/* Member Section */

.member > div:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 0.5rem;
}

/* Song List */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.song-item {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.song-item .song-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.part-section {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.part-section:last-child {
    margin-bottom: 0;
}

.part-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 80px;
    flex-shrink: 0;
}

.member-names {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* メンバー名内のリンク色を黒に固定 */
.member-names a,
.member-names a:visited,
.member-names a:hover,
.member-names a:active {
    color: #000000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #records h2 {
        font-size: 1.5rem;
    }
    
    .album-info-card,
    .program-card,
    .member-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .note {
        font-size: 0.95rem;
        line-height: 1.6rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }
    
    .link {
        flex-direction: column;
        align-items: center;
    }
    
    .song-list {
        gap: 1rem;
    }
    
    .song-item {
        padding: 0.75rem;
    }
    
    .song-item .song-title {
        font-size: 0.95rem;
    }
    
    .part-name {
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .member-names {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 540px) {
    #records {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .note {
        font-size: 0.9rem;
        line-height: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .song-list {
        gap: 0.75rem;
    }
    
    .song-item {
        padding: 0.5rem;
    }
    
    .song-item .song-title {
        font-size: 0.9rem;
    }
    
    .part-name {
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .member-names {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Section Dividers */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    margin: 2rem 0;
}

/* Smooth Transitions */
/* 全要素への一括指定は撤廃。必要な要素にのみ個別指定を適用する方針。
   例: #records img, .btn, .booth::before など（それぞれのセレクタで既に定義済み） */

/* Focus States for Accessibility */
.btn:focus,
.member .list > div:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
