* {
    box-sizing: border-box;
}

:root {
    --color-red: #C52D2E;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --font-main: 'Noto Sans JP', sans-serif;
    --section-margin-pc: 120px;
    --section-margin-sp: 80px;
}

html,
body {
    font-family: var(--font-main);
    color: var(--color-black);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

section {
    overflow: hidden; /* safety from horizontal overflow */
}

.text-gray-400 {
    color: white !important;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

/* Base Typography */
p {
    font-size: 16px;
}

/* Layout Utilities */
section:not(#top),
.section-margin {
    padding-top: 70px;
    padding-bottom: 70px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0;
}

.container {
    max-width: 1110px !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#top {
    padding-top: 80px;
    /* Header height (h-20) adjustment */
    padding-bottom: 0;
}

/* Introduction Section - New Editorial Style */
#tv {
    background: linear-gradient(135deg, #f9f9f9 50%, #fff 50%);
    position: relative;
    overflow: hidden;
}

.intro-editorial-img {
    position: relative;
    z-index: 10;
}

.intro-editorial-img::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-red);
    z-index: -1;
    opacity: 0.3;
}

/* Introduction Section - Sleek Numbered List Style */
.intro-card-list {
    counter-reset: item;
}

.intro-card-list li {
    counter-increment: item;
    position: relative;
    padding: 20px 30px 20px 60px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-black);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    list-style: none;
    overflow: hidden;
}

/* Numbering (01, 02...) */
.intro-card-list li::before {
    content: "0" counter(item);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-red);
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: all 0.5s ease;
}

/* Red Diamond Marker */
.intro-card-list li::after {
    content: "";
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: var(--color-red);
    transition: all 0.5s ease;
}

.intro-card-list li:hover {
    background: rgba(197, 45, 46, 0.03);
    padding-left: 70px;
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.intro-card-list li:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
    left: 10px;
}

.intro-card-list li:hover::after {
    left: 50px;
    transform: translateY(-50%) rotate(225deg);
}

/* Image Base Style */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: bottom;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Introduction Section Image Style */
.intro-img-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(197, 45, 46, 0.05);
}

.intro-img-wrapper img {
    filter: grayscale(100%);
}

.intro-img-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Concept Section - Multi-Layered Mood */
#about {
    background-image: linear-gradient(rgb(169 8 8 / 89%), rgba(0, 0, 0, 0.75)), url(../img/2.jpg) !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 1023px) {
    #about {
        background-attachment: scroll;
    }
}

#about .container > .flex.mt-12 {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1023px) {
    #about .container > .flex.mt-12 {
        padding: 30px 10px !important;
        border-radius: 12px;
    }
}

/* Concept Section Image Style Redux */
.concept-img-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.concept-img-wrapper::after {
    content: "";
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-red);
    z-index: -1;
}

.concept-img-wrapper img {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

@media (max-width: 1023px) {
    .concept-img-wrapper::after {
        display: none; /* Remove offset frame on mobile to prevent overflow */
    }
    .concept-img-wrapper img {
        clip-path: none; /* Keep image simple and centered on mobile */
        border-radius: 12px;
    }
}

/* Service Section Image Style */
.service-img-wrapper {
    position: relative;
}

.service-img-wrapper img {
    border-radius: 50% 50% 0 0;
}

.service-img-wrapper::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--color-red);
}

/* Menu Section Image Style */
.menu-img-wrapper {
    position: relative;
    background: #000;
}

.menu-img-wrapper img {
    opacity: 0.85;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0));
}

/* Voice Section Image Style (Circular) */
.voice-user-img {
    border: 3px solid var(--color-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Partial Corner Accents Centered Section Title - Tight Layout */
.section-title {
    margin: 0 auto 40px;
    /* Reduced bottom margin */
    position: relative;
    padding: 15px 30px;
    /* Reduced padding */
    display: table;
    /* Keeps the title wrapper wrapping the text tightly so corners look good */
    text-align: center;

    /* Glassmorphism Background */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

/* Specific Glass BG adjustment for dark sections (like Gallery) */
.bg-black .section-title {
    background: rgba(20, 20, 20, 0.3);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.4);
}

/* Top-Left Red Corner Accent */
.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--color-red);
    border-left: 3px solid var(--color-red);
}

/* Bottom-Right Red Corner Accent */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--color-red);
    border-right: 3px solid var(--color-red);
}

@media (max-width: 1023px) {
    .section-title {
        margin: 0 auto 30px;
        /* Tighter mobile margin */
        padding: 15px 20px;
        /* Tighter mobile padding */
    }

    .section-title::before,
    .section-title::after {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }
}

.section-title .en {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 12px;
}

.section-title .jp {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--color-black);
    line-height: 1.2;
}

#about .section-title .jp::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-red);
    margin: 15px auto 0;
    /* Centered with top margin */
}

@media (max-width: 767px) {
    .section-title .jp {
        font-size: 26px;
    }
}

/* Swiper FV - Responsive Height (Maintain Aspect Ratio) */
.fv-swiper {
    width: 100%;
    height: auto;
}

.fv-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Colors */
.btn-reserve {
    background-color: var(--color-red);
    color: white;
    transition: opacity 0.3s;
}

.btn-reserve:hover {
    opacity: 0.8;
}

/* Glass Button Style */
.btn-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

