@import url('https://fonts.googleapis.com/css2?family=Rounded+Mplus+1c:wght@400;700&display=swap');

body {
  font-family: heisei-maru-gothic-std, sans-serif;
  font-weight: bold;
  font-style: normal;
  background-color: #E7EEBE;
}

.contact-header {
  position: sticky;
  top: 0px;
  background-color: #E7EEBE;
  width: 100%;
  transform: translate3d(0, 0, 0);
  z-index: 10000;
}

.contact-header__logoImg {
  width: 60px;
  margin: 0 auto;
}

.contact-header__text {
  padding: 30px;
}

.contact-header__textMain {
  color: #e6e6e6;
  text-align: center;
  font-size: 20px;
  font-family: 游明朝;
  letter-spacing: 10px;
}

.contact-header__mainImg {
  width: 90%;
  height: auto;
  margin: auto;
}

.title-wrapper {
  transform: translateY(20px);
  opacity: 0;
}

.title-wrapper.animate {
  animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title_dogrun,
.title_doglaundry,
.title_cafe {
  position: relative;
  max-width: 90%;
  width: 300px;
  margin: 10vh auto 10vh;
  padding: 0.5em 0.7em;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

.title_dogrun {
  background-color: #86e68c;
}

.title_dogrun::before,
.title_dogrun::after {
  border-color: #68bb6d;
}

.title_dogrun span::before,
.title_dogrun span::after {
  background-color: #005306;
}

.title_doglaundry {
  background-color: #6bc5e9;
}

.title_doglaundry::before,
.title_doglaundry::after {
  border-color: #59a4c2;
}

.title_doglaundry span::before,
.title_doglaundry span::after {
  background-color: #002970;
}

.title_cafe {
  background-color: #c7a179;
}

.title_cafe::before,
.title_cafe::after {
  border-color: #a0845f;
}

.title_cafe span::before,
.title_cafe span::after {
  background-color: #794000;
}

.title_dogrun::before,
.title_dogrun::after,
.title_doglaundry::before,
.title_doglaundry::after,
.title_cafe::before,
.title_cafe::after {
  position: absolute;
  bottom: -10px;
  z-index: -1;
  border-style: solid;
  content: '';
}

.title_dogrun::before,
.title_doglaundry::before,
.title_cafe::before {
  left: -30px;
  border-width: 25px 25px 25px 15px;
  border-left-color: transparent;
}

.title_dogrun::after,
.title_doglaundry::after,
.title_cafe::after {
  right: -30px;
  border-width: 25px 15px 25px 25px;
  border-right-color: transparent;
}

.title_dogrun span::before,
.title_dogrun span::after,
.title_doglaundry span::before,
.title_doglaundry span::after,
.title_cafe span::before,
.title_cafe span::after {
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  content: '';
}

.title_dogrun span::before,
.title_doglaundry span::before,
.title_cafe span::before {
  left: 0;
  clip-path: polygon(0 0, 100% 0%, 100% 100%);
}

.title_dogrun span::after,
.title_doglaundry span::after,
.title_cafe span::after {
  right: 0;
  clip-path: polygon(0 0, 100% 0%, 0% 100%);
}

.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 80px;
  max-height: 600px;
  overflow: hidden;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  min-height: 600px;
}

.carousel-item {
  background-color: #E7EEBE;
  border-radius: 20px;
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  opacity: 0.3;
  transform: scale(0.8);
  transition: all 0.3s ease;
  padding-bottom: clamp(30px, 4vw, 60px);
  padding: 12px;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1.02);
  margin-top: 20px;
  margin-bottom: 30px;
}

