@charset "UTF-8";

/* ------------------------------------------- */
/* MESSAGE
/* ------------------------------------------- */
.sec-message {
  margin-top: 12rem;
  margin-bottom: 12rem;
  padding: 13rem 0;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 75%;
    background: #f9f6e9;
    border-radius: 0 4rem 4rem 0;
  }

  @media screen and (max-width: 767px) {
    margin-top: 0;
    margin-bottom: 6rem;
    padding: 4rem 0 8rem;
    padding-top: 0;

    &::before {
      top: calc(4rem + 32rem * 750 / 580 / 2);
      left: 0;
      right: 0;
      width: 100%;
      border-radius: 0;
    }
  }
}

.message-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13rem;
  /* padding: 8rem 0 10rem; */

  @media screen and (max-width: 767px) {
    flex-direction: column;
    align-items: center;
    gap: 3.2rem;
    padding: 0;
  }
}

.message-copy {
  position: relative;
  z-index: 1;
  flex: 1.92;
  min-width: 0;
  max-width: 77rem;
  overflow-wrap: break-word;
  word-break: break-word;

  @media screen and (max-width: 767px) {
    order: 2;
    width: 100%;
    max-width: none;
  }
}

.message-lead {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 700;
  font-size: 4rem;
  line-height: 6.9rem;
  letter-spacing: 0.13em;
  color: #00a3e0;

  .lead-br {
    display: none;
  }

  @media screen and (max-width: 767px) {
    font-size: 2.8rem;
    line-height: 1.55;
    letter-spacing: 0.08em;

    .lead-br {
      display: block;
    }
  }
}

.message-text {
  margin-top: 3rem;
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 183%;
  letter-spacing: 0.06em;
  color: #000000;

  @media screen and (max-width: 767px) {
    margin-top: 2.4rem;
    font-size: 1.4rem;
  }

  & > p + p {
    margin-top: 3em;
  }
}

.message-sign {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 4.8rem;
  font-family: "Zen Kaku Gothic New";
  color: #000;

  @media screen and (max-width: 767px) {
    margin-top: 3.2rem;
  }

  .sign-role {
    font-family: "Zen Kaku Gothic New";
    font-style: normal;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 197%;
    letter-spacing: 0.06em;
    color: #000000;

    @media screen and (max-width: 767px) {
      font-size: 1.4rem;
    }
  }

  .sign-name {
    padding-top: 1rem;
    img {
      display: block;
      width: 18.4rem;
      height: auto;
    }

    @media screen and (max-width: 767px) {
      img {
        width: 13.8rem;
      }
    }
  }
}

.message-photo {
  position: relative;
  flex-shrink: 0;
  width: 55rem;
  z-index: 1;
  left: 2rem;

  @media screen and (max-width: 767px) {
    order: 1;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    left: 0;
  }

  img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2.4rem;

    @media screen and (max-width: 767px) {
      border-radius: 1.6rem;
    }
  }
}

.message-bubble {
  position: absolute;
  z-index: 2;
  pointer-events: none;

  img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
  }
}

.bubble-08 {
  top: -20rem;
  left: 55%;
  width: 15.3rem;
  animation: message-bubble 4.4s ease-in-out infinite;

  @media screen and (max-width: 767px) {
    top: -1.2rem;
    left: auto;
    right: 1rem;
    width: 9rem;
  }
}

.bubble-09 {
  right: 15rem;
  bottom: 25%;
  width: 18rem;
  animation: message-bubble 5.2s ease-in-out infinite reverse;

  @media screen and (max-width: 767px) {
    top: calc(32rem * 750 / 580 + 3.2rem);
    right: -0.4rem;
    bottom: auto;
    width: 9.6rem;
  }
}

@keyframes message-bubble {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-bubble {
    animation: none;
  }
}
