/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --color-primary: #4b3621;
    /* Coffee Brown */
    --color-secondary: #c5a065;
    /* Gold/Accent */
    --color-bg: #f9f5f0;
    /* Cream/Beige */
    --color-text: #333333;
    /* Dark Gray */
    --color-white: #ffffff;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Playfair Display', serif;
    --header-height: 70px;
    --transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 4px;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

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

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

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

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--color-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease;
    z-index: 1;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 4.5s linear;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* All Slides Zoom In */
.slide .slide-bg {
    transform: scale(1);
}

.slide.active .slide-bg {
    transform: scale(1.15);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 10;
    width: 90%;
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: 'Yomogi', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 2px;
    z-index: 10;
    opacity: 0.8;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 1px;
    height: 50px;
    background: var(--color-white);
    margin: 10px auto 0;
    animation: scrollLine 2s infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-section {
    background-color: var(--color-white);
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-item .date {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: #888;
    margin-right: 20px;
    min-width: 90px;
}

.news-item .tag {
    font-size: 0.8rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 2px;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.news-item .title {
    flex: 1;
    color: var(--color-text);
}

.news-item .title:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-image {
    flex: 1;
}

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

.about-text {
    flex: 1;
}

.about-heading {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.about-desc {
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ==========================================================================
   Menu Section
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.menu-item {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-img {
    height: 250px;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.menu-info {
    padding: 25px;
}

.menu-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.menu-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.menu-price {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: right;
}

.view-more-container {
    text-align: center;
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access-container {
    display: flex;
    gap: 50px;
}

.shop-info {
    flex: 1;
}

.info-list dt {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 20px;
    margin-bottom: 5px;
}

.info-list dd {
    margin-bottom: 10px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    /* color: var(--color-primary); Removed to allow specific colors */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    /* Neutral border initially or specific color */
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Instagram */
.social-links a.icon-instagram {
    color: #E1306C;
    border-color: #E1306C;
}

.social-links a.icon-instagram:hover {
    background-color: #E1306C;
    color: var(--color-white);
}

/* X (Twitter) */
.social-links a.icon-x {
    color: #000000;
    border-color: #000000;
}

.social-links a.icon-x:hover {
    background-color: #000000;
    color: var(--color-white);
}

.map-container {
    flex: 1;
    height: 400px;
    background-color: #ddd;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #888;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px 0;
    text-align: center;
}

.copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Mobile Header */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Fullscreen menu */
        height: 100vh;
        background-color: var(--color-bg);
        transition: 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-menu a {
        font-size: 1.5rem;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
    }

    .about-heading {
        font-size: 1.5rem;
    }

    /* Access Section */
    .access-container {
        flex-direction: column-reverse;
    }

    .map-container {
        height: 300px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item .date {
        margin-bottom: 5px;
    }
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.is-active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-primary);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   News Page Specific
   ========================================================================== */
.news-page-section .news-item {
    padding: 20px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.3s;
    font-family: var(--font-en);
}

.pagination a.active,
.pagination a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Pick Up Contents */
.btn-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-primary);
    font-weight: 700;
    transition: 0.3s;
    font-family: var(--font-en);
}

.btn-link:hover {
    color: var(--color-secondary);
    letter-spacing: 0.1em;
}

/* Tag Styles */
.tag {
    display: inline-block;
    padding: 2px 10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-family: var(--font-en);
    margin-right: 15px;
    min-width: 60px;
    text-align: center;
}

/* Responsive adjustments for tags in list */
@media screen and (max-width: 768px) {
    .news-item .tag {
        margin-bottom: 5px;
    }
}

/* Page Header */
.page-header {
    background-color: var(--color-bg);
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 30px;
    text-align: center;
}

.page-title {
    font-family: var(--font-en);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--color-secondary);
    letter-spacing: 0.1em;
}

/* Category Headers */
.category-title {
    font-family: var(--font-en);
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

/* Active Link Style */
.nav-menu a.active {
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 100%;
}