#teacher {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: min(800px, 100%);
  margin: 4em auto;
  row-gap: 4em;
}
#teacher .img {
  width: min(320px, 40%);
}
#teacher .img .message_box {
  margin-top: 1em;
  background-image: url(../img/bg.png);
  background-repeat: no-repeat;
  background-size: 120%;
  background-position: center center;
  max-width: 600px;
  width: 100%;
  height: min(130px, 20vw);
  display: flex;
  align-items: center;
  justify-content: center;
}
#teacher .img p {
  display: block;
  padding: 1em;
  text-align: center;
  line-height: 1.5em;
}
#teacher .profile {
  width: min(432px, 54%);
  display: flex;
  flex-flow: column;
}
#teacher .profile .name {
  display: flex;
  justify-content: space-between;
  font-size: 2em;
  margin-bottom: 0.5em;
}
#teacher .profile .name span:nth-child(1) {
  color: #ff9999;
}
#teacher .profile .name span:nth-child(2) {
  color: #646464;
}
#teacher .profile .title {
  background-color: #ff9999;
  padding: 5px;
  margin-bottom: 2em;
}
#teacher .profile .title span {
  color: white;
}
#teacher .profile .hobby {
  position: relative;
  color: black;
}
#teacher .profile .hobby span {
  position: absolute;
  top: -1em;
  left: 0.5em;
  background-color: #ffffcc;
  padding: 0.3em;
  font-size: 1.2em;
}
#teacher .profile .hobby p,
#teacher .profile .hobby ul {
  border-top: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  padding: 1em 0;
}
#teacher .profile .hobby2 {
  position: relative;
  color: black;
  margin-bottom: 1em;
}
#teacher .profile .hobby2 span {
  position: absolute;
  top: -1em;
  left: 0.5em;
  background-color: #ffffcc;
  padding: 0.3em;
  font-size: 1.2em;
}
#teacher .profile .hobby2 p {
  border-top: 2px solid #2b2b2b;
  padding: 1em 0;
}
#teacher .p2 {
  order: 0;
}/*# sourceMappingURL=teacher.css.map */