.content-item {
  width: 327px;
  height: 756px;
  position: relative;
}

.content-item img {
  width: 100%;
  height: 100%;
}

.content-box {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ttxs{
  color: #222;}

.comp {
  position: absolute;
  width: 327px;
  height: 327px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background:rgba(255,255,255,0.6);
  padding-top: 113px;
}
.comp::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 95px;
  width: 128px;
  height: 1px;
  transform: translateX(-50%);
  background-color: #000000;
}

.comp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 95px;
  width: 128px;
  height: 1px;
  transform: translateX(-50%);
  background-color: #000000;
}

.comp p {
  font-size: 23px;
  line-height: 1.2em;
  text-align: center;
}
.comp span{
  font-size: 18px;
  line-height: 1.2em;
  width: 100%;
  text-align: center;
  display: block;
}
.comp span a{
  color: #222;
}

.bg {
  width: 0;
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease 0.1s;
}

.content-item:hover .bg {
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .content-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .content-item {
    width: 90%;
    height: 480px;
    position: relative;
    padding: 10px 0;
  }

  .comp {
    position: absolute;
    width: 327px;
    height: 327px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding-top: 113px;
  }
  .comp span{
    font-size: 18px;
    line-height: 1.2em;
    width: 100%;
    text-align: center;
    display: block;
  }
  .comp span a{
    color: #222;
  }

  .ttxs{
    color: #222;}

}
