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

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;
}

h2 {
  font-size: 22px;
  font-weight: 600;
}

/**********************/
.tab-buttons {
  display: flex;
  max-width: 1200px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
.tab-buttons li {
  position: relative;
  padding: 14px 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  z-index: 1;
  bottom: -5px;
  font-weight: 600;
  border-radius: 10px 40px 0 0;
  text-align: center;
  line-height: 1.5;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f5e9;
  border: 5px solid #e7deaa;
  margin: 0 1px;
}
.tab-buttons li.active {
  background: #fcf5d8;
  color: #444444;
  background: linear-gradient(180deg, #ffe1b3, #fcf5d8);
  border-bottom: 5px solid #fcf5d8;
  font-size: 22px;
}
.tab-buttons li:hover {
  background: linear-gradient(180deg, #faffba, #fcf5d8);
}
.tab-buttons li.active::after {
  content: '';
  position: absolute; /* または relative に応じて調整 */
  top: -85px; /* 必要に応じて位置を調整 */
  left: -20px;
  width: 80px; /* 任意の幅 */
  height: 80px; /* 任意の高さ */
  background-image: url(../img/day-life-active.png);
  background-size: contain; /* または cover */
  background-repeat: no-repeat;
}

.tab-content {
  max-width: 1024px;
  margin: auto;
  display: none;
  border: 5px solid #e9dc90;
  border-radius: 50px;
  padding: 60px;
  background-color: #e9dc90;

  background-image: url("../img/day-life-bg.png");  /* フォールバック */
  background-image: url("../img/day-life-bg.webp"); /* webp対応ブラウザならこちら */
}

.tab-content.active {
  display: block;
}

/**schedule**/
.day-table-1 {
  display: flex;
  justify-content: center;
}

.timeline {
  position: relative;
}
.schedule {
  display: flex;
  min-height: 200px;
  padding: 30px 0 0 0;
}
.schedule .image {
  margin-left: auto;
  max-width: 280px;
}

.schedule li,
.nowrap {
  white-space: nowrap;
}

.schedule:last-child {
  min-height: unset;
}

.circle {
  width: 140px;
  height: 140px;
  background-color: white;
  border: 5px solid #99bbea;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 30px;
  color: #23406e;
  position: relative;
  margin: 50px 80px 50px 0;
}

.circle::before {
  content: '';
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 50px;
  background-color: #99bbea;
}
.circle:first-child {
  margin: 20px 80px 50px 0;
}
.circle:first-child::before {
  display: none;
}
.circle:last-child {
  margin-bottom: 0;
}

.icon {
  height: auto;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  flex-shrink: 0; /* 必要なら */
}

.tab-content.active {
  color: #444;
}

/**text***/
.text {
  padding: 24px 40px;
}
.text span {
  font-size: 16px;
}
.text-group {
  margin-bottom: 36px;
}
.text img {
  max-width: 100px;
}

.horizontal {
  display: flex;
  align-items: flex-start;
}

.text_link{
  text-decoration: underline;
  color: darkgreen;
}

.pc {
  display: block;
}
.sp {
  display: none;
}

.aside-info{
  display: flex;
  justify-content: space-between;
  gap:40px;
  max-width: 1024px;
  margin: 100px auto;
}

.aside-info img{
  margin-bottom: 16px;
}

.school_lunch {
  flex:1;
  padding: 20px;
  line-height: 2;
  border: 5px solid #e9dc90;
    border-radius: 50px;
}
.school_lunch h2, .school_bus h2 {
  text-align: center;
  padding: 20px;
}



.school_bus {
  flex:1;
  border: 5px solid #62a7f0;
  border-radius: 50px;
  padding: 20px;
  line-height: 2;
}



/**********************/

@media screen and (max-width: 950px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  main {
    padding: 64px 16px 0 16px;
  }
  .tab-content {
    padding: 16px;
  }
  .tab-buttons li.active {
    font-size: 20px;
  }
  .tab-buttons li {
    font-size: 16px;
    border-radius: 10px 26px 0 0;
  }
  .schedule {
    flex-direction: column;
    min-height: 145px;
    padding: 30px 0 0 0;
  }
  .schedule li,
  .nowrap {
    white-space: unset;
  }

  .image {
    display: none;
  }
  .circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 26px;
    margin: 30px 24px 50px 0;
  }
  .circle:first-child {
    margin: 20px 24px 50px 0;
  }
  .icon {
    max-width: 90px;
    max-height: fit-content;
  }
  h2 {
    font-size: 20px;
  }
  .aside-info{
flex-direction: column;
}

@media screen and (max-width: 540px) {
  .tab-buttons li {
    padding: 12px 16px;
    border-radius: 10px 20px 0 0;
  }
  .tab-buttons li.active {
    font-size: 17px;
  }
  .tab-buttons li {
    font-size: 14px;
  }
  .tab-content {
    border-radius: 10px;
  }
  .tab-buttons li.active::after {
    top: -54px;
    width: 60px;
    height: 60px;
  }
  .circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 22px;
    margin: 30px 16px 50px 0;
  }
  h2 {
    font-size: 18px;
  }
  .icon {
    max-width: 44px;
  }
  .schedule {
    min-height: 110px;
    padding: 10px 0 0 0;
  }
  .schedule li {
    font-size: 16px;
  }
}
