// ===========================================
// information お知らせ一覧
// ===========================================
/* list
--------------------------------- */
.info-list-01 {
  $border: 1px solid #d1d1d1;
  border-top: $border;
  li {
    border-bottom: $border;
  }
}

/* btn
--------------------------------- */
.info-btn-01 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8em;
  padding: 1em 2em 1em 0;
  position: relative;

  @include mq-up(s) {
    padding: 2em 3em 2em 0;
  }
  &:hover {
    background: color.adjust(map-get($colors, main), $lightness: 40%);
  }

  // 矢印アイコン
  &::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    bottom: 0;
    margin-block: auto;
    right: 1em;
    @include mq-up('s') {
      right: 2em;
    }
  }

  .tit {
    width: 100%;
    @include font(16);
    font-weight: bold;

    @include mq-up() {
      @include font(17);
      flex: 1;
      width: auto;
      padding-left: 1.1em;
      border-left: 1px solid #707070;
    }
  }
  .data {
    @include mq-up() {
      width: 8em;
      text-align: center;
    }
  }

  // タグが2つ以上の場合（PCでもSPと同じ表示）
  .info-list-01.multi-tag & {
    flex-wrap: wrap;

    .data {
      width: auto;
      text-align: left;
    }

    .tit {
      width: 100%;
      flex: none;
      padding-left: 0;
      border-left: none;
    }
  }
}

/* icon
--------------------------------- */
.cat-ico-01 {
  display: inline-block;
  min-width: 100px;
  box-sizing: border-box;
  padding: 0.5em;
  background: map-get($colors, main);
  color: #fff;
  text-align: center;
  @include font(12);
  line-height: 1.6;
  font-weight: 500;
}

/* pagination ページナビ
--------------------------------- */
.com-pagination {
  ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -8px;
    margin-top: -8px;
    .page-numbers {
      display: block;
      margin-left: 8px;
      margin-top: 8px;
      box-sizing: border-box;
      &:not(.prev):not(.next) {
        display: grid;
        border: 1px solid #c0c0c0;
        width: 64px;
        height: 64px;
        place-items: center;
      }
      &.prev,
      &.next {
        padding: 1em;
        &:hover {
          color: map-get($colors, main);
        }
      }
      &.current {
        border-width: 2px !important;
        border-color: map-get($colors, main) !important;
      }
    }
    a:not(.prev):not(.next) {
      &:hover {
        background: color.adjust(map-get($colors, main), $lightness: 40%);
      }
    }
    // 矢印アイコン
    .arrow-left,
    .arrow-right {
      display: block;
      width: 8px;
      height: 8px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
    }

    .arrow-left {
      transform: rotate(-135deg);
    }

    .arrow-right {
      transform: rotate(45deg);
    }
  }
}
