@charset "UTF-8";

/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
:root {
    --color-bg: #F5F1E8;
    --color-text: #45030b;
    --color-accent: #a71653;
    --color-secondary: #79c251;
    --font-sans: 'Shippori Mincho', serif;
    --font-serif: 'Shippori Mincho', serif;
    --font-en: 'Cormorant Garamond', serif;
    --spacing-sp: 80px;
    --spacing-pc: 120px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

*, ::before, ::after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-top: 72px; /* Calculated header height: 40px logo + 32px padding (py-4) */
}

/* Section Scrolling Offset */
section[id] {
    scroll-margin-top: 96px; /* Offset for header + 24px extra breathing room */
}

/* Removed auto padding-top over-ride to keep space for fixed header */

th,
td {
    vertical-align: top;
}

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

/* Section Margins */
section {
    padding-top: var(--spacing-sp);
    padding-bottom: var(--spacing-sp);
    margin-bottom: 0;
}

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

section#service,
section#gallery {
    margin-bottom: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: var(--color-bg);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--color-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.1em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* Brand Logo */
.brand-logo {
    font-weight: 700;
    letter-spacing: 0.25em;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.brand-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}

.brand-logo:hover {
    letter-spacing: 0.35em;
    opacity: 0.8;
}

/* Mobile Header & Menu Styles */
@media (max-width: 767px) {
    #menu-toggle {
        width: 24px;
        height: 18px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 101;
    }

    #menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        transform-origin: center;
    }

    #menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    #menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #mobile-menu {
        position: fixed;
        inset: 0;
        background-color: rgba(245, 241, 232, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }

    #mobile-menu.open {
        visibility: visible;
        opacity: 1;
    }

    #mobile-menu nav a {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    #mobile-menu.open nav a {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-menu.open nav a:nth-child(1) { transition-delay: 0.1s; }
    #mobile-menu.open nav a:nth-child(2) { transition-delay: 0.2s; }
    #mobile-menu.open nav a:nth-child(3) { transition-delay: 0.3s; }
    #mobile-menu.open nav a:nth-child(4) { transition-delay: 0.4s; }
    #mobile-menu.open nav a:nth-child(5) { transition-delay: 0.5s; }
    
    #mobile-menu .btn-accent {
        opacity: 0;
        transform: translateY(20px);
        margin-top: 2rem;
    }

    #mobile-menu.open .btn-accent { 
        opacity: 1;
        transform: translateY(0);
        transition: all 0.4s ease;
        transition-delay: 0.6s;
    }
}

/* ==========================================================================
   First View (FV)
   ========================================================================== */
.fv-section {
    margin: 0;
    padding: 0;
}

.fv-swiper {
    width: 100%;
    height: auto;
}

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

/* ==========================================================================
   Components
   ========================================================================== */

/* Section Headings */
.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-en {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
    margin-top: 10px;
}

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

.section-title-en:hover {
    color: var(--color-text);
}

.section-title-jp {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.section-title-jp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
}

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

/* Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glassmorphism / Premium look */
.premium-card {
    background: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-accent,
.cta-btn-main,
.btn-outline-accent {
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    /* 丸みをなくす */
    transition: all 0.5s ease;
    z-index: 1;
}

.btn-accent::before,
.cta-btn-main::before,
.btn-outline-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.5s;
    z-index: -1;
}

.btn-accent:hover::before,
.cta-btn-main:hover::before,
.btn-outline-accent:hover::before {
    left: 100%;
}

.btn-accent:hover,
.cta-btn-main:hover,
.btn-outline-accent:hover {
    transform: translateY(-5px);
    /* 浮き上がる */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
    /* ふんわり輝く */
}

.btn-accent {
    background-color: var(--color-secondary);
    color: #fff;
    border: 1px solid var(--color-secondary);
    border-radius: 9999px;
}

.btn-outline-accent {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

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

/* CTA Section Styles */
.cta-btn-main {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-text) 100%);
    color: #fff;
    border: none;
    font-weight: 700;
}

.cta-btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #5ba337 100%);
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    border: none;
    font-weight: 700;
}

.cta-btn-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.5);
    filter: brightness(1.1);
}

/* Swiper Pagination */
.swiper-pagination-bullet-active {
    background: var(--color-accent) !important;
}

