/* ========== Side menu ========== */
#side-menu {
  display: none;
  width: 300px;
  min-width: 200px;
  max-width: 75%;
  min-height: 100%;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #ffffff;
  z-index: 300;
  color: #333333;
  position: absolute;
  top: 0px;
  left: -100%;
}
#side-menu li {
  max-width: 300px;
  list-style: none;
}
#side-menu a {
  color: #333333;
  font-weight: normal;
  display: block;
  font-size: 13px;
  font-weight: normal;
}
#side-menu a span {
  font-size: 11px;
  margin-left: 3px;
}
#side-menu #synapse-ad-unit {
  border-bottom: 1px solid #f5f5f5;
}
#side-menu .service-menu-item {
  line-height: 44px;
  border-bottom: 1px solid #f5f5f5;
  background-color: #ffffff;
}
#side-menu .service-menu-item a {
  padding-left: 12px;
  font-weight: bold;
}
#side-menu .service-menu-item:empty {
  display: none;
}
#side-menu .service-menu-item.login {
  background-color: #f0f9fd;
  position: relative;
  border-bottom: 1px solid #eee;
}
#side-menu .service-menu-item.login img {
  position: static;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  vertical-align: bottom;
  margin: 0 10px 8px 0;
}
#side-menu .service-menu-item.login .user-name {
  display: inline;
  font-weight: bold;
  font-size: 13px;
  padding-left: 12px;
}
#side-menu .sidemenu-button {
  width: 38px;
  height: 28px;
  padding: 0;
  border: 1px solid #e1eff6;
  border-radius: 3px;
  display: block;
  position: absolute;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}
#side-menu .sidemenu-button.notify {
  background-image: url(/images/touch/sidemenu-notify.png);
}
@media only screen and (-webkit-min-device-pixel-ratio:2),(min-resolution: 2dppx){
  #side-menu .sidemenu-button.notify {
    background-image: url(/images/touch/sidemenu-notify@2x.png);
  }
}
#side-menu .service-menu-item.related-menu img {
  vertical-align: bottom;
  margin: 0 5px 15px 0;
}
#side-menu .service-menu-item .label.title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
}
#side-menu .service-menu-item.toggle {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  position: relative;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  padding-left: 12px;
}
#side-menu .service-menu-item.toggle .label {
  display: block;
  position: relative;
}
#side-menu .service-menu-item.toggle .label:after {
  content: '';
  width: 10px;
  height: 6px;
  top: 19px;
  right: 25px;
  position: absolute;
  background-size: 10px 6px;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url(/images/touch/toggle-close.png);
}
@media only screen and (-webkit-min-device-pixel-ratio:2),(min-resolution: 2dppx){
  #side-menu .service-menu-item.toggle .label:after {
    background-image: url(/images/touch/toggle-close@2x.png);
  }
}
#side-menu .service-menu-item.toggle.open {
  background-color: #fafafa;
}
#side-menu .service-menu-item.toggle.open .label:after {
  top: 18px;
  background-image: url(/images/touch/toggle-open.png);
}
@media only screen and (-webkit-min-device-pixel-ratio:2),(min-resolution: 2dppx){
  #side-menu .service-menu-item.toggle.open .label:after {
    background-image: url(/images/touch/toggle-open@2x.png);
  }
}
#side-menu .service-menu-item.toggle .service-submenu {
  display: none;
}
#side-menu .service-menu-item.toggle.open .service-submenu {
  display: block ! important;
}

#side-menu .service-menu-item span.label {
  display: block;
  padding-left: 12px;
  line-height: 22px;
  background-color: #f0f9fd;
  font-weight: 700;
  font-size: 11px;
  color: #666;
  border-bottom: 1px solid #f5f5f5;
}
#side-menu #recommended-feature.service-menu-item li.entry a {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
#side-menu #recommended-feature.service-menu-item li.entry span {
  display: none;
}

