.box01 .container .contentIn img {
  background-color: #f3af02;
  padding: 7px;
  border-radius: 20px;
}

.box01 .container .pic img {
  background-color: #f3af02;
  padding: 7px;
  border-radius: 20px;
}

.tab {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 100px auto 0;
  width: 1300px;
}

.tab_cont {
  display: none;
  transition: 1s;
  width: 1300px;
  margin: 0 auto;
}

.tab_cont.active {
  display: block;
}

.tab li {
  border: 3px solid #eee;
  border-bottom: none;
  padding: 0.6em;
  width: 33.333%;
  text-align: center;
  transition: 1s;
}

.tab li:nth-child(2) {
  border-left: none;
  border-right: none;
}

.tab li.active {
  background: #eee;
}

#tab_cont-2 .box01 .container .contentIn img {
  background-color: #d76d77;
}

#tab_cont-2 .box01 .container .pic img {
  background-color: #d76d77;
}

#tab_cont-3 .box01 .container .contentIn img {
  background-color: #70abbb;
}

#tab_cont-3 .box01 .container .pic img {
  background-color: #70abbb;
}

#tab_cont-4 {
  display: flex;
  flex-wrap: wrap;
  margin: 20px auto;
  width: 1300px;
}

.tab li {
  color: White;
  background: LightGray;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  text-align: center;
  padding: 15px 0.5em;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border-radius: 20px 20px 0 0;
  flex: 1;
  font-size: 18px;
  transition: 0.3s;
  list-style: none;
}

.tab li:hover {
  opacity: 0.5;
  transition: 0.3s;
}

.tab li:not(:last-of-type) {
  margin-right: 5px;
}

#tab_btn-1.active {
  background: #f3af02;
}

#tab_btn-2.active {
  background: #d76d77;
}

#tab_btn-3.active {
  background: #70abbb;
}

.unaffiliated:after {
  content: "※所属していなくても利用できます";
  position: absolute;
  right: 10px;
  top: 24px;
  padding: 7px 30px;
  border-radius: 30px;
  font-size: 16px;
  background-color: #f1af01;
  color: #fff;
}

#tab_cont-2 .affiliation:after,
#tab_cont-2 .unaffiliated:after {
  background-color: #d76d77;
}

#tab_cont-2 .box02 .affiliation:after,
#tab_cont-2 .box02 .unaffiliated:after {
  right: 510px;
  top: 70px;
  padding: 5px 20px;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

#tab_cont-3 .affiliation:after,
#tab_cont-3 .unaffiliated:after {
  background-color: #70abbb;
}
.box01 .bnr,
.box02 .bnr {
  text-align: center;
  margin-top: 60px;
}
.box01 .bnr a:hover,
.box02 .bnr a:hover {
  opacity: 0.5;
  transition: 0.3s;
}

.attention {
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .box01 .container .contentIn img,
  .box01 .container .pic img {
    width: 670px;
    margin: 0 auto;
  }

  .box01 .container .contentIn p {
    margin: 60px auto 0;
  }

  .box01 .container .pic img:nth-child(n + 2) {
    margin-top: 30px;
  }

  .tab {
    width: 670px;
    margin: 0 auto;
  }

  .tab_cont {
    display: none;
    transition: 1s;
    width: 670px;
    margin: 0 auto;
  }

  .tab li {
    padding: 30px 0;
    font-size: 80%;
  }

  #tab_cont-2 .box02 .affiliation:after,
  #tab_cont-2 .box02 .unaffiliated:after {
    right: 266px;
    top: 137px;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 18px;
  }
}

@media (min-width: 769px) and (max-width: 1480px) {
  .box01 .container .contentIn img {
    width: 40%;
    margin-left: 0;
    margin-right: auto;
  }

  .box01 .container .pic {
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
  }

  .box01 .container .pic img {
    width: 29%;
  }

  .box01 .container .contentIn p {
    margin: 0 auto;
    width: 50%;
  }

  .tab {
    max-width: 1200px;
    min-width: 780px;
    width: 92%;
    margin: 80px auto 0;
  }

  .tab_cont {
    display: none;
    transition: 1s;
    max-width: 1200px;
    min-width: 780px;
    width: 92%;
    margin: 0 auto;
  }

  .tab_cont .box01 .container {
    width: 100%;
  }

  .tab li {
    padding: 30px 0;
    font-size: 1.2rem;
  }

  .tab_cont .box02 .container .pic {
    align-items: start;
  }

  .tab_cont .box02 .container img,
  .tab_cont .box02 .container .pic img,
  .tab_cont .box02 .container .pic.small img {
    width: 30%;
  }

  #tab_cont-2 .box02 .unaffiliated:after {
    right: calc(50% - 143px);
  }
}

.timetable {
  margin-bottom: 15px;
  color: #71af33;
  position: relative;
}

.timetable p {
  margin-top: 10px;
  color: #71af33;
}

.timetable table {
  border: solid 2px #90d14e;
  border-collapse: collapse;
  text-align: center;
  width: 1300px;
  margin: 0 auto;
}

.timetable table th,
.timetable table td {
  border: solid 1px #90d14e;
  border-collapse: collapse;
}

.timetable table th {
  background-color: #90d14e;
  color: #fff;
  height: 50px;
  font-size: 18px;
}

.timetable table td {
  height: 75px;
  padding: 6px;
  font-size: 18px;
}

.timetable table th {
  width: 14%;
}

.timetable p {
  margin-top: 20px;
}

