@charset "utf-8";

/* profile.html */
body {
  overflow-x: hidden;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.8s ease-out, transform 1.0s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.profile-fv {
  margin-top: 5rem;
  margin-bottom: 112px;
  object-position: 120% 50%;
  opacity: 0;
  animation: fadeIn 2.5s forwards;
  z-index: -1;
  width: clamp(31.25rem, 9.7087rem + 91.9094vw, 120rem);

  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.profile-fv-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.page-heading {
  position: absolute;
  top: 100%;
  font-size: clamp(4.375rem, 3.275rem + 4.69vw, 7.5rem);
  z-index: 10;
}

.profile-txt-box {
  opacity: 0;
  animation: fadeIn 2.5s forwards;
}

@media screen and (max-width: 1200px) {
  .page-heading {
    top: clamp(15%, 13%, 12%);
  }
}

.profile-txt-box {
  position: absolute;
  top: 40%;
  left: 53%;
  background-color: #f3f4f7;
  padding: 24px;
  max-width: 600px;
  animation: fadeIn 2.5s forwards;
}

@media screen and (max-width: 1400px) {
  .profile-txt-box {
    left: 50%;
    top: 55%;
  }
}

@media screen and (max-width: 1040px) {
  .profile-txt-box {
    position: static;
    margin-left: auto;
  }
}

.profile-txt-heading {
  font-size: 24px;
  margin-bottom: 16px;
}

.profile-txt p {
  margin-bottom: 16px;
  line-height: 1.5;

}

.strength-flex-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.strength-items {
  width: 24vw;
}

.strength-img {
  object-fit: cover;
  width: 24vw;
}

.strength-heading {
  padding: 16px 0;
  font-size: 24px;
}

.interests-flex-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3vw;
  margin-bottom: 3vw;
}

.interests-items {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.interests-items img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.interests-items::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* 初期は透明 */
  transition: background 0.3s ease;
  z-index: 1;
}

.hover-text {
  position: absolute;
  top: 50%;
  right: 10%;
  left: 10%;
  transform: translate(0%, -50%);
  color: #fff;
  font-size: clamp(1rem, 0.6656rem + 1.5287vw, 2.5rem);
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.interests-items:hover img {
  transform: scale(1.05); 
}

.interests-items:hover::before {
  background: rgba(0, 0, 0, 0.5); 
}

.interests-items:hover .hover-text {
  opacity: 1;
}


@media screen and (max-width: 768px) {
  .interests-flex-inner {
    grid-template-columns: repeat(2, 1fr);    align-items: center;
  }
  .strength-items {
    width: 80vw;
    line-height: 1.6;
  }

  .strength-img {
    object-fit: cover;
    width: 60vw;
  }
  .interests-flex-inner {
    flex-direction: column;
    gap: 3vw;
    margin-bottom: 3vw;
  }
}


@media screen and (max-width: 650px) {
  .profile-fv-img {
    width: auto;
    }

}

.skills-flex-inner {
  display: flex;
  margin-bottom: 56px;
}

.skills-heading {
  width: 10vw;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-inline-start: 8vw;
  margin-inline-end: clamp(50px, 4vw, 6vw);
  white-space: nowrap;
}

.skills__tools-flx-inner {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.8rem;
  font-size: .7rem;
}

.skills__tools {
  font-size: .8rem;
  padding: 0.2rem 0.4rem 0.2rem 0.4rem;
  border: 1px solid var(--font-color);
  border-radius: 999px;
}

@media screen and (max-width: 1040px) {
  .skills-flex-inner {
    flex-direction: column;
  }

  .skills-heading {
    margin-left: 0;
  }
}

.skills-desc {
  max-width: 600px;
  line-height: 1.8;
  font-size: clamp(1rem, .5vw + 0.5rem, 1.5rem);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}