﻿@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Oswald:wght@700&display=swap');

:root {
    --primary-bg: #f4f1ea; /* ベージュ */
    --secondary-bg: #e8e4d9;
    --text-main: #1a1a1a; /* 墨 */
    --text-sub: #555555;
    --accent: #c52e2e; /* 赤 */
    --accent-blue: #1e3a8a; /* 青 */
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Oswald", "Arial Black", Impact, sans-serif;
    --transition: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-jp);
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    overflow-x: hidden; /* Critical for SP */
    width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, .serif {
    font-family: var(--font-jp);
    font-weight: 900;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: url('../img/background.png') center/cover no-repeat; /* Removed 'fixed' which breaks position: fixed on mobile */
    color: var(--text-main);
    font-family: var(--font-serif); /* Uniformly Noto Serif JP */
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    overflow-x: hidden; /* Critical for SP */
    width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Layout Modules */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
}

.section-padding {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-side-links {
        display: none;
    }
}

/* Visibility Utilities */
.sp-only {
    display: none !important;
}

@media (max-width: 768px) {
    .sp-only {
        display: block !important;
    }
    .pc-only {
        display: none !important;
    }
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 22px rgba(0,0,0,0.12);
    z-index: 1000;
    pointer-events: none;
}

/* Hamburger Menu - DEFINITIVE FIX */
/* Hamburger Menu - Restored Aesthetics with Fixed Persistence */
.hamburger {
    position: fixed !important;
    top: 24px !important;
    right: 40px !important; /* Adjusted position */
    width: 35px;
    height: 24px;
    z-index: 2147483647 !important;
    cursor: pointer;
    display: none;
    transform: translateZ(999px) !important;
}

@media (max-width: 768px) {
    .hamburger {
        display: block !important;
        top: 20px !important;
        right: 40px !important;
    }

    #header.pc-only {
        display: block !important;
        height: 64px;
        background: transparent;
        box-shadow: none;
        transition: background 0.3s var(--transition), box-shadow 0.3s var(--transition);
    }

    #header.sp-scrolled {
        background: #fff;
        box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    }

    .sp-header-brand {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-main);
        font-family: var(--font-serif);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--accent) !important; /* Restored gold color */
    left: 0;
    transition: transform 0.4s var(--transition), opacity 0.4s;
    border-radius: 2px;
}

.hamburger .line-1 { top: 0; }
.hamburger .line-2 { top: 10.5px; }
.hamburger .line-3 { top: 21px; }

.hamburger.active .line-1 {
    top: 10.5px;
    transform: rotate(45deg) !important;
}
.hamburger.active .line-2 {
    opacity: 0 !important;
}
.hamburger.active .line-3 {
    top: 10.5px;
    transform: rotate(-45deg) !important;
}

/* Mobile Nav Overlay */
.sp-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    transition: right 0.5s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sp-nav-list {
    list-style: none;
    text-align: center;
}

.sp-nav-list li {
    margin: 40px 0;
}

.sp-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem; /* Reduced from 1.8rem */
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-nav-link span {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-top: 8px;
    font-family: var(--font-jp);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/fv.jpeg') center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.58);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.36;
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 3;
    /* margin-top: 50px; REMOVED to allow exact top positioning of nav */
}

.hero-main-img {
    position: relative;
    width: 130%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    display: none;
    /* animation: fadeInScale 1.5s var(--transition); REMOVED */
}

.hero-title-img {
    position: absolute;
    left: -23%; /* Adjusted to avoid overlap while staying relatively close */
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    z-index: 10;
    pointer-events: none;
    display: none;
}

.hero-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 78px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px;
    z-index: 1200;
    background: #fff;
    box-shadow: 0 4px 22px rgba(0,0,0,0.12);
    padding: 0 28px;
}

.hero-brand {
    margin-right: auto;
    color: var(--text-main);
    font-family: var(--font-jp);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    white-space: nowrap;
}

.hero-nav-link {
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    font-family: var(--font-en);
    font-weight: 700; /* Bolded for visibility */
}

