/* ============================================================ 
   お知らせセクション用スタイル
   ========================================================== */

/* お知らせセクション */
.home-news {
  position: relative;
  width: 100%;
  margin-top: 16vh;
  margin-bottom: 10vh;
  padding: 0;
  background-color: #ffffff;
  overflow: hidden;
}

.home-news .home-news-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 10vw;
  gap: 60px;
}

/* 左側タイトルエリア */
.home-news .home-news-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 40px;
  position: relative;
  width: 25%;
}

.home-news .home-news-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 10px;
}

.home-news .home-news-title-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.home-news .home-news-heading {
  color: #004ea2;
  font-size: 5vw;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
}

.home-news .home-news-subtitle {
  color: #004ea2;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.4;
}

.home-news .button-container {
  margin-top: 10px;
}
.home-news .btn-primary {
  background-color: var(--light-blue);
  color: #ffffff;
  border: 1px solid var(--light-blue);
  transition: all 0.3s ease;
}

.home-news .btn-primary:hover {
  background-color: transparent;
  color: var(--light-blue);
}

/* 右側ニュースエリア */
.home-news .home-news-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  width: 75%;
}

/* ニュース記事カード */
.home-news .home-news-item-wrapper {
  width: 100%;
}

/* 矢印アイコン */
.home-news .home-news-arrow {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-news .home-news-arrow img {
  width: 100%;
  height: auto;
}

.home-news .home-news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.home-news .home-news-item:hover {
  background-color: #e3ecf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 78, 162, 0.1);
}

.home-news .home-news-item:hover .arrow-image {
  content: url('../img/common/arrow_wh.png');
}

/* カテゴリーアイコンを非表示 */
.home-news .home-news-category-icon {
  display: none;
}

/* 画像エリア */
.home-news .home-news-image-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 160px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.home-news .home-news-image-wrapper img {
  width: 100%;

/* 矢印アイコン */
.home-news .home-news-arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
}

.home-news .home-news-arrow img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.home-news .arrow-white {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* カテゴリーアイコンを非表示 */
.home-news .home-news-category-icon {
  display: none;
}  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.home-news .home-news-item:hover .home-news-image-wrapper img {
  transform: scale(1.05);
}

/* テキストコンテナ */
.home-news .home-news-text-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  width: calc(100% - 260px);
}

.home-news .home-news-date {
  font-size: 1em;
  font-family: 'Righteous', cursive;
}

.home-news .home-news-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-news .home-news-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #004ea2;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-news .home-news-content {
  font-size: 1em;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-height: 3.2em; /* line-heightの2倍 */
}

/* カテゴリーアイコン */
.home-news .home-news-category-icon {
  position: absolute;
  top: 24px;
  right: 24px;
}

.home-news .home-category-label {
  display: inline-block;
  padding: 4px 12px;
  background-color: #004ea2;
  color: #ffffff;
  font-size: 12px;
  border-radius: 15px;
}

/* レスポンシブ設定 */
@media screen and (max-width: 1280px) {
  .home-news .home-news-container {
    padding: 0 8vw;
  }
  
  .home-news .home-news-heading {
    font-size: 60px;
  }

  /* newsセクション */
  .home-news .home-news-container {
    flex-direction: column;
    padding: 0 4vw;
    gap: 40px;
  }

  .home-news .home-news-left {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    justify-content: space-between;
  }

  .home-news .home-news-title-wrapper {
    width: auto;
  }

  .home-news .home-news-right {
    width: 100%;
  }

  .home-news .home-news-image-wrapper {
    width: 280px;
    height: 200px;
  }

  .home-news .home-news-date {
    font-size: 2vw;
  }

  .home-news .home-news-title {
    font-size: 2.6vw;
  }

  .home-news .home-news-content {
    font-size: 1.6vw;
  }
}

@media screen and (max-width: 992px) {
  .home-news {
    margin-top: 10vh;
  }
  
  .home-news .home-news-container {
    flex-direction: column;
    gap: 40px;
  }
  
  .home-news .home-news-left {
    width: 100%;
  }
  
  .home-news .home-news-right {
    width: 100%;
  }
  
  .home-news .home-news-heading {
    font-size: 50px;
  }
}

@media screen and (max-width: 768px) {
  .home-news .home-news-item {
    align-items: flex-start;
    padding: 20px;
  }
  
  
  .home-news .home-news-text-container {
    width: 100%;
  }
  
  .home-news .home-news-category-icon {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 10px;
  }

    /* newsセクション */
    .home-news .home-news-heading {
      font-size: 8vw;
    }
  
    .home-news .home-news-image-wrapper {
      width: 40%;
      height: auto;
    }
  
    .home-news .home-news-date {
      font-size: 3vw;
    }
  
    .home-news .home-news-title {
      font-size: 4vw;
    }
  
    .home-news .home-news-content {
      font-size: 3vw;
    }
  
    .home-news .home-news-arrow img {
    display: none;  
    }
}

@media screen and (max-width: 576px) {
  /* サポートセクション */
  .home-news {
    margin-top: 5vh;
  }
  
  .home-news .home-news-container {
    padding: 0 5vw;
  }
  
  .home-news .home-news-heading {
    font-size: 40px;
  }
  
  .home-news .home-news-subtitle {
    font-size: 16px;
  }
  
  
  .home-news .home-news-title {
    font-size: 20px;
  }
  
  .home-news .home-news-content {
    font-size: 16px;
  }
  
  .home-news .home-news-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .home-news .home-news-item-link {
    padding: 12px 15px;
  }

  .home-news .home-news-image-wrapper {
    width: 100%;
    height: auto;
}
  
  .home-news .home-news-date, 
  .home-news .home-category-label {
    font-size: 16px;
  }
  
  .home-news .home-category-label {
    padding: 3px 8px;
  }

  /* newsセクション */
  .home-news .home-news-left {
    display: flex;
    gap: 0;
    width: 100%;
  }
  .home-news .home-news-heading {
    font-size: 10vw;
    margin-bottom: 0;
  }

  .home-news .home-news-subtitle {
    display: flex;
    font-size: 1.4em;
  }
}
