.banner {
  width: 100%;
  height: 1490px;
  margin-top: 132px;
  margin-bottom: 60px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.banner-container-top {
  display: grid;
  width: 1400px;
  margin: 0 auto;
  padding: 0px 60px;
  box-sizing: border-box;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  background: url("../../images/bubbles/bubbles-background-image.png");
  background-position: center;
  background-repeat: no-repeat;
}

.banner-container-under {
  display: grid;
  width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 80px 20px;
  /* Specify gap for x-axis and y-axis */
  background: url("../../images/bubbles/bubbles-background-image.png");
  background-position: center;
  background-repeat: no-repeat;
}

.text-medical-worker-1-1-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "doctor nurse"
    "patient patient";
}

.text-medical-worker-1-1 {
  grid-area: doctor;
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: 0.2em;
  text-align: right;
  color: #333333;
}

.text-medical-worker-1-2 {
  grid-area: nurse;
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: 0.2em;
  color: #333333;
}

.text-medical-worker-1-3 {
  grid-area: patient;
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: 0.2em;
  color: #333333;
  margin: 0 auto;
}

.text-medical-worker-2-box {
  display: flex;
  flex-direction: column;
  width: 420px;
  height: auto;
}

.text-medical-worker-2-box> :first-child {
  align-self: flex-start;
}

.text-medical-worker-2-box> :last-child {
  align-self: flex-end;
}

.text-medical-worker-2-1 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: 0.2em;
  color: #333333;
  margin: 0;
}

.text-medical-worker-2-2 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 65px;
  letter-spacing: 0.2em;
  color: #333333;
  margin: 20px 0 0 0;
}

.text-medical-worker-3-box {
  margin-right: 100px;
  text-align: left;
}

.text-medical-worker-3-1 {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  line-height: 176.58%;
  letter-spacing: 0.2em;
  color: #333333;
}

.text-medical-worker-3-2 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  line-height: 0%;
  color: #333333;
}

.text-medical-worker-3-3 {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.2em;
  color: #333333;
}

.text-medical-worker-4-box {
  margin-left: 100px;
  text-align: right;
}

.text-medical-worker-4-1-1 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  color: #333333;
  white-space: nowrap;
}

.text-medical-worker-4-1-2 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  color: #333333;

}

.text-medical-worker-4-2 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  color: #333333;

}

.text-medical-worker-4-3-1 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-size: 48px;
  color: #333333;
  white-space: nowrap;

}

.text-medical-worker-4-3-2 {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  color: #333333;
}


