@charset "UTF-8";

/* ========================================
	style
======================================== */

body {
  overflow-x: hidden;
}

/* --------- 実績紹介トップ --------- */

.works__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

@media screen and (max-width: 767px) {
  .works__list {
    grid-template-columns: 1fr;
  }
}

/* ［ サムネイル ］画像部分 */
.works__image {
  /* position: relative; */
  aspect-ratio: 4 / 3;
}

.works__image img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

/* ［ サムネイル ］コンテンツ部分 */
.works__item {
  border-radius: 5px;
  overflow: hidden;
  transition:
    box-shadow ease 0.3s,
    transform ease 0.3s;
}

.works__inner {
  background: #fff;
  padding: 2rem 7% 3rem;
}

.works__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-base);
  margin-top: 1.2rem;
  /* block-size: 1.8lh; */
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category__list {
  display: flex;
  block-size: 28px;
  column-gap: 3px;
  font-size: 1.2rem;
}

.category__main {
  display: flex;
  align-items: center;
  block-size: 100%;
  font-weight: 500;
  color: #fff;
  padding: 0 2em;
  background: var(--black);
  border-left: 6px solid var(--nawa-red);
}

.category__sub {
  display: flex;
  align-items: center;
  block-size: 100%;
  font-weight: 500;
  color: var(--text-base);
  padding: 0 1em;
  background: var(--gray-100);
}

/* カスタムセレクトボックス -- */
.select-options li:not(:first-of-type) {
  /*text-indent: -0.3em;*/
  text-indent: 1em;
  padding-left: 2.6rem;
}
.select-options li:not(:first-of-type)::before {
  display: inline-block;
  content: "-";
  padding-right: 0.6em;
}

/* --------- 実績紹介｜詳細ページ --------- */

.page-header.second {
  margin-bottom: 2em;
}

/* -- トップギャラリーセクション -- */

.gallery {
  margin-bottom: 6em;
}

.gallery .category__list {
  margin-bottom: 1em;
}

.gallery .title-area h2 {
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 1.6;
  font-weight: 600;
}

.gallery .title-area .date {
  font-family: var(--font-family-en);
  font-size: clamp(1.4rem, 1.5vw, 1.6rem);
  color: var(--text-second-color);
  margin-top: 1em;
}

/* ギャラリー */
.gallery-swiper {
  position: relative;
  width: 100%;
  margin-left: 0;
  padding-top: clamp(2em, 3vw, 4em);
  padding-inline: 0;
  box-sizing: border-box;
}

.gallery-swiper .swiper {
  width: 100%;
  height: auto;
}

.gallery-swiper .main-slider {
  position: relative;
  width: 100vw;
  aspect-ratio: 3 / 2;
  margin-left: calc(-50vw + 50%);
}

.gallery-swiper .main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.gallery-swiper .thumb-slider {
  position: relative;
  width: 100vw;
  padding-inline: 6%;
  margin-left: calc(-50vw + 50%);
  margin-top: clamp(1rem, 3vw, 3rem);
}

.gallery-swiper .thumb-slider .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
}

.gallery-swiper .thumb-slider .swiper-slide {
  width: clamp(80px, 18vw, 180px);
  flex-shrink: 0;
  cursor: pointer;
  margin-right: clamp(8px, 2vw, 20px);
}

.gallery-swiper .thumb-slider .swiper-slide-thumb-active {
  position: relative;
}

.gallery-swiper .thumb-slider .swiper-slide-thumb-active {
  outline: 3px solid var(--black);
  outline-offset: -3px;
}

/* NEXT/PREVボタン */
.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transform: none;
  width: clamp(30px, 8vw, 80px);
  height: clamp(100px, 26.4vw, 264px);
  cursor: pointer;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-swiper .swiper-button-prev {
  left: 0;
}

.gallery-swiper .swiper-button-next {
  right: 0;
}

.gallery-swiper .swiper-button-prev::after,
.gallery-swiper .swiper-button-next::after {
  display: none;
}

