* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}
html {
  font-size: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  position: relative;
  color: white;
  z-index: 1;
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(86, 84, 84, 0.4),
      rgba(86, 84, 84, 0.4)
    ),
    url("img/hatti-back.PNG");
  background-size: cover; /* 画像を画面いっぱいに広げる */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  object-fit: cover;

  z-index: -1;
}

/*共通css*/
h1 {
  font-size: 2rem;
  text-align: center;
  margin: 50px 0;
}
p {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.8;
  margin: 40px 0;
}
.trip2-p {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.8;
  margin: 40px 0;
}
/*ボタン*/
.button {
  display: inline-block;
  position: relative;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid #d7cc50;
  cursor: pointer;
  padding: 15px 40px;
  margin-bottom: 30px;
  border-radius: 20px;
  transition: transform 0.4s; /* 拡大アニメーション用のトランジション */
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #d7cc50;
  background-color: #d7cc50;
  z-index: -1;
  border-radius: 20px;
  transition: transform 0.4s;
  transform: scaleX(0);
  transform-origin: center;
}

.button:hover::before {
  transform: scaleX(1);
}

.button:hover {
  font-weight: 600;
  color: white;
  transform: scale(1.1);
}
#trip3 {
  text-align: center;
}
/*スライドショー*/

.slideshow-container {
  width: 100%;
  height: 500px;
  margin: 80px 0;
  overflow: hidden;
  position: relative;
  z-index: -1;
}

.slide {
  width: 100%;
  position: absolute;
  transition: opacity 1.5s ease-in-out;
}
.slide img {
  object-fit: cover;
  background-size: cover;
  height: 500px;
}
.fade {
  animation: fadeEffect 2s ease-in-out;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
/*各section、画像の大きさ*/
#profile,
#trip,
#trip2,
#trip3 {
  width: 90%;
  margin: 20px auto;
}

.trip-img img,
.trip2-img img,
.trip3-img img {
  width: 100%;
  margin: 15px 0;

  border-radius: 15px;
}
.profile-item {
  width: 80%;
  margin: 0 auto;
}
.profile-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
}
/*section-profile詳細*/
.career {
  margin-bottom: 80px;
}

/*section-profile-SNS情報*/
.sns-instagram {
  width: 300px;
  margin: 0 auto;
  font-size: 25px;
  font-weight: bold;
  height: 70px;
  border: none;
  border-radius: 100px;
  background-image: linear-gradient(to right, #ed6ea0 0%, #e38461 100%);
  box-shadow: 0 5px rgb(156, 7, 69);
  display: flex;
  justify-content: center;
  align-items: center;
}
.instagram:before {
  content: "\f16d";
}
.sns-instagram a {
  gap: 10px;
  color: white;
}
.sns-instagram:hover {
  transform: scaleX(1.1);
  transition: transform 0.3s ease-in-out;
}

/*レスポンシブデザイン*/
@media (min-width: 344px) and (max-width: 480px) {
  .profile-item img {
    height: 350px;
  }
  .slideshow-container {
    height: 350px;
    margin: 40px 0;
  }
  .trip-img img,
  .trip2-img img,
  .trip3-img img {
    height: 420px;
  }
  h1 {
    font-size: 1.5rem;
    margin: 40px 0;
  }
  .career {
    margin-bottom: 40px;
  }
  p {
    font-size: 0.9rem;

    line-height: 1.7;
    margin: 30px 0;
  }
  .trip2-p {
    font-size: 0.8rem;

    line-height: 1.7;
    margin: 30px 0;
  }
}
@media (min-width: 481px) and (max-width: 820px) {
}
@media (min-width: 821px) and (max-width: 2500px) {
  #profile p,
  #trip p,
  .trip2-p,
  #trip3 p {
    font-size: 1.7rem;
    line-height: 2;
    letter-spacing: 2px;
  }
  .profile-item img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 15px;
  }
  .trip2-item {
    display: flex;
    justify-content: center;
  }
  .trip2-img {
    width: 42%;
  }
  .trip2-img img {
    width: 100%;
    height: 500px;
  }
  .trip2-p {
    width: 46%;
    display: flex;
    align-items: center;
    padding: 0 50px;
  }

  .trip-img,
  .trip3-img {
    display: flex;
    width: 30%;
  }
  .trip-img img,
  .trip3-img img {
    margin: 0 15px;
  }
  .slide img {
    height: 650px;
  }
}
