@charset "UTF-8";

/*===================================================
    ビデオライブラリー一覧ページ専用CSS
===================================================*/
/* 変数 */
:root {
    --neutral-4-alpha: rgba(13, 13, 13, 0.60);
    --neutral-12: #001D48;
    --neutral-12-alpha70: rgba(0, 29, 72, 0.70);
    --neutral-30: #354765;
    --neutral-40: #55606A;
    --neutral-40-alpha10: rgba(85, 96, 106, 0.15);
    --neutral-98: #F7F8FA;
    --neutral-100: #ffffff;
    --neutral-100-alpha70: rgba(255, 255, 255, 0.70);
    --primary-blue: #0050C9;
    --primary-blue-alpha10: rgba(0, 80, 201, 0.10);
    --primary-blue-alpha70: rgba(0, 80, 201, 0.07);
    --primary-blue-alpha4: rgba(0, 80, 201, 0.04);
    --text-subtler: var(--neutral-40);
    --text-subtle: var(--neutral-30);
    --text-default: var(--neutral-12);
    --text-accent: var(--primary-blue);
    --text-link: var(--primary-blue);
    --surface-primary-10: rgba(0, 80, 201, 0.12);
    /* 見出し */
    --heading-1: 4.8rem;
    --heading-2: 2.4rem;
    --heading-3: 1.8rem;
    --subtitle: 2.0rem;
    /* フォントサイズ */
    --font-size-md: 1.6rem;
    --font-size-sm: 1.4rem;
    --font-size-xs: 1.3rem;
    --font-size-tiny: 1.2rem;
    /* ウェイト */
    --weight-extra-bold: 800;
    --weight-bold: 700;
    --weight-medium: 500;
    --weight-regular: 400;
    --surface-container: var(--neutral-100);
    --surface-container-inverse: var(--neutral-98);
    --surface-time: rgba(13, 13, 13, 0.60);
    --surface-primary-default: #0050C9;
    --surface-primary-70: rgba(0, 80, 201, 0.07);
    --surface-primary-10: rgba(0, 80, 201, 0.12);
    --surface-primary-40: rgba(0, 80, 201, 0.04);
}

/* 見出し */
.heading-1 {
    font-size: var(--heading-1);
    font-weight:var(--weight-extra-bold);
    line-height: 1.5;
    letter-spacing: 0.02em;
}
.heading-2 {
    font-size: var(--heading-2);
    font-weight: var(--weight-bold);
    line-height: 1.5;
    letter-spacing: 0.0em;
}
.heading-3 {
    font-size: var(--heading-3);
    font-weight: var(--weight-bold);
    line-height: 1.5;
    letter-spacing: 0.0em;
}
.subtitle {
    font-size: var(--subtitle);
    font-weight: var(--weight-medium);
    line-height: 1.2;
    letter-spacing: 0.03em;
}

/* リンク */
.text-link {
    color: var(--text-link);
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 5%;
    text-underline-offset: 25%;
    /* 4px */
    text-underline-position: from-font;
}

.text-link:focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

.text-link.-newtab {
    display: inline-flex;
    align-items: center;
}

.text-link.-newtab img {
    width: 15px;
    height: 15px;
    margin-left: 2px;
}


/*//////////////////////////////////////////////////
    共通
///////////////////////////////////////////////////*/
html {
    font-size: 62.5%;
}

