/* 個人ページお知らせ機能 共通スタイル */
.news-card {
  background: #fff; border-radius: 18px; padding: 24px 22px;
  margin-top: 16px; box-shadow: 0 2px 14px rgba(40, 70, 70, 0.07);
}
.news-card:not(:has(.news-item)) { display: none; }
.news-card-title {
  font-size: 13px; color: #2a8d8d; font-weight: 700;
  letter-spacing: 0.12em; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid #e0eeee;
}
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item {
  padding: 12px 0; border-bottom: 1px dashed #d8e8e8;
  scroll-margin-top: 16px;
  border-radius: 8px;
  transition: background-color 0.6s, padding-left 0.2s, padding-right 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item.is-highlight {
  background: #fff4d6;
  padding-left: 10px; padding-right: 10px;
}
.news-date {
  display: block; font-size: 11px; color: #6f8a8a;
  letter-spacing: 0.05em; margin-bottom: 4px; font-weight: 600;
}
.news-body {
  font-size: 14px; color: #2c4848; line-height: 1.75;
}
.news-body a {
  color: #2a8d8d; text-decoration: underline; text-underline-offset: 2px;
}
.news-tag {
  display: inline-block; font-size: 10px; padding: 2px 8px;
  border-radius: 999px; background: #eef7f7; color: #1c5757;
  margin-right: 6px; vertical-align: middle; letter-spacing: 0.04em;
}
.news-action-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.news-detail-btn, .news-contact-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 999px;
  text-decoration: none !important; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
}
.news-detail-btn {
  background: #2a8d8d; color: #fff !important;
}
.news-contact-btn {
  background: #fff; color: #2a8d8d !important;
  border: 1px solid #2a8d8d;
}
.news-detail-btn:active, .news-contact-btn:active { opacity: 0.9; transform: scale(0.98); }
.news-photo-wrap {
  display: block; margin-top: 10px;
  border-radius: 10px; overflow: hidden;
  text-decoration: none;
  background: #f1f8f8;
}
.news-photo {
  display: block; width: 100%; max-height: 320px;
  object-fit: cover;
  transition: opacity 0.18s;
}
.news-photo-wrap:active .news-photo { opacity: 0.85; }
.news-video-wrap {
  display: block; margin-top: 10px;
  border-radius: 10px; overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.news-video-wrap iframe {
  display: block; width: 100%; height: 100%;
  border: 0;
}
.news-doc-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: #f1f8f8;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.news-doc-wrap:active { background: #e0eeee; }
.news-doc-thumb {
  flex-shrink: 0;
  width: 64px; height: 64px;
  object-fit: cover; border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8e8e8;
}
.news-doc-info { flex: 1; min-width: 0; }
.news-doc-title {
  font-size: 13px; font-weight: 600; color: #2c4848;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-doc-hint {
  font-size: 11px; color: #6f8a8a;
  margin-top: 2px;
}

/* カルーセル: .news-carousel 自体を flex にして横スクロール＋スナップ */
.news-carousel {
  position: relative;
  margin-bottom: 18px;
  display: flex; gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.news-carousel::-webkit-scrollbar { display: none; }
.news-carousel[hidden] { display: none; }
.news-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: -2px; margin-bottom: 12px;
}
.news-carousel-dots[hidden] { display: none; }
.news-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e0d4b0; transition: background 0.18s, transform 0.18s;
}
.news-carousel-dot.is-active {
  background: #d9a300; transform: scale(1.3);
}

.news-jump-wrap {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  background: #fff4d6; border-radius: 12px;
  border-left: 3px solid #f0c95e;
  padding: 10px 14px;
  transition: background 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.news-jump-wrap:active { background: #ffe9a8; transform: scale(0.99); }
.news-jump-wrap[hidden] { display: none; }
.news-jump-label {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800;
  color: #fff; background: #d9a300;
  padding: 3px 8px; border-radius: 4px;
  letter-spacing: 0.12em;
}
.news-jump-text {
  flex: 1; min-width: 0;
  font-size: 13px; color: #6a4f00;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* トップページのニュースエリア（メンバーセクション上） */
.top-news-section {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 0 18px;
}
.top-news-section[hidden] { display: none; }
.top-news-heading {
  font-size: 12px; font-weight: 700;
  color: #2a8d8d; letter-spacing: 0.14em;
  margin-bottom: 10px; text-align: center;
}
.top-news-carousel {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.top-news-carousel::-webkit-scrollbar { display: none; }
.top-news-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(40, 70, 70, 0.06);
  transition: transform 0.15s;
}
.top-news-card:active { transform: scale(0.99); }
.top-news-photo {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%; object-fit: cover;
  background: #eaf1f1;
}
.top-news-info { flex: 1; min-width: 0; }
.top-news-name {
  font-size: 13px; font-weight: 700;
  color: #15302f;
}
.top-news-text {
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
  font-size: 12px; color: #2c4848;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-news-text-body {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-news-tag {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: #d9a300;
  padding: 2px 6px; border-radius: 4px;
  flex-shrink: 0;
}
.top-news-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 8px;
}
.top-news-dots[hidden] { display: none; }
.top-news-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d6e8e8; transition: background 0.18s, transform 0.18s;
}
.top-news-dot.is-active {
  background: #2a8d8d; transform: scale(1.3);
}
@media (min-width: 768px) {
  .top-news-card { padding: 16px 20px; gap: 16px; }
  .top-news-photo { width: 64px; height: 64px; }
  .top-news-name { font-size: 14px; }
  .top-news-text { font-size: 13px; margin-top: 4px; }
}

/* メンバーカードの通知バッジ（過去1ヶ月のニュース数） */
.member-photo-wrap {
  position: relative;
  width: 96px;
  margin-left: auto;
  margin-right: auto;
}
.member-news-badge {
  position: absolute;
  top: -1px; right: -1px;
  min-width: 25px; height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 13px; font-weight: 700;
  line-height: 25px; text-align: center;
  box-shadow: 0 2px 7px rgba(255, 59, 48, 0.47), 0 0 0 2px #fff;
  cursor: pointer;
  z-index: 2;
}
.member-news-badge:hover { transform: scale(1.08); }
.member-news-badge:focus-visible { outline: 2px solid #ff3b30; outline-offset: 2px; }
.member-news-badge[hidden] { display: none; }
.top-news-more {
  display: block; width: 100%;
  margin-top: 12px; padding: 10px 16px;
  text-align: center;
  background: transparent;
  border: 1px solid #2a8d8d;
  border-radius: 999px;
  color: #2a8d8d !important;
  text-decoration: none !important;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.18s;
}
.top-news-more:active { background: #f1f8f8; }
.top-news-more[hidden] { display: none; }
