html, body, .kcp-standalone-body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
}
body.kcp-standalone-body {
  background: transparent;
}
body.kcp-standalone-body #container,
body.kcp-standalone-body .post_content,
body.kcp-standalone-body .contents,
body.kcp-standalone-body .l-inner,
body.kcp-standalone-body #main_contents {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.kcp-profile-page {
  position: relative;
  display: block;
  width: 100vw;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #a8c7f4 0%, #d9ecff 50%, #abd2f6 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.kcp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.kcp-profile-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 18px 34px;
  text-align: center;
}
.kcp-profile-heading {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--kcp-heading-text, #ffffff);
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
  letter-spacing: .08em;
}
.kcp-character-name {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--kcp-name-text, #6a8ed8);
}
.kcp-character-description {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.95;
  font-size: clamp(16px, 2.1vw, 24px);
  white-space: normal;
  color: var(--kcp-description-text, #6a8ed8);
}
.kcp-character-image-wrap {
  margin: 28px auto 10px;
}
.kcp-character-image {
  max-width: min(76vw, 360px);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.kcp-hearts {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px auto 16px;
}
.kcp-heart-card {
  position: relative;
  width: 170px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kcp-heart-card.has-heart-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.kcp-heart-shape {
  position: absolute;
  width: 92px;
  height: 92px;
  background: var(--kcp-heart, #8fb3ff);
  transform: rotate(-45deg);
  top: 38px;
  left: 39px;
  border: 2px solid rgba(66, 110, 200, 0.9);
}
.kcp-heart-shape:before,
.kcp-heart-shape:after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  background: var(--kcp-heart, #8fb3ff);
  border-radius: 50%;
  border: 2px solid rgba(66, 110, 200, 0.9);
}
.kcp-heart-shape:before { top: -48px; left: 0; }
.kcp-heart-shape:after { left: 48px; top: 0; }
.kcp-heart-content {
  position: relative;
  z-index: 1;
  width: 118px;
  line-height: 1.4;
  margin-top: 8px;
}
.kcp-heart-card.has-heart-image .kcp-heart-content {
  width: 122px;
  margin-top: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.kcp-heart-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--kcp-heart-title, #ffffff);
}
.kcp-heart-text {
  font-size: 15px;
  color: var(--kcp-heart-text, #ffffff);
}
.kcp-bottom-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--kcp-menu-text, #ffffff);
}
.kcp-menu-item-wrap {
  display: flex;
  align-items: center;
}
.kcp-menu-item-wrap:not(:last-child)::after {
  content: "|";
  margin-left: 8px;
  opacity: 0.9;
}
.kcp-menu-item {
  color: var(--kcp-menu-text, #ffffff);
  text-decoration: none;
  font-size: clamp(15px, 1.8vw, 22px);
}
.kcp-menu-item:hover { opacity: .82; }

.kcp-archive {
  padding: 40px 20px;
  background: #f5f9ff;
  min-height: 100vh;
}
.kcp-archive-inner { max-width: 1080px; margin: 0 auto; }
.kcp-archive-title { text-align: center; margin-bottom: 24px; }
.kcp-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.kcp-archive-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(30,60,120,.08);
}
.kcp-archive-link { text-decoration:none; color:inherit; display:block; }
.kcp-archive-thumb img, .kcp-archive-thumb .wp-post-image {
  width: 100%; height: 260px; object-fit: cover; display: block;
}
.kcp-archive-noimage {
  height:260px; display:flex; align-items:center; justify-content:center; background:#dceaff;
}
.kcp-archive-card h2 { font-size: 20px; margin: 16px 16px 10px; }
.kcp-archive-card p { margin: 0 16px 16px; line-height: 1.7; }

@media (max-width: 640px) {
  .kcp-profile-inner { padding: 20px 12px 26px; }
  .kcp-character-description { line-height: 1.8; }
  .kcp-hearts { gap: 10px; }
  .kcp-heart-card { width: 108px; height: 108px; }
  .kcp-heart-shape {
    width: 58px; height: 58px; top: 32px; left: 22px;
  }
  .kcp-heart-shape:before, .kcp-heart-shape:after { width:58px; height:58px; }
  .kcp-heart-shape:before { top:-31px; }
  .kcp-heart-shape:after { left:31px; }
  .kcp-heart-content { width: 88px; margin-top: 22px; }
  .kcp-heart-card.has-heart-image .kcp-heart-content { width: 84px; margin-top: 8px; }
  .kcp-heart-title { font-size: 15px; margin-bottom: 3px; }
  .kcp-heart-text { font-size: 11px; }
}
