@charset "UTF-8";

/* ==========================================
   ショートドラマLAB 法人向け表示（トップCOLUMN・LAB一覧共通）
   - .labThumb : 記事サムネ（16:9・分類色・主題・ブランド位置を固定）
   - .labCard  : サムネ＋タイトル＋日付のカード
   - .p-labPick: 企業サイトTOPのCOLUMN（9本）
   - .labB2b-* : LAB一覧の法人向けブロック
========================================== */

/* ---------- サムネ ---------- */
.labThumb {
  --lab-c: #c9c9c9;
  container-type: inline-size;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #14161b;
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 55%);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1;
  letter-spacing: .02em;
  text-align: left;
}
.labThumb__cat {
  position: absolute;
  top: 7cqw;
  left: 7cqw;
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  font-size: 12px;
  font-size: 3.7cqw;
  font-weight: 700;
  color: var(--lab-c);
}
.labThumb__cat::before {
  content: "";
  width: 2.2cqw;
  height: 2.2cqw;
  min-width: 6px;
  min-height: 6px;
  background: var(--lab-c);
}
.labThumb__copy {
  position: absolute;
  left: 7cqw;
  right: 30cqw;
  top: 50%;
  transform: translateY(-46%);
  font-size: 24px;
  font-size: 8.4cqw;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: .01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  /* 自動生成の見出し（未設定の記事）が長くても2行で止める */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.labThumb__brand {
  position: absolute;
  left: 7cqw;
  bottom: 6.4cqw;
  display: flex;
  align-items: baseline;
  gap: 1.6cqw;
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-size: 2.7cqw;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .72);
}
.labThumb__brand span { font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.labThumb::after {
  /* 下端の分類色バー（全サムネで同じ位置・長さ） */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26%;
  height: 1.3cqw;
  min-height: 3px;
  background: var(--lab-c);
}
.labThumb__frame {
  /* 縦型（9:16）を示す枠。全サムネで同じ位置 */
  position: absolute;
  right: 8cqw;
  top: 50%;
  width: 18.6cqw;
  aspect-ratio: 9 / 16;
  transform: translateY(-50%);
  border: max(1.5px, .55cqw) solid var(--lab-c);
  border-radius: 1.6cqw;
  opacity: .6;
}
.labThumb__frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-style: solid;
  border-width: 2.6cqw 0 2.6cqw 4.2cqw;
  border-color: transparent transparent transparent var(--lab-c);
  transform: translate(-35%, -50%);
}

/* 作品写真あり（旧カテゴリ「作品レビュー」のみ）: 構成は同じまま、右の縦型枠の中だけにキービジュアルを入れる。
   アイキャッチは題字入りのバナーが多いので全面には敷かず、ポスター側（右寄り）を縦に切り出す */
.labThumb--photo .labThumb__frame { overflow: hidden; opacity: 1; background: #000; }
.labThumb--photo .labThumb__frame::after { content: none; }
.labThumb--photo .labThumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--lab-pos, 92% 50%);
  border-radius: 0;
}

