/* 全体のレイアウト調整 */
.page-parent-child {
  max-width: 760px;      /* PCでも読みやすい幅 */
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;    /* 全体中央寄せ */
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

/* 見出し・説明文 */
.page-header h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
  color: #333;
}

.page-header .lead {
  font-size: 0.9rem;     /* 小さめに */
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.page-header .eyebrow {
  font-size: 0.75rem;
  color: #7BB6FF;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* STEPガイド */
.step-guide {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  font-size: 0.85rem;
  color: #555;
}

.step-guide li {
  margin-bottom: 6px;
}

.step-guide .step-label {
  background: #FFEAA7;
  border-radius: 6px;
  padding: 2px 6px;
  margin-right: 4px;
  font-weight: bold;
  font-size: 0.75rem;
}

/* セクションカード */
.step-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #444;
}

.step-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 16px;
}

/* タイプボタン（色をつける） */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.type-grid button {
  padding: 10px 6px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

/* MBTIタイプカラー設定（パステル寄り） */
button[data-type^="ENF"] { background: #FF9AA2; } /* ピンク */
button[data-type^="ENT"] { background: #FFDAC1; } /* ベージュ */
button[data-type^="INF"] { background: #B5EAD7; } /* ミント */
button[data-type^="INT"] { background: #C7CEEA; } /* ラベンダー */

button[data-type^="ESF"] { background: #FFB7B2; } /* サーモン */
button[data-type^="EST"] { background: #FFDFBA; } /* クリーム */
button[data-type^="ISF"] { background: #B6E5D8; } /* アクア */
button[data-type^="IST"] { background: #D6D1F5; } /* パープル淡め */

/* ホバー効果 */
.type-grid button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  transition: 0.15s;
}

/* 結果エリア */
.result-block h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #444;
}

.result-teaser {
  font-size: 0.95rem;
  color: #555;
}

.badge-type {
  display: inline-block;
  padding: 4px 8px;
  background: #F0F4FF;
  border-radius: 6px;
  margin: 0 4px;
  font-weight: bold;
  color: #5577CC;
}

/* 有料ゾーン */
.locked-box {
  background: #FFF8E8;
  padding: 16px;
  border-radius: 10px;
  margin-top: 12px;
}

.locked-box p {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.5;
}

.note-small {
  font-size: 0.75rem;
  color: #777;
  margin-top: 6px;
}

/* ボタン */
.btn-primary {
  background: #7FB3FF;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-secondary {
  background: #E3E3E3;
  color: #333;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 16px;
}

.btn-primary:hover,
.btn-secondary:hover {
  opacity: 0.85;
}
/* タイプボタンの基本スタイル */
.type-grid button {
  padding: 12px 8px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

/* ===== タイプ別カラー ===== */

/* NF（ENF_, INF_）青系 */
button[data-type^="ENF"],
button[data-type^="INF"] {
  background: #8EC9FF;
}
button[data-type^="ENF"]:hover,
button[data-type^="INF"]:hover {
  background: #5BB2FF;   /* 濃くなる */
}

/* NT（ENT_, INT_）紫系 */
button[data-type^="ENT"],
button[data-type^="INT"] {
  background: #C5A8FF;
}
button[data-type^="ENT"]:hover,
button[data-type^="INT"]:hover {
  background: #A884FF;
}

/* SJ（ESJ_, ISJ_）緑系 */
button[data-type^="ESJ"],
button[data-type^="ISJ"] {
  background: #A8E6CF;
}
button[data-type^="ESJ"]:hover,
button[data-type^="ISJ"]:hover {
  background: #7DDDBE;
}

/* SP（ESP_, ISP_）黄系 */
button[data-type^="ESP"],
button[data-type^="ISP"] {
  background: #FFE599;
  color: #6B4F00;
}
button[data-type^="ESP"]:hover,
button[data-type^="ISP"]:hover {
  background: #FFDA6F;
}

/* クリック感を出す */
.type-grid button:active {
  transform: scale(0.95);
}
/* btn-type の背景を消して上書きしないようにする */
.btn-type {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ===== タイプ別カラー ===== */

/* まず btn-type のデフォルト背景を消しておく */
.btn-type {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ===== NF（青系） ENFP / ENFJ / INFP / INFJ ===== */
button[data-type="ENFP"],
button[data-type="ENFJ"],
button[data-type="INFP"],
button[data-type="INFJ"] {
  background: #8EC9FF;
  color: #fff;
}
button[data-type="ENFP"]:hover,
button[data-type="ENFJ"]:hover,
button[data-type="INFP"]:hover,
button[data-type="INFJ"]:hover {
  background: #3A8CFF;  /* はっきり濃い青 */
}

/* ===== NT（紫系） ENTP / ENTJ / INTP / INTJ ===== */
button[data-type="ENTP"],
button[data-type="ENTJ"],
button[data-type="INTP"],
button[data-type="INTJ"] {
  background: #C5A8FF;
  color: #fff;
}
button[data-type="ENTP"]:hover,
button[data-type="ENTJ"]:hover,
button[data-type="INTP"]:hover,
button[data-type="INTJ"]:hover {
  background: #9A6BFF;  /* 濃い紫 */
}

/* ===== SJ（緑系） ESFJ / ESTJ / ISFJ / ISTJ ===== */
button[data-type="ESFJ"],
button[data-type="ESTJ"],
button[data-type="ISFJ"],
button[data-type="ISTJ"] {
  background: #A8E6CF;
  color: #fff;
}
button[data-type="ESFJ"]:hover,
button[data-type="ESTJ"]:hover,
button[data-type="ISFJ"]:hover,
button[data-type="ISTJ"]:hover {
  background: #5CCDA7;  /* 濃い緑 */
}

/* ===== SP（黄系） ESFP / ESTP / ISFP / ISTP ===== */
button[data-type="ESFP"],
button[data-type="ESTP"],
button[data-type="ISFP"],
button[data-type="ISTP"] {
  background: #FFE599;
  color: #6B4F00;
}
button[data-type="ESFP"]:hover,
button[data-type="ESTP"]:hover,
button[data-type="ISFP"]:hover,
button[data-type="ISTP"]:hover {
  background: #FFCA2C;  /* 濃い黄色 */
}

/* 押したときの軽いアニメーション */
.type-grid button {
  padding: 12px 8px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.type-grid button:active {
  transform: scale(0.95);
}


/* 押したとき */
.type-grid button:active {
  transform: scale(0.95);
}
.result-main-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.result-sub {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  margin-bottom: 24px;
}
.result-block.summary {
  background: #f6f8fb;
  border-left: 4px solid #4a6cf7;
  padding: 18px 20px;
  margin-bottom: 28px;
}

.result-block.summary h3 {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}
.paid-divider {
  margin: 32px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}
.purchase-note {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
}
.btn-secondary {
  margin-top: 32px;
  font-size: 13px;
  opacity: 0.8;
}
.intro-points{
  list-style: none;
  padding-left: 0;
  margin: 16px auto 0;
  max-width: 520px;
}
.intro-points li{
  margin: 8px 0;
  line-height: 1.6;
}
.next-action-card {
  position: relative;
  z-index: 1;
}

.next-action-card a {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
}
.next-action-card {
  pointer-events: auto !important;
}

.next-action-card a {
  pointer-events: auto !important;
  z-index: 10;
}
.next-actions {
  position: relative;
  z-index: 10;
}

.next-action-btn {
  position: relative;
  z-index: 11;
}
.back-to-top-wrap{
  max-width: 1000px;
  margin: 32px auto 56px;
  padding: 0 16px;
  text-align: center;
}

.back-to-top-btn{
  display: inline-block;
}
.paid-cta-preview {
  margin: 24px 0;
  text-align: center;
}
.type-grid .type-btn {
  background: #eef3ff;
  border: 1px solid #c9d6ff;
  color: #2a3a8f;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.type-btn {
  padding: 12px 0;
  border-radius: 12px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
/* =========================
   TYPE BUTTON COLORS (4 groups)
   ========================= */

/* 共通（ボタンの見た目のベース） */
.type-btn{
  border: 1px solid rgba(0,0,0,0.08);
  transition: background .15s ease, transform .05s ease;
}

/* ===== 黄色（SP / EP） ===== */
.type-btn[data-type="ENFP"],
.type-btn[data-type="ENTP"],
.type-btn[data-type="ESFP"],
.type-btn[data-type="ESTP"] {
  background: #fff4cc;
  color: #7a5b00;
}
.type-btn[data-type="ENFP"]:hover,
.type-btn[data-type="ENTP"]:hover,
.type-btn[data-type="ESFP"]:hover,
.type-btn[data-type="ESTP"]:hover {
  background: #ffe08a;
}

/* ===== 青（SJ / TJ） ===== */
.type-btn[data-type="ISFJ"],
.type-btn[data-type="ISTJ"],
.type-btn[data-type="ESFJ"],
.type-btn[data-type="ESTJ"],
.type-btn[data-type="INTJ"],
.type-btn[data-type="ENTJ"] {
  background: #e8f0ff;
  color: #243a7a;
}
.type-btn[data-type="ISFJ"]:hover,
.type-btn[data-type="ISTJ"]:hover,
.type-btn[data-type="ESFJ"]:hover,
.type-btn[data-type="ESTJ"]:hover,
.type-btn[data-type="INTJ"]:hover,
.type-btn[data-type="ENTJ"]:hover {
  background: #cfdfff;
}

/* ===== 緑（NF） ===== */
.type-btn[data-type="INFJ"],
.type-btn[data-type="INFP"],
.type-btn[data-type="ENFJ"] {
  background: #e9f7ef;
  color: #1f6b4f;
}
.type-btn[data-type="INFJ"]:hover,
.type-btn[data-type="INFP"]:hover,
.type-btn[data-type="ENFJ"]:hover {
  background: #cdeedd;
}

/* ===== 紫（SP内向） ===== */
.type-btn[data-type="ISFP"],
.type-btn[data-type="ISTP"] {
  background: #f2e9ff;
  color: #55307a;
}
.type-btn[data-type="ISFP"]:hover,
.type-btn[data-type="ISTP"]:hover {
  background: #ddc9ff;
}

/* 押した感 */
.type-btn:active {
  transform: scale(0.96);
}
/* ▼ クリックを邪魔しないための保険 */
.back-to-top-wrap {
  pointer-events: none;
}

.back-to-top-wrap a {
  pointer-events: auto;
}
