@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,700;1,400&family=Noto+Sans+JP:wght@300;400;700&display=swap');

/* --- Premium Enhancements --- */
:root {
    --himawari-yellow: #F5C028;
    --himawari-yellow-light: #FFEBAD;
    --himawari-green: #7DA546;
    --himawari-green-light: #E7F3D4;
    --himawari-brown: #4A3933;
    --himawari-brown-light: #705B54;
    --himawari-bg: #FDF9F2;
    --himawari-white: #FFFFFF;
    --shadow-soft: 0 10px 30px -5px rgba(74, 57, 51, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(74, 57, 51, 0.12);
}

body {
    line-height: 1.8;
    letter-spacing: 0.08em;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--himawari-bg);
    color: var(--himawari-brown);
}

/* --- First View (FV) Premium --- */
.fv-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(253, 249, 242, 0.9) 20%, rgba(253, 249, 242, 0) 100%);
}

.fv-content-panel {
    max-width: 600px;
    padding: 0 2rem;
}

.fv-ghost-text {
    position: absolute;
    top: 10%;
    left: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 700;
    color: var(--himawari-brown);
    opacity: 0.03;
    line-height: 1;
    -webkit-text-stroke: 1px var(--himawari-brown);
    color: transparent;
    pointer-events: none;
    z-index: -1;
}

.fv-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--himawari-brown);
}

.fv-sub-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--himawari-yellow);
}

.fv-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, var(--himawari-yellow) 0%, #f7d46c 100%);
    color: var(--himawari-brown);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(245, 192, 40, 0.2);
}

/* Rotating CTA for FV */
.fv-cta-wrap {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-top: 2rem;
}

.fv-cta-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--himawari-yellow);
    border-radius: 50%;
    animation: fv-ring-spin 12s linear infinite;
}

@keyframes fv-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fv-cta-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--himawari-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(125, 165, 70, 0.3);
}

.fv-cta-circle:hover {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .fv-container {
        height: 70vh;
    }

    .fv-overlay {
        align-items: flex-end;
        background: linear-gradient(to top, rgba(253, 249, 242, 0.95) 30%, rgba(253, 249, 242, 0) 70%);
        padding-bottom: 3rem;
    }

    .fv-content-panel {
        max-width: 100%;
        text-align: center;
        padding: 0 1.5rem;
    }

    .fv-main-title {
        font-size: 2.25rem;
    }

    .fv-sub-title {
        border-left: none;
        padding-left: 0;
        font-size: 0.95rem;
    }

    .fv-ghost-text {
        font-size: 4rem;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
    }

    .fv-cta-wrap {
        width: 100px;
        height: 100px;
    }
}

/* --- Layout --- */
.section-spacer {
    margin-bottom: 100px;
}

@media (min-width: 768px) {
    .section-spacer {
        margin-bottom: 160px;
    }
}

