@charset "UTF-8";
/*--------------------------------------------------
ベース
  --------------------------------------------------*/

  .back-number{
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

/*--------------------------------------------------
ページネーション
  --------------------------------------------------*/
.year-pager {
  display: flex;
  justify-content: flex-end; 
}

.year-pager__inner {
  display: flex;
  align-items: center;
  gap: 8px; 
}

/* Element: Button */
.year-pager__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #000;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.year-pager__button:hover {
  opacity: 0.7;
}

.year-pager__icon {
  width: 1rem;
  height: auto;
}

/* Element: Selector */
.year-pager__selector {
  position: relative;
  border: 1px solid #000;
  height: 40px;
  width: 120px;
}



.year-pager__select {
  appearance: none; /* デフォルトの矢印を消す */
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 1.875em 0 0.9375em;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  background: #fff;
  /* ios用文字を黒くする */
  color: #000;
}

/* セレクトボックスの右矢印アイコンを擬似要素で作成 */
.year-pager__selector::after {
  content: "";
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 4px 0 4px;
  border-color: #000 transparent transparent transparent;
  pointer-events: none;
}

/* Responsive: 768px or less */
@media screen and (max-width: 768px) {  
  .year-pager__selector {
    flex-grow: 1;
    width: auto;
          height: 32px;
  width: 108px;
  }
  
  .year-pager__select {
    text-align: center;
  }

  .year-pager__icon {
  width: 0.8125rem;
  }

  .year-pager__select{
    font-size: 0.8125rem;
  }

.year-pager__button {
      width: 32px;
  height: 32px;
}
}



/*--------------------------------------------------
リスト
  --------------------------------------------------*/

  .card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

/* Element: card-list__item */
.card-list__item {
  width: 100%;
}

.card {
display: flex;
flex-direction: column;
gap: 20px;
}

.card__image-container {
  width: 100%;
  aspect-ratio: 3 / 4; 
  border: 1px solid #000;
  background-color: #eee;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__title {
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.4;
}

.card__info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__label {
  font-size: 0.625rem;
  border: 1px solid #999;
  padding: 1px 4px;
  color: #666;
  line-height: 1.2;
}

.card__date {
  font-size: 0.8125rem;
  color: #333;
}

/* 768px以上（PCレイアウト） */
@media (min-width: 768px) {
  .card-list {
    grid-template-columns: repeat(4, 1fr); /* PC：4列 */
    gap: 32px;
  }

  .card__title {
    font-size: 1rem;
  }
}