/* --- 先輩インタビューポップアップ --- */
.senpai-popup {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 360px;
  height: 220px;
  z-index: 1300;
  opacity: 0;
  transform: translateY(50px) scale(0.72);
  transition: opacity 0.42s ease, transform 0.72s cubic-bezier(0.22, 1.64, 0.38, 1);
  pointer-events: none;
}

.senpai-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.senpai-popup.is-closed {
  display: none;
}

.senpai-popup-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 34px;
  box-shadow: 0 24px 44px rgba(9, 31, 60, 0.22);
  overflow: visible;
}

.senpai-popup-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  width: 26px;
  height: 24px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 6%, 100% 100%);
  transform: rotate(-18deg);
  z-index: 0;
}

.senpai-popup-avatar-wrap {
  position: absolute;
  top: -110px;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 28px 44px rgba(9, 31, 60, 0.4);
  z-index: 5;
}

.senpai-popup-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.senpai-popup-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 50px 20px 20px;
  box-sizing: border-box;
}

.senpai-popup-text {
  margin: 0;
  color: #0c5ca8;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0;
}

.senpai-popup-cta {
  display: block;
  margin: 16px auto 0;
  width: fit-content;
  text-align: center;
  padding: 10px 34px;
  font-family: var(--font-rounded);
  border-radius: 999px;
  background-color: transparent;
  color: var(--hanagasa-blue);
  border: 2px solid var(--hanagasa-blue);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.senpai-popup-cta:hover {
  background-color: var(--hanagasa-blue);
  color: var(--hanagasa-white);
  transform: translateY(-3px);
}

.senpai-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(8, 24, 53, 0.14);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.96);
  color: #223d5f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(8, 24, 53, 0.18);
  z-index: 6;
}

.senpai-popup-close:hover {
  background-color: rgba(236, 244, 255, 0.98);
}

@media (max-width: 992px) {
  .senpai-popup {
    right: 18px;
    bottom: 18px;
    width: 304px;
    height: 230px;
  }

  .senpai-popup-card {
    border-radius: 30px;
  }

  .senpai-popup-card::before {
    left: 14px;
    top: 34px;
  }

  .senpai-popup-avatar-wrap {
    width: 132px;
    height: 132px;
    top: -54px;
    border-width: 5px;
  }

  .senpai-popup-content {
    padding: 86px 18px 18px;
  }

  .senpai-popup-text {
    font-size: 21px;
  }

  .senpai-popup-cta {
    font-size: 15px;
    padding: 10px 26px;
  }
}

@media (max-width: 576px) {
  .senpai-popup {
    right: 10px;
    bottom: 10px;
    width: 238px;
    height: 170px;
  }

  .senpai-popup-card::before {
    left: 8px;
    top: 28px;
    width: 20px;
    height: 18px;
  }

  .senpai-popup-avatar-wrap {
    top: -80px;
    width: 130px;
    height: 130px;
    border-width: 4px;
  }

  .senpai-popup-content {
    padding: 58px 12px 12px;
  }

  .senpai-popup-text {
    font-size: 16px;
    line-height: 1.4;
  }

  .senpai-popup-cta {
    margin-top: 8px;
    font-size: 12px;
    padding: 8px 18px;
  }

  .senpai-popup-close {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
}
