section, article, header, footer, hgroup, nav {
  display: block;
}

#footer {
  margin-bottom: 1em;
}

#header .touch-logo {
  display: none;
}

.footer-touch {
  display: none;
}

@media only screen and (max-width: 640px) {
  #header {
    text-align: center;
  }

  #header #header-body {
    display: none;
  }

  #header .touch-logo {
    display: inline;
  }

  #footer {
    font-size: 90%;
    text-align: left;
    border-top: none;
    margin: 0;
    width: auto;
    position: relative;
  }

  .footer-touch {
    display: block;
  }

  .footer-pc {
    display: none;
  }
}

div#langselector {
  font-size:100% !important;
}

div#header h1 {
  font-size:200%;
  padding-top:10px;
}

ul.my-menu {
  list-style:none outside none;
  position:absolute;
  right:0;
  top:30px;
  margin:0;
  padding:0;
}

ul.my-menu li{
  width:157px;
  height:44px;
  display:block; /*  */
  float:left;
  overflow:hidden;
  margin-left:15px;
  font-size:105%;
  background:url(/images/my-btn.gif) no-repeat;
}

ul.my-menu li a{
  display:block;
  margin-top:12px;
  text-align:center;
  padding-left:10px;
}

ul.my-menu a{
  color:#5279e7;
  font-size:100%;
  font-weight:bold;
}

div#user-header-body {
  background:url("/images/my-header.gif") no-repeat scroll center bottom transparent;
  padding-bottom:57px;
}

#hatena-profile div#user-header-body,
#hatena-profile-fan div#user-header-body {
  background-image:none;
}

h2 {
  background:url("/images/h2-received.gif") no-repeat scroll 0 0 transparent;
  margin-left:-2px;
  margin-top:-30px;
}

div.switch-ssl {
  float:right;
  padding:5px 0;
  padding-top:0;
  text-align:right;
  white-space:nowrap;
}

table.config {
  border:1px solid #CCCCCC;
  clear:both;
  font-size:100%;
  width:100%;
  border-collapse:collapse;
}

table.config th {
  background:none repeat scroll 0 0 #E0E9FA;
  color:black;
  padding:5px;
  white-space:nowrap;
  border:1px solid #C0CBDE;
}

table.config td {
  padding:5px;
  width:75%;
  background:none repeat scroll 0 0 #FFFFFF;
  border:1px solid #C0CBDE;
}

h3 {
  border-left:5px  solid #5279e7;
  padding:2px 0 2px 5px;
  margin-bottom:5px;
  color:#00378a;
}

#hatena-profile-fan h3 {
  border-left:none;
}

  .section .section {
    font-size: 100%;
  }
  .section .config.edit td input, .section .config.edit td textarea {
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    1px solid #CCCCCC;
    font-size: 100%;
  }
  .config-button {
    text-align: center;
  }
  div.section .attention ul {
    font-size: 100%;
    margin-left: 25px;
    margin-right: 10px;
  }

/* External services */

.external-service-favicon {
  vertical-align:middle;
  padding-right:4px;
}

/* OAuth */

.oauth-service-logo {
  max-width: 320px;
  max-width: 160px;
}

.oauth-service-icon {
  max-width: 64px;
  max-height: 64px;
}

.auth-item-active {

}

.auth-item-inactive {
  color: gray;
  background-color: #C0C0C0;
}

/* OpenID */

div.openiddescription {
  padding:5px 0;
  line-height:1.5;
}

div.openidaccount {
  background:none repeat scroll 0 0 #E0E9FA;
  border:1px solid #C1CFEA;
  font-size:120%;
  font-weight:bold;
  margin-bottom:20px;
  padding:10px;
  text-align:center;
}

/* Auth configs */


            .ac-url-name-widget {
              display: table;
            }
            .ac-url-name-widget > div {
              display: table-cell;
              vertical-align: top;
              padding-right: 16px;
            }
            .ac-url-name-current, .ac-url-name-cands-list-container {
              width: 50%;
            }
            .ac-url-name-widget .ac-url-name-current ul,
            .section .config.edit ul.ac-by-relation-list {
              margin: 0;
              padding: 0;
            }
            .ac-url-name-widget .ac-url-name-current li,
            .section .config.edit ul.ac-by-relation-list li {
              display: block;
              margin: 2px;
              padding: 2px;
            }
            .section .config.edit .ac-by-relation-list input {
              width: auto;
            }

            #url-name-input {
              background-repeat: no-repeat;
              background-position: 4px center;
              padding: 4px 4px 4px 20px;
            }
            #url-name-cands {
              margin: 0;
              padding: 0;
              max-height: 20em;
              height: 20em;
              overflow: auto;
            }
            #url-name-cands li {
              display: block;
              margin: 2px;
              padding: 2px;
              cursor: pointer;
            }
            #url-name-cands li:hover {
              background-color: #E8EEF9;
            }
            .ac-url-name-widget .display-name {
              font-weight: bolder;
            }
            .ac-url-name-widget .url-name {
              font-size: 90%;
            }

.ac-by-relation-users-preview {
  display:block;
  margin-left:20px;
  line-height:1.0;
}
.ac-by-relation-users-preview img {
  padding: 2px;
}

/* Tabs */

            .tab-section-container {
              border-bottom: #D6E0F2 2px solid;
              margin-bottom: 8px;
              padding-bottom: 8px;
            }
            .tab-section-container .tab-buttons {
              border-bottom: 2px solid #D6E0F2;
              padding: 0;
            }
            .tab-section-container .tab-buttons a {
              display: inline-block;
              border: #D6E0F2 2px solid;
              border-top-left-radius: 5px;
              border-top-right-radius: 5px;
              padding: 4px 8px 2px;
              text-decoration: none;
              color: inherit;
              margin: 0 0 -2px 4px;
              background: #E8EEF9;
            }
            .tab-section-container .tab-buttons a.selected {
              font-weight: bolder;
              border-bottom-color: white;
              background: white;
            }
            .tab-section-container.scripted h3 {
              display: none;
            }
            #by-riddle textarea {
              height: 8em;
            }

/* Hatena Trade */

.itemlist td p {
  margin:0;
}

.item-received p.pager:first-child {
  padding:0;
}

.itemlist td img {
  max-width:32px;
  max-height:32px;
  vertical-align:middle;
}


/* myconfig */

#allow .accept-table{
  margin:0;
}