@charset "UTF-8";

/* ============================================
   LP: 正しい選択をして自分の未来を守ろう
   ============================================ */

/* Reset & Base */
.lp-choice *,
.lp-choice *::before,
.lp-choice *::after {
  box-sizing: border-box;
}

/* 親要素の余白リセット */
.mCaseArea.uiTabArea {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.uiTabPanel {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.lp-choice {
  font-family: 'Noto Sans JP', 'M PLUS Rounded 1c', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background-image: url('img/c_bg.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  min-height: 600px;
}

.lp-choice img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Container */
.lp-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* ============================================
   Screen (画面切り替え)
   ============================================ */
.lp-screen {
  display: none;
  animation: lpFadeIn 0.5s ease-out;
}

.lp-screen--active {
  display: block;
}

@keyframes lpFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lpBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes lpPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ============================================
   Title Screen (スタート画面)
   ============================================ */
.lp-title-screen {
  text-align: center;
  padding: 40px 0;
}

.lp-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto 20px;
  animation: lpBounce 2s ease-in-out infinite;
}

.lp-mascot img {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

.lp-title-screen__label {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.9);
  color: #887EBA;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.lp-title-screen__title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #887EBA;
  line-height: 1.4;
  margin-bottom: 20px;
}

.lp-title-screen__subtitle {
  font-size: 14px;
  color: #222;
  margin-bottom: 40px;
  line-height: 1.9;
}

/* Start Button */
.lp-start-btn {
  display: inline-block;
  padding: 16px 50px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(135deg, #ea535d 0%, #d4433d 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 83, 93, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: lpPulse 2s ease-in-out infinite;
}

.lp-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(234, 83, 93, 0.4);
  animation: none;
}

.lp-start-btn:focus {
  outline: 2px solid #887EBA;
  outline-offset: 2px;
}

/* ============================================
   Question Card (質問カード)
   ============================================ */
.lp-question-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/*.lp-question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8a090, #f5b971, #7eb8e0);
}*/

/* Progress Bar */
.lp-progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.lp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7eb8e0, #4a9bd9);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.lp-step-indicator {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-bottom: 16px;
}

.lp-step-indicator--rescue {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #F19561;
  margin-bottom: 24px;
}

/* Speech Bubble */
.lp-speech-bubble {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

.lp-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top-color: #f8f9fa;
}

.lp-speech-bubble p {
  margin: 0;
}

/* Highlight */
.lp-highlight {
  background: linear-gradient(transparent 60%, #FFF571 60%);
  padding: 0 4px;
  font-weight: 700;
  font-size: inherit;
}

/* Character */
.lp-character {
  text-align: center;
  margin: 16px 0;
}

.lp-character img {
  border-radius: 50%;
  background: #f0f0f0;
}

/* Balloon Area (マスコット+吹き出し) */
.lp-balloon-area {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.lp-balloon-image {
  flex-shrink: 0;
  width: 80px;
}

.lp-balloon-image--large {
  width: 140px;
}

.lp-balloon-image img {
  width: 100%;
  height: auto;
}

.lp-balloon {
  flex: 1;
  background-color: #fff799;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid #333;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  text-align: left;
}

.lp-balloon::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 20px;
  border-width: 10px 12px 10px 0;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.lp-balloon::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 22px;
  border-width: 8px 10px 8px 0;
  border-style: solid;
  border-color: transparent #fff799 transparent transparent;
}

.lp-balloon p {
  margin: 0;
}

/* ============================================
   Choices (選択肢)
   ============================================ */
.lp-choices {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 24px;
}

.lp-choice-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-choice-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lp-choice-icon {
  flex-shrink: 0;
  width: 80px;
  height: auto;
}

.lp-choice-bubble {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}

.lp-choice-bubble p {
  margin: 0;
}

.lp-choice-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 16px;
  border-width: 8px 12px 8px 0;
  border-style: solid;
}

.lp-choice-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 18px;
  border-width: 6px 10px 6px 0;
  border-style: solid;
}

.lp-choice-bubble--negative {
  background-color: #EEEDF6;
  border-color: #9A91C5;
  color: #333;
}

.lp-choice-bubble--negative::before {
  border-color: transparent #9A91C5 transparent transparent;
}

.lp-choice-bubble--negative::after {
  border-color: transparent #EEEDF6 transparent transparent;
}

.lp-choice-bubble--positive {
  background-color: #FDEEE6;
  border-color: #F19561;
  color: #333;
}

.lp-choice-bubble--positive::before {
  border-color: transparent #F19561 transparent transparent;
}

.lp-choice-bubble--positive::after {
  border-color: transparent #FDEEE6 transparent transparent;
}

.lp-choice-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  position: relative;
}

.lp-choice-btn:hover {
  transform: translateY(2px);
}

.lp-choice-btn:focus {
  outline: 2px solid #887EBA;
  outline-offset: 2px;
}

