body {
  background-image: url(../images/bg.png);
  -webkit-text-size-adjust: 100%;
}

#wrapper {
  background-image: url(../images/container_bg.png);
  background-repeat: repeat-y;
  width: 804px;
  margin: 0 auto;
  padding-top: 15px;
  text-align: center;
}
@media only screen and (max-device-width: 420px) {
  #wrapper {
    background-image: none;
    background-color: #FFF;
    width: 320px;
  }
}

#header {
  text-align: center;
}
#header a {
  position: relative;
  z-index: 1;
}
@media only screen and (max-device-width: 420px) {
  #header a img {
    width: 100%;
  }
}
#header h1 {
  width: 690px;
  height: 390px;
  margin: -60px auto 0;
}
#header h1 img {
  width: 100%;
}
@media only screen and (max-device-width: 420px) {
  #header h1 {
    text-indent: -9999px;
    width: 320px;
    height: 256px;
    background: url(../images/sp_page_title.png) no-repeat center top;
    -webkit-background-size: 100% 100%;
            background-size: 100% 100%;
  }
}

#toc {
  width: 500px;
}
@media only screen and (max-device-width: 420px) {
  #toc {
    width: 310px;
  }
}
#toc h3 {
  line-height: 1.5em;
}
#toc h3 span {
  display: block;
  font-size: 75%;
}
#toc li {
  width: auto;
  padding-left: 0;
  text-align: left;
  line-height: 1.5em;
}
#toc li.current {
  font-weight: bold;
  color: #000;
}
#toc li.off {
  color: #808080;
}
#toc li a, #toc li p {
  position: relative;
  margin: 0 0 0 4.5em;
}
@media only screen and (max-device-width: 420px) {
  #toc li a, #toc li p {
    margin: 0;
  }
}
#toc li em {
  float: left;
  padding-right: 0;
}
@media only screen and (max-device-width: 420px) {
  #toc li em {
    float: none;
    display: block;
    margin-left: 0;
  }
}
@media only screen and (max-device-width: 420px) {
  #toc li span {
    top: 0;
    margin-top: 0;
    font-size: 12px;
    color: #999;
    text-align: right;
  }
}

#yodogawa {
  display: inline-block;
  width: auto;
  margin: 0 auto;
  text-align: left;
}
@media only screen and (max-device-width: 420px) {
  #yodogawa {
    padding-left: 8px;
    padding-right: 8px;
    width: 304px;
  }
}

#contents-area {
  width: 560px;
  margin: 0 auto;
  font-size: 16px;
}
@media only screen and (max-device-width: 420px) {
  #contents-area {
    width: 100%;
  }
}
#contents-area h2 {
  border-top: 2px solid #E5E5FF;
  margin: 40px auto 80px;
  padding-top: 40px;
  padding-left: 53px;
  padding-right: 53px;
}
@media only screen and (max-device-width: 420px) {
  #contents-area h2 {
    margin-top: 30px;
    margin-bottom: 60px;
    padding-left: 8px;
    padding-right: 8px;
    width: auto;
  }
}
#contents-area h2 img {
  width: 100%;
}

.item {
  border-bottom: 2px solid #E5E5FF;
  margin: 80px auto 40px;
}
@media only screen and (max-device-width: 420px) {
  .item {
    margin-top: 60px;
    margin-bottom: 30px;
  }
}

.question,
.answer,
.comment {
  border-radius: 18px;
  position: relative;
  margin: auto;
  margin: 40px auto;
  padding: 40px;
  text-align: left;
}
@media only screen and (max-device-width: 420px) {
  .question,
  .answer,
  .comment {
    margin: 20px 8px;
    padding: 40px 8px;
  }
}
.question h3,
.answer h3,
.comment h3 {
  position: absolute;
  width: 56px;
  height: 60px;
  margin-top: -75px;
  margin-left: -20px;
}
@media only screen and (max-device-width: 420px) {
  .question h3,
  .answer h3,
  .comment h3 {
    margin-left: 0px;
  }
}
.question h3 img,
.answer h3 img,
.comment h3 img {
  width: 100%;
}

.question {
  background-color: #F2F2FF;
  margin-bottom: 80px;
}
.question .arrow {
  display: block;
  position: absolute;
  width: 130px;
  height: 104px;
  bottom: -104px;
  left: 50%;
  margin-left: -65px;
  z-index: 1;
}
.question .arrow img {
  width: 100%;
}

.answer {
  border: 4px solid #F2F2FF;
}
.answer:before {
  background: url(../images/a.png) no-repeat left top;
}

.comment {
  padding-top: 0;
  padding-bottom: 0;
}

.question .contents,
.answer .contents,
.comment .contents {
  width: auto;
  margin: 0px auto;
  padding: 0px;
}

.comment .contents {
  margin-left: 80px;
}
.comment .contents span {
  display: block;
  text-align: right;
}
@media only screen and (max-device-width: 420px) {
  .comment .contents {
    margin-left: 0;
  }
}

.question .author,
.answer .author,
.comment .author {
  width: auto;
  margin: 0px auto;
  text-align: right;
}

.comment .author {
  float: left;
}
@media only screen and (max-device-width: 420px) {
  .comment .author {
    float: none;
    text-align: left;
  }
}

.multiple .question {
  margin-top: 80px;
}
.multiple .question:first-child {
  margin-top: 0;
}

@media only screen and (max-device-width: 420px) {
  #banner {
    padding: 0 8px;
  }
  #banner img {
    width: 100%;
  }
}

#navi {
  position: relative;
  height: auto;
}
@media only screen and (max-device-width: 420px) {
  #navi {
    height: auto;
    padding-bottom: 50px;
  }
}
#navi:before {
  content: none;
  width: auto;
  height: auto;
  display: inline;
  vertical-align: auto;
}
#navi li {
  width: 100px;
}
@media only screen and (max-device-width: 420px) {
  #navi li {
    padding: 0;
    margin: 0 17px;
  }
}
#navi li.top {
  width: 240px;
}
@media only screen and (max-device-width: 420px) {
  #navi li.top {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin: 0 0 0 -120px;
    padding: 0;
  }
}
#navi li img {
  width: 100%;
}

#footer {
  background: transparent;
  margin: 40px 0 0 0;
  padding: 0 0 200px 0;
  width: auto;
}
#footer ul li {
  padding: 0 20px;
  margin: 20px auto;
}
@media only screen and (max-device-width: 420px) {
  #footer ul li {
    padding: 0 10px;
    margin: 10px auto !important;
  }
}
#footer ul li.mail {
  width: 101px;
}
#footer ul li.mail img {
  width: 100%;
}
#footer ul li.tweet {
  width: 96px;
}
#footer ul li.tweet img {
  width: 100%;
}
#footer ul li.home {
  display: block;
  width: 122px;
}
#footer ul li.home img {
  width: 100%;
}
#footer ul li.fblike {
  margin: 20px auto;
}
#footer ul li.line {
  display: none;
}
@media only screen and (max-device-width: 420px) {
  #footer ul li.line {
    display: inline-block;
    text-align: left;
  }
}
#footer .copyright {
  margin: 40px 0 0 0;
  padding: 0;
  line-height: 1em;
}
