/* ===============================
   QUINSEL LP デザインリセット（ブランド版）
   =============================== */

/* 全体 */
body {
  background-color: #f9fbfd;
  color: #1a2b55;
  font-family: 'Noto Sans JP', 'メイリオ', sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

/* 見出し */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a2b55;
}

/* ===============================
   Hero セクション
   =============================== */
#hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 50% 20%, #16386b 0%, #0b0f28 100%);
  padding: 120px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

#hero p {
  color: #dfe9f5;
  font-size: 1.2rem;
  opacity: 0.9;
}

#hero a {
  background: linear-gradient(90deg, #19c2ff 0%, #0099dd 100%);
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  padding: 14px 36px;
  margin-top: 1.5em;
  box-shadow: 0 6px 12px rgba(25, 194, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

#hero a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(25, 194, 255, 0.6);
}

/* ===============================
   About セクション
   =============================== */
section {
  padding: 100px 20px;
  text-align: center;
}

#about {
  max-width: 900px;
  margin: auto;
}

#about p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.9;
}

/* ===============================
   How セクション
   =============================== */
#how {
  background-color: #f1f6fa;
}

#how h3 {
  color: #19c2ff;
  font-weight: 700;
}

#how .wp-block-column {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

#how .wp-block-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(25, 194, 255, 0.25);
}

/* ===============================
   CTA セクション
   =============================== */
#cta {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 120px 20px;
  background: linear-gradient(135deg, #0b0f28 0%, #122348 100%);
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://www.unitedmind.jp/wp-content/uploads/2025/10/ai-discussion-center.png')
              center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

#cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,40,0.6), rgba(10,15,40,0.9));
  z-index: 1;
  pointer-events: none;
}

#cta h2, #cta p, #cta a {
  position: relative;
  z-index: 2;
}

#cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1em;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

#cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2em;
  line-height: 1.8;
}

#cta a {
  background: linear-gradient(90deg, #19c2ff, #0ca7dd);
  color: #fff;
  padding: 18px 50px;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(25, 194, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

#cta a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(25, 194, 255, 0.5);
}

/* ===============================
   Footer
   =============================== */
footer {
  background: #f8fafc;
  padding: 50px 20px;
  font-size: 0.95rem;
  color: #555;
}

/* ===============================
   モーダル
   =============================== */
#form-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.75);
  z-index: 999999;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

#form-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.form-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  animation: fadeInUp 0.4s ease;
}

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

#form-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}
#form-close:hover {
  color: #19c2ff;
}

/* ===============================
   ステップUI
   =============================== */
