/**
 * トップお知らせ用 (.news_content > .article_list) のレイアウト
 * 新着記事サイドバーの .l-article_wrap .article_content .article_list と同じ見た目を独立スコープで再現
 */

.news_content .article_list { list-style: none;
  padding: 0;
  margin: 0; }
.news_content .article_list li { border-bottom: 0.1rem solid #333; }
.news_content .article_list li:first-child a { padding: 3rem 0; }
.news_content .article_list li a { 
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  color: rgb(51, 51, 51);
  padding: 2.5rem 0px;
  text-decoration: none;
  transition: background 0.3s;
}
.news_content .article_list li a .article_img {
  max-width: 318px;
  width: 100%;
  height: 100%;
  aspect-ratio: 318 / 152;
}
.news_content .article_list li a .article_img img{
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.news_content .article_list li a .article_cont { width: 60%; }
.news_content .article_list li a .meta_group { display: flex;
  align-items: center;
  min-width: 24rem; }
.news_content .article_list li a .meta_group { width: 100%;
    margin-bottom: 1rem;
    align-items: flex-start; }
.news_content .article_list li a .meta_group .date { margin-right: 1.5rem;
  white-space: nowrap; }
.news_content .article_list li a .meta_group .cat_label { display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  background: #00a0aa;
  color: #fff;
  padding: 0.3rem 1rem;
  min-width: 8rem;
  text-align: center; }
.news_content .article_list li a .meta_group .cat_label {
    font-size: 1.6rem;
    padding: 0rem 0.5rem 0.2rem;
    line-height: 1.6;
  }
.news_content .article_list li a .article_title {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: 1rem;
}
.news_content .article_list li a .icon_arrow { width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.1rem solid #00a0aa;
  background-color: #00a0aa;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease; }
.news_content .article_list li a .icon_arrow:before { content: "";
  position: absolute;
  width: 1.2rem;
  height: 0.1rem;
  background-color: #fff;
  right: 45%;
  transform: translate(30%);
  transition: all 0.3s ease; }
.news_content .article_list li a .icon_arrow:after { content: "";
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 0.15rem solid #fff;
  border-right: 0.15rem solid #fff;
  transform: rotate(45deg);
  right: 0.8rem;
  transition: all 0.3s ease; }
.news_content .article_list li a .icon_arrow:after { right: 0.9rem; }
.news_content .article_list li a:hover .article_title { color: #00a0aa;
  transition: all 0.3s ease; }
.news_content .article_list li a:hover .icon_arrow { background-color: #fff;
  border-color: #00a0aa; }
.news_content .article_list li a:hover .icon_arrow:before { background-color: #00a0aa; }
.news_content .article_list li a:hover .icon_arrow:after { border-color: #00a0aa; }

/* レスポンシブ調整 */

@media screen and (max-width: 768px) {
  .news_content .article_list { list-style: none;
  padding: 0;
  margin: 0; }
  .news_content .article_list li:first-child a { padding: 3rem 0; }
  .news_content .article_list li a { display: block;
    padding: 6rem 0 3rem; }
  .news_content .article_list li a .article_img { width: 100%; max-width: 100%; }
  .news_content .article_list li a .article_cont { width: 100%;
    margin-top: 3rem; }
  .news_content .article_list li a .meta_group { width: 100%;
    margin-bottom: 1rem;
    align-items: flex-start; }
  .news_content .article_list li a .meta_group .cat_label {
    font-size: 1.4rem;
    padding: 0rem 0.5rem 0.2rem;
    line-height: 1.6; 
  }
}

@media screen and (max-width: 1100px) {
  .news_content .article_list li a .icon_arrow:after { right: 0.9rem; }
}

/* -----------------------------------------------------------------
   about ページなど <main id="pages"> 配下で news section を出す場合の調整
   ・inner の幅復旧（#pages .inner { width:100% } の打ち消し）
   ・トップページ用に付いている .l-news の上マージン（15rem 相当）を無効化
----------------------------------------------------------------- */
#pages .l-news {
  margin-top: 0;
}

#pages .l-news .inner {
  width: auto;
  max-width: 130rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  #pages .l-news .inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* -----------------------------------------------------------------
   新着記事サイドバー (.l-article_wrap .article_content) の調整
   - li a に gap 40px（画像とテキストの間隔）
   - .article_img は 318:152 の比率
   - .article_cont は width 100%
----------------------------------------------------------------- */
.l-article_wrap .article_content .article_list li a {
  gap: 40px;
}

.l-article_wrap .article_content .article_list li a .article_img {
  max-width: 318px;
  width: 100%;
  aspect-ratio: 318 / 152;
}

.l-article_wrap .article_content .article_list li a .article_cont {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .l-article_wrap .article_content .article_list li a .article_img {
    max-width: 100%;
  }
}

/* -----------------------------------------------------------------
   archive-news (/news/) のカードアイキャッチのサイズ指定
   トップお知らせ (.article_img) と同じ比率 318:152 に揃える
----------------------------------------------------------------- */
.news-item__thumb {
  max-width: 318px;
  width: 100%;
  aspect-ratio: 318 / 152;
  overflow: hidden;
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 768px) {
  .news-item__thumb {
    max-width: 100%;
  }
}
