*{
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  width: 100%;
  vertical-align: bottom;
}
  
body {
  color: #333;
  font-family: "Kiwi Maru";
  font-weight: 400;
  font-style: normal;
}

a {
  display: block;
  text-decoration: none;
  color: #f1eef7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100px;
}

h2 {
  color: #f1eef7;
  text-shadow: 1px 1px 5px #333;
  font-size: 40px;
  letter-spacing: 0.2em;
  padding-block: 30px;
  text-align: center;
  font-weight: 400;
}

h3 {
  font-size: 24px;
}

/* header、footer------------------- */

header, footer {
  background-color: #61d7f1;
}


#item-top {
  padding: 50px 0;
}

#item-top .header-top {
  display: flex;
  justify-content: center; 
  align-items: center;     
  gap: 10px;               
  width: 100%;             
  margin: 0 auto;
}

.header-top img {
  width: 60px;  
  height: auto;
}


#item-top .header-top h1 {
  font-size: 42px;
}

#item-top h2 {
  color: #1d20c9;
}

header nav {
  width: 90%;
  margin: 0 auto;
}

.nav-list  {
  display: flex;
  justify-content: space-between;
  text-align: center;
  line-height: 50px;
  background-color: #61d7f1;
}

.nav-list  a {
  font-size: 24px;
  padding: 24px 0;
  font-weight: 400;
}

.nav-list li {
  display: block;
  width: calc(100% / 5);
  font-weight: bold;
}

.nav-list a:hover {
  background-color: #f0c14b;
}

.nav-color  {
  display: flex;
  justify-content: space-between;
  text-align: center;
  line-height: 50px;
  background-color: #61d7f1;
}

.nav-color  a {
  font-size: 24px;
  padding: 24px 0;
  font-weight: 600;
}

.nav-color li {
  display: block;
  width: calc(100% / 5);
  font-weight: bold;
}

.nav-color a:hover {
  color: #1d20c9;
}

.toggle-btn {
  display: none;
}

.mask {
  display: none;
}

.photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

footer{
  text-align: center;
}

/* main------------ */

#teachers .container {
  padding-bottom: 100px;
}

#teachers ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#teachers li {
  background-color: #f1eef7;
  padding: 50px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

#teachers li:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#teachers h2 {
  color: #1d20c9;
  font-size: 40px;
  margin-bottom: 5px;
}

#teachers h3 {
  color: #555;
  margin-bottom: 15px;
}

#teachers p {
  font-size: 0.9em;
  margin-bottom: 10px;
  text-align: left;
}

#teachers dl {
  display: flex;
  width: 100%;  
  margin: 0 auto;
  font-size: 0.9em;
}

#teachers dt {
  width: 25%;
  text-align: right;
  /* justify-content: space-between; */
}

#teachers dd {
  width: 75%;
  text-align: left;
}

@media (max-width: 800px) {
  h3 {
  font-size: 18px;
}

  .container {
  padding-top: 0;
}

  .header-top img {
    width: 40px;  
    height: auto;
  }

  #item-top .header-top h1 {
    font-size: 32px;
  }

  .nav-color li {
    width: 100%;
  }

  header, footer {
    padding-top: 0px;
  }
  
  footer {
    padding-bottom: 0px;
  }

  .toggle-btn {
    display: block;
    width: 50px;
    height: 50px;
    transition: all 0.5s;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 50;
    background-color: #333;
  }
  
  .toggle-btn span {
    display: block;
    width: 50%;
    height: 3px;
    background-color: #fff;
    transition: all 0.5s;
    position: absolute;
    left: 25%;
  }
  
  .toggle-btn span:nth-child(1) {
    top: 35%;
  }
  
  .toggle-btn span:nth-child(2) {
    top: 50%;
  }
  
  .toggle-btn span:nth-child(3) {
    top: 65%;
  }
  
  .toggle-btn:hover {
    opacity: 0.7;
  }
  
  .open .toggle-btn span:nth-child(1) {
    top: 50%;
    transform: rotate( -45deg);
  }
  
  .open .toggle-btn span:nth-child(2),
  .open .toggle-btn span:nth-child(3) {
    top: 50%;
    transform: rotate( 45deg);
  }

  .open .mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #333;
    opacity: 0.7;
    display: block;
    z-index: 15;
  }

  .nav-color {
    width: 200px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -200px;
    transition: all .5s;
    opacity: 0;
    z-index: 100;
  }

  .open .nav-color {
    opacity: 1;
    left: 0;
  }

  .open .nav-color .header-menu {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: #fff;
  }
  
  nav li a{
    color: #333;
  }

  nav .nav-color {
    flex-direction: column;
  }

  #teachers h2 {
    font-size: 24px;
    color: #1d20c9;
    padding-block: 30px;
  }

  .section {
    padding: 0px;
    margin-bottom: 0px;
  }

  #teachers dt {
  width: 30%;
  text-align: right;
  /* justify-content: space-between; */
}

#teachers dd {
  width: 70%;
  text-align: left;
}

@media (max-width: 600px) {
  #item-top {
  padding: 20px 0;
}

  .header-top img {
    width: 10%;  
    height: auto;
  }

  #item-top .header-top h1 {
    font-size: 24px;
  }

  .toggle-btn {
    width: 40px;
    height: 40px;
  }
  
  .toggle-btn span {
    height: 1px;
  }

  .nav-color {
    width: 150px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100px;
    transition: all .5s;
    opacity: 0;
    z-index: 100;
  }

  .nav-color  a {
  font-size: 16px;
  padding: 16px 0;
}

  h2 {
    font-size: 16px;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
  }
  
   /* item2 */
  .teacher h2 {
    font-size: 14px;
  }
  .teacher h3 {
    font-size: 14px;
  }
  .teacher p {
    font-size: 12px;
  }
  .teacher dl {
    font-size: 12px
  }
}
}