/*
Theme Name: Sakamoto Sangyo Original
Description: Original theme with Works custom post type.
Version: 1.1.0
Requires PHP: 8.0
Text Domain: sakamoto-sangyo
*/
/* ============================================
   Works Main Visual
============================================ */
.works-page {
  background: #fff;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8
}

.works-container {
  width: min(1180px, 90%);
  margin: auto
}

.works-hero {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: #000
}

.works-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.82) 26%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.75) 100%),
    url("../images/mv.jpg") center / cover no-repeat;
  filter: saturate(.9);
}

.works-hero:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(transparent, #050505)
}

.works-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 90%);
  margin: auto;
  padding-top: 170px
}

.works-label {
  color: #b68a32;
  letter-spacing: .18em;
  font-weight: 700
}

.works-hero h1 {
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1;
  letter-spacing: .08em;
  margin: 20px 0;
  font-weight: 900
}

.works-hero h2 {
  font-size: 28px;
  margin-bottom: 28px
}

.works-hero p {
  font-size: 15px;
  color: #ddd
}


/* 下層ページ用パンくず */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #777;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

/* スマホ調整 */
@media screen and (max-width: 767px) {
  .works-mv {
    height: 260px;
    min-height: 260px;
    background-position: center;
  }

  .works-mv__content {
    padding: 120px 24px 0;
  }

  .works-mv__label {
    font-size: 36px;
  }

  .works-mv__content h1 {
    font-size: 13px;
  }

  .breadcrumb {
    padding: 14px 24px 0;
  }
}

/*投稿部分*/
.works-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
}

.works-archive {
    width: min(1440px, calc(100% - 80px));
    background: #fff;
    margin: auto;
    padding: 100px 40px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 80px;
}

.works-card__body h3{
	color: #333;
}

.works-archive {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.works-card {
  background: #fff;
  overflow: hidden;
}

.works-card a {
  color: inherit;
  text-decoration: none;
}

.works-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-card__image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
}

.works-card__body {
  padding: 20px;
}

.works-card__body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.works-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 100px;
}

.works-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  text-decoration: none;
}

.works-pagination .page-numbers.current,
.works-pagination .page-numbers:hover {
  background: #111;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 900px) {
  .works-archive {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 70px 24px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .works-hero__inner h1 {
    font-size: 46px;
  }

  .works-hero__inner h2 {
    font-size: 22px;
  }

  .works-archive {
    padding: 56px 18px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .works-card__body {
    padding: 16px;
  }

  .works-pagination {
    flex-wrap: wrap;
    padding-bottom: 70px;
  }
}