/* FUJI Japan — mobile-first brand styling (inspired by fujielevatorjapan.com) */
:root {
    --fuji-red: #ad1009;
    --fuji-red-dark: #8a0d07;
    --fuji-red-light: #c41e3a;
    --fuji-black: #1a1a1a;
    --fuji-gray: #666;
    --fuji-border: #e8e8e8;
    --fuji-bg: #fafafa;
}

/* Nested header submenu — flyout to the right */
.fuji-nav-item > .sub-menu {
    min-width: 200px;
}

.fuji-nav-item > .sub-menu > li.menu-item-has-children > .sub-menu {
    min-width: 260px;
    max-height: 70vh;
    overflow-y: auto;
}

.fuji-products-submenu {
    min-width: 280px !important;
}

.navbar-wrap ul li .sub-menu li.menu-item-has-children > a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.5;
}

/* Hero / brand bar — black background per brand guidelines */
.fuji-hero-banner {
    background: #000;
    padding: 1.5rem 0 1.75rem;
    color: #fff;
    border-bottom: 4px solid var(--fuji-red);
}

.fuji-brand-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .fuji-brand-row {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.fuji-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
    background: transparent;
    padding: 0;
}

.fuji-logo-img {
    max-height: 72px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    background: transparent;
}

@media (min-width: 768px) {
    .fuji-logo-img {
        max-height: 100px;
        max-width: 340px;
    }
}

@media (min-width: 1200px) {
    .fuji-logo-img {
        max-height: 115px;
        max-width: 380px;
    }
}

.fuji-hero-meta {
    flex: 1;
    min-width: 0;
}

.fuji-hero-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.65rem;
    line-height: 1.5;
    max-width: 640px;
}

@media (min-width: 768px) {
    .fuji-hero-tagline {
        font-size: 0.95rem;
    }
}

.fuji-hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
    color: #fff;
}

@media (min-width: 768px) {
    .fuji-hero-title {
        font-size: 1.25rem;
    }
}

.fuji-breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.8rem;
}

.fuji-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.fuji-breadcrumb a:hover {
    color: #fff;
}

.fuji-breadcrumb .active {
    color: rgba(255, 255, 255, 0.65);
}

.fuji-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* FUJI pages — keep Ascender sticky header above hero/content when scrolling */
.fuji-section-page #sticky-header.sticky-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 999;
}

.fuji-page-content {
    padding: 1.25rem 0 3rem;
    background: var(--fuji-bg);
}

.fuji-hero-banner > .container,
.fuji-page-content > .container {
    max-width: 1320px;
}

/* FUJI content frame — no red border per Ascender branding */
.fuji-shop-frame {
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 1.25rem 1rem 1.5rem;
}

@media (min-width: 768px) {
    .fuji-shop-frame {
        padding: 1.75rem 1.5rem 2rem;
    }
}

/* Categories sidebar — mirrors manufacturer nav-pills */
.fuji-product-sidebar .nav-pills .nav-link.active,
.fuji-product-sidebar .fuji-categories-label {
    background-color: var(--fuji-red);
    color: #fff !important;
    font-weight: 700;
    border-radius: 0;
    pointer-events: none;
}

.fuji-product-sidebar .nav .nav-link {
    color: var(--fuji-red);
    font-weight: 600;
    border-radius: 0;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.fuji-product-sidebar .nav .nav-link:hover {
    color: var(--fuji-red-dark);
    background: rgba(173, 16, 9, 0.06);
}

.fuji-product-sidebar .nav .nav-link.category_active {
    border-bottom: 2px solid var(--fuji-red);
    border-radius: 0 !important;
    font-weight: 700;
    background: rgba(173, 16, 9, 0.05);
}

.fuji-product-main .page-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid var(--fuji-red);
    padding-bottom: 10px;
    display: inline-block;
    margin: 0 0 25px;
    letter-spacing: 0.5px;
}

.fuji-product-main .product-card {
    height: 100%;
    border: 1px solid #eee !important;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fuji-product-main .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fuji-product-main .product-image {
    height: 200px;
    width: 100%;
    background-color: #f8f9fa;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.fuji-product-main img.product-image {
    object-fit: contain;
    display: block;
}

.fuji-product-main .product-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.8em;
    line-height: 1.4;
    white-space: normal;
    color: var(--fuji-black);
}

.fuji-product-main .product-item {
    margin-bottom: 1.5rem;
}

.fuji-product-main .fuji-product-details summary {
    color: var(--fuji-red);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.fuji-product-main .product-short,
.fuji-product-main .product-long {
    font-size: 0.85rem;
    line-height: 1.6;
}

.fuji-product-main .product-short img,
.fuji-product-main .product-long img {
    max-width: 100%;
    height: auto;
}

.fuji-content-card {
    background: #fff;
    border: 1px solid var(--fuji-border);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .fuji-content-card {
        padding: 1.75rem 2rem;
    }
}

.fuji-content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.fuji-content-card h1,
.fuji-content-card h2,
.fuji-content-card h3 {
    color: var(--fuji-red);
}

.fuji-content-card .page-title,
.fuji-content-card .fuji-category-page > h1,
.fuji-about-main .page-title {
    color: var(--fuji-red) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fuji-red);
}

