/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f3ff;
    min-height: 100vh;
    position: relative;
}

/* Bat Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path fill="%238B5CF6" opacity="0.05" d="M20,20 C20,20 21.27,30.19 14.77,31.46 C10.53,32.14 11.46,25.30 11.46,25.30 S9.20,27.56 7.58,26.60 C5.88,27.35 3.23,25.44 3.23,25.44 C3.22,29.72 3.28,32.30 -0.40,32.29 C-4.08,32.28 -6.34,23.26 -5.71,20.88 C-15.65,24.63 -22.90,27.28 -22.90,27.28 S-11.42,31.31 -18.30,39.11 C-9.10,38.18 -8.52,43.89 -7.40,47.88 C1.44,44.90 4.64,52.06 7.40,56.41 C12.16,48.43 16.27,45.69 22.35,47.98 C23.29,40.79 27.18,37.46 33.32,39.25 C28.94,31.69 31.00,29.31 38.00,27.04 C22.94,21.75 20.07,20.69 20.07,20.69 S21.34,30.88 14.84,32.15 C10.60,32.83 11.47,25.31 11.47,25.31 S9.21,27.57 7.59,26.61 C5.89,27.36 3.24,25.45 3.24,25.45 Z" transform="translate(40,20)"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile responsive - minimal padding */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* Header */
.vampire-header {
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(107, 70, 193, 0.3);
    position: relative;
    overflow: hidden;
}

.vampire-header::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        to right,
        #FFD700,
        #FFD700 10px,
        #F5B800 10px,
        #F5B800 20px
    );
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    color: #fff;
    font-size: 14px;
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: #fff;
}

/* Main Content */
.vampire-main {
    padding: 40px 0;
    background: #fff;
    position: relative;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-size: 32px;
    color: #6B46C1;
    margin-bottom: 30px;
    line-height: 1.4;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-shadow: 2px 2px 4px rgba(107, 70, 193, 0.1);
}

.title-bat {
    margin: 0 15px;
    animation: float 3s ease-in-out infinite;
}

.title-bat:first-child {
    animation-delay: 0s;
}

.title-bat:last-child {
    animation-delay: 0.5s;
}

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

/* Images */
.main-image, .pamphlet-image, .goods-image {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.main-image img, .pamphlet-image img, .goods-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid #F5B800;
}