.hero-nav-link .en {
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.hero-nav-link .jp {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-family: var(--font-jp);
}

.hero-nav-link .en {
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.hero-nav-link .jp {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-nav-link:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.title-main {
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.section-label {
    display: block;
    font-family: var(--font-en);
    font-size: 5rem;
    color: var(--accent-blue);
    letter-spacing: 0.12em;
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1;
}

.section-title {
    font-size: 1.25rem;
    color: var(--text-main);
    position: relative;
    z-index: 2;
    letter-spacing: 0.15em;
    font-weight: 900;
}

.section-title.white {
    color: #fff;
}

.sub-title {
    display: block;
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 5px;
}

.title-main::before,
.title-main::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--text-main);
}

.section-title {
    font-size: 1.25rem;
    color: #000;
    position: relative;
    z-index: 2;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.section-title.white {
    color: #fff;
}

.sub-title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--accent-dim);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 5px;
}

.title-main::before,
.title-main::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.title-main::before {
    left: 0;
}

.title-main::after {
    right: 0;
}

.voice-badge-img {
    position: absolute;
    top: -120px;
    right: -10%; /* Desktop bleed */
    width: 600px; /* Scaled up ~3x from original small size */
    z-index: 5;
    pointer-events: none;
    opacity: 0.2;
    display: none;
}

/* Side Links (Vertical Buttons) */
.hero-side-links {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    z-index: 1300;
}

.side-link-btn {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    min-width: 118px;
    height: 50px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
    transition: all 0.3s;
    font-family: var(--font-jp);
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-link-btn:hover {
    background: #c00000;
    transform: translateY(-2px);
}

.side-link-btn .vertical-text {
    writing-mode: horizontal-tb;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.side-instagram-icon.brand-color {
    font-size: 2rem;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
    .hero-side-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        background-image: url('../img/fv.jpeg');
        background-position: center top;
    }

    .hero-sp-fv-img {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        z-index: 0;
    }

    .hero-content {
        width: 100vw;
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        letter-spacing: 0;
        margin-bottom: 14px;
    }

    .hero-title-small {
        font-size: clamp(0.78rem, 3.35vw, 0.98rem);
        white-space: nowrap;
        margin-bottom: 8px;
    }

    .hero-title-main {
        white-space: nowrap;
    }

    .hero-sub {
        font-size: 0.76rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .hero-sub::before,
    .hero-sub::after {
        width: 18px;
        margin: 0 8px;
    }

    .media-section .section-header {
        text-align: center;
        margin-bottom: 34px;
    }

    .media-section .section-title {
        line-height: 1.6;
    }

    #voice::before {
        top: 10px;
        right: -18vw;
        width: 92vw;
        opacity: 0.15;
    }

    .voice-grid {
        padding: 0;
    }

    .voice-card {
        padding: 34px 26px;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    color: #fff;
    font-family: var(--font-jp);
    font-size: clamp(2rem, 5vw, 4.2rem);
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    font-weight: 900;
    text-shadow: 0 8px 22px rgba(0,0,0,0.75);
    opacity: 0;
    transform: translateY(34px) scale(0.94);
    animation: yakinikuImpact 1.1s var(--transition) forwards 0.25s, heatPulse 3s ease-in-out infinite 1.6s;
}

.hero-title-small {
    display: block;
    font-size: 0.48em;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero-title-main {
    display: block;
    line-height: 1.2;
}

.hero-sp-fv-img {
    display: none;
}

.hero-sub {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 4px 14px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s forwards 0.65s;
}

.hero-sub::before,
.hero-sub::after {
    content: "";
    display: inline-block;
    width: 46px;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin: 0 16px;
}

#about {
    position: relative;
    overflow: visible;
    z-index: 4;
}

#about > .container {
    position: relative;
    z-index: 1;
}

@keyframes yakinikuImpact {
    0% {
        opacity: 0;
        transform: translateY(44px) scale(0.86);
        filter: blur(8px);
    }
    62% {
        opacity: 1;
        transform: translateY(-4px) scale(1.03);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heatPulse {
    0%, 100% {
        text-shadow: 0 8px 22px rgba(0,0,0,0.75), 0 0 0 rgba(197,46,46,0);
    }
    50% {
        text-shadow: 0 8px 22px rgba(0,0,0,0.75), 0 0 28px rgba(197,46,46,0.62);
    }
}

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

.about-new-layout {
    position: relative;
    margin-top: -350px; /* Deep overlap as per reference */
    z-index: 10;
}

.about-flex-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.about-left {
    flex: 1.2;
    z-index: 20;
}

.about-main-img {
    width: 140%; /* Further enlarged */
    display: block;
    transform: translateX(-30%); /* Moved further left */
}

.about-right {
    flex: 0.9;
    display: flex;
    flex-direction: row; /* Text on left (1st), Title group on right (2nd) */
    align-items: flex-start;
    justify-content: flex-end; /* Align the whole cluster to the right side of the section */
    gap: 0;
    padding-top: 320px;
}

.about-title-group {
    position: relative;
    margin-bottom: 40px;
    height: 200px;
    display: flex;
    align-items: center;
}

.about-badge-img {
    position: absolute;
    right: -25vw; /* Desktop bleed */
    top: 150px; /* Lowered */
    width: 800px; /* Much larger */
    z-index: 5;
    pointer-events: none;
    opacity: 0.2;
    mix-blend-mode: normal;
}

.about-title-img {
    position: relative;
    width: 100px; /* Slightly larger as requested */
    z-index: 25;
}

.about-text-content.vertical-text {
    position: relative;
    z-index: 35;
    color: #fff !important;
    font-family: var(--font-jp);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 2.2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: auto;
    min-height: 450px;
    letter-spacing: 0.2em;
    margin-right: 50px;
    width: fit-content;
    white-space: nowrap;
}

/* Text Titles Replacement */
.about-title-text {
    position: relative;
    z-index: 25;
    font-size: 2.2rem;
    font-family: var(--font-jp);
    font-weight: 900;
    color: #fff !important;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: block;
    line-height: 1.6;
    height: auto;
    white-space: nowrap;
}
.about-title-text .en {
    display: none;
}

.service-title-text {
    font-size: 1.6rem;
    font-family: var(--font-jp);
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    display: block;
    padding-bottom: 0;
    padding-left: 25px;
    text-align: left;
    line-height: 1.5;
    width: 100%;
    z-index: 2;
}
.service-title-text .num {
    position: absolute;
    top: -35px;
    left: -15px;
    font-size: 6rem;
    color: rgba(30, 58, 138, 0.15); /* Blue watermark */
    font-family: var(--font-en);
    font-weight: 700;
    z-index: -1;
    line-height: 1;
}
.service-title-text .text {
    display: inline;
}
.service-title-text::after {
    display: none;
}

/* Auto Slider Styles */
.auto-slider-section {
    width: 100%;
    overflow: hidden;
    background-color: #333333;
    background-image: url('../img/slidebg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px 0;
}
.auto-scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollLeft 20s linear infinite;
}
.auto-slide-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

/* Media Section */
.media-section {
    background: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.media-section .section-header {
    text-align: center;
}

.media-section .section-label {
    color: var(--accent);
}

.media-section .section-title,
.media-section .sub-title {
    color: #fff;
}

.media-video {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.36);
    border: 1px solid rgba(255,255,255,0.18);
}

.media-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Stylish title classes removed or updated above */

/* Kodawari / Service Section Redesign */
#kodawari {
    background: #f4f1ea;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
}

#kodawari > .section-header,
#kodawari > .service-row {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    padding: 48px;
    border-radius: 8px;
}

#kodawari > .service-row:nth-of-type(2) {
    background: rgba(255, 255, 255, 0.55);
}

#kodawari > .service-row:nth-of-type(3) {
    background: rgba(232, 228, 217, 0.72);
}

