/* NEWSここから */
#NEWS {
    padding-top: 140px;
    padding-bottom: 140px;
    background-color: #120801;
}
.slideshow {
    position: relative;
    width: 100%;
    height: auto;
  }
  
  .slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
  }
  
  .slideshow img.active {
    opacity: 1;
    z-index: 1;
  }
  
.yDmH0d {
    background-color: #120801;
}

.flex-news {
    display: flex;
    align-items: flex-start;
    gap: 70px;
}
.flex-news img{
    width: 100%;
    height:auto;
}

.news-container {
    flex-grow: 1;
    /* 残りの幅をすべて使用 */
    width: 100%;
    /* 親要素の幅に合わせて広がる */
    min-width: 0;
    /* flexアイテムの縮小を防ぐ */
    margin-top: 150px;
}


.news-table {
    padding-top: 50px;
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
}

#NEWS th,
td {
    padding: 10px;
    text-align: left;
    font-size: 15px;
    font-weight: 300;
    color: #A7A08C;
    margin: 10px;
}

#NEWS tr {
    border-bottom: 1px solid #A7A08C;
    /* 行ごとの下線を設定 */
}

.news-date,
.news-title {
    display: inline-block;
    vertical-align: bottom;
    /* 上揃えにする */
    font-size: 20px;
}

.news-date {
    font-family: "Cinzel", serif;
    margin-right: 190px;
}

.news-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 16px;
}


/*
* 新着記事一覧ショートコード用
*/
.news-list .news-list-inner {
    z-index: 3000;
    padding: 20px 5px;
    border: 2px solid #f5f5f5;
}

.archive .news-list .news-list-inner {
    background: #fff;
    padding: 20px;
}

.news-list ul {
    list-style: none;
    margin: 0 0 20px;
}

.news-list li {
    padding: 10px;
    border-bottom: 0.7px solid #414141;
}

.news-list a:hover {
    opacity: 0.6;
}

.news-list a.wp-block-button__link {
    color: #fff;
}

.news-list a.wp-block-button__link:hover {
    color: #F87474;
}

.news-list .news_date {
    margin: 0;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
}

.news-list .news_title {
    margin: 0;
    font-size: 15px;
    line-height: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: 'Times New Roman', Times, serif;
}


.news-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.news-list a {
    text-decoration: none;
    color: #e6d9bd;
    display: block;
}

.news-list a:hover {
    opacity: 0.7;
}


.news_title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    margin-top: 5px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    padding: 8px 12px;
    background: #A7A08C;
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    border-radius: 5px;
}

.pagination a:hover {
    background:#A7A08C;
}

.news-archive {
    background-color: #120801;
}

.news-archive {
    padding: 40px 120px;
}

.newsarchivetitle {
    margin: 100px 0;
    font-family: "Cinzel";
    font-weight: 200;
}

article {
    background-color: #120801;
    padding: 40px 120px;
    font-family: "Noto Serif JP";
}

article h1 {
    padding: 100px 0;
    font-weight: normal;
}

article time {
    display: none;
}

.date {
    display: none;
    margin-bottom: 20px;
    font-size: 14px;
    /* 必要なら文字サイズも調整 */
}

.toNEWS {
    text-align: left;
}

.toTOPNEWS {
    margin-top: 130px;
    text-align: right;
}

.toTOPNEWS::before {
    content: "";
    display: inline-block;
    width: 10px;
    /* 丸のサイズ */
    height: 10px;
    background-color: white;
    border-radius: 50%;
    /* 円形にする */
    margin-right: 10px;
    /* 「More」との間隔 */
    vertical-align: middle;
}


@media (max-width: 768px) {
    #NEWS {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    article {
        padding: 40px 20px;
    }

    .flex-news {
        flex-direction: column;
        gap: 0;
    }

    .news-archive {
        padding: 40px 20px;
    }

    .news-archive {
        padding: 40px 20px;
    }

    .news-list {
        margin-top: 10px;
    }
    .news-container {
        margin-top: 0;
    }
    .slideshow {
        display: none;
    }
}


.news-tags {
    margin-top: 10px;
    font-size: 14px;
    font-family: 'Times New Roman', Times, serif;
    color: #e6d9bd;
}

.news-tags ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-tags li {
    display: inline-block;
    margin-right: 10px;
}

.news-tags a {
    color: #F87474;
    text-decoration: none;
}

.news-tags a:hover {
    text-decoration: underline;
}

/* TOPのNEWSココカラ */
.latest-news {
    width: 30%;
    position: absolute;
    bottom:10px;
    right:50px;
    /* これを追加 */
    z-index: 900;
    color: #a7a08c;
    padding: 15px;
    font-size: 12px;
}
.latest-news-border{
    border-top: 0.5px solid #a7a08c;
}
.latest-news h2{
    padding-bottom: 10px;
    font-size: 18px;
    font-family: "CINZEL";
font-weight: normal;
}
.latest-news a{
    font-weight:normal;
    font-size: 16px;
}
.latest-news .news_title {
    padding-top: 8px;
    margin-left: 5px;
}

@media (max-width: 1000px) {
.latest-news {
    display: none;
    width: 45%;
    position: absolute;
    bottom:10px;
    right:0%;
    /* これを追加 */
    z-index: 900;
    color: #a7a08c;
    padding: 15px;
    font-size: 12px;
}
.latest-news-border{
    border-top: 0.5px solid #a7a08c;
}
.latest-news h2{
    padding-bottom: 6px;
    font-size: 13px;
font-weight: normal;
}
.latest-news a{
    font-weight:normal;
    font-size: 16px;
}
.latest-news .news_title {
    padding-top: 8px;
    margin-left: 5px;
}
}


.pagination .page-numbers {
    margin: 0 4px;
  }


  .filter-btn{
    color:#E6D9BD;
    margin: 3px;
    padding: 5px;
    background-color: #130801;
border: 1px solid #E6D9BD;
  }
  .category {
  margin: 20px 0;}

  .category span {
    color:#E6D9BD;
    margin: 0px;
    padding: 5px;
    background-color: #130801;
border: 1px solid #E6D9BD;
font-size: 12px;
}


.pagination {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
    justify-content: center;
}
.pagination a {
    padding: 0.4em 0.8em;
    background: #eee;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}
.pagination a.current {
    background: #333;
    color: white;
    pointer-events: none;
}

#loading-spinner {
    width: 40px;
    height: 40px;
    margin: 2em auto;
    border: 4px solid #ccc;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  #news-list-content {
    opacity: 0;
    transition: opacity 3.5s ease-in-out;
  }
  
  #news-list-content.fade-in {
    opacity: 1;
  }
  



  /* 例: モーダルのスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    background: #fff;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    position: relative;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
  