/* css/nightbot.css */
.section {
  padding: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  border-bottom: 1px solid #444;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.screenshot {
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero {
  background-color: #1a1a1a;
  padding: 2em 1em;
  text-align: center;
}

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

a.steam-profile {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.steam-comment-card {
  width: 800px;
  max-width: 800px;
  border-radius: 20px;
  border: 1.5px solid #262e36;
  background: #181c22;
  box-shadow: 0 4px 24px rgba(145, 234, 90, 0.18);
  padding: 1.4em 1.6em 1.2em 1.6em;
  color: #f2f2f2;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.steam-comment-card:hover {
  box-shadow: 0 6px 28px rgba(0, 255, 136, 0.13);
  border-color: #00ff88;
}

.steam-comment-header {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 0.3em;
  min-height: 48px;
  flex-wrap: wrap;
}

.steam-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #00ff88;
  background: #242a31;
  object-fit: cover;
  flex-shrink: 0;
}

.steam-personaname {
  font-weight: bold;
  font-size: 1.45em;
  letter-spacing: 0.01em;
  margin-bottom: 0.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-title-badge {
  display: inline-block;
  margin-top: 0.35em;
  margin-left: 1.5em;
  padding: 0.25em 0.8em;
  font-size: 0.7em;
  background: #262e36;
  color: #00ff88;
  border-radius: 1.2em;
  border: 1px solid #00ff88;
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0.03em;
  white-space: nowrap;
  align-self: flex-start;
}

.name-and-badge {
  display: flex;
  flex-direction: row;
  justify-content: center;
  min-width: 0;
}

.steam-sns-icons {
  margin-left: auto;
  /* 右端に寄せる */
  display: flex;
  align-items: center;
  gap: 0.3em;
  min-width: 0;
  flex-shrink: 0;
}

.sns-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  opacity: 0.83;
  transition: opacity 0.18s;
}

.sns-icon.deaf-ray {
  width: 30px;
  height: 30px;
  margin-right: 6px;

}

.sns-icon.x {
  width: 24px;
  height: 24px;
  margin-right: 6px;
}

.sns-icon.coconala {
  width: 33px;
  height: 33px;
}

.sns-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sns-icon:hover {
  opacity: 1;
}

.steam-promotion {
  margin: 0.3em 0 0.3em 1.1em;
  font-size: 0.75em;
  color: #70a08a;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-align: right
}

.steam-comment-body {
  margin-top: 0.4em;
  font-size: 1.06em;
  line-height: 1.7;
  margin-top: 1.0em;
  padding-top: 0.8em;
  padding-left: 0.8em;
  padding-bottom: 0.3em;
  border-left: 2px solid #00ff88;
  background: rgba(0, 255, 136, 0.04);
  word-break: break-word;
}

.section-carousel {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.section-carousel .swiper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible;
  padding: 2em 0;
}

.swiper {
  position: relative;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}


.swiper-slide {
  width: auto !important;
  display: flex;
  justify-content: center;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.45;
  filter: brightness(0.7);
}

.swiper-slide-active {
  opacity: 1;
  filter: brightness(1);
  z-index: 2;
}

/* ナビゲーションボタンを非表示に */
.swiper-button-prev,
.swiper-button-next {
  display: none !important;
}

.swiper-pagination-bullet {
  background: #3b3d40 !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: #325344 !important;
}

@media (max-width: 900px) {

  .steam-avatar {
    margin-left: 0.75em;
  }

  .steam-comment-card {
    width: 96vw;
    max-width: 96vw;
  }

  .name-and-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .steam-title-badge {
    margin-left: 1.0em;
    margin-top: 0.2em;
    font-size: 0.7em
  }
}

@media (max-width: 600px) {

  .section,
  .section-carousel {
    padding: 1em 0.3em;
    max-width: 100vw;
  }

  .steam-comment-card {
    width: 100%;
    max-width: 99vw;
    padding: 0.8em 0.5em;
    font-size: 1em;
  }

  .steam-avatar {
    margin-left: 0.75em;
  }

  .steam-personaname {
    font-size: 1.3em;
  }

  .steam-title-badge {
    margin-left: 0.7em;
    font-size: 0.7em
  }

  .steam-sns-icons {
    gap: 0.2em;
  }

  .swiper {
    padding: 1em 0;
  }
}

@media (max-width: 480px) {

  .section,
  .section-carousel {
    padding: 0.2em 0.1em;
  }

  .steam-avatar {
    margin-left: 0.75em;
  }


  .steam-comment-card {
    padding: 0.5em 0.2em;
    font-size: 0.97em;
  }

  .steam-title-badge {
    margin-left: 0.7em;
    font-size: 0.7em
  }

}