/* --------------------
 Library
-------------------- */
.library__main {
    margin: 0 0 60px;
    padding: 0;
}

@media (min-width: 768px) {
    .library__main {
        margin: 0 0 100px;
    }
}

@media (min-width: 992px) {
    .library__main {
        padding: 0 120px 0 0;
    }
}

@media (min-width: 1240px) {
    .library__main {
        padding: 0 120px;
    }
}

.library__main-container {
    margin: 0 auto;
    max-width: 1260px;
    padding: 0 16px;
    width: 100%;
}

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

.library__main-container-inner {
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1240px) {
    .library__main-container-inner {
        max-width: 960px;
    }
}

.library__main__lead {
    font-size: var(--fs20);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.6;
    margin: 0 auto 32px;
    padding: 0 0 0 56px;
    position: relative;
    width: -webkit-fit-content;
    width: fit-content;
}

@media (min-width: 768px) {
    .library__main__lead {
        font-size: var(--fs24);
        margin: 0 auto 40px;
        padding: 0 0 0 74px;
    }
}

.library__main__lead:before {
    background-image: url(../images/commons/com-title-symbol.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    bottom: auto;
    content: "";
    display: block;
    height: 36px;
    left: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
}

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

.library__main__lead p {
    display: block;
    margin: 0;
    transform: skew(-8deg);
}

.library__main__note {
    background-color: #edeeee;
    margin: 0 0 40px;
    padding: 20px;
}

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

.library__main__note p {
    font-size: var(--fs14);
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin: 0 0 1.25em;
    text-align: center;
}

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

@media (min-width: 992px) {
    .library__main__note p {
        font-size: var(--fs18);
    }
}

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

.library__main__note p a {
    color: #004588;
    font-weight: 700;
    text-decoration: underline;
}

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

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

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

@media (min-width: 768px) {
    .library__main__menu {
        gap: 16px;
        margin: 0 0 100px;
    }
}

.library__main__menu__item {
    border-bottom: 1px solid #ffffff;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .library__main__menu__item {
        border-bottom: none;
        width: calc(25% - 12px);
    }
}

.library__main__menu__item:last-child {
    border-bottom: none;
}

.library__main__menu__item > button, .library__main__menu__item > a {
    align-items: center;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    background-color: var(--color-theme);
    border: 1px solid var(--color-theme);
    border-radius: 0;
    color: #fff;
    display: flex;
    flex-flow: row nowrap;
    font-size: var(--fs16);
    font-weight: 700;
    height: 50px;
    justify-content: center;
    line-height: 1.4;
    padding: 0;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s, color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 100%;
}

.library__main__menu__item > button:focus, .library__main__menu__item > a:focus {
    background-color: #ffffff;
    color: var(--color-theme);
}

.library__main__menu__item > button:focus:after, .library__main__menu__item > a:focus:after {
    background-color: var(--color-theme);
}

@media (hover: hover) and (pointer: fine) {
    .library__main__menu__item > button:hover, .library__main__menu__item > a:hover {
        background-color: #ffffff;
        color: var(--color-theme);
    }

    .library__main__menu__item > button:hover:after, .library__main__menu__item > a:hover:after {
        background-color: var(--color-theme);
    }
}

.library__main__menu__item > button {
    gap: 8px;
}

.library__main__menu__item > button:after {
    background-color: #fff;
    -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: "";
    display: block;
    height: 7px;
    margin: 0;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 8px;
}

.library__main__menu__item > button.-active {
    background-color: #ffffff;
    color: var(--color-theme);
}

.library__main__menu__item > button.-active:after {
    background-color: var(--color-theme);
}

.library__main__menu__item__sub {
    display: none;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .library__main__menu__item__sub {
        left: 0;
        position: absolute;
        right: 0;
        top: 100%;
    }
}

.library__main__menu__item__sub__item {
    background-color: #fff;
    border-bottom: 1px solid var(--color-theme);
}

.library__main__menu__item__sub__item:last-child {
    border-bottom: none;
}

.library__main__menu__item__sub__item a {
    align-items: center;
    background-color: #edeeee;
    box-shadow: 2px 5px 2px rgba(0, 0, 0, 0.25);
    color: var(--color-theme);
    display: flex;
    font-size: var(--fs14);
    font-weight: 700;
    height: 50px;
    justify-content: center;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 100%;
}

@media (min-width: 768px) {
    .library__main__menu__item__sub__item a {
        font-size: var(--fs16);
        height: 50px;
    }
}

