@charset "UTF-8";
/**
 * VT Timeline — フィードUI（inc/vt-timeline-feed.php）
 * 旧テンプレート（html の font-size が 62.5% でないページ）でも崩れないよう px 指定。
 */

.vt-feed {
    --vf-brand: #004096;
    --vf-accent: #0090d9;
    --vf-text: #16202a;
    --vf-sub: #3a4652;
    --vf-muted: #5b6b7c;
    --vf-line: #e3e8ed;
    --vf-soft: #eaf1fb;
    --vf-page: #f5f7fa;
    background: var(--vf-page);
    padding: 44px 0 36px;
    color: var(--vf-text);
    font-family: "Noto Sans JP", sans-serif;
    font-feature-settings: "palt" 1;
    letter-spacing: normal;
}
.vt-feed * { box-sizing: border-box; }
.vt-feed-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* ---- 見出し ---- */
.vt-feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 16px; }
.vt-feed-head-txt { display: flex; flex-direction: column; gap: 2px; }
.vt-feed-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--vf-accent); }
.vt-feed-title { margin: 0; padding: 0; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--vf-text); border: 0; background: none; }
.vt-feed-title::before, .vt-feed-title::after { content: none; }
.vt-feed-lead { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--vf-muted); }
.vt-feed-head-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vt-feed-more { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--vf-brand); text-decoration: none; }
.vt-feed-more:hover { text-decoration: underline; }
.vt-feed-arrow {
    display: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    border: 1px solid #d3dce6; background: #fff; color: var(--vf-brand);
    align-items: center; justify-content: center; padding: 0;
}
.vt-feed-arrow[data-dir="1"] { background: var(--vf-brand); border-color: var(--vf-brand); color: #fff; }

/* ---- ストーリーズ・チップ（横スクロール） ---- */
.vt-feed-stories, .vt-feed-chips, .vt-feed-track {
    display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.vt-feed-stories::-webkit-scrollbar, .vt-feed-chips::-webkit-scrollbar, .vt-feed-track::-webkit-scrollbar { display: none; }

.vt-feed-stories { gap: 14px; padding: 0 16px; }
.vt-feed-story { flex: 0 0 auto; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--vf-text); }
.vt-feed-story-ring {
    width: 62px; height: 62px; border-radius: 50%; padding: 3px; display: flex; align-items: center; justify-content: center;
    background: #d3dce6;
}
.vt-feed-story.is-new .vt-feed-story-ring { background: linear-gradient(135deg, var(--vf-accent), var(--vf-brand)); }
.vt-feed-story-ring img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vf-page); background: #fff; display: block; }
.vt-feed-story-name { font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.vt-feed-story-ago { font-size: 10px; font-weight: 700; line-height: 1; color: var(--vf-accent); min-height: 10px; }

.vt-feed-chips { gap: 8px; padding: 0 16px; }
.vt-feed-chip {
    flex: 0 0 auto; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; white-space: nowrap;
    border-radius: 999px; border: 1px solid #d3dce6; background: #fff; color: var(--vf-sub);
    font-size: 12px; font-weight: 700; text-decoration: none;
}
.vt-feed-chip:hover { border-color: var(--vf-brand); color: var(--vf-brand); }
.vt-feed-chip.is-current { background: var(--vf-brand); border-color: var(--vf-brand); color: #fff; }
.vt-feed-chip--more { border-style: dashed; }

/* ---- カード ---- */
.vt-feed-track { gap: 12px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; outline: none; }
.vt-feed-card, .vt-feed-end { scroll-snap-align: start; flex: 0 0 auto; }
.vt-feed-card {
    width: 78vw; max-width: 320px; height: auto; min-height: 420px; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--vf-line); border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 32, 56, .06);
    color: var(--vf-text); text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.vt-feed-card:hover { border-color: #c9d3de; box-shadow: 0 6px 18px rgba(16, 32, 56, .08); color: var(--vf-text); }
.vt-feed-card-head { display: flex; align-items: center; gap: 10px; }
.vt-feed-card-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vt-feed-card-who { display: flex; flex-direction: column; min-width: 0; }
.vt-feed-card-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.vt-feed-card-meta { font-size: 11px; color: var(--vf-muted); }
.vt-feed-card-media { position: relative; height: 130px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #dde4ec; display: block; }
.vt-feed-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-feed-card-media--instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.vt-feed-card-play {
    position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700;
}
.vt-feed-card-title {
    font-size: 15px; font-weight: 700; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vt-feed-card-body {
    font-size: 13px; line-height: 1.75; color: var(--vf-sub);
    display: -webkit-box; -webkit-line-clamp: 14; -webkit-box-orient: vertical; overflow: hidden;
}
.vt-feed-card.has-media .vt-feed-card-body { -webkit-line-clamp: 8; }
.vt-feed-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vt-feed-card-topic { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--vf-soft); color: var(--vf-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.vt-feed-card-read { font-size: 12px; font-weight: 700; color: var(--vf-brand); white-space: nowrap; }

.vt-feed-end {
    width: 200px; height: auto; min-height: 420px; padding: 16px; border-radius: 16px; border: 1.5px dashed #b9c6d6;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    text-align: center; text-decoration: none; color: var(--vf-brand);
}
.vt-feed-end-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--vf-brand); display: flex; align-items: center; justify-content: center; }
.vt-feed-end-label { font-size: 14px; font-weight: 700; line-height: 1.6; }

/* ---- 進捗バー ---- */
.vt-feed-progress { margin: 0 16px; height: 3px; border-radius: 2px; background: #dde4ec; overflow: hidden; }
.vt-feed-progress span { display: block; height: 100%; width: 12%; background: var(--vf-brand); border-radius: 2px; transition: width .15s; }

/* ---- PC ---- */
@media screen and (min-width: 900px) {
    .vt-feed { padding: 64px 0 52px; }
    .vt-feed-inner { gap: 22px; padding: 0 24px; }
    .vt-feed-head, .vt-feed-stories, .vt-feed-chips { padding-left: 0; padding-right: 0; }
    .vt-feed-track { padding: 2px 0 6px; scroll-padding-left: 0; }
    .vt-feed-title { font-size: 28px; }
    .vt-feed-arrow { display: inline-flex; }
    .vt-feed-card { width: calc((100% - 24px) / 3); max-width: none; height: auto; min-height: 420px; padding: 20px; }
    .vt-feed-end { height: auto; min-height: 420px; }
    .vt-feed-progress { margin: 0; }
}

/* ==================================================================
 * タイムライン一覧・個別ページ（メインビジュアルを廃止した見出し）
 * ================================================================== */
.vt-tl-page-head { padding: 4px 4px 0; }
.vt-tl-page-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.5; color: #16202a; }
.vt-tl-page-lead { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: #5b6b7c; }

.vt-feed-pagenav {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; min-width: 0; margin: 0; padding: 14px 0;
    background: #fff; border: 1px solid #e3e8ed; border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 32, 56, .06);
}
.vt-feed-pagenav .vt-feed-story-ring img { border-color: #fff; }

.vt-tl-post-title { margin: 12px 0 4px; font-size: 20px; font-weight: 700; line-height: 1.55; color: #16202a; }

/* ==================================================================
 * 一覧用の縦カード・ページ上部ナビ（色変数を共有）
 * ================================================================== */
.vt-feed-pagenav, .vt-list-card, .vt-tl-page-head {
    --vf-brand: #004096; --vf-accent: #0090d9; --vf-text: #16202a; --vf-sub: #3a4652;
    --vf-muted: #5b6b7c; --vf-line: #e3e8ed; --vf-soft: #eaf1fb; --vf-page: #f5f7fa;
    font-family: "Noto Sans JP", sans-serif;
}
.vt-feed-pagenav *, .vt-list-card * { box-sizing: border-box; }
.vt-feed-pagenav .vt-feed-story-ring img,
.vt-feed .vt-feed-story-ring img { width: 56px !important; height: 56px !important; max-width: none; }
.vt-feed-card-avatar { max-width: none; }

/* フィード列の先頭に置くカード。横スクロールの行がはみ出さないよう min-width を 0 に */
.time-line-feed > .vt-feed-pagenav,
.time-line-feed > .vt-list-card { min-width: 0; max-width: 100%; }
.vt-feed-pagenav .vt-feed-stories,
.vt-feed-pagenav .vt-feed-chips { padding: 0 16px; }

.vt-list-card {
    background: #fff; border: 1px solid var(--vf-line); border-radius: 16px; padding: 18px;
    display: flex; flex-direction: column; gap: 10px; color: var(--vf-text);
    box-shadow: 0 1px 2px rgba(16, 32, 56, .06);
}
.vt-list-card .vt-feed-card-avatar { width: 42px; height: 42px; }
.vt-list-card .vt-feed-card-name { font-size: 14px; }
.vt-list-card .vt-feed-card-meta { font-size: 12px; }
.vt-list-card .vt-feed-card-meta a { color: var(--vf-muted); text-decoration: none; }
.vt-list-card .vt-feed-card-meta a:hover { color: var(--vf-brand); text-decoration: underline; }
.vt-list-card-title { margin: 2px 0 0; padding: 0; border: 0; background: none; font-size: 17px; font-weight: 700; line-height: 1.6; }
.vt-list-card-title::before, .vt-list-card-title::after { content: none; }
.vt-list-card-title a { color: var(--vf-text); text-decoration: none; }
.vt-list-card-title a:hover { color: var(--vf-brand); }
.vt-list-card-body { position: relative; }
.vt-list-card-text {
    font-size: 14px; line-height: 1.85; color: var(--vf-sub);
    max-height: calc(1.85em * 7); overflow: hidden; position: relative;
}
.vt-list-card-text p { margin: 0 0 .8em; }
.vt-list-card-text p:last-child { margin-bottom: 0; }
.vt-list-card-body:not(.is-open):not(.is-short) .vt-list-card-text::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em;
    background: linear-gradient(rgba(255,255,255,0), #fff);
}
.vt-list-card-body.is-open .vt-list-card-text,
.vt-list-card-body.is-short .vt-list-card-text { max-height: none; }
.vt-list-card-toggle {
    margin-top: 6px; padding: 6px 0; min-height: 36px; border: 0; background: none; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 700; color: var(--vf-brand);
}
.vt-list-card-toggle:hover { text-decoration: underline; }
.vt-list-card-media:empty { display: none; }
/* 埋め込み（Instagram / YouTube）は高さを JS が設定するので、枠で高さや overflow を制限しない */
.vt-list-card-media { min-width: 0; max-width: 100%; }
.vt-list-card-media .time-line-instagram { margin-top: 0; }
.vt-list-card { min-width: 0; overflow-wrap: anywhere; }
.vt-list-card-text img, .vt-list-card-text iframe { max-width: 100%; height: auto; }
.vt-list-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 2px; padding-top: 10px; border-top: 1px solid #eef2f6;
}
.vt-list-card-foot .vt-feed-card-topic { text-decoration: none; }
.vt-list-card-foot .vt-feed-card-topic:hover { background: var(--vf-brand); color: #fff; }
.vt-list-card-actions { display: inline-flex; align-items: center; gap: 12px; }
.vt-list-card-actions form { margin: 0; }
.vt-list-card-actions .vt-feed-card-read { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.vt-list-card-del { border: 0; background: none; padding: 0; font-size: 12px; color: #b42318; cursor: pointer; }
@media screen and (min-width: 900px) {
    .vt-list-card { padding: 22px 24px; }
    .vt-list-card-title { font-size: 19px; }
}

/* 講師アバター（ロゴSVGは切り抜かずに収める） */
.vt-feed-card-avatar, .vt-feed-story-ring img { background: #fff; object-fit: cover; }
.vt-feed-card-avatar[src$=".svg"], .vt-feed-story-ring img[src$=".svg"],
img.avatar[src$=".svg"] { object-fit: contain; padding: 5px; box-sizing: border-box; background: #fff; }

/* 横スクロール領域の中の絶対配置要素（読み上げ用テキスト等）がページ幅を広げないようにする */
.vt-feed-stories, .vt-feed-chips, .vt-feed-track { position: relative; }
.vt-feed .screen-reader-text, .vt-feed-pagenav .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
