/* ==========================================================================
   海外視点＆実用ニュース (Global Insights & Practical News) Dedicated Stylesheet
   ========================================================================== */

:root {
  --news-bg: #090d16;
  --news-card-bg: rgba(18, 26, 44, 0.75);
  --news-cyan: #38bdf8;
  --news-cyan-glow: rgba(56, 189, 248, 0.35);
  --news-amber: #f59e0b;
  --news-emerald: #10b981;
  --news-border: rgba(56, 189, 248, 0.25);
  --news-border-subtle: rgba(255, 255, 255, 0.08);
  --cyan: #5de4ff;
  --gold: #f0c56d;
}

/* Hero Mobile-Only Action Button (Hidden on PC/Desktop, visible on Mobile <= 980px) */
.page-hero-action {
  display: none !important;
}

@media (max-width: 980px) {
  .page-hero-action {
    display: flex !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
}

.site-header nav a.nav-link-note {
  color: var(--gold, #f0c56d) !important;
}

.site-header nav a.nav-link-note:hover {
  color: #ffffff !important;
}

/* News Article Hero */
.news-hero {
  max-width: 960px;
  margin: 0 auto 36px;
  padding: 30px 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.news-vol-badge {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
  white-space: nowrap;
}

.news-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 700;
}

.news-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--news-border-subtle);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.news-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.news-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.news-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

.news-lead {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Article Hero Image */
.news-hero-image-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--news-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--news-cyan-glow);
  position: relative;
}

.news-hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Hero Reordering: Image moves above Title */
@media (max-width: 680px) {
  .news-hero {
    margin-bottom: 24px;
    padding-top: 20px;
  }
  .news-badge-row {
    order: 1;
  }
  .news-tags-row {
    order: 2;
    margin-bottom: 16px;
  }
  .news-hero-image-wrap {
    order: 3;
    margin: 0 auto 20px;
    border-radius: 12px;
  }
  .news-title {
    order: 4;
    font-size: 22px;
    margin-bottom: 12px;
  }
  .news-lead {
    order: 5;
    font-size: 14px;
    margin-bottom: 0;
  }
}

/* Article Content Container */
.news-article-container,
.news-body-wrap {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
  font-size: 16px;
  line-height: 2;
  color: #e2e8f0;
}

.news-article-container h2,
.news-body-wrap h2 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: #ffffff;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--news-border-subtle);
  position: relative;
}

.news-article-container h2::after,
.news-body-wrap h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.news-article-container p,
.news-body-wrap p {
  margin: 0 0 20px;
}

/* 3-Line Summary Box */
.news-summary-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid var(--news-cyan);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 32px 0 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.news-summary-header,
.news-summary-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.news-summary-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-summary-box-title,
.news-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--news-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.news-summary-title,
.news-article-container .news-summary-title,
.news-body-wrap .news-summary-title {
  font-size: clamp(16px, 2vw, 18px) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.03em;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.4 !important;
}

.news-summary-title::after,
.news-article-container .news-summary-title::after,
.news-body-wrap .news-summary-title::after {
  display: none !important;
}

.news-summary-box ul,
.news-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-summary-box ul li,
.news-summary-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #f1f5f9;
}

.news-summary-box ul li:last-child,
.news-summary-list li:last-child {
  margin-bottom: 0;
}

.news-summary-box ul li::before,
.news-summary-list li::before {
  content: '📌';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}

/* Step Block / Numbered Action Card in News */
.step-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
}

.step-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--news-cyan, #38bdf8);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.step-content p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* Highlight Feature Cards Grid */
.news-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.news-highlight-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-highlight-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.news-highlight-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: var(--news-cyan, #38bdf8);
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-highlight-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.5;
}

.news-highlight-card p {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

/* AI Comment / Perspective Box */
.news-ai-box {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 36px 0;
  position: relative;
}

.news-ai-header,
.news-ai-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.news-ai-icon {
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-ai-title,
.news-article-container .news-ai-title,
.news-body-wrap .news-ai-title {
  font-size: clamp(16px, 2vw, 18px) !important;
  font-weight: 800 !important;
  color: var(--news-amber, #f59e0b) !important;
  letter-spacing: 0.03em;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.4 !important;
}

.news-ai-title::after,
.news-article-container .news-ai-title::after,
.news-body-wrap .news-ai-title::after {
  display: none !important;
}

/* Source Reference Card */
.news-source-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 40px 0 24px;
}

.news-source-card-head {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-source-link {
  color: var(--news-cyan);
  text-decoration: none;
  font-weight: 700;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.news-source-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* News Grid & Cards for Portal */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--news-card-bg);
  border: 1px solid var(--news-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.2);
}

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
  margin: 8px 0 10px;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.news-card-catch,
.news-card-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 62.4px;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--news-cyan, #0ea5e9);
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  margin-top: auto;
}

.news-card-footer span {
  color: var(--news-cyan, #0ea5e9);
  font-size: 12px;
  font-weight: 700;
}

/* News Article Navigation Block (Previous / Next Cards) */
.news-nav-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0 24px;
}

.news-nav-block.is-single {
  display: flex;
  justify-content: center;
}

.news-nav-block.is-single .news-nav-card {
  max-width: 500px;
  width: 100%;
}

.news-nav-card {
  display: block;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.news-nav-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.news-nav-card .nav-dir {
  display: block;
  font-size: 11px;
  color: var(--news-cyan, #38bdf8);
  font-weight: 800;
  margin-bottom: 4px;
}

.news-nav-card .nav-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .news-nav-block {
    grid-template-columns: 1fr;
  }
}

/* News Pagination Bar (Cyber Cyan Theme) */
.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 18px auto 18px !important;
}

.pagination span,
.pagination a,
.pagination button {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0 14px;
}

.pagination a:hover:not(.current):not(.disabled),
.pagination button:hover:not(.current):not([disabled]) {
  border-color: var(--news-cyan, #38bdf8);
  color: #ffffff;
  background: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.pagination .current {
  color: #090d16 !important;
  background: #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  font-weight: 900;
}

.pagination .disabled,
.pagination button[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* News Search & Filter Toolbar */
.news-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.news-search-box {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.news-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 10px 18px 10px 42px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.news-search-input:focus {
  border-color: var(--news-cyan, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.news-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0.7;
}

.news-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.news-filter-tab {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.news-filter-tab:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  background: rgba(56, 189, 248, 0.1);
}

.news-filter-tab.active {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
  font-weight: 800;
}

.news-list-status {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 16px;
}



