/* ============================================================
   MAR5AUX — gallery.css
   ギャラリーページ固有
============================================================ */

.sp-br {
  display: none;
}

@media (max-width: 850px) {
  .sp-br {
    display: inline;
  }
}

.gallery-line {
  border-top: 1px solid #F0F0F0;
  width:90vw;
  margin: 0 auto;
}

/* ============================================================
   ページ上部ラベル
============================================================ */
.gallery-hero {
  padding: 100px 20px 0;
}

.gallery-hero__label {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #1A1A1A;
  font-weight: 400;
  margin-right: 5px;
}

.gallery-hero__label_en {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-weight: 300;
}

/* ============================================================
   ギャラリー写真
============================================================ */
.gallery-photo {
  padding: 49px 0px 19px;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-photo__inner {
  margin: 0 auto;
}

.gallery-photo__stage {
  position: relative;
}

.gallery-photo__orbit {
  position: absolute;
  inset: 0;
}

.gallery-photo__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 1) 100%);
}

.gallery-photo__card {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transform: translate(-50%, 0);
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  pointer-events: none;
  gap: 3px
}

.gallery-photo__img {
  flex-shrink: 0;
  width: 100%;
  background: #f2f2f2;
  overflow: hidden;
  pointer-events: none;
}

.gallery-photo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery-photo__text1 {
  margin: 8px 0 0;
  width: 100%;
  font-family: 'Roboto','Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.555;
  letter-spacing: 0.02em;
  color: #1A1A1A;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  transform: translateY(8px);
}

.gallery-photo__text2 {
  margin: 0;
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: #1A1A1A;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  transform: translateY(3px);
}

.gallery-photo__nav {
  margin-top: 62px;
  display: none;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.gallery-photo__nav-dot,
.gallery-photo__nav-btn {
  width: 20px;
  height: 20px;
  border: 2px solid #454545;
  border-radius: 999px;
  display: inline-block;
  background: transparent;
  padding: 0;
}

.gallery-photo__nav-btn {
  cursor: pointer;
}

.gallery-photo__nav-btn:focus-visible {
  outline: 2px solid #454545;
  outline-offset: 3px;
}

.gallery-photo__nav-dot.is-active,
.gallery-photo__nav-btn.is-active {
  background: #454545;
  border-color: #454545;
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-photo__card {
    transition: none;
  }
}

/* ============================================================
   BRAND
============================================================ */
.gallery-brand {
  padding: 48px 10px 76px;
}

.gallery-brand__inner {
  max-width: 900px;
  margin: 0 auto;
}

.gallery-brand__heading {
  font-family: 'Roboto', sans-serif;
  font-size: 37px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 16px;
}

.gallery-brand__grid {
  display: grid;
  grid-template-columns: repeat(2, 157px);
  gap: 31px 32px;
  justify-items: center;
  margin: 0 auto;
}

.gallery-brand__logo {
  width: 156px;
  height: 110px;
  display: flex;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  background: #ffffff;
}

.gallery-brand__logo a {
  width: 156px;
  height: 110px;
  display: flex;
  border: solid 1px #000000;
  justify-content: center;
  align-items: center;
}

.gallery-brand__logo_img {
  width: 156px;
  height: 110px;
}

.gallery-brand__logo_img_kg{
  width: 85px;
  height: 45px;
}

.gallery-brand__logo_img_misha{
  width: 156px;
  height: 49px;
}

.gallery-brand__grid .gallery-brand__logo:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 849px) {
    .gallery-brand__grid {
        max-width: 346px;
      }
    .gallery-brand__logo:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
      }
      
      .gallery-brand__logo:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
      }
      
      .gallery-brand__logo:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
      }
      
      .gallery-brand__logo:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
      }
      
      .gallery-brand__logo:nth-child(5) {
        grid-column: 1 / span 2;
        grid-row: 3;
      }
}


@media (max-width: 380px) {
    .gallery-brand__grid {
        display: grid;
        grid-template-columns: none;
        gap: 31px 32px;
        justify-items: center;
      }  
    .gallery-brand__logo:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
      
    .gallery-brand__logo:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
     
    .gallery-brand__logo:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .gallery-brand__logo:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
    }
      
    .gallery-brand__logo:nth-child(5) {
        grid-column: 1;
        grid-row: 5;
    }
}
/* ============================================================
   実績紹介
============================================================ */
.gallery-achievements {
  padding: 69px 20px 100px;
}

.gallery-achievements__inner {
  margin: 0 auto;
  text-align: center;
}

.gallery-achievements__heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: #1A1A1A;
}

.gallery-achievements__lead {
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.625;
  color: #1A1A1A;
  margin-bottom: 18px;
}

.gallery-achievements__grid {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  justify-items: center;;
}

.gallery-achievements__group {
  padding: 10px 0 16px;
}

.gallery-achievements__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 2;
  color: #1A1A1A;
}

.gallery-achievements__list {
  display: grid;
}

.gallery-achievements__list a:hover,
.gallery-achievements__list a:focus,
.gallery-achievements__list a:active  {
  color: #9F353A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.gallery-achievements__list li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #1A1A1A;
  padding-left: 1em;
}

/* ============================================================
   PC BREAKPOINT
============================================================ */
@media (min-width: 850px) {
  .gallery-hero {
    padding: 120px 60px 0;
  }

  .gallery-hero__label {
    font-size: 16px;
  }

  .gallery-photo {
    padding: 60px 0px 30px;
  }

  .gallery-photo__text1 {
    margin: 8px 0 0;
    font-size: 18px;
    transform: translateY(8px);
  }
  
  .gallery-photo__text2 {
    font-size: 16px;
    transform: translateY(3px);
  }

  .gallery-photo__nav {
    display: flex;
  }

  .gallery-brand {
    padding: 190px 60px 79px;
  }

  .gallery-brand__heading {
    margin-bottom: 22px;
  }

  .gallery-brand__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-brand__logo {
    max-width: none;
  }

  .gallery-brand__logo a{
    width: 150px;
    height: 106px;
  }

  .gallery-brand__grid .gallery-brand__logo:last-child {
    grid-column: auto;
  }

  .gallery-achievements {
    padding: 70px 0px 120px;
  }

  .gallery-achievements__heading {
    font-size: 37px;
  }

  .gallery-achievements__lead {
    font-size: 16px;
    margin-bottom: 24px;
    letter-spacing: 0.07em;
  }

  .gallery-achievements__group {
    height: 169px;
    min-width: 515.5px;
  }

  .gallery-achievements__title {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .gallery-achievements__list li {
    font-size: 18px;
    line-height: 1.8;
    padding-left: 1em;
  }
}

@media (min-width: 1095px) {
  .gallery-achievements__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0 auto;
    width: 1095.5px;
  }

  .gallery-achievements__group {
    height: 175px;
    min-width: 515.5px;
  }
}

