

.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 4rem clamp(2rem, 6vw, 8rem);
  position: relative;
}


.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.85)
    ),
    url("../img/pc.jpg") center / cover no-repeat;
  z-index: -1;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
}



.hero h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #111;
}

.hero p {
  color: #555;
}



.hero_sub {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

/* .hero::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #73cefb;
  margin: 1.5em auto 0;
} */


.works_section {
    margin-top:1em;
}

.wp {
    text-align: center;
        font-size: 2em;
        margin-bottom: 1em;
      font-weight: 500;
  letter-spacing: 0.05em;

}





.work_flex {
      display: flex;
      align-items: center;
  justify-content: center;
    gap: 40px;
    }

.tech {
  display: block;
  width: 5em;
  height: 5em;
  line-height: 5em;
  font-size: 24px;
  text-decoration: none;
  background-color: #f3f3f3;
  color: #b5b5b5;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
  opacity:0.75;

  transform: scale(1);
  transition: 
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.15s ease;
}

.tech:hover {
  transform: scale(1.15);
  background: #73cefbaa;
  box-shadow: 0 0 8px #666;
  color: #fff;
cursor: default; 
}

.ai-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  line-height: 1.6;
}

/* トップページのタイトルリンクを最前面に */
.front-page a {
  position: relative;
  z-index: 10;
}


.visual {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.visual-text h2 {
  margin: 1rem 0 0.25rem;
}

.visual-text p {
  margin: 0;
  opacity: .7;
}








@media (max-width: 1024px) {
.work_flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;   /* ←ここが肝 */
    width: fit-content;
    margin: 0 auto;
    }

.hero {
    height:auto;
    padding:1em 0;
}
  .tech {
    color: #fff;
    background: #73cefbaa;
    transform: scale(1);
  }



    /* .header_menu li {
    padding: 0.5em 0.75em;
  } */


  .hero {
    min-height: 45vh;
  }

  .hero-inner {
    padding: 3rem 2rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .works_section {
    margin-top:3em;
}
}

