/* Custom Styles for THE TEXAS - Updated */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px; /* PC */
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a1a;
}

:root {
    --texas-red: #E60012;
    --texas-red-light: #FF3344;
    --texas-black: #0D0D0D;
    --texas-white: #F9F7F5;
    --texas-dark: #1A1A1A;
    --texas-gray: #6E6E6E;
    --texas-light: #EBEBEB;
    --texas-bg: #0D0D0D;
}

@media (max-width: 768px) {
    body {
        font-size: 14.5px; /* SP */
    }
}

/* Copy & Right Click Prevention */
body {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Section Margins & Padding */
.section- {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* SP Padding */
@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Header & FV Alignment */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--texas-red) !important;
    text-transform: uppercase;
    text-decoration: none;
}

nav a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--texas-dark);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--texas-red);
}

/* FV is below header because header is sticky now */

/* Section Labels (Type11 Style) */
.sec-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--texas-red);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 14px;
    opacity: 0.9;
}

.sec-lbl::before,
.sec-lbl::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--texas-red);
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-section.is-visible .sec-lbl::before,
.fade-in-section.is-visible .sec-lbl::after {
    width: 40px;
}

.sp-only { display: none; }
.pc-only { display: block; }

@media (max-width: 1024px) {
    .sp-only { display: block; }
    .pc-only { display: none; }
    br.sp-only { display: inline; }
}