body{
    font-family: 'Noto Sans Japanese', "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* モーダル開閉時のスクロール位置固定 */
body.modal-closing {
    overflow: hidden;
}

input, button, select, textarea {
    font-family: 'Noto Sans Japanese', "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

main{
    background-image: url("/image/r1/library/img_bg.png");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

/* --------------------------------------------------------
        ビデオライブラリー > スライダー
-------------------------------------------------------- */
#librarySlider .librarySlider__titleWrapper {
    margin-bottom: 40px;
    margin-top: clamp(32px, 20.376px + 3.0047vw, 64px);
    margin-right: auto;
    margin-left: auto;
    max-width: 1360px;
    @media (max-width: 1439px) {
        margin-right: 60px;
        margin-left: 60px;
    }
}

#librarySlider .librarySlider__title {
    background: linear-gradient(90deg, #0050C9 0%, #6190FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
    font-size: clamp(3.2rem, calc(1rem + 3vw), 4.8rem);
}

#librarySlider .librarySlider__subTitle {
    background: linear-gradient(90deg, #0050C9 0%, #6190FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
    font-size: clamp(1.6rem, calc(1rem + 1vw), 2rem);
    padding-left: 7px;
    margin-top: 8px;
}

#librarySlider .librarySlider__content {
    margin-top: clamp(40px, 25.47px + 3.756vw, 80px);
    margin-right: auto;
    margin-left: auto;
    margin-bottom: clamp(64px, 58.35px + 1.502vw, 80px);
}

#librarySlider .librarySlider__item{
    margin-right: 30px;
    margin-left: 30px;
    /* opacity制御のためのトランジション */
    transition: opacity 0.3s ease;
    border-radius: 15px;
    cursor: pointer;
}

#librarySlider .librarySlider__item:focus-visible{
    outline: none;
    border: 3px solid var(--surface-primary-default);
}

#librarySlider .librarySlider__item.focus-visible {
    outline: none;
    border: 3px solid var(--surface-primary-default);
}

#librarySlider .librarySlider__itemContentThumbnail{
    position: relative;
}

#librarySlider .librarySlider__itemContentImage img{
    border-radius: 15px;
    box-shadow: 0 0 4px 0 rgba(4, 48, 93, 0.10), 0 2px 20px 0 rgba(4, 48, 93, 0.20);
}

#librarySlider .librarySlider__itemContentDuration{
    position: absolute;
    bottom: 8px;
    left: 8.3px;
    color: var(--neutral-100);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    padding: 0px 6px 2px;
    background-color: var(--surface-time);
    border-radius: 4px;
    max-height: 20px;
}

#librarySlider .librarySlider__itemContentInfo {
    margin-top: clamp(24px, 21.88px + 0.563vw, 30px);
}

#librarySlider .librarySlider__itemContentDateWrapper {
    display: flex;
    align-items: center;
}

#librarySlider .librarySlider__itemContentDate {
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--neutral-40);
}

#librarySlider .librarySlider__itemContentNew {
    display: flex;
    padding: 1px 3px;
    justify-content: center;
    align-items: center;
    background-color: #0072CE;
    color: var(--neutral-100);
    font-size: var(--font-size-tiny);
    font-weight: var(--weight-medium);
    line-height: 1.5;
    width: fit-content;
    margin-left: 8px;
}

#librarySlider .librarySlider__itemContentTitle {
    margin-top: 6px;
}

#librarySlider .librarySlider__itemContentTitle h2 {
    font-size: 2.4rem;
    font-weight: var(--weight-bold);
    line-height: 1.5;
    color: var(--text-default);
}

#librarySlider .librarySlider__itemContentTags {
    margin-top: 6px;
    margin-left: -6px;
    margin-right: -6px;
    display: flex;
    flex-wrap: wrap;
}

#librarySlider .librarySlider__itemContentTags .librarySlider__itemContentTag {
    display: flex;
    padding: 3px 8px 4px 8px;
    margin: 6px;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    width: fit-content;
    background: var(--primary-blue-alpha10);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    color: var(--text-accent);
}

/* 中央以外のスライドのopacity設定 */
#librarySlider .librarySlider__item:not(.slick-center) {
    opacity: 0.4;
}

/* 中央のスライドのopacity設定 */
#librarySlider .librarySlider__item.slick-center {
    opacity: 1;
}

/* librarySlider__itemContentInfoのopacity制御 */
#librarySlider .librarySlider__itemContentInfo {
    transition: opacity 0.5s ease;
    margin-right: 10px;
    margin-left: 10px;
}

/* 中央以外のスライドのitemContentInfoは非表示 */
#librarySlider .librarySlider__item:not(.slick-center) .librarySlider__itemContentInfo {
    opacity: 0;
}

/* 中央のスライドのitemContentInfoは表示 */
#librarySlider .librarySlider__item.slick-center .librarySlider__itemContentInfo {
    opacity: 1;
}

.slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    padding: 20px 0;
    list-style: none;
}

.slick-dots li {
    margin: 0;
    padding: 18px;
    display: inline-block;
    position: relative;
}

/* ベーススタイル: ドットボタンのサイズと形 */
.slick-dots li button {
    /* サイズ設定 */
    width: 8px;
    height: 8px;

    /* 基本的な形状 */
    border: none;
    border-radius: 999px;
    /* 完全な円形 */
    cursor: pointer;

    /* テキストを非表示にする設定（通常はslickが自動で行うが念のため） */
    font-size: 0;
    line-height: 0;

    /* 見た目の微調整 */
    padding: 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;

    /* z-indexを設定してSVGの背後に配置 */
    position: relative;
    z-index: 1;
}

/* 非アクティブドットのカラー */
.slick-dots li button {
    background-color: #0050C9;
    opacity: 0.3;
}

/* アクティブドットのカラー */
.slick-dots li.slick-active button {
    background-color: #0050C9;
    opacity: 1;
}

/* 円形進捗ラインのコンテナ */
.slick-dots li {
    position: relative;
    display: flex;
    cursor: pointer;
}

/* SVG円形進捗ライン */
.slick-dots li .progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* アクティブドットに進捗ラインを表示 */
.slick-dots li.slick-active .progress-ring {
    opacity: 1;
}

/* 進捗リングの円 */
.progress-ring__circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 5s linear;
}

/* アニメーション開始 */
.slick-dots li.slick-active.animating .progress-ring__circle {
    stroke-dashoffset: 0;
}

/* 進捗ラインが完了した後のスタイル */
.slick-dots li.has-progress.completed::before {
    border-top-color: #0050C9;
    border-right-color: #0050C9;
    border-bottom-color: #0050C9;
    border-left-color: #0050C9;
    animation: none;
    transform: rotate(360deg);
}

.slick-dots li.focus-visible {
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

.slick-dots-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-top: clamp(30px, 20.94px + 0.939vw, 40px);
}

.slick-play-pause-btn {
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0050C9;
}

.slick-play-pause-btn.focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

@media screen and (max-width: 800px) {
    .slick-dots-wrapper {
        gap: 10px;
    }

    .slick-play-pause-btn {
        width: 35px;
        height: 35px;
    }
}

/* --------------------------------------------------------
        ビデオライブラリー > 検索
-------------------------------------------------------- */
#librarySearch {
    margin-right: auto;
    margin-left: auto;
    background-color: var(--surface-container);
    padding:24px 40px 10px;
    border-radius: 15px;
    max-width: 1360px;
    @media (max-width: 1439px) {
        margin-right: 40px;
        margin-left: 40px;
    }
}

#librarySearch .librarySearch__keyword {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

#librarySearch .librarySearch__keyword label{
   min-width: 80px;
   font-size: var(--font-size-md);
   font-weight: var(--weight-medium);
   line-height: 1.6;
   color: var(--text-subtler);
   margin-right: 20px;
}

#librarySearch .librarySearch__keywordInput{
    position: relative;
    width: 100%;
}

#librarySearch .librarySearch__keyword input{
    width: 100%;
    border-radius: 6px;
    border: 2px solid var(--neutral-40-alpha10);
    padding: 17px 14px 17px 48px;
    max-height: 64px;
    height: auto;
    font-size: var(--font-size-md);
}

#librarySearch .librarySearch__keyword input:focus {
    outline: none;
    border-color: var(--neutral-40-alpha10);
}

#librarySearch .librarySearch__keyword input:focus-visible {
    outline: none;
    border-color: var(--surface-primary-default);
}


#librarySearch .librarySearch__keyword input::-webkit-calendar-picker-indicator,
#librarySearch .librarySearch__keyword input::-webkit-list-button {
    display: none !important;
}

#librarySearch .librarySearch__keywordInput::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background-image: url("/image/r1/library/icon_search.png");
    background-size: 26px auto;
    background-repeat: no-repeat;
}

#librarySearch .librarySearch__keyword input::placeholder{
    font-size: var(--font-size-md) !important;
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--text-subtler);
}

