*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
}

.fv {
  width: 100%;
  padding-block: 80px 64px;
}

.fv.suido {
  background:
    linear-gradient(90deg, rgba(2, 56, 78, 0.74), rgba(2, 136, 182, 0.28)),
    url("../img/fv_img01.webp") no-repeat top center / cover;
}

.fv__inner {
  width: min(1032px, 100%);
  padding-inline: 16px;
  margin-inline: auto;
}

.fv__title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 8px;
}

.fv__title--main {
  color: #fff;
  font-size: clamp(1.5rem, 0.9rem + 2.56vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.fv__title--sub {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.fv__contact {
  margin-top: 40px;
  max-width: 544px;
  border-radius: 16px;
  overflow: hidden;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
}

.popup.active {
  display: block;
}

.popup__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(15px);
}

.popup__backdrop.suido {
  background: rgba(2, 56, 78, 0.52);
}

.popup__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(544px, 100% - 48px);
  max-height: calc(100% - 48px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}

.popup__close::before,
.popup__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #444;
  border-radius: 1px;
  transition: background 0.15s;
}

.popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.popup__close:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: scale(1.06);
}

.popup__close:hover::before,
.popup__close:hover::after {
  background: #111;
}

.popup__close:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.popup__close:focus-visible {
  outline: 2px solid #0288b6;
  outline-offset: 2px;
}

.popup__img {
  margin: 0;
  height: 300px;
  line-height: 0;
  overflow: hidden;
}

.popup__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px;
  text-align: center;
}

.popup__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.popup__title.suido {
  color: #0288b6;
}

.popup__title .text-md {
  font-size: 28px;
}

.popup__title .text-s {
  font-size: 24px;
  letter-spacing: 0.015em;
}

.popup__text {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(480px, 100%);
  padding: 16px 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s, box-shadow 0.1s;
}

.popup__cta.suido {
  background: #ff7a1a;
  box-shadow: 0 4px 0 #b84f00;
}

.popup__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.popup__cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b84f00;
}

.popup__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ff7a1a;
  background: #fff;
}

.popup__cta-icon svg {
  display: block;
  width: 18px;
  height: 15px;
}

.sp-only {
  display: none;
}

@media screen and (max-width: 767px) {
  .fv {
    padding-block: 60px 32px;
    background-position: 80%;
  }

  .fv__title--sub {
    font-size: 14px;
  }

  .fv__contact {
    margin-top: 64px;
  }

  .popup__body {
    gap: 16px;
  }

  .popup__title {
    font-size: 24px;
  }

  .popup__title .text-md {
    font-size: 22px;
  }

  .popup__title .text-s {
    font-size: 18px;
  }

  .popup__text {
    font-size: 14px;
  }

  .popup__cta {
    gap: 16px;
    padding: 14px 20px;
    font-size: 16px;
  }

  .sp-only {
    display: block;
  }
}