#kodawari > .service-row:nth-of-type(4) {
    background: rgba(244, 224, 205, 0.46);
}

#kodawari > .service-row:nth-of-type(5) {
    background: rgba(219, 229, 217, 0.58);
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 左寄せに変更 */
}

.service-visual {
    flex: 1.5; /* Enlarged visual */
}

.service-title-img {
    width: 360px; /* Enlarged title */
    height: auto;
    margin-bottom: 30px;
}

.service-desc {
    color: var(--text-main);
    font-family: var(--font-jp);
    font-size: 0.95rem;
    line-height: 2.2;
    padding: 0; /* paddingを外して揃える */
    text-align: left; /* Back to left-aligned */
}

.service-main-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 20px 20px 0 rgba(212, 175, 55, 0.1);
}

@media (max-width: 900px) {
    .about-flex-container {
        flex-direction: column;
    }
    .about-right {
        padding-top: 60px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .about-text-content.vertical-text {
        writing-mode: horizontal-tb;
        height: auto;
        margin-right: 0;
        text-align: center;
    }
    .about-badge-img {
        right: 0;
        width: 100%;
        max-width: 400px;
    }
    .service-row, .service-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 48px;
        padding: 28px 20px;
    }
    .service-visual {
        /* Removed order: -1 to keep Title -> Text -> Image order on SP */
    }
    .recommended-flex {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .recommended-special {
        padding: 24px 0;
    }
    .voice-badge-img {
        width: 150px;
        top: -40px;
    }
    
    .about-sp-content-wrapper {
        padding: 0 20px;
        text-align: left;
        margin-top: -20px; /* Moved higher up slightly */
    }
    
    .about-sp-title {
        font-family: var(--font-jp);
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        font-weight: 900;
        line-height: 1.6;
        color: #fff !important;
        margin-bottom: 25px;
        text-align: left;
    }
    
    .about-sp-title .accent-color {
        color: #fff;
    }
    
    .service-title-text {
        font-size: 1.3rem;
    }
    .service-title-text .num {
        font-size: 4.5rem;
        top: -25px;
        left: -10px;
    }

    .about-sp-desc {
        text-align: left;
        line-height: 2.2; 
        font-size: 0.95rem;
        color: #fff !important;
        padding-bottom: 20px; 
    }
    .about-sp-desc p {
        color: #fff !important;
    }
    
    .about-new-layout {
        margin-top: -120px;
        z-index: 30;
    }
    
    .about-main-img {
        width: 100%;
        transform: translateX(-8%); /* Moved home image slightly to the left */
        box-shadow: none;
    }
    
    .hero-sp-text {
        font-family: var(--font-serif);
        font-size: 0.8rem;
        line-height: 1.8;
        color: #000;
        margin-bottom: 25px;
        padding: 0 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center horizontally */
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .sp-hero-logo {
        width: 120px;
        height: auto;
        display: block;
        margin: 0 auto; /* Ensure centering */
    }

    .hero-main-img {
        width: 90%; /* Adjusted for new text space */
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .about-badge-sp {
        position: absolute;
        display: block !important;
        right: -26vw;
        top: 44%;
        width: 98vw;
        max-width: none;
        opacity: 0.2;
        mix-blend-mode: normal;
        pointer-events: none;
        z-index: 0;
    }
}

/* Eyecatch Separator */
.eyecatch-fixed {
    position: relative;
    height: 600px;
    width: 100%;
    margin: 0;
    overflow: hidden;
    clip-path: inset(0); /* Creates a "window" for the fixed background */
}

.eyecatch-fixed::before {
    content: "";
    position: fixed; /* Bypasses mobile background-attachment: fixed limitations */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
}

@media (max-width: 768px) {
    .eyecatch-fixed {
        height: 350px;
    }
}

/* Image Separator Reverted */
.image-separator {
    width: 100%;
    overflow: hidden;
    margin-top: -120px; /* Moved further up as requested */
    position: relative;
    z-index: 5;
}

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

/* Menu Section */
#menu {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    background-image: url('../img/Menubackground1.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding-top: 72px;
    padding-bottom: 72px;
}

#menu > .section-header,
#menu > .recommended-special,
#menu > .menu-grid,
#menu > .menu-btn-area {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: flex-start;
}

.category-title {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 15px;
    font-family: var(--font-jp);
    font-weight: 900;
}

/* Recommended Special Menu */
/* Recommended Special Menu Redesign */
.recommended-special {
    background: transparent;
    padding: 24px 0;
    margin-top: 32px;
    margin-bottom: 48px;
    position: relative;
    width: 100%;
    color: #000;
    overflow: hidden;
}

@media (max-width: 768px) {
    .recommended-special {
        background: transparent !important;
        padding: 24px 0;
        height: auto;
    }
    
    .recommended-flex-modern {
        padding: 0 20px;
        display: block;
        text-align: left !important;
    }
    
    .recommended-text-area {
        width: 100%;
        display: block;
        text-align: left !important;
        margin-bottom: 20px;
    }
    
    .recommended-slider-area-modern {
        margin-top: 10px; /* Separator between text and slider */
        padding-top: 0;
    }
    
    .category-title-modern {
        font-size: 1.8rem;
        text-align: left !important;
        margin-bottom: 25px; /* Pushes item name down */
    }
    
    .menu-item-modern * {
        text-align: left !important;
    }
}

.recommended-special * {
    color: #000 !important; /* Ensure all nested text is black */
}

.recommended-flex-modern {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes text to left and slider to right */
    gap: 48px; /* Increased gap */
    max-width: 1600px; /* Further widened */
    margin: 0 auto;
    padding: 0;
}

.recommended-text-area {
    flex: 0 0 340px; /* Narrowed to give more room to the slider */
    position: relative;
    display: flex;
}

.gold-vertical-line {
    width: 1px;
    background: var(--accent);
    margin-right: 40px;
    align-self: stretch;
    display: none;
}

.category-title-modern {
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-family: var(--font-en);
    font-weight: 700;
    letter-spacing: 0.12em;
}

.item-name-modern {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 10px;
    padding: 6px 14px;
    background: rgba(244, 241, 234, 0.92);
    color: #111 !important;
    line-height: 1.45;
    box-shadow: 6px 6px 0 rgba(197, 46, 46, 0.18);
}

.item-price-modern {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.item-detail-modern {
    font-size: 1rem;
    line-height: 2.2;
    margin-bottom: 15px;
}

.item-desc-modern {
    font-size: 1rem;
    font-weight: 600;
}

.recommended-slider-area-modern {
    flex: 1;
    min-width: 0;
    padding: 16px 0;
    overflow: hidden;
}

.carousel-viewport {
    width: 100%;
    overflow: visible; /* Allow items to peek outside but clipped by container-modern */
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 30px;
}

.carousel-track.marquee {
    animation: marquee 35s linear infinite; /* Seamless flow */
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-450px * 5 - 30px * 5)); }
}

