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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Noto Sans JP', 'Kosugi Maru', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.8;
    color: #FFFFFF;
    background-color: #0A0A0A;
    overflow-x: hidden;
    letter-spacing: 0.05em;
}

/* Color Variables */
:root {
    --night: #0A0A0A;
    --deep-sky: #0E1A2B;
    --aura-blue: #3B7CFF;
    --halo-gold: #FFD449;
    --pure-white: #FFFFFF;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Zen Antique', 'Shippori Mincho', 'Noto Sans JP', serif;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Japanese Typography Styles */
.title-sub, .section-sub, .panel-sub, .blessing-sub, .nav-sub, .cta-sub, .social-sub, .footer-sub {
    font-family: 'Bangers', cursive;
    font-size: 0.6em;
    display: block;
    margin-top: 0.2em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.panel-text-en, .blessing-text-en, .join-text-en, .community-emphasis-en, .subtitle-en {
    font-size: 0.85em;
    opacity: 0.6;
    margin-top: 0.8em;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    line-height: 1.4;
}

/* Utility Classes */
.aura-glow {
    filter: drop-shadow(0 0 12px var(--halo-gold)) drop-shadow(0 0 28px var(--aura-blue));
}

.holy-bg {
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(59,124,255,.45), transparent 60%),
        radial-gradient(70% 70% at 50% 50%, rgba(255,212,73,.35), transparent 65%),
        var(--night);
}

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

/* Comic Panel Styles */
.comic-panel {
    border: 6px solid var(--night);
    border-radius: 18px;
    background: var(--pure-white);
    color: var(--night);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.comic-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, var(--night) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--night) 1px, transparent 1px);
    background-size: 20px 20px, 15px 15px;
    opacity: 0.03;
    pointer-events: none;
}

/* Watermark */
.watermark {
    position: absolute;
    font-size: 20vw;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    font-family: 'Zen Antique', 'Shippori Mincho', serif;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Japanese Design Elements */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--halo-gold), transparent);
    opacity: 0.3;
}

/* Vertical text styling for Japanese aesthetic */
.japanese-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-sub {
    font-size: 0.7em;
    opacity: 0.6;
    margin-top: 2px;
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--halo-gold);
    text-shadow: 0 0 8px var(--halo-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--aura-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 3rem;
    border-radius: 18px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: 1rem;
    text-shadow: 
        -2px -2px 0 var(--night),
        2px -2px 0 var(--night),
        -2px 2px 0 var(--night),
        2px 2px 0 var(--night),
        0 0 20px var(--aura-blue);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}


.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 3px solid;
    font-size: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-sub {
    font-size: 0.7em;
    opacity: 0.8;
    margin-top: 4px;
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.cta-button.primary {
    background: var(--aura-blue);
    color: var(--pure-white);
    border-color: var(--aura-blue);
}

.cta-button.primary:hover {
    background: var(--halo-gold);
    border-color: var(--halo-gold);
    color: var(--night);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 124, 255, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--pure-white);
    border-color: var(--pure-white);
}

.cta-button.secondary:hover {
    background: var(--pure-white);
    color: var(--night);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: 
        -1px -1px 0 var(--night),
        1px -1px 0 var(--night),
        -1px 1px 0 var(--night),
        1px 1px 0 var(--night);
}

/* Lore Section */
.lore {
    background: var(--deep-sky);
}

.comic-panels {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.panel {
    border: 6px solid var(--night);
    border-radius: 18px;
    background: var(--pure-white);
    color: var(--night);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.panel:hover {
    transform: translateY(-4px);
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, var(--night) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--night) 1px, transparent 1px);
    background-size: 20px 20px, 15px 15px;
    opacity: 0.03;
    pointer-events: none;
}

.panel-1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.panel-2 {
    grid-column: 2;
    grid-row: 1;
}

.panel-3 {
    grid-column: 2;
    grid-row: 2;
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--aura-blue);
    text-shadow: none;
}

.panel-text {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 400;
}

/* Blessings Section */
.blessings {
    background: var(--night);
}

.blessing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blessing-card {
    border: 6px solid var(--aura-blue);
    border-radius: 18px;
    background: rgba(59, 124, 255, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blessing-card:hover {
    transform: translateY(-8px);
    border-color: var(--halo-gold);
    background: rgba(255, 212, 73, 0.1);
}

.blessing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 25px 25px;
    opacity: 0.5;
    pointer-events: none;
}

.blessing-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--halo-gold);
    text-shadow: 
        -1px -1px 0 var(--night),
        1px -1px 0 var(--night),
        -1px 1px 0 var(--night),
        1px 1px 0 var(--night);
}

.blessing-text {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Gallery Section */
.gallery {
    background: var(--deep-sky);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid var(--pure-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    border-color: var(--halo-gold);
}

/* Join Section */
.join {
    background: var(--night);
    text-align: center;
}

.join-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.community-emphasis {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--halo-gold);
    font-weight: 500;
    text-shadow: 
        -1px -1px 0 var(--night),
        1px -1px 0 var(--night),
        -1px 1px 0 var(--night),
        1px 1px 0 var(--night);
}

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

.social-button {
    padding: 1rem 2.5rem;
    text-decoration: none;
    color: var(--pure-white);
    border: 3px solid var(--pure-white);
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-sub {
    font-size: 0.7em;
    opacity: 0.8;
    margin-top: 4px;
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.social-button:hover {
    background: var(--aura-blue);
    border-color: var(--aura-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 124, 255, 0.4);
}

.social-button.community-primary {
    background: var(--halo-gold);
    color: var(--night);
    border-color: var(--halo-gold);
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 4px 20px rgba(255, 212, 73, 0.3);
}

.social-button.community-primary:hover {
    background: var(--pure-white);
    border-color: var(--pure-white);
    color: var(--night);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 212, 73, 0.6);
}

/* Footer */
.footer {
    background: var(--deep-sky);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-text {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-watermark {
    position: absolute;
    font-size: 8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2001;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    filter: drop-shadow(0 0 20px var(--halo-gold)) drop-shadow(0 0 40px var(--aura-blue));
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    background: var(--pure-white);
    color: var(--night);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--halo-gold);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .nav-sub {
        font-size: 0.6em;
    }
    
    .title-sub, .section-sub {
        font-size: 0.5em;
    }
    
    .cta-sub, .social-sub {
        font-size: 0.65em;
    }
    
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    

    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .comic-panels {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .panel-1,
    .panel-2,
    .panel-3 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .blessing-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-button {
        width: 100%;
        max-width: 300px;
    }
    
    .social-button.community-primary {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }
    
    .community-emphasis {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .watermark {
        font-size: 25vw;
    }
    
    .lightbox-close {
        top: -40px;
        right: -20px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .hero-banner {
        margin-bottom: 2rem;
    }
    
    .panel {
        padding: 1.5rem;
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .panel-text {
        font-size: 1rem;
    }
    
    .blessing-card {
        padding: 2rem 1.5rem;
    }
    
    .blessing-title {
        font-size: 1.8rem;
    }
    
    .blessing-text {
        font-size: 1.1rem;
    }
    
    .join-text {
        font-size: 1.2rem;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--halo-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .aura-glow {
        filter: none;
        border: 2px solid var(--halo-gold);
    }
    
    .watermark {
        display: none;
    }
}
