/* Base Styles */
html {
    scroll-behavior: smooth;
}

/* Fixed Header Anchor Offset */
section[id] {
    scroll-margin-top: 80px;
}


body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Noto Sans JP', sans-serif;
    color: #5E503F;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* Custom Spacing & Transitions */
.container {
    max-width: 1200px;
}

/* FV (First View) Editorial Styles */
.fv-copy-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(-10%);
    }
}

@media (max-width: 768px) {
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100px);
        }

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

.animate-fade-in-up {
    animation: fadeInUp 1.2s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 1.5s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 2s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Slideshow Crossfade */
@keyframes fv-crossfade {
    0% {
        opacity: 0;
        z-index: 0;
    }

    5%,
    33% {
        opacity: 1;
        z-index: 10;
    }

    38%,
    100% {
        opacity: 0;
        z-index: 0;
    }
}

.animate-fv-crossfade-1 {
    animation: fv-crossfade 15s infinite;
}

.animate-fv-crossfade-2 {
    animation: fv-crossfade 15s infinite;
    animation-delay: 5s;
}

.animate-fv-crossfade-3 {
    animation: fv-crossfade 15s infinite;
    animation-delay: 10s;
}

/* Section Margins */
section {
    position: relative;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.1em;
    font-family: 'Shippori Mincho', serif;
}

p {
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* Header Scroll Effect */
header.scrolled {
    background-color: #D4A797;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 70px;
}

/* Hamburger Menu Link Animation */
.menu-link {
    position: relative;
    padding-bottom: 4px;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #F18D05;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Image Hover Effects */
img {
    transition: transform 0.5s ease;
}

section img:hover {
    transform: scale(1.01);
}

/* Hide Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #D4A797;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5E503F;
}

/* Highlight Effect */
.highlight-main {
    background: linear-gradient(transparent 60%, rgba(212, 167, 151, 0.2) 60%);
    font-weight: bold;
    color: #D4A797;
}

/* Premium Image Decoration */
.premium-frame {
    position: relative;
    padding: 12px;
    display: inline-block;
}

.premium-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(45deg, #D4A797, #F18D05, #D4A797) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

.glow-main {
    box-shadow: 0 0 50px rgba(212, 167, 151, 0.15);
}

/* Glitter Animation (Blinking Particles) */
@keyframes glitter-blink {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.glitter-bg::before,
.glitter-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, #D4A797 1px, transparent 1px),
        radial-gradient(circle, #D4A797 1.5px, transparent 1.5px);
    background-size: 80px 80px, 120px 120px;
    pointer-events: none;
    z-index: 0;
}

.glitter-bg::before {
    background-position: 0 0, 40px 40px;
    animation: glitter-blink 12s infinite ease-in-out;
}

.glitter-bg::after {
    background-position: 20px 20px, 60px 60px;
    animation: glitter-blink 15s infinite ease-in-out;
    animation-delay: -5s;
}

.cute-frame {
    position: relative;
    padding: 15px;
}

/* Saturn's Ring Effect */
.saturn-ring-wrap {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: 15;
    perspective: 1000px;
}

.saturn-ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: rotateX(75deg);
    animation: saturn-rotate 15s linear infinite;
}

.saturn-ring::before {
    content: '✦';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotateX(-75deg);
    color: white;
    font-size: 14px;
    text-shadow: 0 0 5px white;
}

@keyframes saturn-rotate {
    0% {
        transform: rotateX(75deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(75deg) rotateZ(360deg);
    }
}


/* Glitter Border for Recommend */
.glitter-border {
    position: relative;
    padding: 8px;
    background: linear-gradient(45deg, #D4A797, #fff, #F18D05, #fff, #D4A797);
    background-size: 400% 400%;
    animation: shine 5s linear infinite;
    border-radius: 8px;
}

/* Styles moved from index.html and modernized */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.section-title-main {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to right,
            #5E503F 0%,
            #D4A797 25%,
            #5E503F 50%,
            #D4A797 75%,
            #5E503F 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
    display: inline-block;
    font-weight: 700;
}

@media (max-width: 768px) {
    .section-title-main {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    p,
    li,
    .text-base {
        font-size: 14px !important;
    }

    #fv .rounded-full p {
        font-size: 12px !important;
    }

    .text-lg {
        font-size: 16px !important;
    }

    .text-xl {
        font-size: 18px !important;
    }

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

    .text-3xl {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.75rem !important;
    }
}



.bg-marble {
    background-image: url('../img/bg_marble.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #FDF5F0;
    /* Warm marble tint */
}

.notice-text {
    line-height: 1.4 !important;
}

@media (max-width: 768px) {
    .notice-text {
        font-size: 12px !important;
    }
}

/* Miumiu Style Diamond Dust Effect */
.glitter-bg-heavy {
    pointer-events: none;
    overflow: hidden;
    background: inherit;
}

@keyframes diamond-shimmer {

    0%,
    100% {
        opacity: 0;
        filter: drop-shadow(0 0 0 white);
    }

    50% {
        opacity: 0.85;
        filter: drop-shadow(0 0 5px white) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    }
}

.glitter-bg-heavy::before,
.glitter-bg-heavy::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ctext x='15%25' y='20%25' fill='white' font-size='14'%3E%E2%9C%A6%3C/text%3E%3Ctext x='60%25' y='45%25' fill='white' font-size='20'%3E%E2%9C%A6%3C/text%3E%3Ctext x='35%25' y='85%25' fill='white' font-size='12'%3E%E2%9C%A6%3C/text%3E%3C/svg%3E");
    background-size: 400px 400px;
    pointer-events: none;
}

.glitter-bg-heavy::before {
    animation: diamond-shimmer 6s infinite ease-in-out;
}

.glitter-bg-heavy::after {
    background-position: 150px 150px;
    animation: diamond-shimmer 8s infinite ease-in-out;
    animation-delay: -3s;
}





/* Water Wave Animation */
.water-wave-bg {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.water-wave-bg::before,
.water-wave-bg::after {
    content: "";
    position: absolute;
    left: 50%;
    min-width: 300vw;
    min-height: 300vw;
    background-color: rgba(212, 167, 151, 0.05);
    animation-name: rotate;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.water-wave-bg::before {
    bottom: 15vh;
    border-radius: 45%;
    animation-duration: 10s;
}

.water-wave-bg::after {
    bottom: 12vh;
    opacity: 0.5;
    border-radius: 47%;
    animation-duration: 15s;
}

@media (max-width: 768px) {

    .water-wave-bg::before,
    .water-wave-bg::after {
        background-color: rgba(212, 167, 151, 0.05);
        min-width: 300vw;
        min-height: 300vw;
    }
}

@keyframes rotate {
    0% {
        transform: translate(-50%, 0) rotateZ(0deg);
    }

    50% {
        transform: translate(-50%, -2%) rotateZ(180deg);
    }

    100% {
        transform: translate(-50%, 0) rotateZ(360deg);
    }
}

.water-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 167, 151, 0.03) 0%, transparent 60%);
    opacity: 0.5;
    animation: pulse-ripple 8s ease-in-out infinite;
}

@keyframes pulse-ripple {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Access Section Font Size (excluding shop name h3) */
#access p,
#access h4,
#access .text-lg {
    font-size: 16px !important;
}

@media (max-width: 768px) {

    #access p,
    #access h4,
    #access .text-lg {
        font-size: 14px !important;
    }
}

/* Specific note size */
#access .access-note {
    font-size: 14px !important;
}

@media (max-width: 768px) {
    #access .access-note {
        font-size: 12px !important;
    }
}

/* About Section Wave (bottom) */
.about-wave {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.about-wave::before,
.about-wave::after {
    content: "";
    position: absolute;
    left: 50%;
    min-width: 300vw;
    min-height: 300vw;
    background-color: rgba(255, 255, 255, 0.05);
    animation-name: rotate;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.about-wave::before {
    top: 85%;
    border-radius: 45%;
    animation-duration: 10s;
}

.about-wave::after {
    top: 88%;
    border-radius: 47%;
    animation-duration: 15s;
}