#case {
  background-color: #f7f7f7;
  padding-top: 70px;
  padding-bottom: 63px;
}

@media screen and (max-width: 767px) {
  #case {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

.case__container {
}

@media screen and (max-width: 999px) {
  .case__container {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }
}

.case__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.case__title p {
  font-size: 36px;
  letter-spacing: 0.06em;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .case__title p {
    font-size: 24px;
  }
}

.case__title h2 {
  letter-spacing: 0.04em;
  font-weight: bold;
  font-size: 12px;
  margin-top: -5px;
  margin-bottom: 22px;
}

.case__content {
  text-align: center;
  line-height: 2.14285714286;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.case__itemsWrapper {
  margin-top: 22px;
}

.case__items {
  margin-bottom: 0px !important;
  padding-bottom: 25px !important;
}

.case__items .slick-track {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.case__items .slick-dots li button:before {
  font-size: 12px !important;
  width: 12px;
  height: 12px;
  opacity: 1 !important;
  border: 1px solid #000;
  color: transparent;
  border-radius: 500px;
}

@media screen and (max-width: 767px) {
  .case__items .slick-dots li button:before {
    font-size: 9px !important;
    width: 9px;
    height: 9px;
  }
  .slick-dots li {
    width: 10px !important;
    height: 10px !important;
  }
  .case__items .slick-dots li.slick-active button:before {
    opacity: 1 !important;
    color: transparent;
    background-color: #000;
    width: 12px;
    height: 12px;
    border-radius: 500px;
  }
}

.case__items .slick-dots li.slick-active button:before {
  opacity: 1 !important;
  color: transparent;
  background-color: #000;
  width: 9px;
  height: 9px;
  border-radius: 500px;
}
@media screen and (max-width: 999px) {
}

.case__item {
  position: relative;
  width: 384px;
/*   height: 400px; */

  display: flex !important;
  flex-direction: column;
}

@media screen and (max-width: 767px) {
  .case__item {
    width: 335px;
  }
}

.case__itemCat {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #818181;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.02em;
  z-index: 1;
	display:none;
}

.case__itemCat p {
  margin: 0;
  padding: 8px 15px;
}

.case__itemImage {
  height: 200px; /* 画像部分の高さを固定 */
  overflow: hidden;
}

.case__itemImage img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像を縦横比を保ちながらフィット */
}

.case__itemText {
  flex-grow: 1;
  padding-left: 0px;
  padding-right: 0px;
}

.case__itemSubTitle {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #7b7b7b;
  padding-top: 5px;
  margin-left: 3px;
}

.case__itemTitle {
  font-size: 16px;
  letter-spacing: 0.04em;
  font-weight: bold;
  color: #000;
  margin-left: 3px;
  overflow: hidden;
}

.case__itemTitle h3 {
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 最大3行まで表示 */
  -webkit-box-orient: vertical;
  line-clamp: 3; /* 標準プロパティ */
  overflow: hidden;
}

.case__itemContent {
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.85714285714;
  margin-top: 6px;
}

.case__itemContent p {
  margin: 0;
}

.case__buttonWrapper {
  text-align: center;
  margin-top: 52px;
}

.case__button {
  width: 195px !important;
  padding: 11px 0px 11px 4px !important;
}

.case__container--archive {
  max-width: 1300px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

@media screen and (max-width: 999px) {
  .case__container--archive {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }
}

.case__items--archive {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
	row-gap:30px;
}

@media screen and (max-width: 999px) {
  .case__items--archive {
    flex-direction: column;
  }
}

.case__items--archive .case__item {
  width: 30%;
}

@media screen and (max-width: 999px) {
  .case__items--archive .case__item {
    width: 100%;
  }
}

/* 関連記事のグリッドレイアウト */
.same-category .case__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.same-category .case__item {
  width: calc(33.333% - 14px);
}

@media screen and (max-width: 768px) {
  .same-category .case__item {
    width: 100%;
  }
}

.case__hashtag {
	font-size:12px;
}