@charset "UTF-8";
/*
 * マニュアル動画（一覧・詳細・404）の見た目（2026-11-17）
 * - スマホ（〜759px）を基本に、760px 以上で PC の幅と余白に
 * - 文字は大きめ（本文 17〜18px）・押せる所は高さ 44px 以上
 * - 書体は端末の物（Web フォントは読まない）
 */
:root {
    --mv-red: #cc1620;
    --mv-red-dark: #a3111a;
    --mv-red-soft: #fdeeee;
    --mv-red-line: #f3c5c7;
    --mv-text: #1f2328;
    --mv-muted: #5b636b;
    --mv-line: #e3e6ea;
    --mv-panel: #f7f8fa;
    --mv-bg: #ffffff;
    --mv-gray-thumb: #d5d9de;
    --mv-radius: 12px;
    --mv-header-h: 44px;
    /* 上に止まった動画の高さの上限（画面の高さに対する割合）。目次が押せる場所を残す */
    --mv-stage-max-h: 50vh;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.mv-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mv-bg);
    color: var(--mv-text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.mv-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* ---------- ヘッダー・足もと ---------- */
.mv-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--mv-red);
    color: #fff;
    padding-top: env(safe-area-inset-top);
}
.mv-header__in {
    display: flex;
    align-items: center;
    max-width: 1100px;
    min-height: var(--mv-header-h);
    margin: 0 auto;
    padding: 0 16px;
}
.mv-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
}
.mv-brand__icon { flex: none; width: 22px; height: 22px; }
.mv-brand__name { font-size: 18px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }

.mv-main { flex: 1 0 auto; }

.mv-footer {
    margin-top: 48px;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--mv-line);
    color: var(--mv-muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- 共通の幅 ---------- */
.mv-wrap { margin: 0 auto; padding: 20px 16px 0; }
.mv-wrap--list { max-width: 1100px; }
.mv-wrap--detail { max-width: 880px; }

/* ---------- ボタン ---------- */
.mv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    min-width: 48px;
    padding: 8px 18px;
    border: 2px solid var(--mv-line);
    border-radius: 10px;
    background: #fff;
    color: var(--mv-text);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s, border-color .15s, color .15s;
}
.mv-btn:hover { border-color: #c4c9cf; background: var(--mv-panel); }
.mv-btn--primary { border-color: var(--mv-red); background: var(--mv-red); color: #fff; }
.mv-btn--primary:hover { border-color: var(--mv-red-dark); background: var(--mv-red-dark); }
.mv-btn--wide { width: 100%; max-width: 360px; }

/* ---------- 長さ ---------- */
.mv-dur {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mv-muted);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.mv-dur__icon { flex: none; }

/* ---------- 一覧 ---------- */
.mv-list-title { margin: 4px 0 16px; font-size: 22px; line-height: 1.4; }
.mv-list-title__count { margin-left: 2px; color: var(--mv-muted); font-size: 17px; font-weight: 600; }
.mv-empty { margin: 32px 0; padding: 32px 16px; border-radius: var(--mv-radius); background: var(--mv-panel); color: var(--mv-muted); text-align: center; }

.mv-list { margin: 0; padding: 0; list-style: none; }
.mv-list__item + .mv-list__item { border-top: 1px solid var(--mv-line); }

.mv-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(204, 22, 32, .08);
}
.mv-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.mv-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.mv-thumb {
    position: relative;
    flex: none;
    width: 42%;
    max-width: 220px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #2b2b2b;
}
.mv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-thumb--none { background: var(--mv-gray-thumb); }
.mv-thumb__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    transition: background-color .15s, transform .15s;
}
.mv-thumb__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -5px;
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
}
.mv-thumb--none .mv-thumb__play { background: rgba(255, 255, 255, .9); }
.mv-thumb--none .mv-thumb__play::after { border-left-color: #7a828a; }

/* ---------- 詳細 ---------- */
/* 動画の台：下へスクロールしてヘッダーに届いたら、動画だけ画面の上に止まる（目次を見ながら押せるように）。
   白い地で、下を流れる目次が動画の角や横から見えないようにする */
.mv-stage {
    position: sticky;
    top: calc(var(--mv-header-h) + env(safe-area-inset-top));
    z-index: 5;
    padding-bottom: 10px;
    background: var(--mv-bg);
}
.mv-stage.is-stuck { box-shadow: 0 6px 10px -6px rgba(15, 23, 42, .25); }

.mv-title { margin: 6px 0 6px; font-size: 23px; line-height: 1.45; letter-spacing: .01em; }
.mv-dur--detail { margin: 0 0 4px; font-size: 16px; }

.mv-player {
    position: relative;
    /* 高さが上限を超える画面（PC・スマホを横にしたとき）は、16:9 のまま幅を縮めて真ん中に */
    width: 100%;
    max-width: calc(var(--mv-stage-max-h) * 16 / 9);
    margin: 0 auto;
    scroll-margin-top: calc(var(--mv-header-h) + 8px);
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}
@supports (height: 1svh) {
    :root { --mv-stage-max-h: 50svh; }
}
.mv-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #2b2b2b; }

.mv-start-note {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-left: 4px solid var(--mv-red);
    border-radius: 6px;
    background: var(--mv-red-soft);
    font-size: 16px;
}

.mv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 0; }
.mv-resume { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; }
.mv-resume[hidden] { display: none; }
.mv-resume .mv-btn { padding-left: 12px; padding-right: 12px; }