header .btn-glass {
    color: var(--color-black) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

header .btn-glass:hover {
    color: var(--color-red) !important;
    border-color: var(--color-red) !important;
}

/* Mobile Menu - Dark Glassmorphism Redux */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(169, 8, 8, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Same Height & Red Moody Voice Cards */
.voice-swiper .swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
}

.voice-swiper .swiper-slide > div {
    flex-grow: 1;
    background: rgba(169, 8, 8, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.voice-swiper .swiper-slide p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.voice-swiper .swiper-button-next,
.voice-swiper .swiper-button-prev {
    color: white !important;
}

.btn-voice-red {
    background: rgba(169, 8, 8, 0.9) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: inline-block;
}

.btn-voice-red:hover {
    background: rgb(197, 45, 46) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.logo-red-filter {
    filter: sepia(1) saturate(5) hue-rotate(-50deg);
    transition: all 0.3s ease;
}

.logo-red-filter:hover {
    filter: sepia(1) saturate(8) hue-rotate(-50deg) brightness(1.2);
    transform: scale(1.05);
}

.menu-link {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.menu-link:hover {
    color: #fff;
    border-bottom-color: white;
    transform: scale(1.1);
}

#menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#menu-close:hover {
    background: white;
    color: #A90808;
}

/* Modal Improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 20px;
}

.modal-content {
    max-width: auto;
    max-height: 85vh;
    object-fit: contain;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 2100;
    line-height: 1;
    transition: transform 0.3s;
}
.close-modal:hover { transform: rotate(90deg); color: var(--color-red); }

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 20px 25px;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 2100;
}
.modal-nav:hover { background: var(--color-red); border-color: var(--color-red); }
.modal-prev { left: 40px; }
.modal-next { right: 40px; }

@media (max-width: 768px) {
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
    .close-modal { top: 20px; right: 20px; font-size: 40px; }
}

/* Marquee Style Gallery - UNINTERRUPTED CSS VERSION */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-infinite 40s linear infinite !important;
    gap: 20px;
    padding-bottom: 20px;
}

@keyframes marquee-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    flex-shrink: 0;
    cursor: zoom-in;
}

.marquee-item img {
    width: 260px;
    height: 340px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

@media (min-width: 1024px) {
    .marquee-item img {
        width: 340px;
        height: 440px;
    }
}

.marquee-item:hover img {
    transform: scale(1.02);
}

/* Top to back */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-red);
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 50;
}

/* Sticky CTA - Moody Red Glass */
.sticky-cta {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: auto;
    display: none;
    z-index: 999;
    grid-template-columns: 1fr 1fr;
    background: rgba(169, 8, 8, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-cta .btn-glass {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    height: 100%;
}

.sticky-cta .btn-glass:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 1023px) {
    .sticky-cta {
        display: grid;
    }
}

/* Service Section - Modern Grid Style */
.service-feature-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 10px 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-feature-item:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1023px) {
    .service-feature-item {
        padding: 30px;
    }
}

.service-img-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Square style with subtle rounding */
    aspect-ratio: 1 / 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-feature-item:hover .service-img-frame img {
    transform: scale(1.1);
}

.service-content h3 {
    letter-spacing: -0.02em;
    line-height: 1.4;
}

/* Menu Section - Brand Red Moody BG */
#menu {
    background-image: linear-gradient(rgba(197, 45, 46, 0.5), rgba(197, 45, 46, 0.5)), url('../img/menu-bg.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* CTA 1 & 2 & Contact Section - Red to Black Gradient BG */
#cta-1, #cta-2, #contact {
    background-image: linear-gradient(rgb(169 8 8 / 89%), rgba(0, 0, 0, 0.75)), url(../img/menu-bg.jpg) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 1023px) {
    #menu, #cta-1, #cta-2, #contact {
        background-attachment: scroll;
    }
}

/* Menu Section Spacing Overrides */
#menu .gap-x-12 {
    column-gap: 20px !important;
}

#menu .gap-12 {
    gap: 20px !important;
}

@media (min-width: 1024px) {
    #menu .lg\:p-16 {
        padding: 2rem !important;
    }
}

@media (max-width: 1023px) {
    #menu .p-8 {
        padding: 10px 10px !important;
    }
}


/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global SP Padding Correction (10px) */
@media (max-width: 767px) {
    .container,
    section,
    .section-margin,
    .p-8,
    .lg\:p-12,
    #about .container > .flex,
    #menu .bg-black\/40 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .service-feature-item {
        padding: 30px 10px !important;
    }
    #top {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Move Voice Swiper buttons outside on SP */
    .voice-swiper {
        padding-left: 30px !important;
        padding-right: 30px !important;
        overflow: visible !important;
    }
    .voice-swiper .swiper-button-next {
        right: -10px !important;
        color: var(--color-red) !important;
    }
    .voice-swiper .swiper-button-prev {
        left: -10px !important;
        color: var(--color-red) !important;
    }
    .voice-swiper .swiper-button-next::after,
    .voice-swiper .swiper-button-prev::after {
        font-size: 24px !important;
        font-weight: bold;
    }

    /* Back to top SP Adjustment */
    #back-to-top {
        bottom: 100px !important; /* Move above Sticky CTA */
        right: 20px !important;
        z-index: 1001 !important; /* Above Sticky CTA (999) */
    }
}

/* Right Click Disable */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}