:root {
    --primary-color: #1a222c; /* 深い藍墨 */
    --secondary-color: #d35400; /* アクセントの赤褐色 */
    --background-color: #111827; /* 非常に濃い藍色 */
    --text-color: #e5e7eb; /* 薄いグレー */
    --gold-color: #c5a34c; /* 少し落ち着いた金色 */
    --gold-gradient: linear-gradient(90deg, #c5a34c, #e6c570);
    --card-bg: #1f2937; /* カード背景色 */
    --border-color: #374151; /* ボーダー色 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    background-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

header {
    background-color: transparent;
    padding: 2.5rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-family: 'Shippori Mincho', serif;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(229, 231, 235, 0.15);
    font-size: calc(1.5rem + 2.5vw);
}

#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1583012508343-3b414a139587?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: .5rem;
    padding: 6rem 2rem;
}

#hero h2 {
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#hero .btn-primary {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.85rem 2rem;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#hero .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(197, 163, 76, 0.4);
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.card {
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.ticket-card {
    display: flex;
    flex-direction: column;
}

.ticket-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ticket-card .card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.ticket-card .card-text {
    color: var(--text-color);
    flex-grow: 1;
}

.ticket-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin-top: auto; /* This pushes the footer to the bottom */
}

.btn {
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gold-gradient);
    border: none;
    color: var(--primary-color);
    font-weight: bold;
}
.btn-primary:hover {
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(197, 163, 76, 0.3);
    transform: translateY(-2px);
}

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

#details .card {
    background-color: var(--card-bg);
}
#details .list-group-item {
    background-color: transparent;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}
#details .list-group-item:last-child {
    border-bottom: none;
}

footer {
    background-color: transparent;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
}

/* Gallery Styles */
.gallery-img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.modal-content h4 {
    font-family: 'Shippori Mincho', serif;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Styles for generic section content block */
.section-block-content {
    background-color: rgba(31, 41, 55, 0.7);
    padding: 3rem 1.5rem;
    border-radius: .5rem;
    backdrop-filter: blur(10px);
}

/* Styles for generic inner text wrapper */
.section-inner-text {
    max-width: 90%;
    margin: 0 auto;
    padding: 1.5rem 0.75rem;
    text-align: justify;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gold-color);
}

/* Presented by Logos */
.presented-by-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.presented-by-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}