/* 
  Guest House Towadakan - Beautiful & Premium Design
  Style: Natural, High-end, Friendly
*/

:root {
    /* Primary Colors */
    --clr-brown-main: #8b5e3c;
    --clr-brown-light: #b48a6a;
    --clr-brown-xdark: #3a2619;

    --clr-green-main: #2d5a27;

    --clr-beige-bg: #fefaf7;
    --clr-beige-dark: #f5ece5;

    --clr-black: #1a1a1a;
    --clr-white: #ffffff;

    /* Typography */
    --font-jp: 'Noto Serif JP', serif;
    --lsp: 0.08em;
    --lh: 1.9;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(139, 94, 60, 0.08);
    /* Brown hint */
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 40px 80px -15px rgba(58, 38, 25, 0.15);
}

/* Global Reset & Base */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-jp);
    line-height: var(--lh);
    letter-spacing: var(--lsp);
    color: var(--clr-black);
    background-color: var(--clr-beige-bg);
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Utils --- */
.section-padding {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 140px 0;
    }
}

/* --- Elegant Titles --- */
.title-wrap {
    margin-bottom: 5rem;
    text-align: center;
}

.title-en {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-brown-light);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 1s ease;
}

.title-jp {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clr-brown-xdark);
    display: inline-block;
    position: relative;
    padding-bottom: 1.5rem;
}

.title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--clr-brown-main);
    transform: translateX(-50%);
    transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.visible .title-en {
    opacity: 1;
    transform: translateY(0);
}

.visible .title-jp::after {
    width: 100px;
}

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

/* --- Buttons --- */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.5rem;
    font-weight: 700;
    border-radius: 2px;
    /* Sharp & Premium */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-premium:hover::after {
    width: 100%;
}

/* --- Cards & Images --- */
.card-premium {
    background: var(--clr-white);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(139, 94, 60, 0.05);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.img-hover-scale {
    overflow: hidden;
    background: var(--clr-black);
}

.img-hover-scale img {
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    display: block;
}

.card-premium:hover .img-hover-scale img {
    transform: scale(1.08);
    opacity: 0.85;
}

/* --- Table Design --- */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1.2rem;
}

.premium-table td {
    padding: 2rem 1.5rem;
    background: white;
    border-top: 1px solid var(--clr-beige-dark);
    border-bottom: 1px solid var(--clr-beige-dark);
}

.premium-table td:first-child {
    border-left: 1px solid var(--clr-beige-dark);
    border-radius: 8px 0 0 8px;
}

.premium-table td:last-child {
    border-right: 1px solid var(--clr-beige-dark);
    border-radius: 0 8px 8px 0;
}

.premium-table tr:hover td {
    background: var(--clr-beige-bg);
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* --- SP Navigation Bar Fix --- */
.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--clr-brown-main);
    transition: all 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 24px !important;
}

/* --- Floating Background text --- */
.floating-bg-text {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(139, 94, 60, 0.03);
    z-index: -1;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

/* --- Parallax Custom --- */
#room-parallax {
    background-attachment: fixed;
}

@media (max-width: 1023px) {
    #room-parallax {
        background-attachment: scroll;
        /* Better for mobile performance */
    }
}

/* --- Scroll Anim for Indicator --- */
@keyframes scroll-line {
    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;
    }
}

.scroll-anim {
    animation: scroll-line 2s infinite ease-in-out;
}

/* --- Compact CTA Styling --- */
.section-cta-compact {
    padding: 60px 0;
}

.section-cta-full {
    padding: 0 !important;
}

@media (min-width: 1024px) {
    .section-cta-compact {
        padding: 100px 0;
    }
}

.cta-box {
    position: relative;
    padding: 3rem 2rem;
    border: 1px solid rgba(139, 94, 60, 0.1);
    background: var(--clr-white);
    max-width: 900px;
    margin: 0 auto;
}

.cta-box-full {
    max-width: 100% !important;
    width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(139, 94, 60, 0.05);
    pointer-events: none;
}

.cta-title-small {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--clr-brown-xdark);
    font-weight: 700;
}

@media (min-width: 768px) {
    .cta-title-small {
        font-size: 1.75rem;
        line-height: 1.6;
    }
}

.btn-cta-small {
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* --- About Section Refinement --- */
.about-image-wrap {
    position: relative;
    padding: 20px;
}

.about-image-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 85%;
    background: var(--clr-beige-dark);
    z-index: -1;
    border-radius: 2px;
}

.about-image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 60px;
    border-left: 2px solid var(--clr-brown-main);
    border-bottom: 2px solid var(--clr-brown-main);
    z-index: 1;
}

.text-accent-line {
    position: relative;
    display: inline-block;
    padding-left: 1.5rem;
}

.text-accent-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--clr-brown-main);
}

/* --- Message Section Refinement --- */
.message-inner {
    position: relative;
    padding: 3rem 1.5rem;
    background: var(--clr-white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 20;
}

@media (min-width: 768px) {
    .message-inner {
        padding: 6rem 4rem;
    }
}

.message-inner::before,
.message-inner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
}

.message-inner::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--clr-brown-light);
    border-left: 1px solid var(--clr-brown-light);
}

.message-inner::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--clr-brown-light);
    border-right: 1px solid var(--clr-brown-light);
}

.message-title {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--clr-brown-xdark);
    font-weight: 700;
}

@media (min-width: 768px) {
    .message-title {
        font-size: 2rem;
        line-height: 1.6;
    }
}

.message-img-box {
    position: relative;
    margin-top: 5rem;
}

.message-img-box img {
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.3);
}

/* --- Hamburger Overlay --- */
#mobile-menu {
    background: var(--clr-beige-bg);
}

#mobile-menu a {
    transition: all 0.3s;
}


#mobile-menu a:hover {
    color: var(--clr-brown-main);
    transform: translateX(10px);
}

/* Gallery Marquee Effect */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.gallery-swiper .swiper-slide {
    transition: opacity 0.5s ease;
}

.gallery-swiper {
    padding: 20px 0;
}

.gallery-swiper img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-swiper img:hover {
    transform: scale(1.05);
}

/* Voice/Testimonial Section */
.voice-swiper {
    padding: 20px 0 60px;
}

.voice-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.voice-swiper .bg-white {
    width: 100%;
}

.text-theme-gold {
    color: var(--clr-gold, #d4af37);
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Voice Modal Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--clr-brown-light);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .voice-swiper {
        padding: 20px 0 40px;
    }
    
    .voice-swiper .bg-white {
        padding: 2rem !important;
    }
}

/* Pagination Styling */
.swiper-pagination-bullet {
    background: var(--clr-brown-main) !important;
    opacity: 0.2;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* --- Utility classes --- */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}