/*
 * 作成事例のページ（/category/previous_work/・T-1159）。カードの中身（.hp-work）は T-1160 の assets/hp-live.js が入れる。
 */
.hp-sub--works { background: #fff; }
.hp-works { min-height: 70vh; padding: 104px var(--gutter) 64px; color: #111; }
.hp-works__head { max-width: 1140px; margin: 0 auto 28px; text-align: center; }
.hp-works__title { margin: 24px 0 20px; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: 0.04em; }
.hp-works__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hp-works__tab { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 2px solid #000; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s; }
.hp-works__tab:hover, .hp-works__tab.is-on { background: #000; color: #fff; }

.hp-works__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; max-width: 1140px; margin: 0 auto; padding: 0; list-style: none; }
.hp-works__empty, .hp-works__list:empty::before { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--c-sub2); font-size: 15px; }
.hp-works__list:empty::before { content: attr(data-empty); }

.hp-work { display: flex; flex-direction: column; gap: 6px; }
.hp-work__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }
.hp-work__meta { display: flex; gap: 10px; align-items: center; margin: 4px 0 0; font-size: 13px; color: var(--c-sub); }
.hp-work__sport { padding: 1px 8px; background: #000; color: #fff; font-weight: 700; font-size: 12px; }
.hp-work__title { margin: 0; font-size: 17px; font-weight: 900; line-height: 1.5; }
.hp-work__team { margin: 0; font-size: 14px; font-weight: 700; }
.hp-work__text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--c-body, #333); white-space: pre-line; }

@media (max-width: 767px) {
  .hp-works { padding-top: 88px; }
  .hp-works__list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hp-work__title { font-size: 15px; }
}

/* 仮の作成事例（セミカスタムの柄の全体イメージ・T-1162）。全体イメージは横長なので切らずに収める */
.hp-work--sample .hp-work__img { object-fit: contain; background: #fff; border: 1px solid #eee; }
.hp-work__tag { padding: 1px 8px; border: 1px solid #999; color: var(--c-sub); font-weight: 700; font-size: 12px; }
