.ub-html {
  line-height: 2em;
  color: #636b6f;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  word-wrap: break-word;
  font-size: inherit;

  & > *:first-child {
    margin-top: 0;
  }

  & > p:first-child {
    margin-top: 0;
  }

  & > p:last-child {
    margin-bottom: 0;
  }

  p {
    padding: 0;
    line-height: 1.8em;
    word-spacing: .05rem;
    margin: 0.5em 0;
  }

  img {
    max-width: 100%;

    &.ub-emotion {
      height: 2em;
      border: none;
    }
  }

  iframe {
    width: 100%;
    height: auto;
  }

  video {
    width: 100%;
    height: auto;
  }

  a {
    background: transparent;
  }

  hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
  }

  code,
  kbd,
  pre {
    font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
    font-size: 1em;
    background: #384548;
    color: #f8f8f2;
    white-space: pre;
    word-spacing: normal;
    word-wrap: normal;
    tab-size: 4;
    hyphens: none;
    text-align: left;
    line-height: 1.4em;
  }

  table {
    border-spacing: 0;
    max-width: 98%;
    margin: 1em 0;
    box-shadow: 0 0 0.1rem #CCC;
    display: table;
    text-align: left;
    border: 0.05rem solid #ddd;
    border-collapse: collapse;
    overflow: auto;
    word-break: keep-all;

    tr {
      background-color: #fff;
      border-top: 0.05rem solid #ccc;

      tbody {
        border: 0;
      }

      th {
        font-weight: bold;
        background-color: #f0f0f0;
        padding: 0.15rem 0.3rem;
        border: 0.05rem solid #ddd;
      }

      td {
        padding: 0.15rem 0.3rem;
        border: 0.05rem solid #ddd;
      }
    }
  }

  > p {
    svg, table, pre {
      -webkit-box-shadow: 0 0 0.5rem #CCC;
      -moz-box-shadow: 0 0 0.5rem #CCC;
      box-shadow: 0 0 0.5rem #CCC;
      margin: 1em auto;
      display: block;
    }

    img {
      //-webkit-box-shadow: 0 0 0.5rem #CCC;
      //-moz-box-shadow: 0 0 0.5rem #CCC;
      //box-shadow: 0 0 0.5rem #CCC;
    }
  }

  td,
  th {
    padding: 0;
  }

  * {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  input {
    font: 0.65rem/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  }

  a {
    color: #4183c4;
    text-decoration: none;
  }

  a:hover,
  a:active {
    text-decoration: underline;
  }

  hr {
    height: 0;
    margin: 0.75rem 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-bottom: 0.05rem solid #ddd;
  }

  hr:before {
    display: table;
    content: "";
  }

  hr:after {
    display: table;
    clear: both;
    content: "";
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: bold;
    margin: 1.2em 0 .6em 0;
    text-align: start;
  }

  h1 {
    font-size: 2em;
    margin: 1em 0;
  }

  h2 {
    font-size: 1.7em;
    border-bottom: 1px solid #eee;
    line-height: 2em;
  }

  h3 {
    font-size: 1.5em
  }

  h4 {
    font-size: 1.25em
  }

  h5 {
    font-size: 1em
  }

  h6 {
    font-size: .85em
  }

  blockquote {
    display: block;
    font-size: 1em;
    overflow: auto;
    overflow-scrolling: touch;
    border-left: 3px solid rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.05);
    color: #6a737d;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 1em;
    padding-right: 0.5em;
    margin-bottom: 1em;
    margin-top: 1em;

    p {
      margin: 0.5em 0;
    }
  }

  ul,
  ol {
    padding: 0.5em 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 1.4em;
  }

  ol {
    li {
      list-style: decimal;
    }
  }

  ul {
    li {
      list-style: disc;
    }
  }

  ol ol,
  ul ol {
    list-style-type: lower-roman;
  }

  ul ul ol,
  ul ol ol,
  ol ul ol,
  ol ol ol {
    list-style-type: lower-alpha;
  }

  dd {
    margin-left: 0;
  }

  code {
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 0.2em;
    white-space: pre;
    font-family: "Source Code Pro", monospace;
    font-size: .9em;
    padding: 0.1em 0.2em;
  }

  pre {
    margin-top: 0;
    margin-bottom: 0;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9em;
    border-left: none;

    code {
      color: inherit;
      background: none;
      border: none;
    }
  }
}
