* {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 160%;
  font-size: 16px;
  font-family: "Helvetica Neue",
  Arial,
  "Hiragino Kaku Gothic ProN",
  "Hiragino Sans",
  Meiryo,
  sans-serif;
  color: black;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background-color:#333366;
}


a      {color:#0000aa;text-decoration:none;}
a:hover{color:#0000aa;text-decoration:underline;}

img {
  max-width: 100%;
  height: auto;
}

span {
  display: inline-block;
}

p {
  text-indent: 1em;
  line-height: 160%;
  text-align: justify;
}

hr {
  border-width: 1px 0 0 0;
  border-style: dashed;
  border-color: cadetblue;
  margin: 1em 1em 1em 1em;
}

h2 {
  border-bottom: solid 1px #d7d7d7;
  margin: 0.3em 0 0 0;
  padding: 5px;
  font-size: 18px;
  color: #494949;
  /* background: #f4f4f4; */
  text-align: center;
}

h3 {
  font-size: 18px;
  border-bottom: solid 1px #c0c0f0;
  margin: 1em 0px 0.2em 0px;
  padding: 0px 10px 1px 10px;
  text-align: left;
  width: 90%;
}

h4 {
  color: #364e96;/
  border: solid 3px #364e96;
  padding: 0.3em;
  border-radius: 0.3em;
  width: fit-content;
  margin-top: 10px;
}

iframe {
  padding: 0em 0em 0em 0em;
  margin: 0em 0em 0em 0em;
  border: 1px #CAC8C8 solid;
}

ul li {
  line-height: 1.5;
  padding: 0.2em 0;
  font-size: 14px;
}
ol {
  padding: 0 0 0 1em;
}
th,td {
  /* border: solid 1px; */
  padding: 5px;
  font-size: 14px;
}
th {
  text-align: center;
  font-weight: bold;
}

table {
  width: 100%;
  margin: auto;
  border-collapse: collapse;
}


/* class */

.hbox {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.vbox {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo {
  margin: auto;
}

.portrait {
  width: 180px;
  margin: 10px;
  padding: 5px;
  float: right;
  background: #fff0f0;
}

.columncontainer {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.article {
  margin-bottom: 2em;
}

.column {
  padding: 5px;
  margin-bottom: 10px;
}

.column2 {
  width: 100%;
}

.enhance {
  background: #ffffe0;
  padding: 10px;
  margin: 10px;
  border: solid #1e366a 1px;
}

.fuho {
  background: #f0e9e0;
  padding: 10px;
  margin: 10px;
  border: none;
  font-size: 14px;
}

p.note {
  padding: 0.5em 1em 0.5em 1em;
  font-size: 14px;
}

p.right {
  text-align: right;
}

ul.program {
  color: #1e366a;
  padding: 0.5em 0 0.5em 1.5em;
}

ul.program>li::first-line {
  color: #000000;
  font-weight: bold;
}

ul.list {
  padding: 0.5em 0 0.5em 1.5em;
}

ul.list>li>a {
  line-height: 1.2;
  padding: 0.2em 0;
  font-size: 14px;
}

ul.pdf {
  list-style: url(../img/btn_pdf_s.gif);
  list-style-position: inside;
}


li.menu_off ul {
  display: none !important;
}

li.menu_on ul {
  display: block;
}

table.deco {
  width: 100%;
  margin: auto;
}

table.deco th{
  border-bottom: solid 2px #100000;
  padding: 5px 5px;
  background-color: #e8e8e8;
}

table.deco td{
  border-bottom: solid 2px #ddd;
  padding: 5px 5px;
  font-size: 14px;
}

table.deco tr:nth-child(odd){
  background-color: #ffffe8;
}
table.deco tr:nth-child(even){
  background-color: #e8ffff;
}

/* menu */

#menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: end;
  margin: 0 30px;
}

#menu-btn {
  display: none;
}

#menu-content {
  margin: 0;
  list-style-type: none;
}

#menu-content > li {
  position: relative;
  float: left;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

#menu-content > li > a {
  display: block;
  padding: 0 15px;
  line-height: 30px;
  color: #000;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
}

#menu-content > li > a > .blogicon-chevron-down {
  margin-right: 5px;
}

