@charset "utf-8";
/* ======================================================================
 制作実績タイル（案B ギャラリー）
 トップページの実績欄と、実績一覧（/blog/・カテゴリー）で共通。
====================================================================== */

/* ---------- タイル ---------- */
.dw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 20px;
}
.dash-front .dw-tile {
  position: relative; overflow: hidden; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--df-ink);
}
.dw-tile--big { grid-column: span 2; grid-row: span 2; }
.dash-front .dw-tile img.dw-tile__img {
  width: 82%; height: auto; max-height: 76%; object-fit: contain; display: block;
  mix-blend-mode: multiply;
  transition: transform 1s var(--df-ease);
}
.dw-tile:hover img.dw-tile__img { transform: scale(1.06); }

.dw-tile__label {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; line-height: 1.5;
  transition: opacity .3s;
}
.dw-tile__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-tile__no { flex: none; font-family: Inter, sans-serif; font-weight: 800; color: var(--df-red-text); }
.dw-tile:hover .dw-tile__label, .dw-tile:focus-visible .dw-tile__label { opacity: 0; }

.dw-tile__overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,20,.92); color: #FFFFFF;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 6px;
  translate: 0 100%; transition: translate .6s var(--df-ease);
}
.dw-tile:hover .dw-tile__overlay, .dw-tile:focus-visible .dw-tile__overlay { translate: 0 0; }
.dw-tile__cat { font-size: 12px; font-weight: 700; color: #FF8A80; line-height: 1.5; }
.dw-tile__title { font-size: 18px; font-weight: 900; line-height: 1.4; }
.dw-tile--big .dw-tile__title { font-size: 24px; }
.dw-tile__tag { font-size: 13px; color: #CFCFCF; line-height: 1.6; }
.dw-tile__more { margin-top: 6px; font-family: Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .15em; }

/* タッチ端末（ホバーできない）では、説明を常に下に表示 */
@media (hover: none) {
  .dw-tile__overlay { translate: 0 0; padding: 14px 16px; gap: 2px; }
  .dw-tile__tag, .dw-tile__more { display: none; }
  .dw-tile__label { display: none; }
  .dw-tile__title { font-size: 15px; }
}

/* タブの件数 */
.dw-count { margin-left: 8px; font-family: Inter, sans-serif; font-size: 12px; opacity: .6; }

/* ---------- 一覧ページ ---------- */
.dw-hero {
  background-color: #FAFAF8;
  background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px);
  background-size: 80px 80px;
  padding-top: var(--df-header-h);
}
.dw-hero__inner { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.dw-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #5A5A5A; }
.dash-front .dw-crumb a { color: #5A5A5A; }
.dash-front .dw-crumb a:hover { color: var(--df-red-text); }
.dw-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.dash-front .dw-hero__title { margin: 4px 0 0; font-size: clamp(36px, 5vw, 64px); font-weight: 900; line-height: 1.25; }
.dw-list { padding-top: 72px; }
.dw-empty { color: #5A5A5A; }

/* ページ送り */
.dw-pager, .dash-works .navigation.pagination { margin-top: 64px; }
.dash-works .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dash-works .nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px;
  border: 1px solid #CFCFCF; border-radius: 999px; font-family: Inter, sans-serif; font-weight: 700; font-size: 14px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.dash-works .nav-links a.page-numbers:hover,
.dash-works .nav-links .page-numbers.current { background: var(--df-ink); border-color: var(--df-ink); color: #FFFFFF; }
.dash-works .nav-links .dots { border: 0; }

@media (max-width: 720px) {
  .dw-tile--big { grid-column: auto; grid-row: auto; }
  .dw-grid { grid-auto-rows: 240px; }
  .dw-hero__inner { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-tile__overlay { transition: none; }
}

/* ---------- 背景色なし（白＋細い枠線） ---------- */
.dash-front .dw-tile { background: #FFFFFF !important; border: 1px solid #ECECEC; }
.dash-front .dw-tile img.dw-tile__img { mix-blend-mode: normal; }

/* ---------- トップページ：スマホでは横スライダー ---------- */
@media (max-width: 720px) {
  .dash-front #works .dw-grid {
    display: flex; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-left: 24px;
    margin-left: -24px; margin-right: -24px; padding: 0 24px 12px;
    scrollbar-width: none;
  }
  .dash-front #works .dw-grid::-webkit-scrollbar { display: none; }
  .dash-front #works .dw-tile {
    flex: 0 0 82%; height: 260px; scroll-snap-align: start;
    animation: none;
  }
  .dash-front #works .dw-tile__title { font-size: 16px; }
  .dash-front #works .df-head::after {
    content: "SWIPE →"; display: block; width: 100%;
    font-family: Inter, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .2em; color: #8A8A8A; text-align: right;
  }
}