.timetable::after {
  content: url(../../common/img/myougaman04.png);
  position: absolute;
  bottom: -100px;
  right: 190px;
}

.timetable::before {
  content: url(../../common/img/myougaman02.png);
  position: absolute;
  bottom: -110px;
  right: 390px;
}

@media (min-width: 769px) and (max-width: 1480px) {
  .timetable::after {
    right: 17%;
  }

  .timetable::before {
    right: 0;
  }
}

@media screen and (max-width: 768px) {
  .h3_02 {
    margin: 0 auto 90px;
  }

  #tab_cont-2 .box02 .affiliation:after,
  #tab_cont-2 .box02 .unaffiliated:after {
    right: 96px;
    top: 97px;
    font-size: 60%;
  }

  .unaffiliated:after {
    top: 114px;
    font-size: 0.8rem;
  }

  .timetable table {
    width: 670px;
  }

  .timetable table th {
    font-size: 0.8rem;
  }

  .timetable table td {
    height: 130px;
    padding: 10px;
    font-size: 0.7rem;
  }

  .timetable p {
    margin-bottom: 280px;
  }

  .timetable::before {
    bottom: -310px;
  }

  .timetable::after {
    bottom: -300px;
  }
}

@media (min-width: 769px) and (max-width: 1480px) {
  .timetable table {
    max-width: 1200px;
    min-width: 780px;
    width: 100%;
  }
}

.floatL {
  margin-bottom: 0;
}

.activity {
  margin-top: 60px;
}

#anchor01 {
  scroll-margin-top: 80px; /* ヘッダーの高さに合わせて調整 */
}

.box03 {
  width: 900px; /* 全体の幅 */
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* ヘッダーグループ */
.header-groups {
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
  margin-bottom: 60px;
}

.group-box {
  width: 280px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px; /* 角丸を大きく */
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.group-box.pink {
  background-color: #e57373; /* 赤系の色 */
}

/* 説明文 */

.description01 {
  text-align: center;
  margin: 20px 0;
  padding: 10px 0;
  color: #2a8c4f;
  font-weight: bold;
  position: absolute;
  background-color: #fff;
  width: 36%;
  left: 410px;
  font-size: 1.2rem;
  top: 392px;
}

.description02 {
  text-align: center;
  margin: 20px 0;
  padding: 10px 0;
  color: #ffb74c;
  font-weight: bold;
  position: absolute;
  background-color: #fff;
  width: 36%;
  left: 410px;
  font-size: 1.2rem;
  top: 703px;
}

/* セクションの枠線 */
.section {
  padding: 55px 20px 30px;
  margin-bottom: 70px;
}

.section.yellow-border {
  margin-bottom: 50px;
}

.section.green-border {
  border: 3px solid #5cb85c; /* 緑の太線 */
  border-radius: 30px;
}

.section.yellow-border {
  border: 3px solid #fbc02d; /* 黄色の太線 */
  border-radius: 30px;
}

/* 活動ボックスの行 */
.activity-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px; /* 行間の余白 */
}

.activity-box {
  width: 280px; /* ボックスの幅を均等に近づける */
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  color: white;
  text-align: center;
  padding: 5px;
  box-sizing: border-box; /* paddingを含めて幅を計算 */
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.activity a {
  color: #fff;
}

.activity-box.pink {
  background-color: #e57373;
}

.activity-box.blue {
  background-color: #70abbb; /* 青系の色 */
}

.activity-box.orange {
  background-color: #ffb74d; /* オレンジ系の色 */
}

.activity-box.empty {
  /* レイアウト調整用の透明なボックス */
  background-color: transparent;
  box-shadow: none;
}

/* 下部の活動と注意書き */
.bottom-activities {
  display: flex;
  align-items: flex-end; /* 下に揃える */
  justify-content: space-around;
  padding: 0 20px;
}

.bottom-activities .activity-box {
  width: 280px; /* 下部の活動ボックスの幅 */
  height: 60px;
}

.note {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
  margin: 0;
  width: 280px;
}

@media (min-width: 769px) and (max-width: 1480px) {
  .description01,
  .description02 {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
  }
   .header-groups {
    margin-bottom: 0;
  }
  .header-groups {
    flex-wrap: wrap;
  }
  .group-box {
    width: 100%;
    margin-bottom: 30px;
  }
  .activity-row {
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .section {
    margin-bottom: 0;
  }
  .activity-box {
    width: 100%;
    height: 70px;
    display: flex;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 30px;
  }

  .activity-box.empty {
    display: none;
  }
  .bottom-activities {
    flex-wrap: wrap;
  }
  .bottom-activities .activity-box {
    width: 100%;
  }
  .note {
    width: 100%;
    font-size: 1.2rem;
  }
}

@media (max-width: 769px) {
  .activity{
    font-size: .65rem;
  }
  .description01,
  .description02 {
    position: relative;
    width: 100%;
    left: 0;
    top: 0;
  }
  .header-groups {
    margin-bottom: 0;
  }
  .header-groups {
    flex-wrap: wrap;
  }
  .group-box {
    width: 100%;
    margin-bottom: 30px;
  }
  .activity-row {
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .section {
    margin-bottom: 0;
  }
  .activity-box {
    width: 100%;
    height: 80px;
    display: flex;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 30px;
  }

  .activity-box.empty {
    display: none;
  }
  .bottom-activities {
    flex-wrap: wrap;
  }
  .bottom-activities .activity-box {
    width: 100%;
  }
  .note {
    width: 100%;
    font-size: 1.2rem;
  }
}
