@charset "UTF-8";

/* header */
@media (width >= 768px) {
  .header-right {
    flex: 1;
  }

  .header-cta {
    max-width: 166px;
  }
}

/* 症例 追加スタイル */
.archive-case {
  width: 100%;
}

.archive-case__list {
  padding: 10.6667vw 0 18.6667vw;
}

.p-case__archive-pickup {
  width: 100%;
  padding: 10.6667vw 0;
  background-color: #f3f1ee;
}

.p-case__archive-pickup-inner {
  width: 90%;
  margin: 0 auto;
}

.p-case__archive-pickup-title {
  margin-bottom: 8vw;
  font-size: 5.3333vw;
  text-align: center;
}

.p-case__archive-pickup-tab-btn {
  position: relative;
  display: flex;
  margin-bottom: 5.3333vw;
}

.p-case__archive-pickup-tab-btn button {
  position: relative;
  flex: 1;
  padding: 2.6667vw 0;
  font-size: 3.7333vw;
  color: #696156;
  background-color: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.p-case__archive-pickup-tab-btn button::after {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 0.2667vw;
  content: "";
  background-color: #ddd;
  transition: background-color 0.3s ease;
}

.p-case__archive-pickup-tab-btn button.is-active {
  pointer-events: none;
}

.p-case__archive-pickup-tab-btn button.is-active::after {
  background-color: #696156;
}

.p-case__archive-pickup-tab-content {
  position: relative;
}

.p-case__archive-pickup-tab-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p-case__archive-pickup-tab-item.is-active {
  position: relative;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.p-case__archive-pickup-tab-item.is-fading {
  opacity: 0;
}

.p-case__archive-pickup-list.swiper {
  overflow: hidden;
}

.p-case__archive-pickup-list-pagination.swiper-pagination {
  position: static;
  margin-top: 5.3333vw;
}

.p-case__archive-pickup-list-pagination.swiper-pagination
  .swiper-pagination-bullet {
  width: 2.6667vw;
  height: 2.6667vw;
  margin: 0 1.6vw;
  background-color: #fff;
  border: 1px solid rgb(105 97 86 / 40%);
  opacity: 1;
}

.p-case__archive-pickup-list-pagination.swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: #696156;
}

.is-single .p-case__archive-pickup-list-pagination {
  display: none;
}

.p-case__archive-pickup-card {
  height: auto;
  padding: 2.6667vw;
  background-color: #fff;
  border-radius: 1.6vw;
}

.p-case__archive-pickup-card a {
  display: block;
}

.p-case__archive-pickup-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 1.3333vw;
}

.p-case__archive-pickup-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-case__archive-pickup-card-detail {
  position: relative;
  max-height: 37.3333vw;
  padding: 5.3333vw 0 13.3333vw;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.p-case__archive-pickup-card-detail::before {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 24vw;
  content: "";
  background: #fff;
  background: linear-gradient(
    0deg,
    rgb(255 255 255) 0%,
    rgb(255 255 255) 30%,
    rgb(255 255 255 / 80%) 50%,
    rgb(255 255 255 / 0%) 100%
  );
  transition: opacity 0.4s ease;
}

.p-case__archive-pickup-card-detail dl {
  display: flex;
  gap: 5.3333vw;
  align-items: flex-start;
}

.p-case__archive-pickup-card-detail dl:not(:first-child) {
  margin-top: 4vw;
}

.p-case__archive-pickup-card-detail dl dt {
  width: 6em;
  padding: 1.3333vw 0;
  font-size: 4vw;
  text-align: center;
  background-color: #f3f1ee;
  border-radius: 1.6vw;
}

.p-case__archive-pickup-card-detail dl dd {
  flex: 1;
  padding-top: 0.4em;
  font-size: 3.7333vw;
  line-height: 1.5;
}

.p-case__archive-pickup-card-detail.is-open {
  max-height: 100%;
}

.p-case__archive-pickup-card-detail.is-open::before {
  opacity: 0;
}

.p-case__archive-pickup-card-detail.is-open
  .p-case__archive-pickup-card-more-btn
  button::after {
  transform: translateY(-20%) rotate(-135deg);
}

.p-case__archive-pickup-card-more-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.p-case__archive-pickup-card-more-btn button {
  position: relative;
  display: inline-block;
  padding: 1.3333vw 4vw 1.3333vw 0;
  font-size: 4vw;
  border: none;
}

.p-case__archive-pickup-card-more-btn button::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 2.1333vw;
  height: auto;
  aspect-ratio: 1/1;
  pointer-events: none;
  content: "";
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  transform: translateY(-70%) rotate(45deg);
}

.p-case__archive-title {
  margin-top: 10.6667vw;
  font-size: 5.3333vw;
  text-align: center;
}

.p-case__archive-sort {
  padding-top: 8vw;
}

