/* Prefecture page responsive additions */
.eriaPage .prefPage {
  --pref-color: #f2a91f;
}

.eriaPage .prefPage .ken_main,
.eriaPage .prefPage .ken_01,
.eriaPage .prefPage .ken_02,
.eriaPage .prefPage .taiken_point,
.eriaPage .prefPage .shi_start,
.eriaPage .prefPage .ken_qa,
.eriaPage .prefPage .test_taisaku,
.eriaPage .prefPage .shi_blackbord {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.eriaPage .prefPage .shi_top_text,
.eriaPage .prefPage .shi_shidou_h,
.eriaPage .prefPage .ken_h2,
.eriaPage .prefPage .ken_qa_ttl {
  margin: 0 0 16px;
  color: #444;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
}

.eriaPage .prefPage .shi_top_text {
  position: relative;
  margin: 0 auto 18px;
  padding: 20px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--pref-color);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}

.eriaPage .prefPage .shi_top_text strong {
  color: #fff;
}

.eriaPage .prefPage .shi_top_text::after {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 20px;
  height: 20px;
  background: var(--pref-color);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.eriaPage .prefPage .shi_shidou_h strong {
  color: var(--pref-color);
}

.eriaPage .prefPage .moveRight {
  margin: 0 0 14px;
  color: #777;
  font-size: 13px;
  text-align: right;
}

.eriaPage .prefPage .ken_02,
.eriaPage .prefPage .ken_01,
.eriaPage .prefPage .taiken_point,
.eriaPage .prefPage .ken_qa,
.eriaPage .prefPage .test_taisaku,
.eriaPage .prefPage .shi_blackbord {
  margin-bottom: 30px;
}

.eriaPage .prefPage .ken_h2_ttl,
.eriaPage .prefPage .ken_h2_ttl_02,
.eriaPage .prefPage .ken_h2_ttl_03,
.eriaPage .prefPage .ken_h2_qattl {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 6px solid var(--pref-color);
  border-radius: 6px;
  background: #fffdf6;
}

.eriaPage .prefPage .ken_h2_ttl img,
.eriaPage .prefPage .ken_h2_qattl img {
  display: none;
}

.eriaPage .prefPage .ken_h2_ttl .ken_h2,
.eriaPage .prefPage .ken_h2_ttl_02 .ken_h2,
.eriaPage .prefPage .ken_h2_ttl_03 .ken_h2,
.eriaPage .prefPage .ken_h2_qattl .ken_qa_ttl {
  margin: 0;
  text-align: left;
}

.eriaPage .prefPage .areaPrefHotEntryList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eriaPage .prefPage .areaPrefHotEntryList li {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  line-height: 1.6;
}

.eriaPage .prefPage .areaPrefHotEntryList li a {
  color: #444;
  text-decoration: none;
}

.eriaPage .prefPage .areaPrefHotEntryList li a:hover {
  color: var(--pref-color);
  text-decoration: underline;
}

.eriaPage .prefPage .areaPrefHotEntryDate {
  display: inline-block;
  margin-right: 8px;
  color: var(--pref-color);
  font-weight: bold;
}

.eriaPage .prefPage #taiken_check {
  max-width: 720px;
  margin: 0 auto 30px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.eriaPage .prefPage #taiken_check h2 {
  margin: 0 0 14px;
  color: #444;
  font-size: 28px;
  text-align: center;
}

.eriaPage .prefPage #taiken_check h2 span,
.eriaPage .prefPage .shi_h3_new span,
.eriaPage .prefPage .red {
  color: #e85a4f;
}

.eriaPage .prefPage .taiken_check_block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.eriaPage .prefPage .taiken_check_block br,
.eriaPage .prefPage #arrow {
  display: none;
}

.eriaPage .prefPage .taiken_check_block input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.eriaPage .prefPage .taiken_check_block label {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 11px 12px 11px 42px;
  border: 2px solid #f0e3bf;
  border-radius: 8px;
  background: #fffdf6;
  color: #444;
  font-weight: bold;
  line-height: 1.45;
  cursor: pointer;
}

.eriaPage .prefPage .taiken_check_block label::before {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--pref-color);
  border-radius: 4px;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.eriaPage .prefPage .taiken_check_block input:checked + label {
  border-color: var(--pref-color);
  background: #fff6dd;
}

.eriaPage .prefPage .taiken_check_block input:checked + label::before {
  background: var(--pref-color);
  box-shadow: inset 0 0 0 3px #fff;
}

