:root {
    --font-main: 'Noto Sans JP', sans-serif;
}

html {
    font-size: 14px; /* Reduce base size for SP */
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px; /* Default base size for Tablet/PC */
    }
}

body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.8;
    letter-spacing: 0.05em;
    background-color: #fdfdfd;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

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

/* Base Styles */
h1, h2, h3, h4, .section-title {
    letter-spacing: 0.1em;
}

.section-margin {
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .section-margin {
        margin-bottom: 120px;
    }
}

/* Specific Card & Shadow Styles */
.mimi-card {
    background-color: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 50px rgba(167, 209, 41, 0.15);
    border: 1px solid rgba(167, 209, 41, 0.1);
}

@media (min-width: 768px) {
    .mimi-card {
        padding: 4rem;
    }
}

.mimi-shadow-sm {
    box-shadow: 0 4px 15px rgba(167, 209, 41, 0.1);
}



/* Truly Unique & Bold Section Headings */
.section-header {
    margin: 0 auto 6rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* English Subtitle (Above Japanese) */
.section-header::before {
    content: attr(data-en);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #A7D129; /* mimi-green */
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove vertical rotation */
}

@media (min-width: 768px) {
    .section-header::before {
        font-size: 1rem;
        letter-spacing: 0.6em;
        margin-bottom: 0.75rem;
    }
}


.section-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding: 0 1rem;
}

/* Background Highlight Bar */
.section-header-title::before {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(167, 209, 41, 0.2); /* Soft highlight wash */
    z-index: -1;
    transform: skewX(-15deg);
    transition: all 0.5s ease;
}

.section-header:hover .section-header-title::before {
    height: 100%;
    transform: skewX(0deg);
    background-color: rgba(167, 209, 41, 0.3);
}

/* Section Headings on Dark Backgrounds */
.section-header-light .section-header-title {
    color: #fff;
}

.section-header-light .section-header-title::before {
    background-color: rgba(248, 231, 28, 0.2); /* mimi-yellow glow */
}

.section-header-light .section-header-title:hover::before {
    background-color: rgba(248, 231, 28, 0.4);
}





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

/* Swiper Fade & FV specific */
.swiper-fv {
    width: 100%;
    height: auto;
}

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

/* Link Hover */
.nav-link:hover {
    color: #A7D129; /* mimi-green */
}

/* Top to Back Button */
#top-btn {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Utility to disable blue highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Image Styling */
img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(167, 209, 41, 0.1);
}


/* Header logo image exception (none if text) */
.logo img, .nav-link img, #nav-overlay img, .swiper-fv .swiper-slide img {
    border-radius: 0;
    box-shadow: none;
}



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

/* Mobile Line Break Utility */
.mobile-only {
    display: none;
}

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