@charset "UTF-8";

/* servicesArea */
.servicesArea {
  padding-bottom: 160px;
}
@media screen and (max-width: 767px) {
  .servicesArea {
    overflow: hidden;
  }
}

.worksArea::before {
  background-image: url(../../img/bgText_works.svg);
  background-position: top left 1.06vw;
}
@media print,
screen and (min-width: 768px) {
  .worksArea::before {
    background-position: top left 4px;
  }
}
@media print,
screen and (min-width: 1400px) {
  .worksArea .commonArea-title {
    margin-bottom: 3.33vw;
  }
}
@media print,
screen and (min-width: 1710px) {
  .worksArea .commonArea-title {
    margin-bottom: 57px;
  }
}

/* works */

@media print,
screen and (min-width: 768px) {
  .layout-works {
    margin: 8rem 0;
  }
}

.works-list {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(1, 1fr);
}
@media print,
screen and (min-width: 768px) {
  .works-list {
    gap: 8.1rem 6rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

.works-list__item a {
  display: block;
  height: 100%;
  background-color: #fff;
}

.works-list__item-img {
  width: 100%;
}

.works-list__item-img img {
  width: 100%;
  aspect-ratio: 687/420;
  object-fit: cover;
}

.works-list__item-title {
  margin: 0.8rem 0;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  letter-spacing: normal;
}
@media print,
screen and (min-width: 768px) {
  .works-list__item-title {
    margin: 1.6rem 0;
    font-size: 2rem;
    font-weight: 500;
  }
}

.works-list__item-title-sp {
  display: inline-block;
  padding-top: 0.8rem;
}
@media print,
screen and (min-width: 768px) {
  .works-list__item-title-sp {
    padding-top: 0;
  }
}

.works-list__item-title-sp-br {
  display: block;
}
@media print,
screen and (min-width: 768px) {
  .works-list__item-title-sp-br {
    display: none;
  }
}

.works-list__item-title-pc {
  display: none;
}
@media print,
screen and (min-width: 768px) {
  .works-list__item-title-pc {
    display: inline-block;
  }
}

.works-list__item-text {
  font-size: 1.2rem;
  line-height: 1.8;
}
@media print,
screen and (min-width: 768px) {
  .works-list__item-text {
    font-size: 1.4rem;
  }
}


/* カテゴリーコンテナ */
.category-container-pc {
  background-color: #f6f6f6;
  padding: 4rem;
  border-radius: 8px;
  display: none;
}
@media print,
screen and (min-width: 768px) {
  .category-container-pc {
    display: block;
  }
}

.category-container-sp {
  background-color: #f6f6f6;
  border-radius: 8px;
  padding: 1.6rem;
  display: block;
}
@media print,
screen and (min-width: 768px) {
  .category-container-sp {
    display: none;
  }
}

.category {
  display: flex;
  gap: 2.4rem;
  flex-direction: column;
}
@media print,
screen and (min-width: 768px) {
  .category {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}

.category:not(:last-child) {
  margin-bottom: 2.4rem;
}

.category-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 18rem;
  margin: 0;
  flex-shrink: 0;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: start;
  flex: 1;
}

@media print,
screen and (min-width: 768px) {
  .tag-group {
    gap: 0.8rem;
  }
}

.tag {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid #666666;
  background-color: white;
  padding: 0.8rem 1.6rem;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  word-break: auto-phrase;
  width: fit-content;
}

@media print,
screen and (min-width: 768px) {
  .tag {
    font-size: 1.6rem;
  }
}

.tag:hover {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.tag.active {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.filter-menu {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f6f6f6;
  display: block;
  position: relative;
}
@media print,
screen and (min-width: 768px) {
  .filter-menu {
    display: none;
  }
}

.filter-menu__toggle {
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: center;
  background: #f6f6f6;
  border-radius: 6px;
  transition: background 0.3s;
  border: none;
  width: 100%;
  text-align: center;
  justify-content: center;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 100%) bottom / 80% 1px no-repeat;
}

.filter-menu__toggle::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("./img/mdi_slider.svg");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
}

.filter-menu__toggle::after {
  content: "＋";
  font-size: 18px;
  font-weight: bold;
  color: #555;
  display: inline-block;
  transition: transform 1s ease, content 1s ease;
  position: absolute;
  right: 5%;
}

.filter-menu[open] .filter-menu__toggle::after {
  content: "－";
  transform: rotate(180deg);
}

.filter-section__title {
  font-size: 14px;
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 8px;
}

.filter-section__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  gap: 6px;
  justify-content: start;
}

.filter-section__button {
  width: fit-content;
  min-width: 80px;
  max-width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fafafa;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  white-space: nowrap;
}

.filter-section__button:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

.filter-section__button--active {
  background: #000;
  color: #fff;
  font-weight: bold;
}

.filter-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 1.6rem 0;
}

@media print,
screen and (min-width: 768px) {
  .filter-title {
    display: none;
  }
}

.filter-menu__toggle::marker {
  content: none;
}