.carousel-item {
    flex: 0 0 450px;
    height: 520px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .section-label {
        font-size: 3rem;
        letter-spacing: 0.08em;
    }

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

    .item-name-modern {
        font-size: 1.35rem;
    }

    .carousel-item {
        flex: 0 0 280px; /* Smaller on mobile */
        height: 360px;
    }
    
    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-280px * 5 - 30px * 5)); }
    }
}

.carousel-item:hover {
    transform: scale(1.05); /* Hover effect instead of center scaling */
    z-index: 10;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(255,255,255,0.1);
    transform: scale(0.9);
    animation: zoomIn 0.3s forwards;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s;
    line-height: 1;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent);
}

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

@media (max-width: 1200px) {
    .recommended-flex-modern {
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        gap: 20px;
    }
    .recommended-text-area {
        flex: 1;
        width: 100%;
        max-width: 600px;
        text-align: center;
        justify-content: center;
        margin-bottom: 40px;
    }
    .gold-vertical-line { display: none; }
    .recommended-slider-area-modern {
        width: 100.1vw; /* Tiny extra to hide gaps */
        margin-left: calc(50% - 50vw);
    }
}
@media (max-width: 768px) {
    .horizontal-slider-track {
        height: 400px;
    }
}

.menu-category {
    margin-bottom: 80px;
}

