body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 1.8;
    color: #333;
    overflow-x: hidden;
}
header {
    background: linear-gradient(90deg, #2c1376, #53d5fd);
    color: white;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
nav {
    display: flex;
    justify-content: center;
    background: #f4f4f4;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav a {
    color: #333;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}
nav a:hover {
    color: #3f51b5;
    transform: scale(1.1);
}
.hero {
    background: linear-gradient(to bottom,rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
        url('../image/hero-image.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    z-index: 10;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
}
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}
.features, .columns, .teachers {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.feature, .column, .teacher {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #333;
}



.feature:hover, .column:hover, .teacher:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
footer {
    background: linear-gradient(90deg, #2c1376, #53d5fd);
    color: white;
    text-align: center;
    padding: 20px 0;
}
form {
    text-align: center;
}
form input, form textarea {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
form button:hover {
    background-color: #45a049;
}

.description_container {
    display: flex;
}

.teacher-introduction {
    padding-bottom: 50px;
}

.teacher_img {
    width: 100%; 
    max-width: 150px; 
    height: auto; 
    margin: 0 auto; 
    display: block;
}

.teacher_description_img {
    padding: 50px;
}

.teacher_description_img img {
    width: 200px;
}

table {
    margin: 20px 20px 50px 20px;
    width: 95%; 
    border-collapse: collapse; 
    text-align: center; 
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
}
th {
    background-color: #f4f4f4; 
    font-weight: bold; 
}

.discount-table {
    margin: 20px 20px 50px 20px;
    width: 95%; 
    border-collapse: collapse;
    text-align: center;
}

.discount-table th, .discount-table td {
    border: 1px solid #ddd;
    padding: 10px;
}

.discount-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px; 
    font-size: 14px; 
}

.footer-container p {
    margin: 0;
}

.footer-container a {
    text-decoration: none; 
    color: #fff; 
}

.slide-wrap {
    background-color: #ccc;
    display: flex;
    margin: 0 auto;
    max-width: 1024px;
    width: 100%;
    overflow-x: scroll;
  }
  .slide-box {
    height: auto;
    width: 24%;
    flex: 0 0 70%;
    margin: auto 1% auto auto;
  }
  .slide-box a {
    background-color: #fff;
    color: #222;
    display: block;
    text-decoration: none;
  }
  .slide-box img {
    display: block;
    height: auto;
    width: 100%;
  }
  .slide-box p {
    font-weight: bold;
    padding: 10px;
    margin:.5rem auto;
  }

  .columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に均等配置 */
    gap: 20px; /* 要素間の隙間 */
  }
  


@media (max-width: 768px) {
    .features, .columns, .teachers {
        flex-direction: column;
    }
    .hero {
        padding: 60px 20px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    nav {
        flex-direction: column;
    }
    nav a {
        padding: 10px;
        background: #333; 
        color: white;
    }
    nav a:hover {
        background-color: inherit;
    }
    form input, form textarea {
        width: 95%;
    }
    .description_container {
        display: block;
        padding: 10px;
    }
    .teacher_description_img {
        text-align: center;
        max-width: 100px;
    }
    .slide-wrap {
        overflow-x: scroll;
      }
      .slide-box {
        flex: 0 0 70%;
        margin: auto 1% auto auto;
      }
}
