/* 特別招待講習 右下ポップアップ（element/popup.ctp） */
.ts-popup {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 370px;
  padding: 8px 0;
  background: #fcfcfc;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, .4);
  line-height: 1.5;
  transform: translateY(100%); /* 閉: 開閉タブだけ見える */
  transition: transform 300ms;
}

.ts-popup.is-active {
  transform: translateY(0);
}

.ts-popup-toggle {
  position: absolute;
  top: -29px;
  right: 1px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px 5px 0 0;
  background: #fcfcfc;
  box-shadow: -2px -2px 2px rgba(0, 0, 0, .4);
  color: #767676;
  font-size: 20px;
  font-weight: bold;
  line-height: 29px;
  cursor: pointer;
}

.ts-popup-inner {
  width: 96%;
  margin: 0 auto;
}

.ts-popup-banner {
  display: block;
}

.ts-popup-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

.ts-popup-banner:hover .ts-popup-banner-img,
.ts-popup-button:hover {
  opacity: .7;
}

.ts-popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
}

.ts-popup-button {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, .3);
  color: #fff !important;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  text-decoration: underline;
}

.ts-popup-button.-invitation {
  background-color: #2980e1;
}

.ts-popup-button.-apply {
  background-color: #f00;
}

.ts-popup-note {
  margin: 3px 0 0;
  color: #333;
  font-size: 11.5px;
  letter-spacing: -.1px;
  text-align: left;
}

/* SP */
@media screen and (max-width: 743px) {
  .ts-popup {
    width: 100%;
    padding: 6px 0;
  }

  .ts-popup-inner {
    max-width: 370px;
  }

  .ts-popup-button {
    padding: 6px 4px;
    font-size: 14px;
  }

  .ts-popup-note {
    font-size: 10px;
  }
}
