/* ==========================================================================
   性癖プロファイラー スタイル
   全クラスに jh-profiler- プレフィックスを付け AFFINGER6 との競合を防ぐ
   ========================================================================== */

/* ---- ラッパー ---- */
.jh-profiler-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
}

/* ---- スタート画面 ヒーローブロック ---- */
.jh-profiler-hero {
  background: linear-gradient(160deg, #1a0a09 0%, #2d0f0b 40%, #1a0a09 100%);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 16px;
  padding: 52px 40px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* 背景の輝き装飾 */
.jh-profiler-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192,57,43,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.jh-profiler-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e07060 !important;
  background: rgba(192,57,43,0.18);
  border: 1px solid rgba(192,57,43,0.4);
  border-radius: 50px;
  padding: 4px 14px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.jh-profiler-hero__title {
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  color: #fff !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
  .jh-profiler-hero__title {
    font-size: 22px !important;
  }
  .jh-profiler-hero {
    padding: 36px 20px 32px;
  }
}

.jh-profiler-hero__sub {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.7) !important;
  margin: 0 0 28px !important;
}

.jh-profiler-hero__features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 32px;
}

.jh-profiler-hero__feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65) !important;
}

.jh-profiler-hero__feature-icon {
  color: #c0392b !important;
  font-size: 8px;
}

.jh-profiler-start-btn {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, #e04535 0%, #c0392b 100%);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(192,57,43,0.55), 0 2px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
}

.jh-profiler-start-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(192,57,43,0.65);
}

.jh-profiler-hero__note {
  font-size: 12px !important;
  color: rgba(255,255,255,0.35) !important;
  margin: 14px 0 0 !important;
}

/* ---- 質問画面ラッパー ---- */
.jh-profiler-quiz {
  background: linear-gradient(160deg, #1a0a09 0%, #2d0f0b 40%, #1a0a09 100%);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 16px;
  padding: 36px 36px 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
  .jh-profiler-quiz {
    padding: 24px 16px 20px;
  }
}

/* ---- プログレスバー ---- */
.jh-profiler-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.jh-profiler-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.jh-profiler-progress-fill {
  height: 100%;
  background: #c0392b;
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.jh-profiler-progress-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4) !important;
  white-space: nowrap;
}

/* ---- 質問文 ---- */
.jh-profiler-question-text {
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  margin: 0 0 28px !important;
  text-align: center;
  color: #fff !important;
}

@media (max-width: 600px) {
  .jh-profiler-question-text {
    font-size: 17px !important;
  }
}

/* ---- 選択肢 ---- */
.jh-profiler-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jh-profiler-choice-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 15px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  color: rgba(255,255,255,0.85) !important;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.jh-profiler-choice-btn:hover,
.jh-profiler-choice-btn:focus {
  border-color: #c0392b;
  background: rgba(192,57,43,0.15);
  color: #fff !important;
  outline: none;
}

.jh-profiler-choice-btn.is-selected {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff !important;
  transform: scale(1.01);
}

/* ---- 戻るボタン ---- */
.jh-profiler-btn--back {
  margin-top: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3) !important;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.jh-profiler-btn--back:hover {
  color: rgba(255,255,255,0.7) !important;
}

/* ---- プライマリボタン（汎用） ---- */
.jh-profiler-btn--primary {
  display: inline-block;
  padding: 14px 36px;
  background: #c0392b;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.jh-profiler-btn--primary:hover {
  background: #a93226;
  transform: translateY(-1px);
}

/* ---- ローディング ---- */
.jh-profiler-loading {
  text-align: center;
  padding: 60px 0;
  color: rgba(255,255,255,0.7) !important;
}

.jh-profiler-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #c0392b;
  border-radius: 50%;
  animation: jh-profiler-spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes jh-profiler-spin {
  to { transform: rotate(360deg); }
}

.jh-profiler-dots::after {
  content: '';
  animation: jh-profiler-dots 1.2s steps(4, end) infinite;
}

