/* ============ 美容ニュース ============ */
.news-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 48px 16px 40px;
  text-align: center;
  color: #fff;
}
.news-hero-inner { max-width: 900px; margin: 0 auto; }
.news-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; margin: 0 0 8px; color: #fff; }
.news-hero p { font-size: 15px; opacity: 0.85; margin: 0 0 20px; }

.news-tag-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 0; }
.news-tag-filters::-webkit-scrollbar { height: 0; }
.news-tag-btn {
  padding: 7px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.news-tag-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.news-tag-btn.active { background: #fff; border-color: #fff; color: #C2185B; font-weight: 700; }
@media (max-width: 600px) {
  .news-tag-filters { flex-wrap: nowrap; justify-content: flex-start; }
  .news-tag-btn { padding: 6px 14px; font-size: 12px; }
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  align-items: start;
}
.news-loading, .news-error, .news-empty {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  background: #fff;
  border-radius: 12px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  display: flex;
  gap: 0;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10); }
.news-card-thumb {
  width: 160px;
  min-height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #C2185B);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-thumb-placeholder { font-size: 32px; opacity: 0.5; }
.news-card-body { padding: 14px 16px; flex: 1; min-width: 0; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.news-source-badge {
  font-size: 11px;
  font-weight: 700;
  color: #C2185B;
  background: #fff0f5;
  border: 1px solid #f8c0d0;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.news-card-date { font-size: 11px; color: #999; }
.news-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.news-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.news-card-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #f5f5f5;
  color: #666;
  border-radius: 20px;
}
.news-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #999;
}
.news-stat { display: flex; align-items: center; gap: 3px; }

.news-load-more-btn {
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #C2185B;
  cursor: pointer;
  margin-top: 16px;
}
.news-load-more-btn:hover { border-color: #C2185B; background: #fff0f5; }

/* モーダル */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.news-modal {
  background: #fff;
  border-radius: 16px;
  width: min(720px, 100%);
  max-width: 720px;
  position: relative;
  margin: auto;
}
.news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.news-detail-hero-img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px 16px 0 0; }
.news-detail-body { padding: 24px; }
.news-detail-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.news-detail-title { font-size: 22px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; color: #1a1a1a; }
.news-detail-ai-label {
  font-size: 12px;
  font-weight: 700;
  color: #C2185B;
  background: #fff0f5;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}
.news-detail-ai-summary {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  padding: 16px;
  background: #fafafa;
  border-radius: 10px;
  border-left: 3px solid #C2185B;
  white-space: pre-wrap;
}
.news-detail-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: 0.2s;
}
.news-detail-link-btn:hover { background: #0f3460; }

.news-like-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #eee;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  color: #666;
}
.news-like-btn.liked { background: #fff0f5; border-color: #C2185B; color: #C2185B; }

.news-comments-section { border-top: 1px solid #f0f0f0; padding-top: 20px; }
.news-comments-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.news-comment-form { margin-bottom: 20px; }
.news-comment-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
  margin-bottom: 8px;
  font-family: inherit;
}
.news-comment-submit {
  padding: 9px 20px;
  background: #C2185B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.news-comment-submit:hover { background: #ad1457; }
.news-comment-card {
  padding: 14px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  margin-bottom: 10px;
}
.news-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.news-comment-user { font-size: 13px; font-weight: 700; color: #333; }
.news-comment-date { font-size: 11px; color: #999; }
.news-comment-body { font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 8px; }
.news-comment-like-btn {
  background: none;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #999;
  transition: 0.15s;
}
.news-comment-like-btn.liked { border-color: #C2185B; color: #C2185B; }

/* サイドバー */
.news-sidebar { position: sticky; top: 80px; }
.news-schedule-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  margin-bottom: 16px;
}
.news-schedule-title { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 12px; }
.news-schedule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #f9f9f9;
}
.news-schedule-hour { width: 36px; font-weight: 700; color: #C2185B; flex-shrink: 0; }
.news-schedule-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.news-schedule-dot.done { background: #C2185B; }
.news-schedule-dot.pending { background: #e0e0e0; }

/* レスポンシブ */
@media (max-width: 768px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; display: block; margin-top: 24px; }
  .news-card-thumb { width: 110px; min-height: 90px; }
  .news-card-title { font-size: 14px; }
}
@media (max-width: 480px) {
  .news-card { flex-direction: column; }
  .news-card-thumb { width: 100%; height: 140px; }
}

/* ========== ページネーション共通 ========== */
.pagination-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 0 16px; }
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.page-btn { min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; transition: all 0.15s; color: #444; display: inline-flex; align-items: center; justify-content: center; }
.page-btn:hover:not(.disabled):not(.active):not([disabled]) { border-color: #C2185B; color: #C2185B; }
.page-btn.active { background: #C2185B; border-color: #C2185B; color: #fff; font-weight: 700; }
.page-btn[disabled], .page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-prev, .page-next { padding: 0 14px; font-size: 13px; }
.page-ellipsis { padding: 0 6px; color: #999; font-size: 14px; line-height: 36px; }
.pagination-info { font-size: 12px; color: #999; }
@media (max-width: 480px) { .page-btn { min-width: 32px; height: 32px; font-size: 13px; padding: 0 8px; } }

/* ========== 記事詳細ページ ========== */
.news-detail-page { max-width: 820px; margin: 0 auto; padding: 24px 16px 48px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #C2185B; text-decoration: none; }
.news-article-body { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); margin-bottom: 32px; }
.news-article-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.news-article-title { font-size: clamp(20px,3vw,28px); font-weight: 800; color: #1a1a1a; line-height: 1.4; margin: 12px 0 20px; }
.news-article-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.news-ai-summary { background: linear-gradient(135deg,#fff0f5,#fff8f0); border-left: 4px solid #C2185B; border-radius: 0 12px 12px 0; padding: 24px 28px; margin-bottom: 28px; }
.news-ai-label { font-size: 13px; font-weight: 700; color: #C2185B; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.news-ai-summary p, .news-ai-text { font-size: 15px; line-height: 2.2; color: #333; margin: 0; white-space: pre-line; letter-spacing: 0.03em; word-break: break-word; }
.news-article-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.news-source-btn { padding: 10px 18px; background: #C2185B; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; }
.news-source-btn:hover { background: #ad1457; }
.news-comments-section { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.news-comments-title { font-size: 18px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.news-comments-count { font-size: 12px; background: #f0f0f0; color: #666; padding: 2px 10px; border-radius: 20px; font-weight: 400; }
.news-comment-form { background: #fafafa; border-radius: 12px; padding: 18px; margin-bottom: 24px; }
.news-comment-form .form-group { margin-bottom: 12px; }
.news-comment-form label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.news-comment-form .required { color: #C2185B; }
.news-comment-form .form-input, .news-comment-form .form-textarea { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.news-comment-form .btn-primary { padding: 10px 20px; background: #C2185B; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.news-comment-item { padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.news-comment-item:last-child { border-bottom: none; }
.news-comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.news-comment-author { font-size: 13px; font-weight: 700; color: #333; }
.news-comment-date { font-size: 12px; color: #999; }
.news-comment-body { font-size: 14px; line-height: 1.7; color: #444; margin: 0; }
.news-no-comments { text-align: center; color: #999; font-size: 14px; padding: 28px 0; }
@media (max-width: 600px) { .news-article-body, .news-comments-section { padding: 18px 16px; } }
