/*------------------------------------
当院について用CSS
------------------------------------*/
#about_sec1 .flex-container {
  gap: 50px;
  align-items: normal;
  margin-top: 60px;
}
#about_sec1 .flex-container .flex-item {
  width: calc((100% - 50px) / 2);
}
#about_sec1 .flex-container .flex-item h3 {
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-black);
}
#about_sec1 .flex-container .flex-item .description {
  margin-top: 20px;
  line-height: 1.8;
}
#about_sec1 .flex-container .flex-item:nth-child(2) {
  position: relative;
  padding: 0 30px 30px 0;
}
#about_sec1 .flex-container .flex-item:nth-child(2) img {
  height: 100%;
  object-fit: cover;
}
#about_sec1 .flex-container .flex-item:nth-child(2)::before,
#about_sec1 .flex-container .flex-item:nth-child(2)::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--color-black);
}
#about_sec1 .flex-container .flex-item:nth-child(2)::before {
  width: 2px;
  height: 70%;
}
#about_sec1 .flex-container .flex-item:nth-child(2)::after {
  width: 70%;
  height: 2px;
}
#about_sec1 .career {
  background-color: var(--color-lightgray);
  padding: 30px;
  margin-top: 50px;
}
#about_sec1 .career h3 {
  text-align: center;
  font-size: 2rem;
}
#about_sec1 .career table {
  width: fit-content;
  margin: 10px auto 0;
}
#about_sec1 .career table th,
#about_sec1 .career table td {
  padding: 10px 0;
  font-family: var(--font-sub-5);
  font-size: 1.2rem;
  line-height: 1.5;
}
#about_sec1 .career table th {
  text-align: left;
}
#about_sec1 .career table td {
  padding-left: 20px;
}
#about_sec2 .inner {
  padding: 30px 0 90px;
}
#about_sec2 .description {
  width: 90%;
  margin: 30px auto 0;
  line-height: 1.8;
}
#about_sec2 .flex-container {
  width: 90%;
  margin: 60px auto 0;
  gap: 30px;
  align-items: baseline;
}
#about_sec2 .flex-container .flex-item {
  width: calc((100% - 60px) / 3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#about_sec2 .flex-container .flex-item h3 {
  font-size: 1.2rem;
  flex-grow: 1;
  text-align: center;
}
#about_sec3 .inner {
  padding: 30px 0 90px;
}
#about_sec3 .flex-container {
  align-items: normal;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
}
#about_sec3 .flex-container .flex-item {
  width: calc((100% - 60px) / 2);
  display: flex;
  flex-direction: column;
}
#about_sec3 .flex-container .flex-item h3 {
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-black);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
#about_sec3 .flex-container .flex-item h3 span {
  font-size: 3rem;
  line-height: 1;
  font-family: var(--font-sub-2);
  font-weight: bold;
  letter-spacing: 0.2rem;
  padding-right: 20px;
}
#about_sec3 .flex-container .flex-item .description {
  margin-top: 20px;
  line-height: 1.8;
  flex-grow: 1;
}
#about_sec3 .flex-container .flex-item .flex-image {
  margin-top: 20px;
}
#about_sec4 .inner {
  padding: 30px 0 90px;
}
#about_sec4 .flex-container {
  width: 90%;
  margin: 60px auto 0;
  gap: 30px;
  align-items: baseline;
  flex-wrap: wrap;
}
#about_sec4 .flex-container .flex-item {
  width: calc((100% - 60px) / 3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#about_sec4 .flex-container .flex-item h3 {
  font-size: 1.2rem;
  flex-grow: 1;
  text-align: center;
}