/* --------------------------------------------------------
        ビデオライブラリー > キーワードサジェスト
-------------------------------------------------------- */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 6px;
    background: var(--surface-container);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    box-shadow: 0 0 4px 0 rgba(4, 48, 93, 0.10), 0 2px 20px 0 rgba(4, 48, 93, 0.20);
}

.suggestions-list li {
    padding: 7px 16px 12px;
    cursor: pointer;
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--text-default);
    transition: background-color 0s ease;
    height: calc(var(--font-size-md) * 2.5);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    @media (max-width: 799px) {
        height: calc(var(--font-size-md) * 2.5);
        padding: 4px 16px 14px;
        line-height: 2;
    }
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background-color: var(--surface-primary-40);
}

.suggestions-list li.focused {
    background-color: var(--surface-primary-40);
    color: var(--text-subtle);
}

.suggestions-list li.focused:hover {
    background-color: var(--surface-primary-40);
}

#librarySearch .librarySearch__categories {
    display: flex;
    align-items: flex-start;
}

#librarySearch .librarySearch__categories span{
    min-width: 80px;
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    color: var(--text-subtler);
    margin-right: 20px;
    margin-top: 5px;
}

#librarySearch .librarySearch__categories ul{
    display: flex;
    flex-wrap: wrap;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 200ms ease-out;
}

@media screen and (max-width: 799px) {
    #librarySearch .librarySearch__categories ul {
        max-height: 90px;
    }
}

#librarySearch .librarySearch__categories ul.expanded {
    max-height: none;
}

#librarySearch .librarySearch__categories ul li{
    margin: 0px 12px 12px 0px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s background-color ease-out;
}

.librarySearch__categoriesItem.focus-visible {
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
    padding: 3px 8px;
    transition: border-color 0.2s ease;
}

#librarySearch .librarySearch__categories ul li:hover{
    background-color: rgba(13, 13, 13, 0.04);
}

@media screen and (max-width: 1024px) {
    #librarySearch .librarySearch__categories ul li:hover{
        background-color: transparent;
    }
}

#librarySearch .librarySearch__categories ul li.selected{
    background-color: var(--surface-primary-10);
}

#librarySearch .librarySearch__categories ul li.selected:hover{
    background-color: rgba(0, 80, 201, 0.20);
}

#librarySearch .librarySearch__categories ul li label{
    color: var(--text-subtle);
    cursor: pointer;
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
}


#librarySearch .librarySearch__categories ul li input{
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

/* すべて外すボタン */
#librarySearch .librarySearch__categoriesClear{
    margin-right: 16px;
    margin-left: auto;
}

#librarySearch .librarySearch__categoriesClear.focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

#librarySearch .librarySearch__categoriesClear button {
    border: none;
    display: inline-flex;
    padding: 5px 10px 5px 10px;
    min-width: 123px;
    justify-content: flex-start;
    gap: 2px;
    border-radius: 6px;
    background: var(--surface-primary-70);
    color: var(--text-subtle);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    transition: 0.2s background-color ease-out;
}

#librarySearch .librarySearch__categoriesClear button:hover {
    background: var(--surface-primary-10);
}

#librarySearch .librarySearch__categoriesClear button.focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

#librarySearch .librarySearch__categoriesClear button img{
    width: 26px;
    height: 26px;
}

#librarySearch .librarySearch__categoriesClear button span {
   margin: 0px;
}

/* 全て表示ボタン */
#librarySearch .librarySearch__categoriesOpen{
    margin-left: auto;
}
#librarySearch .librarySearch__categoriesOpen button {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
    margin-top: -3px;
    @media (max-width: 799px) {
        margin-top: -7px;
    }
}

#librarySearch .librarySearch__categoriesOpen.focus-visible button{
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}


#librarySearch .librarySearch__categoriesOpen button img{
    width: 26px;
    height: 26px;
}

/* --------------------------------------------------------
        ビデオライブラリー > 一覧
-------------------------------------------------------- */
#libraryList {
    margin: 40px auto 100px auto;
    max-width: 1360px;
    @media (max-width: 1439px) {
        margin-right: 40px;
        margin-left: 40px;
    }
}

