:root {
    /* Colors */
    --primary-color: #2c3e50;
    /* Elegant Navy */
    --accent-color: #c0392b;
    /* Deep Red for accents */
    --gold-color: #8e001c;
    /* Gold for premium feel */
    --text-color: #333333;
    --light-bg: #f5f7fa;
    --white: #ffffffcc;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-padding-top: 100px;
    /* Fix for sticky header obscuring content */
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
    /* Established stacking context */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: linear-gradient(rgba(44, 62, 80, 0.6), rgba(44, 62, 80, 0.6)), url('keyvisual.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* ヘッダエリア */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 40px;
}

.logo img {
    height: 70px;
    width: auto;
    margin: 10px 0;
    transition: var(--transition);
}

.navbar .container {
    max-width: 1200px;
}



.nav-links {
    display: flex;
    gap: 25px;
    white-space: nowrap;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding-top: 100px;
    /* Prevent header overlap */
    align-items: center;
    /* Keep centering vertically */
    height: auto;
    min-height: 100vh;
    background: transparent;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.event-details {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 25px 40px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 50px;
    background-color: var(--gold-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    margin-top: 30px;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #c5a028;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.hero-qr-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.qr-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-align: center;
}

.qr-item p {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.qr-item img {
    display: block;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    /*color: var(--primary-color);*/
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background-color: var(--gold-color);
}

.bg-light {
    /*background-color: var(--light-bg);*/
    background-color: rgba(245, 247, 250, 0.80);
    color: #2c3e50;
}

.bg-dark {
    /*background-color: var(--primary-color);*/
    background: rgba(44, 62, 80, 0.75);
    color: #ffffff;
}

.text-white {
    color: var(--white) !important;
}

/* Content Components */
.content-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.program-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list span {
    font-weight: 700;
    width: 80px;
    color: var(--gold-color);
}

/* Ticket Section */
.ticket-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
    border: 2px solid var(--gold-color);
    border-radius: var(--border-radius);
    position: relative;
    color: var(--primary-color);
}

.ticket-message {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.8;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

/* Theme Box */
.theme-box {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 24px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.theme-box h3 {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.theme-box p {
    font-size: 1.1rem;
    line-height: 2;
}



.note {
    color: #888;
    margin-bottom: 40px;
}

.primary-button {
    display: inline-block;
    padding: 15px 50px;
    background-color: #3c8230;
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 800;
    transition: var(--transition);
    font-size: 1.5em;
}

.primary-button:hover {
    background-color: #34495e;
    transform: translateY(-2px);
}

.ticket-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.secondary-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: #f0f2f5;
    /* Light gray background */
    color: #444;
    /* Slightly darker text for contrast */
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.secondary-button:hover {
    background-color: #e2e6ea;
    /* Darker gray on hover */
    color: var(--primary-color);
    border-color: var(--primary-color);
}



/* Access */
.access-grid {
    grid-template-columns: 1fr 1fr;
    /* Text and Map take equal width */
    align-items: center;
    /* Vertically center content */
}

.map-placeholder iframe {
    width: 100%;
}



/* NEWS Section */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.news-date {
    font-weight: 700;
    width: 120px;
    flex-shrink: 0;
}

.news-content {}

/* Representative Section */
#representative .content-box {
    max-width: 960px;
}

.rep-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

.rep-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    flex-shrink: 0;
}

.rep-image {
    width: 250px;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rep-name {
    text-align: center;
    margin-top: 5px;
}

.rep-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.rep-name-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rep-text {
    flex-grow: 1;
}

@media (max-width: 600px) {
    .rep-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 10px;
}

/* Contact */
.contact-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-link {
    display: block;
    text-align: center;
    color: var(--gold-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Footer */
.footer {
    padding: 30px 0;
    background-color: #1a252f;
    color: #7f8c8d;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    margin-top: 5px;
    text-align: right;
    width: 100%;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Removed media query that forced row direction on desktop */

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    padding: 15px 30px;
    background-color: var(--gold-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cta:hover {
    background-color: #c5a028;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(100, 100, 100, 0.5);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    transform: rotate(-90deg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: rgba(100, 100, 100, 0.8);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1002;
    /* Ensure it is on top */
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover, contain;
    background-position: center, top center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
}

/* Utility Classes */
.mobile-only {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }

    /* Adjust Back to Top position on mobile if needed */
    .back-to-top {
        bottom: 30px;
        right: 20px;
    }

    body::before {
        /* Fix background image stretching on mobile */
        background-size: cover, contain;
        /* Gradient covers, image contains */
        background-position: center, top center;
        background-attachment: scroll;
        /* Scroll relative to the fixed element (which is the element itself) */
        background-repeat: no-repeat;
        /* Fill empty space */
        background-color: var(--primary-color);
        /* Mobile specific: Start below header */
        top: 100px;
        height: calc(100vh - 100px);
    }

    /* Sticky First Column for Ticket Table on Mobile */
    .ticket-table th:first-child,
    .ticket-table td:first-child {
        position: -webkit-sticky;
        /* For Safari */
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #fff;
        /* Ensure background is solid so scrolling content doesn't show through */
        border-right: 2px solid #e0e0e0;
        /* Distinct border for fixed column */
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
        clip-path: inset(0 -10px 0 0);
        /* Ensure box-shadow is visible on the right */
    }

    /* Specific background for header to match design */
    .ticket-table th:first-child {
        background-color: #f8f9fa;
        /* Slightly off-white for header if needed, or stick to white */
        z-index: 11;
        /* Header on top of body cells */
    }

    .logo img {
        height: 45px;
        /* Smaller logo for mobile */
        max-width: 110%;
        /* Limit width to prevent pushing hamburger off */
        object-fit: contain;
        /* Maintain aspect ratio */
    }

    /* Scale down oversized elements */
    .price {
        font-size: 2.5rem;
    }

    .event-details {
        font-size: 1.2rem;
        padding: 15px 20px;
        width: 100%;
    }

    /* QR Code Container Fix */
    .hero-qr-container {
        flex-wrap: wrap;
    }

    .qr-item img {
        width: 80px;
        height: auto;
    }

    /* Table Scroll Fix */
    .ticket-card {
        padding: 30px 15px;
        /* overflow-x: hidden; Removed to ensure sticky works */
    }

    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        padding-bottom: 5px;
        /* Scrollbar space */
    }

    .ticket-table {
        width: 100%;
        min-width: 600px;
        white-space: nowrap;
        border-collapse: separate;
        /* Changed from collapse for better sticky support */
        border-spacing: 0;
    }

    .ticket-table th,
    .ticket-table td {
        padding: 10px;
        border: 1px solid #ddd;
    }

    /* Column Widths */
    .ticket-table .col-type,
    .ticket-table .type {
        width: 120px;
        /* Fixed width for the type column */
        min-width: 120px;
        max-width: 120px;
        white-space: normal;
        /* Allow text wrapping if needed, though usually short */
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100px;
        /* Height of header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 30px;
        transform: translateY(-200%);
        /* Start hidden above */
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .font-size-control {
        margin-left: 0;
        justify-content: center;
        margin-top: 10px;
    }

    .nav-content {
        justify-content: space-between;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .rep-container {
        text-align: center;
    }

    .floating-cta {
        display: none;
    }
}

/* Privacy & Contact Section styles */
.privacy-section {
    padding: 160px 0 60px;
    min-height: 80vh;
}

.privacy-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.privacy-content li {
    margin-bottom: 5px;
    line-height: 1.8;
    padding-left: 5px;
}

.privacy-content li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.required {
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.font-brand {
    font-family: 'Staatliches', cursive;
    letter-spacing: 0.05em;
}

.optional {
    background-color: #999;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit button {
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.privacy-content a {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Font Size Control */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.size-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.size-btn:hover {
    background: rgba(44, 62, 80, 0.1);
}

.size-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Large Font Mode */
html.font-large {
    font-size: 120%;
    /* 120% magnification */
}


/* Extra Large Font Mode */
html.font-extralarge {
    font-size: 140%;
    /* 140% magnification */
}

/* Ticket Table */
.ticket-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    /* for border-radius */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-table th {
    background-color: #f0f2f5;
    color: var(--primary-color);
    padding: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--gold-color);
}

.ticket-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: var(--primary-color);
}

.ticket-table tr:last-child td {
    border-bottom: none;
}



.ticket-table .type {
    font-weight: 700;
    font-size: 1.1rem;
}

.ticket-table .price {
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    white-space: nowrap;
}

.ticket-table .price-highlight {
    color: var(--accent-color);
    font-size: 1.6rem;
}



/* Responsive Table */
@media (max-width: 600px) {

    .ticket-table th,
    .ticket-table td {
        padding: 12px 8px;
        font-size: 0.95rem;
    }



    .ticket-table .price {
        font-size: 1.1rem;
    }

    .ticket-table .price-highlight {
        font-size: 1.3rem;
    }
}

/* Ticket Notes */
.ticket-notes {
    max-width: 800px;
    margin: 20px auto 30px;
    text-align: left;
    font-size: 1.0rem;
    color: #ffffff
}

.ticket-notes p {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Table Column Widths */
.col-type {
    width: 25%;
}



.col-price {
    width: 25%;
}