/* === オーバーレイ全体 === */
#popup.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* === ポップアップ本体 === */
.popup-box {
 background: linear-gradient(135deg, #f0ffb0, #65c379);
  border-radius: 16px;
  padding: 1.2rem;
  max-width: 640px;
  width: 85%;
  color: #1a1a1a;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-family: "Helvetica Neue", "Noto Sans JP", sans-serif;
    opacity: 0;
  transform: translateY(-20px);
  animation: popupFadeIn 0.6s ease-out forwards;
}
@keyframes popupFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* === 閉じるボタン === */
.popup-close {
  position: absolute;
  top: 12px; right: 12px;
  background: #000;
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

/* === ヘッダー（ロゴ + テキスト）=== */
.popup-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 1rem;
  color: #1a1a1a;
}
.popup-header p {
  margin: 0;
}
.logo-line {
  height: 42px;
  margin-right: 2px;
  vertical-align: middle;
}

/* === 「日程が合いませんか？」吹き出し === */
.popup-question {
  background: #fff45a;
  color: #1a1a1a;
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 40px;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 1.2rem auto 1.5rem;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}
.popup-question::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff45a;
}

/* === アニメーション === */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === 見出し === */
.popup-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0.1rem 0;
  color: #1a1a1a;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 6px rgba(255, 255, 255, 0.4);
}
.popup-bold {
  font-weight: 700;
  font-size: 2.4rem;
  display: inline-block;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 6px rgba(255, 255, 255, 0.4);
}
.popup-yellow {
  color: #f16400;
  font-weight: bold;
  font-size: 160%;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 6px rgba(255, 255, 255, 0.4);
}

/* === QRコード・スマホ画像（PC表示）=== */
.popup-img-wrapper-pc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.popup-qr-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.popup-qr {
  width: 232px;
  margin: 0.6rem 2rem;
  display: block;
}
.popup-phone-pc {
  position: relative;
  width: 220px;
  margin-left: -45px;
  top: 20px;
  z-index: 1;
}
.popup-qr-note {
  background: rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
  padding: 0.4rem;
  border-radius: 8px;
  width: calc(280px + 210px - 45px);
  font-weight: 600;
  font-size: 80%;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

/* === QRコード・スマホ画像（SP表示）=== */
.popup-img-wrapper-sp {
      display: flex !important
;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.popup-line-button {
  display: block;
  position: relative;
  width: 220px;
  max-width: 80vw;
  height: auto;
  margin: 1rem auto;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* タップアニメーション */
.popup-line-button:active {
  transform: scale(0.97);
}

/* キラッ効果 */
.popup-line-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translateX(-100%) rotate(25deg);
  animation: shine 4.0s infinite;
  pointer-events: none;
}

/* アニメーションキー */
@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}


.popup-phone-sp {
  width: 124px;
  height: auto;
}

.popup-instruction-sp {
  display: block;
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
  text-align: left;
}

/* === フッター === */
.popup-footer {
  font-size: 0.75rem;
  background: #fff;
  color: #1a1a1a;
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
  line-height: 1.4;
  text-align: left;
}
.popup-footer strong {
  display: block;
  text-align: right;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* === メディアクエリ：スマホ向け調整 === */
@media screen and (max-width: 640px) {
  .popup-question {
    font-size: 1.0rem;
    padding: 0.4em 1em;
    border-radius: 30px;
    margin: 1rem auto 1.2rem;
  }
  .popup-question::after {
    bottom: -10px;
    border-width: 6px;
  }
  .popup-title {
    font-size: 1.3rem;
  }
  .popup-bold {
    font-size: 1.55rem;
    letter-spacing: -0.05rem;
  }
  .popup-yellow {
    font-size: 140%;
  }
  .popup-qr,
  .popup-qr-note,
  .popup-phone-pc,
  .popup-img-wrapper-pc
  
  {
    display: none;
  }
  .popup-line-button,
  .popup-phone-sp,
  .popup-img-wrapper-sp {
    display: block;
  }
}

/* === メディアクエリ：PC向け調整 === */

@media screen and (min-width: 641px) {
  .popup-img-wrapper-sp,
  .popup-line-button,
  .popup-phone-sp,
  .popup-instruction-sp {
    display: none !important;
  }
}

