@charset "utf-8";

/* 事例 [ /casestudy/ ]
====================================================================== */

/* ===============================================
 pagetitle
=============================================== */

.l-pagetitle {
  padding: 30px 0 60px;
}
.l-pagetitle__title {
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.l-pagetitle__text {
  margin-top: 45px;
  font-size: 1.8rem;
  font-weight: 500;
}
@media screen and (max-width: 767px) {
  .l-pagetitle {
    padding: 25px 0 35px;
  }
  .l-pagetitle__title {
    font-size: 3.8rem;
  }
  .l-pagetitle__text {
    margin-top: 30px;
  }
}

/* ===============================================
 Case Filter
=============================================== */

.case-filter {
  position: relative;
  background-color: #fff;
}
.case-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--bg-base-color);
  z-index: 0;
}
.case-filter__inner {
  position: relative;
  width: 750px;
  max-width: calc(100% - var(--pc-base-padding) * 2);
  margin-inline: auto;
  z-index: 1;
}
.case-filter__search-area {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px 6.666% 30px;
}
.case-filter__heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--txt-base-color);
  margin-bottom: 30px;
  text-align: center;
}
.case-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  justify-content: center;
}
.case-filter__list-link {
  display: inline-block;
  padding: 0 20px;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 36px;
  color: var(--txt-base-color);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.case-filter__list-item.current .case-filter__list-link {
  background-color: var(--corp-color);
  border-color: var(--corp-color);
  color: #fff;
}
@media screen and (max-width: 767px) {
  .case-filter__inner {
    max-width: 100%;
    padding-inline: var(--sp-base-padding);
    width: 750px;
  }
  .case-filter__search-area {
    padding: 30px 35px;
  }
  .case-filter__heading {
    font-size: 2rem;
  }
}
@media (hover) {
  .case-filter__list-link:hover {
    border-color: var(--corp-color);
    color: var(--corp-color);
  }
}

/* ===============================================
 case-index
=============================================== */

.case-index {
  padding: 90px 0;
  background-color: #fff;
}
.case-index__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-index__number {
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--corp-color);
  letter-spacing: 0.4em;
}
@media screen and (max-width: 767px) {
  .case-index {
    padding: 70px 0 60px;
  }
  .case-index__heading {
    display: block;
  }
  .case-index__number {
    font-size: 2rem;
  }
}

/* Casestudy Per Page Select */

.case-per-page-select {
  position: relative;
  width: 110px;
}
.case-per-page-select .custom-select__trigger {
  width: 100%;
  height: 60px;
}
.case-per-page-select .custom-select__label-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-base);
}
.case-per-page-select .custom-select__selected {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--txt-base-color);
  display: inline;
}
.case-per-page-select .custom-select__arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--corp-color);
  border-bottom: 2px solid var(--corp-color);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}
.case-per-page-select
  .custom-select__toggle:checked
  ~ .custom-select__trigger
  .custom-select__arrow {
  transform: rotate(-135deg);
}
.case-per-page-select .custom-select__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: -1px;
  padding: 10px 0;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast),
    transform var(--transition-fast);
  z-index: 100;
  overflow: hidden;
}
.case-per-page-select .custom-select__dropdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--border-color);
}
.case-per-page-select .custom-select__toggle:checked ~ .custom-select__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.case-per-page-select .custom-select__option {
  display: block;
  padding: 0 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.case-per-page-select .custom-select__option:hover {
  background-color: #f5f5f5;
}
.case-per-page-select .custom-select__input {
  display: none;
}
.case-per-page-select .custom-select__text {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--txt-base-color);
}
.case-per-page-select .custom-select__input:checked + .custom-select__text {
  color: var(--corp-color);
  font-weight: 700;
}
@media screen and (max-width: 767px) {
  .case-per-page-select {
    width: 100%;
    margin-top: 20px;
  }
  .case-per-page-select .custom-select__trigger {
    height: 84px;
  }
  .case-per-page-select .custom-select__label-display {
    padding: 0 25px;
  }
  .case-per-page-select .custom-select__selected {
    font-size: 1.8rem;
  }
  .case-per-page-select .custom-select__arrow {
    width: 12px;
    height: 12px;
  }
  .case-per-page-select .custom-select__text {
    font-size: 2rem;
  }
}

/* .case-index__list */