#libraryList .libraryList__sort {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
}

#libraryList .libraryList__sortItem {
    margin-right: 8px;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s background-color ease-out;
}

#libraryList .libraryList__sortItem input{
    opacity: 0;
    position: absolute;
    cursor: pointer;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}


#libraryList .libraryList__sortItem label{
    color: var(--text-subtle);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    cursor: pointer;
}

#libraryList .libraryList__sortItem:hover{
    background-color: var(--primary-blue-alpha10);
}

#libraryList .libraryList__sortItem input:checked {
    background-color: var(--primary-blue-alpha70);
}

#libraryList .libraryList__sortItem.selected {
    background-color: var(--primary-blue-alpha70);
}

#libraryList .libraryList__sortItem span{
    color: var(--text-subtle);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
}

#libraryList .libraryList__sortItem.focus-visible {
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
    padding: 3px 8px;
    transition: border-color 0.2s ease;
}

/* 既存のhoverスタイルとの競合を避ける */
#libraryList .libraryList__sortItem.focus-visible:hover {
    background-color: var(--primary-blue-alpha10);
}

#libraryList .libraryList__container {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px 24px;
    @media (min-width: calc(4 * 260px + 3 * 32px + 2 * 40px)) {
        grid-template-columns: repeat(4, 1fr);
    }
}

#libraryList .libraryList__item {
    background-color: var(--surface-container);
    padding: 16px 16px 24px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 337px;
    max-width: 615px;
    position: relative;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 4px 0 rgba(4, 48, 93, 0.10), 0 2px 20px 0 rgba(4, 48, 93, 0.20);
}


#libraryList .libraryList__item:focus-visible {
    outline: none;
    border: 3px solid var(--surface-primary-default);
}

#libraryList .libraryList__item:hover {
    text-decoration: none;
}

#libraryList .libraryList__itemThumbnail {
    width: 100%;
    position: relative;
    border-radius: 6px;
}
#libraryList .libraryList__itemThumbnailImage {
    transition: transform 0.2s ease-out;
    overflow: hidden;
    object-fit: cover;
    border-radius: 6px;
}

#libraryList .libraryList__itemThumbnailImage img{
    border-radius: 6px;
    transition: transform 0.2s ease-out;
}

/* ホバー時のズーム効果 */
#libraryList .libraryList__item:hover .libraryList__itemThumbnailImage img {
    transform: scale(1.1);
}

#libraryList .libraryList__itemThumbnailDuration {
    position: absolute;
    bottom: 6.5px;
    left: 6px;
    color: var(--neutral-100);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    padding: 0px 6px 2px;
    background-color: var(--surface-time);
    border-radius: 4px;
    max-height: 20px;
}

#libraryList .libraryList__itemContent {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#libraryList .libraryList__itemContentDate {
    color: var(--text-subtler);
    font-size: var(--font-size-xs);
}

#libraryList .libraryList__itemContentDateWrapper {
    display: flex;
    align-items: center;
    margin: 16px 8px 0px 8px;
}

#libraryList .libraryList__itemContentNew {
    display: flex;
    padding: 1px 3px;
    justify-content: center;
    align-items: center;
    background-color: #0072CE;
    color: var(--neutral-100);
    font-size: var(--font-size-tiny);
    font-weight: var(--weight-medium);
    margin-left: 8px;
}

#libraryList .libraryList__itemContentTitle {
    margin: 0px 8px;
}

#libraryList .libraryList__itemContentTitle h2 {
    color: var(--text-default);
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}

#libraryList .libraryList__item:hover .libraryList__itemContentTitle h2 {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 5%;
    text-underline-offset: 25%;
}

#libraryList .libraryList__item:focus .libraryList__itemContentTitle h2 {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 5%;
    text-underline-offset: 25%;
}

#libraryList .libraryList__itemContentTags {
    margin: 16px 5px 0px 5px;
    display: flex;
    flex-wrap: wrap;
}

