body {
  margin: 0;
}

.site-logo {
  margin-bottom: 30px;
}
.site-logo img {
  width: 160px;
  height: auto;
}

.coating-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.coating-nav {
  width: 20%;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 40px;
  color: white;
  z-index: 2;
}

.coating-nav ul {
  list-style: none;
  padding-left: 0;
  position: relative;
  margin-left: 10px;
}

.coating-nav ul::before {
  content: "";
  position: absolute;
  top: calc(10px + 7.5px); /* 最初の点の中心に合わせる */
  bottom: calc(10px + 7.5px); /* 最後の点の中心に合わせる */
  left: 4.5px;
  width: 0;
  border-left: 1.5px dashed rgba(255, 255, 255, 0.7);
  z-index: 0;
  transition: opacity 0.3s;
}

.coating-nav ul li {
  position: relative;
  padding-left: 20px;
  color: #fff;
  margin-bottom: 15px; /* 点間を少し広く */
  cursor: pointer;
  z-index: 1;
}

.coating-nav ul li.active {
  opacity: 1;
}

.coating-nav ul li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%); /* 中央揃え */
  width: 10px;
  height: 10px;
  background-color: #fff;
  box-sizing: content-box;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.coating-nav ul li.active::before {
  background-color: #0FFDCD;
}


/* 最後の点だけ線を描かない */
.coating-nav ul li:last-child::after {
  display: none;
}

.coating-sections {
  width: 80%;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

.coating-section {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coating-image-wrapper {
  position: relative;
  height: 85vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.coating-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coating-text {
  position: absolute;
  top: 12%;
  left: 8%;
  color: white;
  max-width: 42%;
  z-index: 2;
}

.coating-text h2 {
  font-size: 38px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  font-weight: bold;
}

.coating-text p {
  font-size: 18px;
  line-height: 1.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-indicator img {
  width: 100%;
  height: auto;
  animation: moveAndFade 2s ease-in-out infinite;
}

@keyframes moveAndFade {
  0% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.5; }
}

/* PC用セクションをSPで非表示 */
@media screen and (max-width: 768px) {
  .coating-sections.pc {
    display: none;
  }

  .coating-sections.sp {
    display: block;
  }
}

/* 通常（PC）ではSP用を非表示 */
@media screen and (min-width: 769px) {
  .coating-sections.sp {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  body {
  margin: 0;
  overflow-y: auto;
  position: static!important;
}

.sp-fv {
    padding: 0 0 40px 0!important;
    text-align: left;
    background-color: transparent !important;
    margin: 0!important;
  }

  .coating-fv-area {
    color: #fff;
    position: relative;
  }
  .coating-fv-area img {
    width: 100%;
    filter: brightness(70%);
  }
  .coating-fv-title {
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .coating-fv-title h2 {
    font-size: 30px;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 0px;
  }

  .coating-fv-title p {
    font-size: 18px;
    margin: 0;
  }
  .coating-fv-desc {
    padding: 20px 30px;
  }
  .coating-fv-desc p {
    font-size: 15px;
    color: #fff;
  }

  .coating-sections.sp {
    padding-top: 80px;
    padding-bottom: 80px;

  }
  .coating-wrapper {
    display: block;
    height: auto; /* 高さ制限を解除 */
    overflow: visible;
  }

  .coating-nav {
    display: none; /* ナビ非表示 */
  }

  .coating-sections.sp {
    width: 100%;
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none; /* ワンスクロールを無効化 */
  }

  .coating-sections.sp .coating-section {
    height: auto; /* 高さ制限を解除 */
    scroll-snap-align: none; /* スナップ無効化 */
    padding: 0;
    margin: 0 30px 80px 30px;
    background-color: #272727;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .coating-area {
    padding: 10px 20px 30px 20px;
  }

  .coating-image-wrapper {
    height: auto;
  }

  .coating-desc p {
    color: #fff;
    margin-top: 25px;
    line-height: 1.6;
    font-size: 16px;
  }

  .coating-title h2 {
    color: #fff;
    font-size: 20px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 25px;
  }
}