html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-size: 93.75%;
  line-height: 1.5;
  font-family: sans-serif;
}
input[type="text"] {
  background: url(../img/input_text.png) 0 100% / 500px 4px no-repeat,
    url(../img/input_text.png) 100% 100% / 500px 4px no-repeat #fff;
  border: 0 none;
  padding: 0.7em 0.5em;
  border-radius: 0;
}
input[type="text"]:focus {
  background-image: url(../img/input_text_on.png), url(../img/input_text_on.png);
}

#header {
  border-bottom: 2px solid #000;
  height: 42px;
  position: relative;
}
#header .title {
  text-align: center;
  font-size: 1.2em;
  margin: 0;
  padding-top: 0.5em;
}
#header a,
#header button {
  position: absolute;
  top: 0;
  left: 0;
  width: 55px;
  height: 42px;
  border: 0 none;
  background: #fff url(../img/header_list.png) no-repeat 50% 50%;
  background-size: 55px 42px;
  padding: 0;
  overflow: hidden;
  text-indent: -100em;
}
#header .write {
  left: auto;
  right: 0;
  background-image: url(../img/header_write.png);
}
#main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* article list */
#header.list {
  background: #fff url(../img/header_sometalk.png) no-repeat 50% 50%;
  background-size: 120px 28px;
}
#article-list .page {
  background: #eee;
  padding: 13px 10px;
}
#article-list ul {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
#article-list li {
  max-width: 400px;
  max-height: 400px;
  width: calc(50% - 5px - 26px);
  background: url(../img/article_list_rb.png) 100% 100% / 3px 17px no-repeat,
    url(../img/article_list_lt.png) 0 0 / 3px 3px no-repeat,
    url(../img/article_list_rt.png) 100% 0 / 3px 400px no-repeat,
    url(../img/article_list_lb.png) 0 100% / 400px 400px no-repeat;
  padding: 13px 13px 20px;
}
#article-list li.even {
  position: absolute;
  top: 0;
  right: 0;
}
#article-list li a {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 22px 0 27px;
}
#article-list li .title {
  font-weight: bold;
  font-size: 1.3em;
  color: #000;
  line-height: 1.1;
}
#article-list li .info {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  color: #919191;
  font-size: 0.7em;
}
#article-list li .info span {
  background: url(../img/article_list_icon.png) 0 0 / 23px 75px no-repeat;
}
#article-list li .info .male {
  padding-left: 24px;
  background-position: 0 3px;
}
#article-list li .info .female {
  padding-left: 23px;
  background-position: 0 -25px;
}
#article-list li .info .time {
  padding-left: 19px;
  background-position: 6px -50px;
}
#article-list li .greenlight {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  color: #41ba33;
}

/* article */
#header.article {
  background: #fff url(../img/header.png) no-repeat 50% 50%;
  background-size: 132px 26px;
}
#article {
  font-size: 1.1em;
  padding: 16px 9px 0;
}
#article h1 {
  font-size: 21px;
  margin: 0;
}
#article header {
  border-bottom: 1px solid #cfcfd2;
  margin: 0 0 23px;
}
#article header .user {
  font-size: 11px;
  margin: 0.5em 0 1em;
  color: #aaa;
}
#article footer {
  border: 1px solid #eee;
  border-width: 1px 0;
  margin: 1em 0 0;
  background: #fff url(../img/article_footer_lquote.png) no-repeat 0 0.8em;
  background-size: 24px 18px;
  padding: 1em 0 1em 33px;
}
#article footer .summary {
  background: #fff url(../img/article_footer_rquote.png) no-repeat 100% 100%;
  background-size: 24px 18px;
  padding: 0 33px 0 0;
  margin: 0;
  text-align: center;
  font-size: 0.9em;
}
.hul {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1) url(../img/hul.png) no-repeat 0 0;
  background-size: 320px 320px;
  animation: hul 0.8s forwards;
  -webkit-animation: hul 0.8s forwards;
}
.bang {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: url(../img/bang.png) no-repeat 0 0;
  animation: bang 0.6s steps(1) forwards;
  -webkit-animation: bang 0.6s steps(1) forwards;
}

#result-poll {
  position: relative;
  height: 115px;
}
#result-poll .text {
  position: absolute;
  top: 33px;
  right: 105px;
  width: 182px;
  height: 61px;
  margin: 0;
  background: url(../img/result_poll.png) no-repeat;
  background-size: 182px 61px;
  overflow: hidden;
}
#result-poll .question {
  display: none;
}
#greenlight-count {
  text-indent: 0;
  position: absolute;
  top: 15px;
  left: 30px;
  width: 120px;
  height: 42px;
  font-size: 0.7em;
  line-height: 1.5em;
  background: #787878;
  margin: 0;
  color: #fff;
}
#greenlight-count span {
  font-size: 2em;
  color: #e0e0e0;
  font-weight: bold;
}
#greenlight-count.on span {
  color: #90ff53;
}

#lightbox {
  position: fixed;
  right: 0;
  bottom: 16px;
  width: 96px;
  height: 0;
  padding-top: 103px;
  overflow: hidden;
  background: url(../img/greenlight_off.png); /* 198 by 206 */
  background-size: 96px 103px;
  border: 0 none;
  vertical-align: middle;
}
#lightbox.on {
  background-image: url(../img/greenlight.png);
}
#lightbox.static {
  position: absolute;
  bottom: 0;
}