.carousel-item p {
  visibility: hidden;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item.active p {
  visibility: visible;
  opacity: 1;
}

.carousel-item img {
  padding: 12px;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  margin: 0 auto;
  object-fit:  cover;
  border-radius: 20px;
}

.lightbox-overlay {
  position: fixed;
  top: 5%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-width: 70vw;
  max-height: 80vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 12px;
  background-color: #fff;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -15px;
  right: -40px;
  font-size: 1.8rem;
  background: #fdfdfd00;
  color: #ffffffcb;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10000;
}

@media screen and (max-width: 1024px) {
  .title_dogrun {
    margin: 8vh auto 0;
  }

  .title_doglaundry {
    margin: 0 auto 5vh;
  }

  .title_cafe {
    margin: 9vh auto 5vh;
  }

  .carousel-wrapper {
    max-height: 550px;
    margin-bottom: 40px;
  }

  .carousel-item.active {
    margin-top: 0;
    margin-bottom: 30px;
  }

  .cafe-carousel {
    margin-bottom: 90px;
  }
}

@media screen and (max-width: 768px) {
  .carousel-wrapper {
    max-height: 400px;
    margin-bottom: 40px;
  }

  .cafe-carousel {
    margin-bottom: 90px;
  }
}

@media screen and (max-width: 600px) {
  .title_dogrun {
    font-size: 1rem;
    padding: 0.4em 0.5em;
    margin: 5vh auto 3vh;
    width: 200px;
  }

  .title_doglaundry,
  .title_cafe {
    font-size: 1rem;
    padding: 0.4em 0.5em;
    margin: 5vh auto 3vh;
    width: 200px;
  }

  .title_dogrun::before,
  .title_dogrun::after,
  .title_doglaundry::before,
  .title_doglaundry::after,
  .title_cafe::before,
  .title_cafe::after {
    position: absolute;
    bottom: -8px;
    z-index: -1;
    border-style: solid;
    content: '';
  }

  .title_dogrun::before,
  .title_doglaundry::before,
  .title_cafe::before {
    left: -25px;
    border-width: 18px 20px 18px 14px;
  }

  .title_dogrun::after,
  .title_doglaundry::after,
  .title_cafe::after {
    right: -25px;
    border-width: 18px 12px 18px 20px;
  }

  .title_dogrun span::before,
  .title_dogrun span::after,
  .title_doglaundry span::before,
  .title_doglaundry span::after,
  .title_cafe span::before,
  .title_cafe span::after {
    bottom: -8px;
    width: 8px;
    height: 8px;
  }

  .carousel-wrapper {
    margin-bottom: 0;
    max-height: 250px;
  }

  .carousel-item {
    padding: 0;
  }

  .carousel-item.active {
    margin-top: 1px;
    margin-bottom: 30px;
  }

  .cafe-carousel {
    margin-bottom: 50px;
  }
}

@media screen and (max-width: 540px) {
  .carousel-wrapper {
    margin-bottom: 0;
    max-height: 300px;
  }

  .cafe-carousel {
    margin-bottom: 50px;
  }
}


@media screen and (max-width: 480px) {
  .title_dogrun {
    font-size: 0.5rem;
    padding: 0.4em 0.5em;
    margin: 4vh auto 0;
    width: 80px;
  }

  .title_doglaundry {
    font-size: 0.5rem;
    padding: 0.4em 0.5em;
    margin: 2vh auto 3vh;
    width: 80px;
  }

  .title_cafe {
    font-size: 0.5rem;
    padding: 0.4em 0.5em;
    margin: 5vh auto 4vh;
    width: 80px;
  }

  .title_dogrun::before,
  .title_dogrun::after,
  .title_doglaundry::before,
  .title_doglaundry::after,
  .title_cafe::before,
  .title_cafe::after {
    position: absolute;
    bottom: -3px;
    z-index: -1;
    border-style: solid;
    content: '';
  }

  .title_dogrun::before,
  .title_doglaundry::before,
  .title_cafe::before {
    left: -13px;
    border-width: 9px 10px 8px 7px;
  }

  .title_dogrun::after,
  .title_doglaundry::after,
  .title_cafe::after {
    right: -13px;
    border-width: 9px 7px 8px 10px;
  }

  .title_dogrun span::before,
  .title_dogrun span::after,
  .title_doglaundry span::before,
  .title_doglaundry span::after,
  .title_cafe span::before,
  .title_cafe span::after {
    bottom: -3px;
    width: 3px;
    height: 3px;
  }

  .carousel-wrapper {
    max-height: 220px;
  }

  .cafe-carousel {
    margin-bottom: 40px;
  }

  .lightbox-overlay {
    top: 0;
  }
}


