/* Layout */
.pl-32 {
  margin-left: 32px;
}

.nh-media-sns {
  padding: 80px 0;
  background: var(--white);
}

.nh-media-sns-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar */
.nh-media-sns-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.nh-media-sns-nav-list {
  border: 1px solid var(--gray);
  border-radius: 4px;
  overflow: hidden;
}

.nh-media-sns-nav-item + .nh-media-sns-nav-item {
  border-top: 1px solid var(--gray);
}

.nh-media-sns-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  background: var(--white);
  transition: background 0.25s ease, color 0.25s ease;
}

.nh-media-sns-nav-link:hover {
  background: var(--light-white);
}

.nh-media-sns-arrow {
  width: 22px;
  height: 22px;
}

/* Sidebar highlighted card */
.nh-media-sns-highlight {
  margin-top: 24px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--light-yellow);
  border-radius: 6px;
}

.nh-media-sns-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nh-media-sns-highlight-icon img {
  width: 44px;
  height: 44px;
}

.nh-media-sns-highlight-label {
  font-size: 12px;
  line-height: 18px;
  color: var(--text);
}

.nh-media-sns-highlight-link {
  font-size: 14px;
  line-height: 20px;
  color: var(--primary);
  font-weight: 700;
}

/* Sidebar secondary buttons */
.nh-media-sns-side-buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nh-media-sns-side-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--light-white);
  border: 1px solid var(--gray);
  font-size: 13px;
  line-height: 20px;
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nh-media-sns-side-btn:hover {
  background: var(--white);
  border-color: var(--primary);
}

.nh-media-sns-side-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nh-media-sns-side-btn-icon img {
  width: 24px;
  height: 24px;
}

.nh-media-sns-side-btn-text {
  flex: 1;
}

/* Main content */
.nh-media-sns-content {
  flex: 1;
}

/* Block header */
.nh-media-sns-block + .nh-media-sns-block {
  margin-top: 64px;
}

.nh-media-sns-header {
  background: var(--light-white);
  border-radius: 4px;
  padding: 16px 28px;
  margin-bottom: 26px;
  position: relative;
}
.nh-media-sns-header::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--primary);
}

.nh-media-sns-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--primary);
}

/* Subtitles (hospital / section headings) */
.nh-media-sns-section + .nh-media-sns-section {
  margin-top: 40px;
}

.nh-media-sns-subtitle {
  font-size: 19.2px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 14px;

  padding-bottom: 17px;
  border-bottom: 1px dashed var(--primary);
  color: var(--primary);
}

/* SNS table-like layout */
.nh-media-sns-table {
  border: 1px solid var(--gray);
  overflow: hidden;
}

.nh-media-sns-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--gray);
}

.nh-media-sns-row:last-child {
  border-bottom: none;
}

.nh-media-sns-cell {
  padding: 18px 20px;
  background: var(--white);
  align-content: center;
}
.nh-media-sns-cell.nh-media-sns-cell--links {
  padding: 32px 40px;
}

.nh-media-sns-cell--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f7f7f7;
  min-height: 144px;
}

.nh-media-sns-cell--icon img {
  width: 48px;
  height: 48px;
}

.nh-media-sns-service-name {
  color: var(--text);
  align-content: center;
  font-size: 16px;
  line-height: 21px;
}

.nh-media-sns-cell--links ul {
  list-style: none;
}

.nh-media-sns-cell--links li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
  color: var(--text);
}

.nh-media-sns-cell--links li + li {
  margin-top: 12px;
}

.nh-media-sns-cell--links a {
  color: var(--text);
  text-decoration: underline;
}

.text-deco-none {
  text-decoration: none;
}

.nh-media-sns-cell--links a:hover {
  text-decoration: underline;
  color: var(--primary);
}

.nh-media-sns-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--golden);
  flex-shrink: 0;
}

/* Placeholder cards (for images / media blocks) */
.nh-media-sns-placeholder-card {
  border-radius: 4px;
  border: 1px solid var(--gray);
  background: #f7f7f7;
  overflow: hidden;
}

.nh-media-sns-placeholder-card img {
  display: block;
  width: 100%;
  height: auto;
}

.nh-media-sns-placeholder-card--small {
  max-width: 800px;
}

/* Related & popular pages */
.nh-media-sns-related {
  margin-top: 60px;
}

.nh-media-sns-related-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
  margin-bottom: 32px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.nh-media-sns-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nh-media-sns-related-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nh-media-sns-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 4px;
  border: 1px solid var(--gray);
  background: var(--white);
  font-size: 16px;
  line-height: 22px;
  font-weight: bold;
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: underline;
}

.nh-media-sns-related-card:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 991px) {
  .nh-media-sns-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .nh-media-sns-sidebar {
    width: 100%;
  }

  .nh-media-sns-row {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .nh-media-sns-related-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nh-media-sns-content {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .nh-media-sns {
    padding: 60px 0;
  }

  .nh-media-sns-row {
    grid-template-columns: 1fr;
  }

  .nh-media-sns-cell--icon {
    align-items: flex-start;
  }

  .nh-media-sns-related-grid,
  .nh-media-sns-related-grid--4 {
    grid-template-columns: 1fr;
  }

  .nh-media-sns-header {
    padding: 12px 16px;
  }

  .nh-media-sns-title {
    font-size: 16px;
  }
  .nh-media-sns-content {
    width: 100%;
  }
  .nh-media-sns-cell.nh-media-sns-cell--links {
    padding: 32px 18px;
  }
  .pl-32 {
    margin-left: 0px;
  }
}

@media (max-width: 600px) {
  .nh-media-sns {
    padding: 40px 0;
  }

  .nh-media-sns-wrapper {
    gap: 32px;
  }

  .nh-media-sns-block + .nh-media-sns-block {
    margin-top: 48px;
  }
  .nh-media-sns-content {
    width: 100%;
  }
  .nh-media-sns-cell.nh-media-sns-cell--links {
    padding: 32px 18px;
  }
  .pl-32 {
    margin-left: 0px;
  }
}