@keyframes jh-profiler-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* ---- 結果画面 ---- */
.jh-profiler-result-wrap {
  animation: jh-profiler-fadein 0.5s ease;
}

@keyframes jh-profiler-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 結果画面 ---- */
#jh-profiler-result {
  background: linear-gradient(160deg, #1a0a09 0%, #2d0f0b 40%, #1a0a09 100%);
  border: 1px solid rgba(192, 57, 43, 0.4);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
  #jh-profiler-result {
    padding: 28px 16px;
  }
}

.jh-profiler-result-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4) !important;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jh-profiler-result-name {
  font-size: 34px !important;
  font-weight: 900 !important;
  margin: 0 0 16px !important;
  line-height: 1.2;
  color: #fff !important;
}

.jh-profiler-result-catch {
  font-size: 16px !important;
  font-style: italic;
  color: #e07060 !important;
  margin: 0 0 20px !important;
  padding: 14px 18px;
  border-left: 4px solid #c0392b;
  background: rgba(192,57,43,0.12);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.jh-profiler-result-desc {
  font-size: 15px !important;
  line-height: 1.85 !important;
  margin: 0 0 16px !important;
  color: rgba(255,255,255,0.75) !important;
}

/* 科学的根拠（折りたたみ） */
.jh-profiler-science-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35) !important;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  text-decoration: underline;
}

.jh-profiler-science-body {
  font-size: 12px;
  color: rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* 副タイプ */
.jh-profiler-secondary {
  font-size: 13px;
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 28px;
}

/* レーダーチャート */
.jh-profiler-radar-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.jh-profiler-radar-wrap svg {
  max-width: 100%;
  height: auto;
}

.jh-profiler-radar-label {
  font-size: 13px;
  color: rgba(255,255,255,0.4) !important;
  margin-bottom: 10px;
  text-align: center;
}

/* おすすめ作品 */
.jh-profiler-items-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff !important;
}

.jh-profiler-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 480px) {
  .jh-profiler-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.jh-profiler-item-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.jh-profiler-item-card:hover .jh-profiler-item-thumb {
  opacity: 0.85;
}

.jh-profiler-item-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
  display: block;
  transition: opacity 0.15s;
}

.jh-profiler-item-title {
  font-size: 12px;
  margin: 4px 0 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jh-profiler-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.jh-profiler-item-link:hover .jh-profiler-item-thumb {
  opacity: 0.85;
}

.jh-profiler-item-thumb--empty {
  background: rgba(255,255,255,0.06) !important;
}

.jh-profiler-item-actress {
  font-size: 11px;
  color: rgba(255,255,255,0.4) !important;
  margin: 2px 0 0 !important;
}

.jh-profiler-actress-link {
  color: #e07060 !important;
  text-decoration: none;
}

.jh-profiler-actress-link:hover {
  text-decoration: underline;
}

.jh-profiler-item-title {
  color: rgba(255,255,255,0.8) !important;
}

/* アクションボタン群 */
.jh-profiler-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.jh-profiler-btn--secondary {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75) !important;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.jh-profiler-btn--secondary:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
}

/* ---- CTA カード ---- */
.jh-profiler-cta-card {
  background: linear-gradient(135deg, #c0392b 0%, #8e1a10 100%);
  border: none;
  border-radius: 12px;
  padding: 32px 28px;
  margin: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(192, 57, 43, 0.45);
}

/* 装飾的な光沢 */
.jh-profiler-cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 180%;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(15deg);
  pointer-events: none;
}

.jh-profiler-cta-inner {
  position: relative;
  z-index: 1;
}

.jh-profiler-cta-lead {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
  color: #fff !important;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.jh-profiler-cta-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 0 20px;
  line-height: 1.6;
}

.jh-profiler-cta-card .jh-profiler-btn--primary {
  background: #fff;
  color: #c0392b !important;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.jh-profiler-cta-card .jh-profiler-btn--primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
