body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #e0e4e8;
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
    position: relative;
}

#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2f3e46;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.water {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    border-radius: 43%;
    animation: wave 3s linear infinite;
    animation-direction: alternate;
}

.layer1 {
    background: rgba(0, 119, 190, 0.8);
    opacity: 0.9;
    animation-duration: 2.5s;
}

.layer2 {
    background: rgba(0, 153, 204, 0.6);
    opacity: 0.7;
    animation-duration: 2s;
    animation-delay: -1s;
}

.layer3 {
    background: rgba(0, 187, 221, 0.4);
    opacity: 0.5;
    animation-duration: 3s;
    animation-delay: -1.5s;
}

.layer4 {
    background: rgba(0, 221, 238, 0.3);
    opacity: 0.3;
    animation-duration: 3.5s;
    animation-delay: -2s;
}

.layer5 {
    background: rgba(255, 140, 0, 0.2);
    opacity: 0.3;
    animation-duration: 3s;
    animation-delay: -2s;
}

.layer6 {
    background: rgba(255, 69, 0, 0.2);
    opacity: 0.2;
    animation-duration: 4s;
    animation-delay: -2.5s;
}

@keyframes wave {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-100%);
    }
}

.loading-text {
    font-size: 1.5em;
    color: #9ec6cc;
    display: flex;
    animation: float 3s ease-in-out infinite, fadeIn 2s forwards;
    animation-delay: 2s;
}

.loading-text span {
    animation: floatUp 1s ease-in-out infinite, rotate 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

body.loaded #loader {
    opacity: 0;
    transition: opacity 1s ease-out;
    pointer-events: none;
}

body.loaded main {
    opacity: 1;
    transition: opacity 1s ease-in;
}


header {
    text-align: center;
    background-color: #2f3e46;
    color: #ffffff;
    padding-bottom: 20px;
}

header img {
    width: 100%;
    height: auto;
}

header h1 {
    font-size: 1.5em;
    margin: 10px 0;
}

.dj-info {
    font-size: 0.9em;
}

.dj-info p, .dj-info a {
    margin: 5px 0;
    color: #9ec6cc;
    text-decoration: none;
}

.dj-info a:hover {
    text-decoration: underline;
}

audio {
    display: block;
    width: 85%;
    margin: 10px  auto;
}

.track-list {
    margin: 0px;
    padding: 5px;
    background-color: #5E8B7E; /* 落ち着いた緑色 */
    color: #ffffff;
    font-size: 1.2em;
    position: relative;
}

.track-items {
    background-color: #FFFFFF; /* 落ち着いた緑色 */
    padding: 5px; /* 表示時のパディング */
    margin:5px;
    border-radius: 5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.5s ease; /* パディングのトランジションを追加 */
}

.track-items.open {
    padding: 5px; /* 表示時のパディング */
    max-height: 1000px;
    opacity: 1;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.track-item .time {
    color: #f2a3a3; /* 調整された色 */
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 1.5em; /* 文字サイズを大きくする */
	    cursor: pointer;
}

.track-item .title {
    color: #6a8eae; /* 調整された色 */
    flex-grow: 1;
    font-size: 1.2em; /* 文字サイズを大きくする */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none; /* クリックイベントを無効にする */
}

.track-item .remix {
    font-size: 0.8em;
}

.track-item.close-button {
    color: #d46a6a;
    font-weight: bold;
    justify-content: flex-start;
    padding-left: 10px;
    border-left: 5px solid #d46a6a;
}

.track-item.active .time,
.track-item.active .title {
    font-weight: bold;
    color: #d46a6a; /* 強調色 */
}

.track {
    box-sizing: border-box;
    padding: 20px;
    background-color: #e0e4e8; /* 落ち着いた緑色 */
    border-bottom: 1px solid #ccc;
 	transition: opacity 1s, transform 1s;
    opacity: 0;
    transform: translateY(0%);
    position: absolute;
    width: 100%;
}

.track.active {
    opacity: 1;
    transform: translateX(100);
}

.track.out {
    opacity: 0;
    transform: translateX(-100%);
}

.track-info {
    padding: 10px;
    background: linear-gradient(to bottom right, #f2f2f2, #d9d9d9);
    border-radius: 5px;
    margin-bottom: 10px;
}

.track-info p {
    margin: 5px 0;
}

.track-info .time, .track-info .title, .track-info .artist {
    font-size: 0.9em;
    font-weight: bold;
}

.track-info .year {
    font-size: 0.8em;
    margin-left: 5px;
}

.track-info .description {
    font-size: 0.8em;
    margin-top: 10px;
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.8;
    padding: 10px;
    font-kerning: auto;
    letter-spacing: 0.05em;
}



.controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 10px;
    background-color: #2f3e46;
    color: #ffffff;
}

.control-button {
    padding: 10px;
    margin: 0 5px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
}

#prevTrack {
    width: 25%;
    background-color: #6a8eae;
    color: white;
}

#nextTrack {
    width: 25%;
    background-color: #6a8eae;
    color: white;
}

#playPause {
    width: 50%;
    background-color: #d46a6a;
    color: white;
}

#playPause.pause {
    background-color: #f2a3a3;
}




audio {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.2em;
    }

    .dj-info, .track-list {
        font-size: 0.8em;
    }

    .click-icon, .track-item, .top-button {
        font-size: 0.8em;
    }

    audio {
        width: 95%;
    }
}