.p-case__archive-sort-inner {
  width: 90%;
  margin: 0 auto;
}

.p-case__archive-sort form {
  display: flex;
  flex-wrap: wrap;
  gap: 2.6667vw;
  justify-content: space-between;
  width: 100%;
}

.p-case__archive-sort-item {
  position: relative;
  border: 1px solid #bbb;
}

.p-case__archive-sort-item::after {
  position: absolute;
  top: 50%;
  right: 1em;
  width: 2.1333vw;
  height: auto;
  aspect-ratio: 1/1;
  pointer-events: none;
  content: "";
  border-right: 1px solid #222;
  border-bottom: 1px solid #222;
  transform: translateY(-70%) rotate(45deg);
}

.p-case__archive-sort-item select {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.5em 2em 0.5em 0.8em;
  margin: 0;
  font-size: 4.2667vw;
  color: inherit;
  appearance: none;
  cursor: pointer;
  background-color: #fff;
  border: none;
  border-radius: none;
  -webkit-tap-highlight-color: transparent;
}

.p-case__archive-sort-item select:focus-visible {
  outline: none;
}

.p-case__archive-sort-item:nth-of-type(1) {
  width: 100%;
}

.p-case__archive-sort-item:nth-of-type(2),
.p-case__archive-sort-item:nth-of-type(3) {
  width: calc((100% - 2.6667vw) / 2);
}

.p-case__archive-sort-submit {
  display: block;
  width: 100%;
  padding: 0.7em 0;
  font-size: 4.2667vw;
  color: #fff;
  appearance: none;
  cursor: pointer;
  background-color: #978b7c;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.p-case__archive-sort-num {
  margin-top: 4vw;
  font-size: 3.7333vw;
}

@media (width >= 768px) {
  .archive-case__list {
    padding: 60px 0 70px;
  }

  .p-case__archive-pickup {
    padding: 70px 0 80px;
  }

  .p-case__archive-pickup-inner {
    max-width: 800px;
  }

  .p-case__archive-pickup-title {
    margin-bottom: 40px;
    font-size: 24px;
  }

  .p-case__archive-pickup-tab-btn {
    margin-bottom: 30px;
  }

  .p-case__archive-pickup-tab-btn::after {
    height: 1px;
  }

  .p-case__archive-pickup-tab-btn button {
    padding: 10px 0;
    font-size: 16px;
  }

  .p-case__archive-pickup-tab-btn button::after {
    height: 1px;
  }

  .p-case__archive-pickup-list-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
  }

  .p-case__archive-pickup-list-pagination {
    display: none;
  }

  .p-case__archive-pickup-card {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
  }

  .p-case__archive-pickup-card a:hover .p-case__archive-pickup-card-img img {
    opacity: 0.8;
  }

  .p-case__archive-pickup-card-img {
    border-radius: 5px;
  }

  .p-case__archive-pickup-card-img img {
    transition: opacity 0.3s ease;
  }

  .p-case__archive-pickup-card-detail {
    max-height: 120px;
    padding: 20px 0 45px;
  }

  .p-case__archive-pickup-card-detail::before {
    height: 70px;
  }

  .p-case__archive-pickup-card-detail dl {
    gap: 20px;
  }

  .p-case__archive-pickup-card-detail dl:not(:first-child) {
    margin-top: 15px;
  }

  .p-case__archive-pickup-card-detail dl dt {
    width: 6em;
    padding: 5px 0;
    font-size: 15px;
    border-radius: 6px;
  }

  .p-case__archive-pickup-card-detail dl dd {
    padding-top: 0.4em;
    font-size: 14px;
  }

  .p-case__archive-pickup-card-more-btn button {
    padding: 5px 15px 5px 0;
    font-size: 15px;
  }

  .p-case__archive-pickup-card-more-btn button::after {
    width: 8px;
  }

  .p-case__archive-title {
    margin-top: 70px;
    font-size: 24px;
  }

  .p-case__archive-sort {
    padding-top: 50px;
  }

  .p-case__archive-sort-inner {
    max-width: 1152px;
  }

  .p-case__archive-sort form {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .p-case__archive-sort-item select {
    padding: 0.5em 2em 0.5em 0.8em;
    font-size: 16px;
  }

  .p-case__archive-sort-item::after {
    width: 8px;
  }

  .p-case__archive-sort-item:nth-of-type(1) {
    width: 40%;
  }

  .p-case__archive-sort-item:nth-of-type(2),
  .p-case__archive-sort-item:nth-of-type(3) {
    width: 25%;
  }

  .p-case__archive-sort-submit {
    width: 10%;
    padding: 0.7em 0;
    font-size: 16px;
  }

  .p-case__archive-sort-num {
    margin-top: 15px;
    font-size: 16px;
  }
}