.case-index__list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 3.333%;
}
.case-index__item {
  display: flex;
  flex-direction: column;
}
.case-index__item-image {
  position: relative;
}
.case-index__item-image img {
  width: 100%;
  max-width: 360px;
  margin: auto;
}
.case-index__link {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-index__item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 20px;
}
.case-index__info-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.6;
  padding-bottom: 15px;
}
.case-index__info-text {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
}
.case-index__info-spec {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0 15px;
}
.case-index__spec-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--txt-base-color);
  padding: 2px 5px;
  border: 1px solid var(--txt-base-color);
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
}
.case-index__spec-value {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--txt-base-color);
  letter-spacing: 0;
}
@media screen and (max-width: 767px) {
  .case-index__list {
    margin-top: 60px;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 7.894%;
  }
  .case-index__item-info {
    margin-top: 30px;
  }
  .case-index__info-title {
    font-size: 1.8rem;
  }
  .case-index__info-spec {
    margin-top: 10px;
    display: block;
  }
  .case-index__spec-title {
    font-size: 1.3rem;
    padding: 1px 8px;
    text-align: center;
  }
  .case-index__spec-value {
    font-size: 1.6rem;
    text-align: center;
    margin-top: 7px;
  }
}
@media (hover) {
  .case-index__link:hover .case-index__info-title,
  .case-index__link:hover .case-index__info-text,
  .case-index__link:hover .case-index__spec-value {
    color: var(--corp-color);
  }
  .case-index__link:hover .case-index__spec-title {
    color: var(--corp-color);
    border: 1px solid var(--corp-color);
  }
}

/* Casestudy Pagination */

.case-index__pagination {
  margin-top: 100px;
}
.case-index__pagination-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-index__pagination-item {
  display: flex;
}
.case-index__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  padding: 0 20px;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--txt-base-color);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.case-index__pagination-item:first-child .case-index__pagination-link {
  border-left: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
}
.case-index__pagination-item:last-child .case-index__pagination-link {
  border-right: 1px solid var(--border-color);
  border-radius: 0 4px 4px 0;
}
.case-index__pagination-item.active .case-index__pagination-link {
  background-color: var(--corp-color);
  color: #fff;
  cursor: default;
  pointer-events: none;
}
.case-index__pagination-item.disabled .case-index__pagination-link {
  color: #a2a2a2;
  cursor: default;
  pointer-events: none;
}
.case-index__pagination-item.disabled .case-index__pagination-link::before,
.case-index__pagination-item.disabled .case-index__pagination-link::after {
  border-color: #a2a2a2;
}
.case-index__pagination-item.prev .case-index__pagination-link,
.case-index__pagination-item.next .case-index__pagination-link {
  font-size: 1.8rem;
  position: relative;
}
.case-index__pagination-item.prev .case-index__pagination-link::before,
.case-index__pagination-item.prev .case-index__pagination-link::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  left: 10px;
  width: 0.625em;
  height: 1px;
  border-radius: 9999px;
  background-color: currentColor;
  transform-origin: calc(100% - 0.5px) 50%;
}
.case-index__pagination-item.prev .case-index__pagination-link::before {
  transform: rotate(127deg);
}
.case-index__pagination-item.prev .case-index__pagination-link::after {
  transform: rotate(-127deg);
}
.case-index__pagination-item.next .case-index__pagination-link::before,
.case-index__pagination-item.next .case-index__pagination-link::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 20px;
  width: 0.625em;
  height: 1px;
  border-radius: 9999px;
  background-color: currentColor;
  transform-origin: calc(100% - 0.5px) 50%;
}
.case-index__pagination-item.next .case-index__pagination-link::before {
  transform: rotate(53deg);
}
.case-index__pagination-item.next .case-index__pagination-link::after {
  transform: rotate(-53deg);
}
.case-index__pagination-item.prev .case-index__pagination-text {
  margin-left: 26px;
}
.case-index__pagination-item.next .case-index__pagination-text {
  margin-right: 26px;
}
.case-index__pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  padding: 0 20px;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--txt-base-color);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-left: none;
  border-right: none;
  cursor: default;
}
@media screen and (max-width: 767px) {
  .case-index__pagination {
    margin-top: 60px;
  }
  .case-index__pagination-item.prev .case-index__pagination-text {
    margin-left: 24px;
  }
  .case-index__pagination-item.next .case-index__pagination-text {
    margin-right: 24px;
  }
  .case-index__pagination-item.dots,
  .case-index__pagination-item.last {
    display: none;
  }
}
@media screen and (max-width: 429px) {
  .case-index__pagination-link {
    padding: 0 10px;
  }
}
@media (hover) {
  .case-index__pagination-link:hover {
    background-color: #f5f5f5;
  }
  .case-index__pagination-item.active .case-index__pagination-link:hover {
    background-color: var(--corp-color);
  }
}

/* --- */
