/* CSS Document */

/*-------------------------
    ページタイトル
-------------------------*/
.kv .ttl-box p {
  max-width: 570px;
}
.ttl-box h2 {
  opacity: 0;
  transform: translateX(-60px);
}
.ttl-image {
  opacity: 0;
  transform: translateX(60px);
}
/*-------------------------
    コンテンツ
-------------------------*/
.news__block {
  max-width: 1070px;
  margin: 0 auto 100px;
  width: 90%;
  padding: 0 40px;
}

/* ニュースアイテムの基本スタイル */
.news-item {
  display: flex;
  flex-direction: row;
  padding: 50px 0;
  gap: 3rem;
  border-bottom: 1px solid #cfd7de;
  transition: background-color 0.3s ease;
  align-items: baseline;
}

.news-item a:hover {
  cursor: pointer;
}

.news-item:last-child {
  border-bottom: none;
}

/* 上部の横並びエリア：日付、カテゴリ、タイトル */
.news-meta {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 0 0 auto;
}

/* 日付のスタイル */
.news-date {
  flex: 0 0 auto;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 400;
  width: 95px;
  font-family: 'futura-pt', sans-serif;
}

/* カテゴリラベルの表示 */
.news-category {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 24px;
  font-size: 11px;
  width: 100px;
  line-height: 1.5;
  letter-spacing: 0.1rem;
  vertical-align: middle;
  color: white;
}

/* カテゴリ色の定義 */
.cat-event,
.news-item .event-category-color {
  background-color: #18aad4;
}

.cat-news,
.news-item .news-category-color {
  background-color: #0c58a5;
}

/* ニュースタイトル */
.news-ttl {
  flex: 1 1 0; 
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  line-clamp: 2;
}

/* ニュースコンテンツ（本文）- タイトル下部に表示 */
.news-body p {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.news-txt {
  font-size: 18px;
  line-height: 1.6;
  width: 100%;
  margin-left: auto;
}

.news-section {
  margin-bottom: 113px;
}

.news-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1020px;
}
.news-header {
  color: #057591;
  margin-right: 90px;
}

.news-header h2 {
  font-size: 50px;
  font-family: var(--font-futura);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 5px;
}

#news-list {
  width: 100%;
}


@media screen and (min-width: 768px) and (max-width: 1000px){
  .news-section .container {
    flex-direction: column;
    align-items: start;
  }

  .news-section {
    padding: 0 0 50px;
    margin-bottom: 20px;
  }

  .news-header {
    margin: 0 auto 30px;
    text-align: center;
  }

  .news-header h2 {
    font-size: 55px;
  }

  .news-subtitle {
    font-size: 16px;
  }

  .news-content, #news-list {
    width: 100%;
  }

  .news-date {
    font-size: 16px;
    width: auto;
  }

  .news-category {
    width: 100px;
    font-size: 10px;
  }

  .news-ttl {
    font-size: 15px;
    margin-top: 0.5rem;
  }
}

@media screen and (max-width: 767px) {
  .news__block {
    width: 100%;
    padding: 0 30px;
  }

  .news-section .container {
    flex-direction: column;
    align-items: start;
  }

  .news-section {
    padding: 40px 0 50px;
    margin-bottom: 20px;
  }

  .news-header {
    margin: 0 auto 30px;
    text-align: center;
  }

  .news-header h2 {
    font-size: 55px;
  }

  .news-subtitle {
    font-size: 16px;
  }

  .news-content, #news-list {
    width: 100%;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .news-meta {
    gap:2rem;
  }

  .news-date {
    font-size: 1.1rem;
    font-weight: 400;
  }

  .news-category {
    padding: 0.3%;
    font-size: 0.7rem;
    width: 5rem;
  }

  .news-ttl {
    flex: auto;
    font-size: 1rem; 
    line-height: 1.5;
  }
}


/*-------------------------
    PDFリンクボタン
-------------------------*/
.news-pdf {
  margin-top: 2rem;
  text-align: left;
}

.news-pdf a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 340px;
  max-width: 890px;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 1px solid #01a0a4;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
  font-size: 12px;
  box-sizing: border-box;
}

.news-pdf a span {
  flex: 1;
  text-align: center;
  line-height: 1.4;
}

/* 余白調節用の空き */
.news-pdf a::before {
  content: "";
  flex: 0 0 17px;
}

.news-pdf a::after {
  content: "";
  display: inline-block;
  width: 17px;
  height: 21px;
  background-image: url(/assets/img/insurance-agent-article-icon.svg);
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 12px;
}

.news-pdf a:hover {
  background-color: #e9ecef;
  color: #212529;
}

.news-pdf h3, .news-pdf h4 {
  margin: 15px 0 10px;
  color: #333;
}

@media screen and (max-width: 767px) {
  .news-pdf a {
    min-width: 100%;
    padding: 16px 16px;
    font-size: 14px;
    text-align: center;
  }
}

.pdf_link {
  display: inline-block;
  margin-bottom: 10px;
}