.eriaPage .prefPage #total {
  margin-top: 14px;
  text-align: center;
}

.eriaPage .prefPage .shi_h3_new {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 6px solid var(--pref-color);
  border-radius: 6px;
  background: #fff;
  color: #444;
  font-size: 20px;
  line-height: 1.5;
}

.eriaPage .prefPage .test_taisaku,
.eriaPage .prefPage .taiken_point,
.eriaPage .prefPage .shi_start {
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  line-height: 1.8;
}

.eriaPage .prefPage .taiken_point_01,
.eriaPage .prefPage .taiken_point_02,
.eriaPage .prefPage .taiken_point_03 {
  margin: 18px 0;
  padding: 18px;
  border-left: 6px solid var(--pref-color);
  border-radius: 8px;
  background: #fffdf6;
}

.eriaPage .prefPage .taiken_point_01 h3,
.eriaPage .prefPage .taiken_point_02 h3,
.eriaPage .prefPage .taiken_point_03 h3 {
  margin: 0 0 8px;
  color: #444;
  font-size: 20px;
  line-height: 1.45;
}

.eriaPage .prefPage .feature_link a,
.eriaPage .prefPage .rinen_links a,
.eriaPage .prefPage .moveRight a,
.eriaPage .prefPage .shi_start a,
.eriaPage .prefPage .entrance_dl dd a {
  color: #0894cf;
  font-weight: bold;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.eriaPage .prefPage .yaruki_link {
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.8;
}

.eriaPage .prefPage .feature_gakunen {
  margin: 0;
  line-height: 1.8;
}

.eriaPage .prefPage .eriaDetail {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.eriaPage .prefPage .eriaDetail li {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 64px;
  padding: 0 !important;
  border: 2px solid var(--pref-color);
  border-radius: 10px;
  background: #fff;
  color: var(--pref-color);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
}

.eriaPage .prefPage .eriaDetail li a,
.eriaPage .prefPage .eriaDetail li span {
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.eriaPage .prefPage .eriaDetail li a {
  background: var(--pref-color);
  color: #fff;
}

.eriaPage .prefPage .eriaDetail li span {
  background: transparent;
  color: var(--pref-color);
}

.eriaPage .prefPage .eriaDetail li a::before {
  display: none;
}

.eriaPage .prefPage .eriaDetail li a:hover {
  filter: brightness(1.05);
}

.eriaPage .prefPage .ken_01 > p,
.eriaPage .prefPage .ken_02 > p,
.eriaPage .prefPage .test_taisaku p {
  line-height: 1.85;
}

.eriaPage .prefPage img.res,
.eriaPage .prefPage .res img {
  max-width: 100%;
  height: auto;
}

.eriaPage .prefPage .ken_qa dl {
  margin: 0;
}

.eriaPage .prefPage .ken_qa dt {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 6px 6px 0 0;
  background: var(--pref-color);
  color: #fff;
  font-weight: bold;
  line-height: 1.5;
}

.eriaPage .prefPage .ken_qa dd {
  margin: 0;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
  line-height: 1.8;
}

.eriaPage .prefPage .shi_start {
  position: relative;
  margin-top: 26px;
  padding: 24px 26px;
  border: 3px solid #f2d48a;
  background: #fffefa;
  line-height: 1.9;
}

.eriaPage .prefPage .shi_start::before,
.eriaPage .prefPage .ken_02:has(.eria_ken_hensachi_01)::before,
.eriaPage .prefPage .ken_02:has(.entrance_dl)::before {
  content: none;
}

.eriaPage .prefPage .shi_start h2,
.eriaPage .prefPage .shi_start h3 {
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: #fff7df;
  color: #444;
  font-size: 22px;
  line-height: 1.45;
  text-align: left;
}

.eriaPage .prefPage .shi_start h4,
.eriaPage .prefPage .shi_start p strong {
  color: #444;
  font-size: 18px;
}

.eriaPage .prefPage .shi_start p {
  margin: 0 0 16px;
  color: #444;
  text-align: left;
}

.eriaPage .prefPage .shi_start p:has(a) {
  margin: 20px 0;
  padding: 14px 16px;
  border: 2px dashed #bfe6f8;
  border-radius: 8px;
  background: #f7fcff;
  text-align: center;
}

.eriaPage .prefPage .ken_02:has(.eria_ken_hensachi_01),
.eriaPage .prefPage .ken_02:has(.entrance_dl) {
  position: relative;
  padding: 22px 24px;
  border: 3px solid #f2d48a;
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.04);
}

.eriaPage .prefPage .ken_02:has(.entrance_dl) > p {
  margin: 0 0 16px;
  line-height: 1.9;
  text-align: left;
}

.eriaPage .prefPage .eria_ken_hensachi_01,
.eriaPage .prefPage .eria_ken_jyuken {
  margin: 22px 0 14px;
  padding: 13px 16px;
  border-left: 6px solid var(--pref-color);
  border-radius: 8px;
  background: #fff7df;
  color: #444;
  font-size: 20px;
  line-height: 1.5;
  text-align: left;
}

.eriaPage .prefPage .entrance_dl {
  margin: 16px 0 22px;
  padding: 0;
}

.eriaPage .prefPage .entrance_dl dt {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  background: var(--pref-color);
  color: #fff;
  font-weight: bold;
  line-height: 1.5;
}

.eriaPage .prefPage .entrance_dl dd {
  margin: 0;
  padding: 14px 16px 16px;
  border: 2px solid #f2d48a;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: #444;
  line-height: 1.9;
  text-align: left;
}

.eriaPage .prefPage .entrance_dl dd:empty {
  display: none;
}

@media screen and (max-width: 767px) {
  .eriaPage .prefPage {
    padding-inline: 10px;
  }

  .eriaPage .prefPage .shi_top_text,
  .eriaPage .prefPage .shi_shidou_h,
  .eriaPage .prefPage .ken_h2,
  .eriaPage .prefPage .ken_qa_ttl {
    font-size: 21px;
  }

  .eriaPage .prefPage .shi_top_text {
    padding: 16px 12px;
  }

  .eriaPage .prefPage .taiken_check_block {
    grid-template-columns: 1fr;
  }

  .eriaPage .prefPage .areaPrefHotEntryDate {
    display: block;
    margin: 0 0 2px;
  }

  .eriaPage .prefPage #taiken_check,
  .eriaPage .prefPage .test_taisaku,
  .eriaPage .prefPage .taiken_point,
  .eriaPage .prefPage .shi_start,
  .eriaPage .prefPage .ken_02:has(.eria_ken_hensachi_01),
  .eriaPage .prefPage .ken_02:has(.entrance_dl) {
    padding: 14px;
  }

  .eriaPage .prefPage .eriaDetail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .eriaPage .prefPage .eriaDetail li {
    min-height: 58px;
    font-size: 15px;
  }

  .eriaPage .prefPage .eriaDetail li a,
  .eriaPage .prefPage .eriaDetail li span {
    min-height: 54px;
  }

  .eriaPage .prefPage .taiken_point_01,
  .eriaPage .prefPage .taiken_point_02,
  .eriaPage .prefPage .taiken_point_03 {
    padding: 14px;
  }

  .eriaPage .prefPage .shi_start h2,
  .eriaPage .prefPage .shi_start h3 {
    padding: 11px 12px;
    font-size: 19px;
  }

  .eriaPage .prefPage .shi_start h4,
  .eriaPage .prefPage .shi_start p strong {
    font-size: 17px;
  }

  .eriaPage .prefPage .eria_ken_hensachi_01,
  .eriaPage .prefPage .eria_ken_jyuken {
    padding: 11px 12px;
    font-size: 18px;
  }

  .eriaPage .prefPage .entrance_dl dt {
    padding: 9px 12px;
  }

  .eriaPage .prefPage .entrance_dl dd {
    padding: 12px;
  }
}
/* Mobile prefecture area button grid fix */
@media screen and (max-width: 767px) {
  .eriaPage .prefPage .eriaDetail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
    margin: 12px 0 24px;
    padding: 0;
  }

  .eriaPage .prefPage .eriaDetail li {
    width: auto !important;
    min-width: 0;
    min-height: 54px;
    margin: 0 !important;
    border-radius: 9px;
    font-size: 14px;
  }

  .eriaPage .prefPage .eriaDetail li a,
  .eriaPage .prefPage .eriaDetail li span {
    min-height: 50px;
    padding: 8px 6px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .eriaPage .prefPage .eriaDetail + h3,
  .eriaPage .prefPage .eriaDetail + h4 {
    margin-top: 28px;
  }
}

@media screen and (max-width: 374px) {
  .eriaPage .prefPage .eriaDetail {
    grid-template-columns: 1fr;
  }
}
