/* YouTube動画カード（トップ #section-videos とサブページ .nl-vid / .ft-vid で共通） 2026-10-31 */

/* ---- トップ：メイン動画＋横スクロール ---- */
.vidv2__main,
.vidv2__card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--v2-border);
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.vidv2__main { margin-top: 20px; border-radius: 14px; }
.vidv2__row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 14px -8px 0;
    padding: 0 8px 4px;
}
.vidv2__card { flex: 0 0 62%; scroll-snap-align: start; border-radius: 12px; }
.vidv2__main .vidc__cap { font-size: 15px; padding: 11px 12px; }
.vidv2__main .vidc__play { width: 44px; height: 44px; right: 10px; bottom: 10px; }
.vidv2__main .vidc__play::before { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
.vidv2__arrow { display: none; }
@media (min-width: 768px) {
    /* PCも横スライド（本数が増えても高さを固定）。2枚＋次の端を見せる 2026-10-31 */
    .vidv2__slider { position: relative; }
    .vidv2__row { gap: 12px; margin: 14px 0 0; padding: 0 0 4px; scrollbar-width: none; }
    .vidv2__row::-webkit-scrollbar { display: none; }
    .vidv2__card { flex-basis: 44%; }
    .vidv2__row .vidc__cap { font-size: 14px; }
    .vidv2__arrow {
        position: absolute; top: 38%; z-index: 2;
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; margin-top: -20px; padding: 0;
        border: 1px solid rgba(139, 94, 104, 0.28); border-radius: 999px;
        background: rgba(127, 89, 99, 0.94); color: #fff;
        font-size: 26px; line-height: 1; cursor: pointer;
    }
    .vidv2__arrow:hover { background: #a8364c; }
    .vidv2__arrow:disabled { opacity: 0; pointer-events: none; }
    .vidv2__arrow--prev { left: -14px; }
    .vidv2__arrow--next { right: -14px; }
}

/* ---- 共通パーツ ---- */
.vidc {
    display: block;
    overflow: hidden;
    border: 1px solid #eadfe3;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.vidc__thumb { position: relative; display: block; }
.vidc__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vidc__play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(28, 28, 26, .72);
}
.vidc__play::before {
    content: "";
    margin-left: 3px;
    border-left: 11px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
.vidc__cap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    padding: 9px 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}
.vidc__time { font-size: 12px; font-weight: 500; color: #6b6b64; white-space: nowrap; }
.vidc:focus-visible, .vidv2__main:focus-visible, .vidv2__card:focus-visible { outline: 3px solid #a8364c; outline-offset: 3px; }

/* ---- サブページ ---- */
.nl-vid {
    --ink: #1c1c1a; --muted: #6b6b64; --border: #e5e5e2;
    --pink: #c4445b; --pink-fill: #c4445b; --pink-ink: #a8364c; --tint: #faeaeb;
    padding: 56px 24px 8px;
    text-align: center;
}
.vidc-grid { display: grid; gap: 12px; max-width: 720px; margin: 20px auto 0; }
.vidc-grid--2 { grid-template-columns: 1fr 1fr; }
.vidc-grid--2 .vidc__cap { font-size: 13px; padding: 8px 9px; }
.vidc-grid--1 { max-width: 420px; }
.nl-vid__more {
    display: inline-block;
    margin-top: 16px;
    color: #a8364c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ft-vid { margin-top: 20px; }
.ft-vid__label { margin: 0; color: #a8364c; font-size: 13px; font-weight: 700; }
.ft-vid .vidc-grid { max-width: 720px; margin: 8px 0 0; }
.ft-vid .vidc-grid--1 { max-width: 420px; margin-left: 0; }
.ft-vid .vidv2__slider { max-width: 720px; }
.ft-vid .vidv2__row { margin: 8px 0 0; padding: 0 0 4px; }
.ft-vid .vidv2__card { border: 1px solid #eadfe3; } /* features には --v2-border が無いので .vidc と同じ枠を直接指定 2026-11-02 */
