/**********************************************/
/**********INFORMATION Section*****************/
/**********************************************/
.info_section {
  background-color: var(--Lightgray);
}

.info_section .wrapper.title {
  max-width: 1100px;
  border-radius: 24px 24px 0 0;
  background-color: var(--White);
  margin: 0;
  position: relative;
}

.info_section .wrapper.title::after {
  content: "";
  position: absolute;
  top: 0;
  right: -30px;
  width: 180px;
  height: 100px;
  background-image: url('../img/intersect.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  pointer-events: none;
}

.info_section .wrapper.title .inner {
  position: relative;
  z-index: 1;
}

.info_section .wrapper.item {
  max-width: none;
  border-radius: 0 20px 20px 20px;
  background-color: var(--White);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info_section .wrapper.title .inner {
  max-width: none;
  padding: 32px 32px 0 32px;
  margin: 0;
}

.info_section .wrapper.item .inner {
  max-width: none;
  padding: 32px;
  margin: 0;
}

.info_section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-bottom: 2px solid #ddd;
}

.info_section h2 {
  font-size: 2.2rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.tab-nav {
  display: flex;
  gap: 32px;
  padding-bottom: 16px;
  padding-right: 16px;
  flex: 1;
}

.tab-button {
  background: none;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s ease;
  position: relative;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  white-space: nowrap;
}

.tab-button span {
  font-size: 1rem;
  font-weight: 600;
}

.tab-button:hover {
  color: var(--Black);
}

.tab-button.active {
  color: var(--red);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--red);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.info-card {
  background-color: var(--White);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.info-card a {
  display: block;
  text-decoration: none;
  color: var(--Black);
  position: relative;
  height: 100%;
}

.info-card:hover a {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.info-card:hover .card-image img {
  transform: scale(1.08);
}

.card-date-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-date {
  font-size: 0.75rem;
  color: #999;
}

.card-category {
  font-size: 0.7rem;
  color: #666;
  background-color: #f0f0f0;
  padding: 4px 12px;
  border-radius: 12px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.card-author {
  font-weight: 500;
}

.card-arrow {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 42px;
  height: 26px;
  background-color: var(--White);
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.info-card:hover .card-arrow {
  background-color: var(--red);
  color: var(--White);
  border-color: var(--red);
  transform: translateX(4px);
}


/* ページネーション */
.info-pagination {
  margin-top: 20px;
  text-align: center;
}

.info-pagination ul {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-pagination li a,
.info-pagination li span {
  display: inline-block;
  min-width: 32px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--Black);
}

.info-pagination li span.current {
  background-color: var(--Black);
  color: var(--White);
  border-color: var(--Black);
}

.info-pagination li a:hover {
  background-color: var(--red);
  color: var(--White);
  border-color: var(--red);
}


@media screen and (max-width: 1185px) {
  .info_section .section-header {
    gap: 0px;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .info_section .wrapper.title::after {
    display: none;
  }
  
  .info_section .wrapper.item {
    border-radius: 0 0 20px 20px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media screen and (max-width: 768px) {
  .info_section h2 {
    font-size: 2rem;
        margin-bottom: 20px;
  }

  .info_section .wrapper.title .inner {
    padding: 30px 16px 0 16px;
  }

  .tab-nav {
    gap: unset;
    padding-right: 0;
    justify-content: space-between;
    width: 100%;
  }

  .tab-button {
    font-size: 0.85rem;
    padding: 0 5px;
  }

  .tab-button span {
    font-size: 0.65rem;
  }

  .info_section .wrapper.item .inner {
    padding: 16px;
  }

  .card-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .card-title {
    font-size: 0.85rem;
  }

  .card-date {
    font-size: 0.7rem;
  }

  .card-date-category {
    margin-bottom: 4px;
  }

  .card-arrow {
    bottom: -5px;
  }
}