/* ==========================================================================
   GLightbox Custom Styling
   ========================================================================== */
.glightbox-container {
    z-index: 10000 !important;
}

.gslide-image img {
    max-height: 85vh !important;
    width: auto !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gclose {
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    padding: 10px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gprev,
.gnext {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
}

/* Center everything in GLightbox */
.ginner-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

/* Top Scroll Button */
#scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 50%;
    right: 1.5rem !important;
    background-color: var(--color-secondary) !important;
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

#scroll-top:hover {
    background-color: var(--color-text);
    transform: translateY(-5px);
}

/* Continuous Slider */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Contact Map and SP Spacing */
@media (max-width: 767px) {
    #contact {
        padding-left: 0;
        padding-right: 0;
    }

    #contact .section-title-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #contact .flex-col>.space-y-8 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .contact-map-container {
        aspect-ratio: 1 / 1;
        min-height: auto;
        margin-top: 2rem;
    }

    #contact th {
        width: 25% !important;
    }

    /* Subtitle centering for SP */
    #intro p.font-serif,
    #about h3,
    #service h3,
    #service span.text-xs,
    #message h3,
    #contact h3 {
        text-align: center !important;
        display: block;
    }
}

/* CTA SP Fixed */
.cta-fixed-sp {
    display: none;
}

@media (max-width: 767px) {
    .cta-fixed-sp {
        display: flex;
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: 10px;
        padding-right: 10px;
    }

    .cta-fixed-sp a {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .cta-fixed-sp span {
        font-size: 0.85rem !important;
        font-weight: 700;
    }

    .cta-fixed-sp svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

/* Recommend Mask - Removed for solid circle */
/* .recommend-mask {
    background: radial-gradient(circle, transparent 40%, var(--color-bg) 70%);
    pointer-events: none;
} */

.bg-gradient-nagomi-to-white {
    background: linear-gradient(to bottom, var(--color-bg) 0%, #ffffff 50%, #ffffff 100%);
}

.bg-message-custom {
    background-color: rgba(31, 42, 68, 0.05);
    /* nagomi-dark with 0.05 opacity */
}

/* Section Arc */
.section-arc-top {
    position: relative;
    margin-top: 150px !important;
    background-color: #ECE8DE;
    overflow-x: clip; /* Modern way to hide horizontal overflow without clipping vertical */
}

/* Add a background color to the area ABOVE the arc if needed, 
   but since the section above is white, the corners of the arc 
   (where the mountain shape doesn't cover) will show the section's background.
   If we wrap the section or set the body bg, we need to be careful.
*/

.section-arc-top::before {
    content: "";
    position: absolute;
    top: -149px;
    left: -10vw;
    width: 120vw;
    height: 150px;
    background-color: #ECE8DE;
    /* The color of the arc itself (Service section color) */
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

/* To make the "background" of the arc corners white: */
#service.section-arc-top {
    background-color: #ECE8DE;
}

#service.section-arc-top::after {
    content: "";
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #ffffff;
    /* This fills the area above the arc corners with white */
    z-index: 0;
}


.course-overlay {
    position: relative;
}

.course-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(237 226 202 / 70%);
    /* Updated Beige overlay */
    z-index: 0;
}

#menu .section-title-container,
#menu .premium-card,
#menu .max-w-3xl {
    position: relative;
    z-index: 10;
}

#menu .section-title-jp,
#menu .section-title-en,
#menu .course-title {
    color: var(--color-text) !important;
}

#menu .glass-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(31, 42, 68, 0.1);
}

#menu .price-item-responsive {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: rgba(31, 42, 68, 0.1);
    color: var(--color-text) !important;
}

#menu .price-item-responsive h4 {
    color: var(--color-text);
}

#menu .price-item-responsive p {
    color: var(--color-accent);
}

#menu .price-item-responsive .border-dotted {
    border-color: var(--color-text) !important;
    opacity: 0.2;
}

#mobile-menu nav {
    font-family: var(--font-serif);
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-text);
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 40px;
}

/* Utilities */
.text-balance {
    text-wrap: balance;
}

.text-2xl {
    font-size: 1.4rem !important;
}

.course-title {
    font-size: 1.5rem !important;
}

.br-sp {
    display: block;
}

@media (min-width: 768px) {
    .br-sp {
        display: none;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}

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