.hover-area {
  position: absolute;
  width: 100px;
  height: 100px;
  cursor: pointer;
  z-index: 3;
}

.hover-popup {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #153c8a;
  border-radius: 8px;
  padding: 40px;
  width: 800px;
  opacity: 0;
  visibility: hidden;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  gap: 20px;
  vertical-align: middle;
}

.hover-popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 1.0rem;
  color: #153c8a;
}

.popup-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hover-popup h4 {
  color: #153c8a;
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.hover-popup p {
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.popup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 10px 0 10px;
  height: 50px;
  width: 150px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(251, 176, 64, 0.2);
  border: none;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  gap: 16px;
}

.popup-button-detail {
  background: var(--primary-color);
}

.popup-button-contact {
  background: var(--btn-color-1);
}

.popup-button-detail:hover {
  background: var(--primary-color-light);
  box-shadow: 0 4px 16px rgba(251, 176, 64, 0.3);
}

.popup-button-contact:hover {
  background: var(--btn-color-1-light);
  box-shadow: 0 4px 16px rgba(251, 176, 64, 0.3);
}

.popup-button .arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: #fff;
  border-radius: 50%;
  margin: 5px 0;
  ;
}

.popup-button-detail .arrow-circle .fa-arrow-right {
  color: var(--primary-color);
  font-size: 1.2em;
}

.popup-button-contact .arrow-circle .fa-arrow-right {
  color: var(--btn-color-1);
  font-size: 1.2em;
}

.popup-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* スマホ用ポップアップスタイル */
@media (max-width: 768px) {
  .popup-pc {
    display: none !important;
  }

  .popup-sp {
    flex-direction: column;
    position: fixed !important;
    top: 12svh !important;
    left: 4vw !important;
    width: 92vw !important;
    min-height: 0;
    max-height: none;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 24px 12px 20px 12px;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    display: flex;
  }

  .popup-sp.show {
    opacity: 1;
    pointer-events: auto;
  }

  .popup-sp .popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
  }

  .popup-sp .popup-close:hover {
    background: rgba(0, 0, 0, 0.13);
  }

  .popup-sp .popup-content {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .popup-sp .popup-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-align: left;
  }

  .popup-sp .popup-desc {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: left;
  }

  .popup-sp .popup-image {
    margin: 20px 0 20px 0;
    text-align: center;
  }

  .popup-sp .popup-image img {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
  }

  .popup-sp .popup-buttons {
    gap: 8px;
    margin-top: 8px;
    width: 100%;
  }

  .popup-sp .popup-button {
    width: 50%;
    min-width: 0;
    font-size: 0.9rem;
    height: 48px;
    padding: 0 0.5em;
  }

  .popup-image {
    flex: 0;
  }
}

/* PCではスマホ用ポップアップ非表示 */
@media (min-width: 769px) {
  .popup-sp {
    display: none !important;
  }
}