@charset "UTF-8";

/* ========== 共通リセット ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== LP基本設定 ========== */
body {
  background: #fff9fb;
  color: #463c3e;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.lp_wrap {
  max-width: 750px;
  margin: 0 auto;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ========== FV ========== */
.fv img {
  width: 100%;
}

/* ========== タイプ診断 ========== */
.diagnosis {
  padding: 40px 16px;
  background: #fff;
}

.diagnosis-intro {
  text-align: center;
  line-height: 1.6;
  color: #463c3e;
  margin-bottom: 50px;
  background-color: #f8edfd;
  padding: 30px 20px;
  margin-left: -16px;
  margin-right: -16px;
}

/* 上のキャッチコピー */
.catchcopy {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6em;
}

/* 下の説明文 */
.highlight-text {
  font-family: "Mochiy Pop One", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ピンク強調＋白フチ */
.highlight-text span {
  color: #ff72d3;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff,
    -1px  0   0 #fff,
     1px  0   0 #fff,
     0   -1px 0 #fff,
     0    1px 0 #fff;
}

/* ========== 質問 ========== */
.question {
  margin-bottom: 6%;
  padding-bottom: 5%;
  border-bottom: 1px solid #ddd;
  transition: opacity 0.3s ease;
}

.question.unanswered {
  opacity: 0.5;
}

.question p {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2%;
  line-height: 1.4;
}

/* ========== ラジオボタン ========== */
.question input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.question label {
  position: relative;
  display: block;
  padding: 8px 0 8px 30px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  transition: opacity 0.2s;
}

.question label:hover {
  opacity: 0.7;
}

/* カスタムラジオボタン（丸） */
.question label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #d76181;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
}

/* チェック時（塗りつぶし） */
.question input[type="radio"]:checked + label::before {
  background-color: #d76181;
  border-color: #d76181;
}

/* チェックマーク（内側の白い点） */
.question input[type="radio"]:checked + label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: url("../image/check-icon-white.png") no-repeat center center;
  background-size: contain;
}

/* ========== 診断ボタン ========== */
.submit-btn {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 14px 20px;
  background-color: #d76181;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0.5;
  pointer-events: none;
}

.submit-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.submit-btn.active:hover {
  background-color: #c25070;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(215, 97, 129, 0.3);
}

/* ========== 結果エリア ========== */
.result {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.result.show {
  display: block;
}

.result img {
  max-width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== LINEボタン ========== */
.line-btn {
  display: none;
  margin-top: 40px;
  text-align: center;
}

.line-btn.show {
  display: block;
  animation: fadeIn 0.5s ease 0.3s backwards;
}

.line-btn a {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.line-btn a:hover {
  opacity: 0.7;  
}

.line-btn img {
  width: 94%;
  max-width: 690px;
  margin: 0 auto;
}

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

/* ========== エラーメッセージ ========== */
.error-message {
  display: none;
  color: #d76181;
  font-size: 0.875rem;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  animation: shake 0.5s ease;
}

.error-message.show {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ========== PC対応（768px以上） ========== */
@media (min-width: 768px) {
  .diagnosis {
    padding: 60px 40px;
  }

  .diagnosis-intro {
    margin-bottom: 60px;
    margin-left: -40px;
    margin-right: -40px;
  }

  /* キャッチコピーを大きく */
  .catchcopy {
    font-size: 1.125rem;
  }

  /* 説明文を大きく */
  .highlight-text {
    font-size: 1.375rem;
  }

  /* 質問文を大きく */
  .question p {
    font-size: 1.125rem;
  }

  /* 選択肢を大きく */
  .question label {
    font-size: 1.0625rem;
    padding-left: 35px;
  }

  /* ラジオボタンを大きく */
  .question label::before {
    width: 26px;
    height: 26px;
  }

  /* チェックマークを大きく */
  .question input[type="radio"]:checked + label::after {
    left: 5px;
    width: 16px;
    height: 16px;
  }

  /* ボタンを大きく */
  .submit-btn {
    font-size: 1.125rem;
    padding: 16px 24px;
  }

  /* エラーメッセージを大きく */
  .error-message {
    font-size: 1rem;
  }
}