/* LAB一覧：記事のアイキャッチ（gokko_lab_eyecatch()）を16:9の枠いっぱいに。文字・分類色の線は重ねない */
.labThumb--eyecatch { background: #f2f2f2; }
.labThumb--eyecatch::after { content: none; }
.labThumb--eyecatch .labThumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- カード ---------- */
.labCard a { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.labCard .labThumb { transition: transform .35s ease, box-shadow .35s ease; }
.labCard a:hover .labThumb { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.labCard__ttl { font-size: 15px; font-weight: 700; line-height: 1.6; }
.labCard__date { font-family: "Poppins", sans-serif; font-size: 12px; letter-spacing: .06em; opacity: .65; }
.labCard a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
.lab-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 既存LABカード（.article-card / .ranking-thumb）にサムネを差し込む場合 */
.article-card-thumb .labThumb { margin-bottom: 0; }
.ranking-thumb .labThumb { border-radius: 4px; }
/* ランキングの小サムネ（幅80px）は文字を出さず、分類色と縦型の枠だけ（分類名は横のテキストに出る） */
.ranking-thumb .labThumb__cat,
.ranking-thumb .labThumb__copy,
.ranking-thumb .labThumb__brand { display: none; }

/* ---------- 企業サイトTOP: COLUMN ---------- */
.p-labPick { position: relative; padding: min(20vw, 100px) 0 min(16vw, 80px); }
.p-labPick__lead { font-size: min(3.8vw, 15px); font-weight: 500; line-height: 1.6; }
.p-labPick__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: min(6vw, 32px);
  padding: 0 min(5.3vw, 40px);
}
.p-labPick__themes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color .3s, background-color .3s;
}
.p-labPick__themes a::before { content: ""; width: 8px; height: 8px; background: var(--lab-c); }
.p-labPick__themes a:hover { border-color: var(--lab-c); background: rgba(255, 255, 255, .06); }
.p-labPick__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: min(8vw, 40px);
  margin-top: min(8vw, 40px);
  padding: 0 min(5.3vw, 40px);
}
.p-labPick__list .labCard__ttl { font-size: min(3.8vw, 15px); font-weight: 500; }
.p-labPick__toggle {
  display: none;
  width: calc(100% - 2 * min(5.3vw, 40px));
  margin: min(8vw, 40px) auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.p-labPick__more { margin: min(10vw, 48px) 0 0; padding: 0 min(5.3vw, 40px); text-align: center; }
.p-labPick__themes a:focus-visible,
.p-labPick__toggle:focus-visible,
.p-labPick__more a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* SP: JSが動くときだけ4件目以降を畳む（JSなしでは9件すべて表示） */
@media only screen and (max-width: 959.98px) {
  .p-labPick.is-collapsible .p-labPick__toggle { display: block; }
  .p-labPick.is-collapsible:not(.is-open) .p-labPick__list > li:nth-child(n+4) { display: none; }
}
@media only screen and (min-width: 960px) {
  .p-labPick { padding: min(10vw, 140px) 0 min(6vw, 80px); }
  .p-labPick__lead { font-size: min(1.4vw, 16px); }
  .p-labPick__themes { padding: 0 min(5.6vw, 80px); margin-top: min(3vw, 40px); }
  .p-labPick__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: min(3.4vw, 48px) min(2.4vw, 32px);
    margin-top: min(3vw, 40px);
    padding: 0 min(5.6vw, 80px);
  }
  .p-labPick__list .labCard__ttl { font-size: min(1.2vw, 15px); }
  .p-labPick__more { margin-top: min(4vw, 56px); padding: 0 min(5.6vw, 80px); text-align: right; }
}

/* ---------- LAB一覧（法人向け） ---------- */
/* 第一画面：GOKKO企業サイトTOPに合わせ、白地・黒文字・矢印で組む。
   見出し・署名・相談ボタン・作品写真を、角の立った黒1pxの四辺均一の枠で1枚のバナーにまとめる（内部に罫線は引かない）。
   バナーの左右端はおすすめ記事グリッドの左右端に揃え、写真は枠の内側いっぱい（PCは右、SPは上）に置く。
   写真はPCは右・SPは上に暗幕なしで置き、文字は白地の上だけに載せる（画像が届かなくても読める）。
   PCは見出し・署名・相談ボタンをひとまとめにして写真の高さの中で縦中央に置く。
   高さは見出し2行＋相談に抑え、おすすめの最初の記事まで第一画面に入れる。動きはつけない。 */
