* {
  margin: 0;
  padding: 0;
}

body {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  font-size: 20px;
}

#wrapper a img:hover {
  opacity: 0.7;
}

#wrapper {
  font-family: 'イワタ新ゴシック', '小塚ゴシック Pro', sans-serif;
  color: #333;
}

main {
  width: 100%;
}

main h1 {
  margin: 0 auto 10px;
  width: 1000px;
}

main img {
  width: 100%;
}

main + p {
  width: 960px;
  margin:10px auto;
  text-align: center;
  font-weight: bold;
  text-decoration: underline;
}

.flex {
  display: flex;
}

.template-tab {
  width: 920px;
}

.template-tab .type-select label {
  width: 435px;
  text-align: center;
  font-size: 140%;
  padding: 10px 15px;
}

.template-tab input:checked + label {
  padding: 15px 10px 10px 10px;
}

input:checked + label#label-1,
input:checked + label#label-2 {
  background-color: #1978d1;
}

.content-box {
  background-color: #f5f7fa;
}

.content-box .prefecture {
  align-items: center;
  padding: 0 30px 0;
}

.prefecture figure {
  flex: 1;
}

.prefecture figure img {
  width: 75%;
}

.prefecture h2 {
  font-size: 150%;
  font-weight: bold;
  flex: 10;
}

.content-box .lecture-wrap {
  padding: 5px 20px 7px 30px;
  flex-wrap: wrap;
  display: flex;
}

.content-box .lecture-box {
  width: calc(100% / 3 - 28px);
  margin: 5px 25px 5px 0;
  padding: 5px 10px 5px 15px;
  box-sizing: border-box;
  background-color: #fff;
  align-items: center;
  display: flex;
}

.content-box .lecture-box h3 {
  color: #2f2e2f;
  font-size: 115%;
}

.content-box .lecture-box a {
  color: #fff;
  text-decoration: underline;
  border-radius: 5px;
  font-size: 110%;
}

.content-box .eigo {
  border-left: 3px solid #ea4d4c;
}

.content-box .eigo a {
  color: #ea4d4c;
}

.content-box .sugaku {
  border-left: 3px solid #1a78d1;
}

.content-box .sugaku a {
  color: #1a78d1;
}

.content-box .kokugo {
  border-left: 3px solid #ff5d7e;
}

.content-box .kokugo a {
  color: #ff5d7e;
}

.content-box .rika {
  border-left: 3px solid #07983b;
}

.content-box .rika a {
  color: #07983b;
}

.content-box .syakai {
  border-left: 3px solid #cc9900;
}

.content-box .syakai a {
  color: #cc9900;
}

.caution {
  font-size: 85%;
}

.prefecture-box {
  border-bottom: dashed 2px #1a78d1;
  margin-bottom: 20px;
}

.prefecture h2 small {
  font-size: 80%;
  font-weight: normal;
  margin-left: 20px;
}

.lecture-box h3 {
  margin-right: 24px;
}

.link-outer {
  width: 69px;
}

.bannerBox {
  width: 900px;
  margin: 20px auto;
  text-align: center;
}

.height {
  height: 80px;
}

footer.template-footer .fixed-wrapper .template-apply {
  margin: 0 auto;
}

footer.template-footer .fixed-wrapper .template-apply a {
  padding: 11px 0;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .title p {
    padding:30px 0 20px;
  }
  .content-box .lecture-box {
    padding: 15px 10px 5px 15px;
  }
}

.template-accordion .accshow {
  height: auto;
  padding: 10px;
  opacity: 1;
}

.template-accordion {
  padding: 13px 12px 13px 30px;
  font-size: 120%;
}

.select-wrap {
  position: relative;
  width: 940px;
  margin: 0 auto;
}

.select-wrap:before {
  z-index: 1;
  position: absolute;
  right: 20px;
  top: 0;
  content: "\f107";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  line-height: 48px;
  color: #7F878C;
  pointer-events: none;
  font-size: 140%;
}

select {
  outline: none;
  text-indent: 0.01px;
  text-overflow: '';
  background: none transparent;
  vertical-align: middle;
  font-size: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 50px;
  padding: 11px 12px;
  border: 1px solid #ddd;
  color: #828c9a;
  width: 100%;
  border-radius: 3px;
}

select option,
optgroup {
  background-color: #fff;
  color: #333;
}

select::-ms-expand {
  display: none;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #828c9a;
}

.select-wrap.select-primary:before {
  color: #fff;
}

.select-wrap.select-primary > select {
  background: #1a78d1;
  color: #fff;
  border-color: #1a78d1;
}

.select-wrap.select-primary > select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #fff;
}

optgroup {
  color: #0084B4;
}

.previous {
  font-size: 24px;
  text-align: center;
}

.previous-access {
  color: #000;
}

.template-accordion {
  width: 900px;
  margin: 30px auto;
}

.template-accordion .accshow p {
  margin: 15px 10px;
}
