.video-embed { margin: 32px auto 0; padding: clamp(20px,4vw,32px); border: 1px solid #c8dfe3; border-radius: 16px; background: #fff; color: #173b52; text-align: left; }
.video-embed h2 { font-size: clamp(1.15rem,3vw,1.45rem); line-height: 1.5; margin: 6px 0 14px; }
.video-embed-item + .video-embed-item { margin-top: 24px; }
.video-embed-player, .video-embed-frame { position: relative; display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; overflow: hidden; background: #0f2633; }
.video-embed-player img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-embed-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(204, 0, 0, .92); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.video-embed-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-embed-player:hover .video-embed-play, .video-embed-player:focus-visible .video-embed-play { background: #e00000; }
.video-embed-player:focus-visible { outline: 3px solid #1f7a8c; outline-offset: 3px; }
.video-embed-caption { margin: 10px 0 0; font-weight: 700; line-height: 1.6; }
.video-embed-note { margin: 12px 0 0; font-size: .9rem; color: #476574; line-height: 1.7; }
.video-embed-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* YouTube への入口（scripts/build-videos.cjs）：トップの「動画で学ぶ」と動画一覧ページ */
.video-channel-button, .information-page article a.video-channel-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 10px; background: #cc0000; color: #fff; font-weight: 800; text-decoration: none; }
.video-channel-button:hover, .information-page article a.video-channel-button:hover { background: #a80000; }
.video-channel-button:focus-visible, .video-home-card:focus-visible, .video-home-links a:focus-visible, .video-library-actions a:focus-visible { outline: 3px solid #c58220; outline-offset: 3px; }
.video-home { margin: 0 0 44px; }
.video-home-head { margin-bottom: 14px; }
.video-home-head .section-kicker { margin-bottom: 4px; }
.video-home-head h2 { margin: 0; color: #12364b; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.video-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.video-home-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 14px; border: 1px solid #c8dfe3; border-radius: 14px; background: #fff; color: #173b52; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.video-home-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18,54,75,.12); }
.video-home-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0f2633; margin-bottom: 4px; }
.video-home-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-home-thumb .video-embed-play { left: auto; top: auto; right: 8px; bottom: 8px; margin: 0; transform: scale(.7); transform-origin: right bottom; }
.video-home-meta { margin: 0; color: #087c86; font-size: .78rem; font-weight: 800; line-height: 1.5; }
.video-home-title { font-weight: 800; line-height: 1.55; }
.video-home-go { margin-top: auto; padding-top: 4px; color: #087c86; font-size: .88rem; font-weight: 800; }
.video-home-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 16px 0 0; }
.video-home-links a:not(.video-channel-button) { display: inline-flex; align-items: center; min-height: 44px; color: #087c86; font-weight: 800; }
.video-channel-cta { margin: 18px 0 8px; }
.information-page article section.video-library-group { padding: 22px 0; }
.video-library-group h2 { margin: 0 0 14px; }
.video-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px 20px; }
.video-library-item .video-home-meta { margin-top: 10px; }
.video-library-item .video-embed-caption { margin-top: 4px; }
.video-library-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; }
.video-library-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.information-page article .video-library-actions a.video-library-sim { color: #fff; background: #087c86; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.information-page article .video-library-actions a.video-library-sim:hover { background: #075b65; }
.video-library-empty { padding: 18px; border: 1px dashed #c8dfe3; border-radius: 12px; color: #476574; }
@media (max-width: 600px) { .video-home-card:nth-child(n+3) { display: none; } }
