@charset "UTF-8";

/* ==============================================
   CSS RESET & VARIABLES
============================================== */
:root {
  /* Brand Colors */
  --primary-pink: #f72b68;
  --primary-pink-hover: #e01b57;
  --primary-yellow: #ffdf00;
  --accent-cyan: #00b4d8;

  /* Character Colors */
  --color-yamada: #168bd2;
  --color-yamada-light: #e1f2fb;
  --color-k: #e91e63;
  --color-k-light: #fce4ec;
  --color-takeshi: #7cb342;
  --color-takeshi-light: #f1f8e9;



  /* Neutral Colors */
  --text-dark: #222222;
  --text-body: #333333;
  --text-gray: #666666;
  --text-light-gray: #888888;
  --border-light: #e8e8e8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;

  /* Typography */
  --font-family-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-en: "Montserrat", -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 20px rgba(247, 43, 104, 0.18);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-dark);
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle, #e2e8f0 1.2px, transparent 1.2px),
    url('../images/bg-pop-sparkles.webp');
  background-size: 20px 20px, 390px auto;
  background-repeat: repeat, repeat;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* Visibility Utilities */
.pc-only {
  display: block;
}
.sp-only {
  display: none !important;
}

@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block !important;
  }
}

/* ==============================================
   HEADER
============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 0 0 24px;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* PC Navigation */
.header-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-item {
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  border-right: 1px solid var(--border-light);
  gap: 10px;
  position: relative;
  transition: background-color var(--transition-fast);
}

.nav-link:hover {
  background-color: #fff5f8;
}

.nav-link:hover .nav-title {
  color: var(--primary-pink);
}

.nav-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-link:hover .nav-icon img {
  transform: scale(1.1);
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
}

.nav-sub {
  font-family: var(--font-family-en);
  font-size: 8px;
  font-weight: 800;
  color: var(--text-light-gray);
  letter-spacing: 0.5px;
}

/* SWELL Global Nav Text Bold */
.c-gnav .ttl,
.c-gnav .ttl > span,
#gnav .ttl,
#gnav .ttl > span {
  font-weight: 700 !important;
}

.header-search-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  background-color: var(--primary-pink);
  color: #ffffff;
  transition: background-color var(--transition-fast);
}

.header-search-btn:hover {
  background-color: var(--primary-pink-hover);
}

.search-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-search-btn span {
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

/* SP Header Actions */
.header-sp-actions {
  display: flex;
  align-items: center;
  height: 100%;
}

.sp-action-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  color: var(--text-dark);
}

.sp-action-btn i {
  font-size: 17px;
  margin-bottom: 2px;
}

.sp-action-btn span {
  font-size: 9px;
  font-weight: 800;
}

.sp-menu-btn {
  border-left: 1px solid var(--border-light);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-dark);
  margin: 2px 0;
  transition: all var(--transition-normal);
}

.sp-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sp-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.sp-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* SP Drawer Menu */
.sp-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 3px solid var(--primary-pink);
  box-shadow: var(--shadow-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sp-drawer.open {
  display: block;
  max-height: 480px;
}

.sp-drawer-inner {
  padding: 16px 20px 24px;
}

.sp-drawer-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.sp-drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  font-weight: 800;
}

.sp-drawer-link img {
  width: 28px;
  height: 28px;
}

.sp-drawer-link p {
  font-size: 15px;
  margin-bottom: 2px;
}

.sp-drawer-link span {
  font-size: 9px;
  color: var(--text-light-gray);
  font-family: var(--font-family-en);
}

.sp-drawer-search {
  margin-top: 20px;
}

.search-input-wrap {
  display: flex;
  border: 2px solid var(--primary-pink);
  border-radius: 25px;
  overflow: hidden;
}

.search-input-wrap input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-input-wrap button {
  background: var(--primary-pink);
  color: #fff;
  padding: 0 18px;
  font-size: 16px;
}

/* ==============================================
   SWELL CONTENT RESET (TOP PAGE)
============================================== */
#body_wrap.home,
#body_wrap.top,
body.home,
body.front-page {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle, #e2e8f0 1.2px, transparent 1.2px),
    url('../images/bg-pop-sparkles.webp');
  background-size: 20px 20px, 390px auto;
  background-repeat: repeat, repeat;
}

