/* ------------ポップアップ------------ */
.chat_wrap input {
  display: none;
}

.chat_wrap .chat_overlay #chat_label {
  border: none;
  background: none;
}

.chat_overlay {
  display: flex;
  justify-content: center;
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999;
  width: 100%;
  height: 100%;
  background-color: rgba(50, 50, 50, 0.6);
  opacity: 0;
  transition: opacity 0.2s, transform 0s 0.2s;
  transform: scale(0);
}

.chat_trigger {
  position: absolute;
  width: 100%;
  height: 100%;
}

.chat_content {
  position: absolute;
  top: 50%;
  left: 50%;
  align-self: flex-start;
  width: 90%;
  max-width: 500px;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transition: 0.5s;
  line-height: 1.4;
  font-weight: 100;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 12px 27px 2px;
  background-color: #ecfaff;
  border-radius: 16px;
  border: solid 4px #19b5e3;
}

.chat_content a{
  color: #333;
  text-decoration: none;
}

.chat_content a:hover{
  text-decoration: none;
}

.chat_content h2{
  font-size: 1vw;
  padding: .5em;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(-45deg, #19b5e3 25%, #14a4d0 25%, #14a4d0 50%, #19b5e3 50%, #19b5e3 75%, #14a4d0 75%);
  background-size: 8px 8px;
  color: #fff;
  white-space: pre-wrap;
  border: none;
  margin: 0;
  box-shadow: none;
  border-radius: 12px 12px 0 0;
}

.chat_content h2 strong {
  color: #f9ff52;
}

.chat_content p{
  font-size: 1.1vw;
  font-weight: bold;
  padding: 0em 0 .5em;
  text-align: center;
}

.chat_content .popUp_btn{
  display: block;
  width: 95%;
  margin: 8px auto;
  margin-bottom: 0.9em;
  background-color: #50D890;
  background: #FB4C67;
  border: solid 2px #d4324a;
  box-shadow: 0 5px 0 #c21e36;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  padding: .5em 0;
  text-align: center;
  border-radius: 6px;
}

.chat_content .pop_content {
  padding: 10px;
}

.chat_content .pop_content .pop_content_img{
  width: 100%;
}


.chat_wrap input:checked~.chat_overlay {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.2s;
}

.chat_content img{
  max-width: 100%;
  vertical-align: bottom;
}

@media screen and (max-width : 480px) {
  .chat_content h2{
    font-size: 5vw;
  }
  .chat_content p{
    font-size: 5vw;
  }

  .chat_content .popUp_btn{
    font-size: 4vw;
  }
}



.hidden { display: none; }

.chat_content {
  margin-bottom: 20px;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}

.chat-btn {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.recommend_name {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.5em 0;
}