.library__main__menu__item__sub__item a:focus {
    background-color: rgba(var(--color-theme-rgb), 0.05);
}

@media (hover: hover) and (pointer: fine) {
    .library__main__menu__item__sub__item a:hover {
        background-color: rgba(var(--color-theme-rgb), 0.05);
    }
}

.library__main__list {
    align-items: stretch;
    display: flex;
    flex-flow: row wrap;
    gap: 40px;
    justify-content: flex-start;
}

@media (min-width: 992px) {
    .library__main__list {
        gap: 60px;
    }
}

.library__main__list__item {
    width: 100%;
}

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

@media (min-width: 992px) {
    .library__main__list__item {
        width: calc(50% - 30px);
    }
}

.library__main__list__item__viewer {
    margin: 0 0 12px;
}

.library__main__list__item__viewer iframe {
    aspect-ratio: 16/9;
    border: none;
    display: block;
    height: auto;
    width: 100%;
}

.library__main__list__item__title {
    font-size: var(--fs16);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
    margin: 0 0 12px;
}

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

@media (min-width: 992px) {
    .library__main__list__item__title {
        font-size: var(--fs20);
    }
}

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

.library__product {
    margin: 0;
    padding: 0 0 40px;
    position: relative;
}

@media (min-width: 992px) {
    .library__product {
        padding: 0 120px 60px 0;
    }
}

@media (min-width: 1240px) {
    .library__product {
        padding: 0 120px 60px;
    }
}

.library__product:after {
    background-color: #e2e7e9;
    bottom: 0;
    content: "";
    display: block;
    height: 60px;
    left: 0;
    margin: 0;
    position: absolute;
    right: 0;
    top: auto;
    width: auto;
    z-index: 0;
}

@media (min-width: 768px) {
    .library__product:after {
        height: 70px;
    }
}

@media (min-width: 992px) {
    .library__product:after {
        height: 126px;
    }
}

.library__product-container {
    margin: 0 auto;
    max-width: 1340px;
    padding: 0 16px;
    position: relative;
    width: 100%;
    z-index: 1;
}

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

.library__product-container-inner {
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1240px) {
    .library__product-container-inner {
        max-width: 1280px;
    }
}

.library__product__banner {
    align-items: stretch;
    background-image: url(../images/pages/library/library-product-banner.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%, 0 calc(100% - 30px), 0 30px);
    clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% calc(100% - 30px), calc(100% - 30px) 100%, 30px 100%, 0 calc(100% - 30px), 0 30px);
    color: inherit;
    display: flex;
    flex-flow: row nowrap;
    height: 160px;
    margin: 0 auto;
    max-width: 340px;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 100%;
}

@media (min-width: 768px) {
    .library__product__banner {
        height: 220px;
        max-width: 924px;
    }
}

.library__product__banner:before {
    content: "";
    display: block;
    width: 112px;
}

@media (min-width: 768px) {
    .library__product__banner:before {
        width: 44%;
    }
}

@media (min-width: 992px) {
    .library__product__banner:before {
        width: 46%;
    }
}

@media (min-width: 1240px) {
    .library__product__banner:before {
        width: 50%;
    }
}

.library__product__banner-inner {
    align-items: stretch;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

.library__product__banner__text {
    font-size: var(--fs14);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 12px;
    text-align: left;
    transform: skew(-8deg);
}

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

.library__product__banner__title {
    color: #fff;
    font-size: var(--fs22);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0;
    padding: 0 0 0 30px;
    position: relative;
    text-align: left;
    transform: translateX(12px);
}

@media (min-width: 768px) {
    .library__product__banner__title {
        font-size: var(--fs36);
        padding: 0 0 0 40px;
    }
}

.library__product__banner__title:before {
    background-color: #ffffff;
    bottom: 0;
    -webkit-clip-path: polygon(0 0, 100% 50%, 0 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    content: "";
    display: block;
    height: 18px;
    left: 0;
    margin: auto 0;
    position: absolute;
    right: auto;
    top: 0;
    transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
    width: 15px;
}

@media (min-width: 768px) {
    .library__product__banner__title:before {
        height: 22px;
        width: 18px;
    }
}

.library__product__banner__title span {
    display: block;
    transform: skew(-8deg);
}

.library__product__banner:focus {
    opacity: 0.65;
}

@media (hover: hover) and (pointer: fine) {
    .library__product__banner:hover {
        opacity: 0.65;
    }
}