figcaption {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Section Styles */
.section-title {
    font-size: 28px;
    color: #6B46C1;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(to bottom, #F5B800, #FFD700);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 20px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Table of Contents */
.toc-section {
    background: linear-gradient(135deg, #f8f5ff 0%, #fff9e6 100%);
    border: 2px solid #8B5CF6;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.toc-title {
    font-size: 24px;
    color: #6B46C1;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.toc-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #FFD700;
    margin: 10px auto 0;
}

.toc-list {
    list-style: decimal;
    padding-left: 30px;
}

.toc-list li {
    margin-bottom: 10px;
    color: #6B46C1;
}

.toc-list a {
    color: #6B46C1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.toc-list a:hover {
    color: #F5B800;
    text-decoration: underline;
    padding-left: 5px;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Text Content */
.intro-text, .story-content, .review-content, .theater-content, .pamphlet-content, .bonus-content, .summary-content {
    background: #f8f5ff;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.05);
}

.intro-text p, .story-content p, .review-content p, .theater-content p, .pamphlet-content p, .bonus-content p, .summary-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* Character Comments */
.character-comment {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    position: relative;
    padding: 0 10px;
}

.character-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.character-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6B46C1;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.character-comment:hover .character-icon img {
    transform: scale(1.1) rotate(-5deg);
}

.character-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #6B46C1;
    background: #FFD700;
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.character-comment:hover .character-name {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.character-comment p {
    position: relative;
    background: linear-gradient(135deg, #FFD700 0%, #F5B800 100%);
    color: #6B46C1;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(245, 184, 0, 0.2);
    max-width: calc(100% - 140px);
    animation: bubbleIn 0.5s ease-out;
    transition: transform 0.3s ease;
}

.character-comment:hover p {
    transform: translateX(5px);
}

.character-comment:nth-of-type(even):hover p {
    transform: translateX(-5px);
}

/* Speech bubble tail */
.character-comment p::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 30%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 18px 15px 0;
    border-color: transparent #FFD700 transparent transparent;
}

.character-comment p::after {
    display: none;
}

/* Animation for speech bubbles */
@keyframes bubbleIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Alternate style for second character */
.character-comment:nth-of-type(even) {
    flex-direction: row-reverse;
}

.character-comment:nth-of-type(even) .character-name {
    background: linear-gradient(135deg, #8B5CF6 0%, #6B46C1 100%);
    color: #FFD700;
}

.character-comment:nth-of-type(even):hover .character-name {
    background: linear-gradient(135deg, #9B6DF6 0%, #7B56D1 100%);
}

.character-comment:nth-of-type(even) p::before {
    left: auto;
    right: -14.5px;
    border-width: 12px 0 12px 15px;
    border-color: transparent transparent transparent #F5B800;
    filter: drop-shadow(2px 2px 3px rgba(245, 184, 0, 0.2));
}

/* Link Buttons */
.link-button-wrapper {
    text-align: center;
    margin: 30px 0;
}

.cast-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    color: #FFD700;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
    transition: all 0.3s ease;
}

.cast-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
    background: linear-gradient(135deg, #8B5CF6 0%, #6B46C1 100%);
}

.button-icon {
    margin-right: 10px;
    font-size: 20px;
}

.button-arrow {
    margin-left: 10px;
}

/* Q&A Section */
.qa-intro {
    background: #6B46C1;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.qa-content {
    display: grid;
    gap: 20px;
}

.qa-item {
    background: linear-gradient(to right, #f8f5ff 0%, #fff 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #FFD700;
    transition: all 0.3s ease;
}

.qa-item:hover {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.question {
    color: #6B46C1;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.answer {
    color: #555;
    line-height: 1.8;
}

.answer strong {
    color: #F5B800;
    display: block;
    margin-bottom: 5px;
}

/* Info Table */
.info-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-table th {
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    color: #fff;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

.info-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.info-table tr:nth-child(even) td {
    background: #f8f5ff;
}

.external-link {
    color: #F5B800;
    text-decoration: none;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #6B46C1;
    text-decoration: underline;
}

/* Related Articles Section */
.related-articles-section {
    background: linear-gradient(135deg, #f8f5ff 0%, #fff9e6 100%);
    padding: 60px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.related-articles-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700 0%, transparent 70%);
    opacity: 0.3;
}

.related-articles-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
    opacity: 0.3;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

.related-article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-article:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article:hover .related-image img {
    transform: scale(1.1);
}

.related-title {
    padding: 20px;
    font-size: 16px;
    color: #6B46C1;
    font-weight: bold;
    line-height: 1.5;
    background: linear-gradient(to bottom, #fff 0%, #f8f5ff 100%);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.related-article:hover .related-title {
    background: linear-gradient(to bottom, #FFD700 0%, #F5B800 100%);
    color: #6B46C1;
}

/* Footer */
.vampire-footer {
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.vampire-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(
        to right,
        #FFD700,
        #FFD700 10px,
        #F5B800 10px,
        #F5B800 20px
    );
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-text, .footer-update, .footer-source {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-decoration {
    margin-top: 20px;
}

.footer-bat {
    margin: 0 10px;
    animation: float 3s ease-in-out infinite;
}

.footer-bat:nth-child(1) { animation-delay: 0s; }
.footer-bat:nth-child(2) { animation-delay: 0.5s; }
.footer-bat:nth-child(3) { animation-delay: 1s; }

/* Movie-specific decorations */
.movie-intro-section::after,
.review-section::after {
    content: '';
    display: block;
    width: 100%;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="30" viewBox="0 0 60 30"><path fill="%23F5B800" opacity="0.2" d="M15,5 Q20,0 25,5 Q30,0 35,5 Q40,0 45,5 L45,25 Q40,30 35,25 Q30,30 25,25 Q20,30 15,25 Z"/></svg>');
    background-repeat: repeat-x;
    margin: 30px 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-title {
        font-size: 24px;
    }

    .title-bat {
        width: 30px;
        height: 20px;
        margin: 0 10px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .character-comment {
        flex-direction: row;
        align-items: center;
    }

    .character-comment:nth-of-type(even) {
        flex-direction: row;
    }

    .character-icon img {
        width: 60px;
        height: 60px;
    }

    .character-name {
        font-size: 12px;
        padding: 3px 10px;
    }

    .character-comment:nth-of-type(even) .character-name {
        background: linear-gradient(135deg, #8B5CF6 0%, #6B46C1 100%);
        color: #FFD700;
    }

    .character-comment p {
        max-width: calc(100% - 100px);
        padding: 15px 20px;
        font-size: 14px;
    }

    .character-comment p::before {
        left: -10.8px;
        border-width: 8px 11px 8px 0;
        border-color: transparent #FFD700 transparent transparent;
        filter: drop-shadow(-2px 2px 3px rgba(245, 184, 0, 0.2));
    }

    .character-comment p::after {
        display: none;
    }

    .character-comment:nth-of-type(even) p::before {
        left: -14px;
        right: auto;
        border-width: 10px 15px 10px 0;
        border-color: transparent #FFD700 transparent transparent;
    }

    .character-comment:nth-of-type(even) p::after {
        display: none;
    }

    .qa-item {
        padding: 20px;
    }

    .question {
        font-size: 18px;
    }

    .info-table th, .info-table td {
        padding: 10px;
        font-size: 14px;
    }

    .intro-text, .story-content, .review-content, .theater-content,
    .pamphlet-content, .bonus-content, .summary-content {
        padding: 20px 15px;
    }
}

/* Print styles */
@media print {
    body::before {
        display: none;
    }

    .vampire-header, .vampire-footer {
        background: none;
        color: #000;
    }

    .character-comment {
        background: #f0f0f0;
        border: 1px solid #ccc;
    }

    .related-articles-section {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .title-bat,
    .footer-bat {
        animation: none;
    }

    .related-article:hover {
        transform: none;
    }

    .character-comment p {
        animation: none;
    }

    .character-comment:hover .character-icon img {
        transform: none;
    }

    .character-comment:hover p {
        transform: none;
    }

    .character-comment:nth-of-type(even):hover p {
        transform: none;
    }

    .character-comment:hover .character-name {
        transform: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f5ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #6B46C1, #8B5CF6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8B5CF6, #6B46C1);
}
