/* ======================================
   Works Page Styles
   kawaii / Works only  (CLEAN + DEDUPED)
   ====================================== */


/* =========================
   Hero (Works)
========================= */

.hero-works{
  position: relative;
  height: 40vh;
  min-height: 480px;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.15),
      rgba(0,0,0,0.45)
    ),
    url("../assets/img/hero_works_morning.jpg") center / cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Hero inner */
.hero-works__inner{
  position: relative;
  z-index: 2;

  width: min(980px, 92vw);
  margin: 0 auto;
  padding-left: 8vw;

  text-align: left;
}

/* Readability */
.hero-works__eyebrow,
.hero-works__lead,
.hero-works__desc{
  color: rgba(255,255,255,0.92);
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.hero-works__eyebrow{
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-works__lead{
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 54px);
  line-height: 1.18;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.hero-works__desc{
  margin: 0;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.9;
  letter-spacing: 0.06em;
  opacity: 0.90;
}

/* Optional title (if you still use it somewhere) */
.hero-works__title{
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
}


/* =========================
   List / Groups
========================= */

.works-list{
  padding: 28px 0 0;
}

.works-list__inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-sp);
}

.works-group{
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.works-group:first-child{
  border-top: 0;
  padding-top: 24px;
}

.works-group__label{
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.60;
  text-transform: uppercase;
}


/* =========================
   Cards
========================= */

.works-cards{
  display: grid;
  gap: 14px;
}

.work-card{
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 16px;

  background: rgba(31,31,31,0.03);
  border: 1px solid rgba(31,31,31,0.08);

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.work-card:hover{
  transform: translateY(-2px);
  border-color: rgba(31,31,31,0.12);
  box-shadow: 0 14px 30px rgba(31,31,31,0.10);
}

/* Logo (air) */
.work-card__logo{
  display: block;
  width: 210px;
  max-width: none;
  height: auto;

  margin: 2px 0 14px 0;

  opacity: 0.68;
  filter: saturate(0.95) contrast(0.98);
  transform: translateZ(0);
}

.work-card:hover .work-card__logo{
  opacity: 0.92;
  filter: saturate(1.00) contrast(1.00);
}

/* Title */
.work-card__title{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* Desc */
.work-card__desc{
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.95;
  opacity: 0.74;
}

/* Meta tags */
.work-card__meta{
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-tag{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;

  background: rgba(31,31,31,0.06);
  border: 1px solid rgba(31,31,31,0.08);

  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Link (external / internal) */
.work-card__link{
  display: inline-flex;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.78;

  position: relative;
  padding-bottom: 2px;
}

.work-card__link:hover{ opacity: 1; }

.work-card__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background: rgba(31,31,31,0.18);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.work-card__link:hover::after{
  transform: scaleX(1);
}

/* State (coming soon etc.) */
.work-card__state{
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.55;
}


/* =========================
   Next
========================= */

.works-next{
  padding: 26px 0 96px;
}

.works-next__inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-sp);
}


/* =========================
   Responsive
========================= */

@media (max-width: 640px){
  .work-card__logo{
    width: 172px;    /* ←少し大きく（SP） */
    max-width: 76%;
  }

  .hero-works__inner{
    padding-left: clamp(18px, 5vw, 28px);
  }
}

@media (min-width: 768px){
  .works-list__inner,
  .works-next__inner{
    padding: 0 var(--pad-pc);
  }

  .works-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 980px){
  .works-cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px){
  .hero-works__inner{
    width: min(1100px, 92vw);
    padding-left: 8vw; /* PCは空気感優先で固定 */
  }
}
