@charset "UTF-8";
/* CSS Document */
#pub-relations section {
  padding: 4rem 4%;
}
#norin-news h2{
	margin-bottom: 2rem;
}
#norin-news > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* 各記事 */
#norin-news article {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
/* a要素をブロック化して幅を100%に固定 */
#norin-news article a {
  display: flex; /* モバイルでは横並び */
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  width: 100%; /* ← これが重要 */
  box-sizing: border-box; /* パディングがはみ出さないように */
}
/* モバイル版の画像 */
#norin-news article a {
  display: flex; /* モバイルでは横並び */
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  width: 100%; /* ← はみ出し防止 */
  box-sizing: border-box; /* ← padding含めてもはみ出さない */
}
/* モバイル画像 */
#norin-news figure {
  flex-shrink: 0;
  width: 25vw;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
#norin-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
/* マウスオーバーで画像拡大 */
#norin-news article:hover img {
  transform: scale(1.1);
  transition: all 0.5s 0s ease;
}
/* テキスト部分 */
#norin-news article a > div:last-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0;
}
/* 複数行省略 */
#norin-news h3, #norin-news p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
#norin-news h3 {
  -webkit-line-clamp: 1; /* 見出し1行 */
  padding: 0 .5rem;
}
#norin-news p {
  -webkit-line-clamp: 3; /* 本文3行 */
  line-height: 1.4;
  padding: 0 .5rem;
}
.jh-link {}
.jh-link a {
  margin: 1em 0;
  padding: 1em;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.jh-link-flex {
  display: flex;
  column-gap: 2rem;
  align-items: flex-start;
}
.jh-link-figure {
  flex: 0 0 100px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.jh-link-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.jh-link-content {
　flex:2;
}
.jh-link-content p{
  font-size: 1.4rem;
}
.jh-link date {
  color: #6A6A6A;
}
.jh-link-grid-pc {
  padding: 2rem 0;
}
.jh-link-grid-pc a{
	color:#000;
}
.jh-link-grid-pc article {
  border-bottom: solid 1px var(--gray);
}
.jh-link-grid-pc article:first-child {
  border-top: solid 1px var(--gray);
}

/* PC版 */
@media (min-width: 768px) {
  #norin-news > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 常に4列固定 */
    gap: 1.5rem;
  }
  #norin-news article a {
    flex-direction: column; /* 縦並び */
    align-items: flex-start;
    width: 100%;
  }
  #norin-news article a > div:last-child {
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上端揃え */
    align-items: flex-start;
  }
  #norin-news figure {
    width: 100%;
    aspect-ratio: 4 / 3; /* 横長カード風 */
  }
}
