/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
    display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000; 
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;   
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input, select {
    vertical-align:middle;
}

/*トップページ*/

header{
    position: absolute;
    width: 100%;
}
h1{
    padding: 10px;
    position: absolute;
}

h1 a{
    text-decoration: none;
    font-size: 5vw;
    color: #333;
    text-shadow:1px 1px 1px #777777;
}

nav{
    width:100%;
}

nav .nav_unshown{
    display: none;
}

.nav_drawer{
    position: relative;
}

#nav_open{
    display:block;
    width: 30px;
    height: 22px;
    padding: 10px;
    margin-left: auto;
}

#nav_open span, #nav_open span:before, #nav_open span:after{
    position: absolute;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #555;
    display: block;
    content: "";
    cursor: pointer;
}

#nav_open span:before{
    bottom: -8px;
}

#nav_open span:after{
    bottom: -16px;
}

nav #nav_close{
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: 0.3s ease-in-out; 
}

nav #nav_contents{
    width: 100%;
    height: 31.25vh;
    background-color: #fff;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: 0.3s ease-in-out;
    -webkit-transform: translateY(-105%);
    transform: translateY(-105%);
}

#nav_input:checked ~ #nav_close{
    display: block;
    opacity: 0.5;
}

#nav_input:checked ~ #nav_contents{
    -webkit-transform: translateY(0%);
    transform: translateY(0%);
    box-shadow:  6px 0 25px rgba(0,0,0,0.15)
}

nav ul li{
    float: left;
    width: 50%;
    height: 15.625vh;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    box-sizing: border-box;
}

nav ul li:nth-child(2n){
    border-right: none;
}


nav ul li a{
    text-align: center;
    display: block;
    line-height: 15.625vh;
    text-decoration: none;
    color: #1e90ff;
}

#topbox{
    width: 100%;
    height: auto;
    min-height: 100vh;
    background-image: url('../img/keyvisual-min.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack:center;
    -ms-flex-pack:center;
    justify-content: center;
    -webkit-box-allgn:center;
    -ms-flex-align:center;
    padding: 0;
}

#productbox{
    margin: 10% 5% 0;
}

#productbox figure{
    padding: 0;
    margin-bottom: 10%;
}

#productbox  .productbox3_pictbox, #productbox .productbox3_pictbox figure{
    margin-bottom: 0;
}

#productbox figure img{
    max-width: 100%;
}

#productbox figure figcaption{
    text-align: left;
    font-size: 3.75vw;
    margin-top: 2%;
}

.main_container{
    text-align: center;
}
h2{
    position: relative;
    display: inline-block;
    padding: 0 55px;
    margin: 5%;
    font-size:5vw;
    color: #1e90ff;
    width: 90%;
    box-sizing: border-box;
    overflow: hidden;
}

h2:before, h2:after{
    content: "";
    top: 50%;
    position: absolute;
    display: inline-block;
    width: 22vw;
    height: 2px;
    border-top: solid 1px #87cefa;
    border-bottom: solid 1px #87cefa;
}

#newsbox{
    margin: 10% 5% 0;
}

#newsbox dl{
    font-size: 3.75vw;
    text-align: left;
}

#newsbox dl dd{
    margin-bottom: 5%;
}

#newsbox dl dd a{
    text-decoration: none;
    color: #000;
}

.more_btn{
    text-align: right;
}

.more_btn a{
    color: #1e90ff;
    text-decoration: none;
    font-size: 3.75vw;
}

#accessbox{
    margin: 10% 5%;
}

#accessbox .accessmap{
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}

#accessbox .accessmap iframe{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#accessbox .accesstext{
    margin-top: 2%;
}

#accessbox p{
    font-size: 3.75vw;
    text-align: left;   
}

h2:before{
    left: 0;
}

h2:after{
    right: 0;
}

.fotter_container{
    width: 100%;
}

.fotter_container .pagetop_box{
    text-align: right;
    padding: 0 2%;
    margin-bottom:0;
}

.fotter_container .pagetop_box a{
    color: #fff;
    text-decoration: none;
    background: #87cefa;
    margin-left: auto;
    padding: 2%;
}

.fotter_container footer{
    width: 100%;
    background: #87cefa; 
    text-align: right;
}

.fotter_container footer p{
    padding:10px;
}

