/* 制作実績ページ（/works/）専用。軽さ優先で、トップの大きなCSSは読み込まない */
:root { --ink: #0f1222; --sub: #475569; --line: #e3e7ef; --bg: #f6f7fb; --movie: #0369a1; --post: #be123c; --join: #047857; --web: #b45309; --app: #6d28d9;
  --grad: linear-gradient(100deg, #0ea5e9, #8b5cf6 55%, #f43f5e); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wk-body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.ib { display: inline-block; }
.wk-wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.wk-narrow { width: min(860px, 100%); }

/* header */
.wk-header { position: sticky; top: 0; z-index: 10; background: rgba(8, 12, 28, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.wk-header::after { content: ""; display: block; height: 2px; background: var(--grad); }
.wk-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.wk-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 15px/1 "Space Grotesk", sans-serif; letter-spacing: .2em; }
.wk-logo img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.wk-nav { display: flex; align-items: center; gap: 16px; }
.wk-nav a { color: rgba(255,255,255,.88); text-decoration: none; font-size: 14px; font-weight: 700; }
.wk-nav .wk-cta { padding: 8px 14px; border-radius: 999px; background: linear-gradient(100deg, #0ea5e9, #8b5cf6); color: #fff; }
@media (max-width: 480px) { .wk-hide-sp { display: none; } .wk-logo span { display: none; } }

/* common */
.wk-main { padding: 18px 0 56px; }
.wk-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--sub); margin-bottom: 18px; }
.wk-crumbs a { color: var(--sub); }
.wk-eyebrow { margin: 0; font: 700 12px/1 "Space Grotesk", sans-serif; letter-spacing: .3em; color: #6d28d9; }
.wk-h1 { margin: 6px 0 12px; font-size: clamp(26px, 6vw, 40px); line-height: 1.3; font-weight: 700; letter-spacing: .02em; }
.wk-lead { margin: 0 0 22px; font-size: 15px; color: #2a2f45; max-width: 46em; }

/* filters */
.wk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wk-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.wk-filters button span { font: 700 12px/1 "Space Grotesk", sans-serif; color: var(--sub); }
.wk-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.wk-filters button[aria-pressed="true"] span { color: rgba(255,255,255,.75); }

/* grid */
.wk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wk-card[hidden] { display: none; }
.wk-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.wk-card-link:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(30, 40, 80, .5); }
.wk-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #e9edf5; overflow: hidden; }
.wk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wk-thumb.is-video::after { content: "▶"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 18, 34, .75); color: #fff; font-size: 12px; }
.wk-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.wk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.wk-lab { padding: 2px 8px; border-radius: 6px; font: 700 11px/1.6 "Space Grotesk", sans-serif; letter-spacing: .06em; color: #fff; }
.wk-lab--movie { background: var(--movie); } .wk-lab--post { background: var(--post); } .wk-lab--join { background: var(--join); } .wk-lab--web { background: var(--web); } .wk-lab--app { background: var(--app); }
.wk-cat { font-size: 12px; color: var(--sub); font-weight: 700; }
.wk-badge { padding: 2px 8px; border-radius: 6px; background: #f1edff; color: #6d28d9; font-size: 11.5px; font-weight: 700; }
.wk-card-title { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.wk-card-desc { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* detail */
.wk-article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 20px; }
.wk-h1--detail { font-size: clamp(22px, 5.4vw, 32px); margin-top: 10px; }
.wk-media { position: relative; display: block; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.wk-media img { width: 100%; height: 100%; object-fit: cover; }
.wk-media.is-video { aspect-ratio: 16 / 9; }
.wk-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(15, 18, 34, .78); }
.wk-play::before { content: ""; position: absolute; left: 26px; top: 20px; border: 12px solid transparent; border-left: 18px solid #fff; border-right: 0; }
.wk-iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin: 0 0 16px; }
.wk-desc { margin: 0 0 12px; font-size: 15px; color: #1f2335; }
.wk-out { display: inline-block; margin: 0 0 16px; font-weight: 700; color: #0369a1; }
.wk-facts { margin: 0 0 16px; border-top: 1px solid var(--line); }
.wk-facts > div { display: grid; grid-template-columns: 9em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wk-facts dt { color: var(--sub); font-weight: 700; } .wk-facts dd { margin: 0; }
.wk-facts a { color: #0369a1; font-weight: 700; }
.wk-lab-box { padding: 16px; border-radius: 14px; background: #f3f8fd; border-left: 4px solid var(--movie); }
.wk-lab-box--web { background: #fffbeb; border-left-color: var(--web); } .wk-lab-box--app { background: #f6f3ff; border-left-color: var(--app); } .wk-lab-box--post { background: #fff1f2; border-left-color: var(--post); } .wk-lab-box--join { background: #ecfdf5; border-left-color: var(--join); }
.wk-lab-box h2 { margin: 0 0 4px; font-size: 16px; }
.wk-lab-box p { margin: 0 0 8px; font-size: 14px; color: #2a2f45; }
.wk-lab-box a { font-weight: 700; color: var(--ink); }
.wk-related { margin: 26px 0 0; }
.wk-related h2 { font-size: 17px; margin: 0 0 10px; }
.wk-related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wk-related-list a { display: block; text-decoration: none; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.wk-related-list img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 4px; width: 100%; }
.wk-pager { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 0; font-size: 13px; }
.wk-pager a { color: var(--sub); text-decoration: none; max-width: 40%; }
.wk-pager a:nth-child(2) { font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .wk-related-list { grid-template-columns: 1fr 1fr; } .wk-facts > div { grid-template-columns: 1fr; gap: 0; } }

/* CTA / footer */
.wk-cta-box { margin: 32px 0 0; padding: 24px 18px; border-radius: 20px; color: #fff; text-align: center; background: linear-gradient(110deg, #0ea5e9 0%, #8b5cf6 55%, #f43f5e 100%); }
.wk-cta-box h2 { margin: 0 0 6px; font-size: clamp(19px, 4.6vw, 26px); }
.wk-cta-box p { margin: 0 0 14px; font-size: 14px; }
.wk-btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: #fff; color: #6d28d9; font-weight: 700; text-decoration: none; }
.wk-footer { background: #0b0f1f; color: rgba(255,255,255,.7); padding: 26px 0 30px; font-size: 13px; }
.wk-footer p { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.wk-footer a { color: rgba(255,255,255,.82); text-decoration: none; padding: 4px 0; }
.wk-copy { color: rgba(255,255,255,.5); }
@media (prefers-reduced-motion: reduce) { .wk-card-link { transition: none; } }

/* SNS運用: 外部リンク2つ・相互リンク */
.wk-outs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 4px; }
.wk-pair { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #f6f7fb; font-size: 14px; }
.wk-pair a { color: var(--ink); font-weight: 700; }