#menu-content > li > ul.second-content {
  background: #fff;
  visibility: hidden;
  opacity: 1.0;
  position: absolute;
  padding-left: 0;
  list-style-type: none;
  -webkit-box-shadow: 1px 1px 7px #bbb;
  box-shadow: 1px 1px 7px #bbb;
}

#menu-content > li:hover > ul.second-content {
  visibility: visible;
  opacity: 1;
  -webkit-transition: opacity 0.2s, visibility 0.2s;
  transition: opacity 0.2s, visibility 0.2s;
}

#menu-content > li > ul.second-content > li {
  text-align: center;
  width: 120px;
}

#menu-content > li > ul.second-content > li > a {
  display: block;
  line-height: 40px;
  color: #000;
  font-size: 14px;
  text-decoration: none;
}

#menu-content > li > ul.second-content > li > a:hover {
  background: #cfc;
  color: #000;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  line-height: 1;
  z-index: 99;
}
#page-top a {
  background: #c0c0ff;
  text-decoration: none;
  color: #fff;
  width: 40px;
  padding: 10px 5px;
  text-align: center;
  display: block;
  border-radius: 90px;
  opacity: 0.9;
  transition: all .3s ease;
}

#page-top a:hover {
  text-decoration: none;
  opacity: .5;
}

.up-white {
  color: #fff
}

.facustom {
  font-size: 1.5em;
  color: #e13131;
}

/*
*/


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

  main {
    display:block;
    flex: 1;
    overflow-y: scroll;
  }

  iframe#topix1 {
    width: 99%;
    border: none;
  }

  iframe#topix2 {
    width: 99%;
    border: none;
  }

  .banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eeffff;
    margin: 1px;
    padding: 2px 5px 2px 5px;
    border: 1px solid #e0e0e0;
  }

  .banner a:before {
    content: attr(data-text);
  }
  .banner img {
    display: none !important;
  }

  .pdflink a:before {
    content: attr(data-text);
  }
  .pdflink i {
    display: none !important;
  }

  .deco .head {
    display: none !important;
  }
  .deco tr {
    width: 95%;
  }
  .deco td {
    display: block;
    text-align: center;
    width: 95%;
  }
  .deco br {
    display: none !important;
  }
  .deco td:first-child {
    background: #7e72e0;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
  }
  .deco td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    margin-right: 10px;
  }

  .portrait {
    width: 30%;
    margin: 10px;
    padding: 5px;
    float: right;
    background: #fff0f0;
  }

  /* id */
  #wrapper {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100%;
  }

  #footer {
    text-align:center;
    color: #ffffff;
    background: #333366;
    width: 100%;
    hight: 50px;
    font-size: 12px;
  }

  #footer span {
    color: #ffffff;
  }

  #header {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #333366;
  }
  #logo {
    padding: 3px;
    width: 280px;
  }

  #home_wrapper {
  }

  #home_content {
    /* background-image: url(../../common/img/top.jpg);
    background-position: center;
    background-repeat: no-repeat; */
    display: flex;
    justify-content: center;
  }

  #top_image {
  }

  #news_frame {
    width: 99%;
    /* height: 650px;
    border-radius: 5%;
    background-color: rgba(255,255,255,0.7);
    padding: 5px; */
    background: #f8f8f8;
  }

  #title {
    margin: 0px 0px 0px 0px;
    padding: 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #333366;
  }

  #content_wrapper {
    margin: 0px;
    padding: 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #ffffff;
  }

  #content {
    width: 95%;
    background-color: #ffffff;
  }

  #banner_container {
    margin:0px 0px 0px 0px;
    padding: 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #333366;
  }

  /* menu */

  nav {
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 60%;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    z-index: 3;
    opacity: 0;
  }
  .open nav {
    left: 0;
    opacity: 1;
  }
  nav .inner {
    padding: 25px;
  }
  nav .inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav .inner ul li {
    position: relative;
    margin: 0;
  }
  nav .inner ul li a {
    display: block;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
  }
  .toggle_btn {
    display: block;
    position: fixed;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 3;
  }
  .toggle_btn span {
    position: absolute;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: #333;
    border-radius: 4px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .toggle_btn span:nth-child(1) {
    top: 4px;
  }
  .toggle_btn span:nth-child(2) {
    top: 14px;
  }
  .toggle_btn span:nth-child(3) {
    bottom: 4px;
  }
  .open .toggle_btn span {
    background-color: #fff;
  }
  .open .toggle_btn span:nth-child(1) {
    -webkit-transform: translateY(10px) rotate(-315deg);
    transform: translateY(10px) rotate(-45deg);
  }
  .open .toggle_btn span:nth-child(2) {
    opacity: 0;
  }
  .open .toggle_btn span:nth-child(3) {
    -webkit-transform: translateY(-10px) rotate(315deg);
    transform: translateY(-10px) rotate(45deg);
  }
  #mask {
    display: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.5;
    z-index: 2;
    cursor: pointer;
  }
  #menu-content > li {
    width: 100%;
    margin-bottom: 15px;
  }
  #menu-content > li:hover {
    background: none;
  }
  #menu-content > li > a {
    height: 100%;
    padding: 0px;
    font-size: 100%;
    border-bottom: 1px solid #000;
  }
  #menu-content > li > ul.second-content {
    visibility: visible;
    opacity: 1;
    width: 100%;
    position: relative;
    -webkit-box-shadow: none;
    box-shadow: none;
  }
  #menu-content > li > ul.second-content > li {
    width: 100%;
    text-align-last: left;
  }
  #menu-content > li > ul.second-content > li > a {
    padding-left: 15px;
  }
  #menu-content > li > ul.second-content > li > a:hover {
    background: none;
  }

}



