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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #8b2635;
    background: linear-gradient(135deg, #fef7f0 0%, #f7e6d7 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #8b2635 0%, #a0323e 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(139, 38, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.site-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #f8d7da;
}

.site-description {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 300;
    color: #f1c2c7;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8d7da 0%, #f1c2c7 100%);
    margin-bottom: 3rem;
    border-radius: 20px;
    margin-top: 2rem;
    overflow: hidden;
    border: 2px solid #e6a8b0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 38, 53, 0.3);
    transition: transform 0.3s ease;
    border: 3px solid #d4a5a5;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-text h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    color: #8b2635;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #a0323e;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: #6b1e2a;
    line-height: 1.8;
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    color: #8b2635;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8b2635, #d4a5a5);
    border-radius: 2px;
}

.section-title i {
    margin-right: 0.5rem;
    color: #d4a5a5;
}

/* Featured Video */
.featured-video {
    margin-bottom: 3rem;
}

.video-card.featured {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(139, 38, 53, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #f8d7da;
}

.video-card.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(139, 38, 53, 0.25);
}

.video-card.featured .video-info {
    padding: 2rem;
}

.video-card.featured .video-title {
    font-size: 1.5rem;
    color: #8b2635;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-card.featured .video-description {
    color: #6b1e2a;
    margin: 1rem 0;
    line-height: 1.6;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(139, 38, 53, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1c2c7;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 38, 53, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 38, 53, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    color: #8b2635;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: #6b1e2a;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.video-date {
    color: #a0323e;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.video-description {
    color: #6b1e2a;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Buttons */
.watch-button, .watch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8b2635, #a0323e);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.watch-button:hover, .watch-link:hover {
    background: linear-gradient(135deg, #7a1f2e, #8b2635);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 38, 53, 0.3);
}

.watch-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8b2635 0%, #7a1f2e 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f8d7da;
    font-weight: 600;
    font-family: 'Noto Serif JP', serif;
}

.footer-section p, .footer-section li {
    color: #f1c2c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #f1c2c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.map-link {
    margin-top: 1rem;
}

.map-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.map-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1c2c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card.featured .video-info {
        padding: 1.5rem;
    }
    
    .video-card.featured .video-title {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Focus styles for accessibility */
.nav-link:focus,
.watch-button:focus,
.watch-link:focus {
    outline: 2px solid #d4a5a5;
    outline-offset: 2px;
}

/* Search container styles (for JavaScript-added search) */
.search-container {
    display: flex;
    max-width: 400px;
    margin: 1rem auto;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #f8d7da;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: white;
    color: #8b2635;
}

.search-input:focus {
    border-color: #8b2635;
}

.search-input::placeholder {
    color: #a0323e;
}

.search-button {
    background: #8b2635;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #7a1f2e;
}

/* Scroll to top button styles */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #8b2635;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(139, 38, 53, 0.3);
}

.scroll-to-top:hover {
    background: #7a1f2e;
    transform: scale(1.1);
}

/* Loading screen styles */
.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

