:root {
    --primary-color: #dd9933;
    --primary-dark: #b87c22;
    --accent-color: #d15300;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #fff;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    width: 60%;
    /* 60% of screen width as requested */
    max-width: 600px;
    /* Limit max width for PC */
}

.splash-logo img {
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align items to bottom so tabs touch edge */
    min-height: 80px;
    padding: 10px 20px 0;
    /* Remove bottom padding */
}

.logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: 10px;
    /* Lift logo back up since container aligns bottom */
}



.main-nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 equal columns */
    gap: 0;
    align-items: end;
    padding-left: 0;
    width: 100%;
    margin-bottom: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 0;
    color: #fff;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border-radius: 12px 12px 0 0;
    clip-path: none;
    width: 100px;
    /* Fixed width as requested */
    margin: 0 auto;
    /* Center in slot */
    white-space: nowrap;
    margin-bottom: 0;
    z-index: 1;
}

/* Specific Tab Colors */
.nav-item-home a {
    background-color: #4ed99c;
}

.nav-item-event a {
    background-color: #f29e33;
}

.nav-item-gallery a {
    background-color: #e56b8f;
}

.nav-item-shop a {
    background-color: #33b5e5;
}

.nav-item-contact a {
    background-color: #ff4444;
}

.main-nav a:hover {
    opacity: 1;
    transform: none;
    /* Stick to bottom, don't lift */
    padding-bottom: 12px;
    /* Match active state padding */
    z-index: 20;
    /* Bring to front */
}

/* Active State - "Open" Tab */
.main-nav a.active {
    opacity: 1;
    transform: none;
    /* Stick to bottom */
    padding-bottom: 12px;
    font-weight: 800;
    z-index: 10;
    /* Active on top of default */
    box-shadow: none;
    /* Flat connection */
}

/* Remove old button style for contact since it's now a tab */
.btn-contact {
    background: inherit;
    color: inherit;
    padding: inherit;
    border-radius: inherit;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
    margin-bottom: 10px;
    /* Lift menu button back up */
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 11px;
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    margin-left: auto;
    /* Push to right */
    margin-bottom: 20px;
    /* Align with bottom of header */
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
}

.lang-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    color: #999;
    padding: 0;
    transition: color 0.3s;
}

.lang-toggle button.active {
    color: #333;
    font-weight: 700;
    text-decoration: underline;
}

.lang-toggle button:hover {
    color: #555;
}

.lang-toggle span {
    color: #ccc;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-right: 50px;
        /* Make space for hamburger */
        margin-bottom: 5px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    border-top: 10px solid #4ed99c;
    /* Connected to Home tab */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    /* Keep text white for contrast */
    padding: 20px;
}

.hero-logo {
    max-width: 80%;
    width: 600px;
    height: auto;
    margin: 40px auto 0;
    /* Centered with 40px top margin */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Text shadow for readability */
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sections Global */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--accent-color);
}

.section-title .jp {
    display: block;
    font-size: 1rem;
    font-family: var(--font-base);
    color: var(--text-color);
    margin-top: 5px;
    font-weight: normal;
}

/* News Section */
.news-section {
    background: var(--white);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    border-bottom: 1px solid #eee;
}

.news-list a {
    display: flex;
    padding: 20px;
    align-items: center;
    transition: var(--transition);
}

.news-list a:hover {
    background-color: #ffffef;
    padding-left: 30px;
}

.news-list .date {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 30px;
    min-width: 100px;
}

/* Service Section */
.service-section {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.service-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.link-arrow::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.link-arrow:hover::after {
    margin-left: 10px;
}

/* Shop Info Section */
.shop-info-section {
    background: var(--white);
}

.shop-info-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.shop-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shop-details {
    flex: 1;
}

.shop-name {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.shop-data dt {
    float: left;
    clear: left;
    width: 100px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.shop-data dd {
    margin-left: 100px;
    margin-bottom: 15px;
}

.shop-data .note {
    font-size: 0.9rem;
    color: #666;
}

.access-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Page Header (Subpages) */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 2rem;
    font-family: var(--font-heading);
}

/* Colored Headers matching Tabs */
.page-header.header-event {
    background-color: #f29e33;
}

.page-header.header-gallery {
    background-color: #e56b8f;
}

.page-header.header-shop {
    background-color: #33b5e5;
}

.page-header.header-contact {
    background-color: #ff4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        /* White overlay */
        transform: translateX(100%);
        transition: var(--transition);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .main-nav li {
        width: 100%;
        /* Ensure li takes full width to center a */
        display: flex;
        justify-content: center;
    }

    .main-nav a {
        font-size: 1.2rem;
        color: #fff !important;
        /* Global colors (.nav-item-* a) will apply */
        width: 90%;
        max-width: 400px;
        border: none;
        border-radius: 4px;
        /* Minimal rounding */
        padding: 15px 0;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: block;
        /* Ensure it's a block */
        white-space: normal;
        /* Allow text wrap if needed, though labels are short */
    }

    .main-nav a:hover,
    .main-nav a.active {
        opacity: 0.9;
        transform: scale(1.02);
        padding-bottom: 15px;
        /* Reset padding */
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .shop-info-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .news-list a {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-list .date {
        margin-bottom: 5px;
    }

    .hero {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    /* Square aspect ratio */
    height: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.instagram-link {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 30px;
}

.instagram-link:hover {
    opacity: 0.9;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Site Title Section */
.site-title-section {
    padding: 40px 0 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.main-title {
    font-size: 2rem;
    color: var(--primary-dark);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    margin: 0;
}

.site-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Response for smaller screens */

/* Response for smaller screens */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
    }
}

/* Shop Page Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.shop-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.shop-item:hover {
    transform: translateY(-5px);
}

.shop-item .shop-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Force square aspect ratio */
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-item .shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover behavior for better grid look */
}

.shop-item .shop-details {
    padding: 15px;
    flex-grow: 1;
    /* Ensure details take up remaining space */
    display: flex;
    flex-direction: column;
}

.shop-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: bold;
}

.shop-item .price {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.shop-item .description {
    font-size: 0.9rem;
    color: #666;
    margin-top: auto;
    /* Push to bottom if needed */
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile */
        gap: 10px;
    }

    .shop-item h3 {
        font-size: 0.9rem;
    }

    .shop-item .price {
        font-size: 0.9rem;
    }

    .shop-item .description {
        font-size: 0.8rem;
    }


    .shop-item .shop-details {
        padding: 10px;
    }
}

/* Event Info Section */
.event-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.event-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.event-header {
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.event-date {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: bold;
    min-width: 100px;
}

.event-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
    flex: 1;
}

.event-body {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    display: none;
    /* Hidden by default, toggled via JS */
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.event-body.open {
    display: block;
}

.event-item.hidden-event {
    display: none;
}

.event-item.hidden-event.visible {
    display: block;
}

.btn-load-more {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: bold;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 600px) {
    .event-header {
        flex-direction: column;
        gap: 5px;
    }
}