@charset "utf-8";

/* ヒーローイメージ */

header picture img {
  width: 100%;
  height: auto;
  display: block;
}

.hero_image {
  width: 100%;
  height: auto;
}

/* １．メッセージ */

.grid_message {
  display: grid;
  grid-template-columns: 450px 470px;
  justify-content: space-between;
}

.message h2 {
  font-size: 2.8rem;
  color: #0c66ab;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 30px;
  margin-bottom: 44px;
}

/* ２．企業情報 */
.company {
  background-color: #f5f6f8;
}

.grid_company {
  display: grid;
  grid-template-columns: 444px 470px;
  justify-content: space-between;
}

.ttl_company {
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.ttl_j_company {
  font-size: 1.8rem;
  font-weight: 600;
  padding-left: 28px;
}

.text_company {
  margin-bottom: 30px;
}

/* 企業情報　写真 */
.image_stack_company {
  position: relative;
  width: 470px;
  height: 313px;
}

.image_c1 {
  position: relative;
  display: block;
  margin: 0 0 0 160px;
  z-index: 1;
}

.image_c2 {
  position: relative;
  display: block;
  margin: -105px 0 0 0;
  z-index: 2;
}

/* 3.実績紹介 */

.grid_performance {
  display: grid;
  grid-template-columns: repeat(4, 205px);
  justify-content: space-between;
  line-height: 1.5;
}

/* 枠（ホバー判定する場所） */
.item_performance {
  display: block; /* aタグをブロック化 */
  overflow: hidden;
}

/* 画像 */
.item_performance img {
  display: block; /* 下の謎の隙間防止 */
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

/* ホバー時：写真の中身だけ拡大 */
.item_performance:hover img {
  transform: scale(1.1);
}

.performance p {
  width: fit-content; /* 幅を中身に合わせる */
  margin: 30px auto 0px;
}

/* 4．お知らせ */
.news {
  background-color: #f5f6f8;
}

.list_news {
  display: grid;
  grid-template-columns: repeat(4, 205px);
  justify-content: space-between;
  line-height: 1.5;
  list-style: none;
}

.news_meta {
  display: flex;
  align-items: center;
  gap: 8px; /* 日付とカテゴリの間の余白 */
}

.card_news a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease;
}

.card_news a:hover {
  opacity: 0.6; /* ← ここで透過具合調整 */
}

.news p {
  width: fit-content; /* 幅を中身に合わせる */
  margin: 30px auto 0px;
}
