*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,body {
  margin: 0;
  min-height: 550vh;   /* 追加：十分な高さを確保 */
}

html, body { scroll-behavior: smooth; } 

.head{
  width: 100%;
  height: 10vh;
  background-color: rgb(247, 245, 245);
}

h1{
  color: white;
  height: 10vh;
  /* background-color: rgb(42, 41, 41); */
  padding: 1.5vh 2vw;
}


/* topイメージ上にあるナビの設定 */
.grobal-nav{
  display:flex;
  justify-content:space-around;
  background-color:transparent;
  position: relative;
}

.nav-menu ul{
  display: flex;
  position: absolute;
  top: 70vh;
  left: 0;
  right: 0;
  justify-content: center;
}

.nav-menu  li{
  width:auto;
  list-style-type:none;
}

.nav-menu ul li a{
  display:block;
  width:120px;
  text-align: center;
  color: rgb(222, 213, 213);
  font-size: 25px;
  text-align: center;
  margin: 0 2vw;
}

a{
  text-decoration: none;
  color: black;
}

.nav-menu ul li a::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: white;
  bottom: 0px;
  left: 0;
  transform: scale(0, 1);
  transition: .2s;
}

nav ul li a:hover {
  color: white;
}

nav ul li a:hover::after {
  transform: scale(1, 1);
}

/* topイメージ上にあるナビの設定 ここまで*/

/* topイメージの設定 */
.top-imgs{
  position:relative;
  height:auto;
  width: 100%;
  filter: brightness(50%);
  z-index: -1;
}

.item1{
  position:absolute;
  top:0;
  left:0;
  height:600px;
  width:100%;
  opacity:0;
  animation:fadePic;
  animation-duration:10s;
  animation-iteration-count:infinite;
  animation-timing-function:ease;
}

@keyframes fadePic{
  0%{
    opacity:0;
  }
  50%{
    opacity:1;
  }
  100%{
    opacity:0;
  }
}

.item1:nth-of-type(1) {
  animation-delay: 0s;
}
.item1:nth-of-type(2) {
  animation-delay: 5s;
}

/* topイメージの設定ここまで */

#service{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 92vh;
  color: black;
  text-align: center;
  background: linear-gradient(0deg, transparent 40%,rgb(241, 238, 238)50% );
}


.head2{
  width: 100%;
  height: 10%;
}

#slide-message {
  display: none;

  /* 起点の指定 */
  position:absolute;
  left:50%; 
  /* 起点の指定終了 */
  animation: animations ease 3s forwards;
  padding-top:15px;
}

@keyframes animations{
  0%{
    opacity:0;
    transform:translateX(-1000px);
  }
  30%{
    opacity:0.2;
  }
  70%{
    opacity:0.5;
    transform:translateX(-50%);
  }
  100%{
    opacity:1;
    transform:translateX(-50%);
  }
  /* フェードインが止まってからさらにオパシティーが解けていくアニメ。
  transformを2箇所同じ数値指定しないと100%になった時また右に行く */
}

#others{
  position: absolute;
  top: 250vh;
  width: 100%;
  height: 100vh;
  /* background-color: aqua; */
}

#slide-message2 {
  display:none;

  /* 起点の指定 */
  position:absolute;
  left:50%; 
  /* 起点の指定終了 */
  animation: animations ease 3s forwards;
  padding-top:15px;
}

#slide-message3 {
  display:none;

  /* 起点の指定 */
  position:absolute;
  left:50%; 
  /* 起点の指定終了 */
  animation: animations ease 3s forwards;
  padding-top:15px;
}




body {
    margin: 0;
}


.sec, .sec7{
  height: 50px;
}

.sec2, 
.sec3,
.sec4 {
    height: 50vh;
    display: flex;
    align-items: flex-end;
}

.sec2, .sec3, .sec6 {
    justify-content: flex-start;
}

.sec3, .sec5 {
    /* justify-content: flex-end; */
}

img {
    width: 45vw;
    height: 45vh;
}

.sec__img {
    opacity: 0;
    transform: translate(-50px, 0px);
    transition: all 1s ease-in-out;
}

.sec__img2 {
    opacity: 0;
    transform: translate(50px, 0px);
    transition: all 1s ease-in-out;
}

/* アニメーション後のスタイル */
.sec__img.fadeIn {
    opacity: 1;
    transform: translate(0px, 0px);
}

.sec__img2.fadeIn {
    opacity: 1;
    transform: translate(0px, 0px);
}

.box{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: center;
  width: 100%;
}

.box2{
  display: flex;
  align-items: flex-end;
  flex-direction: row-reverse;
  overflow-x: hidden;
  justify-content: space-between;
}

.box3{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: center;
  width: 100%;
}

.aaa{
  height: 45vh;
  width: 100%;
}

h3{
  display: inline-block;
  border-bottom: 2px solid black;
  width: fit-content;
  margin-top: 10vh;
  margin-bottom: 10vh;
}

.ooo{
  border-bottom: none;
}

#others{
  width: 100%;
}

.ccc{
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 2vh;
  background: linear-gradient(0deg, transparent 0%,rgb(241, 238, 238)50% );
}

.image{
  width: 45%;
}

.images{
  width: 100%;
  height: auto;
}

.message{
  width: 55%;
  text-align: center;
}

#contact{
  position: absolute;
  width: 100%;
  height: 200%;
  top: 328vh;
  color: black;
  text-align: center;
  background: linear-gradient(0deg, transparent 40%,rgb(241, 238, 238)50% );
  /* 追加するプロパティ */
  z-index: 10;
  pointer-events: auto;
}