/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --background-color: #fff;
    --text-color: #333;
    --primary-color: #e53935;
    --primary-color-dark: #c62828;
    --secondary-background: #f8f8f8;
    --secondary-text-color: #666;
    --card-background: #fff;
    --card-shadow: rgba(0, 0, 0, 0.05);
    --border-color: #eee;
    --footer-background: #222;
    --footer-text: #ddd;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}


body.dark-mode {
    --background-color: #121212;
    --text-color: #eee;
    --secondary-background: #1e1e1e;
    --secondary-text-color: #ccc;
    --card-background: #2c2c2c;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --border-color: #444;
    --footer-background: #1e1e1e;
    --footer-text: #aaa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    transition: filter 0.3s;
}

body:not(.dark-mode) .logo img {
    filter: invert(1);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-toggle {
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    transition: all 0.3s;
}

.language-toggle:hover {
    background-color: var(--secondary-background);
    color: var(--primary-color);
}


.theme-toggle {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--secondary-background);
    color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav {
    background-color: transparent;
    border-top: none;
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero section */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    margin-top: 120px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 3;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: white;
    color: var(--primary-color);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Quick info section */
.quick-info {
    padding: 60px 0;
    background-color: var(--secondary-background);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.open-status {
    font-weight: bold;
    margin-top: 10px;
}

.open-status.open {
    color: #4CAF50; /* Green */
}

.open-status.closed {
    color: #f44336; /* Red */
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-family: 'Noto Serif JP', serif;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About section */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 0.9;
}

.about-text .btn-secondary {
    width: 100%;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.promotions-section {
    padding: 60px 0;
    background-color: var(--secondary-background);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.promo-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.promo-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Menu section */
.menu-section {
    padding: 80px 0;
}

.menu-categories {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--card-shadow);
    overflow: hidden;
}

.category-tabs-container {
    position: relative;
}

.category-tabs-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to left, var(--secondary-background), transparent);
    pointer-events: none;
}

.category-tabs {
    display: flex;
    background-color: var(--secondary-background);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc var(--secondary-background);
}

.category-tabs::-webkit-scrollbar {
    height: 5px;
}

.category-tabs::-webkit-scrollbar-track {
    background: var(--secondary-background);
}

.category-tabs::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 5px;
}


.tab-btn {
    flex: 0 0 auto;
    padding: 15px 20px;
    background-color: transparent;
    border: none;
    font-weight: 500;
    color: var(--secondary-text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    background-color: var(--card-background);
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
}

.menu-content {
    padding: 30px;
}


.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
}

.menu-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-image {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--secondary-background);
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.05);
}

.menu-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.menu-item h4 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
}

.menu-item .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 15px;
}

.jp-name {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

.menu-item-desc {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .menu-item-image {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
    }
    
    .menu-item h4 {
        font-size: 1.1rem;
    }
}

.menu-cta {
    text-align: center;
    margin-top: 40px;
}

/* Order section */
.order-section {
    padding: 80px 0;
}

.order-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.order-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--card-shadow);
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.order-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.order-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.order-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.order-card p {
    margin-bottom: 25px;
    color: #666;
}

/* Contact section */
.contact-section {
    padding: 80px 0;
    background-color: var(--secondary-background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item p {
    color: #666;
}

.contact-item a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color-dark);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.parking-info {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--card-shadow);
}

.contact-map iframe {
    transition: filter 0.3s;
}

body.dark-mode .contact-map iframe {
    filter: invert(1) hue-rotate(180deg);
}

.parking-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e53935;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #aaa;
}

.footer-contact a {
    color: #e53935;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ff5252;
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
}

.footer-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #aaa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social .social-links a:hover {
    background-color: #e53935;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #aaa;
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay i {
    color: white;
    font-size: 1.5rem;
}

.menu-item-image:hover .image-overlay {
    opacity: 1;
}

.menu-item-image {
    position: relative;
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}