@charset "utf-8";

/* ===============================
Main top
=============================== */
.ink-hero__bg{
  background: var(--ink);
  width: 100%;
  padding: 100px 0 45px;
}

.ink-hero__bg-title{
  margin: 0;
  text-align: center;
  line-height: 1;
  font-family: "Sansation", sans-serif;
  font-weight: 700;
  color: #2C3344;
  font-size: clamp(12rem, 30vw, 36rem);
}

.ink-hero__ink{
  position: relative;
  z-index: 1;
  height: 263px;
  background: url("../images/pc/ink01.webp") repeat-x center top / contain;
  background: auto 100%;
  margin-top: -1px;
}
/* PC 768px */
 
/* ========================
   SP TOP （〜768px）
========================= */
@media (max-width: 768px) {
  .ink-hero__bg {
    padding: 100px 0 45px;
  }

  .ink-hero__bg-title {
  font-size: clamp(6.4rem, 24vw, 9.6rem);
  }

  .ink-hero__ink {
    height: 113px;
    background: url("../images/sp/ink01sp.webp") repeat-x center top / contain;
    background: auto 100%;
  }
}

/* ===============================
   WORKS
=============================== */

.works {
  background: var(--beige);
  color: var(--ink);
  margin-top: -100px;  
  padding-top: 140px;
  padding-bottom: 160px;
}

.works__inner {
  padding: 0 20px;
}

/* ---------- フィルタタブ ---------- */

.works-filter {
  max-width: 1238px;
  margin: 0 auto 90px;
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}

.works-filter__btn {
  font-family: "Sansation", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  border: 0.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.works-filter__btn:hover {
  background: var(--ink);
  color: var(--beige);
}

.works-filter__btn.is-active {
  background: var(--ink);
  color: var(--beige);
}

/* ---------- グリッド ---------- */

.works-grid {
  max-width: 1238px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 345px); /* 3カラム固定 */
  column-gap: calc((1238px - 345px * 3) / 2); /* Figma の幅にほぼ合わせる */
  row-gap: 100px;  /* 行間 */
}

.works-item {
  width: 345px;
}

.works-thumb {
  width: 345px;
  height: 345px;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}

.works-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .3s ease;
}

.works-thumb img:hover {
  transform: scale(1.04);
}

/* ===============================
   Lightbox（事例画像の拡大表示）
=============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
  background: rgba(29, 35, 49, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(92vw, 1000px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform .25s ease;
  cursor: default;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 3.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .lightbox__close {
    top: 12px;
    right: 14px;
    font-size: 3rem;
  }
}

.works-caption {
  margin-top: 10px;
  font-size: 1.5rem;
  line-height: 1.6;
}

/* PROMOTION（展示会ブース・販促）への導線バナー */
.works-promo {
  max-width: 1238px;
  margin: 100px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 48px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--beige);
}
.works-promo__body { flex: 1; min-width: 260px; }
.works-promo__tag {
  font-family: "Sansation", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--pink);
  margin-bottom: 8px;
}
.works-promo__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.works-promo__text {
  font-size: 1.4rem;
  line-height: 1.8;
}
.works-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: opacity .2s ease;
}
.works-promo__btn::after { content: "→"; }
.works-promo__btn:hover { opacity: .85; }

@media (max-width: 768px) {
  .works-promo {
    margin-top: 60px;
    padding: 28px 24px;
    gap: 20px;
  }
  .works-promo__title { font-size: 1.8rem; }
  .works-promo__btn { width: 100%; justify-content: center; }
}

.works__ink {
  position: relative;
  z-index: 1;
  height: 263px;
  background: url("../images/pc/ink03.webp") repeat-x center top / contain;
  background: auto 100%;
  margin-top: -1px;
}

/* ========================
  タブレット (〜1237px)
========================= */
/* 2カラム */
@media (max-width: 1237px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 40px;
    max-width: 900px; 
  }

  .works-filter {
    max-width: 900px;
  }
}

/* ========================
   SP（〜768px）
========================= */

@media (max-width: 768px) {

  .works {
    margin-top: -20px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .works__inner {
    padding: 0 25px 40px;
  }

  .works-filter {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 8px;
    justify-content: flex-start;
  }

  .works-filter__btn {
    font-size: 1.2rem;
    padding: 5px 12px;
  }

  .works-grid {
    max-width: 345px;
    margin: 40px auto 0;
    grid-template-columns: 1fr;  /* 1カラム */
    column-gap: 0;
    row-gap: 40px;
  }

  .works-item,
  .works-thumb {
    width: 100%;
  }

  .works-thumb {
    height: auto;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .works-caption {
    font-size: 1.4rem;
    margin-top: 8px;
  }

  .works__ink {
    height: 113px;
    background: url("../images/sp/ink03sp.webp") repeat-x center top / contain;
    background: auto 100%;
}
}