:root {
    /* Color Palette - Inspired by the App's Energetic Yellow & Black */
    --color-primary: #FBC531;
    /* Vibrant Yellow from the app */
    --color-primary-dark: #cc9f26;
    --color-secondary: #212529;
    /* Deep Charcoal / Black */
    --color-background: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.85);
    --color-text: #2d3436;
    --color-text-light: #636e72;

    /* App-inspired UI Aesthetics */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-blur: blur(8px);
    --app-radius: 24px;
    /* More rounded, like the app icons */

    /* Typography */
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Foam Decoration Utility */
.foam-divider {
    position: relative;
    height: 50px;
    width: 100%;
    background: white;
    z-index: 1;
}

.foam-divider::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,133.3C960,149,1056,203,1152,213.3C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
}

/* Glassmorphism Card - Re-tuned for App Feel */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--app-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Refined Hero Area */
.hero-area-bg {
    background: linear-gradient(135deg, var(--color-primary) 0%, #f1c40f 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

.hero-area-bg .contents {
    color: #212529;
}

.hero-area-bg .head-title {
    color: #212529 !important;
    font-weight: 800;
}

.hero-area-bg .head-title span {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 10px;
    border-radius: 8px;
}

/* Button Refinement - Bold & Round */
.btn-common {
    background: var(--color-secondary);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-common:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background: #000;
}

/* Navigation Refinement */
.navbar-brand img {
    max-height: 45px;
}

.scrolling-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: var(--glass-blur);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Section Header Spacing */
.section-header {
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.3rem;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 10px;
}

/* Service Grid Fix */
#services .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px;
    margin-left: -15px;
}

#services [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
    padding-right: 15px;
    padding-left: 15px;
}

.services-item {
    width: 100%;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.services-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.services-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.services-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.services-content p {
    margin-top: auto;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.services-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Feature Section Fix */
#feature {
    background: #f8f9fa;
    padding: 84px 0 96px;
}

#feature .text-wrapper {
    padding: 0 12px;
}

#feature .title-hl {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.25;
    margin-bottom: 34px;
    letter-spacing: -0.01em;
}

#feature .row>[class*="col-"] {
    margin-bottom: 14px;
}

.features-box {
    background: white;
    padding: 30px 32px 28px;
    border-radius: var(--app-radius);
    margin-bottom: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.features-box:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}

.features-box h4 {
    color: var(--color-secondary);
    font-size: 1.34rem;
    line-height: 1.45;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-box h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-top: 0.62em;
    flex-shrink: 0;
}

.features-box p {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
    color: #2f3438;
}

@media (max-width: 991.98px) {
    #feature {
        padding: 68px 0 74px;
    }

    #feature .title-hl {
        margin-bottom: 26px;
    }

    .features-box {
        padding: 24px 24px 22px;
    }

    .features-box h4 {
        font-size: 1.22rem;
    }

    .features-box p {
        font-size: 1.03rem;
        line-height: 1.8;
    }
}

@media (max-width: 575.98px) {
    #feature .text-wrapper {
        padding: 0;
    }

    #feature .row>[class*="col-"] {
        margin-bottom: 12px;
    }

    .features-box {
        border-radius: 18px;
    }

    .features-box h4 {
        font-size: 1.12rem;
    }

    .features-box p {
        font-size: 0.98rem;
        line-height: 1.75;
    }
}

/* FAQ readability fix: override generic .btn white text */
#faq .card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

#faq .card-header {
    background: #f8f9fa;
    padding: 0;
}

#faq .card-header .btn.btn-link {
    color: #212529;
    text-align: left;
    width: 100%;
    padding: 18px 20px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0;
}

#faq .card-header .btn.btn-link:hover,
#faq .card-header .btn.btn-link:focus {
    color: #111;
    text-decoration: none;
}

#faq .card-body {
    color: #2d3436;
    background: #fff;
}