/* PC
---------------------*/
@media screen and (min-width:981px) {
  /* mainimages
---------------------*/
  #mainimages {
    position: absolute;
    height: 100%;
    z-index: 100 !important;
    overflow: hidden;
    display: none;
  }
  #mainimages .info {
    min-width: 315px;
    height: 100%;
  }
  #mainimages #bg01 {
    background: url("../img/bg01.jpg") no-repeat center center;
    background-size: cover;
    background-position: center 10%;
  }
  #mainimages #bg02 {
    background: url("../img/bg02.jpg") no-repeat center center;
    background-size: cover;
    background-position: center 20%;
  }
  #mainimages #bg03 {
    background: url("../img/bg03.jpg") no-repeat center center;
    background-size: cover;
    background-position: 0 10%;
  }
  #mainimages #bg04 {
    background: url("../img/bg04.jpg") no-repeat center center;
    background-size: cover;
    background-position: 0 50%;
  }
  .flexslider {
    min-width: 315px;
    height: 100%;
  }
  .slides {
    min-width: 315px;
    height: 100%;
  }
  /* Direction Nav */
  .flex-direction-nav a {
    display: none;
  }
  /* Control Nav */
  .flex-control-nav {
    display: none;
  }
  /* contents
---------------------*/
  .content01 {
    height: 40%;
    background: url(../img/bg_content01.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }
  .content02 {
    height: 30%;
    background: url(../img/bg_content02.jpg);
    background-size: cover;
    background-position: 60% 0;
    overflow: hidden;
  }
  .content02 a {
    display: block;
    width: 100%;
    height: 100%;
  }
  .content03 {
    display: table;
    width: 100%;
    height: 30%;
    overflow: hidden;
  }
  .content03_wrapper {
    display: table-cell;
    vertical-align: middle;
  }
  .ttl_content03 {
    font-size: 24px;
    font-weight: bold;
    color: #4157a5;
  }
  .ttl_content03_02 {
    font-size: 18px;
    font-weight: bold;
  }
  .content03 a {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
  }
  .content03 a:hover {
    color: #4157a5;
  }
}

/* Tablet or less
---------------------*/
@media only screen and (max-width: 980px) {
  #contents{
    padding: 0;
  }
  /* mainimages
  ---------------------*/
  #mainimages {
    width: 100% !important;
    max-width: 100% !important;
    height: 360px !important;
    max-height: 560px !important;
    position: relative;
    z-index: 100 !important;
    overflow: hidden;
  }
  #mainimages ul {}
  #mainimages .info {
    min-width: 100%;
    height: 100%;
  }
  #mainimages #bg01 {
    min-width: 100%;
    height: 100%;
    background: url("../img/bg01_sp.jpg") no-repeat center top;
    background-size: cover;
  }
  #mainimages #bg02 {
    min-width: 100%;
    height: 100%;
    background: url("../img/bg02_sp.jpg") no-repeat center top;
    background-size: cover;
  }
  #mainimages #bg03 {
    min-width: 100%;
    height: 100%;
    background: url("../img/bg03_sp.jpg") no-repeat center top;
    background-size: cover;
  }
  #mainimages #bg04 {
    min-width: 100%;
    height: 100%;
    background: url("../img/bg04_sp.jpg") no-repeat center top;
    background-size: cover;
  }
  .flexslider {
    width: 100% !important;
    height: 100% !important;
    margin-top: 45px;
  }
  .slides {
    min-width: 100%;
    height: 100%;
  }
  /* Direction Nav */
  .flex-direction-nav a {
    display: none;
  }
  /* Control Nav */
  .flex-control-nav {
    display: none;
  }}
  .content03 {
    display: table;
    width: 100%;
    padding: 10px 0;
  }
  .content03_wrapper {
    display: table-cell;
    padding: 0 20px;
    vertical-align: middle;
  }
  .ttl_content03 {
    font-size: 24px;
    font-weight: bold;
    color: #4157a5;
  }
  .content03 a {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
  }
  .content03 a:hover {
    color: #4157a5;
  }
}


/* SP
---------------------*/

@media only screen and (max-width: 640px) {
  /* mainimages
  ---------------------*/
  #mainimages {
    width: 100% !important;
    height: 340px !important;
    max-height: 560px !important;
    position: relative;
    z-index: 100 !important;
    overflow: hidden;
  }
}


@media only screen and (max-width: 640px) and (min-width: 480px) {
  #mainimages {
    height: 460px !important;
  }
}
@media only screen and (max-width: 880px) and (min-width: 640px) {
  #mainimages {
    height: 560px !important;
  }
}
@media only screen and (max-width: 979px) and (min-width: 880px) {
  #mainimages {
    height: 640px !important;
  }
}
