.first-view {
  padding-inline: clamp(16px, 5vw, 40px);
}

.first-view > .container {
  position: relative;
  display: flex;
  max-width: 1800px;
  width: 100%;
  aspect-ratio: 5 / 3;
  background-color: #f0f9ff;
  border-radius: 60px;
  margin: 40px auto;
  overflow: hidden;
}
.first-view > .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/first-view-bg.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}
.first-view > .container::after {
  content: "";
  position: absolute;
  width: 30%;
  aspect-ratio: 3 / 4;
  bottom: 0;
  right: clamp(40px, 10vw, 180px);
  background-image: url("../assets/img/first-view-content.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: personFadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
}
@keyframes personFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.first-view > .container > * {
  position: relative;
  z-index: 2;
}

.catchphrase-block {
  position: absolute;
  top: clamp(50px, 8vw, 140px);
  left: clamp(10px, 6vw, 20px);
  width: clamp(280px, 45vw, 900px);
}

h1.catchphrase {
  position: relative;
  aspect-ratio: 13 / 4;
  background-image: url("../assets/img/catchphrase.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: personFadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 100%;
}

h2.sub-catchphrase {
  margin: clamp(18px, 1.5vw, 32px) auto 0;
  font-size: clamp(18px, 2vw, 42px);
  font-weight: 800;
  color: #004aad;
  text-align: center;
  line-height: 1.6;
  transform: translateY(20px);
  animation: personFadeIn 1.2s ease-out forwards;
  padding-block: clamp(8px, 2vw, 16px);
}

h2.sub-catchphrase .line {
  display: inline-block;
  position: relative;
}

h2.sub-catchphrase .line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.12em;
  background-color: #004aad;
  border-radius: 999px;
}

.hojokin-btn {
  --btn-bg: #f49629;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(250px, 30vw, 640px);
  aspect-ratio: 13 / 5;
  margin: clamp(8px, 2vw, 24px) auto 0;
  text-decoration: none;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hojokin-btn:hover {
  --btn-bg: #f05a7e;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}
.hojokin-btn:active {
  --btn-bg: #f05a70;
}
.hojokin-bg-main {
  fill: var(--btn-bg);
  transition: fill 0.3s ease;
}
.hojokin-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hojokin-btn span {
  position: relative;
  z-index: 1;
  display: block;
}

.line-main {
  font-size: clamp(8px, 1.5vw, 28px);
  font-weight: 700;
  margin: 0 auto;
}
.hojokin-btn:hover .line-main {
  transform: translateY(2px);
  opacity: 0.9;
}

.line-sub {
  font-size: clamp(8px, 1.5vw, 28px);
  font-weight: 700;
  margin-top: 4px;
}
.hojokin-btn:hover .line-sub {
  transform: translateY(2px);
  opacity: 0.9;
}

.line-link {
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-size: clamp(8px, 1vw, 16px);
  font-weight: 600;
  margin-top: 8px;
}
.hojokin-btn:hover .line-link {
  color: #1e90ff;
  transform: translateY(2px);
  opacity: 0.9;
}
.fv-image-sp {
  display: none;
}

@media (max-width: 1024px) {
  .first-view > .container {
    border-radius: 30px;
  }
}

@media (max-width: 768px) {
  .first-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-inline: clamp(2px, 1.5vw, 10px);
  }

  .first-view > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px auto;
    padding-inline: 0;
    background-color: #f0f9ff;
    aspect-ratio: auto;
    height: auto;
    border-radius: 30px;
  }

  .first-view > .container::before {
    display: none;
  }
  .catchphrase-block {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    margin: 90px auto 25px auto;
    text-align: center;
  }
  h1.catchphrase {
    width: clamp(280px, 80vw, 540px);
    margin: 0 auto;
  }

  h2.sub-catchphrase {
    font-size: clamp(14px, 5vw, 24px);
    line-height: 1.5;
  }
  .first-view > .container::after {
    display: none;
  }
  h2.sub-catchphrase .line {
    display: block;
    width: fit-content;
    margin: 0 auto 8px;
  }
  .fv-image-sp {
    display: block;
    width: 100%;
  }

  .fv-image-sp img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hojokin-btn {
    width: 80%;
  }
  .line-main {
    font-size: clamp(12px, 3vw, 32px);
  }
  .line-sub {
    font-size: clamp(12px, 3vw, 32px);
  }
  .line-link {
    font-size: clamp(8px, 2vw, 24px);
  }
}
