.p-dogrun {
  background-color: #F3F3B4;
  padding-bottom: 10%;
}

.dogrun_imgBox {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10vh;
}

.dogrun_imgBox .fade-in-mask {
  width: 35%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: block;
  transform: translateY(20px);
  transition: transform 1.2s ease;
}


.fade-in-mask::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 2;
  transition: opacity 1.2s ease;
  opacity: 1;
  pointer-events: none;
}

.fade-in-mask.show {
  transform: translateY(0);
}

.fade-in-mask.show::after {
  opacity: 0;
}

.fade-in-mask img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 20px;
}

.p-dogrun_textBox {
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  padding: 2% 4% 2%;
  display: block;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 36vw;
  margin: -3vh auto 0;
  position: relative;
  z-index: 3;
}

.p-dogrun_textBox h2 span {
  display: inline-block;
  text-align: left;
  color: #707070;
  background: linear-gradient(transparent 60%, #FFFE03 60%);
}

.p-dogrun_textBox p {
  display: inline-block;
  text-align: left;
  color: #707070;
  margin-top: 2vh;
  line-height: 2em;
}

.more-btn-dogrun {
  display: inline-block;
  background: white;
  border: 2px solid #707070;
  color: #707070;
  padding: 6px 45px;
  border-radius: 25px;
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
}

.more-btn-dogrun:hover {
  background: #f0f0f0;
}


/* ---------- モバイル用スライダー ---------- */
.dogrun_slider {
  display: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  margin-top: 5vh;

}

.slider-track {
  display: flex;
  width: max-content;
}

.slider-track img {
  width: 80vw;
  max-width: 400px;
  height: auto;
  scroll-snap-align: center;
  border-radius: 20px;
  margin-right: 1rem;
}

/* ---------- メディアクエリ：スマホ表示切り替え ---------- */
@media (max-width: 1024px) {
  .p-dogrunBox {
    flex-direction: column;
    align-items: center;
  }

  .dogrun_imgBox {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 5vh;
  }

  .dogrun_imgBox img {
    width: 100%;
    max-width: 700px;
  }

  .p-dogrun_textBox {
    width: 80%;
    margin: 2rem auto 0;
    padding: 1.5rem;
  }

  .more-btn-dogrun {
    padding: 8px 40px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .p-dogrun {
    padding-bottom: 12%;
  }

  .p-dogrunBox {
    flex-direction: column;
    align-items: center;
  }

  .dogrun_imgBox {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 5vh;
  }

  .dogrun_imgBox img {
    width: 100%;
    max-width: 600px;
  }

  .p-dogrun_textBox {
    width: 90%;
    margin: 2rem auto 0;
    padding: 1.5rem;
  }

  .p-dogrun_textBox h2 span {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .p-dogrun_textBox p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .more-btn-dogrun {
    padding: 6px 30px;
    font-size: 13px;
  }

  .dogrun_slider {
    display: block;
  }
}


@media (max-width: 480px) {
  .p-dogrun {
    padding-bottom: 15%;
  }
}

@media (max-width: 360px) {
  .p-dogrun_textBox h2 span {
    font-size: 1.1rem;
    line-height: 1.4;
  }
}