/* Page-specific base styles */
.page-tank-panel-tank-products {
    padding-top: var(--site-header-offset, 80px);
    overflow-x: auto;
}

/* Shared Products section styles */
.page-tank-panel-tank-products #main .main-content {
    margin-bottom: 0 !important;
    overflow: visible !important;
    gap: 4.4rem !important;
    margin-top: 4.7rem;
}

.page-tank-index #main .content-area .section,
.page-tank-panel-tank-products #main .content-area .section {
    margin-bottom: 0 !important;
    background: transparent !important;
    margin-top: 6rem;
}

.page-tank-index .products-grid,
.page-tank-panel-tank-products .products-grid {
    gap: 3.7rem 2.2rem;
    margin-top: 2.7rem;
}

/* Worker section: fixed portrait cards in a horizontal scroller. */
.page-tank-index .worker-section__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2.2rem;
    overflow-x: auto;
    margin-top: 2.7rem;
    padding-bottom: 1.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.page-tank-index .worker-section__card {
    position: relative;
    width: 211px;
    min-width: 211px;
    flex: 0 0 211px;
    scroll-snap-align: start;
}

.page-tank-index .worker-section__card .worker-section__image {
    display: block;
    width: 211px;
    height: 284px;
    object-fit: cover;
}

.page-tank-index .worker-section__image-link {
    position: relative;
    display: block;
    width: 211px;
    height: 284px;
}

.page-tank-index .worker-section__arrow {
    position: absolute;
    right: 0.8rem;
    bottom: 1.2rem;
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.page-tank-index .worker-section__info {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 1;
    padding: 0;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.page-tank-index .worker-section__name {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 19.48px;
    font-weight: 700;
    line-height: 33.61px;
}

.page-tank-index .worker-section__experience {
    display: flex;
    align-items: baseline;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 27.54px;
}

.page-tank-index .worker-section__experience strong {
    margin-left: 0.35rem;
    font-size: 15.96px;
    line-height: 27.54px;
    letter-spacing: 7%;
}

.page-tank-index .product-card:hover,
.page-tank-panel-tank-products .product-card:hover {
    box-shadow: none;
}

.page-tank-index .product-image,
.page-tank-panel-tank-products .product-image {
    height: auto;
    aspect-ratio: 350 / 254;
    object-fit: cover;
}

.page-tank-index .product-info,
.page-tank-panel-tank-products .product-info {
    padding: 0;
    margin-top: 1.3rem;
}

.page-tank-index .product-title,
.page-tank-panel-tank-products .product-title {
    margin-bottom: 0.4rem;
    align-items: center;
}

.page-tank-index .product-description,
.page-tank-panel-tank-products .product-description {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.7rem;
}

.page-tank-index .product-buttons,
.page-tank-panel-tank-products .product-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.page-tank-index .product-btn,
.page-tank-panel-tank-products .product-btn {
    flex: 1;
    padding: 0.9rem;
    text-align: center;
    border-radius: 0.4rem;
    font-size: 1.3rem;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.page-tank-index .product-btn i,
.page-tank-panel-tank-products .product-btn i {
    margin-right: 0;
}

.page-tank-index .product-btn:link,
.page-tank-index .product-btn:visited,
.page-tank-index .product-btn:hover,
.page-tank-index .product-btn:active,
.page-tank-panel-tank-products .product-btn:link,
.page-tank-panel-tank-products .product-btn:visited,
.page-tank-panel-tank-products .product-btn:hover,
.page-tank-panel-tank-products .product-btn:active {
    color: #fff;
}

.page-tank-index .product-btn:hover,
.page-tank-panel-tank-products .product-btn:hover {
    opacity: 0.8;
}

.page-tank-index .btn-primary,
.page-tank-panel-tank-products .btn-primary {
    background-color: #8b959e;
    color: #fff;
}

.page-tank-index .btn-secondary,
.page-tank-panel-tank-products .btn-secondary {
    background-color: #8b959e;
    color: #fff;
}

.page-tank-index .product-buttons .btn-primary,
.page-tank-panel-tank-products .product-buttons .btn-primary {
    background-color: #8b959e;
}

.page-tank-index .product-buttons .btn-secondary,
.page-tank-panel-tank-products .product-buttons .btn-secondary {
    background-color: #8b959e;
}

.page-tank-index .product-buttons.single-btn .product-btn,
.page-tank-panel-tank-products .product-buttons.single-btn .product-btn {
    width: calc((100% - 1rem) / 2);
    flex: 0 0 calc((100% - 1rem) / 2);
    padding: 0.8rem;
    white-space: unset;
}

@media all and (min-width: 769px) and (max-width: 1121px) {
    body.page-tank-panel-tank-products #container,
    body.page-tank-panel-tank-products #main,
    body.page-tank-panel-tank-products .sub-page-hero,
    body.page-tank-panel-tank-products .product-tabs,
    body.page-tank-panel-tank-products .main-content,
    body.page-tank-panel-tank-products .product-background {
        width: 1121px;
        min-width: 1121px;
    }
}

@media all and (min-width: 1121px) {
    body.page-tank-panel-tank-products #container,
    body.page-tank-panel-tank-products #main,
    body.page-tank-panel-tank-products .sub-page-hero,
    body.page-tank-panel-tank-products .product-tabs,
    body.page-tank-panel-tank-products .main-content,
    body.page-tank-panel-tank-products .product-background {
        width: auto;
        min-width: 0;
    }
}

.page-tank-index .more-link,
.page-tank-panel-tank-products .more-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7rem;
    gap: 2rem;
}

.page-tank-index .more-btn,
.page-tank-panel-tank-products .more-btn {
    width: 319px;
    height: 57px;
    padding: 0 43px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    background: #fff;
    border: none;
    border-radius: 28px;
    box-shadow: 0 0 10px 0 #DEE4EA;
    position: relative;
    color: #4A545D !important;
    text-indent: 0 !important;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 53px;
    letter-spacing: normal !important;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: visible;
    display: inline-flex;
    margin-right: 0;
}

.page-tank-index .more-btn:hover,
.page-tank-panel-tank-products .more-btn:hover {
    background: #fff;
    border-color: #d5d5d5;
    color: #4A545D;
    opacity: 0.92;
}

.page-tank-index .more-btn::after,
.page-tank-panel-tank-products .more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    background: #eb3b3b;
    color: #fff !important;
    font-size: 2.2rem;
    font-weight: 400;
    background-image: url('../img/icon-feather-arrow-right.svg');
    background-size: 1rem;
    background-position: center;
    background-repeat: no-repeat;
}

.page-tank-index .more-case-btn,
.page-tank-panel-tank-products .more-case-btn {
    padding: 0.9rem 4rem;
    text-align: center;
    border-radius: 0.4rem;
    font-size: 1.3rem;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
    background-color: #8b959e;
    color: #fff !important;
    display: inline-block;
}

.page-tank-index .more-case-btn:hover,
.page-tank-panel-tank-products .more-case-btn:hover {
    opacity: 0.8;
}

.page-tank-panel-tank-products .product-title__text {
    white-space: nowrap;
}

.new-arrow img {
    width: 2.4rem;
    object-fit: cover;
}

.page-tank-index .products-grid .new-arrow img,
.page-tank-panel-tank-products .products-grid .new-arrow img {
    width: 2.3rem;
    height: 2.3rem;
    object-fit: contain;
}

@media all and (min-width: 769px) {
    .page-tank-panel-tank-products .main-content .product-detail-main__sidebar {
        padding: 5.9rem 6.8rem 0 0;
        margin-top: 2.2rem;
    }

    .page-tank-panel-tank-products .main-content .sidebar-box {
        margin-bottom: 0;
        padding: 3.2rem 2.4rem 3.6rem;
        box-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.16);
    }

    .page-tank-panel-tank-products .main-content .sidebar-title {
        margin-bottom: 1.4rem;
    }
}

