/* h2.css - Styles for H2 Habit / elan2 page */

:root {
    --h2-purple: #8e44ad;
    --h2-purple-light: #9b59b6;
    --h2-purple-pale: #f3e5f5;
    --h2-dark: #2c3e50;
    --h2-text: #555;
    --h2-bg-light: #f9f9f9;
}

body {
    /* Using global font from style.css */
    color: var(--h2-text);
}

.view-sp {
    display: none;
}

/* Animations */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Layout System (Replaces Bootstrap) */
.h2-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.h2-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.h2-row.align-items-center {
    align-items: center;
}

.h2-row.flex-row-reverse {
    flex-direction: row-reverse;
}

.h2-col {
    flex: 1;
    padding: 0 15px;
    min-width: 250px; /* Prevent too narrow columns but allow small screens */
}

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.h2-hero {
    position: relative;
    padding: 100px 0;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--h2-dark);
}

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

.h2-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Restore opacity */
}

.h2-hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9); /* White box for readability */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 100%;
    margin-bottom: 20px; /* Space on mobile */
}

.h2-certification-mark {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 145px;
    height: auto;
}

.h2-tagline {
    display: inline-block;
    background: var(--h2-purple);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.h2-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--h2-dark);
}

.h2-hero p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* Product Intro: Center Layout for Wide Image */
.elan2-intro .h2-container {
    max-width: 900px; /* Limit width for centered layout */
}
.elan2-intro .h2-row {
    flex-direction: column; /* Stack vertically */
    text-align: center;
}
.elan2-intro .h2-col {
    width: 100%;
    flex: none;
    padding: 0;
}

.h2-text-block {
    text-align: left; /* Keep text left aligned or centered? Let's use left for readability but centered container */
    max-width: 700px;
    margin: 0 auto;
}
.elan2-intro .h2-text-block {
    text-align: center; /* Center text for intro */
}
.elan2-intro .h2-feature-list {
    display: inline-block;
    text-align: left;
}

/* Detailed Specs List */
.specs-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
    margin-top: 30px;
}

.specs-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--h2-purple);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.details-list li {
    display: flex; /* Flex layout for side-by-side */
    align-items: baseline; /* Align text baselines */
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
}
.details-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.feature-title {
    flex-shrink: 0; /* Keep title width */
    font-weight: 700;
    color: var(--h2-dark);
    font-size: 1.05rem;
    margin-right: 15px; /* Spacing between title and desc */
    min-width: 120px; /* Consistent width */
}
.feature-title::before {
    content: "●";
    color: var(--h2-purple);
    margin-right: 8px;
}
.feature-desc {
    display: block;
    font-size: 0.95rem;
    color: #666;
    padding-left: 0;
    line-height: 1.6;
}

/* Mobile adjust */
@media (max-width: 600px) {
    .details-list li {
        flex-direction: column; /* Stack on small screens */
    }
    .feature-title {
        margin-bottom: 5px;
    }
}

/* Sections General */
.h2-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--h2-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--h2-purple);
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.1em;
}

.section-title-lg {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--h2-dark), var(--h2-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 40px;
}

