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

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

html {
    scroll-padding-top: 5rem;
}

body {
    background-color: #FAF8F9;
    color: #4A403A;
    scroll-behavior: smooth;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Menu Dots */
.menu-item {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.menu-title {
    white-space: nowrap;
    font-weight: 500;
}

.menu-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #E5989B;
    margin: 0 12px;
    position: relative;
    top: -4px;
    opacity: 0.4;
}

.menu-price {
    white-space: nowrap;
    font-weight: 700;
    color: #B56576;
}

.bg-gradient-dynamic {
    background: linear-gradient(135deg, #FAF8F9 0%, #FFF0F2 100%);
}

/* =========================================
FV Section (Type14 Logic)
========================================= */
.fv {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--modern-bg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Petals */
.petal {
    position: absolute;
    background: rgba(229, 152, 155, 0.25);
    border-radius: 50% 0 50% 0;
    pointer-events: none;
    animation: floatPetal 8s ease-in-out infinite;
}

.petal:nth-child(1) {
    width: 28px;
    height: 28px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    width: 18px;
    height: 18px;
    top: 30%;
    left: 22%;
    animation-delay: 1.5s;
}

.petal:nth-child(3) {
    width: 22px;
    height: 22px;
    top: 55%;
    left: 6%;
    animation-delay: 3s;
}

.petal:nth-child(4) {
    width: 16px;
    height: 16px;
    top: 75%;
    left: 18%;
    animation-delay: 2s;
}

.petal:nth-child(5) {
    width: 24px;
    height: 24px;
    top: 20%;
    right: 16%;
    animation-delay: 1s;
}

.petal:nth-child(6) {
    width: 14px;
    height: 14px;
    top: 60%;
    right: 8%;
    animation-delay: 3.5s;
}

.petal:nth-child(7) {
    width: 20px;
    height: 20px;
    top: 82%;
    right: 22%;
    animation-delay: 0.5s;
}

@keyframes floatPetal {

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

    50% {
        transform: translateY(-14px) rotate(15deg);
        opacity: 1;
    }
}

/* FV Body */
.fv-body {
    position: relative;
    flex: 1;
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    padding: 80px 80px 40px 56px;
    /* Header offset */
    align-items: center;
    min-height: calc(100vh - 80px);
    z-index: 1;
}

.fv-sp-text {
    display: contents;
}

/* Left Copy */
.fv-left-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding-top: 60px;
    position: relative;
    z-index: 15;
    pointer-events: none;
    animation: animate__fadeIn 1.2s 0.3s both;
}

.fv-vertical-copy {
    writing-mode: vertical-rl;
    font-family: 'Shippori Mincho', serif;
    font-size: 15px;
    line-height: 2.2;
    letter-spacing: 0.2em;
    color: #4A403A;
    font-weight: 500;
    margin-left: 24px;
}

/* Right Copy */
.fv-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    padding-left: 24px;
    padding-bottom: 80px;
    position: relative;
    z-index: 15;
    pointer-events: none;
    animation: animate__fadeIn 1.2s 0.5s both;
}

.fv-catchcopy-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 0;
}

.fv-catch-border {
    width: 2px;
    background: #E5989B;
    align-self: stretch;
    margin-right: 24px;
    opacity: 0.6;
}

