@charset "UTF-8";
.infinite-scroll {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.infinite-scroll__container {
  display: flex;
  gap: 24px;
  padding-right: 20px;
  flex-shrink: 0;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .infinite-scroll__container {
    gap: 0.8rem;
    padding-right: 0.8rem;
  }
}

.infinite-scroll__img-wrap {
  flex-shrink: 0;
  width: 380px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .infinite-scroll__img-wrap {
    width: 23.5rem;
  }
}

@keyframes loop {
  0% {
    transform: translate(100%);
  }

  to {
    transform: translate(-100%);
  }
}

@keyframes loop2 {
  0% {
    transform: translate(0);
  }

  to {
    transform: translate(-200%);
  }
}

.infinite-scroll__container:first-child {
  animation: loop 80s -40s linear infinite;
}

.infinite-scroll__container:last-child {
  animation: loop2 80s linear infinite;
}

.swiper-container5 {
  width: 100%;
  height: auto;
  padding: 0 0 40px;
  margin: 12px auto 0;
  position: relative;
}

@media screen and (max-width: 768px) {
  .swiper-container5 {
    margin-top: 1.8rem;
  }
}

.swiper5 {
  overflow: visible;
}

.swiper-pagination5 .swiper-pagination-bullet {
  height: 16px;
  width: 16px;
  background-color: #fff;
  border: 1px solid #707070;
  opacity: 1;
  transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.swiper-pagination5 .swiper-pagination-bullet-active {
  background: #000;
}

.modal-overlay-work {
  color: #000;
  align-items: center;
  background: #000000c7;
  display: flex;
  justify-content: center;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.modal-container-work {
  background-color: #fff;
  max-height: 100%;
  max-width: 100%;
  overflow-y: auto;
  padding: 30px;
  width: 80%;
  max-width: 700px;
}

@media screen and (max-width: 768px) {
  .modal-container-work {
    padding-right: 1rem;
    padding-left: 1rem;
    max-width: 400px;
  }
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #b1221a;
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 0 0 0 20px;
  display: flex;
  align-items: center;
}

.modal-header .modal-close:before {
  content: "✕";
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-left: 24px;
}

.modal-content__number {
  font-size: clamp(1.5rem, 1.875vw, 2.25rem);
}

.modal-content__category-work {
  margin-top: 18px;
}

.modal-content__category-example {
  font-size: clamp(0.875rem, 1.0938vw, 1.3125rem);
  color: #989898;
}

.modal-content-work {
  line-height: 1.5;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .modal-content-work {
    margin-bottom: 1.5rem;
  }
}

.modal-content__img-work {
  max-height: 480px;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .modal-content__img-work {
    max-height: 300px;
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal-overlay-work {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal-container-work {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-overlay-work {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-container-work {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal-container-work,
.micromodal-slide .modal-overlay-work {
  will-change: transform;
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 768px) {
}

.modal-content__description-work p {
  font-size: clamp(0.9375rem, 1.1719vw, 1.4062rem);
  line-height: 2;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .modal-content__description-work p {
    font-size: clamp(0.875rem, 1.0938vw, 1.3125rem);
  }
}

.modal-content__category-work {
  margin-top: 12px;
}

@media screen and (max-width: 768px) {
  .modal-content__category-work {
    margin-top: 0.8rem;
  }
}

.modal-content__img-wrap-work {
  margin-top: 50px;
}

@media screen and (max-width: 768px) {
  .modal-content__img-wrap-work {
    margin-top: 1.6rem;
  }
}

.modal-content__body-work {
  margin-top: 50px;
  padding-bottom: 50px;
}

.modal-content__body-work:not(:last-child) {
  border-bottom: 1px solid #dedede;
}

@media screen and (max-width: 768px) {
  .modal-content__body-work {
    margin-top: 1.6rem;
    padding-bottom: 1.6rem;
  }
}

.modal-content__body-title-work {
  font-size: clamp(1.25rem, 1.5625vw, 1.875rem);
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .modal-content__body-title-work {
    font-size: clamp(0.75rem, 0.9375vw, 1.125rem);
  }
}

.modal-content__body-title-work:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #b1221a;
  border-radius: 50%;
  margin-right: 12px;
  margin-bottom: 3px;
}

@media screen and (max-width: 768px) {
  .modal-content__body-title-work:before {
    width: 0.7rem;
    height: 0.7rem;
    margin-bottom: 0.15rem;
  }
}

.modal-content__body-text-work {
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
  .modal-content__body-text-work {
    margin-top: 1.6rem;
  }
}

.modal-overlay-voice {
  color: #000;
  align-items: center;
  background: #000000c7;
  display: flex;
  justify-content: center;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.modal-content__title {
  font-size: clamp(1.5rem, 1.875vw, 2.25rem);
}

.modal-container-voice {
  background-color: #fff;
  max-height: 100%;
  max-width: 100%;
  overflow-y: auto;
  padding: 30px;
  width: 80%;
  max-width: 700px;
}

@media screen and (max-width: 768px) {
  .modal-container-voice {
    padding-right: 1rem;
    padding-left: 1rem;
    max-width: 400px;
  }
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #b1221a;
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 0 0 0 20px;
  display: flex;
  align-items: center;
}

.modal-header .modal-close:before {
  content: "✕";
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin-left: 24px;
}

.modal-content__number {
  font-size: clamp(1.5rem, 1.875vw, 2.25rem);
}

.modal-content__category-example {
  font-size: clamp(0.875rem, 1.0938vw, 1.3125rem);
  color: #989898;
}

.modal-content-voice {
  line-height: 1.5;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .modal-content-voice {
    margin-bottom: 1.5rem;
  }
}

.modal-content__img-voice {
  max-height: 480px;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  .modal-content__img-voice {
    max-height: 300px;
  }
}

@keyframes mmfadeIn {
  0% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  0% {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  0% {
    transform: translateY(15%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  0% {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal-overlay-voice {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal-container-voice {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-overlay-voice {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-container-voice {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal-container-voice,
.micromodal-slide .modal-overlay-voice {
  will-change: transform;
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 768px) {
}

.modal-content__description-voice p {
  font-size: clamp(0.9375rem, 1.1719vw, 1.4062rem);
  line-height: 2;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .modal-content__description-voice p {
    font-size: clamp(0.875rem, 1.0938vw, 1.3125rem);
  }
}

@media screen and (max-width: 768px) {
}

.modal-content__img-wrap-voice {
  margin-top: 50px;
}

@media screen and (max-width: 768px) {
  .modal-content__img-wrap-voice {
    margin-top: 1.6rem;
  }
}

.modal-content__body-voice {
  margin-top: 50px;
  padding-bottom: 50px;
}

.modal-content__body-voice:not(:last-child) {
  border-bottom: 1px solid #dedede;
}

@media screen and (max-width: 768px) {
  .modal-content__body-voice {
    margin-top: 1.6rem;
    padding-bottom: 1.6rem;
  }
}

.modal-content__body-title-voice {
  font-size: clamp(1.25rem, 1.5625vw, 1.875rem);
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .modal-content__body-title-voice {
    font-size: clamp(0.75rem, 0.9375vw, 1.125rem);
  }
}

.modal-content__body-title-voice:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #b1221a;
  border-radius: 50%;
  margin-right: 12px;
  margin-bottom: 3px;
}

@media screen and (max-width: 768px) {
  .modal-content__body-title-voice:before {
    width: 0.7rem;
    height: 0.7rem;
    margin-bottom: 0.15rem;
  }
}

.modal-content__body-text-voice {
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
  .modal-content__body-text-voice {
    margin-top: 1.6rem;
  }
}

.contact-form {
  width: 550px;
  margin: 0 auto;
  background-color: #fff;
  padding: 48px;
  background-color: #f5f7f7;
  border-radius: 12px;
}

@media screen and (max-width: 768px) {
  .contact-form {
    width: 100%;
    padding: 2.8rem 2rem;
  }
}

label {
  display: flex;
  align-items: center;
}

.required {
  color: #fff;
  font-size: clamp(0.75rem, 0.9375vw, 1.125rem);
  margin-left: 8px;
  background-color: #b1221a;
  padding: 2px 8px;
  line-height: 1.2;
}

.no-required {
  color: #fff;
  font-size: clamp(0.75rem, 0.9375vw, 1.125rem);
  margin-left: 8px;
  background-color: #989898;
  border-radius: 2px;
  padding: 3px 8px;
  line-height: 1.2;
  font-weight: 700;
}

.input-box input[type="text"],
.input-box input[type="email"],
.input-box input[type="tel"],
.input-box textarea {
  margin-top: 4px;
  background-color: #fff;
  border-radius: 3px;
  color: #333;
  padding: 0.5em 0.8em;
  width: 100%;
  line-height: 1.5;
  height: 54px;
}

@media screen and (max-width: 768px) {
  .input-box input[type="text"],
  .input-box input[type="email"],
  .input-box input[type="tel"],
  .input-box textarea {
    width: 100%;
    font-size: clamp(1rem, 1.25vw, 1.5rem);
  }
}

.input-box textarea {
  height: 180px;
  resize: vertical;
}

.input-box:not(:first-child) {
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  .input-box:not(:first-child) {
    margin-top: 2.7rem;
  }
}

.btn-wrap {
  text-align: center;
  margin: 48px auto 0;
  display: flex;
  width: fit-content;
}

.btn {
  width: 202px;
  height: 64px;
  border-radius: 99px;
  background-color: #b1221a;
  color: #fff;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
  border: 1px solid #b1221a;
  transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: background-color, color;
  position: relative;
}

.btn:hover:after {
  transform: translate(4px, -50%);
}

.btn:after {
  content: "";
  display: block;
  background-image: url("data:image/svg+xml,%3csvg%20width='29'%20height='29'%20viewBox='0%200%2029%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='14.4633'%20cy='14.4634'%20r='14.4633'%20transform='rotate(-90%2014.4633%2014.4634)'%20fill='white'/%3e%3cpath%20d='M18.2388%2014.4871L11.9855%2018.4584L11.9855%2010.5157L18.2388%2014.4871Z'%20fill='%23B1221A'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: absolute;
  top: 50%;
  width: 28.93px;
  height: 28.93px;
  right: 16px;
  transform: translateY(-50%);
  transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

@media screen and (max-width: 768px) {
  .btn {
    width: 202px;
    height: 64px;
  }
}

a:hover {
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

input[type="checkbox"] + span {
  display: inline-block;
  position: relative;
  padding: 0.3em 0.3em 0.3em 2em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid #cccccc;
}

input[type="checkbox"] + span:before {
  content: "";
  width: 1.4em;
  height: 1.4em;
  border: 1px solid #cccccc;
  background-color: #fff;
  line-height: 1;
  border-radius: 0.2em;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

input[type="checkbox"] + span:after,
input[type="radio"] + span:after {
  content: "";
  display: none;
}

input[type="checkbox"]:checked + span:after {
  content: "";
  display: block;
  width: 0.9em;
  height: 0.5em;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
  position: absolute;
  top: 45%;
  left: 0.25em;
  transform: translateY(-50%) rotate(-45deg);
}

input[type="checkbox"]:focus + span:before {
  outline: auto;
  outline: auto -webkit-focus-ring-color;
  border-radius: 2px;
}

input[type="radio"] + span {
  display: inline-block;
  position: relative;
  padding: 0.3em 0.3em 0.3em 2em;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  font-weight: 400;
}

input[type="radio"] + span:before {
  content: "";
  width: 1.4em;
  height: 1.4em;
  border: 1px solid #cccccc;
  background-color: #fff;
  line-height: 1;
  border-radius: 50%;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

input[type="radio"] + span:after {
  content: "";
  display: none;
}

input[type="radio"]:checked + span:after {
  display: block;
  position: absolute;
  top: 50%;
  left: 0.3em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  transform: translateY(-50%);
}

input[type="radio"]:focus + span:before {
  outline: auto;
  outline: auto -webkit-focus-ring-color;
  border-radius: 50%;
}

@media screen and (max-width: 768px) {
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 300px;
  padding: 0.5em 0.8em;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: #fff;
  line-height: 1.5;
}
/* ▼ モーダル閉じるボタン（Astroのdata属性に依存しない安定版） */
.modal-close {
  position: fixed;
  top: 0;
  right: 0;
  width: 70px;
  height: 70px;
  background-color: #b1221a;
  border: none;
  border-radius: 0 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

.modal-close::before {
  content: "✕";
  font-size: clamp(2rem, 2.5vw, 3rem);
  color: #fff;
  line-height: 1;
}

/* ▼ モーダルの基本挙動（MicroModalが壊れないように安定化） */
.micromodal-slide.is-open {
  display: block !important;
}

.micromodal-slide[aria-hidden="false"] .modal-overlay-work,
.micromodal-slide[aria-hidden="false"] .modal-overlay-voice {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal-container-work,
.micromodal-slide[aria-hidden="false"] .modal-container-voice {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-overlay-work,
.micromodal-slide[aria-hidden="true"] .modal-overlay-voice {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-container-work,
.micromodal-slide[aria-hidden="true"] .modal-container-voice {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}
