main {
  padding: 112px 20px 0 20px;
}

section {
  margin-bottom: 120px;
}

h1 {
  position: relative;
  margin: 60px auto;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}

h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4em;
  width: 100%;
  height: 1em;
  background: url('../img/title-underline.png') no-repeat center;
  background-size: contain;
  z-index: -1;
}

h1 span {
  padding: 0 8px;
  display: inline-block;
}
h1 .hana-l {
  max-width: 30px;
}
h1 .hana-r {
  max-width: 60px;
}

h2 {
  margin: 0 auto 10px auto;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 600;
}

.lead {
  line-height: 2;
  font-size: 22px;
  text-align: center;
}

.education-goal {
  position: relative;
  max-width: 680px;
  margin: 40px auto 64px auto;
  border: 5px #f3df87 solid;
  border-radius: 24px;
  padding: 20px;
  background-color: #fefdf1;
  text-align: center;
}

.education-goal::before,
.education-goal::after {
  content: '';
  position: absolute;
  width: 40px; /* 花画像の幅 */
  height: 40px; /* 花画像の高さ */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

.education-goal::before {
  top: 14px;
  left: 14px;
  background-image: url('../img/education-goal-bg.png'); /* 左上の画像 */
}

.education-goal::after {
  top: 14px;
  right: 14px;
  background-image: url('../img/education-goal-bg.png'); /* 右上の画像 */
}

.education-goal li {
  line-height: 2.8;
  font-weight: 600;
}

ol li {
  margin-left: 24px;
  padding-bottom: 10px;
  list-style: auto;
  font-size: 17px;
}

table {
  text-align: left;
  font-size: 17px;
}
table th,
table td {
  padding: 12px 8px;
}

table th {
  min-width: 140px;
  letter-spacing: 1px;
}

.about-history {
  max-width: 300px;
}

.ayumi.split {
  justify-content: center;
  gap: 60px;
}
.ayumi .split_item {
  flex: none;
}

.ayumi th {
  text-align: right;
  padding-right: 40px;
}

@media screen and (max-width: 767px) {
  main {
    padding: 64px 16px 0 16px;
  }
  .lead {
    font-size: 20px;
    text-align: left;
  }

  .education-goal li {
    line-height: 1.8;
    font-weight: 600;
    text-align: left;
    padding-bottom: 16px;
  }
  table th {
    min-width: 120px;
    letter-spacing: 0;
    padding: 12px 0;
  }
  .ayumi th {
    text-align: left;
    padding-right: 10px;
  }
  iframe {
    max-width: 100%;
    height: 420px;
  }
  h1 {
    font-size: 28px;
  }
  h1 .hana-l {
    max-width: 16px;
  }
  h1 .hana-r {
    max-width: 32px;
  }
}

/**slide*********/
.slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  height: auto;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 128, 0, 0.5);
  color: white;
  border: none;
  padding: 7px 10px;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

button.prev {
  left: 10px;
}
button.next {
  right: 10px;
}

.dots {
  text-align: center;
  margin-top: 10px;
}

.dots button {
  background: #ccc;
  border: none;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dots button.active {
  background: #333;
}
