@charset "UTF-8";
:root {
  --or: #f08700;
}

main * {
  font-family: "Noto Sans JP", sans-serif;
}
main .pc {
  display: block;
}
@media screen and (max-width: 768px) {
  main .pc {
    display: none;
  }
}
main .sp {
  display: none;
}
@media screen and (max-width: 768px) {
  main .sp {
    display: block;
  }
}

.ttl_area {
  text-align: center;
}

.filter {
  margin: 0 auto 100px;
}
.filter .inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 40px;
  border-radius: 5px;
  background: #f6f6f6;
}
@media screen and (max-width: 768px) {
  .filter .inner {
    padding: 20px 5%;
  }
}
.filter .inner h2 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 22px;
  color: var(--or);
}
@media screen and (max-width: 768px) {
  .filter .inner h2 {
    font-size: 18px;
  }
}
.filter .inner h2 img {
  width: 22px;
}
@media screen and (max-width: 768px) {
  .filter .inner h2 img {
    width: 20px;
  }
}
.filter .inner .filter_wrap {
  display: grid;
  grid-template-columns: 135px 1fr;
}
@media screen and (max-width: 768px) {
  .filter .inner .filter_wrap {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
.filter .inner .filter_wrap.grade {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}
@media screen and (max-width: 768px) {
  .filter .inner .filter_wrap.grade {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .filter .inner .filter_wrap.grade ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
.filter .inner .filter_wrap p {
  font-size: 18px;
  line-height: 1;
}
.filter .inner .filter_wrap ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 150px));
  gap: 7px;
}
@media screen and (max-width: 768px) {
  .filter .inner .filter_wrap ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
.filter .inner .filter_wrap ul li label {
  --c1: #878787;
  --c2: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1;
  color: var(--c1);
  border: 1px solid var(--c1);
  background: var(--c2);
}
.filter .inner .filter_wrap ul li label:has(:checked) {
  --c1: var(--or);
  --c2: #ffeedb;
}
@media screen and (max-width: 768px) {
  .filter .inner .filter_wrap ul li label {
    font-size: 14px;
  }
}

.filter .inner input[type="radio"] {
  display: block;
  width: 0;
  min-width: 0;
}

.filter .inner button {
  margin: 30px auto 10px;
  width: 240px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background: var(--or);
  border-radius: 5px;
  cursor: pointer;
}
.filter .inner p.reset {
  text-align: center;
  font-size: 14px;
  color: #b6b6b6;
  text-decoration: underline;
  cursor: pointer;
}

.article {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}
.article ul.voices > li {
  padding: 45px 60px;
  border: 1px solid #8d8d8d;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li {
    padding: 20px 5%;
  }
}
.article ul.voices > li:not(:last-child) {
  margin-bottom: 20px;
}
.article ul.voices > li .ttl_area {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px 30px;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #d9d9d9;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li .ttl_area {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto 1fr;
    gap: 10px 15px;
  }
}
.article ul.voices > li .ttl_area .grade {
  grid-column: 1/2;
  grid-row: 1/3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  aspect-ratio: 1;
  border-radius: 100px;
  background: #eb7464;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li .ttl_area .grade {
    grid-column: 1/2;
    grid-row: 1/2;
    font-size: 15px;
  }
}
.article ul.voices > li .ttl_area .grade:not(:has(br)) {
  background: #55a5eb;
}
.article ul.voices > li .ttl_area .school {
  grid-column: 2/3;
  grid-row: 1/2;
  text-align: left;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li .ttl_area .school {
    grid-column: 1/2;
    grid-row: 2/3;
  }
}
.article ul.voices > li .ttl_area .school span {
  display: inline-block;
  text-align: center;
  font-size: 16px;
  line-height: 1;
  padding: 5px 10px;
  min-width: 110px;
  color: var(--or);
  background: #fff;
  border: 1px solid var(--or);
  border-radius: 5px;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li .ttl_area .school span {
    padding: 5px;
    line-height: 1.4;
    min-width: 100%;
    font-size: 12px;
  }
}
.article ul.voices > li .ttl_area h2 {
  grid-column: 2/3;
  grid-row: 2/3;
  text-align: left;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;

  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li .ttl_area h2 {
    grid-column: 2/3;
    grid-row: 1/3;
    font-size: 14px;
  }
}
.article ul.voices > li span.msg {
  font-size: 16px;
  line-height: 2;

  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;

  display: block;
  position: relative;
  /*margin-bottom: 16px;*/
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li span.msg {
    font-size: 14px;
  }
}

/*.article ul.voices > li span.msg > p {*/
.article ul.voices > li span.msg span.content {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  margin: 16px 16px 32px;
}
/*@media screen and (max-width: 768px) {*/
@media screen and (max-width: 768px) {
  .article ul.voices > li span.msg span.content {
    -webkit-line-clamp: 5;
  }
}

.article ul.voices > li span.msg .toggle-checkbox {
  display: none;
}

/*.article ul.voices > li span.msg .toggle-checkbox:checked ~ p {*/
.article ul.voices > li span.msg .toggle-checkbox:checked ~ span.content {
  -webkit-line-clamp: unset;
  white-space: normal;
  margin: 16px;
}

.article ul.voices > li span.msg .toggle-checkbox ~ .toggle-btn::after {
  content: '続きを見る ＞';
}

.article ul.voices > li span.msg .toggle-btn {
  position: absolute;
  top: 112px;
  right: 16px;

  display: inline-block;
  margin-top: 8px;
  color: blue;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
@media screen and (max-width: 768px) {
  .article ul.voices > li span.msg .toggle-btn {
    top: 150px;
    right: 16px;
  }
}

.article ul.voices > li span.msg .toggle-checkbox:checked ~ .toggle-btn::after {
  content: '';
}

/*ページネーション*/
section.pagenation {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 100px;
}

section.pagenation .wrap {
  display: inline-block;
  width: auto;
}

ul.page-numbers {
  display: flex;
  gap: 0.5rem;
}
ul.page-numbers.sp {
  display: none;
}
@media screen and (max-width: 768px) {
  ul.page-numbers.pc {
    display: none;
  }
  ul.page-numbers.sp {
    display: flex;
    gap: 0.5rem;
  }
}

ul.page-numbers li:has(.current) {
  display: inline-block;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #f29600;
}

ul.page-numbers li a {
  display: inline-block;
  color: #f29600;
  border-radius: 50%;
  border: 2px solid #f29600;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 36px;
  text-align: center;
  background-color: #fff;
}

ul.page-numbers li span.dots {
  display: inline-block;
  height: 40px;
  line-height: 36px;
}

ul.page-numbers li a:has(i) {
  border: none;
  width: auto;
}

ul.page-numbers i {
  line-height: 40px;
}

ul.page-numbers li a:hover {
  background-color: #f29600;
  color: white;
}

ul.page-numbers .disabled a {
  display: none;
}

ul.page-numbers li.skip span {
  border: none;
  color: #000;
  width: auto;
  background: none;
}

ul.page-numbers li.skip a {
  border: none;
  color: #000;
  width: auto;
}

ul.page-numbers li.before a,
ul.page-numbers li.after a {
  border: none;
  width: auto;
}

ul.page-numbers li:has(i) a:hover,
ul.page-numbers li:has(i) a:hover {
  background-color: initial;
  color: #ccc;
}

/*ページネーション*/
