/* Tank SubPageHero Component Styles */
.page-tank-download,
.page-tank-maintenance-main-parts,
.page-tank-maintenance-repair-models,
.page-tank-maintenance-points,
.page-tank-maintenance-renewal-guide,
.page-tank-technical-information,
.page-tank-technical-info,
.page-tank-new-installation {
    padding-top: var(--site-header-offset, 80px);
}

@media screen and (max-width: 768px) {
    .page-tank-download,
    .page-tank-maintenance-main-parts,
    .page-tank-maintenance-repair-models,
    .page-tank-maintenance-points,
    .page-tank-maintenance-renewal-guide,
    .page-tank-technical-information,
    .page-tank-technical-info,
    .page-tank-new-installation {
        padding-top: 0;
    }
}

/* Tank SubPageHero component */
.sub-page-hero {
    background: url(../img/renewal/hero-renewal.webp);
    background-repeat: no-repeat;
    background-size: cover, auto 100%;
    background-position: center bottom;
    color: #fff;
    border-radius: 0 0 5.5rem 5.5rem;
    padding: 2.2rem 0;
    height: 37.4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.page-tank-panel-tank-products:not(.page-tank-panel-tank-new-installation):not(.page-tank-renewal):not(.page-tank-technical-information) .sub-page-hero {
    background-image: url(../../img/tank/product-info-hero-image.webp);
}

@media screen and (min-width: 769px) {
    .sub-page-hero {
        margin-top: 0;
        padding-top: 2.2rem;
        height: 37.4rem;
    }
    
    .page-tank-panel-tank-products .sub-page-hero {
        margin-top: calc(-1 * var(--site-header-offset, 80px));
        padding-top: calc(2.2rem + var(--site-header-offset, 80px));
        height: calc(37.4rem + 79px);
    }
}

.sub-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(50, 118, 138, 0.7);
    opacity: 0.8;
}

/* Product detail pages used this overlay before adopting SubPageHero. */
.page-tank-detail .sub-page-hero::before {
    background: linear-gradient(87deg, #007D96 -0.81%, #5BBBCE 56.93%, #80CDDC 83.64%, #C6F5FF 97.56%);
    mix-blend-mode: multiply;
    opacity: 1;
}

.sub-page-hero::after {
    display: none;
}

.page-tank-panel-tank-products:not(.page-tank-panel-tank-new-installation):not(.page-tank-renewal):not(.page-tank-technical-information) .sub-page-hero::before {
    background: linear-gradient(90.59deg, #ffffff 0.98%, #64b4d1 48.98%, #ffffff 99.82%);
    mix-blend-mode: multiply;
    opacity: 1;
}

.page-tank-panel-tank-products:not(.page-tank-panel-tank-new-installation):not(.page-tank-renewal):not(.page-tank-technical-information) .sub-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    background: rgba(0, 131, 154, 0.39);
    mix-blend-mode: multiply;
    border-radius: 0 0 4rem 4rem;
}

.sub-page-hero .product-detail-hero__inner {
    max-width: 116rem;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2.4rem;
    position: relative;
}

.sub-page-hero .product-detail-hero__breadcrumb {
    font-family: 'Noto Sans JP', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 0;
}

.sub-page-hero .product-detail-hero__breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    row-gap: 10px;
}

.sub-page-hero .product-detail-hero__breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sub-page-hero .product-detail-hero__breadcrumb-item>a,
.sub-page-hero .product-detail-hero__breadcrumb-item>span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: inherit;
    text-decoration: none;
}

.sub-page-hero .product-detail-hero__breadcrumb-item+.product-detail-hero__breadcrumb-item::before {
    content: '';
    display: block;
    flex: 0 0 auto;
    width: 0.45em;
    height: 0.45em;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    margin: 0 0.5em;
}

.sub-page-hero .product-detail-hero__content {
    position: relative;
    width: 100%;
    height: 100%;
}

.sub-page-hero .product-detail-hero__content:has(.product-detail-hero__subtitle:not(:empty)) .product-detail-hero__title {
    font-weight: 500;
}

.sub-page-hero .product-detail-hero__title {
    position: absolute;
    top: 13.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    max-width: 100%;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 2.6rem;
    line-height: 1.3;
    text-align: center;
}

.sub-page-hero .product-detail-hero__subtitle {
    position: absolute;
    top: 23.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(112rem, calc(100% - 5.4rem));
    font-size: 1.8rem;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

@media screen and (min-width: 769px) {
    .sub-page-hero .product-detail-hero__title {
        white-space: nowrap;
    }

    .sub-page-hero .product-detail-hero__title {
        top: calc(13.4rem - 53px);
        transform: translateX(calc(-50% - 11px));
        font-weight: 500;
    }

    .sub-page-hero .product-detail-hero__subtitle {
        top: calc(24.9rem - 53px);
        transform: translateX(calc(-50% - 11px));
    }
}

@media screen and (max-width: 768px) {
    .sub-page-hero {
        height: auto;
        min-height: 37.2rem;
        padding-bottom: 0;
        border-radius: 0 0 2.4rem 2.4rem;
        background-image: url(../img/maintenance/bg-visualsp.webp);
        background-position: center center !important;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .sub-page-hero::after,
    .sub-page-hero::before {
        border-radius: 0 0 2.4rem 2.4rem;
    }

    .sub-page-hero::before {
        background: none;
        opacity: 1;
    }

    .page-tank-detail .sub-page-hero::before {
        background: linear-gradient(87deg, #007D96 -0.81%, #5BBBCE 56.93%, #80CDDC 83.64%, #C6F5FF 97.56%);
        mix-blend-mode: multiply;
    }

    .sub-page-hero .product-detail-hero__inner {
        padding: 0 2rem;
    }

    .sub-page-hero .product-detail-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static;
        margin-top: 4rem;
    }

    .sub-page-hero .product-detail-hero__title,
    .sub-page-hero .product-detail-hero__subtitle {
        position: static;
        transform: none;
        white-space: normal;
    }

    .sub-page-hero .product-detail-hero__title {
        font-size: 2.8rem;
        margin-bottom: 2rem;
        font-weight: 700;
    }

    .sub-page-hero .product-detail-hero__content:has(.product-detail-hero__subtitle:not(:empty)) .product-detail-hero__title {
        font-weight: 500;
    }

    .sub-page-hero .product-detail-hero__subtitle {
        font-size: 1.4rem;
    }

    .sub-page-hero .product-detail-hero__breadcrumb {
        font-size: 1.6rem;
    }
}
