/* MONE 診断クイズ：テーマのCSS変数を利用 */
.gt-quiz, .gt-result-area, .gt-after { scroll-margin-top: 80px; }
.gt-quiz [hidden], .gt-result-area [hidden], .gt-after [hidden] { display: none !important; }

/* 質問ブロック */
.gt-quiz { margin: 3rem 0 4rem; padding: 3rem 2.4rem; background: var(--bg-primary); border-radius: 8px; }
.gt-q + .gt-q { margin-top: 3.2rem; }
.gt-quiz.is-step .gt-q { display: none; }
.gt-quiz.is-step .gt-q.is-current { display: block; animation: gt-fade .3s ease; }
@keyframes gt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gt-q.is-missing { outline: 2px dashed var(--primary); outline-offset: 8px; border-radius: 4px; }

.gt-q__head { display: block; margin-bottom: 1.4rem; }
.gt-q__no { display: block; font-family: 'Noto Serif Display', serif; font-size: var(--l_txt); color: var(--primary); line-height: 1.2; }
.gt-q__title { display: block; margin-top: .4rem; font-size: var(--common_txt); font-weight: 500; line-height: 1.7; }

.gt-choice {
  display: block; width: 100%; margin-top: 1rem; padding: 1.4rem 1.8rem;
  background: var(--white); border: 1px solid var(--bg-brown); border-radius: 8px;
  font-size: var(--m_txt); line-height: 1.7; text-align: left; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
@media (hover: hover) { .gt-choice:hover { border-color: var(--primary); } }
.gt-choice.is-selected { background: var(--primary); border-color: var(--primary); color: var(--white); }
.gt-choice:focus-visible, .gt-btn:focus-visible, .gt-back:focus-visible, .gt-review:focus-visible {
  outline: 2px solid var(--secondary); outline-offset: 2px;
}

.gt-step-nav { margin-top: 1.6rem; }
.gt-back, .gt-review { font-size: var(--s_txt); text-decoration: underline; cursor: pointer; }
.gt-finish { text-align: center; }
.gt-finish__txt { font-size: var(--common_txt); font-weight: 500; }
.gt-review { display: inline-block; margin-top: 1.6rem; }

/* 進捗 */
.gt-progress { margin-top: 3rem; font-size: var(--s_txt); text-align: center; }
.gt-progress__bar { height: 4px; margin-top: .8rem; background: var(--white); border-radius: 2px; overflow: hidden; }
.gt-progress__bar i { display: block; width: 0; height: 100%; background: var(--primary); transition: width .3s; }

/* ボタン（既存の .l-articles__btn / .m-more__btn に準拠） */
.gt-btn {
  display: block; width: 208px; margin: 2.4rem auto 0; padding: 1.5rem;
  border-radius: 50px; font-size: var(--common_txt); text-align: center; cursor: pointer;
}
.gt-btn--primary { color: var(--white); background: var(--primary); }
.gt-btn--primary:disabled, .gt-btn.is-disabled { opacity: .4; cursor: not-allowed; }
.gt-btn--ghost { border: 1px solid var(--black); background: var(--white); font-size: var(--m_txt); }

/* 結果エリア */
.gt-notice { margin: 2.4rem 0; padding: 2.4rem; text-align: center; background: var(--bg-primary); border-radius: 8px; font-size: var(--m_txt); }
.gt-notice .gt-btn { margin-top: 1.6rem; }
.gt-lead { margin: 2.4rem 0; text-align: center; font-size: var(--common_txt); }
.gt-lead__type { margin: 0 .2em; font-size: var(--l_txt); font-weight: bold; color: var(--primary); }

.gt-results.is-filtered .gt-result:not(.is-hit) { display: none; }
.gt-result.is-hit { padding: 2.4rem 2.3rem .4rem; background: var(--bg-primary); border-radius: 8px; }
.gt-result.is-hit::before {
  content: "あなたのタイプ"; display: inline-block; padding: .1rem 1rem;
  font-size: var(--s_txt); color: var(--white); background: var(--primary); border-radius: 9px;
}

/* みんなの結果 */
.gt-stats { margin-top: 4rem; padding: 2.4rem; border: 1px solid var(--bg-brown); border-radius: 8px; }
.gt-stats__ttl { font-size: var(--common_txt); font-weight: 500; }
.gt-bar { display: grid; grid-template-columns: 6em 1fr 3.5em; align-items: center; gap: 1rem; margin-top: 1.2rem; font-size: var(--m_txt); }
.gt-bar__track { height: 10px; background: #F7F1F1; border-radius: 5px; overflow: hidden; }
.gt-bar__track i { display: block; height: 100%; background: rgba(211, 163, 163, .45); } /* ほかのタイプ：薄いピンク */
.gt-bar.is-me .gt-bar__track i { background: var(--primary); } /* 自分のタイプ */
.gt-bar.is-me span,
.gt-bar.is-me b { color: var(--primary); font-weight: bold; }
.gt-bar b { text-align: right; font-weight: 500; }
.gt-stats__note { margin-top: 1.6rem; font-size: var(--s_txt); color: #888; }

/* 表示確認モード */
.gt-debug { margin: 2rem 0; padding: 1.6rem; border: 2px dashed #d4a017; border-radius: 8px; background: #fffbea; font-size: var(--s_txt); }
.gt-debug__ttl { font-weight: bold; }
.gt-debug__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.gt-debug__btns button { padding: .6rem 1.4rem; border: 1px solid var(--secondary); border-radius: 50px; background: var(--white); cursor: pointer; }
.gt-debug__btns button.is-on { background: var(--secondary); color: var(--white); }

/* 自分のタイプの後ろに続くほかのタイプとの間に余白 */
.gt-results .gt-result.is-hit ~ .gt-result { margin-top: 4.8rem; }
.gt-results .gt-result.is-hit ~ .gt-result ~ .gt-result { margin-top: 3.2rem; }

/* 自分のタイプの下に移動したまとめの余白 */
.gt-summary.is-moved { margin-top: 4.8rem; }

/* ほかのタイプ：細い線の枠で区切る（自分のタイプより控えめに） */
.gt-results .gt-result:not(.is-hit) {
  padding: 2.4rem;
  background: var(--white);
  border: 1px solid #EAE4E4;
  border-radius: 8px;
}
.gt-results .gt-result:not(.is-hit) > :first-child { margin-top: 0; }
.gt-results .gt-result:not(.is-hit) > :last-child { margin-bottom: 0; }

/* ===== チェック式 ===== */
.gt-checks { margin: 0; padding: 0; list-style: none; }
.gt-checks li + li { margin-top: 1rem; }
.gt-check {
  display: flex; align-items: flex-start; gap: 1.2rem; width: 100%; padding: 1.4rem 1.8rem;
  background: var(--white); border: 1px solid var(--bg-brown); border-radius: 8px;
  font-size: var(--m_txt); line-height: 1.7; text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
@media (hover: hover) { .gt-check:hover { border-color: var(--primary); } }
.gt-check:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.gt-check__box {
  position: relative; flex: 0 0 auto; width: 2rem; height: 2rem; margin-top: .3rem;
  background: var(--white); border: 1px solid var(--bg-brown); border-radius: 4px;
  transition: background-color .2s, border-color .2s;
}
.gt-check.is-selected { border-color: var(--primary); }
.gt-check.is-selected .gt-check__box { background: var(--primary); border-color: var(--primary); }
.gt-check.is-selected .gt-check__box::after {
  content: ""; position: absolute; left: .6rem; top: .2rem; width: .6rem; height: 1.1rem;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gt-check-count { margin-top: 2.4rem; text-align: center; font-size: var(--s_txt); }
.gt-check-count b { margin: 0 .2em; font-size: var(--common_txt); color: var(--primary); }
.gt-prev-page--list { display: block; margin-top: 1.6rem; text-align: center; font-size: var(--s_txt); text-decoration: underline; }

/* チェック式の結果見出し */
.gt-lead--check .gt-lead__sub { display: block; font-size: var(--m_txt); }
.gt-lead--check .gt-lead__num { margin: 0 .2em; color: var(--primary); }
.gt-lead--check .gt-lead__type { display: block; margin: .4rem 0 0; }
.gt-results.is-check .gt-result.is-hit::before { content: "あなたの結果"; }

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .gt-quiz { padding: 2.4rem 1.6rem; }
  .gt-btn { width: 60%; }
  .gt-stats { padding: 2rem 1.6rem; }
  .gt-results .gt-result.is-hit ~ .gt-result { margin-top: 4rem; }
  .gt-results .gt-result.is-hit ~ .gt-result ~ .gt-result { margin-top: 2.4rem; }
  .gt-summary.is-moved { margin-top: 4rem; }
  .gt-results .gt-result:not(.is-hit) { padding: 2rem 1.6rem; }
  .gt-check { padding: 1.2rem 1.4rem; }
}

/* 記事末尾の注意書き */
.gt-note { margin-top: 4.8rem; font-size: var(--s_txt); line-height: 1.8; color: #888; }
@media (max-width: 768px) { .gt-note { margin-top: 4rem; } }
