.is-pc {
  display: block;
}

.is-sp {
  display: none;
}

.for-rent__card {
  position: relative;
  min-height: 435px;
  height: 100%;
  max-width: 434px;
  width: 100%;
  background: #f4f4f4;
  box-shadow: 1px 0 0 #a6a9ab, 0 1px 0 #a6a9ab, 1px 1px 0 #a6a9ab, 1px 0 0 #a6a9ab inset, 0 1px 0 #a6a9ab inset;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.for-rent__card:hover .for-rent__image img {
  transform: scale(1.1);
}
.for-rent__card:hover .for-rent__status.js-hover-active {
  animation: rotateStatusBackground 0.5s ease forwards;
}
.for-rent__card:hover .for-rent__status.js-hover-active::after {
  animation: rotateStatusText 0.5s ease forwards;
}
.for-rent__card:hover .for-rent__status.js-hover-inactive {
  animation: rotateStatusBackgroundReverse 0.5s ease forwards;
}
.for-rent__card:hover .for-rent__status.js-hover-inactive::after {
  animation: rotateStatusTextReverse 0.5s ease forwards;
}
.for-rent__card:hover .for-rent__card-arrow::before {
  transform: rotate(-24deg);
}
.for-rent__card:hover .for-rent__card-arrow img {
  animation: cardArrowFlyHorizontal 0.6s ease-in-out;
}
.for-rent__card:hover .for-rent__card-title {
  transition: all 0.5s ease;
}
.for-rent__card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 88px;
  pointer-events: auto;
}
.for-rent__image {
  width: 240px;
  height: 240px;
  overflow: hidden;
}
.for-rent__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.for-rent__status {
  position: absolute;
  top: 60px;
  left: calc(50% - 155px);
  height: 59px;
  width: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform 0.6s ease;
  z-index: 3;
}
.for-rent__status.js-in-view {
  animation: rotateStatusBackgroundReverse 0.5s ease forwards;
}
.for-rent__status.js-in-view::after {
  animation: rotateStatusTextReverse 0.5s ease forwards;
}
.for-rent__status:not(.js-in-view) {
  animation: rotateStatusBackground 0.5s ease forwards;
}
.for-rent__status:not(.js-in-view)::after {
  animation: rotateStatusText 0.5s ease forwards;
}
.for-rent__status.js-hover-active {
  animation: rotateStatusBackground 0.5s ease forwards;
}
.for-rent__status.js-hover-active::after {
  animation: rotateStatusText 0.5s ease forwards;
}
.for-rent__status.js-hover-inactive {
  animation: rotateStatusBackgroundReverse 0.5s ease forwards;
}
.for-rent__status.js-hover-inactive::after {
  animation: rotateStatusTextReverse 0.5s ease forwards;
}
.for-rent__status--available {
  background-color: #393c41;
}
.for-rent__status--available::after {
  content: "RENT";
  transform: rotate(0deg);
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
}
.for-rent__status--occupied {
  background-color: #c8c9ca;
}
.for-rent__status--occupied::after {
  content: "FULL";
  transform: rotate(0deg);
  color: #ffffff;
  font-size: 16px;
}
.for-rent__card-content {
  padding: 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: self-end;
  margin-top: auto;
}
.for-rent__card-content-item {
  letter-spacing: normal;
  flex: 1;
  min-width: 0;
  margin-right: 16px;
  position: static;
  cursor: default;
  padding-top: 0;
}
.for-rent__card-title {
  font-size: 16px;
  color: #393c41;
  line-height: 130%;
  margin-bottom: 0;
  transition: all 0.3s ease;
  height: auto;
  font-weight: 400;
}
.for-rent__card-title .text-rotate-text {
  white-space: normal;
  word-wrap: break-word;
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: clip;
  text-align: left;
}
.for-rent__card-title.is-pc {
  width: calc(100% + 45px);
  margin-right: -45px;
  display: block;
  margin-bottom: 3px;
}
.for-rent__card-tags {
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.for-rent__card-tags-scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.for-rent__card-tags-scroll::-webkit-scrollbar {
  display: none;
}
.for-rent__card-tags-scroll.js-scrollable:not(.js-scrolled-to-end) {
  -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
}
.for-rent__tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 8px;
  letter-spacing: normal;
  border: 1px solid #c8c9ca;
  background: #ffffff;
  font-size: 11px;
  font-family: "commissioner", sans-serif;
  font-weight: 400;
  border-radius: 20px;
  line-height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
}
.for-rent__card-hashtags {
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.for-rent__card-hashtags-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.for-rent__card-hashtags-scroll::-webkit-scrollbar {
  display: none;
}
.for-rent__card-hashtags-scroll.js-scrollable:not(.js-scrolled-to-end) {
  -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
}
.for-rent__hashtag {
  font-size: 11px;
  color: #666;
  line-height: 120%;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  color: #a6a9ab;
  font-weight: 400;
  letter-spacing: normal;
}
.for-rent__hashtag:hover {
  color: #393c41;
}
.for-rent__card-arrow {
  position: relative;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.for-rent__card-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transition: transform 0.5s ease;
  z-index: 0;
}
.for-rent__card-arrow img {
  width: 10.86px;
  height: 7.07px;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
  transform: rotate(0deg);
}
.for-rent__card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.for-rent__descriptions {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  top: 8%;
  right: 15px;
  color: #393c41;
  font-size: 12px;
  line-height: 120%;
  z-index: 2;
}
.for-rent__text {
  margin: 0;
  font-size: 12px;
  color: #393c41;
}
.for-rent__text:not(:last-child) {
  margin-bottom: 0;
}
.for-rent__text span {
  font-weight: 400;
}

@keyframes rotateStatusBackground {
  0% {
    transform: rotate(-24deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes rotateStatusText {
  0% {
    transform: rotate(24deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes rotateStatusBackgroundReverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-24deg);
  }
}
@keyframes rotateStatusTextReverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(24deg);
  }
}
@media (max-width: 768px) {
  .for-rent__card-title.is-pc {
    display: none;
  }
  .is-sp {
    display: block;
  }
  .for-rent__card {
    height: auto;
    min-height: 305.5px;
    padding: 20px 0 0px;
  }
  .for-rent__card-image {
    padding-top: 16px;
  }
  .for-rent__image {
    width: 139.5px;
    height: 139.5px;
  }
  .for-rent__status {
    top: 5px;
    left: calc(50% + 46px);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .for-rent__status--available::after, .for-rent__status--occupied::after {
    font-size: 10px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: normal;
  }
  .for-rent__descriptions {
    font-size: 11px;
    right: 10px;
  }
  .for-rent__text {
    font-size: 11px;
  }
  .for-rent__card-title {
    padding: 0 16px 16px;
    margin: 0;
    height: auto;
    font-size: 13px;
  }
  .for-rent__tag--more {
    background: #a6a9ab;
    color: #ffffff;
    border-color: #a6a9ab;
    font-weight: 500;
  }
  .for-rent__hashtag {
    font-size: 10px;
  }
  .for-rent__card-arrow {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }
  .for-rent__card-arrow img {
    width: 10px;
    height: 6px;
  }
  .for-rent__card-link {
    z-index: 0;
  }
  .for-rent__card-content {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 16px 10px;
    background: transparent;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
  }
  .for-rent__card-content-item {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    max-width: 141px;
    margin: 0;
  }
  .for-rent__card-tags {
    margin-top: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
  }
  .for-rent__card-tags-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  .for-rent__card-tags-scroll::-webkit-scrollbar {
    display: none;
  }
  .for-rent__card-tags-scroll.js-scrollable:not(.js-scrolled-to-end) {
    -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
  }
  .for-rent__tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 8px;
    letter-spacing: normal;
    border: 1px solid #c8c9ca;
    background: #ffffff;
    font-size: 10px;
    font-family: "commissioner", sans-serif;
    font-weight: 400;
    border-radius: 20px;
    line-height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .for-rent__card-hashtags {
    margin-top: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
  }
  .for-rent__card-hashtags-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  .for-rent__card-hashtags-scroll::-webkit-scrollbar {
    display: none;
  }
  .for-rent__card-hashtags-scroll.js-scrollable:not(.js-scrolled-to-end) {
    -webkit-mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, #000, #000 calc(100% - 20px), transparent);
  }
  .for-rent__hashtag {
    font-size: 11px;
    color: #a6a9ab;
    line-height: 120%;
    white-space: nowrap;
    flex-shrink: 0;
    color: #a6a9ab;
    font-weight: 400;
  }
  .for-rent .for-rent__card-title {
    padding: 0 16px;
  }
  .room-item .for-rent__card-title {
    padding: 0 16px;
  }
}