/*　---　PC向け　--- 　*/
@media screen and (min-width:768px) {
    .wrap{
        position: relative;
        min-height: 100vh;
        box-sizing: border-box;
    }
    h1 a{
        text-decoration: none;
        font-size:25px;
        color: #555;
    }

    nav{
        width:100%;
    }

    nav .nav_unshown{
        display: none;
    }

    .nav_drawer{
        position:static;
        text-align: right;
    }

    #nav_open{
        display:none;
    }

    #nav_open span, #nav_open span:before, #nav_open span:after{
        position:static;
        display: none;
    }

    nav #nav_close{
        display: none;
        position: static;
    }

    nav #nav_contents{
        width: auto;
        height: auto;
        background-color:transparent;
        overflow: auto;
        position: relative;
        top: 0;
        right: 0;
        left: auto;
        z-index: 999;
        display: inline-block;
        transition: 0.3s ease-in-out;
        -webkit-transform: translateY(0%);
        transform: translateY(0%);
    }

    #nav_input:checked ~ #nav_close{
        display: none;
        opacity: 0.5;
    }

    #nav_input:checked ~ #nav_contents{
        -webkit-transform: translateY(0%);
        transform: translateY(0%);
        box-shadow:  6px 0 25px rgba(0,0,0,0.15)
    }

    nav ul li{
        float: left;
        width: auto;
        height: auto;
        border:none;
        padding: 10px;
    }

    nav ul li:nth-child(2n){
        border-right: none;
    }


    nav ul li a{
        text-align: center;
        display: block;
        line-height: 1.5;
        text-decoration: none;
        color: #555;
        font-size: 18px;
        text-shadow:1px 1px 1px #777777;
    }

    nav ul li a:hover{
        opacity: 0.7;
    }

    #topbox{
        width: 100%;
        height: auto;
        min-height: 100vh;
        background-image: url('../img/keyvisual.jpg');
        background-repeat: no-repeat;
        background-position:top center;
        background-size: cover;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack:center;
        -ms-flex-pack:center;
        justify-content: center;
        -webkit-box-allgn:center;
        -ms-flex-align:center;
        align-items: center;
        padding: 0;
    }

    #productbox{
        margin: 50px auto 0;
        width: 1080px;
    }

    #productbox figure{
        padding: 0;
        margin-bottom: 30px;
    }

    #productbox  .productbox3_pictbox, #productbox .productbox3_pictbox figure{
        margin-bottom: 0;
    }

    #productbox figure img{
        max-width: 100%;
    }

    #productbox figure figcaption{
        text-align: left;
        font-size: 18px;
        margin-top: 10px;
        line-height: 1.6;
    }
    
    #productbox .productbox1_pictbox img,
    #productbox .productbox3_pictbox img{
        float: left;
        width: 500px;
    }
    
    #productbox .productbox1_pictbox figcaption,
    #productbox .productbox3_pictbox figcaption{
        float: right;
        margin-left:30px;
        width: 550px;
    }

    #productbox .productbox2_pictbox img{
        float: right;
        width: 500px;
    }
    
    #productbox .productbox2_pictbox figcaption{
        float:left;
        margin-right:30px;
        width: 550px;
    }

    .main_container{
        text-align: center;
    }
    h2{
        position: relative;
        display: inline-block;
        padding: 0 55px;
        margin: 10px auto 30px;
        font-size:22px;
        color: #1e90ff;
        width: 90%;
        box-sizing: border-box;
        overflow: hidden;
    }

    h2:before, h2:after{
        content: "";
        top: 50%;
        position: absolute;
        display: inline-block;
        width: 420px;
        height: 2px;
        border-top: solid 1px #87cefa;
        border-bottom: solid 1px #87cefa;
    }

    #newsbox{
        width: 1080px;
        margin: 50px auto 0;
    }

    #newsbox dl{
        font-size: 18px;
        text-align: left;
    }
    
    #newsbox dl dt{
        float: left;
    }
    
    #newsbox dl dd{
        margin-bottom: 20px;
        margin-left: 125px;
    }
    
    #newsbox dl dd a{
        text-decoration: none;
        color: #000;
    }

    #newsbox dl dd a:hover{
        opacity: 0.7;
        
    }
    
    .more_btn a{
        font-size: 18px;
    }

    #accessbox{
        width: 1080px;
        margin: 50px auto;
    }

    #accessbox .accessmap{
        height: auto;
        overflow: hidden;
        padding-bottom:0;
        position: relative;
        float: left;
        width: 500px;
    }

    #accessbox .accessmap iframe{
        position: static;
        width: 100%;
        height: 500px;
    }

    #accessbox .accesstext{
        margin: 5px 0 0 30px;
        width: 550px;
        float: right;
    }

    #accessbox p{
        font-size: 18px;
        text-align: left;   
    }

    h2:before{
        left: 0;
    }

    h2:after{
        right: 0;
    }

    .fotter_container .pagetop_box{
        text-align: right;
        padding: 0 10px;
        margin-bottom: 14px;
    }

    .fotter_container .pagetop_box a{
        color: #fff;
        text-decoration: none;
        background: #87cefa;
        position: relative;
        margin-left: auto;
        padding: 10px;
    }
    
    #productbox figure:after,
    #accessbox:after,
    #newsbox dl:after{
        display: block;
        content: "";
        clear: both;
    }

 
}

nav ul:after{
    display: block;
    content: "";
    clear: both;
}