#side-menu #synapse-service-list > * {
  border-bottom: 1px solid #f5f5f5;
}
#side-menu #synapse-service-list .list-divider {
  padding-left: 12px;
  line-height: 22px;
  background-color: #f0f9fd;
  font-weight: bold;
  font-size: 11px;
  color: #666;
}
#side-menu #synapse-service-list .synapse_container {
  position: relative;
}
#side-menu #synapse-service-list .synapse_container a {
  padding: 0 0 0 44px;
  height: 64px;
  overflow: hidden;
}
#side-menu #synapse-service-list .synapse_container a:after {
  content:"";
  display:block;
  clear:both;
}
#side-menu #synapse-service-list .synapse_container img.synapse_icon {
  width: 24px;
  height: 24px;
  border: 0;
  position: absolute;
  top: 22px;
  left: 12px;
}
#side-menu #synapse-service-list .synapse_container .synapse_category {
  font-size: 13px;
  font-weight: bold;
  line-height: 18px;
  margin-top: 18px;
  float: left;
  width: 300px;
}
#side-menu #synapse-service-list .synapse_container .synapse_service_name {
  font-size: 11px;
  color: #cccccc;
  line-height: 13px;
  float: left;
}
#side-menu #synapse-service-list .synapse_container .synapse_notification_count:empty {
  display: none;
}
#side-menu #synapse-service-list .synapse_container .synapse_notification_count {
  position: absolute;
  right: 12px;
  top: 1.5rem;
}
#side-menu #synapse-service-list .synapse_container .synapse_notification_text {
  color: #bbbbbb;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 160px;
  clear: both;
  position: absolute;
  bottom: 7px;
  left: 45px;
}
#side-menu #synapse-service-list .synapse_container.has-notification .synapse_category {
  margin-top: 10px;
}
#side-menu #synapse-service-list .synapse_container.has-notification .synapse_notification_count,
#side-menu #synapse-service-list .synapse_container.has-notification .synapse_notification_text {
  display: block;
}
#side-menu .notify-count,
#side-menu .synapse_notification_count {
  line-height: 20px;
  padding: 0 0.4rem;
  text-align: center;
  background-color: #ff3071;
  display: inline;
  color: #ffffff;
  font-size: 12px;
  border-radius: 10px;
}
#side-menu #synapse-partners .logo {
  text-align: center;
  margin-bottom: 44px;
}
#side-menu #synapse-partners .logo img {
  width: 50%;
  margin-top: 16%;
  margin-bottom: 16%;
}

/* ======== Side menu button ======== */
#side-menu-button {
  position: fixed;
  left: 0;
  z-index: 301;
  margin: 0 0 10px 0;
  bottom: 0;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  vertical-align: top;
  padding: 0;
  width: 39px;
  height: 39px;
  border-radius: 0 4px 4px 0;
  box-shadow:0 2px 3px 0 rgba(0,0,0,0.18);
  line-height: 44px;
  font-size: 15px;
  color: #fff;
  background-color: #707fca;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  background-image: url(/images/touch/header-button-menu.png?1446428354);
}
@media only screen and (-webkit-min-device-pixel-ratio:2),(min-resolution: 2dppx){
  #side-menu-button {
    background-image: url(/images/touch/header-button-menu@2x.png?1446428354);
  }
}

#side-menu-button.with-overlay-ad {
  margin-bottom: 90px;
}

