/* =============== */
/* PJZ (Sax) CSS   */
/* replace all     */
/* =============== */

/* reset-ish (theme干渉を減らす) */
.pjz-wrap, .pjz-wrap *{
  box-sizing: border-box;
}
.pjz-wrap{
  max-width: 860px;
  margin: 18px auto;
  padding: 18px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #111;
}
.pjz-title{
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
}

/* cards */
.pjz-card{
  padding: 16px;
  border-radius: 14px;
  background: #f7f7f7;
  margin: 12px 0;
}
.pjz-progress{
  background:#fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* progress */
.pjz-step{
  font-size: 13px;
  margin-bottom: 8px;
  opacity: .85;
}
.pjz-bar{
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.pjz-bar-inner{
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 999px;
  transition: width .25s ease;
}
.pjz-hint{
  font-size: 12px;
  opacity: .7;
  margin-top: 10px;
}

/* question */
.pjz-q{
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 800;
}
.pjz-desc{
  font-size: 13px;
  opacity: .8;
  margin: 0 0 10px;
  line-height: 1.55;
}

/* grid */
.pjz-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
@media (min-width: 720px){
  .pjz-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 420px){
  .pjz-wrap{ padding: 14px; }
  .pjz-grid{ grid-template-columns: 1fr; }
}

/* option button */
.pjz-btn{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  line-height: 1.35;
  transition: transform .05s ease, border-color .15s ease, box-shadow .15s ease;
}
.pjz-btn:hover{
  border-color: #999;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
}
.pjz-btn:active{
  transform: translateY(1px);
}
.pjz-btn[aria-pressed="true"],
.pjz-btn.is-selected{
  border-color: #111;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* sax-first-question emphasis:
   JS側で「最初の設問のボタン」に class="pjz-sax" を付けられるなら最高。
   付かなくてもデザインは崩れません。 */
.pjz-btn.pjz-sax{
  border-width: 2px;
  font-weight: 800;
}
.pjz-btn.pjz-sax::before{
  content: "🎷";
  margin-right: 8px;
  display: inline-block;
  transform: translateY(1px);
}

/* button row */
.pjz-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}
.pjz-mini{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.pjz-mini:hover{
  border-color: #999;
}
.pjz-mini:active{
  transform: translateY(1px);
}
.pjz-mini:disabled{
  opacity: .45;
  cursor: not-allowed;
}
.pjz-primary{
  border-color: #111;
  background: #111;
  color: #fff;
}

/* result */
.pjz-result{
  background: #fff;
  border: 1px solid #eee;
}
.pjz-big{
  font-size: 24px;
  font-weight: 900;
  margin: 8px 0 6px;
  letter-spacing: .01em;
}
.pjz-meta{
  opacity: .88;
  font-size: 13px;
  line-height: 1.65;
  margin-top: 6px;
}

/* result highlight */
.pjz-winner{
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  border: 1px solid #eee;
}
.pjz-meta-text{
  padding: 12px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #eee;
}

/* textarea */
.pjz-ta{
  width: 100%;
  min-height: 130px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  background: #fff;
}

/* links */
.pjz-links{ margin-top: 12px; }
.pjz-link{
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}
.pjz-link:hover{
  background: #111;
  color: #fff;
}
.pjz-youtube::before{
  content: "▶";
  margin-right: 8px;
  font-weight: 900;
}

/* note */
.pjz-note{
  opacity: .65;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
}

/* share icons area (あなたのテーマ側のSNSアイコンが上に出る場合の余白調整) */
.pjz-wrap + .wp-block-social-links,
.pjz-wrap .wp-block-social-links{
  margin-top: 10px;
}

/* small screens polish */
@media (max-width: 600px){
  .pjz-title{ font-size: 18px; }
  .pjz-big{ font-size: 22px; }
  .pjz-mini{ width: auto; }
}
