/* ----------------------------------------------------------
オーバーレイ（背景暗幕）
---------------------------------------------------------- */
#survey-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 0 28px;
  background: rgba(0, 0, 0, 0.45);
}

/* PC：画面中央 */
@media (min-width: 600px) {
  #survey-overlay {
    align-items: center;
    padding: 0;
  }
}

/* 表示クラスが付いたら flex にする */
#survey-overlay.show {
  display: flex;
  animation: survey-overlay-in 0.2s ease;
}

@keyframes survey-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ----------------------------------------------------------
ポップアップ本体
---------------------------------------------------------- */
#survey-popup {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  padding: 32px 28px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: survey-popup-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes survey-popup-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----------------------------------------------------------
閉じるボタン
---------------------------------------------------------- */
#survey-close {
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 4px 6px;
  font-size: 22px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  transition:
    color 0.15s,
    background 0.15s;
}

#survey-close:hover {
  color: #555;
  background: #f0f0f0;
}

/* ----------------------------------------------------------
テキスト
---------------------------------------------------------- */
.survey-label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #1a73e8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.survey-heading {
  margin-bottom: 0.5em;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  color: #333;
}

.survey-title {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.survey-title > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0.25em;
  margin-right: 0.25em;
  background-color: #eee;
  border-radius: 4px;
}

/* ----------------------------------------------------------
選択ボタン群
---------------------------------------------------------- */
.survey-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.survey-btn {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.12s;
}

.survey-btn:hover {
  background: #f0f6ff;
  border-color: #1a73e8;
  transform: translateY(2px);
}

.survey-btn:active {
  transform: translateX(2px) scale(0.99);
}

.survey-btn:focus {
  outline: none;
}

/* アイコン背景色（各ボタンに class で指定） */
.survey-btn .btn-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 8px;
}

.btn-icon--industry {
  background: #e8f5e9;
}
.btn-icon--job-later {
  background: #fff3e0;
}
.btn-icon--job-soon {
  background: #fce4ec;
}

/* ----------------------------------------------------------
フッターテキスト
---------------------------------------------------------- */
#survey-footer {
  margin-top: 16px;
  font-size: 11px;
  color: #ccc;
  text-align: center;
}

/* ----------------------------------------------------------
送信完了メッセージ
---------------------------------------------------------- */
#survey-done {
  padding: 8px 0;
  text-align: center;
}

#survey-done .done-icon {
  margin-bottom: 12px;
  font-size: 46px;
}

#survey-done h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

#survey-done p {
  margin: 0;
  font-size: 13px;
  color: #999;
}

/* ----------------------------------------------------------
STEP式：カルーセル
---------------------------------------------------------- */
#survey-carousel {
  display: flex;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.survey-slide {
  flex-shrink: 0;
  min-width: 100%;
}

/* カルーセルのはみ出しをwrapでクリップ */
#survey-carousel-wrap {
  overflow: hidden;
}

/* ----------------------------------------------------------
STEP式：ステップインジケーター
---------------------------------------------------------- */
#survey-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.step-item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 32px;
  background: #f0e8e3;
  border-radius: 6px;
  transition: background 0.25s;
}

.step-item span {
  font-size: 13px;
  font-weight: 700;
  color: #c8907a;
}

.step-item.active {
  background: #8eb711;
}

.step-item.active span {
  color: #fff;
}

.step-item.done {
  background: #6b8911;
}

.step-item.done span {
  color: #fff;
}

/* ----------------------------------------------------------
STEP式：ボタン（アイコンなしシンプル版）
---------------------------------------------------------- */
.survey-slide .survey-btn {
  justify-content: flex-start;
  padding: 12px 16px;
  font-size: 14px;
}
