.content_grid {
  width: min(1050px, 92vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 auto;
  padding-bottom: 40px;
}

.content_card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 300px;
  border-top: solid #88b2d1 2px;
}

.suishin {
  border-bottom: solid #88b2d1 2px;
}

.texts1 {
  width: 300px;
  margin-left: 160px;
}

.content_card p {
  font-size: 16px;
  width: 300px;
}

.rooms {
  text-align: right;
  width: 160px;
  flex: 0 0 160px;
}

.rooms a {
  display: block;
  position: relative;
  text-decoration: none;
  font-size: 14px;
}

.rooms a::after {
  position: absolute;
  bottom: -0.5px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: #323c44;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform 0.3s;
}

.rooms a:hover::after {
  transform: scale(1, 1);
}

.bg {
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 320px;
  height: 200px;
  flex: 0 0 auto;
}

.kuuriki .bg {
  background-image: url(/images/labo/labo_1.png);
}

.kouzou .bg {
  background-image: url(/images/labo/labo_2.jpg);
}

.seigyo .bg {
  background-image: url(/images/labo/labo_3.jpg);
}

.suishin .bg {
  background-image: url(/images/labo/labo_4.jpg);
}

.arrow-link {
  color: #4a69a4;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 20px;
  font-size: 32px;
  width: 85px;
  height: 85px;
  border: solid 1px #4a69a4;
  border-radius: 50%;
  transition: 0.4s;
}

.arrow-link:hover {
  background-color: #4a69a4;
  color: #fff;
  transition: 0.4s;
}

@media screen and (max-width: 768px) {
  /* タブレット用 */
  .content_card {
    gap: 16px;
    min-height: 220px;
  }

  .texts1 {
    width: 240px;
    margin-left: 20px;
  }

  .content_card p {
    width: 240px;
    font-size: 14px;
  }

  .bg {
    width: 240px;
    height: 160px;
  }

  .arrow-link {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-right: 20px;
  }

  .rooms {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .title1 {
    width: 85vw;
    max-width: 240px;
    padding-top: 50px;
    height: auto;
  }

  .title1 p {
    font-size: 12px;
    margin-top: 10px;
  }

  .content_card {
    min-height: auto;
    flex-direction: column;
    padding: 20px 10px;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  .texts1 {
    margin-left: 0;
    width: 85vw;
    max-width: 280px;
    text-align: center;
  }

  .texts1 p {
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    margin-top: 8px;
  }

  .rooms {
    display: none;
  }

  .bg {
    width: 85vw;
    max-width: 280px;
    height: 200px;
    margin: 0 auto;
  }

  .arrow-link {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin: 10px auto 0;
  }
}
