@charset "utf-8";
/* 動画紹介（/movies/ の一覧と /movies/<日付>/ の記事）共通スタイル
 * 記事側 .mv-  … docs/tools/templates/movie_article.html が出力する DOM
 * 一覧側 .mvl- … assets/js/movies.js が生成する DOM
 * 既存スタイルとは衝突させない（gallery.css の .gl- と同じ方針）。
 */

/* ============================================================
 * 記事ページ
 * ============================================================ */

.mv-article { margin: 0 0 60px; }

/* ---- ヒーロー（サムネを敷いてタイトルを重ねる）---- */
.mv-hero { position: relative; background-size: cover; background-position: center;
  min-height: 42vw; max-height: 520px; display: flex; align-items: flex-end; }
.mv-hero__overlay { position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 30%, rgba(0,0,0,.82)); }
.mv-hero__content { position: relative; z-index: 1; width: 100%;
  max-width: 980px; margin: 0 auto; padding: 40px 24px 34px; color: #fff; }
.mv-hero__meta { font-size: 1.5rem; letter-spacing: .06em; margin: 0 0 8px;
  color: #dfe4ea; line-height: 1.8; text-shadow: 1px 1px 3px rgba(0,0,0,.7); }
.mv-hero__title { font-size: clamp(2.0rem, 3.4vw, 3.4rem); font-weight: 700;
  line-height: 1.45; margin: 0; text-shadow: 2px 2px 6px rgba(0,0,0,.75); }
/* サブタイトル（任意）。タイトルの受けになる一言を置く。 */
.mv-hero__sub { font-size: clamp(1.6rem, 2.2vw, 2.2rem); font-weight: 700;
  line-height: 1.5; margin: 8px 0 0; color: #fff; letter-spacing: .02em;
  text-shadow: 2px 2px 5px rgba(0,0,0,.75); }
.mv-hero__sub::before { content: ""; display: inline-block; width: 26px; height: 2px;
  background: var(--color_red); vertical-align: middle; margin-right: 12px; }

/* フック。動画の要約ではなく「この動画を見る意味」を1〜2文で。 */
.mv-hero__hook { font-size: clamp(1.4rem, 1.7vw, 1.7rem); line-height: 1.9;
  margin: 10px 0 0; color: #e8ecf1; text-shadow: 1px 1px 4px rgba(0,0,0,.75); }

@media only screen and (max-width: 750px) {
  .mv-hero { min-height: 64vw; }
  .mv-hero__content { padding: 30px 18px 24px; }
}

/* ---- プレイヤー（16:9 を保つ）----
   記事の下（分析を読んだ後）に置く。ページの価値は「動画を見た後に知りたくなること」
   なので、冒頭に置くと読まれる前に離脱してしまう。
   HERO からプレイヤーへ飛ばす導線は置かない。最後まで読ませる。 */
.mv-player { max-width: 980px; margin: 46px auto 0; padding: 0; scroll-margin-top: 20px; }
.mv-player__frame { position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,26,38,.22); }
.mv-player__frame iframe { position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block; }
.mv-player__note { font-size: 1.4rem; color: #8b939c; text-align: right;
  margin: 10px 0 0; line-height: 1.8; }
.mv-player__note a { color: #2b3850; }

/* 字幕の案内（翻訳版のみ）。YouTube の自動翻訳字幕はサイト側から指定できないので、
   プレーヤーの歯車から選んでもらう。詳しい経緯は assets/js/movies.js の ③。 */
.mv-player__cc { font-size: 1.4rem; line-height: 1.8; margin: 10px 0 0;
  padding: 10px 14px; color: #4a5464; background: #f3f6f7;
  border-left: 3px solid var(--color_red); border-radius: 0 6px 6px 0; }

@media only screen and (max-width: 750px) {
  .mv-player { padding: 0 12px; margin-top: 22px; }
  .mv-player__frame { border-radius: 6px; }
}

/* ---- 本文 ---- */
.mv-body { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.mv-lead { font-size: 1.8rem; line-height: 2.1; color: #2b3850;
  margin: 44px 0 0; padding-bottom: 34px; border-bottom: 1px solid #e2e9e9; }
.mv-scene { margin: 46px 0 0; }
.mv-scene h3 { font-size: 2.2rem; font-weight: 700; color: #2b3850;
  line-height: 1.5; margin: 0 0 18px; padding-left: 14px;
  border-left: 4px solid var(--color_red); }
/* 英字のセクション名。既存の .main_title h2 と同じ attr() 方式で出す。 */
.mv-scene h3[data-en]::before { content: attr(data-en); display: block;
  font-size: 1.2rem; font-weight: 600; letter-spacing: .16em; line-height: 1.4;
  color: #8b939c; margin-bottom: 3px; }
.mv-scene p { margin: 0 0 18px; }
.mv-scene p:last-child { margin-bottom: 0; }
/* 人名。本文中で誰の話をしているかを追えるように、色と太さで拾えるようにする。
   囲むのは「◯◯氏」の形のときだけ。チャンネル名（赤侍ちゃんねる）や
   カラー名（赤侍メテオグローレッド）は人名ではないので囲まない。 */
.mv-person { color: var(--color_red); font-weight: 700; }

.mv-points { list-style: none; margin: 0; padding: 0; }
.mv-points li { position: relative; padding: 0 0 0 26px; margin: 0 0 10px;
  line-height: 2.0; }
.mv-points li::before { content: ""; position: absolute; left: 4px; top: .85em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--color_red); }

/* ---- 03 KEY MOMENTS ---- */
/* クリックで iframe を該当秒から貼り直す。JS 無効でも時刻とラベルは読める。 */
.mv-moments { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mv-moment { appearance: none; -webkit-appearance: none; cursor: pointer; font: inherit;
  display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;
  padding: 11px 15px; font-size: 1.6rem; color: #2b3850;
  background: #fff; border: 1px solid #e2e9e9; border-radius: 8px;
  transition: border-color .16s ease, background .16s ease; }
.mv-moment:hover { border-color: #2b3850; background: #f7f9fa; }
.mv-moment__t { flex: 0 0 auto; font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--color_red); letter-spacing: .04em; }
.mv-moments__empty { color: #8b939c; font-size: 1.5rem; }

/* ---- 04 ANALYSIS（このページの中心） ---- */
.mv-analysis { border: 1px solid #e2e9e9; border-radius: 12px;
  padding: 6px 22px; background: #fbfcfc; }
.mv-analysis + .mv-analysis { margin-top: 16px; }
.mv-analysis__row { display: grid; grid-template-columns: 7em 1fr; gap: 0 20px;
  padding: 18px 0; border-bottom: 1px dashed #dfe6e6; }
.mv-analysis__row:last-child { border-bottom: 0; }
.mv-analysis__label { font-size: 1.5rem; font-weight: 700; color: #2b3850; line-height: 1.7; }
.mv-analysis__label::after { content: attr(data-en); display: block;
  font-size: 1.1rem; font-weight: 600; letter-spacing: .1em; color: #8b939c; }
.mv-analysis__row p { margin: 0; }

@media only screen and (max-width: 750px) {
  .mv-analysis { padding: 4px 16px; }
  .mv-analysis__row { grid-template-columns: 1fr; gap: 6px; padding: 15px 0; }
}

/* ---- 05 FIELD DATA ---- */
/* 全記事で同じキーを同じ並びで出す。値は rake youtube:data が書く。 */
.mv-fd { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px; margin: 0; background: #e2e9e9; border: 1px solid #e2e9e9; border-radius: 10px;
  overflow: hidden; }
.mv-fd__cell { background: #fff; padding: 13px 16px; }
.mv-fd dt { font-size: 1.3rem; letter-spacing: .04em; color: #8b939c; line-height: 1.6; }
.mv-fd dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 700; color: #2b3850; line-height: 1.5; }
.mv-fd dd .mv-fd__unit { font-size: 1.3rem; font-weight: 500; color: #8b939c; margin-left: 2px; }
.mv-fd__empty { background: #fff; padding: 14px 16px; color: #8b939c; font-size: 1.5rem; }

/* ---- 07 PRODUCT INSIGHT ---- */
.mv-pi { border-left: 3px solid #e2e9e9; padding: 0 0 0 20px; }
.mv-pi + .mv-pi { margin-top: 24px; }
.mv-pi__name { font-size: 1.9rem; font-weight: 700; margin: 0 0 12px; line-height: 1.5; }
.mv-pi__name a { color: #2b3850; }
.mv-pi__row { display: grid; grid-template-columns: 8em 1fr; gap: 0 18px; margin: 0 0 12px; }
.mv-pi__label { font-size: 1.4rem; font-weight: 700; color: #2b3850; line-height: 1.9; }
.mv-pi__label::after { content: attr(data-en); display: block;
  font-size: 1.05rem; font-weight: 600; letter-spacing: .08em; color: #8b939c; line-height: 1.4; }
.mv-pi__row p { margin: 0; }

@media only screen and (max-width: 750px) {
  .mv-pi { padding-left: 14px; }
  .mv-pi__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- 08 FACTORY NOTE ---- */
.mv-factory { background: #2b3850; color: #fff; border-radius: 12px; padding: 28px 26px; }
.mv-factory h3 { color: #fff; border-left-color: var(--color_red); }
.mv-factory h3[data-en]::before { color: #98a4b8; }
.mv-factory p { color: #dfe4ea; }
.mv-factory__tag { font-size: 1.5rem; font-weight: 700; letter-spacing: .18em;
  color: #fff; margin: 0; }

/* ---- 09 RELATED KNOWLEDGE ---- */
.mv-related__manual { list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px; }
.mv-related__manual:empty { display: none; }
.mv-related__manual a { display: block; padding: 8px 16px; font-size: 1.5rem;
  text-decoration: none; color: #2b3850; background: #fff;
  border: 1px solid #d6dde4; border-radius: 999px; }
.mv-related__manual a:hover { border-color: #2b3850; }

/* ---- 動画情報 ---- */
.mv-meta__list { display: grid; grid-template-columns: 8em 1fr; gap: 6px 16px;
  margin: 0; font-size: 1.5rem; line-height: 2.0; }
.mv-meta__list dt { color: #8b939c; letter-spacing: .04em; }
.mv-meta__list dd { margin: 0; color: #2b3850; word-break: break-all; }
.mv-meta__list a { color: #2b3850; }

@media only screen and (max-width: 750px) {
  .mv-body { padding: 0 18px; }
  .mv-lead { font-size: 1.6rem; margin-top: 30px; }
  .mv-scene h3 { font-size: 1.9rem; }
  .mv-meta__list { grid-template-columns: 1fr; gap: 0 0; }
  .mv-meta__list dd { margin: 0 0 12px; }
}

/* ---- 導線 ---- */
.mv-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin: 50px 0 0; }
.mv-cta__btn { display: block; padding: 13px 40px; font-size: 1.6rem;
  letter-spacing: .06em; text-align: center; text-decoration: none;
  background: #fff; color: #2b3850; border: 1px solid #2b3850; border-radius: 999px;
  transition: background .16s ease, color .16s ease; }
.mv-cta__btn:hover { background: #2b3850; color: #fff; }
.mv-cta__btn--shop { background: var(--color_red); color: #fff; border-color: var(--color_red); }
.mv-cta__btn--shop:hover { background: #b81a14; border-color: #b81a14; color: #fff; }
.mv-back { text-align: center; margin: 34px 0 0; font-size: 1.6rem; }
.mv-back a { color: #8b939c; text-decoration: none; }
.mv-back a:hover { color: #2b3850; }

/* ============================================================
 * 一覧（/movies/ の記事カード、トップページの最新n件）
 * ============================================================ */

.mvl-heading { font-size: 2.0rem; font-weight: 700; color: #2b3850; line-height: 1.5;
  margin: 0 0 20px; padding-left: 14px; border-left: 4px solid var(--color_red); }

.mvl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mvl-card { margin: 0; }
.mvl-card__link { display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid #e2e9e9; border-radius: 12px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mvl-card__link:hover { transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(43,56,80,.16); border-color: #2b3850; }
.mvl-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9;
  background: #0d1117; overflow: hidden; }
.mvl-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 再生マーク。画像ではなく CSS の三角形なので追加ファイルが要らない。 */
.mvl-card__play { position: absolute; left: 50%; top: 50%; width: 54px; height: 38px;
  margin: -19px 0 0 -27px; border-radius: 8px; background: rgba(224,33,26,.9);
  transition: background .16s ease, transform .16s ease; }
.mvl-card__play::after { content: ""; position: absolute; left: 21px; top: 11px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff; }
.mvl-card__link:hover .mvl-card__play { background: #E0211A; transform: scale(1.08); }

.mvl-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.mvl-card__meta { font-size: 1.4rem; color: #8b939c; letter-spacing: .04em; line-height: 1.7; margin: 0; }
.mvl-card__title { font-size: 1.8rem; font-weight: 700; color: #2b3850; line-height: 1.55; margin: 0; }
.mvl-card__lead { font-size: 1.5rem; color: #4a5464; line-height: 1.9; margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.mvl-empty { text-align: center; color: #8b939c; font-size: 1.6rem; margin: 30px 0; }
.mvl-more { display: block; width: max-content; margin: 26px auto 0; padding: 12px 46px;
  font-size: 1.7rem; letter-spacing: .06em; text-align: center; text-decoration: none;
  background: #fff; color: #2b3850; border: 1px solid #2b3850; border-radius: 999px;
  transition: background .16s ease, color .16s ease; }
.mvl-more:hover { background: #2b3850; color: #fff; }
