/* AI NIIGATA content styles 04/10 */
.ain-journal-search input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--ain-ink);
  background: transparent;
  font: inherit;
}

.ain-journal-search button {
  min-width: 78px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ain-navy);
  font-weight: 900;
  cursor: pointer;
}

.ain-category-filter {
  display: flex;
  gap: 9px;
  margin: 0 0 42px;
  padding: 0 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ain-category-filter a {
  flex: 0 0 auto;
  padding: 11px 17px;
  border: 1px solid var(--ain-line);
  border-radius: 999px;
  color: var(--ain-soft-ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.ain-category-filter a:hover,
.ain-category-filter a[aria-current="page"] {
  color: #fff;
  background: var(--ain-navy);
  transform: translateY(-2px);
}

.ain-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.ain-post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 43, 54, 0.09);
  border-radius: 28px;
  background: var(--ain-card);
  box-shadow: 0 18px 50px rgba(6, 31, 40, 0.07);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.ain-post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ain-shadow);
}

.ain-post-card.is-featured {
  grid-column: 1 / -1;
}

.ain-post-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
}

.ain-post-card.is-featured .ain-post-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  min-height: 470px;
}