/* Hydrogen Performance Comparison */
.h2-performance-box {
    background: #fff;
    border: 2px solid var(--h2-purple-pale);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.h2-performance-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(142,68,173,0.05) 0%, transparent 70%);
    z-index: 0;
}
.perf-title {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--h2-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}
.perf-sub {
    font-size: 1.3rem; /* Increased from 0.9rem */
    font-weight: 700;
    color: var(--h2-purple);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.perf-big {
    font-size: 1.8rem;
    color: var(--h2-purple);
    font-weight: 800;
    margin: 0 5px;
}
.perf-desc {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

/* Feature List */
.h2-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-weight: 600;
}
.h2-feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.h2-feature-list i {
    color: var(--h2-purple);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Image Styles */
.rounded-shadow {
    display: block;
    width: 100%;
    height: auto;
}

.elan2-image-wrapper {
    position: relative;
    padding: 0; /* Remove padding */
    border-radius: 20px; /* Match overlay radius */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); /* Move shadow here */
    overflow: hidden; /* Clip overlay */
    display: inline-block; /* Fit to image width */
    width: fit-content;
    max-width: 100%;
    margin-bottom: 20px;
}

.floating-badge {
    position: absolute;
    top: 30px; 
    left: -15px; /* Restore Pull out */
    bottom: auto;
    right: auto;
    background: linear-gradient(135deg, var(--h2-purple), #8e44ad);
    color: #fff;
    padding: 15px 40px 15px 30px; /* More padding */
    border-radius: 0 50px 50px 0; /* Restore Tag shape */
    box-shadow: 5px 10px 20px rgba(142, 68, 173, 0.4);
    text-align: left;
    z-index: 5;
}

.floating-badge::before {
    /* Restore Fold effect */
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 15px;
    height: 10px;
    background: #5e2d73;
    border-radius: 10px 0 0 0;
    z-index: -1;
}

.badge-en {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: 0.05em;
    font-style: italic;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.badge-jp {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 1;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.badge-sub {
    display: none; /* Removed */
}

/* Usage Scene Text Overlay - Minimal Chic */
.usage-scene-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Dark gradient for premium look and readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 40px 20px 20px; /* Top padding for gradient fade */
    border-radius: 0 0 15px 15px;
    text-align: left;
    border: none;
    backdrop-filter: none;
}

.overlay-inner {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.scene-text {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.scene-label {
    color: #e0aaef; /* Pale purple accent */
    font-weight: 700;
    font-size: 0.85rem;
}

.scene-highlight {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
    letter-spacing: 0.05em;
}

/* Manager Section */
.h2-manager-section {
    background: var(--h2-purple-pale);
    overflow: hidden;
}

.background-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(142,68,173,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.purple-label {
    background: var(--h2-purple);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(142,68,173,0.15);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--h2-purple-pale);
    color: var(--h2-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}
.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--h2-dark);
}
.feature-content p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Quattro Image */
.quattro-img {
    max-width: 80%;
    margin-top: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}
.caption {
    font-weight: 700;
    color: var(--h2-purple);
    margin-bottom: 10px;
}

/* Personal App */
.h2-personal-section {
    background: #fff;
}
.green-label {
    background: #27ae60;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}
.btn-store {
    min-width: 160px;
    margin-right: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-dark {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}
.btn-outline-dark {
    background: transparent;
    color: #000;
    border: 1px solid #000;
}
.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CTA */
.h2-cta {
    background: linear-gradient(135deg, var(--h2-dark), #1a252f);
    color: #fff;
    padding: 80px 0;
}
.h2-cta h2 {
    font-weight: 700;
    margin-bottom: 20px;
}
.btn-purple {
    background: var(--h2-purple);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-purple:hover {
    background: var(--h2-purple-light);
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.4);
}

.text-center {
    text-align: center;
}
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .h2-row {
        flex-direction: column;
    }
    .h2-row.flex-row-reverse {
        flex-direction: column-reverse; /* Stack appropriately */
    }
    
    .h2-hero h1 {
        font-size: 2.2rem;
    }
    .h2-hero-content {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .h2-certification-mark {
        width: 80px;
        top: 10px;
        right: 10px;
    }
    
    .manager-features {
        margin-top: 40px;
    }
    .app-mockup {
        text-align: center;
    }
    .quattro-img {
        max-width: 100%;
    }
    
    .br-pc {
        display: none;
    }

    /* Hero Image Centering Fix */
    .hero-image-right {
        margin-top: 20px;
    }
    .hero-image-right img {
        margin: 0 auto;
    }

    /* elan2 Intro Mobile Fixes */
    .elan2-image-wrapper {
        width: 100%;
        max-width: 400px; /* Limit width on mobile so overlay fits */
        margin: 0 auto 30px;
        display: block; /* Ensure block for centering */
    }
    
    .floating-badge {
        position: relative; /* Stack normally on mobile */
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 15px 15px 0 0; /* Rounded top */
        padding: 15px 20px;
        box-shadow: none;
        text-align: center;
        background: var(--h2-purple); /* Solid bg */
    }
    .floating-badge::before {
        display: none; /* Hide fold effect */
    }
    .badge-en {
        font-size: 1.1rem;
    }
    
    .usage-scene-overlay {
        position: relative; /* Stack below image */
        background: #333; /* Dark background */
        padding: 20px;
        border-radius: 0 0 15px 15px; /* Rounded bottom */
    }

    /* Specs Box Mobile */
    .specs-box {
        padding: 20px;
    }
    
    .details-list li {
        flex-direction: column;
    }
    
    .feature-title {
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .h2-performance-box {
        padding: 15px;
    }

    /* CTA Mobile */
    .h2-cta {
        padding: 50px 0;
    }
    .h2-cta h2 {
        font-size: 1.6rem;
        line-height: 1.4;
    }
    
    .view-pc {
        display: none;
    }
    .view-sp {
        display: inline-block;
    }
}
