/* ===== 变量定义 ===== */
:root {
    --primary: #B91C1C;
    --background-light: #FDFCFB;
    --background-dark: #121212;
    --wood-light: #D97706;
    --charcoal: #1F2937;
    --text-light: #1F2937;
    --text-dark: #E5E7EB;
    --font-rounded: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
    --transition: all 0.3s ease;
}

/* ===== 基础样式 ===== */
body {
    font-family: "Noto Sans JP", sans-serif;
    background-color: var(--background-light);
    color: var(--charcoal);
    transition: var(--transition);
}

.dark body {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

h1,
h2,
h3,
.font-serif {
    font-family: "Noto Serif JP", serif;
}

/* ===== 导航栏 ===== */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(253, 252, 251, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
}

.dark .nav-container {
    background-color: rgba(18, 18, 18, 0.9);
    border-bottom-color: #1F2937;
}

.nav-link {
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--primary);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== 按钮 ===== */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #991B1B;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-badge {
    display: inline-block;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.8;
}

.hero-stats {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* ===== 通用区块 ===== */
.section {
    padding: 6rem 0;
    background-color: var(--background-light);
    /* 解决点击导航锚点时被固定导航栏遮挡的问题 */
    scroll-margin-top: 5rem;
}

.dark .section {
    background-color: var(--background-dark);
}




.section-subtitle {
    color: var(--primary);
    font-size: 0.575rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.0rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.section-description {
    margin-top: 1rem;
    color: #4B5563;
}

.dark .section-description {
    color: #9CA3AF;
}

/* ===== Ramen Showcase Description ===== */
.ramen-description {
    font-family: var(--font-rounded);
    font-size: 1.2rem;
    line-height: 1.7;
    color: #4B5563;
    opacity: 0.9;
}

.dark .ramen-description {
    color: #9CA3AF;
}


.feature-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    background-color: rgba(185, 28, 28, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    background-color: rgba(185, 28, 28, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.feature-icon.recommend-trigger {
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.feature-icon.recommend-trigger:hover {
    transform: scale(1.05);
}

.feature-icon.recommend-trigger.recommend-active {
    box-shadow: 0 0 0 2px var(--primary);
    background-color: rgba(185, 28, 28, 0.25);
}

.dark .feature-icon {
    background-color: rgba(185, 28, 28, 0.2);
}

.dark .feature-icon.recommend-trigger.recommend-active {
    background-color: rgba(185, 28, 28, 0.35);
}

.feature-text {
    color: #4B5563;
    line-height: 1.8;
}

.dark .feature-text {
    color: #9CA3AF;
}

/* ===== About Images（左侧圆圈控制右侧图片放大/缩小） ===== */
.about-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    /* limit width but allow larger images */
    max-width: 1000px;
    margin: 0 auto;
}

.about-image-top {
    border-radius: 8px;
    margin-top: 2.1rem;
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* ensure bigger base height on wide layouts */
    max-height: 420px;
}

.about-image-bottom {
    border-radius: 8px;
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 420px;
}

/* 默认：第一张略大（与 recommend-active-1 一致） */
.about-image-grid.recommend-active-1 .about-image-top {
    /* 主图放大并向右移动，缩放更明显 */
    transform: scale(0.875) translateX(20px);
}

.about-image-grid.recommend-active-1 .about-image-bottom {
    /* 副图缩小并向左移动 */
    transform: scale(0.595) translateX(-20px);
}

.about-image-grid.recommend-active-2 .about-image-top {
    /* 副图缩小并向左移动 */
    transform: scale(0.595) translateX(-20px);
}

.about-image-grid.recommend-active-2 .about-image-bottom {
    /* 主图放大并向右移动，缩放更明显 */
    transform: scale(0.875) translateX(20px);
}

.about-image-top:hover,
.about-image-bottom:hover {
    /* 在已选状态下保持主图放大，仅微调 hover */
    transform: scale(1.05);
}

.about-image-grid.recommend-active-1 .about-image-top:hover {
    transform: scale(0.91);
}

.about-image-grid.recommend-active-1 .about-image-bottom:hover {
    transform: scale(0.63);
}

.about-image-grid.recommend-active-2 .about-image-top:hover {
    transform: scale(0.63);
}

.about-image-grid.recommend-active-2 .about-image-bottom:hover {
    transform: scale(0.91);
}

.menu-preview {
    display: grid;
    /* allocate roughly 1/3 for text and 2/3 for the photo */
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
    align-items: center;
    /* 将菜单区域靠左显示，不再右移 */
    margin-left: 0;
}

.menu-preview-right {
    display: flex;
    align-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    justify-content: flex-start;
    /* remove negative offset so image stays fully in its column */
    margin-left: 0;
    margin-top: 60px;
}

.menu-preview-left {
    display: flex;
    flex-direction: column;
    /* 让标题 + 列表在自身区域内稍微向下居中一些 */
    justify-content: center;
}

.menu-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* 让整列不是占满，而是类似卡片长度 */
    align-items: flex-start;
}

.menu-list-item {
    /* 左右内边距可以调整文字位置 */
    padding: 0.9rem 1.4rem 0.9rem 3rem;
    border-radius: 9999px;
    border: 1px solid #E5E7EB;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    /* 控制格子长度，接近你第二张截图的长度 */
    min-width: 260px;
    max-width: 320px;
    text-align: left;
    margin-left: 30px;
}

/* 当前选中的菜单项 */
.menu-list-item.is-active {
    border-color: rgba(185, 28, 28, 0.8);
    box-shadow: 0 18px 30px -14px rgba(185, 28, 28, 0.6);
}

.dark .menu-list-item {
    border-color: #1F2937;
    background: rgba(15, 23, 42, 0.8);
}

.menu-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.35);
    border-color: rgba(185, 28, 28, 0.6);
}

.menu-item-name {
    font-weight: 700;
    /* 左侧菜单文字稍微放大一点 */
    font-size: 1.5rem;
}

.menu-preview-right {
    /* 将图片水平居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 手机端：菜单图片居中显示 */
@media (max-width: 768px) {
    .menu-preview-right {
        justify-content: center;
        /* 如果希望与边界保持距离，可加 padding */
        padding-right: 1rem;
    }

    /* 使照片在自身容器内水平居中 */
    .menu-thumb {
        display: flex;
        justify-content: center;
    }

    .menu-thumb img {
        margin: 0 auto;
    }
}

.menu-thumb {
    border-radius: 0.75rem;
    overflow: hidden;
    /* remove the faint line and heavy shadow so the image sits flush on dark backgrounds */
    border: none;
    box-shadow: none;
    /* allow a larger photo on wide screens, but not too big */
    max-width: 600px;
    width: 100%;
}

.menu-thumb img {
    width: 75%;
    height: 70%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

/* 右侧图片切换时的淡入动画 */
.menu-thumb img.is-fading {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ===== Access Section ===== */
.access-container {
    background-color: #1F2937;
    color: white;
    padding: 5rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--background-light);
    border-top: 1px solid #F3F4F6;
    padding: 3rem 0;
}

.dark .footer {
    background-color: var(--background-dark);
    border-top-color: #111827;
}

/* ===== Hero 右半背景图（右 50% + 从右往左淡化） ===== */
.hero-split {
    position: relative;
    background: #000;
    /* 左边保持黑底 */
    overflow: hidden;
}

.hero-split-bg {
    position: absolute;
    /* 默认（平板/桌面）下：右侧图占右侧一小块，留出更多黑色背景 */
    top: 10%;
    bottom: 10%;
    right: 0;
    /* 将宽度从45%缩小至35%以减小照片尺寸 */
    width: 35%;
    background-image: url("../images/unnamed.jpg");
    /* 换成你要的图 */
    background-size: cover;
    /* 让画面视线中心稍微往左移动 */
    background-position: left center;
    z-index: 0;
    /* 提高亮度与鲜艳度，让画面更接近下方菜品照片 */
    filter: brightness(1.25) contrast(1.1) saturate(1.4);
    /* 让背景图四角更圆滑一些 */
    border-radius: 0.75rem;
    overflow: hidden;
}

/* 淡化：右边清晰 -> 往左渐变成黑 */
.hero-split-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left,
            rgba(0, 0, 0, 0.0) 0%,
            rgba(0, 0, 0, 0.2) 45%,
            rgba(0, 0, 0, 0.6) 80%,
            rgba(0, 0, 0, 0.85) 100%);
}

/* ===== Hero：手机端适配 ===== */
@media (max-width: 768px) {

    /* 手机端：高度略低一些，避免占满整屏 */
    .hero-section {
        height: 70vh;
    }

    /* 手机端：背景图改成全屏铺满，并取消上下内缩，保证纵向比例 */
    .hero-split-bg {
        top: 0;
        bottom: 0;
        width: 100%;
        right: 0;
        background-position: right center;
    }

    /* 渐变改成从上到下（上面更亮，下面更暗） */
    .hero-split-bg::after {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.1) 0%,
                rgba(0, 0, 0, 0.5) 55%,
                rgba(0, 0, 0, 0.85) 100%);
    }

    /* 让文字区域更舒服一点（可选） */
    .hero-content {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }

    /* お品書き：手机端改为上下排列 */
    .menu-preview {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

/* 让 overlay 和内容在背景之上 */
.hero-overlay {
    z-index: 1;
}

.hero-content {
    z-index: 2;
}


.social-link {
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* ===== 滚动进度条 ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    z-index: 100;
    transition: width 0.1s;
}

/* ===== 拉面展示 ===== */
.showcase-image {
    max-width: 70%;
    margin: 0 auto;
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 拉面标题样式 ===== */
h4.ramen-showcase-title {
    font-family: "Yusei Magic", "Noto Serif JP", serif;
    font-size: 3rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    color: var(--primary) !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), 5px 5px 12px rgba(185, 28, 28, 0.12) !important;
}

h4.ramen-showcase-title:hover {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25), 7px 7px 16px rgba(185, 28, 28, 0.15) !important;
}

.dark h4.ramen-showcase-title {
    color: #EF4444 !important;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.08), 5px 5px 12px rgba(185, 28, 28, 0.16) !important;
}

.dark h4.ramen-showcase-title:hover {
    text-shadow: 4px 4px 8px rgba(255, 255, 255, 0.1), 7px 7px 16px rgba(185, 28, 28, 0.2) !important;
}



/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 0;
    }

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

    .access-container {
        padding: 2rem;
    }
}