@charset "UTF-8";

:root {
    --color-primary: #1dab4c; /* Vibrant Green (Main Brand) */
    --color-accent: #4e5dcf; /* Vibrant Blue (Buttons) */
    --color-water-blue: #f8f4e6; /* Beige (Backgrounds) */
    --color-white: #FFFFFF;
    --color-text: #1F2937; /* Dark Gray */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Shippori Mincho', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: #f8f4e6;
    overflow-x: hidden;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fonts */
.font-serif {
    font-family: var(--font-serif);
}

/* Flat Colors (previously animated gradients) */
.moving-gradient-navy {
    background-color: #1B365D;
    color: var(--color-white);
}

.moving-gradient-gold {
    background-color: #d4af3738;
    color: var(--color-primary);
}

.moving-gradient-light {
    background-color: #F8FAFC;
}

/* ===========================
   FV Section - Blob Design
   =========================== */
.fv-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/bodybg.webp') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fvGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Large soft circle behind left image */
.fv-bg-circle {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: rgba(225, 215, 200, 0.3);
    border-radius: 50%;
    left: -8%;
    top: 5%;
    pointer-events: none;
    z-index: 0;
}

/* Dot grid decoration */
.fv-dot-grid {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, #B8A48A 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
.fv-dot-grid-1 { left: 32%; top: 78%; }
.fv-dot-grid-2 { right: 2%; top: 48%; }

/* Side indicator dots */
.fv-side-dots {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}
.fv-side-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C8B09A;
    display: block;
}
.fv-side-dot.active {
    background: #7A5C42;
    width: 9px;
    height: 9px;
}

/* Blob image containers */
.fv-blob {
    position: absolute;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.13);
}
.fv-blob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Left image - Large primary card */
.fv-blob-left {
    width: 58%;
    height: 85%;
    left: 2%;
    top: 7.5%;
    bottom: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(28, 59, 43, 0.08);
    border: none;
}

/* Right image - Smaller overlapping secondary card */
.fv-blob-right {
    width: 50%;
    height: 42%;
    aspect-ratio: auto;
    left: auto;
    right: 2%;
    top: auto;
    bottom: 5%;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(28, 59, 43, 0.15);
    border: 8px solid #f8f4e6; /* Matches body background to create a cutout effect */
    z-index: 3;
}

