@charset "utf-8";

.single-work .stl-article-wrap {
    min-width: 0;
}

.stl-work-category-tabs {
    margin: 0 0 2.5rem;
}
.stl-work-category-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.stl-work-category-tab-link {
    display: block;
    padding: .6rem 1rem;
    border: 1px solid rgb(var(--stl-accent-rgb));
    border-radius: 99px;
    color: rgb(var(--stl-accent-rgb));
    transition: color .3s, background-color .3s;
}
.stl-work-category-tab-link:hover,
.stl-work-category-tab-link[aria-current="page"] {
    color: #fff;
    background: rgb(var(--stl-accent-rgb));
}
.stl-work-category-tab-link:focus-visible,
.stl-work-device-label:focus-visible,
.stl-work-gallery-button:focus-visible {
    outline: 3px solid rgba(var(--stl-accent-rgb), .35);
    outline-offset: 3px;
}
.stl-work-industry-link {
    border-color: transparent;
    padding-inline: .25em;
}
.stl-work-industry-link:hover {
    color: rgb(var(--stl-accent-rgb));
    background: transparent;
    text-decoration: underline;
}
.stl-work-section,
.stl-work-web-section {
    margin: 3rem 0;
}
.stl-work-text-section p {
    margin-block: 1.5rem;
}
.stl-work-section-title {
    margin: 0 0 1.5rem;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.8;
}
.stl-work-gallery-single {
    margin-inline: 0;
}
.stl-work-gallery-image,
.stl-work-device-image {
    display: block;
    width: 100%;
    height: auto;
}
.stl-work-gallery {
    position: relative;
    overflow: hidden;
    padding-bottom: 2.5rem;
}
.stl-work-gallery .swiper-wrapper {
    align-items: center;
}
.stl-work-gallery-slide {
    margin: 0;
}
.stl-work-gallery-button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    top: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .65);
    transform: translateY(calc(-50% - 1.25rem));
    cursor: pointer;
    z-index: 2;
}
.stl-work-gallery-prev {
    left: .75rem;
}
.stl-work-gallery-next {
    right: .75rem;
}
.stl-work-gallery-button-icon {
    width: .7rem;
    height: .7rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}
.stl-work-gallery-prev .stl-work-gallery-button-icon {
    transform: rotate(-135deg);
}
.stl-work-gallery-next .stl-work-gallery-button-icon {
    transform: rotate(45deg);
}
.stl-work-gallery-button.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}
.stl-work-gallery-pagination {
    bottom: 0;
}
.stl-work-gallery-pagination .swiper-pagination-bullet-active {
    background: rgb(var(--stl-accent-rgb));
}
.stl-work-device-switch {
    display: grid;
    grid-template-columns: repeat(2, max-content) 1fr;
    column-gap: 0;
    row-gap: .75rem;
    margin: 0;
    padding: 0;
    border: 0;
}
.stl-work-device-switch .stl-work-section-title {
    grid-column: 1 / -1;
    width: 100%;
}
.stl-work-device-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}
.stl-work-device-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .35rem 1.5rem;
    border: 1px solid rgb(var(--stl-accent-rgb));
    border-radius: 0;
    color: inherit;
    background: transparent;
    text-align: center;
    cursor: pointer;
    transition: color .3s, background-color .3s;
}
.stl-work-device-input[data-work-device="sp"] + .stl-work-device-label {
    border-left: 0;
}
.stl-work-device-icon,
.stl-work-device-text {
    opacity: .35;
    transition: opacity .3s;
}
.stl-work-device-label:hover .stl-work-device-icon,
.stl-work-device-label:hover .stl-work-device-text {
    opacity: .7;
}
.stl-work-device-input:focus-visible + .stl-work-device-label {
    outline: 3px solid rgba(var(--stl-accent-rgb), .35);
    outline-offset: 3px;
}
.stl-work-device-input:checked + .stl-work-device-label .stl-work-device-icon,
.stl-work-device-input:checked + .stl-work-device-label .stl-work-device-text {
    opacity: 1;
}
.stl-work-device-input:checked + .stl-work-device-label {
    color: #fff;
    background: rgb(var(--stl-accent-rgb));
}
.stl-work-device-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.stl-work-device-icon-pc {
    -webkit-mask-image: url("../../img/icons/device/desktop.svg");
    mask-image: url("../../img/icons/device/desktop.svg");
}
.stl-work-device-icon-sp {
    -webkit-mask-image: url("../../img/icons/device/smartphone.svg");
    mask-image: url("../../img/icons/device/smartphone.svg");
}
.stl-work-device-panels {
    grid-column: 1 / -1;
}
.stl-work-device-panel {
    max-height: min(75vh, 52rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    background: #f5f5f5;
}
.stl-work-device-panel-pc,
.stl-work-device-panel-sp {
    display: none;
}
.stl-work-device-input[data-work-device="pc"]:checked ~ .stl-work-device-panels .stl-work-device-panel-pc,
.stl-work-device-input[data-work-device="sp"]:checked ~ .stl-work-device-panels .stl-work-device-panel-sp {
    display: block;
}
.stl-work-device-panel-sp {
    max-width: 26rem;
    margin-inline: auto;
}

@media (max-width: 575px) {
    .stl-work-category-tab-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stl-work-category-tab-link {
        text-align: center;
    }
    .stl-work-gallery-button {
        width: 2.4rem;
        height: 2.4rem;
    }
    .stl-work-device-panel {
        max-height: none;
        overflow-y: visible;
        overscroll-behavior: auto;
    }
}
