* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #16324f;
  background:
    radial-gradient(circle at top left, rgba(180, 230, 255, 0.9), transparent 32%),
    linear-gradient(135deg, #eaf8ff 0%, #f7fcff 45%, #dff3ff 100%);
  min-height: 100vh;
  padding: 24px 16px 40px;
}

/* 全体の箱 */
.container {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #8bcff0;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(57, 137, 181, 0.22);
  backdrop-filter: blur(8px);
}

/* ヘッダー */
.site-header {
  text-align: center;
  margin-bottom: 24px;
}

.site-header h1 {
  margin: 0 0 12px;
  font-size: 2.05rem;
  letter-spacing: 0.04em;
  color: #1378ad;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85);
}

.site-header p {
  margin: 0;
  line-height: 1.8;
  color: #294967;
  font-weight: 600;
}

/* 注意書き */
/* .notice {
  background: #eef9ff;
  border: 1px solid #9fd8f3;
  border-left: 6px solid #35a9df;
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 20px;
  color: #23445f;
}

.notice p {
  margin: 0;
  line-height: 1.7;
  font-weight: 600;
} */

/* 検索欄 */
.search-area {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 10px;
  margin-bottom: 16px;
}

.search-area input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 999px;
  border: 2px solid #8bcff0;
  background: #ffffff;
  color: #16324f;
  font-size: 1rem;
  outline: none;
}

.search-area input::placeholder {
  color: #7a9bb4;
}

.search-area input:focus {
  border-color: #1f9bd3;
  box-shadow: 0 0 0 4px rgba(31, 155, 211, 0.16);
}

.search-area button {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #35a9df, #1678b7);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(31, 124, 180, 0.24);
}

.search-area button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.search-area button:active {
  transform: translateY(0);
}

/* 結果件数 */
.result-info {
  margin-bottom: 16px;
  color: #126f9f;
  font-weight: 800;
}

/* 結果一覧 */
.results {
  display: grid;
  gap: 16px;
}

/* 通常カード */
.result-card {
  background: #ffffff;
  border: 1px solid #a9dff7;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(64, 143, 184, 0.12);
  color: #17324d;
}

.result-card h2 {
  margin-top: 0;
  color: #1378ad;
  font-size: 1.25rem;
  border-bottom: 1px solid #d4eefb;
  padding-bottom: 8px;
}

.result-card p {
  line-height: 1.8;
}

.result-card ul {
  line-height: 1.9;
  padding-left: 1.4em;
}

/* コメント本文 */
.comment-message {
  font-size: 1.03rem;
  line-height: 1.75;
  margin: 0 0 12px;
  color: #102f4a;
  font-weight: 600;
}

/* コメント情報 */
.comment-meta {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #41657f;
  margin-bottom: 12px;
}

/* 動画リンク */
.open-link {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  background: #e2f5ff;
  border: 1px solid #7fcdf1;
  color: #0b6fa4;
  font-weight: 800;
  text-decoration: none;
}

.open-link:hover {
  background: #c9ecff;
}

/* 空メッセージ */
.empty-message {
  text-align: center;
  color: #42637b;
  line-height: 1.8;
  font-weight: 600;
}

/* もっと見る */
.more-area {
  text-align: center;
  margin-top: 22px;
}

.more-button {
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6ec6ee, #228ccc);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(31, 124, 180, 0.25);
}

.more-button:hover {
  filter: brightness(1.05);
}

/* 配信ごとにまとめるカード */
.video-group-card {
  padding: 0;
  overflow: hidden;
}

.video-group-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #e4f7ff, #f8fdff);
  border: none;
  border-bottom: 1px solid #bce6f8;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.video-group-toggle:hover {
  background: linear-gradient(135deg, #d8f2ff, #f4fbff);
}

.video-title {
  font-weight: 800;
  line-height: 1.6;
  color: #116f9f;
}

.video-count {
  font-size: 0.9rem;
  color: #4d738d;
  font-weight: 700;
  white-space: nowrap;
}

.toggle-icon {
  color: #1378ad;
  font-weight: 900;
  font-size: 1rem;
}

.comment-item {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #d7eef9;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-item .comment-message {
  margin: 0;
  line-height: 1.7;
}

.comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 110px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #d7eef9;
}

.comment-item .open-link {
  white-space: nowrap;
}

/* フッターリンク */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.footer-links a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #8bcff0;
  color: #1378ad;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(64, 143, 184, 0.1);
}

.footer-links a:hover {
  background: #e7f7ff;
}

.loading[hidden] {
  display: none;
}

.loading {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 16px;
  color: #1378ad;
  font-weight: 800;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #d7eef9;
  border-top-color: #35a9df;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

  
.comment-list.is-closed {
  display: none !important;
}

.member-filter {
  background: #f1faff;
  border: 1px solid #bce6f8;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.filter-title {
  margin: 0 0 10px;
  color: #116f9f;
  font-weight: 800;
}

.member-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #8bcff0;
  border-radius: 999px;
  background: #ffffff;
  color: #16324f;
  font-weight: 700;
  cursor: pointer;
}

.member-checks input {
  accent-color: #35a9df;
}

.filter-note {
  margin: 10px 0 0;
  color: #5b7890;
  font-size: 0.88rem;
  line-height: 1.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* スマホ対応 */
@media (max-width: 700px) {
  body {
    padding: 16px 10px 32px;
  }

  .container {
    padding: 18px;
    border-radius: 18px;
  }

  .site-header h1 {
    font-size: 1.55rem;
  }

  .search-area {
    grid-template-columns: 1fr;
  }

  .search-area button,
  .search-area input {
    width: 100%;
  }

  .result-card {
    padding: 14px;
  }

  .video-group-header,
  .comment-item {
    padding: 14px;
  }

  .comment-item {
  grid-template-columns: 1fr;
  align-items: start;
  }

  .comment-time {
    text-align: left;
  }

  .comment-item .open-link {
    width: fit-content;
  }

  .video-group-toggle {
    grid-template-columns: 1fr auto;
  }

  .video-count {
    grid-column: 1 / 2;
    font-size: 0.85rem;
  }

  .toggle-icon {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }


}