.nanpa-sns-finder-page #header-container,
.nanpa-sns-finder-page #notice-area-wrap,
.nanpa-sns-finder-page article > .article-header {
  display: none !important;
}

.nanpa-sns-finder-page #content { margin-top: 0; }
.nanpa-sns-finder-page #main { padding-top: 0; }
.nanpa-sns-finder-page .entry-content { margin-top: 0; }

.sns-finder {
  box-sizing: border-box;
  display: grid;
  min-height: min(72vh, 680px);
  padding: 32px 16px;
  place-items: center;
}

.sns-finder *, .sns-finder *::before, .sns-finder *::after { box-sizing: inherit; }

.sns-finder__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(17, 24, 39, .08);
  max-width: 520px;
  padding: 32px 22px;
  text-align: center;
  width: 100%;
}

.sns-finder h1 { color: #111827; font-size: clamp(28px, 8vw, 40px); line-height: 1.25; margin: 0 0 14px; }
.sns-finder__lead { color: #374151; font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.sns-finder__form { display: grid; gap: 12px; }
.sns-finder input {
  appearance: none;
  background: #fff;
  border: 2px solid #9ca3af;
  border-radius: 10px;
  color: #111827;
  font-size: 24px;
  letter-spacing: .14em;
  min-height: 56px;
  padding: 12px 16px;
  text-align: center;
  width: 100%;
}
.sns-finder input:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(17, 24, 39, .14); outline: none; }
.sns-finder button {
  appearance: none;
  background: #111827;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  min-height: 54px;
  padding: 12px 20px;
  width: 100%;
}
.sns-finder button:hover { background: #293241; }
.sns-finder button:focus-visible { outline: 3px solid #6b7280; outline-offset: 3px; }
.sns-finder button:disabled { cursor: wait; opacity: .65; }
.sns-finder__status { color: #374151; font-size: 15px; font-weight: 700; min-height: 1.6em; margin: 14px 0 0; }
.sns-finder__status.is-error { color: #b42318; }
.sns-finder__help { color: #4b5563; font-size: 14px; line-height: 1.6; margin: 22px 0 0; }
.sns-finder__secondary { border-top: 1px solid #e5e7eb; margin-top: 24px; padding-top: 24px; }
.sns-finder__secondary h2 { color: #111827; font-size: 19px; line-height: 1.5; margin: 0 0 6px; }
.sns-finder__secondary p { color: #4b5563; font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.sns-finder__secondary-button {
  background: #fff;
  border: 2px solid #111827;
  border-radius: 10px;
  color: #111827 !important;
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  padding: 13px 16px;
  text-decoration: none !important;
}
.sns-finder__secondary-button:hover { background: #f3f4f6; }
.sns-finder__secondary-button:focus-visible { outline: 3px solid #6b7280; outline-offset: 3px; }
.sns-finder__notice { border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 12px; line-height: 1.7; margin: 22px 0 0; padding-top: 18px; }

.sns-recent-layout { margin: 0 auto; max-width: 1180px; }
.sns-recent { min-width: 0; }
.sns-recent__lead { color: #4b5563; margin: 0 0 24px; }
.sns-recent__grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sns-recent__item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin: 0; overflow: hidden; }
.sns-recent__item a { color: inherit; display: block; height: 100%; text-decoration: none; }
.sns-recent__thumb { aspect-ratio: 16 / 9; background: #f1efed; overflow: hidden; }
.sns-recent__thumb img { height: 100%; object-fit: contain; object-position: center; width: 100%; }
.sns-recent__body { padding: 16px; }
.sns-recent__number { color: #b42318; font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.sns-recent__title { color: #111827; font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0; }
.sns-recent__pagination { margin-top: 28px; text-align: center; }
.sns-recent__pagination .page-numbers { display: inline-block; margin: 4px; padding: 7px 11px; }
.sns-recent__notice { border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 13px; line-height: 1.7; margin: 30px 0 0; padding-top: 20px; }
.sns-recent__empty { padding: 30px 0; text-align: center; }

.sns-recent-sidebar { display: none; min-width: 0; }
.sns-recent-sidebar .toc,
.sns-recent-sidebar .toc-container { display: none !important; }
.sns-recent-sidebar .ns-v5-sidebar { display: grid; gap: 18px; }
.sns-recent-sidebar .ns-v5-box { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin: 0; overflow: hidden; }
.sns-recent-sidebar .ns-v5-title { background: #f7f7f8; border-bottom: 1px solid #e5e7eb; font-size: 17px; line-height: 1.5; margin: 0; padding: 12px 15px; }
.sns-recent-sidebar .ns-v5-body { padding: 15px; }
.sns-recent-sidebar .ns-v5-search { display: flex; gap: 6px; }
.sns-recent-sidebar .ns-v5-search input { border: 1px solid #9ca3af; border-radius: 7px; min-width: 0; padding: 9px 10px; width: 100%; }
.sns-recent-sidebar .ns-v5-search button { background: #111827; border: 0; border-radius: 7px; color: #fff; flex: 0 0 42px; }
.sns-recent-sidebar .ns-v5-note,
.sns-recent-sidebar .ns-v5-popular-info,
.sns-recent-sidebar .ns-v5-next-sub { color: #6b7280; font-size: 12px; line-height: 1.6; margin: 10px 0 0; }
.sns-recent-sidebar .ns-v5-ranks { list-style: none; margin: 12px 0 0; padding: 0; }
.sns-recent-sidebar .ns-v5-ranks li + li { border-top: 1px solid #e5e7eb; }
.sns-recent-sidebar .ns-v5-ranks a { align-items: center; color: #111827; display: flex; gap: 9px; padding: 10px 0; text-decoration: none; }
.sns-recent-sidebar .ns-v5-rank { align-items: center; background: #b42318; border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 26px; height: 26px; justify-content: center; }
.sns-recent-sidebar .ns-v5-types { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sns-recent-sidebar .ns-v5-types a { background: #f3f4f6; border-radius: 7px; color: #111827; padding: 8px; text-align: center; text-decoration: none; }
.sns-recent-sidebar .ns-v5-recommend-list,
.sns-recent-sidebar .ns-v5-next-grid { display: grid; gap: 8px; }
.sns-recent-sidebar .ns-v5-recommend-card,
.sns-recent-sidebar .ns-v5-next-link { border: 1px solid #e5e7eb; border-radius: 8px; color: #111827; display: block; padding: 10px; text-decoration: none; }
.sns-recent-sidebar .ns-v5-recommend-label { color: #b42318; display: block; font-size: 12px; font-weight: 700; }
.sns-recent-sidebar .ns-v5-recommend-name { display: block; font-size: 14px; margin-top: 3px; }
.sns-recent-sidebar .ns-v5-fanza-banner img { display: block; height: auto; max-width: 100%; }

@media (min-width: 1024px) {
  .sns-recent-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: minmax(0, 72fr) minmax(270px, 28fr); }
  .sns-recent-sidebar { display: block; position: sticky; top: 20px; }
}

.nanpa-sns-latest-page .sns-latest-sidebar { min-width: 0; }

.nanpa-shared-sidebar-page .sns-global-sidebar {
  display: block;
  min-width: 0;
  position: static;
}

@media (min-width: 1024px) {
  .nanpa-shared-sidebar-page #main { min-width: 0; }
  .nanpa-shared-sidebar-page #sidebar { display: block; }
}

@media (max-width: 1023px) {
  .nanpa-sns-latest-page .sns-latest-sidebar { display: none !important; }
  .nanpa-shared-sidebar-page #sidebar { display: none !important; }

  body.front-top-page .ns-ranking-image,
  body.front-top-page .ns-top-image,
  body.front-top-page .ns-latest-image {
    background: #f1efed;
  }

  body.front-top-page .ns-ranking-image img,
  body.front-top-page .ns-top-image img,
  body.front-top-page .ns-latest-image img,
  body.front-top-page img.ns-latest-main-image {
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (min-width: 600px) {
  .sns-finder { padding: 48px 24px; }
  .sns-finder__card { padding: 44px 42px; }
}

@media (max-width: 599px) {
  .sns-recent__grid { grid-template-columns: 1fr; }
}
