* {
  margin: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #fff;
  -webkit-text-size-adjust: 100%;
  font-size: small;
}

h1 {
  display: block;
  margin: 0 auto;
  color: #fff;
  font-size: 1.1em;
  line-height: 1.5em;
  text-align: center;
  background: rgb(0, 155, 238);
  padding: 2px 1vw 0;
}

#head {
  display: block;
  max-width: 1000px;
  margin: 10px auto;
  max-height: 100px;
}

#tlogo img {
  display: block;
  margin: 0 auto;
  padding: 0 5px;
  height: auto;
}

@media screen and (min-width: 1000px) {
  #tlogo img {
      max-width: 700px
  }

  #navcontent p {
      display: none
  }

  #menu {
      font-size: 1.3em;
      display: block;
      background: #fdfdfd;
      overflow: hidden;
      position: sticky;
      top: 0
  }

  #menu ul {
      list-style: outside none;
      text-align: center;
      padding: 0;
      margin: 0 auto;
      max-width: 1016px
  }

  #menu li {
      width: 180px;
      display: inline-block;
      /*display:inline;
              /zoom:1;*/
      margin: 5px 1px;
      padding: 0;
      border-radius: 6px;
      vertical-align: middle
  }

  #menu a {
      height: 1.8em;
      display: flex;
      margin: 0 auto;
      border-radius: 6px;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      border: #ffc960 solid 2px;
      color: #060606;
      text-shadow: 0 3px 5px #666;
      box-shadow: inset 0px -2px 20px 10px rgb(250, 248, 248);
      transition: all 0.5s
  }

  #menu a:hover {
      text-decoration: underline;
      text-shadow: 0 3px 5px #666;
      box-shadow: none
  }
  
  .sidem {
    display: none;
  }

  main {
    padding: 0 0 1em;
    background: none
  }

  article {
    display: block;
    margin: 0 2%;
  }

  .ph {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
    max-width: 1350px;
    margin: 0 auto;
  }

  #text {
    background: #fff;
  }

  #img img {
    border-radius: 15px;
    border: solid 1px #CCC;
  }
}

@media screen and (max-width:768px) {
  #tlogo img {
    max-width: 90%;
  }

  #menu {
    display: none;
  }

  .sidem {
    position: fixed;
    background-color: #3d3d3d;
    top: 32px;
    left: 0;
    z-index: 12345678902;
    box-shadow: 0 1px 12px 0 rgba(0, 0, 0, .12);
    -webkit-transition: .3s all;
    transition: .2s all;
    width: 50px;
    padding: 3px 0;
    border-radius: 0 15px 15px 0;
  }

  #navdrawer {
    position: relative;
    padding: 10px;
  }

  .navunshow {
    display: none;
  }

  #open {
    display: inline-block;
    width: 30px;
    height: 22px;
    vertical-align: middle;
  }

  #open span,
  #open span:before,
  #open span:after {
    position: absolute;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #fff;
    display: block;
    content: '';
    cursor: pointer;
  }

  #open span:before {
    bottom: -8px;
  }

  #open span:after {
    bottom: -16px;
  }

  #close {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: .3s ease-in-out;
  }

  #navcontent {
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 80%;
    max-width: 280px;
    height: 100%;
    transition: .3s ease-in-out;
    -webkit-transform: translateX(-105%);
    transform: translateX(-105%);
    background: #402408;
  }

  #navinput:checked~#close {
    display: block;
    opacity: .5;
  }

  #navinput:checked~#navcontent {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
    box-shadow: 6px 0 25px rgba(0, 0, 0, .15);
  }

  #navcontent dl {
    margin: 0;
    padding: 0;
  }

  #navcontent dt {
    font-size: 1.1em;
    padding: 0.5em;
    text-align: left;
  }

  #navcontent dd {
    display: block;
    list-style: none;
    background: #ffc960;
    margin: 1px 0;
    padding: 0 1em;
  }

  #navcontent a {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: #fff;
  }

  #navcontent dd a {
    color: #000;
  }

  #text img {
    margin: 0 auto 2em;
  }
}

#products {
  display: block;
  margin: 0.3em 0 1.5em;
  padding: 0.5em 0;
  color: #fff;
  text-shadow: 0 2px 8px #333;
  text-align: center;
  border-top: solid 1px #ccc;
  background: rgb(0, 155, 238);
}

#ti {
  margin: 0 auto;
  max-width: 1350px;
}

#ti h2 {
  text-shadow: 0 2px 2px #999;
}

.contact {
  margin: 0 0 1em 1em;
  padding: 0 0.5em;
  line-height: 1.3em;
  border-left: 5px #FF0000 solid;
}

.waku {
  margin: 0 auto;
}

.ph img {
  display: block;
  max-width: 100%;
  height: auto;
}

#text h3 {
  font-size: medium;
  margin: 0 auto;
  padding: 0.5em;
  line-height: 1.5em;
  border-bottom: #eee double;
  border-top: 5px #e8437e solid;
  background: #fff;
}

#text h4 {
  margin: 0 auto;
  padding: 0.5em;
  line-height: 1.5em;
  border-bottom: #eee 1px solid;
  border-top: 2px #e8437e dashed;
  background: #fff;
}

.ex {
  padding: 0.5em;
  color: red;
  background: #fff;
}

#text ul {
  padding: 0.5em;
  background: #fff;
}

#text li {
  line-height: 1.75em;
  margin: 0 0 0 2em;
}

#cata {
  display: block;
  margin: 0 auto;
  padding: 0.5em;
  line-height: 1.75em;
  border-top: #eee double;
  background: #FFFFdd;
}

#cata dd:before {
  content: "→ ";
}

#cata dd {
  display: block;
  margin: 5px;
}

.up {
  text-align: right;
  padding: 1em 0;
}

footer {
  font-size: 12px;
  line-height: 2.5em;
  text-align: center;
  display: block;
  border-top: double #a00;
  color: #a00;
}
