@charset "UTF-8";

/* =========================================================
   PWA 有料版 性格診断AI詳細版
   input / result 共通
========================================================= */

.personality-paid-head{
  margin: 8px 0 14px;
  padding: 16px 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(106,44,255,.10), rgba(255,122,182,.07)),
    rgba(255,255,255,.96);
  border: 1px solid rgba(106,44,255,.12);
  box-shadow: 0 8px 20px rgba(39,76,119,.08);
  text-align: left;
}

.personality-paid-title{
  margin: 0 0 8px;
  color: #274c77;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.personality-paid-lead{
  margin: 0;
  color: rgba(25,39,55,.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.personality-paid-badges,
.personality-paid-profile{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.personality-paid-badge,
.personality-paid-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(106,44,255,.10);
  color: rgba(106,44,255,.96);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
}

.personality-paid-section-title{
  margin: 0 0 12px;
  color: #274c77;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.personality-paid-note{
  margin: 10px 0 0;
  color: rgba(25,39,55,.70);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

/* =========================================================
   入力画面
========================================================= */

.personality-paid-note-box{
  margin-top: 16px;
  padding: 13px 12px;
  border-radius: 18px;
  background: rgba(39,76,119,.045);
  border: 1px solid rgba(39,76,119,.08);
}

.personality-paid-note-box h2{
  margin: 0 0 8px;
  color: #274c77;
  font-size: 15px;
  font-weight: 900;
}

.personality-paid-note-box ul{
  margin: 0;
  padding-left: 1.2em;
}

.personality-paid-note-box li{
  margin: 0 0 6px;
  color: rgba(25,39,55,.80);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.pwa-bday{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items:center;
  margin-top: 6px;
}

.pwa-bday .pwa-select{
  width:100%;
}

.pwa-note{
  margin-top:8px;
  font-size:13px;
  color: rgba(0,0,0,.6);
  line-height:1.6;
}

.personality-paid-type{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.personality-paid-radio{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(39,76,119,.14);
  color: rgba(25,39,55,.86);
  font-size: 14px;
  font-weight: 900;
}

.personality-paid-radio input{
  transform: scale(1.1);
}

/* =========================================================
   結果画面
========================================================= */

.personality-paid-result{
  /*
   * 固定ヘッダーに結果タイトルが隠れないようにする。
   * pwa-main の余白をこのクラスで上書きしているため、
   * ここでヘッダー分の余白を明示する。
   */
  padding-top: calc(72px + env(safe-area-inset-top) + 14px) !important;
  padding-bottom: calc(var(--footer-h) + 34px);
}

.personality-paid-result .personality-paid-head{
  margin-top: 0;
}



.personality-paid-section{
  margin: 14px 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(39,76,119,.09);
  box-shadow: 0 8px 20px rgba(39,76,119,.06);
}

/* 診断種類切替 */

.personality-paid-switchbar{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 8px;
}

.personality-paid-switch-form{
  margin: 0;
}

.personality-paid-switch-btn{
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(140,90,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: rgba(39,76,119,.90);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.personality-paid-switch-btn--active{
  background: linear-gradient(135deg, #6a2cff, #274c77);
  color: #fff;
  border-color: rgba(106,44,255,.35);
  box-shadow: 0 8px 18px rgba(39,76,119,.20);
}

.personality-paid-switch-btn:disabled{
  opacity: .78;
  cursor: wait;
}

/* AI総評 */

.personality-paid-summary{
  margin-top: 12px;
  padding: 16px 15px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,247,220,.95), rgba(255,255,255,.98));
  border: 1px solid rgba(218,165,32,.24);
  color: rgba(25,39,55,.92);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  white-space: normal;
}

.personality-paid-summary::before{
  content: "AI総評";
  display: table;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(218,165,32,.16);
  color: #8a5a00;
  font-size: 12px;
  font-weight: 900;
}

.personality-paid-preview-more{
  margin-top: 10px;
  color: rgba(138,90,0,.85);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
}

/* 4層カード */

.personality-paid-layer{
  margin-top: 12px;
  padding: 13px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(39,76,119,.08);
  box-shadow: 0 6px 16px rgba(39,76,119,.055);
}

.personality-paid-layer-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: #274c77;
  line-height: 1.45;
}

.personality-paid-layer-main{
  font-size: 17px;
  font-weight: 900;
}

.personality-paid-axis-note{
  flex: 0 0 auto;
  color: rgba(39,76,119,.45);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.personality-paid-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.personality-paid-meta span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(39,76,119,.06);
  color: rgba(25,39,55,.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.personality-paid-ai-body{
  padding: 15px 14px;
  border-radius: 18px;
  background: rgba(39,76,119,.045);
  border: 1px solid rgba(39,76,119,.08);
  color: rgba(25,39,55,.92);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
  white-space: normal;
}

.personality-paid-ai-body::before{
  content: "AI鑑定コメント";
  display: table;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(106,44,255,.10);
  color: rgba(106,44,255,.96);
  font-size: 12px;
  font-weight: 900;
}

/* 購入導線 */

.personality-paid-paybox{
  background:
    linear-gradient(135deg, rgba(106,44,255,.08), rgba(255,122,182,.06)),
    #fff;
  border: 1px solid rgba(106,44,255,.14);
}

.personality-paid-paydesc{
  margin: 0 0 12px;
  color: rgba(25,39,55,.80);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

.personality-paid-pay-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6a2cff, #274c77);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(39,76,119,.20);
}

.personality-paid-pay-btn:active{
  transform: translateY(1px);
}

/* 戻る・再診断 */

.personality-paid-back-btn{
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(39,76,119,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: rgba(39,76,119,.92);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

/* =========================================================
   AI文章成型中オーバーレイ
========================================================= */

.personality-paid-loading{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 22px;

  background: rgba(20,28,40,.42);
  backdrop-filter: blur(5px);
}

.personality-paid-loading.is-active{
  display: flex;
}

.personality-paid-loading__box{
  width: min(92vw, 360px);
  padding: 24px 20px 22px;

  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);

  text-align: center;
}

.personality-paid-loading__spinner{
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;

  border-radius: 50%;
  border: 4px solid rgba(106,44,255,.18);
  border-top-color: rgba(106,44,255,.95);

  animation: personalityPaidSpin .9s linear infinite;
}

.personality-paid-loading__title{
  margin-bottom: 8px;

  color: #274c77;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
}

.personality-paid-loading__box p{
  margin: 0;

  color: rgba(25,39,55,.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
}

@keyframes personalityPaidSpin{
  to{
    transform: rotate(360deg);
  }
}

/* =========================================================
   スマホ調整
========================================================= */

@media (max-width: 420px){

  .personality-paid-layer-title{
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .personality-paid-axis-note{
    align-self: flex-end;
    font-size: 11px;
  }

  .personality-paid-summary,
  .personality-paid-ai-body{
    font-size: 14px;
    line-height: 1.82;
  }
}

@media (max-width: 380px){

  .personality-paid-type{
    grid-template-columns: 1fr;
  }
}