@media all and (min-width: 769px) and (max-width: 1121px) {
    .page-tank-panel-tank-products .main-content .download-btn {
        padding: 0.7rem 6.2rem;
        font-size: 1.4rem;
        border-radius: 2.8rem;
        margin: 3.2rem auto 0;
    }
}

@media all and (max-width: 768px) {
    .page-tank-panel-tank-products {
        margin-top: 12px;
    }

    .page-tank-index .more-link,
    .page-tank-panel-tank-products .more-link {
        justify-content: center;
        flex-direction: column-reverse;
        gap: 2rem;
        margin: 6rem 0;
    }

    .page-tank-panel-tank-products .main-content .download-btn {
        margin: 7.5rem auto 0;
    }

    .page-tank-index .more-btn,
    .page-tank-panel-tank-products .more-btn {
        width: 319px;
        max-width: 100%;
        height: 57px;
        padding: 0 43px;
        font-size: 14px;
        line-height: 53px;
        margin: 0;
    }

    .page-tank-index .more-btn::after,
    .page-tank-panel-tank-products .more-btn::after {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .page-tank-index .more-case-btn,
    .page-tank-panel-tank-products .more-case-btn {
        width: calc(100% - 2rem);
        padding: 1.2rem;
    }

    .page-tank-index .products-grid,
    .page-tank-panel-tank-products .products-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .page-tank-index .worker-section__grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 2.2rem;
        overflow-x: auto;
    }

    .page-tank-index .worker-section__card {
        width: 211px;
        min-width: 211px;
        flex-basis: 211px;
    }
}