#libraryList .libraryList__itemContentTags .libraryList__itemContentTag {
    display: flex;
    padding: 1px 8px 3px 8px;
    margin: 3px;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    width: fit-content;
    background: var(--primary-blue-alpha10);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    color: var(--text-accent);
}

/* --------------------------------------------------------
        ビデオライブラリー > 一覧 > さらに表示
-------------------------------------------------------- */
#libraryList .libraryList__more {
    margin-top: 44px;
    text-align: center;
}

#libraryList .libraryList__moreButton {
    display: flex;
    margin: 0 auto;
    width: 300px;
    height: 56px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background-color: var(--neutral-100);
    color: var(--text-accent);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: 0.2s background-color ease-out;
    box-shadow: 0 5px 10px 0 rgba(199, 211, 226, 0.20);
    transition: 0.2s text-decoration ease-out;
}

#libraryList .libraryList__moreButton:hover {
    background: var(--surface-container);
    box-shadow: 0 5px 10px 0 rgba(199, 211, 226, 0.20);
}

#libraryList .libraryList__moreButton:hover span {
    text-decoration: underline;
    text-decoration-thickness: 5%;
    text-underline-offset: 25%;
}

#libraryList .libraryList__moreButton:focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
}

/* --------------------------------------------------------
        ビデオライブラリー > 一覧 > 検索結果なしメッセージ
-------------------------------------------------------- */
#libraryList .libraryList__noResults {
    text-align: center;
    padding: 40px 20px;
}

#libraryList .libraryList__noResults p {
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    color: var(--text-default);
    margin: 0;
}

/*--------------------------------
 * スケルトンスクリーン
 *--------------------------------*/
.libraryList__skeletonWrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin-bottom: 32px;
}