.menu-item {
    margin-bottom: 30px;
}

.menu-item.highlight {
    background: rgba(212, 175, 55, 0.05);
    padding: 25px;
    border-left: 3px solid var(--accent);
}

.item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.item-price {
    font-family: var(--font-en);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.item-detail {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.6;
}

.item-desc {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.menu-btn-area {
    text-align: center;
    margin-top: 40px; /* Moved up as requested */
}

/* Voice Section */
#voice {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    background-image: url('../img/voicebg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

#voice::before {
    content: "";
    position: absolute;
    right: 4vw;
    top: 40px;
    width: min(560px, 76vw);
    aspect-ratio: 1 / 1;
    background: url('../img/Voicebadge.png') center/contain no-repeat;
    opacity: 0.15;
    transform: rotate(-8deg);
    z-index: 0;
    pointer-events: none;
}

#voice > .section-header,
#voice > .voice-grid,
#voice > .menu-btn-area {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.voice-card {
    background: #fff;
    padding: 42px 42px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.voice-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.voice-name {
    font-weight: 900;
    color: var(--text-main);
}

.stars {
    color: var(--accent);
    font-size: 1rem;
}

.voice-content {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.8;
}

/* Access Section */
#access {
    background-color: #222; /* 背景画像がない・読み込めない場合の黒背景 */
    background-image: url('../img/Accessbackground.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Removed dark overlay as requested */

#access .container {
    position: relative;
    z-index: 2;
}

#access .section-label {
    color: var(--accent);
}