.qs-step { display: none; }
.qs-step.active { display: block; }
.req { color:#e66; font-weight:700; margin-left:.35em; }
.hint { font-size:.9rem; color:#567; margin:.25rem 0 1rem; }
.grid-2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.grid-2 label { text-align:left; }
.qs-step label { display:block; text-align:left; margin:10px 0; }
.qs-step input, .qs-step select, .qs-step textarea {
  width:100%; border:1px solid #ccd; border-radius:6px; padding:10px; font-size:15px;
}
.qs-nav { margin-top:18px; display:flex; gap:10px; justify-content:flex-end; }
.qs-nav .qs-next, .qs-nav .qs-prev, .qs-nav .qs-submit {
  background: linear-gradient(90deg,#19c2ff,#0ca7dd); color:#fff; border:none; border-radius:50px;
  padding:10px 20px; font-size:15px; cursor:pointer; transition: transform .2s ease;
}
.qs-nav .qs-prev { background:#96a3b7; }
.qs-nav button:hover { transform: translateY(-2px); }

/* ===============================
   ローディング
   =============================== */
#ai-loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 1.2rem;
  z-index: 1000000;
  transition: opacity 0.3s ease;
}
#ai-loading.active {
  display: flex !important;
  opacity: 1 !important;
}
.loader {
  border: 6px solid rgba(255,255,255,0.25);
  border-top: 6px solid #19c2ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* ===============================
   レスポンシブ
   =============================== */
@media (max-width: 768px) {
  #hero h1 { font-size: 2rem; }
  section { padding: 60px 15px; }
  .ai-grid { flex-direction: column; align-items: center; }
  .ai-card { max-width: 90%; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ===============================
   クリック有効化（CTA & モーダル最前面）
   =============================== */
#cta::before,
#cta::after {
  pointer-events: none !important;
  z-index: 0 !important;
}
#cta a {
  position: relative;
  z-index: 10 !important;
  pointer-events: auto !important;
}
#form-modal, .form-wrapper {
  z-index: 999999 !important;
}
/* ===== スライダー（横ゲージ） ===== */
input[type=range]{
  width:100%;
  accent-color:#19c2ff;
  margin:8px 0 2px;
}
.qs-range-val{
  display:inline-block; min-width:1.5em; text-align:center;
  margin-left:.5em; font-weight:700; color:#0b2848;
}

/* ===== 同意エリア強調 ===== */
.consent-area{
  background:#f1f6fa; border:1px solid #d7e3ef; border-radius:10px;
  padding:14px; margin:14px 0;
}
.consent-label{ display:flex; gap:.6em; align-items:flex-start; }
.consent-label input[type=checkbox]{ transform:scale(1.1); margin-top:.2em; }
.qs-submit[disabled]{ opacity:.55; cursor:not-allowed; }

/* ===== 全画面ローディング ===== */
#ai-loading{
  position:fixed; inset:0; display:none; z-index:9999999;
  background:rgba(0,0,0,.85); color:#fff;
  align-items:center; justify-content:center; flex-direction:column;
  text-align:center;
}
#ai-loading.active{ display:flex !important; }
#ai-loading .loader{
  width:74px; height:74px; border-radius:50%;
  border:6px solid rgba(255,255,255,0.25); border-top-color:#19c2ff;
  animation:spin 1s linear infinite; margin-bottom:18px;
}
@keyframes spin{ from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* （既存）CTA前景クリックを優先 */
#cta::before, #cta::after{ pointer-events:none !important; z-index:0 !important; }
#cta a{ position:relative; z-index:10 !important; pointer-events:auto !important; }
/* ===== STEP3 スライダー強化デザイン ===== */
.scale-labels {
  display:flex; justify-content:space-between;
  font-weight:600; color:#0b1d40;
  font-size:1.1rem; margin-bottom:10px;
}
.qs-step label {
  display:block; font-weight:500;
  margin-bottom:18px; line-height:1.6;
}
input[type=range] {
  width:100%;
  margin-top:6px;
  accent-color:#19c2ff;
  appearance:none;
  height:6px;
  border-radius:6px;
  background:linear-gradient(90deg,#19c2ff33,#19c2ff77);
}
input[type=range]::-webkit-slider-thumb {
  appearance:none;
  width:18px; height:18px;
  border-radius:50%; background:#19c2ff;
  cursor:pointer;
  box-shadow:0 0 4px rgba(0,0,0,0.3);
}
/* ===== STEP4 MBTIスライダー ===== */
#mbti_quiz_block label {
  display:block;
  margin-bottom:18px;
  line-height:1.6;
  font-weight:500;
}
#mbti_quiz_block h4 {
  font-size:1.1rem;
  margin-top:10px;
  color:#0b1d40;
}
#mbti_quiz_block input[type=range] {
  width:100%;
  accent-color:#19c2ff;
  margin-top:6px;
  appearance:none;
  height:6px;
  border-radius:6px;
  background:linear-gradient(90deg,#19c2ff33,#19c2ff77);
}
#mbti_quiz_block input[type=range]::-webkit-slider-thumb {
  appearance:none;
  width:18px; height:18px;
  border-radius:50%; background:#19c2ff;
  cursor:pointer;
  box-shadow:0 0 4px rgba(0,0,0,0.3);
}