#body_wrap.home #content,
#body_wrap.top #content,
.home #content,
.top #content {
  background-color: transparent !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#body_wrap.home main,
#body_wrap.top main,
.home main,
.top main {
  background-color: transparent !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ==============================================
   HERO / MAIN VISUAL
============================================== */
.hero-section {
  width: 100%;
  background-color: var(--primary-yellow);
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
}

.hero-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

.hero-img-wrap {
  width: 100%;
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-cta-hotspot {
  position: absolute;
  bottom: 11%;
  left: 35%;
  width: 29%;
  height: 20%;
  cursor: pointer;
  z-index: 10;
  border-radius: 40px;
  transition: transform var(--transition-fast);
}

.hero-cta-hotspot:hover {
  transform: scale(1.03);
}

.sp-hero-hotspot {
  bottom: 6%;
  left: 8%;
  width: 84%;
  height: 14%;
}

/* ==============================================
   COMMON SECTION STYLES
============================================== */
#new-reports,
#investigators,
#knowledge,
#ranking,
#area-search {
  scroll-margin-top: 85px;
}

@media (max-width: 768px) {
  #new-reports,
  #investigators,
  #knowledge,
  #ranking,
  #area-search {
    scroll-margin-top: 65px;
  }
}

.section-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.crown-icon {
  width: 34px;
  height: 34px;
}

.map-icon {
  width: 34px;
  height: 34px;
}

.title-text-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-family: var(--font-family-en);
  font-size: 13.5px;
  font-weight: 900;
  font-style: italic;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

/* More Button with Pink Circle Arrow (Camp Match) */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 16px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-body);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.more-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  transition: transform var(--transition-fast);
}

.more-btn:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  box-shadow: var(--shadow-hover);
}

.more-btn:hover .more-arrow {
  transform: translateX(2px);
  background-color: var(--primary-pink-hover);
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d8d8d8;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dots .dot.active {
  background-color: var(--primary-pink);
  width: 20px;
  border-radius: 4px;
}

/* ==============================================
   CAROUSEL BASE & ARROWS
============================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(247, 43, 104, 0.4);
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background-color: var(--primary-pink-hover);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -17px;
}

.next-btn {
  right: -17px;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

/* ==============================================
   最新の調査報告 (NEW REPORT!)
============================================== */
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.report-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
}

.report-card-inner {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

.report-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 58%;
  background-color: #f3f4f6;
  overflow: hidden;
}

.card-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.report-card-inner:hover .card-thumb {
  transform: scale(1.05);
}

