/* About Section */
.about-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}


.about-bg-text {
  position: absolute;
  top: 20px;
  left: -60px;
  font-size: 300px;
  color: #999;
  opacity: 0.2;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.about-inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.about-profile .profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-info {
  flex: 1;
  width: 1000px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.about-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 24px;
  position: relative;
  color: #222;
}

.about-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #A89F96;
  margin-top: 6px;
}

.about-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.about-message {
  font-size: 1.1rem;
  margin-bottom: 2em;
  line-height: 1.8;
  color: #333;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.skill-category h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
  color: #555;
  border-left: 4px solid #a89f96;
  padding-left: 10px;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-category ul li {
  margin-bottom: 0.5em;
  color: #666;
}

.about-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.2s;
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* back to top */
.back-to-top {
  position: absolute;
  bottom: 5%;
  right: 5%;
  display: flex;
  align-items: center;
}

.back-to-top .back-line {
  display: block;
  width: 100px;
  height: 1px;
  background-color: #222;
  margin-right: 20px;
  transform-origin: left; /* ← 左から伸びる */
  transform: scaleX(0);
  animation: backTopLineScale 1s ease forwards;
  animation-delay: 1s;
}

.back-to-top a {
  text-decoration: none;
  color: #222;
  font-size: 20px;
  opacity: 0;
  animation: backTopText 0.5s ease forwards;
  animation-delay: 2s;
}

@keyframes backTopLineScale {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes backTopText {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .about-section {
    padding: 20px;
  }

  .about-inner {
    flex-direction: column;
    margin-top: 100px;
    gap: 30px;
    padding: 40px 20px;
  }

  .about-profile .profile-image {
    width: 140px;
    height: 140px;
  }

  .about-info {
    width: 100%;
    padding: 20px;
  }

  .about-title {
    font-size: 24px;
    text-align: center;
  }

  .about-title::after {
    margin: 6px auto 0; /* 中央に線 */
  }

  .about-description p {
    font-size: 14px;
    line-height: 1.6;
  }

  .skills {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-category h4 {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    border-right: solid 4px #a89f96; 
  }

  .skill-category ul li {
    font-size: 13px;
    text-align: center;
  }

  
}
