.sec_service_dialogue_ptn_1 {
  padding-block: 64px;
  background: var(--white);

  @media (max-width: 760px) {
    padding-block: 52px;
  }

  .head {
    text-align: center;
  }

  .ttl {
    padding-bottom: 8px;
    display: inline-block;
    background: linear-gradient(var(--heading-line), var(--heading-line)) center bottom / 44% 3px no-repeat;
    color: var(--heading);
    font-family: var(--font-jp);
    font-size: 38px;
    font-weight: 900;
    line-height: 1.4em;
    letter-spacing: -0.045em;

    @media (max-width: 1200px) {
      font-size: 34px;
    }

    @media (max-width: 900px) {
      font-size: 30px;
    }

    @media (max-width: 600px) {
      font-size: 26px;
    }

    span {
      display: inline-block;
    }
  }

  .txt {
    margin-top: 20px;
    margin-inline: auto;
    max-width: 920px;
    color: var(--ink-soft);
    font-size: var(--copy-size);
    line-height: 1.75em;
    text-wrap: balance;
  }

  .main {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
    background: linear-gradient(105deg, var(--sage-pale), #fffef5);
    border-radius: 24px;

    @media (max-width: 900px) {
      padding: 20px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: auto;
      grid-template-areas: "image image" "first second" "reply reply" "note note";
      gap: 14px;
    }

    @media (max-width: 600px) {
      margin-top: 32px;
      padding: 16px;
      gap: 12px;
      border-radius: 20px;
    }

    @media (max-width: 370px) {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "image" "first" "second" "reply" "note";
    }
  }

  .image {
    min-width: 0;
    grid-area: 1 / 1 / 11 / 21;

    @media (max-width: 900px) {
      grid-area: image;
    }

    img {
      width: 100%;
    }
  }

  .balloon {
    position: relative;
    z-index: 1;
    padding: 12px;
    min-width: 0;
    align-self: center;
    background: var(--white);
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6em;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 5px 16px rgb(49 70 55 / 6%);

    @media (max-width: 1200px) {
      padding: 10px;
      font-size: 16px;
    }

    &::after {
      position: absolute;
      bottom: -8px;
      left: 24px;
      width: 16px;
      height: 16px;
      background: var(--white);
      transform: rotate(45deg);
      content: "";
    }

    &.type_1 {
      grid-area: 1 / 5 / 4 / 9;

      @media (max-width: 900px) {
        grid-area: first;
      }
    }

    &.type_2 {
      grid-area: 5 / 7 / 8 / 11;

      @media (max-width: 900px) {
        grid-area: second;
      }
    }

    &.type_3 {
      grid-area: 7 / 9 / 11 / 13;

      @media (max-width: 900px) {
        grid-area: reply;
        justify-self: center;
      }

      &::after {
        top: -8px;
        bottom: auto;
        left: calc(50% - 8px);
      }
    }
  }

  .note {
    z-index: 1;
    margin: 12px 8px;
    padding: 10px;
    grid-area: 1 / 17 / 5 / 21;
    align-self: start;
    justify-self: end;
    background: var(--yellow);
    color: var(--heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4em;
    text-align: center;
    border-radius: 4px;
    transform: rotate(-6deg);

    @media (max-width: 1200px) {
      font-size: 18px;
    }

    @media (max-width: 900px) {
      margin: 4px 0;
      padding-inline: 22px;
      grid-area: note;
      justify-self: center;
    }
  }
}
