@charset "UTF-8";
/* 製作実績一覧（案B）: 詳しい加工事例カードの仕様行と、下部の「その他の製作品」ギャラリー
   見た目は既存の works.css（タグ・角丸写真カード・青グラデーション）に合わせる */

/* 詳しい加工事例: 件数の見出しとカードの仕様1行 ------------------------- */
.worksCases__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
}
.worksCases__eyebrow,
.worksGallery__eyebrow {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #0070d0;
  letter-spacing: 0.12em;
}
.worksCases__title,
.worksGallery__title {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.worksCases__note {
  font-size: 14px;
  color: #5a6470;
}
.works__spec {
  margin-top: 6px;
  font-size: 13px;
  color: #4a5560;
  letter-spacing: 0.04em;
}

/* 絞り込みタグの件数 */
.works__navSubCount,
.worksGallery__filterCount {
  font-size: 0.9em;
}

/* ギャラリー ------------------------------------------------------------ */
.worksGallery {
  position: relative;
  padding: 100px 0 120px;
  background: #ebf9ff;
}
.worksGallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.worksGallery__count {
  margin-left: 14px;
  font-family: Oswald, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #5a6470;
}
.worksGallery__lead {
  font-size: 15px;
  line-height: 1.9;
  color: #2e3740;
  text-align: right;
}
.worksGallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.worksGallery__filter {
  min-width: 108px;
  min-height: 44px;
  padding: 6px 18px 5px;
  border: 0;
  background: #ebebeb;
  color: #18181c;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.worksGallery__filter.is-active {
  background: linear-gradient(90deg, #0070d0 0, #00b5d6 100%);
  color: #fff;
  font-weight: 700;
}
.worksGallery__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 36px;
}
.worksGallery__item[hidden] {
  display: none;
}
.worksGallery__open {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #18181c;
  font-family: inherit;
  text-align: left;
  cursor: zoom-in;
}
.worksGallery__imgBox {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 66%;
  overflow: hidden;
  border-radius: 10px;
  background: #e6e8ea;
}
.worksGallery__imgBox img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.worksGallery__open:hover .worksGallery__imgBox img,
.worksGallery__open:focus-visible .worksGallery__imgBox img {
  transform: scale(1.07);
}
.worksGallery__open:focus-visible {
  outline: 2px solid #0070d0;
  outline-offset: 4px;
}
.worksGallery__label {
  font-size: 13px;
  letter-spacing: 0.04em;
}
.worksGallery__moreWrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.worksGallery__more {
  min-width: 320px;
  min-height: 56px;
  border: 1px solid #0070d0;
  background: #fff;
  color: #0070d0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.worksGallery__more:hover {
  background: #0070d0;
  color: #fff;
}
.worksGallery__more[hidden] {
  display: none;
}

/* 拡大表示 */
.is-worksGalleryOpen,
.is-worksGalleryOpen body {
  overflow: hidden;
}
.worksGallery__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 22, 34, 0.9);
}
.worksGallery__modal[hidden] {
  display: none;
}
.worksGallery__modalInner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 1040px;
  max-width: 100%;
}
.worksGallery__modalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.worksGallery__pos {
  font-family: Oswald, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.worksGallery__total {
  color: #9fb3c4;
}
.worksGallery__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.worksGallery__stage {
  position: relative;
  height: min(640px, 72vh);
  overflow: hidden;
  border-radius: 14px;
  background: #e6e8ea no-repeat center / contain;
}
.worksGallery__modalImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.worksGallery__nav {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0070d0;
  cursor: pointer;
}
.worksGallery__nav--prev {
  left: 20px;
}
.worksGallery__nav--next {
  right: 20px;
}
.worksGallery__caption {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

/* スマホ（既存 works.css と同じ区切り） */
@media screen and (max-width: 680px), screen and (max-width: 737px) and (orientation: landscape) {
  .worksCases__head {
    flex-direction: column;
    gap: 4px;
    margin-top: 36px;
  }
  .worksCases__title,
  .worksGallery__title {
    font-size: 22px;
  }
  .works__spec {
    font-size: 12px;
  }
  .worksGallery {
    padding: 60px 0 70px;
  }
  .worksGallery__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .worksGallery__lead {
    font-size: 14px;
    text-align: left;
  }
  .worksGallery__filters {
    gap: 8px;
    margin-top: 24px;
  }
  .worksGallery__filter {
    min-width: 0;
    font-size: 14px;
  }
  .worksGallery__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin-top: 24px;
  }
  .worksGallery__more {
    width: 100%;
    min-width: 0;
  }
  .worksGallery__modal {
    padding: 16px;
  }
  .worksGallery__stage {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .worksGallery__nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
  .worksGallery__nav--prev {
    left: 10px;
  }
  .worksGallery__nav--next {
    right: 10px;
  }
  .worksGallery__caption {
    font-size: 15px;
  }
}
