/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  background: #0d0f14;
  color: #e4e8f0;
  line-height: 1.7;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== レイアウト ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; }
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.logo-sub {
  font-size: 11px;
  color: #6b7280;
  display: none;
}
@media (min-width: 768px) { .logo-sub { display: inline; } }

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  color: #9ca3af;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.aws:hover  { color: #ff9900; background: rgba(255,153,0,0.12); }
.nav-link.azure:hover { color: #0078d4; background: rgba(0,120,212,0.12); }
.nav-link.gcp:hover  { color: #34a853; background: rgba(52,168,83,0.12); }
.nav-link.oci:hover  { color: #f80000; background: rgba(248,0,0,0.12); }
.nav-link.compare:hover { color: #a78bfa; background: rgba(167,139,250,0.12); }

.header-meta { margin-left: auto; }
.update-date { font-size: 12px; color: #6b7280; }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  margin: 20px auto 32px;
  max-width: 560px;
  color: #9ca3af;
  font-size: 16px;
}
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.aws-badge   { background: rgba(255,153,0,0.15); color: #ff9900; border: 1px solid rgba(255,153,0,0.3); }
.azure-badge { background: rgba(0,120,212,0.15); color: #4da6ff; border: 1px solid rgba(0,120,212,0.3); }
.gcp-badge   { background: rgba(52,168,83,0.15); color: #34d399; border: 1px solid rgba(52,168,83,0.3); }
.oci-badge   { background: rgba(248,0,0,0.12); color: #f87171; border: 1px solid rgba(248,0,0,0.3); }

a.badge {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
a.badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.25);
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.shape-1 { width: 500px; height: 500px; background: #3b82f6; top: -200px; left: -100px; }
.shape-2 { width: 400px; height: 400px; background: #8b5cf6; top: -100px; right: -50px; }
.shape-3 { width: 300px; height: 300px; background: #10b981; bottom: -100px; left: 30%; }

/* ===== サマリーカード ===== */
.summary-section { padding: 0 0 64px; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.summary-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.summary-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); }
.aws-card:hover   { border-color: rgba(255,153,0,0.4); }
.azure-card:hover { border-color: rgba(0,120,212,0.4); }
.gcp-card:hover   { border-color: rgba(52,168,83,0.4); }
.oci-card:hover   { border-color: rgba(248,0,0,0.35); }

.cloud-logo {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 8px;
}
.aws-logo   { background: rgba(255,153,0,0.10); }
.azure-logo { background: rgba(0,120,212,0.10); }
.gcp-logo   { background: rgba(52,168,83,0.10); }
.oci-logo   { background: rgba(248,0,0,0.08); }

.cloud-logo-img {
  height: 26px;
  width: auto;
  display: block;
  /* Wikimedia SVGは背景なしのベクター。暗い背景でも判別できるよう少し明るく */
  filter: brightness(1.15);
}

.summary-stats { display: none; } /* 非表示（削除済みの互換性保持） */
.summary-latest { font-size: 12px; color: #9ca3af; line-height: 1.5; }
.card-arrow { position: absolute; right: 20px; bottom: 20px; font-size: 18px; color: rgba(255,255,255,0.2); transition: 0.2s; }
.summary-card:hover .card-arrow { color: rgba(255,255,255,0.6); }

/* ===== クラウドセクション ===== */
.main-content { padding-bottom: 80px; }
.cloud-section {
  margin-bottom: 72px;
  scroll-margin-top: 70px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px;
  border-radius: 16px 16px 0 0;
  margin-bottom: 2px;
  flex-wrap: wrap;
  gap: 16px;
}
.aws-header   { background: linear-gradient(135deg, rgba(255,153,0,0.12), rgba(255,153,0,0.04)); border: 1px solid rgba(255,153,0,0.2); }
.azure-header { background: linear-gradient(135deg, rgba(0,120,212,0.12), rgba(0,120,212,0.04)); border: 1px solid rgba(0,120,212,0.2); }
.gcp-header   { background: linear-gradient(135deg, rgba(52,168,83,0.12), rgba(52,168,83,0.04)); border: 1px solid rgba(52,168,83,0.2); }
.oci-header   { background: linear-gradient(135deg, rgba(248,0,0,0.10), rgba(248,0,0,0.03)); border: 1px solid rgba(248,0,0,0.2); }

.section-title-wrap { display: flex; align-items: center; gap: 28px; }
.section-icon {
  font-size: 14px;
  font-weight: 800;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aws-icon   { background: rgba(255,153,0,0.2); color: #ffaa33; }
.azure-icon { background: rgba(0,120,212,0.2); color: #4da6ff; font-size: 22px; }
.gcp-icon   { background: rgba(52,168,83,0.2); color: #4ade80; font-size: 20px; }
.oci-icon   { background: rgba(248,0,0,0.15); color: #f87171; font-size: 22px; }

.section-title { font-size: 20px; font-weight: 700; color: #fff; }

/* セクションアイコン内 img（Wikimediaの横型SVGロゴ対応） */
.section-icon img {
  height: 24px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
  filter: brightness(1.1);
}

/* ===== 最新アップデートハイライト ===== */
.latest-updates-section {
  padding: 0 0 56px;
}
.latest-updates-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.latest-updates-title {
  font-size: 18px;
  font-weight: 700;
  color: #f0f4ff;
}
.latest-updates-sub {
  font-size: 12px;
  color: #6b7280;
}
.latest-updates-grid { display: block; }

/* 1枠パネル */
.latest-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
}
.latest-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid transparent;
  transition: background 0.18s;
}
.latest-row:last-child { border-bottom: none; }
.latest-row:hover { background: rgba(255,255,255,0.06); }
.latest-row-azure { border-left-color: rgba(0,120,212,0.7); }
.latest-row-aws   { border-left-color: rgba(255,153,0,0.7); }
.latest-row-gcp   { border-left-color: rgba(52,168,83,0.7); }
.latest-row-oci   { border-left-color: rgba(248,0,0,0.6); }

.latest-row-cloud {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-width: 80px;
}
.latest-row-icon {
  height: 16px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  filter: brightness(1.1);
}
.latest-row-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #9ca3af;
  text-transform: uppercase;
}
.latest-row-cat {
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
  min-width: 130px;
}
.latest-row-title {
  font-size: 13px;
  font-weight: 500;
  color: #e4e8f0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.2s;
}
.latest-row-title:hover { color: #93c5fd; }
.latest-row-date {
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .latest-row { flex-wrap: wrap; gap: 8px; }
  .latest-row-cat { min-width: unset; }
  .latest-row-date { display: none; }
}

.official-link {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #9ca3af;
  transition: all 0.2s;
  white-space: nowrap;
}
.official-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.azure-link:hover { border-color: rgba(0,120,212,0.5); color: #4da6ff; }
.gcp-link:hover   { border-color: rgba(52,168,83,0.5); color: #4ade80; }
.oci-link:hover   { border-color: rgba(248,0,0,0.4); color: #f87171; }

/* ===== ニュースグリッド ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 20px 0;
}
.news-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.news-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.news-card.featured {
  grid-column: span 2;
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
@media (max-width: 720px) {
  .news-card.featured { grid-column: span 1; }
}

.news-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.cat-icon { font-size: 12px; line-height: 1; }
.ai-tag       { background: rgba(168,85,247,0.15); color: #c084fc; }
.compute-tag  { background: rgba(59,130,246,0.15); color: #93c5fd; }
.storage-tag  { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.security-tag { background: rgba(239,68,68,0.15); color: #fca5a5; }
.network-tag  { background: rgba(234,179,8,0.15); color: #fde047; }
.database-tag { background: rgba(249,115,22,0.15); color: #fdba74; }
.container-tag { background: rgba(6,182,212,0.15); color: #67e8f9; }

.news-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.news-title a:hover {
  color: #93c5fd;
  text-decoration: underline;
  text-decoration-color: rgba(147, 197, 253, 0.4);
  text-underline-offset: 3px;
}
.news-read-more {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
}
.news-read-more:hover {
  color: #c4ccdb;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}
.news-body { font-size: 13px; color: #9ca3af; line-height: 1.75; }
.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.news-date { font-size: 12px; color: #6b7280; }
.news-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  color: #9ca3af;
}

/* ===== キーサービス ===== */
.key-services {
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0 0 16px 16px;
}
.key-services-title {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stag {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #9ca3af;
  transition: 0.2s;
}
.stag:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== 比較テーブル ===== */
.compare-section {
  scroll-margin-top: 70px;
  margin-bottom: 80px;
  padding: 48px 0 0;
}
.compare-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  text-align: center;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table thead tr {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.compare-table th {
  padding: 14px 20px;
  font-weight: 700;
  text-align: left;
  color: #fff;
  white-space: nowrap;
}
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #c4ccdb;
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.row-label { font-weight: 600; color: #9ca3af; white-space: nowrap; }
.aws-col   { color: #ffaa33 !important; }
.azure-col { color: #4da6ff !important; }
.gcp-col   { color: #4ade80 !important; }
.oci-col   { color: #f87171 !important; }

/* ===== フッター ===== */
.site-footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 48px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-text { font-size: 18px; }
.footer-desc { font-size: 13px; color: #6b7280; max-width: 480px; line-height: 1.7; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 12px;
  color: #6b7280;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: #c4ccdb; border-bottom-color: rgba(255,255,255,0.2); }
.footer-copy { font-size: 12px; color: #4b5563; }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .hero { padding: 56px 0 48px; }
  .news-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .section-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .summary-grid { grid-template-columns: 1fr; }
}

/* ===== フェードインアニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== アクティブナビゲーション ===== */
.nav-link.active { color: #fff; }
.nav-link.active.aws   { color: #ff9900; background: rgba(255,153,0,0.12); }
.nav-link.active.azure { color: #4da6ff; background: rgba(0,120,212,0.12); }
.nav-link.active.gcp   { color: #34d399; background: rgba(52,168,83,0.12); }
.nav-link.active.oci   { color: #f87171; background: rgba(248,0,0,0.12); }
.nav-link.active.compare { color: #a78bfa; background: rgba(167,139,250,0.12); }

/* ===== フィルターバー ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.09);
  color: #d1d5db;
  border-color: rgba(255,255,255,0.22);
}

.filter-btn.active {
  background: rgba(255,255,255,0.1);
  color: #f0f4ff;
  border-color: rgba(255,255,255,0.28);
}

/* カテゴリ別アクティブカラー */
.filter-btn.ai-tag.active       { background: rgba(168,85,247,0.18); color: #c084fc; border-color: rgba(168,85,247,0.45); }
.filter-btn.compute-tag.active  { background: rgba(59,130,246,0.18); color: #93c5fd; border-color: rgba(59,130,246,0.45); }
.filter-btn.storage-tag.active  { background: rgba(16,185,129,0.18); color: #6ee7b7; border-color: rgba(16,185,129,0.45); }
.filter-btn.security-tag.active { background: rgba(239,68,68,0.18);  color: #fca5a5; border-color: rgba(239,68,68,0.45); }
.filter-btn.network-tag.active  { background: rgba(234,179,8,0.18);  color: #fde047; border-color: rgba(234,179,8,0.45); }
.filter-btn.database-tag.active { background: rgba(249,115,22,0.18); color: #fdba74; border-color: rgba(249,115,22,0.45); }
.filter-btn.container-tag.active { background: rgba(6,182,212,0.18); color: #67e8f9; border-color: rgba(6,182,212,0.45); }

.filter-btn .filter-icon { font-size: 13px; line-height: 1; }

/* ===== 件数セレクター ===== */
.count-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.count-label {
  font-size: 12px;
  color: #6b7280;
  margin-right: 2px;
}
.count-btn {
  padding: 4px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.count-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  border-color: rgba(255,255,255,0.2);
}
.count-btn.active {
  background: rgba(255,255,255,0.12);
  color: #f0f4ff;
  border-color: rgba(255,255,255,0.3);
}

/* ===== グリッド ローディング / エラー / 空 ===== */
.grid-loading,
.grid-error,
.grid-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-secondary, #9ca3af);
  font-size: 0.95rem;
}

.grid-loading::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(96, 165, 250, 0.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.grid-error { color: #f87171; }

/* ===== スクロールバー ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1d25; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }
