@media (min-width: 481px) {
  #wrapper{
    background-color: #ffffff;
    max-width: 740px;
    width: auto;
    margin: auto;
    padding: 1em 2em 1em 2em;
    box-shadow: 0px 0px 8px 8px rgba(0,0,0,0.2);
  }

  input[type="text"] {
    border:0;
    padding:8px;
    width: calc(100% - 40px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input[type="email"] {
    border:0;
    padding:8px;
    width: calc(100% - 40px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input[type="tel"] {
    border:0;
    padding:8px;
    width: calc(100% - 40px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input[type="number"] {
    border:0;
    padding:8px;
    width: calc(100% - 40px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  textarea {
    line-height: 1.5em;
    border:0;
    padding:8px;
    width: calc(100% - 40px);
    height: 5em;
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input#sei_kanji{
  width: 10em;
  }
  input#mei_kanji{
  width: 10em;
  }
  input#sei_kana{
  width: 10em;
  }
  input#mei_kana{
  width: 10em;
  }
  input#mail {
  width: 60%;
  }
  input#tel {
  width: 60%;
  }
  input#fax {
  width: 60%;
  }
  input#code {
  width: 10em;
  }
  input#password {
    width: 10em;
  }
  dd{
    margin-inline-start: 40px;
  }
  input.bgDesc{
    width:19em;
  }
  .sp{
    display: none;
  }
}

@media (max-width: 480px) {
  #wrapper{
    background-color: #ffffff;
    width: auto;
    margin: auto;
    padding: 12px;
  }

  input[type="text"] {
    border:0;
    padding:8px;
    width: calc(100% - 24px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input[type="tel"] {
    border:0;
    padding:8px;
    width: calc(100% - 24px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input[type="email"] {
    border:0;
    padding:8px;
    width: calc(100% - 24px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input[type="number"] {
    border:0;
    padding:8px;
    width: calc(100% - 40px);
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  textarea {
    line-height: 1.5em;
    border:0;
    padding:8px;
    width: calc(100% - 24px);
    height: 5em;
    font-size:1em;
    font-family:Arial, sans-serif;
    color:#000;
    border:solid 1px #ccc;
    margin:0 0 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
  }

  input#sei_kanji{
  width: 48%;
  }
  input#mei_kanji{
  width: 48%;
  }
  input#sei_kana{
  width: 48%;
  }
  input#mei_kana{
  width: 48%;
  }
  input#tel {
    width:calc(100% - 24px);
  }
  input#fax {
    width:calc(100% - 24px);
  }
  input#code {
  width:48%;
  }
  input#password {
  width:48%;
  }
  dd{
    margin-inline-start: 24px;
  }
  input.bgDesc{
    width:calc(100% - 24px);
  }
  .sp{
    display: inline;
  }
}

body{
margin: 0;
//background-color: #eeffe8;
background-color: #F3FBFA;
font-size: 100%;
line-height: 150%; 
}

#header{
//width:100%;
height:auto;
margin: 0 0 20px 0;
}

#title_r{
width: 100%;
height: auto;
float:left;
vertical-align: bottom;
border-left: 20px solid #BDD6F9;
padding: 0 0 0 1em;
}

#title_f{
  width: 100%;
  height: auto;
  float:left;
  vertical-align: bottom;
}

#content{
width: 100%;
clear:both;
padding: 1em 0 0 0;
}

#footer{
font-size: 90%; line-height: 150%; 
margin-top:20px;
text-align:center;
background:#fff;
}

#signature{
margin-top: 10px;
text-align: center;
font-size: 80%;
line-height: 150%; 
}

p{
margin-top: 1px; padding-top: 0px; 
margin-left: 0em; margin-right: 0em;
}

p.center{
text-align: center;
}

span.sub{
font-size: 80%;
line-height: 150%;
}

span.note{
font-size: 80%;
}

h1{
font-size: 150%; line-height: 120%; 
font-family: "MS Pゴシック", Osaka, sans-serif;
margin-top: 0; padding-top: 0; 
margin-bottom: 0.5em;
}

h2{
font-size: 120%; line-height: 110%; 
font-family: "MS Pゴシック", Osaka, sans-serif;
margin-top: 0; padding-top: 0; 
margin-bottom: 0.5em;
}

h2.subtitle{
padding: 0.5em;
background: aliceblue;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.23);
}

h3{
font-size: 100%; line-height: 110%;
font-family: "MS Pゴシック", Osaka, sans-serif;
margin-top: 0; padding-top: 0; 
margin-bottom: 0.5em;
}

span.red{
    color:#ff0000;
}

a img 	{ border: none; }
a:link	{ text-decoration: underline; color: #37D; }
a:hover	{ text-decoration: underline; color: #37D; background-color:#eeeeff; }
a:visited { text-decoration: underline; color: #48E; }
hr	{ width: 100%; height: 0px; }

table { font-size: 80%; line-height: 150%; }
td.caption {background-color: #e0e0e0; width: 18em; height: 1.8em;}
td.content {background-color: #ededed;}
td.blue    {background-color: #BDD6F9;}
td.submit  {background-color: #BDD6F9; text-align: center;}
td.note    {color: #F75; font-size:80%; text-align: right;}

dl{
width:100%;
}
dt{margin-bottom: 4px;}
dt.bold{font-weight: bold;}
dt.mark{border-left: solid 6px #B3CEEC; padding-left: 4px;}

dd{font-weight: normal; padding-bottom: 1em;}
dd.bold{font-weight: bold; padding-bottom: 12px;}
dd.ub{border-bottom: solid 1px #B3CEEC; padding-bottom:0; margin-bottom:9px;}

ul.short{margin: 0px; padding-left: 20px;}

select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  padding:8px;
  margin:0 0 10px;
  width: auto;
  background-color: transparent;
  position: relative;
  z-index: 1;
  font-size:1em;
  font-family:Arial, sans-serif;
  color:#000;
  border:solid 1px #ccc;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 1px;
}

select::-ms-expand {
  display: none;
}

input[type="password"] {
  border:0;
  padding:8px;
  width: 100%;
  font-size:1em;
  font-family:Arial, sans-serif;
  color:#000;
  border:solid 1px #ccc;
  margin:0 0 10px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

input#zip1 {
width: 3em;
}

input#zip2 {
width: 4em;
}

input[type="submit"].sq{
width: 250px;
height: 50px;
margin: 1em;
}
input[type="button"].sq{
width: 250px;
height: 50px;
}

.table3 td      {
    padding:0.3em 1em 0.3em 1em;
}
.table3 td.center{
    text-align: center;
}
.table3 td.uborder {
    border-collapse: collapse;
    border-bottom: 2px #ffd37d solid;
}
.table3 td.uborder_cm {
border-collapse: collapse;
border-bottom: 2px #ffd37d solid;
text-align:center;
vertical-align:bottom;
}

.displayNone{
  display: none;
}
