/* Movable Type インデックステンプレートで生成 */
@charset "UTF-8";
body {
  -webkit-text-size-adjust: 100%;
}

@media screen and (max-width: 850px) {
  img {
    max-width: 100%;
    height: auto;
  }

  p {
    text-align: left;
  }

  button.modal-open {
    position: fixed;
    right: 10px;
    top: 12px;
    margin: 0;
    padding: 7px 15px;
    color: #2174c4;
    font-size: 15px;
    font-weight: bold;
    font-family: "Century Gothic", Arial, Helvetica, "sans-serif";
    line-height: 1;
    letter-spacing: 1px;
    border: 1px solid #2174c4;
    -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
            box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  }

  #wrapper {
    width: auto;
  }

  #contents {
    width: auto;
    padding: 0;
  }

  #header {
    height: auto;
    padding: 10px;
  }
  #header #utmath_logo {
    float: none;
    margin: 0;
    /*
    &::after {
      content: url(../img/bnnr_header1.jpg);
      display: block;
      width: 250px;
      margin: 5px auto 0;
    }
    */
  }
  #header #utmath_logo > a > img {
    height: 30px;
  }
  #header #utmath_logo h1 {
    margin-top: 5px;
  }
  #header #language {
    display: none;
    float: none;
  }
  #header #bnnr_header {
    float: none;
    text-align: center;
  }
  #header #bnnr_header img {
    width: 100%;
    height: auto;
    max-width: 220px;
    vertical-align: top;
  }

  #gnavi {
    display: none;
  }

  #vnavi {
    display: none;
  }

  #breadcrumb {
    margin: 0 0 15px;
    padding: 5px 10px;
    border-top: 1px dotted #999999;
    border-bottom: 1px dotted #999999;
  }
  #breadcrumb .style1_btn,
#breadcrumb .style2_btn {
    display: none;
  }
  #breadcrumb ul li {
    display: inline;
    float: none;
    line-height: 1.2;
  }
  #breadcrumb .settings {
    float: none;
    width: auto;
    margin-top: 5px;
    text-align: right;
    /* font-size: 12px; */
    line-height: 1;
  }

  #left_container {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 10px;
  }
  #left_container.upper_block {
    margin-bottom: 20px;
  }
  #left_container .banner {
    margin-top: 15px;
    margin-bottom: 0;
  }
  #left_container .banner a + br {
    display: none;
  }
  #left_container ul.subnavi2, #left_container ul.subnavi3, #left_container ul.subnavi4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 3px;
  }
  #left_container ul.subnavi2 > li, #left_container ul.subnavi3 > li, #left_container ul.subnavi4 > li {
    width: calc(50% - 1px);
    padding: 4px 4px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  #left_container ul.subnavi2 > li a, #left_container ul.subnavi3 > li a, #left_container ul.subnavi4 > li a {
    /* font-size: 12px; */
    font-weight: normal;
    line-height: 1;
    background-position: 0 0;
  }
  #left_container ul.subnavi3 > li a {
    padding-left: 10px;
    background-position: 0 0;
  }
  #left_container ul.subnavi1 {
    margin-bottom: 5px;
    padding: 2px;
    line-height: 1.2;
    /* font-size: 12px; */
  }
  #left_container ul.subnavi1 > li > a {
    padding: 2px;
  }
  #left_container ul.subnavi1 > li > ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
  #left_container ul.subnavi1 > li > ul > li {
    width: calc(50% - 2px);
  }
  #left_container ul.subnavi1 > li > ul > li a {
    padding: 2px 0 2px 10px;
    font-weight: normal;
    background-position: 0px 6px;
  }

  #main_container {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 10px;
  }
  #main_container ul.news li .newstext {
    width: calc(100% - 130px);
  }

  #right_container {
    display: none;
    float: none;
    width: auto;
    margin: 0;
    padding: 0 10px;
  }

  #footer {
    margin-top: 20px;
  }
  #footer #address {
    padding: 10px;
  }
  #footer #address p + p {
    margin-top: 5px;
  }
  #footer #copyright {
    padding: 10px 5px;
    line-height: 1.2;
    background-size: auto 100%;
  }
  #footer #pagetop {
    margin: 5px 0;
    padding-right: 10px;
  }

  .banner {
    display: block;
    max-width: 615px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }
  .banner > a, .banner > img, .banner > span {
    display: inline-block;
    max-width: 46vw;
    text-align: center;
  }
  .banner > a br, .banner > img br, .banner > span br {
    display: none;
  }
  .banner > br {
    display: none;
  }

  #main,
#pagetitle {
    width: auto;
    float: none;
  }

  #pagetitle_top,