/* --- Navigation --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 192, 40, 0.1);
}

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

@media (min-width: 768px) {
    .section-title-wrap {
        margin-bottom: 8rem;
    }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--himawari-brown);
    position: relative;
    display: inline-block;
    letter-spacing: 0.15em;
    z-index: 1;
}

.section-title::before {
    content: "🌻";
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(245, 192, 40, 0.4));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--himawari-yellow), transparent);
    border-radius: 5px;
}

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

/* --- Cards & Containers --- */
.card-premium,
.section-content-box {
    background: var(--himawari-white);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(74, 57, 51, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-content-box {
    padding: 3rem 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .section-content-box {
        padding: 5rem 4rem;
    }
}

.card-premium {
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

/* --- Animations --- */
.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

/* --- CTA Premium Design --- */
.cta-glass-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 192, 40, 0.1);
    box-shadow: 0 10px 30px -10px rgba(74, 57, 51, 0.05);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cta-glass-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(245, 192, 40, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.cta-premium-btn {
    position: relative;
    padding: 1rem 0.5rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    overflow: hidden;
}

.cta-premium-btn:hover {
    transform: translateY(-5px) scale(1.02);
}

.cta-premium-btn.line {
    background: linear-gradient(135deg, #06C755 0%, #05a346 100%);
    box-shadow: 0 10px 20px -5px rgba(6, 199, 85, 0.3);
}

.cta-premium-btn.web {
    background: linear-gradient(135deg, var(--himawari-yellow) 0%, #e2ad1e 100%);
    box-shadow: 0 10px 20px -5px rgba(245, 192, 40, 0.3);
}

.cta-premium-btn.tel {
    background: linear-gradient(135deg, var(--himawari-brown) 0%, #352925 100%);
    box-shadow: 0 10px 20px -5px rgba(74, 57, 51, 0.3);
}

.cta-premium-btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: 0;
}

.cta-premium-btn:hover::before {
    top: 100%;
    left: 100%;
}

.cta-premium-btn i,
.cta-premium-btn svg,
.cta-premium-btn img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* --- Premium Image Styling --- */
img {
    max-width: 100%;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

/* Styled images in main content */
main img:not(.no-style):not(.swiper-slide img) {
    border-radius: 12px;
    box-shadow: 0 20px 40px -15px rgba(74, 57, 51, 0.12);
    filter: brightness(1.01) contrast(1.02);
}

main img:not(.no-style):not(.swiper-slide img):hover {
    transform: scale(1.02);
    filter: brightness(1.04) contrast(1.04);
}

#gallery {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(245, 192, 40, 0.03) 0%, transparent 70%);
}

.gallery-swiper {
    position: relative;
    /* Soft fade at the edges - more subtle for container layout */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0 !important;
}

.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.gallery-swiper .swiper-slide {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: none;
    opacity: 1;
}

.gallery-swiper .swiper-slide img {
    border-radius: 24px !important;
    box-shadow: 0 15px 35px rgba(74, 57, 51, 0.1) !important;
    object-fit: cover;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.gallery-swiper .swiper-slide:hover img {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(74, 57, 51, 0.2) !important;
    border-color: var(--himawari-yellow);
}

/* Swiper specific - General (others stay full-bleed) */
.fv-swiper .swiper-slide img {
    border-radius: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
}

/* Staff Section specific */
.staff-headshot {
    object-position: center 15%;
    /* Usually centers on the face for full-body/portrait shots */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.staff-headshot:hover {
    transform: scale(1.1);
    /* Slight zoom in on face */
}

/* Base Reveal & Others */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* --- Swiper Enhancements --- */
.fv-swiper .swiper-slide {
    overflow: hidden;
}

.fv-swiper .swiper-slide img {
    transition: transform 12s linear;
    transform: scale(1);
}

.fv-swiper .swiper-slide-active img {
    transform: scale(1.1);
}

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

/* --- Custom Components --- */
.cta-btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

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

.cta-btn-primary:hover::before {
    left: 100%;
}

/* --- Menu Section Background --- */
.menu-bg-section {
    position: relative;
    background-image: linear-gradient(rgba(253, 249, 242, 0.9), rgba(253, 249, 242, 0.9)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    background-repeat: no-repeat;
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (max-width: 767px) {
    .menu-bg-section {
        background-attachment: scroll;
        /* Disable parallax on mobile to prevent performance issues */
    }
}

/* --- Footer --- */
footer {
    background: linear-gradient(180deg, var(--himawari-brown) 0%, #352925 100%);
}

/* --- Professional Lightbox (Luminous) Styling --- */
.lum-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 50000 !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px);
    display: none !important;
}

.lum-lightbox.lum-open {
    display: block !important;
}

.lum-lightbox-inner {
    all: unset !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
}

/* Definitive Infallible Centering */
.lum-lightbox-image,
.lum-img {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 80vh !important;
    /* Ensuring beautiful space at top/bottom */
    margin: 10vh auto !important;
    /* Equal vertical gap */
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px;
    box-shadow: 0 60px 180px rgba(0, 0, 0, 1);
    background-color: transparent !important;
    pointer-events: auto !important;
}

/* Hide caption absolutely to ensure it takes ZERO space */
.lum-img-caption {
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Close Button - Final Polish */
.lum-close-button {
    all: unset !important;
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    width: 44px !important;
    height: 44px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    z-index: 50100 !important;
    cursor: pointer !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.lum-close-button::before,
.lum-close-button::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 22px !important;
    height: 2px !important;
    background-color: #fff !important;
}

.lum-close-button::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.lum-close-button::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.lum-close-button:hover {
    background-color: #ff3333 !important;
    transform: scale(1.1) rotate(90deg) !important;
}

/* Clear junk */
.lum-close-button * {
    display: none !important;
}

/* Navigation Buttons */
.lum-previous,
.lum-next {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
    border-radius: 50% !important;
    z-index: 10010 !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: transparent !important;
    font-size: 0 !important;
    transition: all 0.3s ease !important;
}

.lum-previous::after,
.lum-next::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 3px solid #fff !important;
    border-right: 3px solid #fff !important;
    display: block !important;
}

.lum-previous::after {
    transform: translate(-30%, -50%) rotate(-135deg) !important;
}

.lum-next::after {
    transform: translate(-70%, -50%) rotate(45deg) !important;
}

.lum-previous:hover,
.lum-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.lum-lightbox path,
.lum-lightbox svg,
.lum-lightbox i {
    display: none !important;
}

@media (max-width: 767px) {
    .lum-lightbox-inner {
        padding: 10px !important;
    }

    .lum-lightbox-image {
        max-width: 95vw !important;
        max-height: 80vh !important;
    }

    .lum-previous,
    .lum-next {
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.3) !important;
    }

    .lum-previous {
        left: 10px !important;
    }

    .lum-next {
        right: 10px !important;
    }

    .lum-close-button {
        top: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        background-size: 20px 20px !important;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* --- Right Click Prevention Message (Opt-in via JS) --- */
.no-copy-overlay {
    pointer-events: none;
}

/* --- Swiper Fade Effect fixes --- */
.swiper-fade .swiper-slide {
    pointer-events: none;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* --- Functional Styles --- */

/* Back to Top */
#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Hamburger transition */
#hamburger-btn.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger-btn.active .line:nth-child(2) {
    opacity: 0;
}

#hamburger-btn.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* SP menu visibility */
#sp-menu.active {
    opacity: 1;
    pointer-events: auto;
}

/* Accordion */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
}

.accordion.active .accordion-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

.accordion-inner {
    min-height: 0;
}

.accordion-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Right Click Prevention */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Utilities */
.mobile-only {
    display: none;
}

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