.libraryList__skeletonItem {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.libraryList__skeletonThumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg,
            rgba(0, 131, 201, 0.08) 5%,
            rgba(0, 131, 201, 0.2) 25%,
            rgba(0, 131, 201, 0.08) 35%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.libraryList__skeletonContent {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.libraryList__skeletonDate {
    width: 80px;
    height: 16px;
    background: linear-gradient(90deg,
            rgba(0, 131, 201, 0.08) 5%,
                rgba(0, 131, 201, 0.2) 25%,
                rgba(0, 131, 201, 0.08) 35%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.libraryList__skeletonTitle {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg,
            rgba(0, 131, 201, 0.08) 5%,
                rgba(0, 131, 201, 0.2) 25%,
                rgba(0, 131, 201, 0.08) 35%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.libraryList__skeletonTitle--short {
    width: 70%;
}

.libraryList__skeletonTags {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.libraryList__skeletonTag {
    width: 100px;
    height: 24px;
    background: linear-gradient(90deg,
            rgba(0, 131, 201, 0.08) 5%,
                rgba(0, 131, 201, 0.2) 25%,
                rgba(0, 131, 201, 0.08) 35%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
    .libraryList__skeletonWrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .libraryList__skeletonWrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

@media screen and (max-width: 600px) {
    .libraryList__skeletonWrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* --------------------------------------------------------
        ビデオライブラリー > 詳細モーダル
-------------------------------------------------------- */
/* モーダル表示時のボディスクロール制御 */
body.modal-open {
    overflow: hidden;
}

/* モーダルの背景 */
.libraryModal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(73, 81, 94, 0.8);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.libraryModal-bg.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

dialog::backdrop {
    display: none;
}

.libraryModal__wrapper {
    position: fixed;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    height: 90vh;
    min-width: 300px;
    width: 100%;
    max-width: min(90vw, calc(50vh * 16/9));
    max-height: 90vh;
    margin: 0;
    background-color: var(--neutral-100);
    padding: 0px;
    border-radius: 15px;
    border: none;
    overflow: visible;
    flex-direction: column;
    @media screen and (max-width: 799px) {
        height: 85dvh;
        max-height: 85dvh;
    }
}

.libraryModal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(73, 81, 94, 0.8);
}
/* モーダル本体 */
.libraryModal {
    display: none;
    position: fixed;

}

/* dialog要素が開いている状態 */
.libraryModal[open] {
    display: flex;
}

/* 閉じるボタン */
.libraryModal-close {
    position: absolute;
    top: -52px;
    right: 10px;
    width: 44px;
    height: 44px;
    background-image: url("/image/r1/library/icon_modal_close.png");
    background-size: 44px auto;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.libraryModal-close:focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

.libraryModal__body{
    border-radius: 15px;
    overflow: hidden;
}

.libraryModal__content{
    flex: 1;
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    padding: 32px;
    @media screen and (max-width: 799px) {
        max-height: 85dvh ;
    }
}

.libraryModal__content .libraryModal__thumbnail{
   display: flex;
   align-items: center;
   justify-content: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 50vh;
}

.libraryModal__content iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.libraryModal__content h1 {
    color: var(--text-default);
    font-size: 2.4rem;
    font-weight: var(--weight-bold);
    line-height: 1.5;
    margin-bottom: 6px;
    margin-top: 16px;
}

.libraryModal__dateWrapper {
    display: flex;
    align-items: center;
}

.libraryModal__date {
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--neutral-40);
}

.libraryModal__new {
    display: flex;
    padding: 1px 3px;
    justify-content: center;
    align-items: center;
    background-color: #0072CE;
    color: var(--neutral-100);
    font-size: var(--font-size-tiny);
    font-weight: var(--weight-medium);
    line-height: 1.5;
    width: fit-content;
    margin-left: 8px;
}

.libraryModal__tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.libraryModal__tags .libraryModal__tag {
    display: flex;
    padding: 3px 8px 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    width: fit-content;
    background: var(--primary-blue-alpha10);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.5;
    color: var(--text-subtle);
}

/* チャプター */
.libraryModal__chapters {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 0;
    border-radius: 8px;
    background: var(--surface-container-inverse);
}

.libraryModal__chapters button {
    padding: 12px 20px;
    color: var(--text-default);
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin: 0;
    text-align: left;
}

.libraryModal__chapters ul {
    display: flex;
    flex-direction: column;
    padding: 0px 20px 0px;
    gap: 4px;
    max-height: 0;
    overflow: auto;
    transition: max-height 200ms ease-out;
}

.libraryModal__chapters ul.is-open {
    max-height: 500px;
}

.libraryModal__chapters button {
    position: relative;
}

.libraryModal__chapters button:focus-visible {
    outline: none;
    border: 2px solid var(--surface-primary-default);
    border-radius: 6px;
}

.libraryModal__chapters button::after {
    position: absolute;
    right: 30px;
    content: "";
    width: 26px;
    height: 26px;
    background-image: url("/image/r1/library/icon_chevron_down.png");
    background-size: 26px auto;
    background-repeat: no-repeat;
    margin-left: 8px;
    transition: transform 200ms ease-out;
}

.libraryModal__chapters button.is-open::after {
    background-image: url("/image/r1/library/icon_chevron_up.png");
    background-size: 26px auto;
    background-repeat: no-repeat;
}

.libraryModal__chapters ul li {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    color: var(--text-default);
}

.libraryModal__chapters ul li:last-child {
    padding-bottom: 16px;
}

.libraryModal__chapters ul li a{
    font-size: var(--font-size-sm);
    color: var(--text-link);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 5%;
    /* 0.8px */
    text-underline-offset: 25%;
    /* 4px */
    min-width: 40px;
    flex-shrink: 0;
    white-space: nowrap;
}
.libraryModal__chapters ul li span {
    flex-shrink: 1;
    min-width: 0;
}

/* 概要説明文 */
.libraryModal__description {
    margin-top: 32px;
    margin-bottom: 32px;
    font-size: var(--font-size-md);
    color: var(--text-default);
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

/* 発信者 */
.libraryModal__creator h2{
    font-size: var(--font-size-md);
    color: var(--text-default);
    font-weight: var(--weight-bold);
    line-height: 1.8;
    margin-bottom: 4px;
}

.libraryModal__creator p{
    font-size: var(--font-size-md);
    color: var(--text-subtler);
    font-weight: var(--weight-regular);
    line-height: 1.6;
}

/* 関連リンク */
.libraryModal__relatedLink{
    margin-top: 32px;
}

.libraryModal__relatedLink ul li:not(:first-child){
    margin-top: 4px;
}

/* 関連動画 */
.libraryModal__relatedVideo{
    margin-top: 32px;
}

h2.libraryModal__heading-2{
    font-size: var(--font-size-md);
    color: var(--text-default);
    font-weight: var(--weight-bold);
    line-height: 1.8;
    margin-bottom: 4px;
}

/* 関連動画 */
.libraryModal__relatedVideoContainer {
    display: grid;
    gap: 48px 24px;
    margin-top: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    @media (min-width: calc(4 * 260px + 3 * 32px + 2 * 40px)) {
        grid-template-columns: repeat(3, 1fr);
    }
}

.libraryModal__relatedVideoItem {
    background-color: var(--surface-container);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 615px;
    padding:0;
    position: relative;
    border-radius: 15px;
    border: none;
    cursor: pointer;
}

.libraryModal__relatedVideoItem:focus-visible {
    outline: none;
    border: 3px solid var(--surface-primary-default);
}

.libraryModal__relatedVideoItem:hover {
    text-decoration: none;
}

.libraryModal__relatedVideoItemThumbnail {
    width: 100%;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 0 4px 0 rgba(4, 48, 93, 0.20), 0 2px 15px 0 rgba(4, 48, 93, 0.30);
}

.libraryModal__relatedVideoItemThumbnailImage {
    transition: transform 0.2s ease-out;
    overflow: hidden;
    object-fit: cover;
    border-radius: 6px;
}

.libraryModal__relatedVideoItemThumbnailImage img {
    border-radius: 6px;
    transition: transform 0.2s ease-out;
}

/* ホバー時のズーム効果 */
.libraryModal__relatedVideoItem:hover .libraryModal__relatedVideoItemThumbnailImage img {
    transform: scale(1.1);
}

.libraryModal__relatedVideoItemThumbnailDuration {
    position: absolute;
    bottom: 6.5px;
    left: 6px;
    color: var(--neutral-100);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    padding: 0px 6px 2px;
    background-color: var(--surface-time);
    border-radius: 4px;
    max-height: 20px;
}

.libraryModal__relatedVideoItemContent {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.libraryModal__relatedVideoItemContentDate {
    color: var(--text-subtler);
    font-size: var(--font-size-xs);
}

.libraryModal__relatedVideoItemContentDateWrapper {
    display: flex;
    align-items: center;
    margin: 16px 8px 0px 8px;
}

.libraryModal__relatedVideoItemContentNew {
    display: flex;
    padding: 1px 3px;
    justify-content: center;
    align-items: center;
    background-color: #0072CE;
    color: var(--neutral-100);
    font-size: var(--font-size-tiny);
    font-weight: var(--weight-medium);
    line-width: fit-content;
    margin-left: 8px;
}

.libraryModal__relatedVideoItemContentTitle {
    margin: 0px 8px;
}

.libraryModal__relatedVideoItemContentTitle h2 {
    color: var(--text-default);
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}

.libraryModal__relatedVideoItem:hover .libraryModal__relatedVideoItemContentTitle h2 {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 5%;
    text-underline-offset: 25%;
}

.libraryModal__relatedVideoItem:focus .libraryModal__relatedVideoItemContentTitle h2 {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 5%;
    text-underline-offset: 25%;
}

.libraryModal__relatedVideoItemContentTags {
    margin: 16px 5px 0px 5px;
    display: flex;
    flex-wrap: wrap;
}

.libraryModal__relatedVideoItemContentTags .libraryModal__relatedVideoItemContentTag {
    display: flex;
    padding: 1px 8px 3px 8px;
    margin: 3px;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    width: fit-content;
    background: var(--primary-blue-alpha10);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    line-height: 1.6;
    color: var(--text-accent);
}


/* 詳細モーダル > エラー */
.libraryModal__error {
    color: var(--text-default);
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    text-align: center;
    margin-top: 32px;
}

/* 詳細モーダル > 読み込み中 */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.modal-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--neutral-40-alpha10);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-loading p {
    color: var(--text-default);
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}




