.anzen-classroom {
  max-width: 1000px;
  margin: 0 auto;
  color: #222;
  line-height: 1.75;
}

.anzen-classroom p {
  margin: 0;
}

.anzen-classroom__intro,
.anzen-classroom__section {
  margin-bottom: 56px;
}

.anzen-classroom__heading,
.anzen-classroom__section-title {
  margin: 0 0 24px;
}

.anzen-classroom__media,
.anzen-classroom__lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.anzen-classroom__intro-body > img,
.anzen-classroom__media > img,
.anzen-classroom__lesson > img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.anzen-classroom__media {
  grid-template-columns: 320px minmax(0, 1fr);
}

.anzen-classroom__menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 56px;
}

.anzen-classroom__menu a {
  display: flex;
  min-height: 54px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.anzen-classroom__menu a:hover,
.anzen-classroom__menu a:focus-visible {
  background: var(--blue);
  color: #fff;
  opacity: 1;
}

.anzen-classroom__table {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  margin: 24px 0 14px;
  border: 1px solid #dfe3ec;
}

.anzen-classroom__table dt,
.anzen-classroom__table dd {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid #dfe3ec;
}

.anzen-classroom__table dt {
  background: #f3f5f9;
  font-weight: 700;
}

.anzen-classroom__table dd:last-child,
.anzen-classroom__table dt:nth-last-of-type(1) {
  border-bottom: 0;
}

.anzen-classroom__table a {
  color: var(--blue);
  font-weight: 700;
}

.anzen-classroom__notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.anzen-classroom__notes li::before {
  content: "※ ";
}

.anzen-classroom__curriculum {
  margin-bottom: 56px;
}

.anzen-classroom__lesson {
  grid-template-columns: 320px minmax(0, 1fr);
  margin: 0 0 38px;
}

.anzen-classroom__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: application;
}

.anzen-classroom__steps > li {
  margin-bottom: 30px;
  counter-increment: application;
}

.anzen-classroom__lesson h4 {
  margin-top: 0;
}

.anzen-classroom__steps h3 {
  padding-left: 3rem;
}

.anzen-classroom__steps h3::before {
  content: counter(application) ". ";
  color: var(--blue);
}

@media (max-width: 767px) {
  .anzen-classroom {
    font-size: 15px;
  }

  .anzen-classroom__intro,
  .anzen-classroom__section,
  .anzen-classroom__curriculum {
    margin-bottom: 40px;
  }

  .anzen-classroom__heading,
  .anzen-classroom__section-title {
    margin-bottom: 20px;
    font-size: 21px;
  }

  .anzen-classroom__intro-body,
  .anzen-classroom__media,
  .anzen-classroom__lesson {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .anzen-classroom__intro-body > img,
  .anzen-classroom__media > img,
  .anzen-classroom__lesson > img {
    max-width: 480px;
    margin: 0 auto;
  }

  .anzen-classroom__menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 40px;
  }

  .anzen-classroom__menu a {
    min-height: 52px;
    padding-inline: 8px;
    font-size: 14px;
  }

  .anzen-classroom__table {
    grid-template-columns: 110px minmax(0, 1fr);
    font-size: 14px;
  }

  .anzen-classroom__table dt,
  .anzen-classroom__table dd {
    padding: 10px 12px;
  }

  .anzen-classroom__lesson {
    margin-bottom: 32px;
  }

  .anzen-classroom__lesson h2,
  .anzen-classroom__steps h3 {
    font-size: 18px;
  }
}

.kasokei-tag-mini-table {
  margin-block: 20px;
}

.kasokei-tag-mini-table th {
  background-color: #53489b;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 10px;
  border: 1px solid #53489b;
  width: 33.3%;
  text-align: center;
}

.kasokei-tag-mini-table thead th:nth-child(n + 2) {
  border-left: 1px solid #d9e2ec;
}

.kasokei-tag-mini-table thead th:not(:last-child) {
  border-right: 1px solid #d9e2ec;
}

.kasokei-tag-mini-table td {
  font-weight: bold;
}

.kasokei-tag-mini-table td {
  background-color: #ffffff;
  color: #333333;
  font-size: 14px !important;
  padding: 18px 10px;
  border: 1px solid #d9e2ec;
  text-align: center;
}

@media (min-width: 640px) {
  .kasokei-tag-mini-table td {
    font-size: 16px !important;
  }
}

.anzen-classroom.target .anzen-classroom__section {
  margin-bottom: 80px;
}

.anzen-classroom.target .description {
  margin-bottom: 40px;
}

.anzen-classroom.target .anzen-classroom__menu {
  display: flex;
  justify-content: center;
}

.anzen-classroom.target .anzen-classroom__menu a {
  border: none;
  font-size: 15px;
  min-width: 150px;
}

.anzen-classroom.target .anzen-classroom__menu a.child {
  background-color: #efcb00;
  border: 1px solid #efcb00;
  color: #161616;
}