/* Badges */
.badge-new-img {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  width: 38px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.badge-area {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

.card-body {
  padding: 12px 14px 14px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto;
  min-height: 4.35em;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-date {
  font-size: 11px;
  color: var(--text-light-gray);
  font-family: var(--font-family-en);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==============================================
   調査官紹介 (INVESTIGATORS! - 5x2 / 2x5 Grid)
============================================== */
.investigators-section {
  padding-top: 10px;
}

.investigators-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.investigator-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.investigator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.investigator-card.card-blue:hover { border-color: var(--color-yamada); }
.investigator-card.card-pink:hover { border-color: var(--color-k); }
.investigator-card.card-green:hover { border-color: var(--color-takeshi); }
.investigator-card.card-red:hover { border-color: #dc2626; }
.investigator-card.card-purple:hover { border-color: #7e22ce; }
.investigator-card.card-teal:hover { border-color: #0d9488; }
.investigator-card.card-indigo:hover { border-color: #4338ca; }
.investigator-card.card-orange:hover { border-color: #d97706; }
.investigator-card.card-gold:hover { border-color: #ca8a04; }
.investigator-card.card-emerald:hover { border-color: #059669; }

.inv-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 86%;
  overflow: hidden;
}

/* Character Card Backgrounds */
.card-blue .inv-img-wrap {
  background: radial-gradient(circle, #38bdf8 0%, var(--color-yamada) 100%);
}
.card-pink .inv-img-wrap {
  background: radial-gradient(circle, #f472b6 0%, var(--color-k) 100%);
}
.card-green .inv-img-wrap {
  background: radial-gradient(circle, #a3e635 0%, var(--color-takeshi) 100%);
}
.card-red .inv-img-wrap {
  background: radial-gradient(circle, #f87171 0%, #dc2626 100%);
}
.card-purple .inv-img-wrap {
  background: radial-gradient(circle, #c084fc 0%, #7e22ce 100%);
}
.card-teal .inv-img-wrap {
  background: radial-gradient(circle, #2dd4bf 0%, #0d9488 100%);
}
.card-indigo .inv-img-wrap {
  background: radial-gradient(circle, #818cf8 0%, #4338ca 100%);
}
.card-orange .inv-img-wrap {
  background: radial-gradient(circle, #fbbf24 0%, #d97706 100%);
}
.card-gold .inv-img-wrap {
  background: radial-gradient(circle, #fde047 0%, #eab308 100%);
}
.card-emerald .inv-img-wrap {
  background: radial-gradient(circle, #34d399 0%, #059669 100%);
}
.card-soon .inv-img-wrap {
  background: radial-gradient(circle, #9ca3af 0%, #4b5563 100%);
}

.inv-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.investigator-card:hover .inv-img {
  transform: scale(1.04);
}

/* Coming soon silhouette */
.soon-silhouette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: rgba(255, 255, 255, 0.7);
}

/* Comic-style Slanted Name Banner (Camp Match) */
.inv-name-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background-color: #ffffff;
  border: 2px solid #000000;
  padding: 3px 8px;
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 #000000;
  z-index: 10;
}

.inv-name-tag span {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.inv-content {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.inv-intro {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #374151;
  margin-bottom: 10px;
  min-height: 2.9em;
}

.inv-spec-list {
  font-size: 10px;
  margin-bottom: 0;
}

.spec-row {
  display: flex;
  align-items: baseline;
  padding: 3px 0;
  border-bottom: 1px dashed #f3f4f6;
  gap: 4px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  font-weight: 900;
  width: 5.4em;
  white-space: nowrap;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

/* Spec DT Colors */
.card-blue .spec-row dt {
  color: var(--color-yamada);
}
.card-pink .spec-row dt {
  color: var(--color-k);
}
.card-green .spec-row dt {
  color: var(--color-takeshi);
}
.card-red .spec-row dt {
  color: #dc2626;
}
.card-purple .spec-row dt {
  color: #7e22ce;
}
.card-teal .spec-row dt {
  color: #0d9488;
}
.card-indigo .spec-row dt {
  color: #4338ca;
}
.card-orange .spec-row dt {
  color: #d97706;
}
.card-gold .spec-row dt {
  color: #ca8a04;
}
.card-emerald .spec-row dt {
  color: #059669;
}
.card-soon .spec-row dt {
  color: #6b7280;
}

.spec-row dd {
  color: #374151;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding: 7px 4px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-blue {
  background-color: var(--color-yamada);
}
.btn-blue:hover {
  background-color: #0d70ab;
}

.btn-pink {
  background-color: var(--color-k);
}
.btn-pink:hover {
  background-color: #c2185b;
}

.btn-green {
  background-color: var(--color-takeshi);
}
.btn-green:hover {
  background-color: #689f38;
}

.btn-red {
  background-color: #dc2626;
}
.btn-red:hover {
  background-color: #b91c1c;
}

.btn-purple {
  background-color: #7e22ce;
}
.btn-purple:hover {
  background-color: #6b21a8;
}

.btn-teal {
  background-color: #0d9488;
}
.btn-teal:hover {
  background-color: #0f766e;
}

.btn-indigo {
  background-color: #4338ca;
}
.btn-indigo:hover {
  background-color: #3730a3;
}

.btn-orange {
  background-color: #d97706;
}
.btn-orange:hover {
  background-color: #b45309;
}

.btn-gold {
  background-color: #ca8a04;
}
.btn-gold:hover {
  background-color: #a16207;
}

.btn-emerald {
  background-color: #059669;
}
.btn-emerald:hover {
  background-color: #047857;
}

.btn-soon {
  background-color: #9ca3af;
  cursor: default;
}

.inv-btn:hover:not(.btn-soon) {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ==============================================
   メンエス豆知識 (KNOWLEDGE! - Independent Section)
============================================== */
.knowledge-section {
  padding-top: 10px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.knowledge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 13px 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.knowledge-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-pink);
  box-shadow: var(--shadow-md);
}

.knowledge-info {
  flex: 1;
  min-width: 0;
}

.knowledge-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color var(--transition-fast);
}

.knowledge-item:hover .knowledge-title {
  color: var(--primary-pink);
}

.knowledge-date {
  font-size: 11px;
  color: var(--text-light-gray);
  font-family: var(--font-family-en);
  font-weight: 600;
  display: block;
}

.knowledge-arrow {
  color: #c4c7d0;
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.knowledge-item:hover .knowledge-arrow {
  color: var(--primary-pink);
  transform: translateX(3px);
}

/* ==============================================
   人気の調査報告 TOP5 (RANKING!)
============================================== */
.ranking-section {
  padding-top: 10px;
}

.ranking-wrapper {
  width: 100%;
}

.ranking-track {
  display: flex;
  gap: 14px;
}

.ranking-card {
  flex: 1;
  min-width: 0;
}

.ranking-card-inner {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

.ranking-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Ranking Badges */
.rank-badge-img {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 5;
  width: 42px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transition: transform var(--transition-fast);
}

.ranking-card-inner:hover .rank-badge-img {
  transform: scale(1.1) translateY(-2px);
}



/* ==============================================
   エリアから探す (AREA SEARCH!)
============================================== */
.area-section {
  padding-top: 10px;
}

.area-banner-wrap {
  width: 100%;
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.area-banner-picture {
  display: block;
  width: 100%;
}

.area-banner-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.area-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: none;
  background: transparent;
  padding: 0;
}

.area-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  filter: brightness(1.03);
}

.area-btn-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ==============================================
   「メンエス抜き。とは？」 (ABOUT BANNER)
============================================== */
.about-section {
  max-width: 1180px;
  margin: 16px auto 36px;
  padding: 0 24px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 16px 28px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-badge-wrap {
  flex-shrink: 0;
  width: 170px;
}

.about-bubble-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-text-body {
  flex: 1;
}

.about-desc {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 12px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #000000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 22px;
  border-radius: 30px;
  transition: all var(--transition-fast);
}

.about-btn:hover {
  background-color: var(--primary-pink);
  transform: translateX(3px);
}

.about-illustration {
  flex: 0 0 310px;
  margin-left: 16px;
  display: flex;
  justify-content: flex-end;
}

.group-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==============================================
   FOOTER
============================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 26px 24px 20px;
  position: relative;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo img {
  height: 62px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-nav {
  margin-bottom: 14px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 12px;
  color: #d4d4d8;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.separator {
  color: #52525b;
  font-size: 11px;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #3f3f46;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: #ffffff;
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.copyright {
  font-size: 11px;
  color: #71717a;
  font-family: var(--font-family-en);
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  background-color: var(--primary-pink);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(247, 43, 104, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-pink-hover);
  transform: translateY(-4px);
}

/* ==============================================
   RESPONSIVE (TABLET & SP)
============================================== */
@media (max-width: 1024px) {
  .section-container {
    padding: 30px 20px;
  }

  .investigators-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .area-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .report-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }

  .ranking-card {
    flex: 0 0 calc((100% - 28px) / 3);
  }
}

@media (max-width: 900px) {
  .investigators-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body,
  #body_wrap.home,
  #body_wrap.top,
  body.home,
  body.front-page {
    background-size: 18px 18px, 320px auto;
  }

  /* ─── Header ─── */
  .header-inner {
    height: 56px;
    padding: 0 0 0 16px;
  }

  .header-logo img {
    height: 34px;
  }

  /* ─── Section共通 ─── */
  .section-container {
    padding: 20px 14px;
  }

  .section-header {
    margin-bottom: 12px;
    /* タイトルとサブが横並びで折り返さないよう flex-wrap: nowrap */
    flex-wrap: nowrap;
    align-items: center;
  }

  .section-title-wrap {
    gap: 7px;
    min-width: 0;
  }

  .title-text-group {
    gap: 6px;
    align-items: baseline;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .title-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .crown-icon,
  .map-icon {
    width: 22px;
    height: 22px;
  }

  /* セクションタイトル — SP用フォントサイズ */
  .section-title {
    font-size: 16px;
    white-space: nowrap;
    letter-spacing: -0.5px;
  }

  .section-subtitle {
    font-size: 10px;
    white-space: nowrap;
  }

  /* ─── Latest Reports SP Slider ─── */
  .carousel-wrapper {
    overflow: visible;
  }

  .carousel-track {
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  /* カードがほぼ全幅で見やすく */
  .report-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  /* カードタイトルは3行表示で高さ統一 */
  .card-title {
    font-size: 13px;
    line-height: 1.4;
    height: auto;
    min-height: 4.2em;
    -webkit-line-clamp: 3;
  }

  .card-body {
    padding: 10px 12px 12px;
  }

  .author-avatar {
    width: 32px;
    height: 32px;
  }

  .author-name {
    font-size: 11px;
  }

  .post-date {
    font-size: 10px;
  }

  /* ─── Investigators Grid SP: 2列 ─── */
  .investigators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .investigator-card .inv-img-wrap {
    padding-top: 90%;
  }

  .inv-name-tag span {
    font-size: 10px;
  }

  .investigator-card .inv-content {
    padding: 8px 8px 10px;
  }

  /* intro は行数を固定してカード高さを揃える */
  .investigator-card .inv-intro {
    font-size: 9.5px;
    line-height: 1.4;
    min-height: unset;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 7px;
  }

  .investigator-card .inv-spec-list {
    font-size: 9px;
    margin-bottom: 0;
  }

  .investigator-card .spec-row {
    padding: 2px 0;
  }

  .investigator-card .spec-row dt {
    width: 5em;
    white-space: nowrap;
    letter-spacing: -0.04em;
    font-size: 9px;
  }

  .investigator-card .spec-row dd {
    font-size: 9px;
  }

  .investigator-card .inv-btn {
    font-size: 10px;
    padding: 6px 4px;
    margin-top: 8px;
  }

  /* ─── Knowledge Grid SP: 1列 ─── */
  .knowledge-section {
    padding-top: 6px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .knowledge-item {
    padding: 11px 14px;
    gap: 10px;
  }

  .knowledge-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .knowledge-date {
    font-size: 10px;
  }

  /* ─── Ranking SP Slider ─── */
  .ranking-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .ranking-track::-webkit-scrollbar {
    display: none;
  }

  .ranking-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  /* ─── Area Banner SP ─── */
  .area-banner-wrap {
    margin: 0 auto 14px;
  }

  .area-banner-img {
    border-radius: 8px;
  }

  /* ─── Area Grid SP: 2列4行 ─── */
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .area-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .area-btn-img {
    border-radius: 8px;
  }

  /* ─── About Banner SP ─── */
  .about-container {
    flex-direction: column;
    padding: 20px 16px 0;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
    gap: 14px;
  }

  .about-badge-wrap {
    width: 200px;
  }

  .about-desc {
    font-size: 12px;
    text-align: left;
  }

  .about-illustration {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    margin: 16px auto 0;
    justify-content: center;
  }

  /* ─── Footer SP ─── */
  .footer-logo img {
    height: 44px;
    margin-bottom: 12px;
  }

  .footer-nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .separator {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ==============================================
   WordPress Admin Bar Fix
============================================== */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* ==============================================
   SWELL共通ヘッダー連携：トップページ & プロフィールページの全幅化・中央寄せ
============================================== */
body.home #content.l-content,
body.front-page #content.l-content,
body[class*="page-template-page-profile"] #content.l-content,
body[class*="page-template-page-profile"] .l-container,
body[class*="page-template-page-profile"] .l-mainContent,
body[class*="page-template-page-profile"] #main_content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  float: none !important;
}