/* comment list */
#comment {
  background: #eee;
  border: 1px solid #d6d6d6;
  border-width: 1px 0;
  position: relative;
  overflow: hidden;
  padding: 0.8em 0;
  height: 200px;
  overflow: scroll;
}
#comment .count {
  margin: 0 15px 5px;
  color: #111;
}
#comment .count span {
  color: #777;
}
#comment ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#comment li {
  position: relative;
  border-width: 10px 10px 10px 18px;
  border-image: url(../img/comment.png) 20 20 20 36 stretch;
  border-style: solid;
  margin: 0 5em 28px 1em;
}
#comment li.on {
  border-width: 10px 18px 10px 10px;
  border-image: url(../img/comment_on.png) 20 36 20 20 stretch;
  margin-right: 1em;
  margin-left: 5em;
}
#comment .text {
  background: #fff;
  margin: 0;
  color: #343434;
}
#comment li.on .text {
  background: #e0fc95;
  color: #000;
}
#comment p[class^="sticker"] {
  min-height: 50px;
  padding-right: 80px;
}
#comment li.on p[class^="sticker"] {
  padding-left: 80px;
  padding-right: 0;
}
#comment .user {
  position: absolute;
  bottom: -2.7em;
  font-size: 0.75em;
  color: #8e8d8d;
}

/* comment write */
#comment-write {
  position: relative;
  padding: 0.4em 9px;
}
#comment-write [type="text"] {
  width: calc(100% - 18px - 32px);
}
#comment-write [type="submit"] {
  width: 32px;
  height: 32px;
  background: url(../img/comment_submit.png) no-repeat 0 0;
  background-size: 32px 64px;
  border: 0 none;
  text-indent: -100em;
  display: inline-block;
  vertical-align: middle;
}
#comment-write.on [type="submit"] {
  background-position: 0 100%;
}

/* Sticker */
#sticker {
}
#sticker ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#sticker li {
  position: relative;
  float: left;
  width: 25%;
  max-width: 70px;
  height: 70px;
  /*outline: 1px solid #999;*/
}
#comment p[class^="sticker"]:before,
#sticker li span {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  min-height: 70px;
  height: 100%;
  background: url(../img/sticker_on.png) 0 0 / 289px 132px no-repeat #fff;
}
#comment p[class^="sticker"]:before {
  top: -10px;
  left: auto;
  right: 0;
  content: " ";
  width: 70px;
  background-color: transparent;
}
#comment li.on p[class^="sticker"]:before {
  left: 0;
  content: " ";
  width: 70px;
  background-color: transparent;
}
#sticker li input:checked + span:after {
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
  display: block;
  content: "1";
  background: rgba(100, 100, 100, 0.1);
}
#comment p.sticker-0:before,
#sticker li input[value="0"] + span {
  background-position: 5px 5px;
}
#comment p.sticker-1:before,
#sticker li input[value="1"] + span {
  background-position: -72px 5px;
}
#comment p.sticker-2:before,
#sticker li input[value="2"] + span {
  background-position: -144px 5px;
}
#comment p.sticker-3:before,
#sticker li input[value="3"] + span {
  /*background-position: -216px 5px;*/
  background-image: url(../img/sticker_gae.png);
  background-size: 70px 70px;
  background-position: 5px 2px;
}
#comment p.sticker-4:before,
#sticker li input[value="4"] + span {
  background-position: 10px -65px;
}
#comment p.sticker-5:before,
#sticker li input[value="5"] + span {
  /*background-position: -68px -65px;*/
  background-image: url(../img/sticker_hur.png);
  background-size: 70px 70px;
  background-position: 0 0;
}
#comment p.sticker-6:before,
#sticker li input[value="6"] + span {
  background-position: -144px -65px;
}
#comment p.sticker-7:before,
#sticker li input[value="7"] + span {
  background-position: -220px -65px;
}

/* user data input */
#user-has-no-data {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#user-data {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  height: 100%;
  width: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}
#user-data div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 250px;
  margin: -125px 0 0 -150px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 1px 1px 5px #777;
}
#user-data p {
  margin: 1em 19px;
  vertical-align: bottom;
}
#user-data p input {
  vertical-align: bottom;
}
#user-data p span {
  position: relative;
  top: 0.3em;
  display: inline-block;
  width: 2.7em;
  font-size: 0.8em;
  text-align: right;
  padding-right: 0.3em;
}
#user-data .heading {
  width: 121px;
  height: 22px;
  text-indent: -100em;
  background: url(../img/user_data_heading.png) 0 0 no-repeat;
  background-size: 121px 22px;
  margin-top: 20px;
}
#user-data .nickname input {
  width: calc(100% - 4em - 10px);
}
#user-data .age input {
  width: 35%;
}
#user-data .gender {
  text-align: center;
}
#user-data .gender span {
  text-align: left;
}
#user-data [type="button"],
#user-data [type="submit"] {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: 0 none;
  padding: 0.9em 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
}
#user-data [type="submit"] {
  left: auto;
  right: 0;
  border-left: 1px solid #eee;
  width: calc(50% - 1px);
  font-weight: bold;
}

/* write */
#article-write p {
  margin: 0;
}
#article-write input[type="text"] {
  padding: 0.8em 1em;
  background: none;
  border-bottom: 1px solid #eee;
  width: calc(100% - 2em);
  font-size: 1em;
}
#article-write textarea {
  padding: 0.8em 1em;
  font-size: 1em;
  border: 0 none;
  border-bottom: 1px solid #eee;
}
#article-write input[type="text"]:focus {
  background: none;
}
#article-write [type="submit"],
#article-write [type="button"] {
  border: 0 none;
  background: transparent;
  font-size: 1.1em;
  color: #5dbf27;
  padding: 0.6em 0.7em;
}
#article-write [type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
}
#article-write [type="button"] {
  position: absolute;
  top: 0;
  left: 0;
}
