.kpc-compare {
  --kpc-accent: #146b54;
  --kpc-border: #d9e2df;
  border: 1px solid var(--kpc-border);
  border-radius: 12px;
  margin: 2rem 0;
  overflow: hidden;
}

.kpc-compare__header,
.kpc-amount,
.kpc-owned-sites,
.kpc-summary,
.kpc-safety-note {
  padding: 1rem 1.25rem;
}

.kpc-compare__eyebrow,
.kpc-compare__updated {
  color: #52645f;
  font-size: .875rem;
  margin: 0 0 .35rem;
}

.kpc-owned-sites,
.kpc-summary {
  background: #f4f8f7;
  border-top: 1px solid var(--kpc-border);
}

.kpc-amount { border-top: 1px solid var(--kpc-border); }
.kpc-amount__control { align-items: center; display: flex; gap: .45rem; margin-top: .45rem; }
.kpc-amount__control input { border: 1px solid #9cada7; border-radius: 6px; font-size: 1rem; max-width: 12rem; padding: .65rem .75rem; }
.kpc-amount p { color: #52645f; font-size: .8rem; margin: .35rem 0 0; }

.kpc-owned-sites label {
  display: inline-flex;
  gap: .35rem;
  margin: .25rem 1rem .25rem 0;
}

.kpc-table-wrap { overflow-x: auto; }
.kpc-table { border-collapse: collapse; min-width: 720px; width: 100%; }
.kpc-table th, .kpc-table td { border: 1px solid var(--kpc-border); padding: .8rem; text-align: left; vertical-align: top; }
.kpc-table thead { background: #eef5f2; }
.kpc-table__row--owned { background: #f4f8f7; }
.kpc-table__row--best { box-shadow: inset 4px 0 var(--kpc-accent); }
.kpc-table details ul { margin-bottom: .5rem; }
.kpc-condition-notes { color: #52645f; font-size: .875rem; margin: 0; padding: 0 1rem 1rem; }

.kpc-badge {
  background: #e5ece9;
  border-radius: 999px;
  display: inline-block;
  font-size: .75rem;
  margin-left: .25rem;
  padding: .15rem .5rem;
}

.kpc-badge--warning { background: #fff0c2; color: #6d4b00; }
.kpc-safety-note { background: #fffaf0; border-top: 1px solid #eadbbd; }
.kpc-safety-note label { background: #fff; border: 1px solid #eadbbd; border-radius: 7px; cursor: pointer; display: block; margin: .5rem 0; padding: .7rem; }
.kpc-preflight__status { color: #7a5310; font-weight: 700; margin-bottom: 0; }
.kpc-safety-note--complete { background: #f0faf5; border-color: #b8dbc9; }
.kpc-safety-note--complete .kpc-preflight__status { color: #146b54; }

.kpc-brand-cta-card {
  --kpc-cta-accent: var(--kpc-accent, #146b54);
  --kpc-cta-accent-dark: #0e523f;
  background: linear-gradient(145deg, #f7fbfa, #fff);
  border: 1px solid #cfded9;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(22, 45, 37, .08);
  margin: 2rem auto;
  max-width: 580px;
  padding: 1.25rem;
  text-align: center;
}

.kpc-brand-cta-card--hapitas {
  --kpc-cta-accent: #cf571d;
  --kpc-cta-accent-dark: #a94012;
  background: linear-gradient(145deg, #fff9ec, #fff);
  border-color: #f0c878;
}

.kpc-brand-cta-card__lead {
  color: #403b32;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .75rem;
}

.kpc-brand-cta {
  align-items: center;
  background: linear-gradient(135deg, var(--kpc-cta-accent), var(--kpc-cta-accent-dark));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(70, 48, 30, .2);
  color: #fff !important;
  display: flex;
  font-weight: 700;
  gap: .75rem;
  justify-content: center;
  line-height: 1.5;
  padding: 1rem 1.25rem;
  text-decoration: none !important;
  transition: box-shadow .18s ease, filter .18s ease, transform .18s ease;
  width: 100%;
  box-sizing: border-box;
}

.kpc-brand-cta:focus,
.kpc-brand-cta:hover {
  box-shadow: 0 7px 16px rgba(70, 48, 30, .28);
  filter: brightness(.96);
  transform: translateY(-1px);
}
.kpc-brand-cta:focus-visible { outline: 3px solid #1d70b8; outline-offset: 3px; }
.post-content a.kpc-brand-cta,
.post-content a.kpc-brand-cta:hover { color: #fff !important; text-decoration: none !important; }
.kpc-brand-cta__arrow { font-size: 1.3em; line-height: 1; }
.kpc-brand-cta-card__note { color: #665f55; font-size: .8rem; line-height: 1.6; margin: .7rem 0 0; }
.kpc-admin-warning { background: #fff0c2; color: #6d4b00; display: inline-block; padding: .5rem; }

.kpc-site-match {
  --kpc-accent: #146b54;
  --kpc-border: #d9e2df;
  background: #fff;
  border: 1px solid var(--kpc-border);
  border-radius: 12px;
  margin: 2rem 0;
  overflow: hidden;
}
.kpc-site-match__header, .kpc-site-match__form, .kpc-site-match__results, .kpc-site-match__note { padding: 1rem 1.25rem; }
.kpc-site-match__header { background: #f4f8f7; }
.kpc-site-match__header h2 { margin-top: 0; }
.kpc-site-match fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.kpc-site-match legend { font-weight: 700; margin-bottom: .5rem; }
.kpc-site-match label { border: 1px solid var(--kpc-border); border-radius: 6px; cursor: pointer; display: block; margin: .4rem 0; padding: .7rem; }
.kpc-site-match label:focus-within { box-shadow: 0 0 0 3px rgba(20, 107, 84, .2); }
.kpc-site-match__submit { background: var(--kpc-accent); border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-weight: 700; padding: .8rem 1.25rem; }
.kpc-site-match__results { background: #f8fbfa; border-top: 1px solid var(--kpc-border); }
.kpc-site-match__result h3 { margin-top: .2rem; }
.kpc-site-match__label { color: #146b54; font-size: .875rem; font-weight: 700; margin-bottom: 0; }
.kpc-site-match__note { border-top: 1px solid var(--kpc-border); color: #52645f; font-size: .875rem; }
.kpc-site-match__error { color: #9c2f20; font-weight: 700; padding: 0 1.25rem; }
.kpc-site-match [hidden] { display: none !important; }

.kpc-site-ranking { background: #fff; border: 1px solid #d9e2df; border-radius: 14px; box-shadow: 0 8px 24px rgba(38, 57, 50, .08); margin: 1.8rem 0; overflow: hidden; }
.kpc-site-ranking__header { background: linear-gradient(135deg, #f4f8f7, #fff8e8); padding: 1.15rem 1.3rem; }
body.kuroweb-article-shell .cps-post-main .kpc-site-ranking__header h2 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #172b27 !important;
  font-size: 1.35rem !important;
  line-height: 1.45 !important;
  margin: .35rem 0 .55rem !important;
  padding: 0 !important;
}
.kpc-site-ranking__header p:last-child { margin-bottom: 0; }
.kpc-site-ranking__table-wrap { overflow-x: auto; padding: .8rem 1rem 0; }
.kpc-site-ranking__table { border-collapse: collapse; margin: 0; min-width: 620px; width: 100%; }
.kpc-site-ranking__table th, .kpc-site-ranking__table td { border-bottom: 1px solid #e4e9e6; padding: .75rem .65rem; text-align: center; vertical-align: middle; }
.kpc-site-ranking__table thead th { background: #185f51; color: #fff; font-size: .85rem; }
.kpc-site-ranking__table tbody th { text-align: left; }
.kpc-site-ranking__table tbody tr:first-child { background: #fff9e8; }
.kpc-site-ranking__table tbody tr:nth-child(2) { background: #f7faf9; }
.kpc-site-ranking__table .kpc-brand-inline-link { font-weight: 800; }
.kpc-site-ranking__note { color: #5d665f; font-size: .82rem; line-height: 1.7; margin: 0; padding: .85rem 1.1rem 1rem; }

/* Editorial offer component: scoped so JIN and existing article layout stay untouched. */
.kpc-editorial-offer {
  --kpc-editorial-accent: #d24f1d;
  --kpc-editorial-green: #13745a;
  --kpc-editorial-border: #e4ded6;
  box-sizing: border-box;
  color: #292723;
  margin: 1.75rem 0 2.5rem;
  max-width: 100%;
}
.kpc-editorial-offer *, .kpc-editorial-offer *::before, .kpc-editorial-offer *::after { box-sizing: border-box; }
.kpc-editorial-offer__answer { background: linear-gradient(135deg, #fff8ec 0%, #fff 70%); border: 1px solid #efc979; border-radius: 14px; box-shadow: 0 10px 28px rgba(91, 64, 24, .09); padding: 1.35rem; }
.kpc-editorial-offer__label { color: #8a471e; font-size: .82rem; font-weight: 700; letter-spacing: .04em; margin: 0 0 .35rem; }
.kpc-editorial-offer__answer-main { font-size: 1.25rem; line-height: 1.65; margin: 0 0 .45rem; }
.kpc-editorial-offer__answer-main strong { color: #b43d12; font-size: 1.18em; }
.kpc-editorial-offer__ctas { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpc-editorial-offer__ctas > :only-child { grid-column: 1 / -1; justify-self: center; max-width: 360px; width: 100%; }
.kpc-editorial-offer__ctas .kpc-brand-cta-card { margin: .8rem 0 0; padding: 1rem; }
.kpc-editorial-offer__ctas .kpc-brand-cta-card__lead { font-size: .88rem; }
.kpc-editorial-offer__jump { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.15rem 0 1.5rem; }
.kpc-editorial-offer__jump a { background: #f6f4f0; border: 1px solid var(--kpc-editorial-border); border-radius: 8px; color: #3c3934 !important; font-size: .9rem; font-weight: 700; padding: .7rem .4rem; text-align: center; text-decoration: none !important; }
.kpc-editorial-offer__jump a:hover { background: #eeebe5; }
.kpc-editorial-offer__comparison { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
.kpc-editorial-offer__table-wrap { min-width: 0; overflow-x: auto; }
.kpc-editorial-offer__table { border-collapse: separate; border-spacing: 0; font-size: .9rem; min-width: 610px; width: 100%; }
.kpc-editorial-offer__table th, .kpc-editorial-offer__table td { border-bottom: 1px solid var(--kpc-editorial-border); padding: .8rem .65rem; text-align: left; vertical-align: top; }
.kpc-editorial-offer__table thead th { background: #f2f6f4; border-top: 1px solid var(--kpc-editorial-border); color: #3e504a; white-space: nowrap; }
.kpc-editorial-offer__table thead th:first-child { border-radius: 9px 0 0; }
.kpc-editorial-offer__table thead th:last-child { border-radius: 0 9px 0 0; }
.kpc-editorial-offer__table tr.is-best { background: #fff9ed; box-shadow: inset 4px 0 #e38b2e; }
.kpc-editorial-offer__best { background: #d24f1d; border-radius: 999px; color: #fff; display: inline-block; font-size: .68rem; margin-left: .35rem; padding: .12rem .4rem; vertical-align: .1em; }
.kpc-editorial-offer__note { color: #655f57; font-size: .78rem; line-height: 1.7; margin: .55rem 0 0; }
.kpc-editorial-offer__chart { background: #f7faf8; border: 1px solid #d8e5df; border-radius: 12px; margin: 0; padding: 1rem 1.15rem; }
.kpc-editorial-offer__chart figcaption { font-weight: 700; margin-bottom: .8rem; }
.kpc-editorial-offer__bar-row { margin: 0 0 .85rem; }
.kpc-editorial-offer__bar-row > div { display: flex; font-size: .78rem; justify-content: space-between; margin-bottom: .22rem; }
.kpc-editorial-offer__bar-track { background: #e5ece8; border-radius: 999px; display: block; height: 10px; overflow: hidden; }
.kpc-editorial-offer__bar { background: #7fa999; border-radius: inherit; display: block; height: 100%; min-width: 7%; }
.kpc-editorial-offer__bar.is-best { background: linear-gradient(90deg, #e89435, #d24f1d); }
.kpc-editorial-offer__conditions { margin: 1.5rem 0; }
.kpc-editorial-offer__conditions details { border: 1px solid var(--kpc-editorial-border); border-radius: 9px; margin: .65rem 0; overflow: hidden; }
.kpc-editorial-offer__conditions summary { align-items: center; background: #faf9f7; cursor: pointer; display: flex; justify-content: space-between; padding: .9rem 1rem; }
.kpc-editorial-offer__conditions details[open] summary { border-bottom: 1px solid var(--kpc-editorial-border); }
.kpc-editorial-offer__conditions dl { margin: 0; padding: .25rem 1rem 1rem; }
.kpc-editorial-offer__conditions dt { color: #365b4f; font-weight: 700; margin-top: .85rem; }
.kpc-editorial-offer__conditions dd { line-height: 1.75; margin: .25rem 0 0; }
.kpc-editorial-offer__conditions ul { margin: .35rem 0 0; padding-left: 1.3rem; }
.kpc-editorial-offer__check { background: #f2f8f5; border-left: 5px solid var(--kpc-editorial-green); border-radius: 8px; padding: 1rem 1.1rem; }
.kpc-editorial-offer__check ul { margin-bottom: 0; }
.kuroweb-article-jump { background: #f7faf8; border: 1px solid #d8e5df; border-radius: 12px; display: grid; gap: .45rem; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 1.4rem 0 2rem; padding: .8rem; }
.kuroweb-article-jump a { align-items: center; background: #fff; border: 1px solid #dce7e2; border-radius: 8px; color: #31594d !important; display: flex; font-size: .78rem; font-weight: 700; justify-content: center; min-height: 44px; padding: .45rem; text-align: center; text-decoration: none !important; }
.kpc-editorial-offer__ctas--conclusion { margin: 1.2rem 0 0; }

@media (max-width: 640px) {
  .kpc-compare__header, .kpc-amount, .kpc-owned-sites, .kpc-summary, .kpc-safety-note { padding: .9rem; }
  .kpc-table { min-width: 0; }
  .kpc-table thead { display: none; }
  .kpc-table tbody, .kpc-table tr, .kpc-table th, .kpc-table td { display: block; width: auto; }
  .kpc-table tr { border-bottom: 1px solid var(--kpc-border); padding: .65rem .9rem; }
  .kpc-table th, .kpc-table td { border: 0; padding: .45rem 0; }
  .kpc-table th::before, .kpc-table td::before { color: #52645f; content: attr(data-label); display: block; font-size: .75rem; font-weight: 400; margin-bottom: .15rem; }
  .kpc-table__row--best { box-shadow: inset 4px 0 var(--kpc-accent); }
  .kpc-site-match__header, .kpc-site-match__form, .kpc-site-match__results, .kpc-site-match__note { padding: .9rem; }
  .kpc-site-ranking__header { padding: 1rem; }
  .kpc-site-ranking__table-wrap { padding: .65rem .7rem 0; }
  .kpc-brand-cta-card { border-radius: 10px; margin: 1.5rem 0; padding: 1rem; }
  .kpc-brand-cta { font-size: .95rem; text-align: center; }
  .kpc-editorial-offer__answer { border-radius: 10px; padding: 1rem; }
  .kpc-editorial-offer__ctas, .kpc-editorial-offer__jump, .kpc-editorial-offer__comparison { grid-template-columns: 1fr; }
  .kpc-editorial-offer__jump { gap: .4rem; }
  .kpc-editorial-offer__table { min-width: 0; }
  .kpc-editorial-offer__table thead { display: none; }
  .kpc-editorial-offer__table tbody, .kpc-editorial-offer__table tr, .kpc-editorial-offer__table th, .kpc-editorial-offer__table td { display: block; width: auto; }
  .kpc-editorial-offer__table tr { border: 1px solid var(--kpc-editorial-border); border-radius: 9px; margin: 0 0 .7rem; padding: .55rem .8rem; }
  .kpc-editorial-offer__table th, .kpc-editorial-offer__table td { border: 0; padding: .35rem 0; }
  .kpc-editorial-offer__table th::before, .kpc-editorial-offer__table td::before { color: #756f67; content: attr(data-label); display: block; font-size: .68rem; font-weight: 400; margin-bottom: .05rem; }
  .kpc-editorial-offer__chart { padding: .85rem; }
  .kuroweb-article-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .65rem; }
  .kuroweb-article-jump a:last-child { grid-column: 1 / -1; }
}
