/* pc, tablet, ipad portrait */
@media only screen and (max-width: 960px){
  div.container{
    background-position: right bottom 40px;
    background-size: auto 80%;
  }
  div.mascot{
    bottom: 104px;
    background-size: auto 280px;
  }
  #footermenu{
    padding-left: 5px;
  }
  #footermenu li{
    margin-right: 8px;
    font-size: 95%;
    background-position: 2px -1px;
  }
  address{
    margin-top: 0.5em;
  }
}
/* landscape M */
@media only screen and (max-device-width: 767px){
  div.container{
    background-image: none;
  }
  .htitle img{
    max-width: 100%;
    height: auto;
  }
  #box{
    position: relative;
    right: 0; top: 0;
    width: 100%;
    padding: 10px 20px 30px;
    /*overflow: none;
    -webkit-overflow-scrolling: none;*/
    font-size: 100%;
  }
  h2{
    display: none;
  }
  #inbox{
    width: 100%;
    margin-bottom: 1em;
  }
  div.mascot{
    display: none;
  }
  #footer{
    position: relative;
    height: 140px;
  }
  #footermenu{
    margin: 0;
    padding-top: 8px;
    text-align: left;
  }
  #footermenu li{
    margin-right: 8px;
    font-size: 95%;
    background-position: 2px -1px;
  }
  address{
    margin: 0.5em 1em 0 1em;
    text-align: left;
    font-size: 90%;
    line-height: 1.5em;
    /*word-break: break-all;*/
  }
  address span.br{
    display: inline-block;
  }
  .copyright{
    margin: 0.5em 1em;
    text-align: left;
    font-size: 90%;
  }
}
@media only screen and (max-device-width: 480px) and (orientation:portrait){
  #topicpath li{
    font-size: 85%;
    margin: -8px 0 0 10px;
  }
  #footer{
    height: 220px;
  }
}

/* ipad */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape){
  div.container{
    background-position: right bottom 45px;
    background-size: 1024px auto;
  }
  #inbox{
    width: 75%;
  }
  div.mascot{
    bottom: 95px;
    background-size: auto 280px;
  }
  #footermenu{
    margin-top: -25px;
    padding-left: 5px;
  }
  #footermenu li{
    margin-right: 8px;
    font-size: 95%;
    background-position: 2px -1px;
  }
  address{
    margin-top: 0.5em;
  }
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait){
  div.container{
    background-position: right -20px bottom 50px;
    background-size: auto 50%;
    position: relative;
  }
  #inbox{
    width: 75%;
  }
  div.mascot{
    bottom: 95px;
    background-size: auto 280px;
  }
  #footermenu{
    margin-top: -20px;
    padding-left: 5px;
  }
  #footermenu li{
    margin-right: 8px;
    font-size: 95%;
    background-position: 2px -1px;
  }
  address{
    margin-top: 0.5em;
  }
}
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation:landscape){
  div.container{
    background-position: right bottom 30px;
    background-size: 1280px auto;
  }
  #inbox{
    width: 72%;
  }
  div.mascot{
    bottom: 90px;
    background-size: auto 380px;
  }
  /*#footermenu{
    margin-top: -25px;
    padding-left: 5px;
  }
  #footermenu li{
    margin-right: 8px;
    font-size: 95%;
    background-position: 2px -1px;
  }
  address{
    margin-top: 0.5em;
  }*/
}
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation:portrait){
  div.container{
    background-position: right -20px bottom 35px;
    background-size: auto 50%;
    position: relative;
  }
  #inbox{
    width: 75%;
  }
  div.mascot{
    bottom: 195px;
    background-size: auto 280px;
  }
  #footermenu{
    margin-top: -20px;
    padding-left: 5px;
  }
  #footermenu li{
    margin-right: 8px;
    font-size: 95%;
    background-position: 2px -1px;
  }
  address{
    margin-top: 0.5em;
  }
}