.labB2b-intro {
  --lab-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 10 2M3.5 2H10v6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
  container: labIntro / inline-size; /* 本文欄の幅で組み方を切り替える（サイドバーの有無に左右されない） */
  margin-bottom: 24px;
}
.labB2b-intro__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 37%; /* 本文欄730px（PC）で見出し30pxが内余白込みで1行に収まる幅 */
  grid-template-areas: ". photo" "body photo" "contact photo" ". photo";
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 24px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
}
.labB2b-intro__photo {
  grid-area: photo;
  min-height: 190px;
  /* ZANIMA作品の場面写真（376×532、相手を抱きしめて笑う男性）。PCは目元・笑顔から相手の髪に添えた手までを見せる。
     色・人物は加工していない。lab-hero-zanima.webp・lab-hero-works.webp は残している（差し戻す場合はこの行の画像名だけ戻す） */
  background: #1b1b1b url(../img/lab/lab-hero-hug.webp) no-repeat 50% 76% / cover;
}
.labB2b-intro__body { grid-area: body; padding-left: 28px; }
.labB2b-intro__ttl { font-size: 30px; font-weight: 900; line-height: 1.34; letter-spacing: .02em; color: #000; }
.labB2b-intro__ttl span { display: inline-block; }
.labB2b-intro__brand { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #555; white-space: nowrap; } /* H1直下の署名（1行） */
.labB2b-intro__contact {
  grid-area: contact;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0 28px;
  padding: 9px 22px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}
.labB2b-intro__contact::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: currentColor;
  -webkit-mask: var(--lab-arrow-up) no-repeat center / contain;
  mask: var(--lab-arrow-up) no-repeat center / contain;
}
.labB2b-intro__contact:hover { background: #000; color: #fff; }
.labB2b-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: #fff;
  color: #14161b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.labB2b-btn:hover { opacity: .85; }
.labB2b-sitelink { margin-bottom: 30px; text-align: right; }
.labB2b-back { margin: -24px 0 40px; text-align: right; }
.labB2b-back a { font-size: 13px; font-weight: 700; color: #667eea; text-decoration: none; }
.labB2b-back a:hover { text-decoration: underline; }
.labB2b-sitelink a { font-size: 13px; font-weight: 700; color: #333; text-decoration: underline; text-underline-offset: 3px; }

.labB2b-section { margin-bottom: 56px; scroll-margin-top: 140px; }
.labB2b-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--lab-c, #333);
}
#lab-pick .labB2b-section__head { /* 第一画面に1件目の記事名まで入れるため、おすすめ見出しだけ詰める */
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 0;
  /* 見出しの下の区切り線は5分類のテーマ色（gokko_lab_themes() の順：発注・広告/採用・SNS/測定・企画/制作・市場/基礎）。飾りなので背景で描く */
  background: linear-gradient(90deg, #f5c044 0 20%, #ff7a5c 0 40%, #46c2f0 0 60%, #a792ff 0 80%, #58d39b 0) left bottom / 100% 3px no-repeat;
}
.labB2b-section__ttl { font-size: 20px; font-weight: 900; color: #333; }
.labB2b-section__count { font-family: "Poppins", sans-serif; font-size: 13px; color: #888; }
.labB2b-section__desc { flex-basis: 100%; font-size: 13px; color: #666; }
/* 各見出し右の「すべて見る →」（旧LABの .view-all-link：#667eea・13px・太字）。絞り込みビュー ?lab_theme= へ同じタブで */
.labB2b-section__all { margin-left: auto; white-space: nowrap; }
.labB2b-section__all:focus-visible { outline: 2px solid #667eea; outline-offset: 3px; border-radius: 2px; }
/* LAB一覧カードの主カテゴリのバッジ（旧LABの .article-card-category：#667eea・白字）。サムネ→バッジ→記事名→日付 */
.labCard a > .article-card-category { align-self: flex-start; margin: 0 0 -4px; }
#lab-pick .labCard a > .article-card-category { margin: 0 0 8px; }
.labB2b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; list-style: none; }
.labB2b-grid .labCard__ttl { font-size: 14px; color: #333; }
.labB2b-grid .labCard__date { color: #333; }
.labB2b-section.is-collapsible:not(.is-open) .labB2b-grid > li:nth-child(n+7) { display: none; }
.labB2b-more {
  display: none;
  margin: 24px auto 0;
  padding: 10px 24px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.labB2b-section.is-collapsible .labB2b-more { display: block; }
.labB2b-more:focus-visible,
.labB2b-intro__contact:focus-visible,
.labB2b-sitelink a:focus-visible,
.labB2b-btn:focus-visible { outline: 2px solid #667eea; outline-offset: 3px; }

.labB2b-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
  padding: 24px 28px;
  border-radius: 8px;
  background: #f5f3ee;
}
.labB2b-cta__ttl { font-size: 17px; font-weight: 900; color: #333; }
.labB2b-cta__txt { margin-top: 4px; font-size: 13px; color: #666; }
.labB2b-cta .labB2b-btn { background: #14161b; color: #fff; }

.labB2b-archive { margin-bottom: 30px; padding-top: 24px; border-top: 1px solid #e5e5e5; scroll-margin-top: 140px; }
.labB2b-archive__ttl { font-size: 16px; font-weight: 900; color: #333; }
.labB2b-archive__txt { margin-top: 6px; font-size: 13px; color: #666; }
.labB2b-archive__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; list-style: none; }
.labB2b-archive details { margin-top: 16px; }
.labB2b-archive summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #333; }
.labB2b-archive .labB2b-grid { margin-top: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.labB2b-archive .labCard__ttl { font-size: 12px; font-weight: 500; }

/* おすすめ9本：旧LABの記事カード（.article-card）と同じ配色・動き。カード全体が記事へのリンクで、
   ホバーでカードごと4px浮く（サムネだけの影・浮きはつけない）。並びはPC・SPとも サムネ→記事名→日付 */
#lab-pick .labCard a { gap: 0; transition: transform .3s; }
#lab-pick .labCard a:hover { transform: translateY(-4px); }
#lab-pick .labCard a:hover .labThumb { transform: none; box-shadow: none; }
#lab-pick .labCard .labThumb { margin-bottom: 12px; }
#lab-pick .labCard__ttl { margin-bottom: 8px; font-size: 15px; color: #333; }
#lab-pick .labCard__date { font-size: 12px; color: #999; opacity: 1; }
/* SP・狭い本文欄：写真の帯→見出し→相談 */
@container labIntro (max-width: 559.98px) {
  .labB2b-intro__in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "photo" "body" "contact";
    grid-template-rows: auto;
  }
  .labB2b-intro__photo { min-height: 0; height: 136px; background-position: 50% 60%; } /* 目元・笑った口元と、相手に添えた手の帯 */
  .labB2b-intro__body { padding: 14px 16px 14px; }
  .labB2b-intro__ttl { font-size: 22px; line-height: 1.32; }
  .labB2b-intro__contact {
    justify-self: stretch;
    justify-content: center;
    margin: 0 16px 16px;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
  }
  .labB2b-intro__contact:hover { background: #333; color: #fff; }
}
@media screen and (max-width: 767.98px) {
  .labB2b-intro { margin-bottom: 28px; }
  #lab-pick .labCard__ttl { font-size: 14px; }
  /* SP：見出しは残りの幅で折り返し、「すべて見る →」を必ず同じ行の右端に置く（件数は説明の行へ） */
  .labB2b-section__ttl { flex: 1 1 0; min-width: 0; }
  .labB2b-section__all { order: 1; }
  .labB2b-section:not(#lab-pick) .labB2b-section__head::after { content: ""; flex-basis: 100%; order: 1; } /* 改行（件数・説明のない「まず読みたい9本」は1行のまま） */
  .labB2b-section__count { order: 2; }
  .labB2b-section__desc { order: 3; flex: 1 1 0; min-width: 0; }
  .labB2b-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .labB2b-section.is-collapsible:not(.is-open) .labB2b-grid > li:nth-child(n+4) { display: none; }
  .labB2b-archive .labB2b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labB2b-cta { padding: 20px 18px; }
}
/* 縦の短いスマホ（375×667 等）：写真の帯と余白を詰め、おすすめ1件目の記事名まで第一画面に入れる */
@media screen and (max-width: 767.98px) and (max-height: 740px) {
  .labB2b-intro { margin-bottom: 20px; }
  .labB2b-intro__photo { height: 72px; background-position: 50% 50%; } /* 目・鼻・口が入る帯 */
  .labB2b-intro__body { padding: 8px 14px 8px; }
  .labB2b-intro__ttl { font-size: 20px; }
  .labB2b-intro__contact { margin: 0 14px 12px; padding: 10px 16px; }
  #lab-pick .labB2b-section__head { margin-bottom: 12px; padding-bottom: 8px; }
  #lab-pick .labCard .labThumb { margin-bottom: 8px; }
}
@media screen and (max-width: 767.98px) and (max-height: 600px) {
  .labB2b-intro { margin-bottom: 12px; }
  /* 高さ600px以下：横長の細い帯では目鼻が切れるので、写真を見出しの右に縦長で置く（帯をなくした分、記事までの距離は縮む） */
  .labB2b-intro__in { grid-template-columns: minmax(0, 1fr) 26%; grid-template-areas: "body photo" "contact contact"; column-gap: 0; }
  .labB2b-intro__photo { height: auto; align-self: stretch; background-position: 62% 62%; }
  .labB2b-intro__body { padding: 6px 8px 6px 12px; }
  .labB2b-intro__ttl { font-size: 18px; } /* 「広告を、」「観たくなる物語に。」の2行 */
  .labB2b-intro__brand { margin-top: 2px; font-size: 11px; letter-spacing: 0; }
  .labB2b-intro__contact { margin: 6px 12px 10px; padding: 8px 16px; }
  #lab-pick .labB2b-section__head { margin-bottom: 8px; padding-bottom: 6px; }
  #lab-pick .labCard .labThumb { margin-bottom: 6px; }
  #lab-pick .labCard a > .article-card-category { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .labCard .labThumb { transition: none; }
  .labB2b-intro__contact,
  #lab-pick .labCard a { transition: none; }
  #lab-pick .labCard a:hover { transform: none; }
  .labCard a:hover .labThumb { transform: none; }
}
