@charset "UTF-8";

/* ==========================================================================
   Base
   ========================================================================== */
:root {
    --primary-color: #d4af37;
    --secondary-color: #fef5db;
    --bg-dark: #FAF7F0;
    --text-main: #1e1701;
    --text-sub: rgba(30, 23, 1, 0.7);
    --sp-margin: 80px;
    --pc-margin: 120px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================================================
   Layout Improvements (Anti-template)
   ========================================================================== */
section {
    margin-bottom: 0;
    padding-top: 70px;
    padding-bottom: 70px;
}

@media (min-width: 1024px) {
    section {
        margin-bottom: 0;
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

/* --- Section Specific Backgrounds --- */
/* Removed old #fv resets */

/* --- Section Specific Backgrounds (Creative Layering) --- */

#tv {
    background-color: rgba(250, 247, 240, 0.85);
    /* Light overlay */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(30, 23, 1, 0.1);
}

#about {
    background-color: #f0ede4;
    /* Slightly different light tone */
}

#service {
    background-color: rgba(250, 247, 240, 0.7);
    backdrop-filter: blur(6px);
}

#menu {
    padding-top: 0;
    padding-bottom: 0;
}

#gallery {
    background-color: #FAF7F0;
}

#voice {
    background-color: #fefbf4;
}

#access {
    background-color: #FAF7F0;
}

.max-w-base {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    background-color: transparent;
    /* Ensure content itself has no bg */
}

.max-w-base.relative.z-10 {
    padding-top: 70px;
}

.py-24 {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

/* ==========================================================================
   Section Title (Modern Text Design)
   ========================================================================== */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-en {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.6em;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.9;
}

.section-title-jp {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    position: relative;
    padding: 12px 40px;
    border: 1px solid var(--primary-color);
    background-color: rgba(212, 175, 55, 0.03);
    /* Subtle backdrop */
}

/* Removed old underline ::after */

@media (min-width: 768px) {
    .section-title-jp {
        font-size: 2.4rem;
    }

    .section-title-wrapper {
        margin-bottom: 80px;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 9000;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 10px 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(30, 23, 1, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    overflow-y: auto;
    padding: 80px 20px;
}

#mobile-menu-overlay::after {
    content: "NISHINOYA";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.03);
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    letter-spacing: 0.3em;
}

#mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.2rem 0;
    opacity: 0;
    transform: perspective(1000px) rotateX(-30deg) translateY(40px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

#mobile-menu-overlay.active .mobile-menu-link {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

.menu-num {
    font-family: serif;
    font-style: italic;
    font-size: 0.8rem;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-right: 1.5rem;
    display: inline-block;
}

/* Staggered animation */
#mobile-menu-overlay.active .mobile-menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu-overlay.active .mobile-menu-link:nth-child(2) {
    transition-delay: 0.18s;
}

#mobile-menu-overlay.active .mobile-menu-link:nth-child(3) {
    transition-delay: 0.26s;
}

#mobile-menu-overlay.active .mobile-menu-link:nth-child(4) {
    transition-delay: 0.34s;
}

#mobile-menu-overlay.active .mobile-menu-link:nth-child(5) {
    transition-delay: 0.42s;
}

#mobile-menu-overlay.active .mobile-menu-link:nth-child(6) {
    transition-delay: 0.50s;
}

#mobile-menu-overlay.active .mobile-menu-link:nth-child(7) {
    transition-delay: 0.58s;
}

/* ==========================================================================
   Swiper FV (First View)
   ========================================================================== */
.fv-swiper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
}

.fv-swiper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.fv-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 104px);
    object-fit: contain;
    vertical-align: bottom;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.7rem;
    color: var(--text-main);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    letter-spacing: 0.3em;
}

.scroll-down::after {
    content: "";
    display: block;
    width: 1px;
    height: 50px;
    background-color: var(--text-main);
    margin: 10px auto 0;
    animation: line-grow 2s infinite ease-in-out;
}

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

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

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

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

/* ==========================================================================
   Parallax
   ========================================================================== */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
        /* Fix for mobile parallax */
    }
}

/* ==========================================================================
   UI Components
   ========================================================================== */
.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 12px 24px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* --- Creative CTA Button --- */
.cta-btn-stylish {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main);
    border: 1px solid rgba(30, 23, 1, 0.15);
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.cta-btn-stylish .label {
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 0.3em;
    margin-bottom: 5px;
    text-transform: uppercase;
    transition: color 0.6s ease;
}

.cta-btn-stylish .main-txt {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: color 0.6s ease;
}

.cta-btn-stylish::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.cta-btn-stylish:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.cta-btn-stylish:hover::before {
    transform: translateY(-100%);
}

.cta-btn-stylish:hover .label,
.cta-btn-stylish:hover .main-txt {
    color: #000;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

@media (min-width: 1024px) {
    .back-to-top {
        bottom: 30px;
    }
}

.sticky-cta-sp {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 500;
}

.sticky-cta-sp a {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

.text-sub {
    color: rgba(30, 23, 1, 0.75);
}

/* --- Image Styling (Creative & Attractive) --- */

/* Intro Image: Floating Border */
.img-intro-style {
    position: relative;
    padding: 2.5rem;
    z-index: 1;
}

.img-intro-style::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 40%;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-intro-style::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 40%;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-intro-style:hover::before,
.img-intro-style:hover::after {
    width: 100%;
    height: 100%;
}

/* About Image: Gradient Mask Overlay */
.img-about-style {
    position: relative;
    overflow: hidden;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.img-about-style::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, transparent 50%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.img-about-style img {
    transition: transform 1.5s ease;
}

.img-about-style:hover img {
    transform: scale(1.1) rotate(-1deg);
}

/* Service Image: Dual Layer Depth */
.img-service-style {
    position: relative;
    transition: all 0.6s ease;
    filter: sepia(0.3) contrast(1.1);
}

.img-service-style img {
    box-shadow: 30px -30px 0px -5px rgba(212, 175, 55, 0.05);
}

.img-service-style:hover {
    filter: sepia(0) contrast(1);
    transform: translateY(-10px);
}

/* Menu Image: Gold Frame Accent */
.img-menu-style {
    border: 1px solid rgba(30, 23, 1, 0.1);
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.02);
    position: relative;
}

.img-menu-style::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

/* Gallery Continuous Scroll & Hover Effect */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.gallery-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.gallery-link::after {
    content: "VIEW";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: #FAF7F0;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    padding: 10px 20px;
    border: 1px solid #FAF7F0;
}

.gallery-link img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.gallery-link:hover img {
    transform: scale(1.15);
    filter: brightness(0.5) blur(2px);
}

.gallery-link:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Scroll Fade Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

/* ==========================================================================
   Responsive Typography Overrides
   ========================================================================== */
@media (max-width: 768px) {
    .section-title-jp {
        padding: 12px 8px !important;
    }

    .text-3xl {
        font-size: 24px !important;
    }

    .text-2xl {
        font-size: 21px !important;
    }

    .p-8 {
        padding: 40px 10px !important;
    }

    .px-10 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .p-12 {
        padding: 30px !important;
    }

    .p-10 {
        padding: 10px !important;
    }

    .min-h-\[500px\] {
        min-height: 0px !important;
    }
}