/* =========================================================
   0. 共通（全幅）
   ========================================================= */

.sec-news-list {
  padding: 3rem 0;
}

.news-layout {
  display: block;  
}

.news-main {
  flex: 1 1 auto;
}

.news-side {
  margin-top: 2.5rem; 
}


.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ccc;
}

.news-item {
  border-bottom: 1px solid #ccc;
}

.news-item a {
  display: block;
  padding: 1.3rem 0;
  text-decoration: none;
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-right: 0.5rem;
}

.news-cat-tag {
  
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #fff;       
  border: 1px solid #19447e;
  color: #19447e;         
  margin-right: 0.5rem;
}


.news-title {
  display: block;
  font-weight: 600;
  margin-top: 0.3rem;
}


.news-side-block + .news-side-block {
  margin-top: 2rem;
}

.news-side-title {
  background: #19447e;
  color: #ffffff;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 14px;
}

.news-cat-list,
.news-year-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-cat-list li,
.news-year-list li {
  margin-bottom: 0.4rem;
}

.news-cat-list a,
.news-year-list a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #19447e;
}

.news-cat-list a.is-current,
.news-year-list a.is-current {
  font-weight: bold;
  text-decoration: underline;
}
.news-date {
  font-size: 0.9rem;
  color: #fff;   
  margin-right: 0.5rem;
}


.news-side {
  background: #fff;
  padding: 0.5rem 1.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


.news-filter-sp {
  display: none;
  margin-bottom: 1.5rem;
}

.news-filter-sp select {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}


.news-pagination {
  margin-top: 1.5rem;
  text-align: center;
}

.news-pagination .page-link {
  display: inline-block;
  margin: 0 0.2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.news-pagination .page-link.is-current {
  background: #19447e;
  color: #fff;
  border-color: #19447e;
  cursor: default;
}
.news-pagination .page-link.is-disabled {
  background: #eee;
  color: #aaa;
  border-color: #ddd;
  cursor: default;
  pointer-events: none;
}

.news-pagination .page-link.prev,
.news-pagination .page-link.next {
  min-width: 3.5rem;
}
.news-pagination .page-link {
  display: inline-block;
  min-width: 40px;   
  text-align: center;
}
.news-pagination .page-link,
.news-pagination .page-ellipsis {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-width: 40px;
  height: 32px;
  margin: 0 4px;
  padding: 0 6px;
}
.p-card {
  background: #ffffff;
  color: #19447e;
  border-radius: 8px;
  padding: 2.5rem;
  margin-top: 1rem;
}
.p-head {
  background: #19447e;
  color: #ffffff;
  border-radius: 6px;
  padding: 1.2rem 1rem;
  margin: 0 0 1.5rem 0;
}
.p-title {
  font-size: 1.5rem;
  line-height: 1.1;
  font-family: "Noto Serif JP", "Hiragino Mincho Pro", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}






#submit-btn {
  width: 140px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid #19447e;
  background: #fff;
  color: #19447e;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;      
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);  
  transition: background-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.1s ease;
}


#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}



#submit-btn:hover:not(:disabled),
.confirm-buttons .btn-back:hover,
.confirm-buttons .btn-send:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}


#submit-btn:active:not(:disabled),
.confirm-buttons .btn-back:active,
.confirm-buttons .btn-send:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
}


.confirm-buttons .btn-send:hover {
  background: #215291; 
}



/* =========================================================
   1. [SP] ～767px
   ========================================================= */

@media (max-width: 767px) {

  /* 追加: 元(max-width: 1024px)はSPにも必要 */
  .news-side {
    display: none;
  }
  .news-filter-sp {
    display: block;
  }


  /* 元: @media ((max-width: 600px)) */
  .news-pagination .page-link:not(.prev):not(.next),
    .news-pagination .page-ellipsis {
      display: none;
    }

    .news-pagination .prev,
    .news-pagination .next {
      min-width: 40%;
      font-size: 16px;
      padding: 10px 0;
    }

  /* 元: @media ((max-width: 600px)) */
  .sec-news-list {
      padding: 1rem 0;
    }
}

/* =========================================================
   2. [TB] 768～1279px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1279px) {

  /* 元: @media ((min-width: 900px)) */
  .news-layout {
      display: flex;
      align-items: flex-start;
      gap: 3rem;
    }
    .news-side {
      width: 260px;
      margin-top: 0;
    }

  /* 元: @media ((max-width: 1024px)) */
  .news-side {
      display: none;
    }
    .news-filter-sp {
      display: block;
    }
}

/* =========================================================
   3. [PC] 1280px～
   ========================================================= */

@media (min-width: 1280px) {

  /* 元: @media ((min-width: 900px)) */
  .news-layout {
      display: flex;
      align-items: flex-start;
      gap: 3rem;
    }
    .news-side {
      width: 260px;
      margin-top: 0;
    }
}
