*{
  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;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s;
}

/* 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;
}

#lesson h2 {
  color: #1d20c9;
}


header nav {
  width: 90%;
  margin: 0 auto;
}

.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: 400;
}

.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------------ */
/* #lesson---------- */

#lesson {
  text-align: center;
}

#lesson h2 ,#fee h2 {
  font-size: 40px;
  color: #1d20c9;
}

#lesson .list img {
  margin-bottom: 30px;
}

#lesson .list p {
  font-size: 24px;
}

#lesson .list {
  display: flex;
  gap: 20px;
}

#lesson .list li {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  border-radius: 10px;
}

/* #fee---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 ;
}

table th, table td {
  font-size: 24px;
  padding: 10px;
  border: 1px solid #333;
  text-align: center;
}

table th {
  background-color: #f9e6f5;
}

#fee .container {
  padding-bottom: 100px;
}


@media (max-width: 800px) {
  .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;
  }

  #lesson h2 ,#fee h2 {
    font-size: 24px;
    color: #1d20c9;
    padding-block: 30px;
  }

  .section {
    padding: 0px;
    margin-bottom: 0px;
  }

  #lesson .list p {
    font-size: 16px;
  }

  table {
    width: 80%;
    border-collapse: collapse;
    margin: 0 auto;
  }

  #fee {
    text-align: center;
  }

  table th, table td {
    font-size: 16px;
  }

  #fee .container {
  padding-bottom: 50px;
}

}


@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;
}

#lesson .list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

  #lesson h2 ,#fee h2 {
    font-size: 24px;
    padding-block: 10px;
  }

  #lesson .list p {
    font-size: 12px;
  }

  table {
    width: 90%;
  }

  table th, table td {
    font-size: 12px;
  }

  #fee .container {
  padding-bottom: 30px;
}

}