.fuji-content-card table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.fuji-content-card table td,
.fuji-content-card table th {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--fuji-border);
}

.fuji-content-card table th {
    background: rgba(173, 16, 9, 0.08);
    color: var(--fuji-red);
}

/* Product grid */
.fuji-content-card .product-card {
    border: 1px solid var(--fuji-border) !important;
    border-radius: 10px !important;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fuji-content-card .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(173, 16, 9, 0.12);
}

.fuji-content-card .product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

@media (min-width: 768px) {
    .fuji-content-card .product-image {
        height: 220px;
    }
}

.fuji-content-card .product-title {
    color: var(--fuji-black);
    font-size: 1rem;
    font-weight: 700;
}

.fuji-content-card details summary {
    color: var(--fuji-red);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}

.fuji-content-card .btn-outline-primary {
    border-color: var(--fuji-red);
    color: var(--fuji-red);
}

.fuji-content-card .btn-outline-primary:hover {
    background: var(--fuji-red);
    border-color: var(--fuji-red);
}

/* Carousel in about pages */
.fuji-content-card .carousel-item img {
    border-radius: 8px;
    max-height: 360px;
    object-fit: cover;
    width: 100%;
}

.fuji-content-card .ds-markdown-paragraph {
    line-height: 1.7;
    color: #333;
    font-size: 0.95rem;
}

.fuji-content-card hr {
    border-color: var(--fuji-border);
    margin: 1.5rem 0;
}

/* Mobile menu — nested FUJI submenus */
.mobile-menu .navigation .fuji-nav-item .sub-menu .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
}

.mobile-menu .navigation .fuji-nav-item .sub-menu li.menu-item-has-children > a {
    font-weight: 600;
    color: var(--fuji-red);
}

/* About pages content card */
.fuji-about-main .fuji-content-card {
    border: none;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 767px) {
    .fuji-product-sidebar {
        margin-bottom: 1.5rem;
    }

    .fuji-product-sidebar .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .fuji-product-sidebar .nav .nav-link,
    .fuji-product-sidebar .fuji-categories-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
        border: 1px solid #eee;
    }

    .fuji-product-main .product-image {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .fuji-nav-item > .sub-menu {
        min-width: 100%;
    }
}

.fuji-product-link {
    color: inherit;
}

.fuji-detail-thumb,
.fuji-detail-thumb.thumbnail-image {
    height: 320px;
    width: 100%;
    background-color: #f8f9fa;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 6px;
}

.fuji-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.fuji-btn-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    border-radius: 4px;
}

.fuji-btn-black:hover {
    background: var(--fuji-red);
    color: #fff;
}

.fuji-section-heading {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.fuji-section-divider {
    border-color: var(--fuji-red);
    opacity: 1;
    margin-bottom: 1.25rem;
}

.fuji-gallery-thumb.box {
    position: relative;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.fuji-gallery-thumb.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fuji-detail-body img {
    max-width: 100%;
    height: auto;
}

/* FUJI inquiry form (Get in Touch from FUJI pages) */
.fuji-inquiry-area {
    background: var(--fuji-bg);
}

.fuji-inquiry-form-wrap {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.fuji-inquiry-form-wrap .title {
    color: #808080;
    border-bottom: 2px solid var(--fuji-red);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.fuji-inquiry-note {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.fuji-inquiry-form .form-grp input,
.fuji-inquiry-form .form-grp textarea,
.fuji-inquiry-form .form-select {
    border-color: #ddd;
}

.fuji-inquiry-form .form-grp input:focus,
.fuji-inquiry-form .form-grp textarea:focus,
.fuji-inquiry-form .form-select:focus {
    border-color: var(--fuji-red);
    box-shadow: 0 0 0 0.15rem rgba(173, 16, 9, 0.15);
}

.fuji-inquiry-submit {
    background: var(--fuji-red) !important;
    border-color: var(--fuji-red) !important;
    color: #fff !important;
    font-weight: 600;
    min-width: 180px;
}

.fuji-inquiry-submit:hover {
    background: var(--fuji-red-dark) !important;
    border-color: var(--fuji-red-dark) !important;
    color: #fff !important;
}

/* FUJI home page (mirrors fujielevatorjapan.com homepage layout) */
.fuji-home-page {
    background: #fff;
    padding-bottom: 2rem;
}

.fuji-home-page #HayashimuCarousel .carousel-item img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.fuji-home-page .why-choose-section {
    padding: 2.5rem 0;
    background: #f8f9fa;
    margin-top: 2rem;
}

.fuji-home-page .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.fuji-home-page .feature-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
}

.fuji-home-page .feature-icon {
    width: 56px;
    height: 56px;
    background: var(--fuji-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.5rem;
}

.fuji-home-page .card-text {
    font-weight: 600;
}

.fuji-home-page .btn-secondary {
    background: var(--fuji-red);
    border-color: var(--fuji-red);
}

.fuji-home-page .btn-secondary:hover {
    background: var(--fuji-red-dark);
    border-color: var(--fuji-red-dark);
}
