

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero-overlay .category-tag,
.hero-side-overlay .category-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s ease;
  cursor: pointer;
  position: relative;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18), 0 8px 16px -8px rgba(0, 80, 170, 0.15);
}

.article-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 80, 170, 0.0) 0%, rgba(246, 0, 0, 0.0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease, background 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.article-card:hover .article-card__image::after {
  opacity: 1;
  background: linear-gradient(135deg, rgba(0, 80, 170, 0.18) 0%, rgba(246, 0, 0, 0.12) 100%);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.5s ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}

.article-card__image::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transform: translate(8px, -8px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230050AA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='7' y1='17' x2='17' y2='7'/><polyline points='7 7 17 7 17 17'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-card:hover .article-card__image::before {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.article-card__title {
  transition: color 0.3s ease;
}
.article-card:hover .article-card__title {
  color: var(--septeni-blue);
}

.article-card__body {
  padding: 20px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.article-card__date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.article-card__meta {
  flex-wrap: wrap;
}

.article-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--secondary);
}

.article-card__excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-white);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.category-tab:hover {
  border-color: transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--septeni-blue), var(--septeni-red));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--septeni-blue);
}

.category-tab.active {
  background: var(--septeni-black);
  border-color: var(--septeni-black);
  color: white;
}

.cta-banner {
  background: linear-gradient(135deg, #000000 0%, #0050AA 100%);
  border-radius: var(--radius);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner__content h2 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.4;
}

.cta-banner__content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--septeni-red);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-banner__btn:hover {
  background: #D50000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 0, 0, 0.4);
}

.filter-panel {
  margin-top: 16px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group:last-of-type {
  margin-bottom: 12px;
}

.filter-group__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.filter-check input {
  display: none;
}

.filter-check:hover {
  border-color: var(--septeni-blue);
  color: var(--septeni-blue);
}

.filter-check:has(input:checked) {
  background: var(--septeni-black);
  border-color: var(--septeni-black);
  color: #fff;
}

.filter-clear {
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--septeni-red);
  cursor: pointer;
  padding: 4px 0;
  transition: opacity var(--transition);
}

.filter-clear:hover {
  opacity: .7;
}

.article-card {
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
              linear-gradient(var(--bg-white), var(--bg-white)) border-box;
}
.article-card:hover {
  background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
              linear-gradient(135deg, var(--septeni-blue) 0%, var(--septeni-blue) 40%, var(--septeni-red) 100%) border-box;
}

.section-title::before {
  background: linear-gradient(180deg, var(--septeni-red), var(--septeni-blue)) !important;
}

.back-to-top {
  background: linear-gradient(135deg, var(--septeni-blue), var(--septeni-red)) !important;
}

.ext-arrow {
  font-size: 0.8em;
  font-weight: 400;
  opacity: 0.85;
  margin-left: 2px;
}

.footer-links a:hover {
  background: linear-gradient(90deg, #FF6E6E, #6FB5FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .header-service-links {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 20px;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .cta-banner__content h2 {
    font-size: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .article-header__title {
    font-size: 24px;
  }

  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
}

@media (max-width: 768px) {

  .container {
    padding: 0 16px;
  }
}

.hakase-promo__btn,
.jobs-promo__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              color 0.3s ease;
}

.hakase-promo__btn::before,
.jobs-promo__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 70%,
    transparent 100%
  );
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.hakase-promo__btn:hover::before,
.jobs-promo__btn:hover::before {
  left: 100%;
}

.hakase-promo__btn.hakase-promo__btn--blue::before {
  content: none;
}

.hakase-promo__btn > *,
.jobs-promo__btn > * {
  position: relative;
  z-index: 2;
}

.hakase-promo__btn:hover,
.jobs-promo__btn:hover {
  transform: translateY(-3px);
}

.header-service-link {
  position: relative;
  overflow: hidden;
}
.header-service-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.header-service-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.menu-btn {
  transition: background 0.3s ease, transform 0.3s ease;
  border-radius: 50%;
}
.menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.back-to-top {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 80, 170, 0.35);
}

.category-tab {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-tab:hover:not(.active) {
  transform: translateY(-1px);
}

