﻿/* nero-projects section styles; scoped to avoid affecting the existing site */
.nero-projects * {
  box-sizing: border-box
}

.nero-projects a {
  color: inherit;
  text-decoration: none
}

.nero-projects button {
  font: inherit
}

.nero-projects img {
  display: block;
  width: 100%
}

.nero-projects {
  color: #fff;
  background: #000;
  padding: clamp(60px, 7vw, 110px) 18px clamp(80px, 8vw, 130px)
}

.nero-projects .inner1 {
  max-width: 1440px;
  margin: auto
}

.nero-projects .nero-projects__head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 38px
}

.nero-projects .eyebrow {
  font-size: 11px;
  letter-spacing: .24em;
  color: #999;
  margin-bottom: 15px
}

.nero-projects h2 {
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 400;
  line-height: .95;
  margin: 0
}

.nero-projects .lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: #888;
  line-height: 1.8;
  font-size: 14px
}

.nero-projects .all {
  border: 1px solid #333;
  border-radius: 99px;
  padding: 15px 22px;
  font-size: 11px;
  letter-spacing: .16em;
  white-space: nowrap
}

.nero-projects .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px
}

.nero-projects .project-card {
  background: #0d0d0d;
  border: 1px solid #202020;
  border-radius: 22px;
  overflow: hidden;
  transition: .45s cubic-bezier(.2, .7, .2, 1)
}

/* .nero-projects .project-card:hover {
      transform: translateY(-6px);
      border-color: #3c3c3c
    } */

.nero-projects .project-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111
}

.nero-projects .project-card__slides {
  position: absolute;
  inset: 0
}

.nero-projects .project-card__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1)
}

.nero-projects .project-card__slide.is-active {
  opacity: 1
}


.nero-projects .project-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .06) 60%, rgba(0, 0, 0, .18))
}

.nero-projects .project-card__top {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .16em
}

.nero-projects .project-card__top span,
.nero-projects .project-card__top a {
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 9px 11px;
  border-radius: 99px
}

.nero-projects .project-card__title {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 21px
}

.nero-projects .project-card__title h3 {
  color: #fff;
  margin: 0;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.15
}

/* 事例名をリンク化し、ホバーで中央から両端に伸びる下線を表示 */
.nero-projects .project-card__title h3 a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none
}

.nero-projects .project-card__title h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s
}

.nero-projects .project-card__title h3 a:hover::after {
  transform: scale(1, 1)
}

.nero-projects .project-card__title p {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: .18em;
  color: #bbb
}

.nero-projects .project-card__gallery {
  padding: 16px 18px 18px;
  border-top: 1px solid #1b1b1b
}

.nero-projects .project-card__gallery-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
  font-size: 9px;
  letter-spacing: .2em;
  color: #777
}

.nero-projects .project-card__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px
}

.nero-projects .project-card__thumb {
  appearance: none;
  border: 1px solid #222;
  background: #111;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  opacity: .58;
  transition: .3s ease
}

.nero-projects .project-card__thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.nero-projects .project-card__thumb:hover,
.nero-projects .project-card__thumb.is-active {
  opacity: 1;
  border-color: #666
}

.nero-projects .project-card__thumb:hover img {
  transform: scale(1.08)
}

.nero-projects .project-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px 18px;
  color: #777;
  font-size: 11px
}

.nero-projects .project-card__bottom a {
  color: #fff;
  border-bottom: 1px solid #555;
  padding-bottom: 4px;
  letter-spacing: .12em;
  white-space: nowrap
}

.nero-projects .foot {
  text-align: center;
  padding-top: 42px
}

.nero-projects .more {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #333;
  border-radius: 99px;
  padding: 18px 32px;
  font-size: 11px;
  letter-spacing: .18em
}

@media(max-width:767px) {
  .nero-projects {
    padding-left: 12px !important;
    padding-right: 12px !important
  }

  .nero-projects .nero-projects__head {
    display: block
  }

  .nero-projects .all {
    display: inline-block;
    margin-top: 22px
  }

  .nero-projects .grid {
    grid-template-columns: 1fr;
    gap: 14px
  }

  .nero-projects .project-card__visual {
    aspect-ratio: 4/3
  }

  .nero-projects .project-card__bottom {
    align-items: flex-start;
    flex-direction: column
  }
}