:root {
    --primary-color: #0F1215;
    /* 漆黒 */
    --primary-light: #1c232e;
    --secondary-color: #8E1F2F;
    /* 紅色（アクセント） */
    --gold-color: #C5A059;
    /* 和の金 */
    --gold-light: #E6C570;
    --text-color: #ffffff;
    --text-muted: #e5e5e5;
    --border-color: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(20, 25, 35, 0.7);
    --card-bg: rgba(10, 10, 12, 0.95);
    /* Even darker and more opaque */
    --gold-gradient: linear-gradient(135deg, #C5A059 0%, #F5DCA0 50%, #C5A059 100%);
    --font-serif: 'Shippori Mincho', 'Zen Old Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

/* Helper for readability on dark bg */
.text-muted {
    color: var(--text-muted) !important;
}

/* Force white text in cards for clarity */
.card,
.card-body,
dd,
p {
    color: #ffffff;
}

/* Reset & Base */
body {
    font-family: var(--font-sans);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 2;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-padding {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero-main-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .message-box {
        padding: 2rem !important;
    }
}

.bg-darker {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 4rem;
    position: relative;
    display: table;
    margin: 0 auto 4rem;
    background: linear-gradient(to right, #fff, #bbb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold-color);
    margin: 1.5rem auto 0;
}

.highlight-text {
    color: var(--gold-color);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.8;
}

/* Header */
header {
    background: rgba(15, 18, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-logo {
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
}

.btn-outline-gold {
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold-color);
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    width: 100%;
    /* background-image is handled via overlay or separate element if needed,
       but here we rely on dark background + canvas particles */
    /* If original had an image, we can keep it as a dark overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('images/hero_bg.jpg');
    /* Fallback or new image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* If image doesn't exist, fallback to dark gradient */
#hero {
    background: linear-gradient(135deg, #0f1215 0%, #1a222c 100%);
}

.hero-main-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, #fff 30%, #bbb 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 2rem;
}

.hero-main-title .in-place {
    font-size: 0.4em;
    display: block;
    margin-top: 0.5rem;
    color: var(--text-color);
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--gold-light);
    letter-spacing: 0.2em;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.8;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.6;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--gold-color);
    border-bottom: 1px solid var(--gold-color);
    padding: 1.5rem 3rem;
    display: inline-block;
}

.hero-time {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--gold-light);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    margin: 10px auto 0;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* About Section */
.about-text-content p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Cards (Tickets & Details) */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    /* Slightly rounded, almost sharp for "Bushi" feel */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-family: var(--font-serif);
    color: #fff;
    margin-bottom: 0.5rem;
}

.price-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-color);
    font-weight: bold;
}

.ticket-img-wrapper {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
    /* Square as requested */
    border-bottom: 1px solid var(--border-color);
}

.ticket-img-wrapper.small {
    /* No longer distinct, revert to standard square if consistent look desired, or keep specific sizing if needed. 
       User asked for "square display", implying uniformly. */
    aspect-ratio: 1/1;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
}

.ticket-img-wrapper.original-ratio {
    aspect-ratio: auto;
    height: auto;
}

.ticket-img-wrapper.original-ratio .card-img-top {
    height: auto;
    object-fit: contain;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover fills the square */
    transition: transform 0.5s ease;
}

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

/* Buttons */
.btn-primary {
    background: var(--gold-gradient);
    border: none;
    color: #000;
    /* Dark text on gold */
    font-family: var(--font-sans);
    font-weight: 600;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 2px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: width 0.3s ease;
    opacity: 0.3;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

/* Detail List */
dt {
    color: var(--gold-color);
    font-weight: normal;
    font-family: var(--font-serif);
}

/* Gallery */
.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(30%);
    transition: all 0.5s ease;
}

.gallery-img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Presented By */
.presented-by-logo {
    max-height: 60px;
    opacity: 1;
    filter: none;
    transition: all 0.3s ease;
}

.presented-by-logo:hover {
    opacity: 0.8;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(10, 12, 15, 0.9);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--primary-light);
    border: 1px solid var(--gold-color);
    color: var(--text-color);
}

.modal-close {
    background: var(--gold-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Custom Utilities */
.tracking-widest {
    letter-spacing: 0.25em;
}