.lp-choice-btn--negative {
  background: linear-gradient(135deg, #9b7bb8 0%, #887EBA 100%);
  color: #fff;
  box-shadow: 0 4px 0 #6a5a8a;
}

.lp-choice-btn--negative:hover {
  box-shadow: 0 2px 0 #6a5a8a;
}

.lp-choice-btn--positive {
  background: linear-gradient(135deg, #F19561 0%, #e07d45 100%);
  color: #fff;
  box-shadow: 0 4px 0 #c06530;
}

.lp-choice-btn--positive:hover {
  box-shadow: 0 2px 0 #c06530;
}

.lp-choice-btn small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 4px;
}

/* ============================================
   Info Box (情報ボックス)
   ============================================ */
.lp-info-box {
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.7;
}

.lp-info-box p {
  margin: 0;
}

.lp-info-box__title {
  font-weight: 700;
  margin-bottom: 8px !important;
}

.lp-info-box--warning {
  background: #fff;
  border: 1px solid #333;
}

.lp-info-box--warning .lp-info-box__title {
  color: #887EBA;
}

.lp-info-box--success {
  background: #FDEEE6;
  border: 2px solid #F19561;
}

/* Guide Link Button */
.lp-guide-link {
  text-align: center;
  margin: 20px 0;
}

.lp-guide-link a {
  display: inline-block;
  background-color: #ea535d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 0 #a32d36;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.lp-guide-link a:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a32d36;
  color: #fff;
}

.lp-info-box--success .lp-info-box__title {
  color: #27ae60;
}

/* Benefit List */
.lp-benefit-list {
  color: #ea535d;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  line-height: 2;
}

.lp-info-box--dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #bdc3c7;
}

.lp-info-box--dark .lp-info-box__title {
  color: #fff;
}

/* ============================================
   Result Card (結果カード)
   ============================================ */
.lp-result-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.lp-result-card--dark {
  background: linear-gradient(135deg, #887eba 0%, #34495e 100%);
  color: #fff;
}

.lp-result-card--bright {
  background: linear-gradient(135deg, #fff 0%, #fffdde 100%);
  border: 3px solid #F19561;
}

.lp-result-emoji {
  margin: 0 auto 20px;
}

.lp-result-emoji img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

.lp-result-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.lp-result-title--dark {
  color: #e74c3c;
}

.lp-result-title--bright {
  color: #F19561;
}

.lp-result-description {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 24px;
}

.lp-result-description p {
  margin: 0 0 16px;
}

.lp-result-description p:last-child {
  margin-bottom: 0;
}

.lp-result-card--dark .lp-result-description {
  color: #bdc3c7;
}

/* Result Balloon */
.lp-result-balloon {
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 16px 24px;
  border-radius: 16px;
  border: 2px solid;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.lp-result-balloon p {
  margin: 0;
}

.lp-result-balloon::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 10px 12px 10px;
  border-style: solid;
}

.lp-result-balloon::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 10px 8px;
  border-style: solid;
}

.lp-result-balloon--dark {
  background-color: #EEEDF6;
  border-color: #9A91C5;
  color: #333;
}

.lp-result-balloon--dark::before {
  border-color: transparent transparent #9A91C5 transparent;
}

.lp-result-balloon--dark::after {
  border-color: transparent transparent #EEEDF6 transparent;
}

.lp-result-balloon--bright {
  background-color: #FDEEE6;
  border-color: #F19561;
  color: #333;
}

.lp-result-balloon--bright::before {
  border-color: transparent transparent #F19561 transparent;
}

.lp-result-balloon--bright::after {
  border-color: transparent transparent #FDEEE6 transparent;
}

/* Restart Button */
.lp-restart-btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(135deg, #9b7bb8 0%, #887EBA 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(136, 126, 186, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 60px;
}

.lp-restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(136, 126, 186, 0.4);
}

.lp-restart-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ============================================
   Responsive: Tablet and above
   ============================================ */
@media screen and (min-width: 641px) {
  .lp-container {
    padding: 60px 24px;
  }

  .lp-title-screen__title {
    font-size: 36px;
  }

  .lp-title-screen__subtitle {
    font-size: 15px;
  }

  .lp-question-card {
    padding: 32px;
  }

  .lp-speech-bubble {
    font-size: 16px;
    padding: 24px;
  }

  .lp-choice-btn {
    font-size: 15px;
    padding: 18px 24px;
  }

  .lp-result-card {
    padding: 40px 32px;
  }

  .lp-result-title {
    font-size: 28px;
  }

  .lp-result-description {
    font-size: 16px;
  }

  .lp-balloon-image {
    width: 120px;
  }

  .lp-balloon-image--large {
    width: 280px;
  }
}

/* ============================================
   Responsive: Desktop
   ============================================ */
@media screen and (min-width: 960px) {
  .lp-container {
    max-width: 800px;
  }

  .lp-title-screen__title {
    font-size: 42px;
  }

  .lp-speech-bubble {
    font-size: 17px;
  }

  .lp-choice-btn {
    font-size: 16px;
  }

  .lp-balloon-image--large {
    width: 360px;
  }
}
