/* ================================
   Front Page 専用スタイル
   ================================ */

/*　ーーーーーーTOPページ用スライダーーーーーーー　*/
.hero-slider,
.hero-slider .swiper-slide {
  width: 100%;
  height: 100vh;/* 画面の高さ100%表示 */
  height: 100dvh;/* モバイルSafariのアドレスバー対策 */
}
.hero-slider .swiper-slide picture,
.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* アスペクト比を維持しつつトリミング */
  object-position: center; /* 中央基準でトリミング */
  display: block;
}
/*　copy部分　*/
.hero-content {
  position: absolute;
  bottom: 0;          /* 下端に固定 */
  left: 5%;           /* 左から5%寄せ */
  z-index: 2;
  height: 100vh;
  display: flex;
  align-items: flex-end;  /* 下揃え */
  pointer-events: none; /* スライダー操作を邪魔しない */
}

.hero-copy {
  display: block;
  height: auto;
  max-height: 100vh;  /* 画面高いっぱいまで */
  width: auto;
}


/*　ーーーーーーTopics部分ーーーーー　*/
/* カードレイアウト */
.topics-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr); /* PC: 4列固定 */
  margin-bottom: 48px;
}
.topic-card {
  border: 1px solid #ECEBE9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
  padding: 16px;
  display: flex; 
  flex-direction: column; /* PC・タブレットは縦積みカード */
  row-gap: 12px;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
/* サムネイル */
.topic-thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-top: 66.66%; /* 3:2比率 */
  overflow: hidden;
}
.topic-thumb img, .no-thumb {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; 
  left: 0;
  object-fit: cover;
}
/* メタ情報（公開日＋カテゴリ） */
.topic-meta time{
    font-size: 1rem;
    font-family: oswald;
    font-weight: 500;
}
/* タイトル */
.topic-title {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 8px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;/* 最大2行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.topic-title a{
    text-decoration: none;
}
.topic-tags{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 6px;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレット → 2列 */
    gap: 20px;
  }
}
/* スマホ */
@media (max-width: 768px) {
  .top-topics .topics-grid {
    grid-template-columns: 1fr ;
    gap: 16px !important;
  }
  .topic-card {
    flex-direction: row; /* 左:thumb, 右:content */
    gap: 12px;
  }
  .topic-thumb {
    flex: 0 0 40%;       /* 横幅の40%をサムネに */
    padding-top: 0;      /* 高さ固定に切り替え */
    height: auto;
    aspect-ratio: 3/2;   /* 3:2比率を維持 */
    position: static;
  }
  .topic-thumb img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .topic-content {
    flex: 1;
    display: flex;
    flex-direction: column; /* 縦積み */
    justify-content: flex-start;
  }
  .topic-title {
    font-size: 0.75rem;
  }
  .topic-meta time{
    font-size: 0.75rem;
  }
}

/*　ーーーーーーBusiness部分ーーーーー　*/
/* カードレイアウト */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.business-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--black);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  position: relative;
  transition: background 0.3s, color 0.3s;
  row-gap: 12px;
}

.business-card p {
  margin: 0;
  text-align: left;
}

.biz-title-ja {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.25em;
}

.biz-title-en {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--line2);
}

.biz-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  transform: rotate(-45deg); 
  background-color: currentColor;
  -webkit-mask: url("../img/icon-arrow.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask: url("../img/icon-arrow.svg") no-repeat center;
  mask-size: contain;
  transition: transform 0.3s ease;
}

.business-card:hover {
  background: var(--main);
  border: 1px solid var(--main);
  color: #fff;
}
.business-card:hover .biz-arrow{
  transform: translateX(8px) rotate(-45deg) translateY(-8px); 
}

@media (max-width: 768px) {
  .biz-title-ja {
    font-size: 1.25rem;
  }
  .biz-title-en {
    font-size: 1rem;
  }
}

/*　ーーーーーーニュースリスト部分ーーーーー　*/
.news-list {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  border-top: 1px solid var(--line1);
}
.news-list li {
  border-bottom: 1px solid var(--line1);
}
.news-list a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 24px 8px;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.news-list a:hover {
  opacity: 0.7;
}
.news-date {
  font-size: 1.125rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  margin-right: 20px;
  min-width: 100px;
  text-align: left;
}
.news-title {
  font-size: 1.125rem;
  flex: 1;
  text-align: left;
}

@media (max-width: 768px){
  .news-list {
    margin: 0 auto 36px;
  }
  .news-list a {
    padding: 16px 8px;
  }
  .news-date {
    font-size: 1rem;
  }
  .news-title {
    font-size: 1rem;
  }

}