
/* -------------------------------
    news archive page
---------------------------------- */
  .main.archive{
    position: relative;
  }
  .news-archive-background-layer{
    background: url(../images/pc/bg/bg3.webp);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-graphic-behind);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    pointer-events: none;
    bottom: auto;
  }

  .news{
    position: relative;
    max-width: 198rem;
    width: 100%;
    margin: auto;
    z-index: var(--z-content-base);
  }
  .news__inner{
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .news__container{
    position: relative;
    margin-bottom:44.7rem;
  }
  .news__content-wrapper{
    padding: 0 8% 0 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10%;
    align-items: flex-start;
    z-index: var(--z-spotlight);
  }

  .news__left {
    margin-top: 0;
    position: sticky;
    top: var(--header-height-pc);
  }

  .news__heading{
    font-size: 8rem;
    font-weight: 400;
    line-height: 0.62;
    padding: 6rem 0;
    color: var(--color-text);
    white-space: nowrap;
  }
  /* Right content section */
  .news__content{
    width: 62%;
    display: flex;
    flex-direction: column;
    margin-top: 17rem;
    flex: 1;
    z-index: var(--z-sticky-content);
  }
  .news_list{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin:auto 0 6rem auto;
  }
  .news_item::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(180deg, #F8F4F1 40.87%, #145489 71.72%, #002246 87.06%);
    background-size: 100%;
    background-repeat: no-repeat;
  }
  .news__link{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 6%;
    color: var(--color-text);
    padding: 1.8rem 0 2rem 0.5rem;
  }
  .news__date{
    font-size: 1.6rem;
    font-weight: 400;
  }
  .news__title{
    font-family: var(--font-strong);
    flex: 1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 500;
    /* line-height: 1.85; */
    letter-spacing: 0.07rem
  }
  .pagination{
    display: flex;
    align-items: center;
    gap: 1.6rem;
    width: fit-content;
    margin: auto 0 auto auto;
  }

  .page-numbers{
    font-family: var(--font-strong);
    color: var(--color-base);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: 0.07rem;
    padding: 0 0.9rem;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .page-numbers:hover {
    background-color: var(--color-base);
    color: var(--color-light);
    opacity: 1;
  }

  .current{
    opacity: 0.4;
  }

  .dots{
    font-family: var(--font-strong);
    color: var(--color-base);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: 0.07rem;
    opacity: 1;
  }

/* @media screen and (max-width: 920px) {
  .news__content-wrapper{
    flex-direction: column;
  }
} */

@media screen and (max-width: 750px) {
  .news{
    max-width: none;
    /* background: linear-gradient(181deg, #EEE9E5 64.25%, #9EB4C0 76.12%, #477C98 83.72%, #002246 95.11%); */
  }

  .news-archive-background-layer{
    background: url(../images/sp/bg/bg3.webp);
  }

  .news__left {
    position: relative;
    top: 0;
  }

  .news__heading{
    font-size: 3.6rem;
    line-height: 1.38;
    padding: 2rem 0;
    position: relative;
    top: 0;
  }

  .news__content-wrapper{
    padding: 0;
    flex-direction: column;
  }

  .news__container{
    margin-bottom:0;
  }
  .news__content{
    padding: 1rem 3rem 2rem;
    width: 100%;
    margin-top: 0;
  }

  .news_list{
    max-width: none;
    margin: 0 auto 3rem auto;
  }
  .news_item::after {
    background: linear-gradient(180deg, #F8F4F1 40.87%, #145489 71.72%, #002246 87.06%);
  }

  .news__link{
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 0;
  }
  .news__date{
    font-size: 1.5rem;
  }
  .news__title{
    max-width: none;
    font-size: 1.3rem;
    line-height: 1.69;
    letter-spacing: 0.06rem;
      /* 2行表示の設定 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* 変更 */
  }
  .pagination{
    margin:0 auto 31.5rem auto;
  }
}

/* -------------------------------
    news single page
---------------------------------- */
  .news-single-background-layer{
    background: url(../images/pc/bg/bg2.webp);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: var(--z-background);
  }

  .main.single{
    background-color: var(--color-bg);
    z-index: 1;
  }
  .single__news{
    position: relative;
    max-width: 150rem;
    width: 100%;
    margin: auto;
    padding:0 8% 36rem 8%;
    min-height: 100vh;
  }
  .single__inner{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5%;
    align-items: flex-start;
    z-index: var(--z-spotlight);
  }

  .single__left{
    display: flex;
    flex-direction: column;
    margin-top: 0;
    position: sticky;
    top: var(--header-height-pc);
    align-self: flex-start;
  }

  .single__heading{
    font-size: 1.6rem;
    font-weight: 400;
    padding: 6rem 0;
    line-height: 3.12;
  }
  .single__date{
    font-size: 2.4rem;
    font-weight: 400;
  }
  .single__title{
    font-family: var(--font-strong);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.1rem;
    margin-top: 2rem;
  }

  .single__content-wrap{
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }

  .single__content{
    font-family: var(--font-strong);
    /* max-width: 52rem; */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-top: 17rem;
    flex: 1;
    z-index: var(--z-sticky-content);
  }
  .single__text{
    font-family: var(--font-strong);
    align-self: stretch;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.85;
    letter-spacing: 0.07rem;
  }
  .single__image{
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .single__content a:not(.single__back) {
    text-decoration: underline;
  }

  .single__content a:not(.single__back):hover {
    opacity: 0.8; 
  }

  /* ===================================
      single__back アニメーション
  =================================== */
  .single__back{
    position: relative;
    padding-bottom: 0.3rem;
    overflow: hidden;
    text-decoration: none !important;
    max-width: 20rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
    align-items: center;
  }
  .single__back span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .single__back:hover span {
    animation: slideOutInDiagonalReversed 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }


  @keyframes slideOutInDiagonalReversed {
    0% {
      transform: translate(0, 0);
      opacity: 1;
    }
    40% {
      /* 左上に移動 */
      transform: translate(-0.8rem, -0.8rem);
      opacity: 0.3;
    }
    48% {
      /* 左上に消える */
      transform: translate(-1rem, -1rem);
      opacity: 0;
    }
    52% {
      /* 右下から出現 */
      transform: translate(1rem, 1rem);
      opacity: 0;
    }
    60% {
      /* 右下に移動 */
      transform: translate(0.8rem, 0.8rem);
      opacity: 0.3;
    }
    100% {
      transform: translate(0, 0);
      opacity: 1;
    }
  }

  .single__back-icon{
    max-width: 1rem;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    padding: 0.4rem 0;
  }

  .single__back::after {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(to left, #002246 18.27%, #477C98 32.69%, #EEE9E5 100%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    opacity: 1;
  }
  .single__back:hover::after {
    animation: underlineGrowBack 2.5s cubic-bezier(.16, 1, .3, 1) forwards;
  }
  @keyframes underlineGrowBack {
    0% {
      background-size: 0% 1px;
    }
    50% {
      background-size: 100% 1px;
    }
    100% {
      background-size: 100% 1px;
    }
  }

@media screen and (max-width: 750px) {
  .news-single-background-layer{
    background: url(../images/sp/bg/bg2.webp);
    top: 0;
    bottom: 0;
    background-position:top; 
    background-repeat: no-repeat;
    z-index: -1;
  }  
  .main.single{
    padding-bottom: 37.4rem;
  }
  .single__news{
    max-width: none;
    padding:0 1rem;
    min-height: 100%;
  }
  .single__inner{
    flex-direction: column;
    gap: 0;
  }
  .single__left{
    gap: 0;
    position: relative;
    max-width: none;
    top: 0;
    width: 100%;
    align-self: flex-start;
  }
  .single__heading{
    font-size: 1.4rem;
    padding: 2rem 0;
    line-height: 3.57;
  }

  .single__date{
    font-size: 1.8rem;
  }
  .single__title{
    font-family: var(--font-strong);
    font-size: 1.8rem;
    line-height: 1.44;
    letter-spacing: 0.09rem;
    margin-top: 1rem;
  }

  .single__content{
    max-width: none;
    gap: 3rem;
    margin-top: 0;
  }
  .single__image{
    aspect-ratio: 3/2;
  }
  .page-404__link{
    display: none;
  }
}

