/* /src/css/nav/diagnosis-select.css */

/* ページ限定：ナビの現在地 */
body.diagnosis-page .gnav a[aria-current="page"]{
  background: rgba(123, 87, 255, 0.12);
  color: rgba(28, 28, 34, 0.95);
}

/* =========================================================
   Layout
========================================================= */
.diag-main{
  padding-bottom: 30px;
}

.diag-hero{
  position: relative;
  overflow: hidden;
  padding: 54px 0 18px;
}

.diag-hero__inner{
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.diag-hero__title{
  margin: 0;
  font-family: "IBM Plex Sans JP", system-ui, -apple-system, "Noto Sans JP", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.12;

  background: linear-gradient(90deg, #ff3a3a 0%, #b24cff 45%, #2f49ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.diag-hero__lead{
  margin: 12px 2px 0;
  font-weight: 800;
  color: rgba(28,28,34,.72);
  line-height: 1.7;
}

@media (max-width: 900px){
  .diag-hero{ padding: 38px 0 14px; }
}

.diag-wrap{
  padding: 22px 0 80px;
}

.diag-wrap__inner{
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   Cards
========================================================= */
.select-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  /* ✅ カードの高さを揃える */
  align-items: stretch;
}

@media (max-width: 900px){
  .select-grid{
    grid-template-columns: 1fr;
  }
}

.select-card{
  border-radius: 28px;
  padding: 22px 20px;

  background: rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    0 18px 40px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.55) inset;

  /* ✅ 中身を「上・中・下」に分けてボタン位置を固定 */
  display: grid;
  grid-template-rows: auto 1fr auto; /* head / list / actions */
  height: 100%;
}

.select-card__head{
  margin-bottom: 12px;
}

.select-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;

  color: rgba(28,28,34,.92);
  background: rgba(123, 87, 255, 0.14);
  border: 1px solid rgba(123, 87, 255, 0.22);
}

.select-badge--new{
  background: rgba(46, 164, 97, 0.14);
  border-color: rgba(46, 164, 97, 0.22);
}

.select-card__title{
  margin: 10px 0 0;
  font-weight: 900;
  color: rgba(28,28,34,.92);
  font-size: 18px;
}

.select-card__desc{
  margin: 8px 0 0;
  font-weight: 800;
  color: rgba(28,28,34,.70);
  line-height: 1.7;

  /* ✅ 説明文の改行差に関係なく list の開始位置を揃える（2行分） */
  min-height: calc(1.7em * 2);
}

.select-list{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.select-list li{
  position: relative;
  padding-left: 18px;
  font-weight: 800;
  color: rgba(28,28,34,.78);
  line-height: 1.6;
}

.select-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

.select-actions{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.select-btn{
  width: 100%;
  justify-content: center;
}

/* =========================================================
   Buttons hover/focus (性格診断・相性診断 共通の触り心地)
   - style.css の hover で白に戻るのを防ぐ
========================================================= */
.diagnosis-select-page .select-actions .btn.select-btn{
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

.diagnosis-select-page .select-actions .btn.select-btn:hover{
  filter: brightness(0.96);
}

.diagnosis-select-page .select-actions .btn.select-btn:active{
  filter: brightness(0.94);
  transform: translateY(1px);
}

/* =========================================================
   性格診断ボタン（btn-primary）: hoverでも見た目を固定
========================================================= */
.diagnosis-select-page .select-actions .btn.btn-primary.select-btn{
  /* ここで再指定しておくと、hoverで別背景に差し替えられても崩れない */
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-color: transparent;
}

.diagnosis-select-page .select-actions .btn.btn-primary.select-btn:hover,
.diagnosis-select-page .select-actions .btn.btn-primary.select-btn:active{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-color: transparent;
}

.diagnosis-select-page .select-actions .btn.btn-primary.select-btn:focus{
  outline: none;
  box-shadow: 0 0 0 6px rgba(123, 87, 255, 0.18);
}

/* =========================================================
   相性診断ボタン（btn-ghost + select-btn--compat）
   ※HTML側で class="... select-btn--compat" を付けた時に有効
========================================================= */
.diagnosis-select-page .select-actions .btn.btn-ghost.select-btn--compat{
  background: #D8439C; /* #ff3a3a と #b24cff の中間くらい */
  color: #fff;
  border-color: transparent;
}

.diagnosis-select-page .select-actions .btn.btn-ghost.select-btn--compat:hover,
.diagnosis-select-page .select-actions .btn.btn-ghost.select-btn--compat:active{
  background: #D8439C; /* ← hoverでも白に戻さない */
  color: #fff;
  border-color: transparent;
}

.diagnosis-select-page .select-actions .btn.btn-ghost.select-btn--compat:focus{
  outline: none;
  box-shadow: 0 0 0 6px rgba(216, 67, 156, 0.18);
}
