.kf-global-nav {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .45rem 1.15rem;
  width: 100%;
  padding: .55rem 1rem;
  background: #f4f0ee;
  border-bottom: 1px solid #e5dbd8;
  font-size: .85rem;
  line-height: 1.5;
}
.kf-global-nav a {
  color: #4d3640;
  font-weight: 700;
  text-decoration: none;
}
.kf-global-nav a:hover,
.kf-global-nav a:focus-visible { text-decoration: underline; }
.kf-global-nav a:last-child { color: #844c58; }
.kf-global-nav span { font-size: .8em; }

.kf-diagnosis,
.kf-article-cta { box-sizing: border-box; }
.kf-diagnosis *,
.kf-article-cta * { box-sizing: border-box; }
.kf-diagnosis {
  max-width: 760px;
  margin: 1.5rem auto 3rem;
  overflow-wrap: anywhere;
  color: #312b30;
  font-size: 1rem;
  line-height: 1.85;
}
.kf-diagnosis [hidden] { display: none !important; }
.kf-intro,
.kf-question,
.kf-thinking,
.kf-result {
  background: #fffdfc;
  border: 1px solid #e8deda;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(67, 40, 48, .06);
  padding: clamp(1.25rem, 4.5vw, 2.75rem);
}
.kf-intro { border-top: 5px solid #9c626c; }
.kf-lead {
  margin: 0 0 1.5rem;
  color: #693e4a;
  font-size: clamp(1.25rem, 4.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.55;
}
.kf-intro-copy p,
.kf-result-detail p,
.kf-result-cta p { margin: 0 0 1.1em; }
.kf-note {
  margin: 1.8rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid #b58a91;
  background: #f8f4f2;
  color: #605257;
  font-size: .875rem;
  line-height: 1.75;
}
.kf-button,
.kf-diagnosis button {
  font: inherit;
  cursor: pointer;
}
.kf-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 58px;
  padding: .75rem 1.25rem;
  border: 0;
  border-radius: 9px;
  background: #7f4857;
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  font-weight: 800;
  line-height: 1.4;
  transition: background-color .15s ease;
}
.kf-button:hover,
.kf-button:focus-visible { background: #623640; }
.kf-button:focus-visible,
.kf-diagnosis button:focus-visible,
.kf-diagnosis a:focus-visible { outline: 3px solid #b46d7b; outline-offset: 3px; }
.kf-external {
  display: block;
  margin-top: .15rem;
  font-size: .72rem;
  font-weight: 500;
  opacity: .9;
}
.kf-start { width: 100%; font-size: 1.13rem !important; }
.kf-counter {
  margin: 0 0 .5rem;
  color: #704650;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .07em;
}
.kf-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #eae1dd;
}
.kf-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9c626c;
  transition: width .2s ease;
}
.kf-question-text {
  margin: 2rem 0;
  color: #342a2e;
  font-size: clamp(1.23rem, 4.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.6;
}
.post_content .kf-diagnosis .kf-question-text,
.post_content .kf-diagnosis .kf-result-name {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.post_content .kf-diagnosis .kf-question-text {
  margin: 2rem 0 !important;
  color: #342a2e !important;
  font-size: clamp(1.23rem, 4.5vw, 1.65rem) !important;
  line-height: 1.6 !important;
}
.post_content .kf-diagnosis .kf-result-name {
  margin: .2rem 0 1rem !important;
  color: #693e4a !important;
  font-size: clamp(1.75rem, 7vw, 2.7rem) !important;
  line-height: 1.35 !important;
}
.post_content .kf-diagnosis .kf-question-text::before,
.post_content .kf-diagnosis .kf-question-text::after,
.post_content .kf-diagnosis .kf-result-name::before,
.post_content .kf-diagnosis .kf-result-name::after { display: none !important; }
.kf-question-text:focus,
.kf-result-name:focus { outline: none; }
.kf-answer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.kf-answer {
  min-height: 70px;
  border: 2px solid #7f4857;
  border-radius: 10px;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
}
.kf-yes { background: #7f4857; color: #fff; }
.kf-no { background: #fff; color: #693e4a; }
.kf-yes:hover,
.kf-yes:focus-visible { background: #623640; }
.kf-no:hover,
.kf-no:focus-visible { background: #f6edef; }
.kf-back,
.kf-retry {
  border: 0;
  background: none;
  color: #69444e;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.kf-back { margin: 1.4rem 0 0; padding: .5rem 0; font-size: .92rem !important; }
.kf-thinking { min-height: 200px; display: grid; place-items: center; text-align: center; font-weight: 700; color: #704650; }
.kf-thinking p { margin: 0; }
.kf-result-eyebrow { margin: 0; color: #7f4857; font-weight: 800; }
.kf-result-name {
  margin: .2rem 0 1rem;
  color: #693e4a;
  font-size: clamp(1.75rem, 7vw, 2.7rem);
  line-height: 1.35;
}
.kf-result-copy {
  margin: 0 0 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e6d9d7;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.65;
}
.kf-match { margin: 2rem 0; padding: 1.3rem 1.5rem; background: #f8f4f2; border-radius: 12px; }
.kf-match h3,
.kf-result-cta h3,
.kf-related h3 { margin: 0 0 .8rem; font-size: 1.18rem; line-height: 1.5; }
.kf-match ul,
.kf-related ul { margin: 0; padding-left: 1.4rem; }
.kf-match li,
.kf-related li { margin: .35rem 0; }
.kf-result-cta {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 1px solid #d7c3c5;
  border-radius: 12px;
  background: #fff9f8;
}
.kf-result-cta .kf-button { width: 100%; margin-top: .4rem; }
.kf-about-link { margin: 1.1rem 0 2rem; text-align: center; }
.kf-about-link a,
.kf-related a,
.kf-article-quiz-link a { color: #754451; text-decoration: underline; text-underline-offset: .18em; }
.kf-related { padding-top: 1.5rem; border-top: 1px solid #e6d9d7; }
.kf-retry { display: block; margin: 2rem auto 0; padding: .65rem; font-weight: 700 !important; }

.kf-article-cta {
  margin: 2.5rem 0 1.5rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid #dbc9ca;
  border-radius: 12px;
  background: #fff9f8;
  color: #312b30;
}
.kf-article-cta h2 { margin: 0 0 1rem; color: #693e4a; font-size: 1.3rem; }
.kf-article-cta p { margin: 0 0 1rem; }
.kf-article-cta .kf-button { width: 100%; margin-top: .35rem; }
.kf-article-cta .kf-article-quiz-link { margin: 1.1rem 0 0; text-align: center; font-size: .9rem; }

@media (max-width: 599px) {
  .kf-global-nav { justify-content: space-between; gap: .4rem; font-size: .75rem; }
  .kf-diagnosis { margin-top: .8rem; }
  .kf-intro,
  .kf-question,
  .kf-thinking,
  .kf-result { border-radius: 12px; }
  .kf-answer-actions { grid-template-columns: 1fr; gap: .7rem; }
  .kf-answer { min-height: 64px; }
  .kf-match,
  .kf-result-cta { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kf-button,
  .kf-progress > span { transition: none; }
}

/* Top page: diagnosis, game, articles, then the official store. */
#body_wrap.home #post_slider { display: none; }
#body_wrap.home .p-mainVisual__slideTitle,
#body_wrap.home .p-mainVisual__slideText { text-shadow: 0 2px 9px rgba(20, 16, 28, .85); }
#body_wrap.home .c-mvBtn__btn {
  min-height: 50px;
  padding: .7rem 1.6rem;
  background: #fff2d9;
  color: #4d3140;
  box-shadow: 0 5px 18px rgba(24, 13, 29, .3);
  font-weight: 800;
}
#body_wrap.home .c-mvBtn__btn:hover,
#body_wrap.home .c-mvBtn__btn:focus-visible { background: #fffaf0; color: #3c2631; }
.kf-home-game[hidden],
.kf-home-articles[hidden],
.kf-home-shop[hidden] { display: none !important; }
.kf-home-game,
.kf-home-game *,
.kf-home-shop,
.kf-home-shop * { box-sizing: border-box; }
.kf-home-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid #bd98aa;
  border-radius: 20px;
  background: linear-gradient(125deg, #3d2c47 0%, #644356 70%, #805866 100%);
  box-shadow: 0 15px 35px rgba(62, 38, 60, .14);
  color: #fff;
}
.kf-home-game__copy { min-width: 0; }
.kf-home-game__eyebrow {
  margin: 0 0 .45rem;
  color: #f6d6c4;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.kf-home-game h2 {
  margin: 0 0 .7rem;
  color: #fff;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  line-height: 1.35;
}
.kf-home-game h2 span { display: block; color: #ffe3c3; }
.kf-home-game__copy > p:last-child { margin: 0; line-height: 1.75; }
.kf-home-game__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 230px;
  min-height: 56px;
  padding: .9rem 1.4rem;
  border-radius: 12px;
  background: #ffe6bb;
  color: #4a2b3a;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.kf-home-game__button:hover,
.kf-home-game__button:focus-visible { background: #fff3d8; color: #3c2430; }
.kf-home-game__button:focus-visible,
.kf-article-next a:focus-visible { outline: 3px solid #b46d7b; outline-offset: 3px; }
.kf-home-articles {
  margin: 0 0 1rem;
  padding: 0 0 .6rem;
  border-bottom: 2px solid #e4d1d5;
  color: #5c3d4b;
  font-size: clamp(1.35rem, 3.6vw, 1.8rem);
  line-height: 1.4;
}
#body_wrap.home .kf-home-articles + .p-homeContent { margin-top: 0; }
#body_wrap.home .p-homeContent .p-postList__thumb.noimg_ { display: none; }
#body_wrap.home .p-homeContent .p-postList__item {
  padding: 1.2rem;
  border: 1px solid #eadfe2;
  border-radius: 12px;
  background: #fff;
}
#body_wrap.home .p-homeContent .p-postList__link { height: 100%; }
#body_wrap.home .p-homeContent .p-postList__body { margin-top: 0; }
#body_wrap.home .p-homeContent .p-postList__title { color: #43353d; }
.kf-home-shop {
  margin: 2.25rem 0 0;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid #e2d3ce;
  border-radius: 16px;
  background: #f8f5f1;
  color: #383038;
}
.kf-home-shop h2 { margin: 0 0 1rem; color: #654452; font-size: clamp(1.25rem, 3.5vw, 1.6rem); }
.kf-home-shop p { margin: 0 0 1rem; line-height: 1.8; }
.kf-home-shop__button { min-width: min(100%, 330px); margin-top: .3rem; }

/* Article links stay grouped ahead of the existing official-store invitation. */
.kf-article-cta .kf-article-next { display: grid; gap: .65rem; margin: 0 0 1.6rem; }
.kf-article-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1px solid #d9c6cc;
  border-radius: 9px;
  background: #fff;
  color: #69434f;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}
.kf-article-next a:hover { background: #f8f0f2; }
.kf-article-next a span { flex: 0 0 auto; }
.kf-article-shop { padding-top: 1.35rem; border-top: 1px solid #e5d8d8; }
.kf-article-shop h3 { margin: 0 0 .8rem; color: #693e4a; font-size: 1.12rem; }

/* The quiz result retains its existing store CTA and related articles. */
.kf-result-game {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 1px solid #d9cddf;
  border-radius: 12px;
  background: #f6f2f8;
}
.kf-result-game h3 { margin: 0 0 .65rem; color: #543d5e; font-size: 1.18rem; }
.kf-result-game p { margin: 0 0 1rem; }
.kf-result-game .kf-button { width: 100%; }

@media (max-width: 599px) {
  #body_wrap.home .p-mainVisual__textLayer { padding-inline: 1.1rem; }
  #body_wrap.home .c-mvBtn__btn { min-width: 190px; min-height: 52px; }
  .kf-home-game { flex-direction: column; align-items: stretch; margin-top: 1rem; padding: 1.35rem; border-radius: 14px; }
  .kf-home-game__button { width: 100%; min-width: 0; }
  .kf-home-shop { padding: 1.3rem; }
  .kf-home-shop__button { width: 100%; }
  .kf-result-game { padding: 1.15rem; }
}