#side-menu-button.balloon,
#side-menu-button.show {
  opacity: 1;
}
html.menu-opening #side-menu-button {
  position: absolute;
  opacity: 1;
  background-image: url(/images/touch/header-button-close.png?1446428354);
}
@media only screen and (-webkit-min-device-pixel-ratio:2),(min-resolution: 2dppx){
  html.menu-opening #side-menu-button {
    background-image: url(/images/touch/header-button-close@2x.png?1446428354);
  }
}
#side-menu-button .notify-count:empty {
  display: none;
}
#side-menu-button .notify-count {
  position: absolute;
  top: 3px;
  left: 24px;
  text-align: center;
  background-color: #ff3071;
  color: #ffffff;
  font-size: 12px;

  /* 通知数あり設定(デフォルト) */
  padding: 0 6px;
  display: inline;
  border-radius: 9px;
  line-height: 18px;
}
#side-menu-button .notify-count.flag {
  /* 通知数非表示 (有無だけ表示) */
  margin: 0 4px;
  padding: 0;
  display: block;
  overflow: hidden;
  whitespace: nowrap;
  text-indent: 100%;
  width: 8px;
  heght: 8px;
  line-height: 8px;
  border-radius: 4px;
}
#side-menu-button .notify-count.hatena:not(:empty) ~ .notify-count.syn {
  display: none;
}
html.menu-opening #side-menu-button {
  position: absolute;
  background-image: url(/images/touch/header-button-close.png);
}
@media only screen and (-webkit-min-device-pixel-ratio:2),(min-resolution: 2dppx){
  html.menu-opening #side-menu-button {
    background-image: url(/images/touch/header-button-close@2x.png);
  }
}
#side-menu #menu-notify-container {
  display: block;
  position: absolute;
  top: 7px;
  right: 0px;
  width: 38px;
  height: 28px;
  margin-right: 12px;
  cursor: pointer;
}
#side-menu #menu-notify {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
#side-menu #menu-notify .notify-count {
  color: transparent !important;
  line-height: 8px !important;
  padding: 0 !important;
  width: 8px !important;
  top: -4px !important;
  right: -5px !important;
}
#side-menu #menu-notify.open {
  background-color: #e1eff6;
}
#side-menu #menu-notify .notify-count {
  position: absolute;
  right: -8px;
  top: -8px;
}
#side-menu #menu-notify-list {
  padding-left: 0;
}
#side-menu #menu-notify-list iframe {
  border: none;
  width: 100%;
  vertical-align: bottom;
}
#side-menu #menu-notify-list img.loading {
  padding-left: 1rem;
  width: 16px;
  height: 16px;
  margin: 20px auto;
  display: block;
}
iframe #side-menu #menu-nofity-list img.loading {
  display: none;
}

/* ======== Side Menu Overlay ======== */
#side-menu-overlay-container {
  position: static;
  width: 100%;
  height: 100%;
  z-index: 200;
}
html.menu-opening #side-menu-overlay-container {
  position: fixed;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
#side-menu-overlay {
  display: none;
  background-color: #000;
  opacity: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
html.menu-opening #side-menu-overlay {
  display: block;
  position: absolute;
  opacity: 0.5;
}

/* ========== Service announcement ========== */
.button-notification {
  color: #fff;
  position: fixed;
  bottom: 0;
  margin-bottom: 17px;
  padding: 0 12px 0 56px;
  box-sizing: border-box;
  vertical-align: middle;
  max-width: 100%;
  z-index: 100;
  cursor: pointer;
  display: none;
}
.button-notification.with-overlay-ad {
  margin-bottom: 97px;
}
.button-notification.open {
  display: block;
}
html.menu-open .button-notification {
  display: none ! important;
}
.button-notification p {
  font-size: 11px;
  background-color: #3756a8;
  margin: 0;
  padding: 6px 30px 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 14px;
  box-shadow: 0 2px 3px 0 rgba(0,0,0,.18);
}
.button-notification .close-button {
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: -10px;
  right: 0;
  cursor: pointer;
  display: block;
}
.button-notification .close-button:before {
  display: inline-block;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 15px;
  height: 1px;
  position: absolute;
  content: "";
  top: 25px;
  left: 11px;
  background: #9babd4;
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}
.button-notification .close-button:after {
  display: inline-block;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  width: 15px;
  height: 1px;
  position: absolute;
  content: "";
  top: 25px;
  left: 11px;
  background: #9babd4;
  -webkit-transform: rotateZ(-45deg);
  transform: rotateZ(-45deg);
}

#recommended-feature-items li.loading {
  display: none;
}
#recommended-feature-items li.loading:last-child {
  display: block;
}
#recommended-feature-items li.entry {
  border-bottom: 1px solid #f5f5f5;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
  position: relative;
  height: 100%;
}
html.menu-open div.body,
html.menu-open #side-menu-overlay {
  display: block;
  width: 100% ! important;
  position: absolute;
}
html.menu-open div.body {
  margin-top: 49px;
  .box-shadow: -3px 0 3px rgba(0,0,0,0.18);
}
html.menu-open #side-menu,
html.menu-opening #side-menu {
  display: block;
  position: absolute;
  top: 0px;
  left: 0 !important;
  z-index: 300;
}

