/* Base styles */
:root {
  font-family:  "noto-sans-cjk-jp", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  background-color: #FFF;
}

/* Media Section */
.media-section {
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.media-intro {
  text-align: left;
  margin-bottom: 2.5rem;
  line-height: 1.8;

  color: #002C44;
  font-family:  "noto-sans-cjk-jp", sans-serif;
font-size: 0.9375rem;
font-style: normal;
font-weight: 400;
line-height: 1.5625rem; /* 166.667% */
letter-spacing: 0.01875rem;
}

.media-title {
  text-align: left;
  margin-bottom: 1.37rem;
}

.media-title-en {
  display: block;
  margin-bottom: 0.6rem;
  color: #00547D;
font-size: 0.875rem;
font-style: normal;
font-weight: 400;
line-height: 100%; /* 0.875rem */
letter-spacing: 0.0175rem;
}

.media-title-ja {
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #002C44;
  font-family:  "noto-sans-cjk-jp", sans-serif;
font-size: 1.875rem;
font-style: normal;
font-weight: 700;
line-height: 100%; /* 1.875rem */
letter-spacing: 0.1125rem;
}

/* Category List */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-start;
  margin-bottom: 5rem;
}

.category-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--card--borderRadius);
  padding: var(--card--tag--padding);
  border:var(--card--tag--border-blue);
  background: var(--card--tag--BG);
  color: var(--text-color-normal);
  font-family: var(--font--notoSans);
  line-height: var(--card--tag--lineHeight); 
  font-size: var(--card--tag--textSize);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02438rem;

}

.category-item:hover,
.category-item.active {
  border-radius: 1rem;
  border: 1px solid #0297E0;
  background: linear-gradient(to right, #0087C9, #41BDFB);;
  color: white;
}

/* Media Grid and Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 5rem;
  column-gap: 4rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.media-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.media-card-content {
  padding: 1.5rem;
}

.media-card-date {
  display: block;
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.media-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.media-card-tag {
  padding: 0.25rem 1rem;
  background: #F5F5F5;
  border-radius: 1rem;
  font-size: 0.75rem;
  color: #666;
}

.media-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.media-card-description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.8;
}


/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {

  .container {
    padding: 0 3.7rem;
  }
  .media-intro {
    margin-bottom: 1.15rem;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-list {
    margin-bottom: 2.5rem;
  }
  
  .pagination-numbers {
    gap: 1.5rem;
  }
  .media-title-en {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.01625rem;
    margin-bottom: .4rem;
  }
  .media-title-ja {
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 2rem; /* 114.286% */
    letter-spacing: 0.07rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.8rem;
  }
  .media-intro {
    margin-bottom: 2.5rem;
  }
  .media-title-ja {
  margin-bottom: 1rem;
font-size: 1.5625rem;
font-style: normal;
font-weight: 700;
line-height: 100%; /* 1.5625rem */
letter-spacing: 0.0625rem;
  }

  .media-title {
    margin-bottom: 1.2rem;
  }

  .media-title-en {
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 0.75rem */
    letter-spacing: 0.015rem;
  }

  .media-grid {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  
  .category-list {
    column-gap: .5rem;
    row-gap: .5rem;
  }

  .category-item {
    padding: 0.5rem .7rem;
    font-size: 0.75rem;
  }
  
  .pagination {
    gap: 1.8rem;
  }
  
  .pagination-numbers {
    gap: 1.4rem;
  }
  
  .pagination-arrow {
    width: 3rem;
    height: 3rem;
  }
}