.fv-catch-lines {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fv-catch-line {
    writing-mode: vertical-rl;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: #4A403A;
}

.fv-catch-line.large {
    font-size: clamp(40px, 5vw, 62px);
}

.fv-catch-line.medium {
    font-size: clamp(32px, 4vw, 50px);
}

.fv-catch-line.small-catch {
    font-size: clamp(26px, 3.2vw, 40px);
}

/* Cards */
.fv-cards-layer {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.fv-card {
    position: absolute;
    overflow: hidden;
    pointer-events: auto;
    transition: top 1s cubic-bezier(0.77, 0, 0.175, 1), left 1s cubic-bezier(0.77, 0, 0.175, 1), width 1s cubic-bezier(0.77, 0, 0.175, 1), height 1s cubic-bezier(0.77, 0, 0.175, 1), border-radius 1s ease, box-shadow 1s ease, opacity 0.6s ease;
    will-change: top, left, width, height, opacity;
}

.fv-card picture,
.fv-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fv-card.pos-center {
    top: 0;
    left: 0;
    width: 700px;
    height: 540px;
    border-radius: 28px;
    box-shadow: 8px 24px 64px rgba(0, 0, 0, 0.15);
    z-index: 4;
    opacity: 1;
}

.fv-card.pos-center img {
    transform: scale(1.1);
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.fv-card.pos-topright {
    top: 80px;
    left: calc(100% - 315px);
    width: 195px;
    height: 230px;
    border-radius: 16px;
    box-shadow: 4px 10px 28px rgba(0, 0, 0, 0.1);
    z-index: 4;
    opacity: 1;
}

.fv-card.pos-topright img {
    transform: scale(1);
    transition: transform 1s ease !important;
}

.fv-card.pos-botleft {
    top: calc(100% - 250px);
    left: 28px;
    width: 178px;
    height: 210px;
    border-radius: 16px;
    box-shadow: 4px 10px 28px rgba(0, 0, 0, 0.1);
    z-index: 4;
    opacity: 1;
}

.fv-card.pos-botleft img {
    transform: scale(1);
    transition: transform 1s ease !important;
}

.fv-card.pos-hidden {
    top: 80px;
    left: calc(100% - 315px);
    width: 195px;
    height: 230px;
    border-radius: 16px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.fv-card.pos-hidden img {
    transform: scale(1);
    transition: none !important;
}

/* Card Caption */
.fv-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 28px;
    background: linear-gradient(to top, rgba(74, 64, 58, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.fv-card.pos-center .fv-card-caption {
    opacity: 1;
    transition: opacity 0.5s ease 0.4s;
}

.fv-caption-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}

.fv-caption-text {
    font-size: 13px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Dots */
.fv-dot-row {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
    pointer-events: auto;
}

.fv-sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(74, 64, 58, 0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.fv-sdot.active {
    background: #E5989B;
    transform: scale(1.4);
}

/* =========================================
Responsive SP logic (Max-width: 600px)
========================================= */
@media (max-width: 900px) {
    .fv-body {
        grid-template-columns: 120px 1fr 180px;
        padding: 80px 20px 32px 20px;
    }
}

@media (max-width: 600px) {
    .fv {
        min-height: auto;
        overflow: hidden;
    }

    .fv-body {
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: unset;
        align-items: stretch;
        margin-top: 80px;
    }

    /* Dynamic SP Wrap */
    #spSliderWrap {
        position: relative !important;
        inset: unset !important;
        z-index: 8;
        width: 100%;
        aspect-ratio: 4/3;
        overflow: hidden;
        background: #000;
    }

    .fv-sp-text {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 24px 20px 20px;
        gap: 16px;
        background: var(--modern-bg);
    }

    .fv-left-text {
        justify-content: flex-start;
        padding-top: 0;
        height: auto;
        flex-shrink: 0;
        animation: none;
    }

    .fv-vertical-copy {
        font-size: 12px;
        line-height: 2.0;
        letter-spacing: 0.18em;
        margin-left: 0;
        opacity: 0.8;
    }

    .fv-right-col {
        justify-content: flex-start;
        align-items: flex-end;
        padding-left: 0;
        padding-bottom: 0;
        height: auto;
        flex: 1;
        animation: none;
    }

    .fv-catchcopy-wrap {
        padding: 0;
    }

    .fv-catch-border {
        display: none;
    }

    .fv-catch-lines {
        gap: 6px;
    }

    .fv-catch-line.large {
        font-size: clamp(28px, 8vw, 42px);
    }

    .fv-catch-line.medium {
        font-size: clamp(22px, 6vw, 32px);
    }

    .fv-catch-line.small-catch {
        font-size: clamp(18px, 5vw, 26px);
    }

    .fv-dot-row {
        bottom: 12px;
        z-index: 20;
    }

    .petal:nth-child(n+4) {
        display: none;
    }

    .fv-center-spacer {
        display: none;
    }
}
