.carousel-item-image{
    height: 22.9vw;
}

.news-item-status {
    width: 7.3vw;
    height: 1.72vw;
    display: block;
    text-align: center;
    font-size: 0.68vw;
    letter-spacing: 0.65px;
    line-height: 1.72vw;
    border-radius: 0.26vw;
}

.news-item {
    display: flex;
    grid-template-columns: 140px calc(100% - 155px);
    border-bottom: 0.1vw solid #D9D9D9;
    gap: 0.78vw;
    padding: 1.5vw 0;
}

.news-item-date {
    width: 8.3vw;
    font-size: 0.94vw;
    line-height: 1.86vw;
    letter-spacing: 0.65px;
}

.news-item-link{
    text-decoration: none;
    font-size: 0.94vw;
}

.year-selector {
    display: flex;
    gap: 1.56vw;
    align-items: center;
    margin-top: 3.6vw;
    margin-bottom: 2.5vw;
}

.year {
    width: 7.29vw;
    text-align: center;
    font-size: 0.67vw;
    cursor: pointer;
    padding: 0.4vw 0px;
    border-radius: 0.2vw;
    appearance: none;
    border: none;
    opacity: 1;
    transition: opacity .2s ease;
    border: 0.1vw solid transparent;
    background: none;
    color: inherit;
}

.year:hover {
    opacity: 0.7;
}

.year:active {
    opacity: 1;
}

.year.year-active {
    border: 0.1vw solid #E36F1C;
    color: inherit;
}

.status-orange {
    background-color: #FF974D;
}

.status-yellow {
    background-color: #EDBD47;
}

.status-light-orange {
    background-color: #EDA947;
}

.status-light-yellow {
    background-color: #EDD147;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    margin-top: 4.12vw;
}

.page-btn {
    background-color: #E36F1C;
    color: white;
    border: none;
    padding: 0.4vw 0.78vw;
    cursor: pointer;
    font-size: 1.1vw;
    border-radius: 0.2vw;
}

.page-number {
    cursor: pointer;
    font-size: 0.83vw;
    padding: 0.2vw 0.4vw;
    position: relative;
    appearance: none;
    opacity: 1;
    background: none;
    border: none;
    color: inherit;
    border-bottom: 2px solid transparent; 
    transition: opacity 0.2s ease, border-bottom 0.2s ease;
}

.page-number:hover {
    opacity: 0.7;
}

.page-number.page-active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e56a1d;
}

  .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #e56a1d;
    width: 0;             /* 最初表示無し */
    transition: left 0.2s ease, width 0.2s ease;
  }

  .page-number-all {
    background: none;
    border: none;
  }


/* ---------------------SP------------------------ */
@media only screen and (min-width: 600px) and (max-width: 820px){
    .news-item-link {
        font-size: 1.5vw;
    }
  
    .year {
        font-size: 1.5vw;
        border-radius: 0.5vw;
        width: 9vw;
    }

    
    .news-item-date {
        font-size: 1.5vw;
        line-height: 2.5vw;
        width: 10.3vw;
    }

    .news-item-status {
        font-size: 1.3vw;
        line-height: 2.2vw;
        width: 8vw;
        height: 2.3vw;
    }

    .page-number {
        font-size: 1.5vw;
        padding: 0.3vw 1vw;
    }

    .page-btn {
        font-size: 2vw;
        padding: 0.5vw 1.3vw;
        border-radius: 0.5vw;
    }

    .news-item{
        gap:1.2vw;
    }

}

@media only screen and (max-width: 600px) {
    .news-item {
        flex-wrap: wrap;
    }

  .news-page .carousel-item-image {
    height: 50vw;
  }

  .news-item-status, .year {
      font-size: 3.3vw;
  }

  .page-number {
    font-size: 3.56vw;
    padding: 1.01vw 2.04vw
  }

  .page-btn {
    font-size: 6vw;
    padding: 0.8vw 3.3vw;
    border-radius: 1.2vw;
  }

   .carousel-company-text{
    font-size: 6.1vw;
    line-height: 7.63vw;
  }

  .news-page .section-block {
      padding: 15.26vw 10.18vw;
  }

  .news-page .section-block .block-container {
      width: 100%;
  }

  .pagination{
      gap: 2.3vw;
  }

  .news-item-status{
      width: 25.45vw;
      height: 6.36vw;
      line-height: 6.36vw;
  }

  .news-item-date{
      width: 25.45vw;
      font-size: 3.31vw;
      line-height: 6.36vw;
      letter-spacing: 0px;
  }

  .news-item-title{
      font-size: 3.56vw;
      line-height: 6.36vw;
  }

  .year-selector{
      gap: 3.8vw;
  }

  .year{
      width: 25.45vw;
      padding: 0.76vw 0;
  }

  .year-selector {
      margin-top: 7.6vw;
      margin-bottom: 8vw;
  }

  .news-item{
      padding: 5.1vw 0 3.82vw 0;
  }

  .pagination {
    margin-top: 17.12vw;
  }

  .news-item-status {
    border-radius: 0.9vw;
  }

}
