@media screen and (max-width: 767px) {
  .lg-visible {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .md-visible {
    display: none;
  }
}

.daikukan {
  overflow: hidden;
  font-size: clamp(1.4rem, 1.3090909091rem + 0.2424242424vw, 1.6rem);
}

.daikukan-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 50px;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .daikukan-container {
    padding-inline: 1.5rem;
  }
}

.daikukan-section {
  padding-block: clamp(3rem, 1.6363636364rem + 3.6363636364vw, 6rem);
}
.daikukan-section__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 1.6363636364rem + 3.6363636364vw, 6rem);
}
.daikukan-section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 600;
  font-size: clamp(3rem, 1.6363636364rem + 3.6363636364vw, 6rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
  gap: clamp(1.5rem, 0.8181818182rem + 1.8181818182vw, 3rem);
}
.daikukan-section__title::after {
  display: inline-block;
  width: clamp(7.5rem, 4.0909090909rem + 9.0909090909vw, 15rem);
  height: clamp(0.3rem, 0.2090909091rem + 0.2424242424vw, 0.5rem);
  background-color: #f7931e;
  content: "";
}

.daikukan-mv {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(3rem, 1.6363636364rem + 3.6363636364vw, 6rem);
  gap: clamp(3rem, 1.6363636364rem + 3.6363636364vw, 6rem);
}
.daikukan-mv img {
  width: 100%;
}
.daikukan-mv__lead {
  font-weight: 600;
  font-size: clamp(2rem, 1.5454545455rem + 1.2121212121vw, 3rem);
  text-align: center;
}

.daikukan-copy {
  color: #8c6239;
  font-weight: 600;
  font-size: clamp(2rem, 1.5454545455rem + 1.2121212121vw, 3rem);
  text-align: center;
}
@media screen and (max-width: 767px) {
  .daikukan-copy {
    line-height: 1.5;
  }
}
@media screen and (max-width: 767px) {
  .daikukan-copy + .daikukan-copy {
    margin-top: 1em;
  }
}

.before-after {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 0.8181818182rem + 1.8181818182vw, 3rem);
}
@media screen and (max-width: 767px) {
  .before-after {
    margin-inline: -1.5rem;
  }
}
.before-after__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1rem, 0.5454545455rem + 1.2121212121vw, 2rem);
}

.before-after-slider-wrap {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: clamp(0.5rem, 0.2727272727rem + 0.6060606061vw, 1rem);
}

.before-after-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.before-after-slider__before {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: 0.3s;
}
.before-after-slider__before img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.before-after-slider__after {
  overflow: hidden;
  transition: 0.3s;
}
.before-after-slider .before-after-tag {
  position: absolute;
  top: clamp(2.5rem, 1.3636363636rem + 3.0303030303vw, 5rem);
}
.before-after-slider .before-after-tag--before {
  left: 0;
}
.before-after-slider .before-after-tag--after {
  right: 0;
}
.before-after-slider__range {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: col-resize;
}

.before-after-tag {
  display: grid;
  width: clamp(7.5rem, 4.0909090909rem + 9.0909090909vw, 15rem);
  aspect-ratio: 150/50;
  background-color: #000;
  color: #fff;
  font-size: clamp(1.6rem, 1.1454545455rem + 1.2121212121vw, 2.6rem);
  place-items: center;
}
.before-after-tag--after {
  background-color: #c1272d;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin-top: -20px;
  margin-left: -20px;
  border: 3px solid #fff;
  border-radius: 1000px;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
  transition: 0.3s;
}
@media screen and (min-width: 768px) {
  .before-after-handle {
    width: 60px;
    height: 60px;
    margin-left: -30px;
  }
}
.before-after-handle::before, .before-after-handle::after {
  display: block;
  position: absolute;
  left: 50%;
  width: 3px;
  height: 9999px;
  margin-left: -1.5px;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
  background: white;
  content: " ";
}
.before-after-handle::before {
  bottom: 50%;
  margin-bottom: 22px;
  box-shadow: 0 3px 0 white, 0 0 12px rgba(51, 51, 51, 0.5);
}
@media screen and (min-width: 768px) {
  .before-after-handle::before {
    margin-bottom: 30px;
  }
}
.before-after-handle::after {
  top: 50%;
  margin-top: 22px;
  box-shadow: 0 -3px 0 white, 0 0 12px rgba(51, 51, 51, 0.5);
}
@media screen and (min-width: 768px) {
  .before-after-handle::after {
    margin-top: 30px;
  }
}
.before-after-handle__left-arrow, .before-after-handle__right-arrow {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border: 6px inset transparent;
}
@media screen and (min-width: 768px) {
  .before-after-handle__left-arrow, .before-after-handle__right-arrow {
    margin-top: -10px;
    border: 10px inset transparent;
  }
}
.before-after-handle__left-arrow {
  left: 50%;
  margin-left: -17px;
  border-right: 6px solid white;
}
@media screen and (min-width: 768px) {
  .before-after-handle__left-arrow {
    margin-left: -27px;
    border-right: 10px solid white;
  }
}
.before-after-handle__right-arrow {
  right: 50%;
  margin-right: -17px;
  border-left: 6px solid white;
}
@media screen and (min-width: 768px) {
  .before-after-handle__right-arrow {
    margin-right: -27px;
    border-left: 10px solid white;
  }
}

