/* ===== HINT PAGES — 現場のヒント共通スタイル ===== */

/* ===== VARIABLES ===== */
:root {
  --hint-primary: #1a56db;
  --hint-primary-dark: #1341a8;
  --hint-primary-light: #e8f0fe;
  --hint-accent: #f59e0b;
  --hint-dark: #111827;
  --hint-gray-900: #1f2937;
  --hint-gray-700: #374151;
  --hint-gray-500: #6b7280;
  --hint-gray-300: #d1d5db;
  --hint-gray-100: #f3f4f6;
  --hint-font: 'Noto Sans JP', sans-serif;
  --hint-radius: 12px;
  --hint-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --hint-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* ===== HINT BODY BASE ===== */
.hint-body {
  font-family: var(--hint-font);
  color: var(--hint-gray-900);
  line-height: 1.8;
  font-size: 16px;
}
.hint-body a { color: inherit; text-decoration: none; }
.hint-body img { max-width: 100%; display: block; }

/* ===== BUTTONS ===== */
.hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.hint-btn--primary {
  background: var(--hint-primary);
  color: #fff;
}
.hint-btn--primary:hover { background: var(--hint-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,86,219,0.35); color: #fff; }
.hint-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.hint-btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hint-btn--sm { padding: 10px 20px; font-size: 14px; }

/* ===== SECTION COMMON ===== */
.hint-body .section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  color: var(--hint-dark);
}
.hint-body .section-lead {
  text-align: center;
  color: var(--hint-gray-700);
  margin-bottom: 48px;
  font-size: 16px;
  line-height: 2;
}

/* ===== HERO (ヒント一覧用) ===== */
.hints-hero {
  background: linear-gradient(135deg, #0f2057 0%, #1a56db 60%, #2563eb 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hints-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hints-hero__inner { position: relative; z-index: 1; }
.hints-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hints-hero__eyebrow a { color: rgba(255,255,255,0.65); text-decoration: none; }
.hints-hero__eyebrow a:hover { color: #fff; }
.hints-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hints-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 2;
  max-width: 560px;
  margin-bottom: 20px;
}
.hints-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 7px 18px;
}
.hints-hero__badge::before {
  content: '✓';
  font-weight: 900;
  color: #86efac;
  font-size: 12px;
}

/* ===== FILTER ===== */
.filter-section { padding: 40px 0 0; background: #f3f4f6; }
.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  font-family: var(--hint-font);
  appearance: none;
  background: none;
}
.filter-tag--all { background: #1a56db; color: #fff; border-color: #1a56db; }
.filter-tag--ai { background: #e8f0fe; color: #1a56db; border-color: #bfcffa; }
.filter-tag--ai:hover, .filter-tag--ai.active { background: #1a56db; color: #fff; border-color: #1a56db; }
.filter-tag--dx { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.filter-tag--dx:hover, .filter-tag--dx.active { background: #16a34a; color: #fff; border-color: #16a34a; }
.filter-tag--info { background: #fff7ed; color: #c2510a; border-color: #fed7aa; }
.filter-tag--info:hover, .filter-tag--info.active { background: #ea580c; color: #fff; border-color: #ea580c; }
.filter-tag--failure { background: #faf5ff; color: #7e22ce; border-color: #ddd6fe; }
.filter-tag--failure:hover, .filter-tag--failure.active { background: #9333ea; color: #fff; border-color: #9333ea; }
.filter-tag--legacy { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.filter-tag--legacy:hover, .filter-tag--legacy.active { background: #dc2626; color: #fff; border-color: #dc2626; }
.filter-tag--efficiency { background: #fefce8; color: #a16207; border-color: #fde68a; }
.filter-tag--efficiency:hover, .filter-tag--efficiency.active { background: #ca8a04; color: #fff; border-color: #ca8a04; }
.filter-tag--tool { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.filter-tag--tool:hover, .filter-tag--tool.active { background: #4b5563; color: #fff; border-color: #4b5563; }

/* ===== ARTICLE GRID ===== */
.hints-section { background: #f3f4f6; padding: 40px 0 80px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  color: inherit;
  text-decoration: none;
}
.article-card--soon { opacity: 0.55; cursor: default; pointer-events: none; }
.article-card__top {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.article-card__tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.worry-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.worry-tag--ai       { background: #e8f0fe; color: #1a56db; }
.worry-tag--dx       { background: #f0fdf4; color: #15803d; }
.worry-tag--info     { background: #fff7ed; color: #c2510a; }
.worry-tag--failure  { background: #faf5ff; color: #7e22ce; }
.worry-tag--legacy   { background: #fef2f2; color: #b91c1c; }
.worry-tag--efficiency { background: #fefce8; color: #a16207; }
.worry-tag--tool     { background: #f3f4f6; color: #4b5563; }

.article-card__meta { font-size: 12px; color: #9ca3af; display: flex; align-items: center; gap: 4px; }
.article-card__body { padding: 16px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.article-card__title { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 12px; color: #111827; }
.article-card__desc { font-size: 14px; color: #6b7280; line-height: 1.8; flex: 1; margin-bottom: 20px; }
.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a56db;
  text-decoration: none;
  margin-top: auto;
}
.article-card__link::after { content: '→'; transition: transform 0.15s; }
.article-card:hover .article-card__link::after { transform: translateX(4px); }
.soon-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ===== MINI CTA (一覧ページ下部) ===== */
.mini-cta {
  background: linear-gradient(135deg, #0f2057 0%, #1a56db 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.mini-cta__title { font-size: clamp(20px, 3vw, 28px); font-weight: 900; margin-bottom: 12px; }
.mini-cta__lead { color: rgba(255,255,255,0.82); font-size: 15px; margin-bottom: 32px; line-height: 2; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hints-hero { padding: 56px 0 48px; }
  .article-grid { grid-template-columns: 1fr; }
  .filter-tags { gap: 8px; }
}
