.character {
  border-bottom: 2px solid #c1e7e7;
  margin-top: 45px;
  padding-bottom: 110px;
}

.character .container {
  position: relative;
  z-index: 2;
}

.character_inner {
  margin-top: 80px;
  position: relative;
}

.character_inner::before {
  background-attachment: fixed;
  background-image: url(/wp-content/themes/fabiniku/assets/img/character/banner_character.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: '';
  height: 500px;
  left: 0;
  position: absolute;
  top: 210px;
  width: 100%;
  z-index: 1;
}

.character_item {
  border: 10px solid #fff;
  border-radius: 5px;
  box-shadow: rgb(0 0 0 / 16%) 0 5px 1rem;
  cursor: pointer;
  margin-bottom: 65px;
  min-height: 370px;
  position: relative;
}

.character_item::after {
  background-image: url(/wp-content/themes/fabiniku/assets/img/character/iconzoom.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 22px;
  content: '';
  height: 32px;
  pointer-events: none;
  position: absolute;
  right: 22px;
  width: 32px;
}

.character_item:last-child {
  margin-bottom: 0;
}

.character_item:nth-child(odd) {
  background-color: #d8f0f0;
}

.character_item:nth-child(even) {
  background-color: #fbe1e1;
}

.character_item_inner {
  display: flex;
  justify-content: space-between;
}

.character_item_content {
  padding-bottom: 77px;
  padding-left: 85px;
  padding-top: 95px;
  width: calc(100% - 390px);
}

.character_item_imgbox {
  width: 390px;
}

.character_item_img {
  bottom: -10px;
  height: 400px;
  position: absolute;
  right: 60px;
  width: 323px;
}

.character_item_img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.character_item_title {
  border-bottom: 2px dotted #707070;
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.character_item_title h3 {
  color: #0f7882;
  font-size: 3.2rem;
  font-weight: bold;
  line-height: 1.5;
  margin-right: 25px;
}
.character_item_title_textgroup {
  align-items: center;
  display: flex;
  margin-bottom: 5px;
}
.character_item_maintext {
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.75;
}
.character_item_title_label {
  align-items: center;
  background-color: #0f7882;
  border-radius: 50px;
  color: #fff;
  display: inline-flex;
  font-family: 'Righteous', cursive;
  font-size: 1.2rem;
  font-weight: normal;
  height: 20px;
  justify-content: center;
  margin-right: 10px;
  text-align: center;
  width: 35px;
}
.character_item_title_text {
  color: #0f7882;
  font-size: 1.4rem;
  font-weight: bold;
}
.lightboxOverlay {
  background-color: #5b5b5b;
  opacity: 1;
}
.lb-outerContainer {
  background-color: inherit;
}
.lightbox .lb-image {
  border: none;
}
.lb-dataContainer {
  cursor: pointer;
  left: 50%;
  position: absolute;
  top: -60px;
  transform: translateX(-50%);
}
.lb-outerContainer {
  pointer-events: none;
}
.character_item_title_content {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.lb-data .lb-close {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 40px;
  width: 40px;
}
.layerBox {
  overflow: hidden;
}
.img-popup {
  background-color: rgba(0,0,0,.6);
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: all .5s ease-in-out;
  width: 100%;
  z-index: 999999;
}
.layerBox .img-popup {
  opacity: 1;
  pointer-events: all;
}
.img-popup img {
  bottom: 0;
  height: calc(100% - 90px);
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: auto;
}
.img-popup img.img3 {
  height: 100%;
}
.img-popup-container {
  height: 100%;
  margin: 0 auto;
  max-width: 976px;
  position: relative;
}
.close-lightbox {
  background-image: url(/wp-content/themes/fabiniku/assets/img/character/line.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  height: 40px;
  position: absolute;
  right: 0;
  top: 60px;
  width: 40px;
}

@media screen and (max-width: 1210px) {
  .character_item_title_content h3 .only_full {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  .character_item_title_content {
    display: block;
  }

  .character_item_content {
    padding-bottom: 77px;
    padding-left: 85px;
    padding-top: 95px;
    width: calc(100% - 350px);
  }

  .character_item_imgbox {
    width: 350px;
  }

  .character_item_img {
    bottom: -10px;
    height: 400px;
    position: absolute;
    right: 20px;
    width: 323px;
  }

  .character_item_img img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .character {
    margin-top: 40px;
    padding-bottom: 50px;
  }
  .character_inner {
    margin-top: 50px;
  }
  .character_inner::before {
    height: 317px;
    top: 120px;
  }
  .character_item {
    border: 5px solid #fff;
    margin-bottom: 40px;
    min-height: auto;
  }
  .character_item_inner {
    padding: 20px 15px;
  }
  .character_item::after {
    bottom: 8px;
    height: 18px;
    right: 8px;
    width: 18px;
  }
  .character_item_content {
    padding: 0 0;
    width: 100%;
  }
  .character_item_title {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
  }
  .character_item_title_content {
    display: inline-block;
    margin-right: 3px;
  }
  .character_item_title h3 {
    font-size: 2rem;
    margin-right: 0;
  }
  .character_item_title_textgroup {
    margin-bottom: 0;
    margin-top: 10px;
    width: 100%;
  }
  .character_item_title_text {
    font-size: 1.2rem;
  }
  .character_item_title_label {
    font-size: 1rem;
    height: 19px;
    width: 32px;
  }
  .character_item_maintext {
    font-size: 1rem;
  }
  .character_item:nth-child(odd) .character_item_title_img {
    border: 2px solid #d8f0f0;
  }
  .character_item:nth-child(even) .character_item_title_img {
    border: 2px solid #fbe1e1;
  }
  .character_item_title_img {
    background-color: #fff;
    border-radius: 50%;
    height: 110px;
    margin-top: -45px;
    width: 110px;
  }
  .character_item_title_img img {
    height: 100%;
    width: 100%;
  }
  .lb-dataContainer {
    left: 50%;
    position: relative;
    top: -70px;
    transform: translateX(-60%);
  }
  .img-popup img {
    height: auto;
    max-height: 85.2%;
  }
  .img-popup img.img3 {
    height: auto;
    max-height: none;
    width: 100%;
  }
  .img-popup-container {
    max-width: inherit;
  }
  .close-lightbox {
    bottom: 45px;
    height: 25px;
    position: absolute;
    right: 40px;
    top: inherit;
    width: 25px;
    z-index: 55555;
  }
}