.gallery-swiper .swiper-button-prev::before,
.gallery-swiper .swiper-button-next::before {
  content: "";
  display: block;
  width: 22%;
  height: 100%;
  background-image: url("images/gallery-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.gallery-swiper .swiper-button-prev::before {
  transform: scaleX(-1);
}

/* -- 前後比較セクション -- */

.comparison {
  margin-bottom: 6em;
}

.comparison .before-after-section:not(:first-of-type) {
  margin-top: 3rem;
}

.image-box {
  text-align: center;
  inline-size: 100%;
  max-width: 570px;
}

.image-box .photo {
  inline-size: 100%;
  aspect-ratio: 4 / 2.2;
  overflow: hidden;
}

.image-box .photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.ba-label {
  width: 100%;
  padding: 0.2em 0;
  font-family: var(--font-family-en);
  font-weight: 500;
  text-align: center;
  font-size: clamp(2rem, 2.2vw, 2.4rem);
}

.before .ba-label {
  background-color: var(--gray-200);
}

.after .ba-label {
  color: #fff;
  background-color: var(--nawa-green);
}

.caption {
  margin: 0.8rem 0;
  font-size: clamp(1.4rem, 1.6vw, 1.8rem);
}

/* ========================================
	マウスポインタ専用
======================================== */
@media (hover: hover) and (pointer: fine) {
  .works__item:hover {
    box-shadow: 0px 3px 30px 0px rgba(62, 58, 57, 0.2);
    transform: translateY(-4px);
  }

  .works__item:hover .works__image::before {
    opacity: 0;
  }

  .works__item:hover .works__image img {
    filter: saturate(1);
  }

  .works__image {
    position: relative;
  }

  .works__image img {
    filter: saturate(0.5);
    transition: filter 0.3s ease;
  }

  .works__image::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    background: var(--filter-image-url) var(--filter-image-option);
    transition: opacity 0.3s ease;
  }
}

/* ========================================
	768px未満専用スタイル（SP）
======================================== */
@media screen and (width < 768px) {
  /* --------- 実績紹介トップ --------- */

  /* カスタムセレクトボックス -- */
  .select-options li {
    padding: 0;
    height: 5.21rem;
    position: relative;
  }
  .select-options li:not(:first-of-type) {
    padding-left: 1.5rem;
  }
  .select-options li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8em 2em;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  /* --------- 実績紹介｜詳細ページ --------- */

  /* -- 前後比較セクション -- */

  .before-after-section {
    background-color: var(--gray-200);
    border-radius: 5px;
    padding: 5vw;
  }

  .before {
    border-bottom: 1px dotted var(--line-gray);
    padding-bottom: 2vw;
    margin-bottom: 6vw;
  }

  .before .ba-label {
    background-color: var(--gray-100);
  }
}

/* ========================================
	1180px未満専用スタイル（TAB&SP）
======================================== */
@media screen and (width < 1180px) {
}

/* ========================================
	1024px未満専用スタイル（TAB）
======================================== */
@media screen and (width < 1024px) {
}

/* ========================================
	768px以上（PC&TAB）
======================================== */
@media screen and (768px <= width) {
  /* --------- 実績紹介トップ --------- */

  .page-header.second {
    margin-bottom: 1em;
  }

  /* カテゴリーリンク */
  .category-link li a,
  .category-link .selectbox {
    inline-size: 20vw;
    max-inline-size: 200px;
  }
  .category-link .select-options li {
    padding: 0 0 0 0.4em;
    position: relative;
    height: 4.25rem;
  }
  .category-link .select-options a {
    display: flex;
    inline-size: inherit;
    max-inline-size: inherit;
    block-size: 100%;
    padding-inline: inherit;
    border: none;
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    width: 100%;
    padding: 0.5em 1em;
    left: 0;
    top: 0;
    position: absolute;
  }
  .category-link .select-options a:hover {
    background-color: transparent;
    border: none;
    color: var(--black);
  }
  .works__inner {
    padding: 2rem 6% 3rem;
  }

  .works__title {
    font-size: 1.8rem;
    block-size: 1.8lh;
    line-height: 1.6;
  }

  .category__main {
    font-size: 1.4rem;
    padding: 0 1.75em;
  }

  /* --------- 実績紹介｜詳細ページ --------- */

  /* -- トップギャラリーセクション -- */

  .gallery {
    margin-bottom: 8em;
  }

  .gallery .category__main,
  .gallery .category__sub {
    font-size: 1.6rem;
  }

  .gallery-swiper .main-slider {
    aspect-ratio: 2 / 1.5;
    max-block-size: 850px;
  }

  /* -- 前後比較セクション -- */

  .before-after-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .image-box {
    inline-size: 46%;
  }

  .image-box .photo {
    aspect-ratio: 4 / 2.2;
  }

  .ba-label {
    padding: 0.2em 0;
  }

  .caption {
    margin: 0.8rem 0;
  }

  .arrow {
    inline-size: 20px;
    block-size: auto;
  }
}

/* ========================================
	768px以上1180px未満専用スタイル（TAB）
======================================== */
@media screen and (768px <=width < 1180px) {
}

/* ========================================
	1180px以上専用スタイル（PC）
======================================== */
@media print, screen and (1180px <=width) {
  /* --------- 実績紹介｜詳細ページ --------- */

  .page-header.second {
    margin-bottom: 0;
  }

  .gallery .title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .gallery .title-area h2 {
    inline-size: 80%;
  }

  .gallery .title-area .date {
    margin-top: 0;
  }
}

/* ========================================
	1800px以上専用スタイル（PC）
======================================== */
@media print, screen and (1800px <=width) {
  .works__list {
    grid-template-columns: repeat(4, 1fr); /* 4列で等分 */
  }
}