/* Center text content - overlaps both images */
.fv-center-content {
    position: absolute;
    z-index: 15;
    text-align: center;
    width: 40%;
    left: 60%;
    right: 0;
    top: 20%;
    transform: none;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fv-heading { margin-bottom: 1.5rem; }

.fv-tagline {
    display: block;
    font-size: 0.85rem;
    color: #5A6B5A;
    margin-bottom: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.fv-clinic-name {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.06em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.fv-char {
    display: inline-block;
    animation: charFadeInOut 6s infinite ease-in-out;
    opacity: 0;
}

.fv-char:nth-child(1) { animation-delay: 0s; }
.fv-char:nth-child(2) { animation-delay: 0.15s; }
.fv-char:nth-child(3) { animation-delay: 0.3s; }
.fv-char:nth-child(4) { animation-delay: 0.45s; }
.fv-char:nth-child(5) { animation-delay: 0.6s; }
.fv-char:nth-child(6) { animation-delay: 0.75s; }
.fv-char:nth-child(7) { animation-delay: 0.9s; }

@keyframes charFadeInOut {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    20%, 75% {
        opacity: 1;
        transform: translateY(0);
    }
    90%, 100% {
        opacity: 0;
        transform: translateY(-12px);
    }
}

/* Badges */
.fv-badges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.fv-badge-item {
    background: rgba(248, 244, 230, 0.85); /* #f8f4e6 transparent */
    color: #1C3B2B;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-align: center;
    line-height: 1.35;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(225, 215, 200, 0.4);
    animation: fvFloat 5s ease-in-out infinite;
}
.fv-badges-row .fv-badge-item:nth-child(1) { animation-delay: 0s; }
.fv-badges-row .fv-badge-item:nth-child(2) { animation-delay: 1.5s; }
.fv-badges-row .fv-badge-item:nth-child(3) { animation-delay: 3s; }

.fv-badge-item:hover {
    animation-play-state: paused;
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    background-color: var(--color-accent);
    color: #1C3B2B;
}
.fv-badge-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.fv-badge-item:hover .fv-badge-icon {
    color: #1C3B2B;
}

@keyframes fvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll indicator */
.fv-scroll-indicator {
    position: absolute;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.fv-scroll-text {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    color: #999;
    font-family: var(--font-sans);
}
.fv-scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, #aaa, rgba(170,170,170,0));
    animation: fvScrollPulse 2s ease-in-out infinite;
}
@keyframes fvScrollPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* FV Mobile */
@media (max-width: 768px) {
    .fv-section {
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
    }
    .fv-blob-left {
        width: 85%;
        height: 55%;
        left: 0;
        top: 5%;
        border-radius: 0 24px 24px 0;
        border: none;
        box-shadow: 0 15px 30px rgba(28, 59, 43, 0.08);
    }
    .fv-blob-right {
        width: 60%;
        height: 40%;
        left: 30%;
        right: auto;
        top: 35%;
        bottom: auto;
        border-radius: 24px;
        border: 6px solid #f8f4e6;
        box-shadow: 0 20px 40px rgba(28, 59, 43, 0.15);
        z-index: 3;
    }
    .fv-center-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-top: 68vh;
        width: 100%;
        max-width: 450px;
        padding: 1rem 0.5rem 3rem 0.5rem;
    }
    .fv-clinic-name { font-size: 2.2rem; }
    .fv-tagline { font-size: 0.75rem; }
    .fv-side-dots { display: none; }
    .fv-dot-grid { display: none; }
    .fv-bg-circle { width: 95vw; height: 95vw; }

    /* Make badges smaller on mobile to fit nicely in one row */
    .fv-badges-row {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .fv-badge-item {
        width: 95px;
        height: 95px;
        font-size: 0.65rem;
        gap: 0.25rem;
        line-height: 1.3;
    }
    .fv-badge-icon {
        width: 15px;
        height: 15px;
    }
}

/* Two Column Layout (Symmetrical 50% Text, 50% Image, Contained) */
.layout-2col {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.layout-2col:last-child {
    margin-bottom: 0;
}

.layout-2col .col-text {
    width: calc(50% - 1rem);
    margin: 0.5rem;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.layout-2col .col-image {
    width: calc(50% - 1rem);
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.layout-2col .col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.layout-2col .col-image:hover img {
    transform: scale(1.05);
}

/* Reverse layout for alternating sections */
.layout-2col.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    .layout-2col .col-text {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .layout-2col {
        flex-direction: column;
        margin-bottom: 4rem;
        padding: 0 1rem;
    }
    .layout-2col.reverse {
        flex-direction: column;
    }
    .layout-2col .col-text {
        width: 100%;
        margin: 0 0 1.5rem 0;
        padding: 3rem 1.5rem;
    }
    .layout-2col .col-image {
        width: 100%;
        margin: 0 0 1.5rem 0;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }
    .layout-2col .col-image img {
        border-radius: 0;
    }

    /* SP Font Size Reductions (except First View) */
    body section:not(#fv) .section-title,
    body footer .section-title {
        font-size: 1.5rem !important;
    }
    
    body section:not(#fv) h2,
    body footer h2 {
        font-size: 1.4rem !important;
    }

    body section:not(#fv) h3,
    body footer h3 {
        font-size: 1.25rem !important;
    }

    body section:not(#fv) h4,
    body footer h4 {
        font-size: 1.1rem !important;
    }
    
    body section:not(#fv) .text-4xl,
    body footer .text-4xl {
        font-size: 1.8rem !important;
    }

    body section:not(#fv) .text-3xl,
    body footer .text-3xl {
        font-size: 1.5rem !important;
    }

    body section:not(#fv) .text-2xl,
    body footer .text-2xl {
        font-size: 1.25rem !important;
    }

    /* Menu Section Price Reductions on SP */
    #menu .text-4xl {
        font-size: 1.6rem !important; /* Main price e.g., 15,000 */
    }
    #menu .text-4xl span {
        font-size: 0.9rem !important; /* Main price "円" */
    }
    #menu .text-xl {
        font-size: 1.1rem !important; /* List prices e.g., 12,000円 */
    }

    /* TV Section Font Reductions on SP */
    #tv ul {
        font-size: 0.95rem !important; /* Reduces list item size from text-lg */
    }
    #tv ul li svg {
        width: 1.25rem !important;
        height: 1.25rem !important; /* Shrink checkmark SVG slightly to match */
    }
    #tv p.text-gold {
        font-size: 1.1rem !important; /* Reduces bottom bold text size from text-xl */
        line-height: 1.6 !important;
    }
}

/* Header Styles */
.header-transparent {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    box-shadow: none;
}
.header-text {
    color: #fff;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}
.header-bg-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header-bg-scrolled .header-text {
    color: var(--color-primary);
    text-shadow: none;
}

/* Mobile Hamburger Menu Icon */
.hamburger {
    background: var(--color-primary);
    border-radius: 8px;
    padding: 10px 9px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.hamburger:hover {
    background: var(--color-accent);
    transform: scale(1.07);
}
.hamburger-line {
    width: 22px;
    height: 2.5px;
    background-color: #ffffff !important;
    display: block;
    margin: 4px auto;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active {
    background: var(--color-accent);
}
.hamburger.active .line1 {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger.active .line2 {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active .line3 {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(160deg, #1dab4c 0%, #16833a 100%);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    padding-top: 80px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.25);
    overflow-y: auto;
}
.mobile-menu.open {
    right: 0;
}
.mobile-menu a {
    color: var(--color-white);
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu a.flex {
    display: flex;
    align-items: center;
}
.mobile-menu a:hover {
    background: rgba(255,255,255,0.12);
    padding-left: 36px;
}

/* Typography */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    line-height: 1.4;
}

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

.moving-gradient-navy .section-title {
    color: var(--color-accent);
}

/* Buttons */
.btn-gold {
    background-color: var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-gold:hover {
    background-color: #1D4ED8; /* Darker Blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-navy {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}
.btn-navy:hover {
    background-color: #2E5A44;
}

/* Menu List Styles */
.menu-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.menu-card:hover {
    transform: translateY(-5px);
}

.point-badge {
    background-color: #689F7D; /* Soft Leafgreen (薄緑) */
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Google Map */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* Hide scrollbars on modern browsers for clean sliders */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Scroll Fade Animation */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

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

/* Botanical Decoration Classes */
.botanical-leaf {
    width: 90px;
    height: 90px;
    color: #689F7D; /* leafgreen */
    opacity: 0.07;
    pointer-events: none;
    position: absolute;
    z-index: 0;
    transition: transform 0.5s ease;
}

.botanical-leaf:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Mobile (SP) Padding Overrides */
@media (max-width: 767px) {
    .px-6, .px-4 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .p-6, .layout-2col .col-text {
        padding: 40px 10px !important;
    }

    .layout-2col {
        padding: 0 10px !important;
    }

    h3 {
        text-align: center !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    outline: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 767px) {
    body {
        padding-bottom: 74px; /* Ensure space for the sticky bottom CTA */
    }
    .back-to-top {
        bottom: 90px; /* Offset back-to-top button above the fixed bottom CTA */
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