.access-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.access-info {
    width: 100%;
}

.access-list dt {
    color: #fff; /* Updated to white as requested */
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 25px;
    margin-bottom: 5px;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.access-list dd {
    color: #fff;
}

.access-list dd a {
    color: #fff;
    text-decoration: none;
}

.access-map {
    width: 100%;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    background: #fff;
}

@media (max-width: 900px) {
    .access-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .eyecatch-fixed {
        height: 350px;
        background-attachment: scroll;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .section-title.black {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s, transform 1s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.gold-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 20px;
}

.btn-accent {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--text-main);
    background: var(--text-main);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    font-weight: 900;
    transition: all 0.4s;
    margin-top: 30px;
    border-radius: 4px;
}

.btn-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Voice Accordion */
.voice-more-content {
    display: none;
    margin-top: 10px;
}
.voice-more-content.open {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}
.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-serif);
    margin-top: 15px;
    text-decoration: underline;
    display: inline-block;
    padding: 0;
}
.read-more-btn:hover {
    color: #000;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fixed Footer for SP - Only visible on mobile */
.sp-fixed-footer {
    display: none;
}

@media (max-width: 768px) {
    .sp-fixed-footer {
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw !important;
        height: 65px;
        z-index: 100000;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    }
}

.footer-btn {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-serif);
}

.footer-btn.tel {
    background: #fff;
    color: #000;
}

.footer-btn.hotpepper {
    background: #e5851d; /* Same as previous inline footer button color */
    color: #fff;
}

.side-link-btn.hotpepper {
    background: #333;
}

#about {
    background-color: var(--accent);
}

.service-menu-eyecatch {
    background-image: url('../img/service_menu.jpeg');
}

.menu-voice-eyecatch {
    background-image: url('../img/menu_voice.png.jpg');
}

.rice-note {
    color: #d4af37 !important;
    font-weight: bold;
}

.recommended-second {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
}

.drink-list-note {
    display: block;
    margin-top: 8px;
    color: #444;
    font-size: 0.85rem;
    line-height: 1.6;
}

.menu-category-full {
    grid-column: 1 / -1;
}

.modern-menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px 60px;
}

.item-head-tight {
    margin-bottom: 0;
}

.voice-title {
    color: #000;
    font-size: 1.05rem;
    font-weight: 700;
}

.tabelog-access-link {
    margin-right: 15px;
}

.access-map-iframe {
    display: block;
    min-height: 350px;
    visibility: visible;
    border: 0;
}

@media (max-width: 768px) {
    .menu-grid {
        gap: 30px;
        padding: 0 20px;
    }
    
    .menu-category {
        margin-bottom: 40px; /* Closer together */
    }
    
    .category-title {
        margin-bottom: 20px;
    }

    .image-separator {
        margin-top: 5px !important; /* Set to 5px as requested */
    }

    .back-to-top {
        bottom: 100px; /* Moved up as requested */
    }
    
        margin-bottom: 60px;
    }

    /* Force hide any potential overflow from badge images on small screens */
    .about-badge-img, .voice-badge-img {
        max-width: 100vw;
        right: -20px !important;
        overflow: hidden;
    }

    #access {
        overflow: hidden; /* CLIP potential map/image overflow */
    }

    /* Specifically for voice section on SP to lower it */
    #voice .menu-btn-area {
        margin-top: 40px; /* Lowered as requested */
    }
}
