@charset "utf-8";

main.result {
  margin: 0 auto;
  padding-top: 400px;
}

@media screen and (max-width: 500px) {
  main.result {
    padding-top: 300px;
  }
}

@media screen and (min-width: 1101px) {
  .menu-btn {
    top: -313px !important;
  }
}

.h3_top {
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  color: #fff !important;
  background-color: #AD84C6;
  margin: 0 auto !important;
}

main.result .from-survey {
  margin: 0 auto 2em;
  font-size: 18px;
  text-align: center;
}

main.result .proven_result h3 {
  margin: 1em 0;
  padding: 0.125em 1em;
  border-bottom: 1px solid #ccc;
  text-align: center;
  line-height: 1.25;
}

main.result .proven_result h4 {
  margin: 3em 0 1em;
  padding: 0.25em 1em;
  background-color: #E0EBF6;
  text-align: center;
  line-height: 1.25;
  color: #246;
}

main.result .proven_result h4:first-of-type {
  margin-top: 0;
}

main.result .proven_result .experiences {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

main.result .proven_result .experiences .experience {
  display: flex;
  flex-direction: column;
  width: 10em;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  font-size: 16px;
  text-align: center;
}

@media screen and (max-width: 500px) {
  main.result .proven_result .experiences .experience {
    font-size: 12px;
  }
}

main.result .proven_result .experiences .experience dt {
  margin: 0;
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
  text-indent: 0;
  color: #333;
  font-size: 1.2em;
  font-weight: normal;
}

main.result .proven_result .experiences .experience dd {
  margin: 0;
  padding: 0.5rem 0.5rem 1rem;
  text-align: center;
  text-indent: 0;
  color: #356;
  font-size: 2em;
  font-weight: bold;
}

main.result .proven_result .experiences .experience dd .unit {
  font-size: 0.5em;
  font-weight: normal;
}

/* Children Voices Pie Charts */
main.result .children_voices {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

main.result .children_voice {
  width: 500px;
  position: relative;
}

main.result .children_voice.childrenVoiceTable {
  width: 500px;
}

main.result .children_voice h5 {
  margin: 1em 0 1em;
  text-align: center;
  font-size: 1.3em !important;
  font-weight: bold;
  line-height: 1.2;
}

main.result .children_voice.childrenVoiceTable table {
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid #ccc;
}

main.result .children_voice.childrenVoiceTable th {
  padding: 0.5em;
  background-color: #fce7de;
  border: 1px solid #ccc;
  text-align: center;
  font-weight: bold;
}

main.result .children_voice.childrenVoiceTable table td {
  padding: 0.5em;
  border: 1px solid #ccc;
}

main.result .children_voice.childrenVoiceTable table td.ta_center {
  text-align: center;
}

main.result .children_voice.childrenVoiceTable table td.ta_right {
  text-align: right;
}

main.result .children_voice .chart_wrapper {
  width: 100%;
  height: 400px;
}

main.result .graph_teacher_review {
  width: 100%;
  height: 800px;
}

@media screen and (max-width: 768px) {
  main.result {
    width: 100%;
  }

  main.result .proven_result h4 {
    font-size: 1.6em !important;
  }

  main.result .children_voice h5 {
    font-size: 1.5em !important;
  }

  main.result .children_voices {
    flex-direction: column;
    align-items: center;
  }

  main.result .children_voice.childrenVoiceTable table td {
    font-size: 1.2em;
  }

  main.result .children_voice {
    width: 90%;
    max-width: 400px;
    /* スマホでの最大幅を調整 */
    height: auto;
  }

  main.result .children_voice .chart_wrapper {
    width: 100%;
    height: auto;
  }

  main.result .graph_teacher_review {
    width: 95%;
    height: 800px;
    margin: 0 auto;
  }
}

/* School Voice Layout */
.school_voice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

main.result .school_voice:nth-child(odd) {
  flex-direction: row-reverse;
}

main.result .school_voices h3 {
  margin: 3em 0 1em;
  padding: 0.25em 1em;
  background-color: #E0EBF6;
  font-size: 24px !important;
  text-align: center;
  line-height: 1.25;
  color: #246;
}


.school_voice_content {
  width: 56%;
}

.school_voice_text {
  margin: 1em 0;
  font-weight: normal;
  line-height: 1.5;
}

.school_voice_image_wrapper {
  width: 40%;
  height: auto;
  position: relative;
}

.school_voice_image_wrapper:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 1em 1em #fff;
}

.school_voice_image {
  width: 100%;
  height: auto;
  outline: 2px solid #fff;
  outline-offset: -2px;
}

@media screen and (max-width: 768px) {
  main.result .school_voices h3 {
    font-size: 1.6em !important;
  }

  .school_voice {
    display: flex;
    align-items: flex-start;
  }

  .school_voice:nth-child(even) {
    flex-direction: row;
  }

  .school_voice_image_wrapper {
    width: 30%;
  }

  .school_voice_content {
    width: 70%;
    padding-left: 1rem;
  }
}