/* --------------------
 Work detail
-------------------- */
.work-container {
    container: container/inline-size;
    width: 100%;
}

.work-container-inner {
    padding: 0;
}

@media (min-width: 992px) {
    .work-container-inner {
        padding: 0 calc(var(--global-contact-width) + 20px) 0 calc(50cqw - 510px);
    }
}

@container container (min-width: 1400px) {
    .work-container-inner {
        padding: 0 calc(var(--global-contact-width) + 20px);
    }
}

.work-container-inner-contents {
    margin: 0 auto;
    max-width: 1020px;
    padding: 0 16px;
    width: 100%;
}

@media (min-width: 768px) {
    .work-container-inner-contents {
        padding: 0 30px;
    }
}

@container container (min-width: 1400px) {
    .work-container-inner-contents {
        margin: 0 auto;
    }
}

.work__detail__head {
    margin: 0 0 40px;
}

.work__detail__head__title {
    font-size: var(--fs22);
    font-weight: inherit;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin: 0 0 20px;
}

@media (min-width: 768px) {
    .work__detail__head__title {
        font-size: var(--fs26);
    }
}

.work__detail__head__meta {
    align-items: flex-start;
    display: flex;
    flex-flow: row nowrap;
    gap: 24px;
    justify-content: flex-start;
}

.work__detail__head__meta__date {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: var(--fs14);
    gap: 8px;
    justify-content: flex-start;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin: 0;
    padding: 2px 0 0;
}

@media (min-width: 768px) {
    .work__detail__head__meta__date {
        font-size: var(--fs16);
        padding: 2px 0 0;
    }
}

.work__detail__head__meta__date:before {
    background-color: var(--color-theme);
    border-radius: 50%;
    content: "";
    height: 13px;
    margin: 0;
    width: 13px;
}

@media (min-width: 768px) {
    .work__detail__head__meta__date:before {
        height: 14px;
        width: 14px;
    }
}

.work__detail__head__meta__category {
    align-items: center;
    display: flex;
    flex-flow: row wrap;
    gap: 16px;
    justify-content: flex-start;
}

.work__detail__gallery {
    border-bottom: 1px solid #000000;
    margin: 0 0 40px;
    padding: 0 0 40px;
}

@media (min-width: 768px) {
    .work__detail__gallery {
        margin: 0 0 60px;
        padding: 0 0 60px;
    }
}

.work__detail__gallery__slider {
    margin: 0 auto 8px;
    max-width: 700px;
    width: 100%;
}

@media (min-width: 768px) {
    .work__detail__gallery__slider {
        margin: 0 auto 40px;
    }
}

.work__detail__gallery__slider .swiper-wrapper {
    height: auto;
}

.work__detail__gallery__slider .swiper-slide {
    height: auto;
}

.work__detail__gallery__slider .swiper-slide img {
    aspect-ratio: 700/494;
    border-radius: 12px;
    height: 100%;
    object-fit: contain;
    object-position: center;
    width: 100%;
}

@media (min-width: 768px) {
    .work__detail__gallery__slider .swiper-slide img {
        border-radius: 38px;
    }
}

.work__detail__gallery__nav {
    align-items: stretch;
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    justify-content: flex-start;
    margin: 0;
}

@media (min-width: 768px) {
    .work__detail__gallery__nav {
        gap: 16px;
    }
}

.work__detail__gallery__nav__item {
    width: calc(20% - 6.4px);
}

@media (min-width: 768px) {
    .work__detail__gallery__nav__item {
        width: calc(20% - 12.8px);
    }
}

.work__detail__gallery__nav__item button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    border: none;
    border-radius: 5px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .work__detail__gallery__nav__item button {
        border-radius: 10px;
    }
}

.work__detail__gallery__nav__item button:before {
    background-color: var(--color-text);
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    mix-blend-mode: multiply;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    z-index: 1;
}

.work__detail__gallery__nav__item button img {
    aspect-ratio: 700/494;
    height: auto;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.work__detail__gallery__nav__item button.-active:before {
    opacity: 0.5;
}

.work__detail__content {
    margin: 0 0 40px;
}

.work__detail__content h2 {
    font-size: var(--fs20);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin: 60px 0 20px;
}

@media (min-width: 768px) {
    .work__detail__content h2 {
        font-size: var(--fs24);
    }
}

.work__detail__content h2:first-child {
    margin-top: 0;
}

.work__detail__content b, .work__detail__content strong {
    font-weight: 700;
}

.work__detail__content p {
    font-size: var(--fs14);
    letter-spacing: 0.1em;
    line-height: 2;
    margin: 0 0 1.5em;
}

@media (min-width: 768px) {
    .work__detail__content p {
        font-size: var(--fs16);
    }
}

.work__detail__content p:last-child {
    margin-bottom: 0;
}

.work__detail__content p a {
    color: var(--color-link);
    text-decoration: underline;
}

.work__detail__content p a:focus {
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .work__detail__content p a:hover {
        text-decoration: none;
    }
}

.work__detail__action a {
    align-items: center;
    color: inherit;
    display: flex;
    flex-flow: row nowrap;
    font-size: var(--fs16);
    font-weight: 400;
    height: 36px;
    justify-content: flex-start;
    letter-spacing: 0.3em;
    line-height: 1.2;
    margin: 0 0 0 auto;
    padding: 0 0 0 46px;
    position: relative;
    text-decoration: none;
    transition: color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

@media (min-width: 768px) {
    .work__detail__action a {
        font-size: var(--fs18);
    }
}

.work__detail__action a:before {
    background-color: var(--color-theme);
    border: 1px solid var(--color-theme);
    border-radius: 50%;
    bottom: 0;
    content: "";
    display: block;
    height: 36px;
    left: 0;
    margin: auto 0;
    position: absolute;
    top: 0;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s, border-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 36px;
}

.work__detail__action a:after {
    background-color: #ffffff;
    bottom: 0;
    content: "";
    display: block;
    height: 36px;
    left: 0;
    margin: auto 0;
    -webkit-mask-image: url(../../images/commons/com-link-arrow-left.svg);
    mask-image: url(../../images/commons/com-link-arrow-left.svg);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 20px 14px;
    mask-size: 20px 14px;
    position: absolute;
    top: 0;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 36px;
}

.work__detail__action a:focus {
    color: var(--color-theme);
}

.work__detail__action a:focus:before {
    background-color: #ffffff;
    border-color: var(--color-theme);
}

.work__detail__action a:focus:after {
    background-color: var(--color-theme);
}

@media (hover: hover) and (pointer: fine) {
    .work__detail__action a:hover {
        color: var(--color-theme);
    }

    .work__detail__action a:hover:before {
        background-color: #ffffff;
        border-color: var(--color-theme);
    }

    .work__detail__action a:hover:after {
        background-color: var(--color-theme);
    }
}