/* 画像 */
.img-medical-worker-1 {
  width: 576px;
  height: 386.56px;
  background: url("../../images/MaskGroup_1.png");
  border-radius: 80px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.img-medical-worker-2 {
  width: 576px;
  height: 386.56px;
  margin-top: -30px;

  background: url("../../images/MaskGroup_2.png");
  border-radius: 80px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.img-medical-worker-3 {
  width: 671px;
  height: 312px;
  margin-top: 20px;
  background: url("../../images/MaskGroup_3.png");
  border-radius: 0px 100px 30px 0px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.img-medical-worker-4 {
  width: 671px;
  height: 312px;
  margin-top: -30px;
  background: url("../../images/future-company/future-company_1.png");
  border-radius: 100px 0px 0px 30px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (max-width: 768px) {
  .banner {
    width: auto;
    height: 2110px;
    margin-top: 19px;
    background-color: #FFFFFF;
  }

  /* 上gridコンテナ */
  .banner-container-top {
    display: grid;
    width: 100vw;
    margin: 0 auto;
    padding: 0px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "doctor-image"
      "doctor-text"
      "nurse-image"
      "online-text";
    align-items: center;
    justify-items: center;
    gap: 40px;
  }

  .text-medical-worker-1-1-box {
    grid-area: doctor-text;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "doctor"
      "nurse"
      "patient";
  }

  .text-medical-worker-1-1 {
    text-align: left;
    margin-left: 0px;
    margin-top: 0px;
    font-size: 36px;
    line-height: 49px;
  }

  .text-medical-worker-1-2 {
    margin-left: 53px;
    margin-top: 0px;
    font-size: 36px;
    line-height: 49px;
  }

  .text-medical-worker-1-3 {
    margin-left: 100px;
    margin-top: 0px;
    font-size: 36px;
    line-height: 49px;
  }

  .text-medical-worker-2-box {
    grid-area: online-text;
    width: 312px;
    height: 132px;
  }

  .text-medical-worker-2-1 {
    margin-left: 0px;
    margin-top: 0px;

    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 49px;
    letter-spacing: 0.2em;
    color: #333333;
  }

  .text-medical-worker-2-2 {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 49px;
    letter-spacing: 0.2em;
    color: #333333;
  }

  .img-medical-worker-1 {
    width: 340px;
    height: 228.18px;
    border-radius: 40px;
  }

  .medical-worker-2 {
    grid-area: nurse-image;
  }

  .img-medical-worker-2 {
    width: 340px;
    height: 228.18px;
    margin: 0 auto;
    border-radius: 40px;
  }

  /* 下gridコンテナ */
  .banner-container-under {
    display: grid;
    width: 100vw;
    margin: 0 auto;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-template-areas:
      "explain-image"
      "our-3h"
      "health-tech"
      "peopele-image";
    align-items: center;
    justify-items: center;
    gap: 40px;
  }

  .text-medical-worker-3-box {
    grid-area: our-3h;
    width: 100%;
    margin: 0;
    padding-left: 30px;
  }

  .text-medical-worker-3-1 {
    margin-left: 0px;
    margin-top: 0px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 176.58%;
    color: #333333;
  }

  .text-medical-worker-3-2 {
    margin-left: 0px;
    margin-top: 0px;

    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 176.58%;
    /* or 49px */

    /* Text/Primary */
    color: #333333;

  }

  .text-medical-worker-3-3 {
    margin-left: 0px;
    margin-top: 0px;

    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 176.58%;
    /* or 42px */

    /* Text/Primary */
    color: #333333;
  }

  .text-medical-worker-4-box {
    grid-area: health-tech;
    margin: 0;
  }

  .text-medical-worker-4-1-1 {
    width: 336px;
    margin-left: 0px;
    margin-top: 0px;

    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 200%;
    color: #333333;
  }

  .text-medical-worker-4-1-2 {
    /* を武器に、 */
    width: 336px;
    height: 72px;
    margin-left: 0px;
    font-family: 'Noto Sans';
    font-size: 24px;
    font-weight: 400;
    line-height: 48px;
    text-align: right;

    line-height: 200%;
    /* identical to box height, or 72px */
    /* Text/Primary */
    color: #333333;

  }

  .text-medical-worker-4-2 {
    /* 世の中全ての人々の */
    width: 216px;
    height: 48px;
    margin-left: 100px;
    margin-top: 0px;

    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 200%;
    /* identical to box height, or 48px */

    /* Text/Primary */
    color: #333333;
  }

  .text-medical-worker-4-3-1 {
    /* 健康を向上 */
    width: 252px;
    height: 72px;
    margin-left: 0px;
    margin-top: 0px;

    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 200%;
    /* identical to box height, or 72px */
    text-align: right;

    /* Text/Primary */
    color: #333333;
  }

  .text-medical-worker-4-3-2 {
    /* させる */
    width: 252px;
    height: 72px;
    margin-left: 70px;

    font-family: 'Noto Sans';
    font-size: 24px;
    font-weight: 400;
    text-align: right;

    line-height: 200%;
    /* identical to box height, or 72px */
    /* Text/Primary */
    color: #333333;
  }

  .medical-worker-1 {
    grid-area: doctor-image;
  }

  .img-medical-worker-3-box {
    grid-area: explain-image;
    width: 100%;
  }

  .img-medical-worker-3 {
    height: 240px;
    width: 360px;
    border-radius: 0px 100px 30px 0px;
  }

  .img-medical-worker-4-box {
    grid-area: peopele-image;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .img-medical-worker-4 {
    height: 240px;
    width: 360px;
    background: url("../../images/MaskGroup_4.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 100px 0px 0px 30px;
  }
}
