@charset "utf-8";

.sub-page body {
  line-height:2; 
}

.sub-page .container {
  display: flex;
  flex-direction: column;
}

.sub-page .wrapper {
  flex: 1; /* コンテンツを可能な限り伸ばしてfooter位置を調整 */
}

.sub-page a {
  text-decoration: none;
  color: #383838;
  transition: color 0.3s ease;
}
.sub-page a:hover {
  color: #868686;
}

.sub-page header {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.sub-page header a:link {
  display: inline-block;
}
.sub-page header a {
  color: #fff;
}
.sub-page header a:hover {
  color: #fff;
}
.sub-page .main-title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.8;
  white-space: nowrap;
}
.sub-page .sub-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  margin-top:30px;
}

.breadcrumb {
  padding: 10px;
  font-size: 1.1rem;
}
.news-section {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 50px;
}
.section-heading {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin: 40px 0 30px;
}
.news-headline {
  font-size: 1.8rem;
  line-height: 1.5;
}
.news-date {
  font-size: 1.3rem;
}
.news-body {
  margin-top: 30px;
}
.news-body img {
  width: 100%;
  height: auto;
}
.news-body p {
  margin: 20px 0;
  /* line-height: 2; */
}
.news-navigation {
  width: 100%;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin: 60px auto 0;
  text-align: center;
}

.news-nav-links {
  display: flex;
  justify-content: space-between; /* 両端に寄せる */
  align-items: center;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
}

.news-nav-links li {
  flex: 0 0 auto;
}

.spacer {
  flex: 1;
}

.news-back {
  width: 90%;
  margin: 20px auto 0;
  text-align: center;
}

.back-button {
  display: inline-block;
  border: 1px solid #222;
  border-radius: 3px;
  background-color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  color: #222;
  cursor: pointer;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #f0f0f0;
}


  /**************************************************************************************/

/* newslist page */

.news-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  grid-template-columns: repeat(2, 1fr); /* SP：2列 */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

article.news-item {
  background: #fff;
  /* border-radius: 6px; */
  overflow: hidden;
}

.news-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.news-image img:hover {
  transform: scale(1.1);
}

.news-item .date {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}
.news-item h4 {
  margin: 5px 0 10px;
  line-height: 1.5;
}

.news-item .title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin: 0 10px 10px;
}

/* pagination */
.pagination {
  margin-top: 30px;
  text-align: center;
}
.pagination a {
  margin: 0 5px;
}
  


/* ==== PC用レイアウト ==== */
@media screen and (min-width: 768px) {

  .sub-page body {
      font-size: 1.2rem;
  }
  .news-section {
      width: 60%;
      margin: 0 auto;
      margin-bottom: 50px;
  }
  .section-heading {
      margin: 80px 0 60px;
  }
  .news-grid {
    grid-template-columns: repeat(3, 1fr); /* PC：3列 */
  }
  .news-item .date {
    font-size: 0.9rem;
  }
}
