.case {
  overflow: hidden;
  padding-bottom: 8rem;
  background-color: rgba(248, 248, 248, 1);
}
.case-fv {
  padding-top: 22.8rem;
  padding-bottom: 9rem;
}
.case-title {
  font-size: 5.2rem;
  font-weight: bold;
  text-align: center;
}
.case-subtitle {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-top: 5rem;
  text-align: center;
}
.pickup-inner {
  width: 120rem;
  margin: 0 auto;
}
.case-item {
  position: relative;
  border-radius: 2rem;
}
.case-item-img img {
  border-radius: 2rem;
}
.case-item-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* background-color: rgba(0, 0, 0, 0.3); */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.00) 100%);
  padding: 2rem;
  box-sizing: border-box;
  height: 100%;
  border-radius: 2rem;
}
.case-item-category {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 1rem;
  background-color: #fff;
  color: #222;
  border-radius: 1.2rem;
  padding: 0.6rem 1.2rem;
  display: inline-block;
}
.case-item-desc p {
  color: #fff;
  font-size: 2.4rem;
  line-height: 3.4rem;
}

.swiper-slide {
  border-radius: 2rem;
}

.case-logo-wrap {
  margin-top: 6rem;
}

.case-company-logo {
  border-radius: 2rem;
}

.case-archive {
  margin-top: 8rem;
}

.seach-case-title {
  font-size: 4.4rem;
  font-weight: bold;
  text-align: center;
  text-align: left;
}

.case-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.filter-btn {
  padding: 0.4rem 1.2rem;
  border: 1px solid #000;
  background: #fff;
  border-radius: 4rem;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.filter-btn.active {
  background: #000;
  color: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.case-card {
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.05);
}

.swiper .swiper-slide {
	height: auto;
}

.swiper .case-card {
	height: 100%;
}

.swiper .case-card-news {
	height: 100%;
}


.case-card-news {
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.case-card-news:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.05);
}

.case-card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.case-card-body {
  padding: 2rem;
}

.case-card-type {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.case-card-title {
  font-weight: 500;
  margin-bottom: 2rem;
  font-size: 2rem;
  line-height: 1.4;
  margin-top: 1.2rem;
}

.case-card-company {
  font-size: 1.6rem;
  font-weight: 400;
  /* margin-top: 0.8rem; */
  color: #666;
}

.case-news {
  margin-top: 12rem;
}
.case-news-wrap {
  margin-top: 4rem;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  /* ページネーションの位置調整 */
  bottom: -4rem !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #000 !important;
}

.swiper-slide {
  padding-bottom: 2rem;
}

/* detail */
.case-detail-box {
  background: #fff;
  border-radius: 2rem;
  padding: 10rem;
  margin: 2rem auto;
  max-width: 96rem;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 10rem;
}

.case-detail-row {
  display: flex;
  padding: 2.4rem 0;
  border-bottom: 1px solid #eee;
}

.case-detail-label {
  width: 16rem;
  font-weight: 500;
  /* color: #333; */
  font-size: 1.8rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.case-detail-content {
  flex: 1;
  font-size: 1.8rem;
  line-height: 1.4;
  /* color: #333; */
}

.case-detail-tag {
  display: inline-block;
  margin-left: 1.8rem;
  padding: 0.6rem 2rem;
  font-size: 1.6rem;
  border-radius: 999px;
  /* color: #333; */
  border: 1px solid #222;
}

.case-detail-note {
  margin-top: 4rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: #666;
  line-height: 1.6;
}

.robot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.robot-item-link {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-size: 2rem;
  text-decoration: underline;
}

.robot-item-link:hover {
  background: #e0e0e0;
}

.robot-item-text {
  display: inline-block;
  font-size: 0.95rem;
  color: #666;
}

.inner {
  width: 120rem;
  margin: 0 auto;
  padding-bottom: 8rem;
}

.case-detail-title {
  font-size: 4.4rem;
  font-weight: bold;
  text-align: left;
}

.case-detail-slider {
  max-width: 80rem;
}
.swiper-slide img {
  border-radius: 2rem;
}
.case-detail {
  background-color: rgba(248, 248, 248, 1);
  overflow: hidden;
}

.whtiepaper {
  background-color: #fff;
  border-radius: 2rem;
  max-width: 96rem;
  margin: 0 auto;
  padding: 6rem 0;
  margin-top: 6rem;
}
.whitepaper-title {
  font-size: 2.4rem;
  text-align: center;
  font-weight: 600;
}
.whitepaper-text {
  font-size: 1.6rem;
  text-align: center;
  margin-top: 2rem;
}

.whitepaper-btn {
  display: table;
  padding: 1.2rem 2.4rem;
  background: #000;
  color: #fff;
  border-radius: 4rem;
  margin-top: 2rem;
  font-size: 1.6rem;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: auto;
}
.whitepaper-btn a {
  color: #fff;
}
.whitepaper-btn:hover {
  background: #666;
}

@media screen and (max-width: 768px) {
  .case-subtitle {
    font-size: 1.4rem;
  }
  .case-title {
    font-size: 3.2rem;
  }
  .pickup-inner {
    width: 100%;
    padding: 0 2rem;

    box-sizing: border-box;
  }
  .case-grid {
    display: block;
    gap: initial;
    margin-top: 2rem;
  }
  .case-card {
    margin-bottom: 2rem;
  }
  .inner {
    width: 100%;
    box-sizing: border-box;
    padding: 0 2rem;
    padding-bottom: 4rem;
  }
  .case-detail-title {
    font-size: 3.2rem;
  }
  .case-detail-slider {
    max-width: 100%;
  }
  .case-detail-box {
    padding: 2rem;
  }
  .case-detail-row {
    display: block;
    padding: 1.6rem 0;
    border-bottom: 1px solid #eee;
  }
  .case-detail-content {
    font-size: 1.6rem;
  }
  .case-detail-tag {
    font-size: 1.4rem;
  }
}

.news-single-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
  width: 100%;
  background-color: #fff;
  box-sizing: border-box;
}

.news-single-navigation .previous-post a,
.news-single-navigation .next-post a {
  display: inline-block;
  padding: 1rem 2rem;
  color: #222;
  text-decoration: none;
  border-radius: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.news-single-navigation .previous-post a:hover,
.news-single-navigation .next-post a:hover {
  background-color: #ddd;
}

.news-single-navigation .previous-post {
  text-align: center;
  width: 30%;
}

.news-single-navigation .next-post {
  text-align: center;
  width: 30%;
}

.nav-disabled{
  color: #aaa;
  cursor: not-allowed;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
  .news-single-navigation {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0;
  }

  .news-single-navigation .previous-post,
  .news-single-navigation .next-post {
    text-align: center;
  }

  .news-single-navigation .previous-post a,
  .news-single-navigation .next-post a {
    width: 100%;
    padding: 0;
    padding-bottom: 2rem;
  }
}

.case-detail-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem auto;
  max-width: 80rem;
}

.case-detail-single-img {
  max-width: 100%;
  height: auto;
  border-radius: 2rem;
}