.before-after-layout {
  display: flex;
  justify-content: center;
  position: relative;
  padding-block: clamp(3rem, 1.6363636364rem + 3.6363636364vw, 6rem);
  gap: clamp(2rem, -1.6363636364rem + 9.696969697vw, 10rem);
}
.before-after-layout__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 0.8181818182rem + 1.8181818182vw, 3rem);
}
.before-after-layout__col figcaption {
  margin-top: 1em;
  font-size: clamp(1.6rem, 1.4181818182rem + 0.4848484848vw, 2rem);
  line-height: 1.5;
}
.before-after-layout::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin-inline: calc(50% - 50vw);
  background-color: #e6e6e6;
  content: "";
}

.daikukan-garage-pics {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 0.6363636364rem + 3.6363636364vw, 5rem);
}
@media screen and (max-width: 767px) {
  .daikukan-garage-pics {
    flex-direction: column;
    max-width: 80%;
  }
}
@media screen and (max-width: 767px) {
  .daikukan-garage-pics--wide {
    max-width: 100%;
  }
}
.daikukan-garage-pics--wide img {
  width: 100%;
}
.daikukan-garage-pics__title {
  margin-bottom: 1em;
  padding: 5px;
  background-color: #ccc;
  font-size: clamp(1.6rem, 1.4181818182rem + 0.4848484848vw, 2rem);
  text-align: center;
}

.daikukan-plan-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}
.daikukan-plan-lead__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.daikukan-plan-lead .daikukan-copy {
  font-size: clamp(3rem, 2.5454545455rem + 1.2121212121vw, 4rem);
}
.daikukan-plan-lead__area {
  font-size: clamp(1.8rem, 1.5272727273rem + 0.7272727273vw, 2.4rem);
}
.daikukan-plan-lead__cont {
  font-weight: 600;
  font-size: clamp(1.8rem, 1.4363636364rem + 0.9696969697vw, 2.6rem);
}

@media screen and (max-width: 767px) {
  .daikukan-plan-slider-wrap {
    margin-inline: -1.5rem;
  }
}

.daikukan-plan-slider {
  position: relative;
  overflow: hidden;
}
.daikukan-plan-slider .swiper-button-prev, .daikukan-plan-slider .swiper-button-next {
  background-color: #555;
}
@media screen and (min-width: 768px) {
  .daikukan-plan-slider .swiper-button-prev, .daikukan-plan-slider .swiper-button-next {
    display: none;
  }
}
.daikukan-plan-slider .swiper-button-prev::after, .daikukan-plan-slider .swiper-button-next::after {
  color: #fff;
  font-size: 15px;
}
.daikukan-plan-slider .swiper-button-prev {
  left: 0;
}
.daikukan-plan-slider .swiper-button-next {
  right: 0;
}
.daikukan-plan-slider .swiper-slide-prev, .daikukan-plan-slider .swiper-slide-next {
  opacity: 0.5;
}
@media screen and (min-width: 768px) {
  .daikukan-plan-slider .swiper-wrapper {
    display: grid;
    gap: clamp(1.5rem, -1.1666666667rem + 3.4722222222vw, 3rem);
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 767px) {
  .daikukan-plan-slider .swiper-slide {
    font-size: 12px;
    line-height: 1.5;
  }
}
.daikukan-plan-slider .swiper-slide img {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .daikukan-plan-slider .swiper-slide:last-child {
    grid-column: span 2;
  }
  .daikukan-plan-slider .swiper-slide:last-child > div {
    max-width: 800px;
    margin-inline: auto;
  }
}

.daikukan-shutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 0.8181818182rem + 1.8181818182vw, 3rem);
}
.daikukan-shutter__title {
  font-weight: 500;
  font-size: clamp(1.6rem, 1.1454545455rem + 1.2121212121vw, 2.6rem);
}
.daikukan-shutter__pics {
  display: flex;
  gap: 10px;
}
@media screen and (max-width: 767px) {
  .daikukan-shutter__pics {
    flex-wrap: wrap;
  }
  .daikukan-shutter__pics > * {
    width: calc(50% - 5px);
  }
}

.daikukan-footer-note {
  width: fit-content;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #ccc;
}