/*iphone*/   
@media screen and (max-width:667px){
body{
    width: 100%;
    font-family: 'arial narrow'
}
.wrap{
    overflow: hidden;
}
#logo img{
    float: left;
    width: 50%;
    margin-top: 1%;
}
    #tel{
        display: none;
    }
    #mail{
        display: none;
    }
#navi ul{
    float: left;
    clear: left;
    padding: 0;
}
#navi ul li{
   color: black;
   border-left: solid 8px red;
   background: whitesmoke;
   margin-bottom: 5px;
   line-height: 1.5;
   border-radius: 0 15px 15px 0;
   padding: 0.5em;
   list-style-type: none!important;
}
#navi a{
   text-decoration: none;
   color: #000;
}
#nonpc{
    text-align: center;
    clear: left;
}
#nonpc img{
    width: 50%;
}
#pagenavi{
    display: none;
}
#contents{
    float: left;
}
#contents h1{
    border-bottom: solid 5px #87cefa;
    font-size: 20px;
}
#contents h2{
    border-bottom: solid 1px #87cefa;
    font-size: 15px;
}
#contents h3{
    clear: left;
    float: left;
    font-size: 15px;
}
#contents p{
    clear: left;
    margin-bottom: 3%;
    font-size: 10px;
}
#contents a{
    width: 20%;
    float: left;
    clear: left;
    text-align: center;
    font-size: 20px;
    margin-left: 40%;
    margin-bottom: 5%;
    align-content: inline-block;
    padding: 0 0;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}
#contents a:active {/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
#contents img{
    width: 100%;
}
#flag{
    width: 10%;
}
#sample{
    width: 30%;
}
#sample2{
    width: 40%;
}
#contents2{
    float: left;
    margin-top: 5%;
}
#contents2 h1{
    border-bottom: solid 5px #87cefa;
    font-size: 20px;
}
#contents2 h2{
    border-bottom: solid 1px #87cefa;
    font-size: 15px;
}
#contents2 h3{
    font-size: 15px;
}
#contents2 p{
    font-size: 10px;
}
#contents2 img{
    width: 80%;
    margin-left: 10%;
}
#contact a{
    width: 30%;
    float: left;
    clear: left;
    text-align: center;
    font-size: 15px;
    margin-left: 30%;
    margin-top: 5%;
    margin-bottom: 5%;
    align-content: inline-block;
    padding: 1em 1em;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}
#contact a:active {/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
#footer{
    clear: left;
    text-align: center;
}
}



/*ipad*/   
@media screen and (min-width:668px) and (max-width:1024px){
body{
    width: 100%;
    font-family: 'arial narrow'
}
.wrap{
    overflow: hidden;
}
#logo img{
    float: left;
    width: 30%;
    margin-left: 5%;
    margin-top: 1%;
}
#tel img{
    float: left;
    margin-left: 18%;
    width: 20%;
}
#mail img{
    float: left;
    width: 20%;
    margin-bottom: 1%;
}
#navi ul{
    clear: left;
    text-align: center;
    background-color: red;
}
#navi li{
    list-style: none;
    display: inline-block;
    width: 15%;
    color: #fff;
    font-size: 12px;
    background-color: red;
}
#nonpc{
    text-align: center;
}
#nonpc img{
    width: 30%;
}
#nonpc p{
    display: inline;
    font-size: 20px;
    margin-left: 5%;
}
#pagenavi{
    display: none;
}
#contents{
    float: left;
}
#contents h1{
    border-bottom: solid 5px #87cefa;
    font-size: 30px;
}
#contents h2{
    border-bottom: solid 1px #87cefa;
}
#contents h3{
    clear: left;
    float: left;
}
#contents p{
    clear: left;
    margin-bottom: 3%;
}
#contents a{
    width: 20%;
    float: left;
    clear: left;
    text-align: center;
    font-size: 20px;
    margin-left: 40%;
    margin-bottom: 5%;
    align-content: inline-block;
    padding: 0 0;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}
#contents a:active {/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
#contents img{
    width: 100%;
}
#flag{
    width: 10%;
}
#sample{
    width: 30%;
}
#sample2{
    width: 40%;
}
#contents2{
    float: left;
    margin-top: 5%;
    margin-left: 5%;
}
#contents2 h1{
    border-bottom: solid 5px #87cefa;
    font-size: 30px;
}
#contents2 h2{
    border-bottom: solid 1px #87cefa;
}
#contents2 img{
    width: 80%;
    margin-left: 10%;
}
#contact a{
    width: 30%;
    float: left;
    clear: left;
    text-align: center;
    font-size: 20px;
    margin-top: 5%;
    margin-left: 35%;
    margin-bottom: 5%;
    align-content: inline-block;
    padding: 1em 1em;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}
#contact a:active {/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
#footer{
    clear: left;
    text-align: center;
}
}

/*PC*/   
@media screen and (min-width:1025px){
body{
    width: 100%;
    font-family: 'arial narrow'
}
#logo img{
    float: left;
    width: 30%;
    margin-left: 5%;
    margin-top: 1%;
}
#tel img{
    float: left;
    margin-left: 18%;
    width: 20%;
}
#mail img{
    float: left;
    width: 20%;
    margin-bottom: 1%;
}
#navi ul{
    clear: left;
    text-align: center;
    background-color: red;
}
#navi li{
    list-style: none;
    display: inline-block;
    width: 15%;
    color: #fff;
    font-size: 20px;
    background-color: red;
}
#pagenavi{
    float: left;
    margin-left: 5%;
    color: #1e366a;
    border-top: solid #1e366a 1px;
    border-bottom: solid #1e366a 1px;
    border-left: solid #1e366a 1px;
    border-right: solid #1e366a 1px;
    padding: 0.5em 0.5em 0.5em 0.5em;
    background-color: #c9e7ed;
}
#pagenavi ul li{
    line-height: 1.5;
    padding: 0.5em 0;
}
#pagenavi ul li a{
    text-decoration: none;
}
#contents{
    float: left;
    width: 60%;
    margin-left: 5%;
}
#contents h1{
    border-bottom: solid 5px #87cefa;
    font-size: 30px;
}
#contents h2{
    border-bottom: solid 1px #87cefa;
}
#contents h3{
    clear: left;
    float: left;
}
#contents p{
    clear: left;
    margin-bottom: 3%;
}
#contents a{
    width: 20%;
    float: left;
    clear: left;
    text-align: center;
    font-size: 20px;
    margin-left: 40%;
    margin-bottom: 5%;
    align-content: inline-block;
    padding: 0 0;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}
#contents a:active {/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
#contents img{
    width: 100%;
}
#flag{
    width: 10%;
}
#sample{
    width: 30%;
}
#sample2{
    width: 40%;
}
#contents2{
    float: left;
    width: 60%;
    margin-left: 30%;
    margin-top: 5%;
}
#contents2 h1{
    border-bottom: solid 5px #87cefa;
    font-size: 30px;
}
#contents2 h2{
    border-bottom: solid 1px #87cefa;
}
#contents2 img{
    width: 80%;
    margin-left: 10%;
}
#contact a{
    width: 30%;
    float: left;
    clear: left;
    text-align: center;
    font-size: 20px;
    margin-top: 5%;
    margin-left: 35%;
    margin-bottom: 5%;
    align-content: inline-block;
    padding: 1em 1em;
    text-decoration: none;
    background: #668ad8;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
}
#contact a:active {/*ボタンを押したとき*/
    -ms-transform: translateY(4px);
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
#footer{
    clear: left;
    text-align: center;
}
#nonpc{
    display: none;
}
}
