.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("../images/header-pf.png") center/cover no-repeat;

  z-index: -1;

  /* ここだけ動かす */
  animation: heroMove 20s ease-in-out infinite alternate;

  transform: scale(1.1); /* 端の余白防止 */
}


/* =================
   Portfolio
================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: #222;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: .3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card .img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-card .body {
  padding: 20px;
}

.portfolio-detail .main-img img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 40px;
}

.portfolio-content {
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-content .overview {
  font-size: 18px;
  margin-bottom: 30px;
  color: #0f2745;
  font-weight: bold;
}

.portfolio-content .content {
  line-height: 1.9;
}

/* レスポンシブ */
@media(max-width:768px){
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
