/* 
   Memorial Book - The Cinematic Memory
   Aesthetic: Cinematic, Nostalgic, Serene, High Negative Space.
*/

:root {
    --mb-bg: #FCFBF9;
    --mb-text: #3A3532;
    --mb-text-light: #6E6660;
    --mb-accent: #9A7B56; /* Muted Antique Gold */
    --mb-accent-light: rgba(154, 123, 86, 0.1);
    --font-serif: 'Noto Serif JP', serif;
}

body.theme-mb-v2 {
    background-color: var(--mb-bg);
    color: var(--mb-text);
    font-family: var(--font-serif);
    line-height: 2.2;
    font-weight: 300;
}

/* Navigation Overrides */
.theme-mb-v2 .glass-nav {
    background: rgba(252, 251, 249, 0.85);
    border-bottom: 1px solid rgba(154, 123, 86, 0.2);
}
.theme-mb-v2 .glass-nav .logo {
    font-family: var(--font-serif);
    color: var(--mb-accent);
}
.theme-mb-v2 .glass-nav .nav-menu a {
    font-family: var(--font-serif);
    color: var(--mb-text);
    letter-spacing: 0.1em;
}
.theme-mb-v2 .glass-nav .nav-menu a:hover::after {
    background-color: var(--mb-accent);
}
.theme-mb-v2 .btn-contact {
    background-color: transparent;
    color: var(--mb-accent) !important;
    border: 1px solid var(--mb-accent);
}
.theme-mb-v2 .btn-contact:hover {
    background-color: var(--mb-accent);
    color: #fff !important;
}

/* Cinematic Hero */
.mb-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mb-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: brightness(0.85) contrast(0.9);
}

.mb-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(252,251,249,0.6) 0%, rgba(252,251,249,0.95) 100%);
    z-index: 2;
}

.mb-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.mb-hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #2D2926;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,1), 0 0 45px rgba(255,255,255,1);
}

.mb-hero-lead {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: var(--mb-text-light);
    text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,1);
}

/* Base Layout */
.mb-section {
    padding: 120px 0;
    position: relative;
}

.mb-section-compact {
    padding: 100px 0;
}

.mb-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 5%;
}

.mb-section-title {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--mb-accent);
}

.mb-text {
    font-size: 1.05rem;
    color: var(--mb-text);
    margin-bottom: 25px;
}

/* Emotion Block */
.mb-emotion-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.mb-emotion-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.8;
    color: var(--mb-accent);
    text-align: center;
    margin-bottom: 50px;
}

.mb-emotion-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background-color: var(--mb-accent-light);
    margin: 28px auto 0;
}

.mb-emotion-body {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.mb-emotion-body .mb-text {
    line-height: 2.3;
}

/* Image with large negative space */
.mb-image-showcase {
    position: relative;
    margin: 100px 0;
}
.mb-image-showcase img {
    width: 100%;
    display: block;
    -webkit-mask-image: 
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    mask-composite: intersect;
}
.mb-image-caption {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--mb-text);
    background-color: var(--mb-bg);
    padding: 20px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    transition-delay: 0.2s;
}

.mb-reveal.active .mb-image-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Minimalist Cards (Replacing old global cards) */
.mb-feature-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 80px;
}

.mb-feature {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--mb-accent-light);
    padding-bottom: 40px;
}
.mb-feature:last-child {
    border-bottom: none;
}

.mb-feature-num {
    font-size: 2.5rem;
    color: rgba(154, 123, 86, 0.4);
    font-family: 'Times New Roman', serif;
    font-style: italic;
    line-height: 1;
}

.mb-feature-content h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--mb-text);
}

/* Pricing Concept */
.mb-pricing {
    background-color: #fff;
    border: 1px solid var(--mb-accent-light);
    padding: 60px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    margin-top: 50px;
}
.mb-pricing-brand {
    font-size: 1.8rem;
    color: var(--mb-accent);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}
.mb-pricing-price {
    font-size: 1.2rem;
    color: var(--mb-text-light);
    margin-bottom: 40px;
}
.mb-pricing-features {
    list-style: none;
    padding: 0;
}
.mb-pricing-features li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Cinematic Animations */
.mb-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    will-change: opacity, transform;
}
.mb-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom fade-in for hero */
.mb-fade-slow {
    animation: slowFadeIn 3s ease-in forwards;
}

@keyframes slowFadeIn {
    0% { opacity: 0; filter: blur(10px); }
    100% { opacity: 1; filter: blur(0); }
}

/* Mobile */
@media (max-width: 900px) {
    .mb-image-caption {
        font-size: 1.1rem;
        right: 10px;
        bottom: -20px;
        padding: 15px 20px;
    }
    .mb-hero-title {
        font-size: 2.2rem;
    }
    .mb-emotion-title {
        font-size: 1.6rem;
    }
    .mb-feature {
        flex-direction: column;
        gap: 15px;
    }
    .mb-pricing {
        padding: 40px 20px;
    }
}

/* Responsive navigation override for mobile drawer */
@media (max-width: 1024px) {
    .theme-mb-v2 .glass-nav .nav-menu a {
        color: #FAFAFA;
    }
}

/* Fix toggle button contrast on light cream header before scrolling */
.theme-mb-v2 .glass-nav:not(.scrolled) .menu-toggle span {
    background-color: var(--mb-accent);
}