/* Section Titles Style (Type11 Style) */
.styled-title {
    color: var(--texas-dark);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.styled-title em {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-top: 5px;
    background: linear-gradient(135deg, #1A1A1A 0%, #4A2B12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.styled-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--texas-red);
    border-radius: 2px;
}

.styled-title.text-white em,
.bg-dark-message .styled-title em {
    background: linear-gradient(135deg, #ffffff 0%, #dddddd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.styled-title.text-white::after,
.bg-dark-message .styled-title::after {
    background: #fff;
    opacity: 0.3;
}

/* Creative Backgrounds */
.bg-plain { background-color: #F9F7F2; }
.bg-warm { background-color: #FFF9E6; }
.bg-wood-light { background: linear-gradient(135deg, #F2EDE8 0%, #E8DFD5 100%); }
.bg-green-soft { background: linear-gradient(135deg, rgba(0, 141, 54, 0.05) 0%, rgba(0, 141, 54, 0.1) 100%); }
.bg-red-soft { background: linear-gradient(135deg, rgba(230, 0, 18, 0.05) 0%, rgba(230, 0, 18, 0.08) 100%); }
.bg-dark-message { background: #1C1510; color: #F9F7F2; }

/* Image Decorative Styles */
.img-style-1 img { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; box-shadow: 0 15px 35px rgba(0,0,0,0.08); transition: transform 0.5s ease; }
.img-style-1:hover img { transform: scale(1.03); }

.img-style-2 img { transform: rotate(-3deg); box-shadow: 20px 20px 0 rgba(230, 0, 18, 0.05); border-radius: 8px; transition: transform 0.5s ease; }
.img-style-2:hover img { transform: rotate(0deg); }

.img-style-3 img { border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.img-style-4 img { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); transition: clip-path 0.5s ease; }
.img-style-4:hover img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }

.img-style-5 img { border-radius: 50% 50% 0 0; box-shadow: 0 15px 35px rgba(0,0,0,0.08); }

/* Seamless Marquee Gallery */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}
.marquee-item {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    margin-right: 15px;
}
.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* --- Scroll Reveal System --- */
[class*="reveal-"] {
    opacity: 0;
    transition: all 1.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(60px); }
.reveal-down { transform: translateY(-60px); }
.reveal-left { transform: translateX(60px); }
.reveal-right { transform: translateX(-60px); }
.reveal-scale { transform: scale(0.95); }

[class*="reveal-"].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Luminous Centering & Fixes */
.lum-lightbox {
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}

.lum-lightbox-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.lum-lightbox-image-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 90% !important;
    max-height: 90% !important;
}

.lum-img {
    max-width: 100% !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-radius: 4px !important;
}

/* Caption styling */
.lum-caption {
    background: transparent !important;
    color: #fff !important;
    font-family: var(--font-serif) !important;
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
    margin-top: 20px !important;
    text-align: center !important;
    opacity: 0.8 !important;
}

/* Navigation buttons */
.lum-previous-button, .lum-next-button {
    width: 60px !important;
    height: 60px !important;
    color: #fff !important;
    opacity: 0.5 !important;
    transition: opacity 0.3s ease !important;
}

.lum-previous-button:hover, .lum-next-button:hover {
    opacity: 1 !important;
}
    max-width: 90vw !important;
    max-height: 80vh !important;
}
/* Hide the '+' if it exists and keep only 'x' */
.lum-close-button {
    @apply text-white text-4xl right-5 top-5 opacity-80 hover:opacity-100 transition;
    background: none !important;
    border: none !important;
}

/* --- Hero (FV) Section Styles --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--texas-bg);
    overflow: hidden;
}

.hero-copy {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    max-width: 600px;
}

.hc-sup {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.7s 0.3s both;
    opacity: 0.9;
}

.hc-sup::before {
    content: '';
    width: 40px;
    height: 1px;
    background: #fff;
    opacity: 0.5;
}

.hc-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
    letter-spacing: 0.15em;
    animation: fadeUp 0.7s 0.45s both;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hc-title .title-highlight {
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.2em;
    display: inline-block;
    margin-top: 12px;
}

.hc-desc {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 40px;
    line-height: 2.2;
    animation: fadeUp 0.7s 0.6s both;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    padding-left: 24px;
}

.hc-cta {
    margin-top: 48px;
    display: flex;
    gap: 24px;
    align-items: center;
    animation: fadeUp 0.7s 0.75s both;
}

.btn-p {
    background: var(--texas-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 22px 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0;
    display: inline-block;
}

.btn-p:hover {
    background: #000;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.btn-g {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}

.btn-g::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.btn-g:hover {
    color: #fff;
}
.btn-g:hover::after {
    width: 48px;
}

/* Background Layers */
.fullscreen-layer {
    position: absolute;
    inset: 0;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.fullscreen-layer.visible {
    opacity: 1;
    pointer-events: auto;
}
.fs-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: scale(1.1);
    transition: transform 5s ease-out;
}
.fullscreen-layer.visible .fs-bg {
    transform: scale(1);
}
.fs-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.4) 60%, transparent 100%);
}

/* Cards Stage */
.cards-stage {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}
.fv-card {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fv-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fv-card.show {
    opacity: 1;
}
.fv-card.expand {
    opacity: 0 !important;
    transform: scale(1.2) !important;
    transition: opacity 0.8s ease, transform 0.8s ease !important;
}

.fv-card.pos0 { width: 360px; height: 360px; top: calc(50% - 260px); right: 15%; transform: rotate(-9deg); z-index: 4; }
.fv-card.pos1 { width: 270px; height: 270px; top: calc(50% - 80px); right: 32%; transform: rotate(6deg); z-index: 3; }
.fv-card.pos2 { width: 290px; height: 290px; top: calc(50% + 30px); right: 10%; transform: rotate(-5deg); z-index: 5; }
.fv-card.pos3 { width: 270px; height: 270px; top: calc(50% - 180px); right: 5%; transform: rotate(12deg); z-index: 2; }

/* UI Elements */
.fv-right {
    position: absolute;
    right: 5%;
    bottom: 10%;
    z-index: 60;
    text-align: right;
    opacity: 0;
    animation: fadeIn 0.8s 1s forwards;
}
.fr-cat-en {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.fr-cat-bar {
    display: inline-block;
    background: var(--texas-red);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    padding: 8px 18px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.fr-counter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}
.fr-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: #fff;
    line-height: 1;
}
.fr-sep {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}
.fr-tot {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

.slide-dots {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 0.8s 1.2s forwards;
}
.dot {
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: var(--texas-red);
    height: 48px;
}

.scroll-ind {
    position: absolute;
    left: 5%;
    bottom: 5%;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 0.8s 1.4s forwards;
}
.s-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.s-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--texas-red);
    animation: scrollAnim 2s ease infinite;
}
.s-txt {
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

/* SP Hero */
.sp-fv {
    display: none;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    body::-webkit-scrollbar {
        display: none;
    }

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

    /* Fixed SP Menu Design */
    #sp-menu {
        z-index: 200 !important;
        background: var(--texas-red);
        background: linear-gradient(135deg, #E60012 0%, #90000b 100%);
        overflow-y: auto;
    }

    #sp-menu .flex-col {
        padding: 60px 30px !important; /* Override the global p-8 for menu */
    }

    #sp-menu .sp-link {
        font-family: 'Cormorant Garamond', serif;
        font-size: 36px;
        font-style: italic;
        font-weight: 600;
        letter-spacing: 0.05em;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
    }

    #sp-menu .sp-link:active {
        opacity: 0.6;
        transform: scale(0.95);
    }

    #sp-menu #menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: rgba(255,255,255,0.1);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .cards-stage, .fullscreen-layer {
        display: block !important;
    }
    .slide-dots, .scroll-ind, .fv-right, .sp-fv, #scroll-top {
        display: none !important;
    }
    .hero {
        height: 85vh;
    }
    .hero-copy {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        padding: 0 24px 60px;
        z-index: 60;
        text-align: left;
    }
    .hc-sup { font-size: 11px; letter-spacing: 0.25em; margin-bottom: 16px; }
    .hc-title { font-size: clamp(32px, 8vw, 42px); line-height: 1.4; }
    .hc-desc { font-size: 14px; line-height: 2; margin-top: 28px; opacity: 0.9; }
    .hc-cta { margin-top: 36px; gap: 16px; }
    .btn-p { padding: 16px 36px; font-size: 10px; width: 100%; text-align: center; }
    .btn-g { display: none; }

    .fv-card {
        border-radius: 50%;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    }

    /* SP Card Positioning - Beautiful Cluster */
    .fv-card.pos0 { width: 160px; height: 160px; top: 15%; right: 5%; transform: rotate(-10deg); z-index: 4; }
    .fv-card.pos1 { width: 120px; height: 120px; top: 8%; right: 40%; transform: rotate(8deg); z-index: 3; }
    .fv-card.pos2 { width: 140px; height: 140px; top: 28%; right: 25%; transform: rotate(-6deg); z-index: 5; }
    .fv-card.pos3 { width: 110px; height: 110px; top: 22%; right: -5%; transform: rotate(12deg); z-index: 2; }

    .fs-overlay {
        background: linear-gradient(to top, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.4) 60%, transparent 100%);
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scrollAnim {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* --- Footer Styles --- */
footer nav a {
    color: rgba(249, 245, 240, 0.7) !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer nav a:hover {
    color: #E60012 !important; /* texasRed */
    opacity: 1;
}

/* SP Fixed CTA Toggle */
.sp-fixed-cta {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 40px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sp-fixed-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Typography Refinement */
@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 33px !important;
        line-height: 1.4 !important;
    }
}

/* SP Global Typography */
@media (max-width: 768px) {
    .text-3xl {
        font-size: 26px !important;
    }
}


