.anime-text {
    color: var(--anime-card-text-default-color);
}
.back-color {
    background-color: var(--anime-cardsection-backdefault-color);
}
.anime-meta-text {
    color: var(--anime-card-metainfo-default-color);
}

.top-contents-column {
    display: flex;
}

.contents {
    display: flex;
    flex-direction: column;
}

.main-group-sec {
    display: flex;
    flex-direction: row;
}

.episode-container {
    width: 100%;
}

.episode-detail {
    width: auto;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* タイトル */
.episode-detail h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

.episode-en-title {
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}

/* 放送日 */
.episode-detail p {
    margin-bottom: 20px;
    font-size: 1em;
}

/* 画像 */
.episode-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.episode-image {
    justify-self: anchor-center;
}

/* あらすじ */
.episode-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--anime-card-arasuzi-default-color);
}

.episode-video {
    text-align: center;
}

/* 動画 */
.episode-video iframe {
    width: 80%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    aspect-ratio: 16/9;
}

/* ナビゲーション */
.episode-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.episode-nav a {
    background: #007BFF;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    flex: 1;
    min-width: 120px;
    transition: background 0.3s;
}

.episode-nav a:hover {
    background: #0056b3;
}

/* 戻るリンク */
a.back-to-detail {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    padding: 10px 15px;
    text-decoration: none;
    background: #6c757d;
    color: #fff;
    border-radius: 8px;
    transition: background 0.3s;
}

a.back-to-detail:hover {
    background: #5a6268;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .episode-detail {
        margin: 20px 15px;
        padding: 20px;
    }

    .episode-detail h1 {
        font-size: 1.6em;
    }

    .episode-image img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .episode-description {
        font-size: 1em;
    }

    .episode-video iframe {
        width: auto;
    }

    .episode-nav a {
        flex: 1 1 100%;
    }
}