@media only screen and (max-width: 1080px) {
  #about_sec1 .flex-container {
    gap: 20px;
    margin-top: 40px;
  }
  #about_sec1 .flex-container .flex-item {
    width: calc((100% - 20px) / 2);
  }
  #about_sec1 .flex-container .flex-item:nth-child(2) {
    padding: 0 20px 20px 0;
  }
  #about_sec1 .flex-container .flex-item .description {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 0.9rem;
  }
  #about_sec1 .flex-container .flex-item h3 {
    font-size: 1.4rem;
    padding-bottom: 0;
  }
  #about_sec1 .career {
    padding: 20px;
    margin-top: 30px;
  }
  #about_sec1 .career h3 {
    font-size: 1.7rem;
  }
  #about_sec1 .career table th,
  #about_sec1 .career table td {
    padding: 8px 0;
    font-size: 1rem;
  }
  #about_sec1 .career table {
    margin: 5px auto 0;
  }
  #about_sec2 .description {
    width: 100%;
    line-height: 1.6;
    font-size: 0.9rem;
  }
  #about_sec2 .flex-container {
    width: 100%;
    margin: 30px auto 0;
    gap: 20px;
  }
  #about_sec2 .flex-container .flex-item {
    width: calc((100% - 40px) / 3);
  }
  #about_sec2 .flex-container .flex-item h3 {
    font-size: 1.1rem;
  }
  #about_sec2 .inner {
    padding: 0 0 60px;
  }
  #about_sec3 .inner {
    padding: 0 0 60px;
  }
  #about_sec3 .flex-container {
    gap: 50px 30px;
    margin-top: 40px;
  }
  #about_sec3 .flex-container .flex-item {
    width: calc((100% - 30px) / 2);
  }
  #about_sec3 .flex-container .flex-item h3 {
    font-size: 1.4rem;
  }
  #about_sec3 .flex-container .flex-item h3 span {
    font-size: 2.6rem;
    padding-right: 10px;
  }
  #about_sec3 .flex-container .flex-item .description {
    margin-top: 10px;
    line-height: 1.6;
    font-size: 0.9rem;
  }
  #about_sec3 .flex-container .flex-item .flex-image {
    margin-top: 10px;
  }
  #about_sec4 .inner {
    padding: 0 0 60px;
  }
  #about_sec4 .flex-container {
    width: 100%;
    margin: 40px auto 0;
  }
  #about_sec4 .flex-container .flex-item h3 {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 767px) {
  #about_sec1 .flex-container {
    gap: 10px;
    flex-direction: column;
  }
  #about_sec1 .flex-container .flex-item {
    width: 100%;
  }
  #about_sec1 .flex-container .flex-item h3 {
    font-size: 1.3rem;
  }
  #about_sec1 .career h3 {
    font-size: 1.4rem;
  }
  #about_sec1 .career {
    padding: 20px 10px;
    margin-top: 20px;
  }
  #about_sec1 .career table th, #about_sec1 .career table td {
    font-size: 0.9rem;
  }
  #about_sec1 .career table th {
    width: 70px;
  }
  #about_sec2 .description {
    margin: 20px auto 0;
  }
  #about_sec2 .flex-container .flex-item {
    width: calc((100% - 20px) / 3);
  }
  #about_sec2 .flex-container {
    margin: 20px auto 0;
    gap: 10px;
  }
  #about_sec2 .flex-container .flex-item h3 {
    font-size: 0.9rem;
  }
  #about_sec2 .inner {
    padding: 0 0 40px;
  }
  #about_sec3 .flex-container {
    gap: 30px;
    margin-top: 30px;
    flex-direction: column;
  }
  #about_sec3 .flex-container .flex-item {
    width: 100%;
  }
  #about_sec3 .flex-container .flex-item h3 {
    font-size: 1.3rem;
    padding-bottom: 5px;
  }
  #about_sec3 .flex-container .flex-item h3 span {
    font-size: 2.4rem;
  }
  #about_sec3 .inner {
    padding: 0 0 40px;
  }
  #about_sec4 .flex-container {
    margin: 30px auto 0;
    gap: 20px;
  }
  #about_sec4 .flex-container .flex-item {
    width: calc((100% - 20px) / 2);
  }
  #about_sec4 .flex-container .flex-item h3 {
    font-size: 0.9rem;
  }
}

