.service-hero {
  height: 70vh;
  background-image: url("../pic_new/company3.JPG");
  background-size: cover;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.service-hero h1 {
  position: relative;
  z-index: 2;          /* ← これが重要 */
  color: #fff;
  font-size: 36px;
  letter-spacing: 0.3em;
}


.service-nav {
  background: #f7f7f7;
  padding: 20px 0;
}

.service-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.service-nav a:hover {
  color: #000;
}

.service-nav a:hover::after {
  background-color: #f64343;
}

.service-nav a:hover {
  border-bottom: 2px solid #0300cc;
}


.business {
  width: 90%;
  margin: 80px auto;
}

.business-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
  gap: 60px;
  align-items: flex-start;  /* ← これが重要 */
  scroll-margin-top: 100px;
}

/* 画像側 */
.business-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 45%;
}

.business-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: "contain";
  background: #fff;     /* 余白を白で埋める */
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-radius: 6px;
}

/* テキスト側 */
.business-text {
  width: 50%;
}

.business-text h2 {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

/* 左右反転 */
.business-item.reverse {
  flex-direction: row-reverse;
}

html {
  scroll-behavior: smooth;
}