.anzen-classroom.target .anzen-classroom__menu a.adult {
  background-color: #53489b;
  border: 1px solid #53489b;
  color: #fff;
}

.anzen-classroom.target .anzen-classroom__menu a:hover {
  background-color: #fff;
}

.anzen-classroom.target .anzen-classroom__menu a.adult:hover {
  color: #53489b;
}

@media (min-width: 640px) {
  .anzen-classroom.target .anzen-classroom__menu a {
    min-width: 294px;
  }
}

.anzen-classroom.target .anzen-classroom__curriculum {
  background-color: #eef4fc;
  padding: 40px 20px;
}

.anzen-classroom.target .anzen-classroom__curriculum .headline {
  text-align: center;
  font-size: 20px;
  margin: 0 0 24px;
}

.anzen-classroom.target .anzen-classroom__curriculum .list h5 {
  padding-left: 0;
  margin: 10px 0 4px;
}

.anzen-classroom.target .anzen-classroom__curriculum .list h5:before {
  content: none;
}

.anzen-classroom.target .anzen-classroom__curriculum .list h5 span {
  font-size: 13px;
}

.anzen-classroom.target .anzen-classroom__curriculum .list h5 span.label {
  background-color: #fff;
  border: 1px solid #53489b;
  border-radius: 4px;
  color: #53489b;
  padding: 4px 10px;
  vertical-align: 2px;
  margin-left: 10px;
}

.anzen-classroom.target .anzen-classroom__curriculum .list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 40px;
}

.anzen-classroom.target .anzen-classroom__curriculum .list p {
  font-size: 16px;
}

.anzen-classroom.target .anzen-classroom__curriculum .notes {
  margin-top: 30px;
  padding-left: 20px;
}

.anzen-classroom.target .anzen-classroom__curriculum .notes li {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.6;
  margin: 0 0 4px 0;
}

@media (min-width: 640px) {
  .anzen-classroom.target .anzen-classroom__curriculum .list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
  }
}

.anzen-classroom.target .btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  padding: 10px;
  border-radius: 999px;
  font-weight: bold;
  background-color: #53489b;
  color: #fff;
  font-size: 18px;
}

.anzen-classroom.target .btn a:hover {
  opacity: 1;
  background: var(--yellow);
  border-color: var(--yellow);
  color: #333;
}

.anzen-classroom.target .anzen-flow__section ol {
  list-style: none;
  padding-left: 0;
}

.anzen-classroom.target .anzen-flow__section li {
  background-color: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
  position: relative;
}

.anzen-classroom.target .anzen-flow__section li .inner {
  overflow: hidden;
  border: 1px solid #53489b;
  border-radius: 8px;
}

.anzen-classroom.target .anzen-flow__section li:not(:last-child):after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 14px 0 14px;
  border-color: #efcb00 transparent transparent transparent;
  z-index: 0;
}

.anzen-classroom.target .anzen-flow__section li:not(.info) h4 {
  background-color: #53489b;
  color: #fff;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.anzen-classroom.target .anzen-flow__section li:not(.info) p {
  padding: 20px;
  text-align: left;
}

.anzen-classroom.target .anzen-flow__section li.info .inner {
  padding: 20px;
}

.anzen-classroom.target .anzen-flow__section li.info p {
  font-weight: bold;
}

.anzen-classroom.target .anzen-flow__section li.info h4 {
  margin: 0;
  color: #222;
  font-size: 15px;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dl {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-weight: bold;
  margin-block: 10px;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dt,
.anzen-classroom.target .anzen-flow__section li.info .tel-fax dd {
  line-height: 1;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dt {
  font-size: 18px;
  padding: 0 6px 3px 0;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dd,
.anzen-classroom.target .anzen-flow__section li.info .tel-fax dd a {
  color: #53489b;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dd {
  font-size: 24px;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dd a {
  text-decoration: none;
}

.anzen-classroom.target .anzen-flow__section li.info .tel-fax dd a:hover {
  text-decoration: underline;
}

.anzen-classroom.target .anzen-flow__section li.info .btn {
  margin: 20px 0 0;
}

@media (max-width: 639px) {
  .anzen-classroom.target .anzen-flow__section li.info .btn a {
    min-width: 280px;
    font-size: 15px;
  }
}

@media (min-width: 640px) {
  .anzen-classroom.target .anzen-flow__section li:not(.info) h4 {
    font-size: 20px;
  }

  .anzen-classroom.target .anzen-flow__section li.info h4 {
    font-size: 28px;
  }

  .anzen-classroom.target .anzen-flow__section li.info .inner {
    padding-block: 40px;
  }

  .anzen-classroom.target .anzen-flow__section li.info .tel-fax {
    display: flex;
    justify-content: center;
    column-gap: 40px;
  }

  .anzen-classroom.target .anzen-flow__section li.info .tel-fax dd {
    font-size: 30px;
  }
}