#pagetitle_bottom {
    display: none;
  }

  #main {
    margin-top: 15px;
    padding-left: 10px;
    padding-right: 10px;
  }

  #side {
    display: none;
  }

  #side_bottom,
  #side_top {
    display: none;
  }

  #side #inner {
    background-image: none;
    background-color: #F0F6FB;
    border: 3px solid #217FC4;
    border-radius: 4px;
  }

  #side #inner .title a {
    width: auto;
    background-color: #217FC4;
  }

  table {
    width: auto !important;
    max-width: 100%;
  }

  .scroll_table {
    width: 100%;
    overflow-x: scroll;
  }

  .scroll_table table {
    width: 800px !important;
    max-width: initial !important;
  }

  .scroll_table table th,
  .scroll_table table td {
    font-size: 13px;
    min-width: 4em;
  }

  #list table {
    min-width: 500px;
  }
  #list table th, #list table td {
    min-width: 4em;
  }

  #spMenu-content #cse-search-box {
    display: table;
    margin: 20px auto 0;
    padding: 5px;
    text-align: center;
    background-color: black;
  }

  #spMenu-content #cse-search-box input {
    vertical-align: middle;
  }

  #spMenu-content #cse-search-box input[name="q"] {
    background-image: none !important;
  }

  #cse-search-results > iframe {
    width: 100%;
    height: 2200px;
  }
}
@media screen and (min-width: 421px) and (max-width: 849px) {
  #header {
    overflow: hidden;
    padding-bottom: 10px;
  }
  #header #utmath_logo {
    float: left;
    width: 75%;
  }
  #header #bnnr_header {
    float: right;
    width: 23%;
    margin-top: 40px;
  }

  #left_container ul.subnavi2, #left_container ul.subnavi3, #left_container ul.subnavi4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-bottom: 3px;
  }
  #left_container ul.subnavi2::after, #left_container ul.subnavi3::after, #left_container ul.subnavi4::after {
    display: block;
    content: "";
    width: calc(33.3% - 1px);
    height: 1px;
  }
  #left_container ul.subnavi2 > li, #left_container ul.subnavi3 > li, #left_container ul.subnavi4 > li {
    width: calc(33.3% - 1px);
    padding: 4px 4px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }
  #left_container ul.subnavi2 > li a, #left_container ul.subnavi3 > li a, #left_container ul.subnavi4 > li a {
    /* font-size: 12px; */
    font-weight: normal;
    line-height: 1;
    background-position: 0 0;
  }
}
@media screen and (min-width: 851px) {
  button.modal-open {
    display: none;
  }
}
/* モーダル */
.modal-overlay {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgba(0, 0, 0, 0.6);
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
}

.modal-container {
  position: relative;
  background-color: #fff;
  max-height: 80vh;
  max-width: 500px;
  overflow-y: auto;
  padding: 25px 20px;
  width: 80%;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 0;
}

.modal-close::before {
  content: "✕";
  font-size: 24px;
}

.modal-content {
  line-height: 1.5;
}
.modal-content a {
  display: inline-block;
  margin-right: 3px;
  padding: 2px 0;
  color: #333;
  text-decoration: none;
}
.modal-content a::before {
  content: "▸";
  padding-right: 3px;
  color: #217FC4;
  font-size: 110%;
}
.modal-content a.current {
  font-weight: bold;
}
.modal-content .title a {
  font-weight: bold;
}
.modal-content ul {
  font-size: 14px;
  line-height: 1.3;
}
.modal-content hr {
  display: none;
}
.modal-content > ul:first-child {
  margin: 0;
}
.modal-content > ul:first-child > li {
  margin-bottom: 6px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom: 1px solid #217FC4;
}
.modal-content > ul:first-child > li > a {
  font-weight: bold;
}
.modal-content > ul:first-child ul {
  margin-left: 1em;
}
.modal-content > ul:first-child ul li {
  margin-top: 3px;
}
.modal-content #language {
  margin-top: 20px;
  text-align: center;
  line-height: 1;
  font-size: 14px;
}
.modal-content #language > a:first-child {
  padding-left: 10px;
  border-left: 1px solid #217FC4;
}
.modal-content #language > a:last-child {
  padding-right: 10px;
  border-right: 1px solid #217FC4;
}
.modal-content #language > a + a {
  margin-left: 5px;
  padding-left: 10px;
  border-left: 1px solid #217FC4;
}
.modal-content #inner .title {
  margin: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom: 1px solid #217FC4;
}
.modal-content #inner > ul > li > a {
  display: block;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom: 1px solid #217FC4;
}
.modal-content #inner > ul ul > li {
  margin: 0;
  padding-top: 8px;
  padding-bottom: 6px;
  padding-left: 5px;
  padding-right: 5px;
  border-bottom: 1px solid #217FC4;
}

/* モーダルアニメーション */
@-webkit-keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-webkit-keyframes mmslideIn {
  from {
    -webkit-transform: translateY(15%);
            transform: translateY(15%);
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes mmslideIn {
  from {
    -webkit-transform: translateY(15%);
            transform: translateY(15%);
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@-webkit-keyframes mmslideOut {
  from {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  to {
    -webkit-transform: translateY(-10%);
            transform: translateY(-10%);
  }
}
@keyframes mmslideOut {
  from {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  to {
    -webkit-transform: translateY(-10%);
            transform: translateY(-10%);
  }
}
.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden=false] .modal-overlay {
  -webkit-animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
          animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden=false] .modal-container {
  -webkit-animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
          animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden=true] .modal-overlay {
  -webkit-animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
          animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden=true] .modal-container {
  -webkit-animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
          animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal-container,
.micromodal-slide .modal-overlay {
  will-change: transform;
}

@media screen and (max-width: 850px) {
  body.home .sp_home_none {
    display: none !important;
  }

  body:not(.home) .sp_sub_none {
    display: none !important;
  }

  .img-float-left,
  img-float-right {
    float:none;
    display: block;
    margin: 10px 0;
  }
}
@media screen and (min-width: 851px) {
  .pc_none {
    display: none !important;
  }
}