*:focus {
  outline: none;
}

.schools_listWrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

h3.searchschool_title {
  background-color: #000;
  color: #fff;
  font-size: 22px;
  width: auto;
  height: 45px;
  padding-top: 10px;
  /* 上 | 右 | 下 | 左 */
}

h3.searchschool_title img {
  margin-left: 20px;
}

.region>li {
  display: flex;
  margin: 20px 0 0 0;
  justify-content: center;
  flex-wrap: wrap;
}

/* エリア名 */
h3.ttl {
  width: 250px;
  font-size: 30px;
  text-align: center;
  margin-bottom: 10px;
}

.prefList {
  display: flex;
  margin: 20px 0 10px 0;
}

.prefList:first-child {
  margin-top: 0;
}

/* 都道府県ごとの設定 */
.prefName {
  width: 125px;
  height: 35px;
  font-size: 29px;
  color: #ffc700;
  text-align: center;
  margin-right: 30px;
}

.countryName {
  width: 130px;
  height: 31px;
  font-size: 20px;
  color: #ffc700;
  text-align: center;
  margin-right: 30px;
}


/* 各エリアの最後に付けるダミーリストの設定 */
.testPref {
  width: 125px;
  height: 0.5px;
  font-size: 1px;
  color: #fff;
  text-align: center;
  margin-right: 30px;
}

h3.prefName,
h3.countryName {
  border: 2px solid #ffc700;
}

/* アコーディオンメニュー */
summary {
  list-style: none;
  position: relative;
  margin-bottom: 5px;
  padding: 10px 35px 10px 20px;
  width: 380px;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  cursor: pointer;
}

.testList details summary {
  cursor: default;
  pointer-events: none;
}

summary::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  transition: transform 0.5s;
  font-size: 30px;
}

details[open] summary::after {
  content: "ー";
}

details.dummy summary::after {
  content: "";
}

.prefList>.dummy {
  height: 1px;
}

details>* {
  float: left;
}

details>div {
  padding: 0.5rem;
}

details[open] summary {
  height: 100%;
}

details[open] ul {
  width: 295px;
  margin-top: 13px;
  margin-bottom: 20px;
  margin-left: 10px;
}

/* ダミーリストの設定 */
.testList {
  color: #fff;
  margin: 0 0 0 0;
}

/* アイコン画像の設定 */
.subjectIcon {
  width: 20px;
  height: 20px;
}

.classInfo li {
  display: flex;
}

.Icons {
  margin-left: auto;
}

/* チェックボックス */
ul.subject {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

li>input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  margin: 0 6px 10px 0;
}

ul.subject>li {
  margin: 0 30px 0 30px;
}

ul.subject>li>label {
  cursor: pointer;
}

ul.subject>li>label>p {
  text-align: center;
  font-size: 15px;
}

ul.subject>li img {
  width: 100px;
  height: 100px;
  position: relative;
  /* 基準位置とする */
}

ul.subject>li>label {
  position: relative;
}

/* チェックした時に表示する画像 */
ul.subject>li .checkedImg {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  display: none;
  position: absolute;
  top: -35px;
  left: 70px; /* subjectIcon(100px) - checkedImg(30px) */
}

/** チェックONなら表示 */
li>input[type="checkbox"]:checked+label .checkedImg {
  display: inline;
}

li>input[type="checkbox"]:checked+label>img.subjectIcon {
  opacity: 0.6;
}

/* 絞り込み検索ボタン */
.submitButton {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1em 2em;
  width: 235px;
  color: #2285b1;
  background-color: #fff;
  border: 2px solid #2285b1;
  cursor: pointer;
}

.submitButton:hover {
  color: #fff;
  text-decoration: none;
  background-color: #6faec9;
}

.submitButton_text {
  font-size: 18px;
  font-weight: 600;
}

/* チェック解除ボタン */
.releaseButton {
  -webkit-appearance: none;
  appearance: none;
  justify-content: center;
  margin: 0 auto;
  padding: 0.4em 0.8em;
  width: 140px;
  color: #2285b1;
  background-color: #fff;
  border: 2px solid #2285b1;
  cursor: pointer;
}

.releaseButton:active {
  color: #fff;
  text-decoration: none;
  background-color: #6faec9;
}


/* エリアへの遷移リンク */
.areaLinks {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  margin: 10px auto;
}

.areaLinks>a {
  text-align: center;
  margin: 10px 5px;
  padding: 1em 2em;
  width: 235px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  background-color: #668ad8;
  border-radius: 50vh;
  transition: 0.3s;
}

.areaLinks>a:hover {
  text-decoration: none;
  background-image: linear-gradient(-170deg, #659de6, #5abab8);
}

.areaLinks>a:active {
  /*ボタンを押したとき*/
  -webkit-transform: translateY(4px);
  transform: translateY(4px);
  /*下に動く*/
  border-bottom: none;
  /*線を消す*/
}

/* 非表示機能 */
.dummy {
  pointer-events: none;
  height: 0px;
}

.blueLetter {
  color: blue;
  text-decoration: underline;
}

/* チェックボックスのカーソル変更 */
.subject input[type="checkbox"] {
  cursor: pointer;
}

.subject>form>li>label {
  cursor: pointer;
}

@media screen and (max-width: 1080px) {
  .prefList {
    display: inline-flex;
    margin-left: 10px;
  }

  .prefName,
  .countryName {
    margin: 15px 0 15px 0;
  }

  .areaLinks {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .region>li {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  details[open] ul {
    margin-left: 4%;
  }

  summary {
    font-size: 18px;
    width: 320px;
  }

  .areaLinks>a {
    font-size: 16px;
    margin: 3px 8px 3px 0;
    padding: 0.3em 0.6em;
  }

  h3.ttl {
    text-align: left;
    font-size: 29px;
  }

  .prefList {
    margin-left: 10px;
  }

  .prefName,
  .countryName {
    font-size: 22px;
  }

  ul.subject>li>label>p {
    width: 70px;
  }

  ul.subject>li img {
    width: 70px;
    height: 70px;
    /* 基準位置とする */
  }

  /* チェックした時に表示する画像 */
  ul.subject>li .checkedImg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    top: -15px;
    left: 50px; /* subjectIcon(70px) - checkedImg(20px) */
  }

  ul.subject>li {
    margin: 0 15px 10px 15px;
  }

  .testList {
    display: none;
  }
}

@media screen and (max-width: 685px) {

  /* チェック解除ボタン */
  .releaseButton {
    margin-bottom: 10px;
    margin-left: 5px;
    padding: 0.2em 0.4em;
    width: 130px;
  }

  summary {
    font-size: 17px;
    width: 260px;
  }

  .prefList {
    margin: 0;
    margin-left: 10px;
  }

  details[open] ul {
    width: 220px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .prefName,
  .countryName {
    height: 24px;
    font-size: 18px;
  }
}

@media screen and (max-width: 550px) {

  .prefName,
  .countryName {
    height: 20px;
    font-size: 12px;
  }
}

@media screen and (max-width: 350px) {
  ul.classInfo {
    margin-left: 25px;
  }

  h3.ttl {
    font-size: 27px;
  }

  summary {
    font-size: 16px;
    width: 220px;
  }

  details[open] ul {
    width: 200px;
  }
}