/* ==========================================================================
   works.css — 作品ページを厚くするための部品（style.css の後に読む）
   概要の表・これまでの歩み・映像カード・写真・つながった仕事・クレジット
   色は style.css の変数（--text / --dim / --faint / --line / --bg-2 / --accent）だけを使う
   ========================================================================== */

/* ---- 概要の表 ---- */
.wd-facts { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line-2); }
.wd-facts dt, .wd-facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.9; }
.wd-facts dt { font-family: var(--en); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding-top: 17px; }
.wd-facts dd { color: var(--text); }
.wd-facts dd small { display: block; font-size: 12px; color: var(--faint); }

/* ---- 担当（チップ） ---- */
.wd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wd-chips span { font-size: 11.5px; letter-spacing: 0.08em; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 14px; }

/* ---- 見出し ---- */
.wd-h { margin-top: 84px; font-family: var(--en); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.wd-h + h2, .wd-h2 { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: 0.08em; line-height: 1.7; color: var(--text); }

/* ---- これまでの歩み ---- */
.wd-timeline { list-style: none; margin-top: 34px; border-left: 1px solid var(--line-2); }
.wd-timeline > li { position: relative; padding: 0 0 56px 30px; }
.wd-timeline > li:last-child { padding-bottom: 8px; }
.wd-timeline > li::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.wd-when { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--faint); font-variant-numeric: tabular-nums; }
.wd-what { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: 0.06em; line-height: 1.7; color: var(--text); }
.wd-role { margin-top: 6px; font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.wd-timeline p { margin-top: 12px; font-size: 15px; line-height: 2.15; color: var(--dim); }
.wd-timeline ul { margin-top: 10px; padding-left: 1.2em; }
.wd-timeline ul li { font-size: 14px; line-height: 2; color: var(--dim); }

/* ---- 映像カード（クリックで再生：main.js の data-embed） ---- */
.wd-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.wd-media.one { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.wd-video { display: block; position: relative; color: inherit; }
.wd-video .th { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.wd-video .th img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; }
.wd-video:hover .th img { transform: scale(1.03); }
.wd-video .th::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(14, 14, 12, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") center / 26px no-repeat; border: 1px solid rgba(255, 255, 255, 0.6); }
.wd-video.ext .th::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E"); }
.wd-video .cap { display: block; margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--text); }
.wd-video .meta { display: block; margin-top: 2px; font-family: var(--en); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }

/* ---- 写真 ---- */
.wd-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.wd-gallery figure { margin: 0; }
.wd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-2); }
.wd-gallery figure.wide { grid-column: span 2; }
.wd-gallery figure.wide img { aspect-ratio: 8 / 3.05; }
.wd-gallery figcaption { margin-top: 6px; font-size: 11.5px; letter-spacing: 0.06em; color: var(--faint); line-height: 1.7; }

/* ---- 大切にしたこと ---- */
.wd-points { list-style: none; margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.wd-points li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 2; color: var(--dim); }
.wd-points li b { display: block; font-weight: 500; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---- つながった仕事 ---- */
.wd-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; margin-top: 20px; border-top: 1px solid var(--line-2); }
.wd-related a { display: block; padding: 18px 0 20px; border-bottom: 1px solid var(--line); color: inherit; }
.wd-related .k { display: block; font-family: var(--en); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.wd-related .t { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--text); transition: color 0.3s; }
.wd-related .d { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.9; color: var(--dim); }
.wd-related a:hover .t { color: var(--accent); }

/* ---- クレジット・リンク ---- */
.wd-credits { display: grid; grid-template-columns: 11em minmax(0, 1fr); margin-top: 20px; border-top: 1px solid var(--line-2); }
.wd-credits dt, .wd-credits dd { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; }
.wd-credits dt { color: var(--faint); }
.wd-credits dd { color: var(--text); }
.wd-links { list-style: none; margin-top: 18px; }
.wd-links li { border-bottom: 1px solid var(--line); }
.wd-links a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 14px; color: var(--text); }
.wd-links a::after { content: "\2197"; color: var(--faint); transition: transform 0.3s; }
.wd-links a:hover::after { transform: translate(2px, -2px); color: var(--text); }
.wd-note { margin-top: 14px; font-size: 12px; line-height: 1.9; color: var(--faint); }

@media (max-width: 760px) {
  .wd-facts, .wd-credits { grid-template-columns: 1fr; }
  .wd-facts dt, .wd-credits dt { padding-bottom: 0; border-bottom: 0; }
  .wd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-gallery figure.wide { grid-column: span 2; }
  .wd-points { grid-template-columns: 1fr; }
  .wd-timeline > li { padding-left: 22px; }
}

/* ---- ページ内で再生する動画（自前の mp4・押すまで読み込まない） ---- */
.wd-player { margin: 20px 0 0; max-width: 720px; }
.wd-player video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.wd-player figcaption { margin-top: 10px; }
.wd-player .cap { display: block; font-size: 13px; line-height: 1.8; color: var(--text); }
.wd-player .meta { display: block; margin-top: 2px; font-family: var(--en); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.wd-player .meta a { color: var(--dim); border-bottom: 1px solid currentColor; }

/* ---- style.css の「.prose p」（文字15px・行間2.15・上余白1.3em）に負けないように ---- */
.prose p.wd-h { margin-top: 84px; font-family: var(--en); font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.prose p.wd-when { margin-top: 0; font-family: var(--en); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: 0.14em; color: var(--faint); }
.prose p.wd-what { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.7; letter-spacing: 0.06em; color: var(--text); }
.prose p.wd-role { margin-top: 6px; font-size: 12px; line-height: 1.6; letter-spacing: 0.1em; color: var(--accent); }
.prose p.wd-note { margin-top: 14px; font-size: 12px; line-height: 1.9; color: var(--faint); }
.prose .wd-timeline p { margin-top: 12px; }
.prose .wd-timeline ul li { font-size: 14px; line-height: 2; color: var(--dim); }
.wd-gallery figure.full { grid-column: 1 / -1; }
.wd-gallery figure.full img { aspect-ratio: auto; height: auto; }