.mv-speed { display: flex; align-items: center; gap: 8px; }
.mv-speed__label { margin-right: 2px; color: var(--mv-muted); font-size: 16px; font-weight: 700; }
.mv-btn--speed { min-width: 64px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.mv-btn--speed[aria-pressed="true"] { border-color: var(--mv-text); background: var(--mv-text); color: #fff; }

.mv-tools__msg, .mv-qr__msg { width: 100%; margin: 0; color: var(--mv-red-dark); font-size: 15px; }

/* 見出し（目次） */
.mv-points {
    margin: 24px 0 0;
    padding: 18px 14px 14px;
    border: 1px solid var(--mv-line);
    border-radius: var(--mv-radius);
    background: var(--mv-panel);
}
.mv-points__title {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 5px solid var(--mv-red);
    font-size: 19px;
    line-height: 1.3;
}
.mv-points__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mv-point {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid var(--mv-line);
    border-left: 5px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s, border-color .15s;
}
.mv-point:hover { border-color: #c4c9cf; border-left-color: var(--mv-red-line); }
.mv-point__no {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eceef1;
    font-size: 15px;
    font-weight: 700;
}
.mv-point__time {
    flex: none;
    min-width: 3.2em;
    color: var(--mv-red);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mv-point__text { flex: 1; min-width: 0; line-height: 1.5; }
.mv-point__now {
    display: none;
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--mv-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}
.mv-point.is-current { border-color: var(--mv-red-line); border-left-color: var(--mv-red); background: var(--mv-red-soft); }
.mv-point.is-current .mv-point__no { background: var(--mv-red); color: #fff; }
.mv-point.is-current.is-playing .mv-point__now { display: inline-block; }

/* 説明 */
.mv-desc { margin: 24px 0 0; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }

/* QR */
.mv-qr {
    margin: 28px 0 0;
    padding: 16px;
    border: 1px dashed #c9ced4;
    border-radius: var(--mv-radius);
}
.mv-qr__title { margin: 0 0 4px; font-size: 17px; }
.mv-qr__note { margin: 0 0 12px; color: var(--mv-muted); font-size: 15px; line-height: 1.6; }
.mv-qr__note:last-child { margin-bottom: 0; }

/* 一覧へ */
.mv-back { margin: 24px 0 0; }
.mv-back__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 4px 0;
    color: #0b57d0;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 404 */
.mv-notfound { padding-top: 40px; text-align: center; }
.mv-notfound__text { margin: 12px 0 24px; color: var(--mv-muted); }

/* ---------- スマホを横にして再生中：動画を画面いっぱいに（全画面にできない端末のため） ---------- */
body.mv-fill { overflow: hidden; }
/* 止まる台をやめる（台の重なりの中に入ったままだと、ヘッダーより下に描かれるため） */
body.mv-fill .mv-stage { position: static; padding: 0; box-shadow: none; }
body.mv-fill .mv-player {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: auto;
    max-width: none;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
body.mv-fill .mv-video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: #000; }
.mv-fill-close[hidden] { display: none; }
body.mv-fill .mv-fill-close {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top));
    right: calc(8px + env(safe-area-inset-right));
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
body.mv-fill .mv-fill-close span { font-size: 22px; line-height: 1; }

/* ---------- PC（760px 以上） ---------- */
@media (min-width: 760px) {
    body.mv-body { font-size: 18px; }
    :root { --mv-header-h: 48px; }
    .mv-header__in { padding: 0 32px; }
    .mv-brand__icon { width: 24px; height: 24px; }
    .mv-brand__name { font-size: 19px; }

    .mv-wrap { padding: 40px 32px 0; }

    .mv-list-title { margin-bottom: 24px; font-size: 26px; }
    .mv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
    .mv-list__item + .mv-list__item { border-top: 0; }
    .mv-card {
        flex-direction: column;
        gap: 0;
        height: 100%;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--mv-line);
        border-radius: var(--mv-radius);
        background: #fff;
        transition: box-shadow .2s, transform .2s;
    }
    .mv-card:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, .12); transform: translateY(-2px); }
    .mv-card:hover .mv-thumb__play { background: var(--mv-red); transform: scale(1.08); }
    .mv-card:hover .mv-thumb--none .mv-thumb__play::after { border-left-color: #fff; }
    .mv-thumb { width: 100%; max-width: none; border-radius: 0; }
    .mv-thumb__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
    .mv-thumb__play::after { margin: -11px 0 0 -6px; border-width: 11px 0 11px 18px; }
    .mv-card__body { padding: 14px 16px 18px; gap: 8px; }
    .mv-card__title { -webkit-line-clamp: 2; font-size: 18px; }

    .mv-title { font-size: 28px; }
    .mv-title { margin-top: 10px; }
    .mv-stage { padding-bottom: 14px; }
    .mv-player { border-radius: var(--mv-radius); }
    .mv-tools { gap: 14px 20px; margin-top: 20px; }
    .mv-resume { width: auto; }
    .mv-resume .mv-btn { padding-left: 18px; padding-right: 18px; }
    .mv-points { margin-top: 32px; padding: 24px 24px 20px; }
    .mv-point { padding: 12px 16px; gap: 14px; }
    .mv-desc { margin-top: 32px; }
    .mv-qr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 20px 24px; }
    .mv-qr__title, .mv-qr__note { grid-column: 1; }
    .mv-qr__note { margin-bottom: 0; }
    .mv-btn--qr { grid-column: 2; grid-row: 1 / span 2; }
    .mv-qr__msg { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .mv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
