/* ==========================================================================
   HOME RESEARCH (研究紹介) セクション用スタイルシート (home-research.css)
   ========================================================================== */

#home-research-section {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 60px auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 60px;
}

.home-research-header h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 10px;
}

/* 英語の補助ラベル「Research Fields」 */
.home-research-header h2::before {
  content: "Research Fields";
  display: block;
  font-size: 14px;
  color: #0E426D; /* FEDL Blue */
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.home-research-lead {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 35px;
  text-align: justify;
}

/* グリッドレイアウト（2カラム） */
.home-research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* 研究カード */
.home-research-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; /* リンクの下線を消す */
  color: inherit; /* テキスト色を引き継ぐ */
}

.home-research-card * {
  text-decoration: none; /* カード内部の全要素の下線を無効化 */
}

.home-research-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e0;
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.04);
}

/* カード画像 */
.home-research-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 16:9のワイド比率にする */
  background-color: #f7fafc;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.home-research-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-research-card:hover .home-research-card-img {
  transform: scale(1.02);
}

/* カードコンテンツ */
.home-research-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 24px;
}

.home-research-card-en {
  font-size: 11px;
  color: #0E426D;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.home-research-card-ja {
  font-size: 17px;
  color: #2d3748;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.home-research-card:hover .home-research-card-ja {
  color: #0E426D;
}

.home-research-card-desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.7;
  margin: 0 0 20px 0;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 3行クランプ */
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.home-research-card-action {
  margin-top: auto;
}

.home-research-detail-btn {
  display: inline-block;
  background-color: #0E426D;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 5px;
  border: 1px solid #0E426D;
  transition: all 0.2s ease;
}

.home-research-detail-btn:hover {
  background-color: #fff;
  color: #0E426D;
  box-shadow: 0 4px 10px rgba(14, 66, 109, 0.12);
}

/* レスポンシブ */
@media (max-width: 768px) {
  #home-research-section {
    width: 92%;
    margin: 30px auto 40px auto;
  }
  .home-research-grid {
    grid-template-columns: 1fr; /* スマホ・縦画面では1列 */
  }
}