@media screen and (min-width: 800px) {

  main {
    display:block;
    flex: 1;
    overflow-y: scroll;
    height: 700px;
  }

  iframe#topix1 {
    allowtransparency: true;
    height: 62%;
    scrolling: Auto;
  }

  iframe#topix2 {
    allowtransparency: true;
    height: 20%;
    scrolling: Auto;
  }

  .column2 {
    width: calc(50% - 20px / 2);
  }

  .banner {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #abafd2;
    margin: 1px;
    padding: 1px;
    border: 1px solid #6b73af;
  }

  .space {
    margin-top: 5em;
  }


  /* id */
  #wrapper {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
  }

  #footer {
    text-align:center;
    color: #ffffff;
    background: #333366;
    width: 100%;
    hight: 50px;
    font-size: 12px;
  }

  #footer span {
    color: #ffffff;
    font-size: 12px;
  }

  #header {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #333366;
  }

  #logo {
    padding: 10px 0px 0px 10px;
    width: 250px;
    background-color: #ffffff;
  }

  #home_wrapper {
  }

  #home_content {
    background-image: url(../../common/img/bk02.png);
    background-repeat: repeat-x;
    display: flex;
    justify-content: center;
  }

  #top_image {
    width: 500px;
    height: 700px;
    background-image: url(../../common/img/top02.png);
    background-repeat: no-repeat;
  }

  #news_frame {
    height: 650px;
    background-color: rgba(255,255,255,0.7);
    margin: 5px 0px;
    padding: 5px;
    border-radius: 0.5em;/*角丸*/
  }

  #title {
    margin:0px 0px 0px 0px;
    padding: 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #333366;
  }

  #content_wrapper {
    margin:0px;
    padding: 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #ffffff;
  }

  #content {
    width: 700px;
    background-color: #ffffff;
  }

  #banner_container{
    margin: 0px 0px 0px 0px;
    padding: 20px 0px 10px 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #333366;
  }
}
