html {
  scroll-behavior: smooth;
}

body {
  transition: all 0.5s ease;
}

body {
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-size: 18px;
  font-style: normal;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 300px;
  background-color: #dcdcdc;
  position: relative;
  overflow: visible;
  margin-top: 150px;
  width: 100%;
}

header .text {
  flex: 1;
  z-index: 10;
  margin-left: auto;
  max-width: fit-content;
}

header .text h1 {
  font-size: 3.5rem;
  margin: 0;
  letter-spacing: 2px;
}

header .name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
}


main {
  max-width: 1000px;
  margin: 200px auto;
}

section {
  width: 100%;
  margin: 100px auto;
}

h2 {
  text-align: center;
  font-size: 3rem;
}

h2 span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  font-weight: normal;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.profile-icon img {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-text {
  text-align: justify;
}

.skill {
  background: #666;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  margin-top: 50px;
}

.skill h3 {
  background: #fff;
  margin: 0;
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 20px;
  margin: 0;
  gap: 15px;
}

.skill-list li {
  color: #4ef0c5;
}

.skill-list li::before {
  content: "・";
}

ul.portfolio {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.item {
  width: 33%;
  height: auto;
  overflow: hidden;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.item:hover img {
  transform: scale(1.1);
}

.portfolio2 {
  display: flex;
  width: 100%;
  overflow: hidden;
  height: 300px;
}

.image_box {
  flex: 1;
  overflow: hidden;
  line-height: 0;
}

.image_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image_box:hover img {
  transform: scale(1.1);
}

.portfolio2 .skill {
  flex: 1;
  background-color: #555;
  display: flex;
  flex-direction: column;
  color: #fff;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  position: relative;
}

.portfolio2 h3 {
  text-align: center;
  margin: 30px 0;
  letter-spacing: 2px;
  background-color: unset;
}

.portfolio2 .skill-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #7efad1;
}

.btn_box {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 100%;
  margin: 0;
}

.btn {
  font-weight: bold;
  letter-spacing: .1em;
  text-align: center;
  line-height: 70px;
  height: 70px;
  background: #FFF;
  margin: auto;
  background-color: #dcdcdc;
  position: relative;
  display: block;
  overflow: hidden;
  transition: 0.5s;
  text-decoration: none;
  color: #666;
}

.btn:hover {
  color: #4ef0c5;
  background-color: #333;
}

.btn .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #000;
}

.btn .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  right: 60px;
  width: 40px;
  height: 4px;
  background: none;
  position: absolute;
  top: 0%;
  transform: translateY(0%);
}


.btn .icon.arrow::before {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  right: 0;
  width: 15px;
  height: 15px;
  border-top: 4px solid #666;
  border-right: 4px solid #666;
}

.btn:hover .icon.arrow::before {
  color: #4ef0c5;
  border-top: 4px solid #4ef0c5;
  border-right: 4px solid #4ef0c5;
}


.btn:hover .icon.arrow {
  transform: translate(10px, 0%);
}

footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 0.8rem;
  background-color: #333;
}

@media (max-width: 100px) {
  .profile-content {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    height: auto;
  }

}