

/* -----------------------------------------------
  値変更
----------------------------------------------- */

/* 開閉部分の高さ */
#nicoSiteHeader .mdDialog.jsActive {
  height: 170px;
}

.isLogin #nicoSiteHeader .mdDialog.jsActive {
  height: 215px;
}

.isLogin.isPublic #nicoSiteHeader .mdDialog.jsActive {
  height: 360px;
}

.isLogin.isPremium #nicoSiteHeader .mdDialog.jsActive {
  height: 300px;
}

/* サイドメニュー開閉部分の幅 */
.SideMenu.jsActive {
  width: 240px;
}



/* ロゴ画像のサイズ*/
#nicoSiteHeader .globalHeader .logo .title {
  width: 140px;
  height: 25px;
}

/* ロゴの画像パス */
#nicoSiteHeader .logo .title:before {
  background-image: url(../../img/3ds/logo_niconico.png);
}

/* グローバルメニューのアイコン */
#nicoSiteHeader .globalNav a:before {
  background-image: url(../../img/3ds/sp_buttons.png);
}

/* サイドメニューのアイコン */
#nicoSiteHeader .sideNav a:before {
  background-image: url(../../img/3ds/sp_buttons2.png);
}

/* サービスアイコン */
#nicoSiteHeader .mdDialog .icon{
  background: url(../../img/3ds/sp_service.png);
}

/* ログインボタンカラー */
#nicoSiteHeader .btn.login .btnInner {
  border-color: #36668e;
  background-color: #4a8eca;
}

/*新規会員登録ボタンカラー */
#nicoSiteHeader .btn.register .btnInner {
  border-color: #b08a0f;
  background-color: #f2be15;
}

/* プレミアムボタンカラー */
#nicoSiteHeader .btn.premium .btnInner {
  border-color: #7a610d;
  background-color: #aa8616;
}


/* -----------------------------------------------
  リセット
----------------------------------------------- */
#nicoSiteHeader ul,
#nicoSiteHeader li{
  list-style-type: none;
}


/* -----------------------------------------------
  common
----------------------------------------------- */
#nicoSiteHeader .globalHeader {
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 45px;
  color: rgb(255,255,255);
  background-color: #222;
}

/* logo */
#nicoSiteHeader .globalHeader .logo {
  position: absolute;
  top: 10px;
  left: 10px;
}

#nicoSiteHeader .globalHeader .logo a {
  display: block;
}

#nicoSiteHeader .globalHeader .logo .title {
  display: block;
  position: relative;
  color: transparent;
  text-indent: -999px;
  overflow: hidden;
}

#nicoSiteHeader .globalHeader .logo .title:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 0 0;
}
/* サイドメニューボタン */
#nicoSiteHeader .globalHeader .sideNav {
  position: absolute;
  top: 0;
  left: 0;
	width:49px;
	height:45px;
}

#nicoSiteHeader .globalHeader .sideNav a {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

#nicoSiteHeader .globalHeader .sideNav a:before {
  content: "";
  margin: -11px 0 0 -11px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 22px;
  display: block;
  background-repeat: no-repeat;
  background-size: 27px 54px;
}

#nicoSiteHeader .globalHeader .sideNav .label {
  display: block;
  overflow: hidden;
  text-indent: -999px;
}

/* サイドメニューアイコン */
#nicoSiteHeader .globalHeader .sideNav .btnside:before {
  background-position: 0 0;
}

#nicoSiteHeader .globalHeader .sideNav .btnside.jsActive:before {
  background-position: 0 -33px;
}

/* -----------------------------------------------
共通ヘッダー内のボタン
----------------------------------------------- */
#nicoSiteHeader .globalHeader .globalNav {
  position: relative;
}

#nicoSiteHeader .globalHeader .globalNav li {
  position: absolute;
  top: 0;
  width: 49px;
  height: 45px;
}

#nicoSiteHeader .globalHeader .globalNav a {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

#nicoSiteHeader .globalHeader .globalNav a:before {
  content: "";
  margin: -11px 0 0 -11px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  display: block;
  background-repeat: no-repeat;
  background-size: 62px 54px;
}

#nicoSiteHeader .globalHeader .globalNav .label {
  display: block;
  overflow: hidden;
  text-indent: -999px;
}

/* ナビゲーションボタンの配置 */
#nicoSiteHeader .globalHeader .globalNav .global {
  right: 0;
}

#nicoSiteHeader .globalHeader .globalNav .local {
  left: 0;
}

#nicoSiteHeader .globalHeader .globalNav .search {
  right: 50px;
}

/* グローバルメニューアイコン */
#nicoSiteHeader .globalHeader .globalNav .btnGlobal:before {
  background-position: -40px 0;
}

#nicoSiteHeader .globalHeader .globalNav .btnGlobal.jsActive:before {
  background-position: -40px -33px;
}

/* -----------------------------------------------
  ヘッダーメニューの中身
----------------------------------------------- */
#nicoSiteHeader .mdDialog {
  display: block;
  position: relative;
  width: 100%;
  background-color: #d7d7d7;
  box-shadow: 0 -2px 2px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* animation */
#nicoSiteHeader .mdDialog{
  height: 0;
}
#nicoSiteHeader .mdDialog.jsActive {
  -webkit-transition-property: height;
     -moz-transition-property: height;
          transition-property: height;
  -webkit-transition-duration: 250ms;
     -moz-transition-duration: 250ms;
          transition-duration: 250ms;
  -webkit-transition-timing-function: ease-in-out;
     -moz-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
}

/*
  .dialogheader
----------------------------------------------- */
#nicoSiteHeader .mdDialog .dialogHeader {
  margin: 10px 10px 0;
  padding: 7px;
  color: #fff;
  background-color: #767676;
  font-size: 13px;
  font-weight: bold;
}

/*
  ボタン
----------------------------------------------- */
#nicoSiteHeader .btnList{
  margin: 15px 20px;
}

#nicoSiteHeader .btnList > li {
  margin-bottom: 15px;
}

#nicoSiteHeader .btnList > li:last-child {
  margin-bottom: 0;
}

#nicoSiteHeader .btn {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
}

#nicoSiteHeader .btn .btnInner {
  display: block;
  margin: 0;
  padding: 12px 5px;
  border-width: 0 1px 1px 0;
  border-style: solid;
  color: rgba(255,255,255,1);
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}


/* arrow */
#nicoSiteHeader .mdDialog .itemList a:after{
  content: "";
  display: block;
  margin-top: -3px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
  position: absolute;
  top: 50%;
  right: 7px;
  width: 6px;
  height: 6px;
  -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
          transform: rotate(45deg);
}

#nicoSiteHeader .mdDialog .itemList .count{
  display: inline-block;
  margin-top: -6px;
  position: absolute;
  top: 50%;
  right: 25px;
  color: #999;
  font-size: 12px;
  line-height: 1;
  font-weight: normal;
}


/*
  サイドメニュー
----------------------------------------------- */

.SideMenu{
  display:block;
	position:absolute;
	top:0;
	height:100%;
  width: 240px;
  color: rgb(255,255,255);
  background-color: #222;
  overflow: hidden;
  z-index: 2;
}

.SideMenu ul{ display:block; background-color:#3b3b3b;}
.SideMenu li{
	display:block;
	position:relative;
	height:40px;
	text-indent:1.0em;
	box-shadow:inset 0 1px 0 #232222, inset 0 2px 0 #5C5C5C;
	}

.SideMenu ul li a{
	display:block;
	height:40px;
	line-height:40px;
	font-size:1.0em;
	color:#ccc;
	text-shadow:0 -1px 0 #000;
	text-decoration:none;
	}

  /* animation */
.SideMenu { width: 0;}
.SideMenu.jsActive {
  -webkit-transition-property: width;
     -moz-transition-property: width;
          transition-property: width;
  -webkit-transition-duration: 250ms;
     -moz-transition-duration: 250ms;
          transition-duration: 250ms;
  -webkit-transition-timing-function: ease-in-out;
     -moz-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
}

.slided {
  -webkit-transition-property: margin-left;
     -moz-transition-property: margin-left;
          transition-property: margin-left;
  -webkit-transition-duration: 250ms;
     -moz-transition-duration: 250ms;
          transition-duration: 250ms;
  -webkit-transition-timing-function: ease-in-out;
     -moz-transition-timing-function: ease-in-out;
          transition-timing-function: ease-in-out;
}


/*
  新しいヘッダ
----------------------------------------------- */

/* content */

.hdContent{
  width: 100%;
  background: #d7d7d7;
  background-color: rgba(187,187,187,1);
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 0 2px rgba(0,0,0,0.8);
}

/* menu */
.hdContentServiceList{
  background: #fff;
  margin-bottom: 8px;
}

.hdContentHeader{
  position: relative;
  padding-left: 10px;
  line-height: 30px;
  background: #767676;
}

.hdContentHeader h2{
  	color: #fff;
	font-size: 13px;
}

.hdContentHeaderLink {
  position: absolute;
  top: 50%;
  right: 24px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  font-size: 12px;
  color: #fff;
	text-decoration: none;
}

.hdContentHeaderLink::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 5px;
  height: 5px;
  margin-top: -1px;
  border-top: #fff solid 2px;
  border-right: #fff solid 2px;
  -webkit-transform: rotate(45deg) translateY(-50%);
  transform: rotate(45deg) translateY(-50%);
}

.hdContentBody .itemList{
	border: #ccc solid 1px;
	border-bottom: 0;
	font-size: 13px;
}


.hdContentBody .itemList:after{
  content: "";
  clear: both;
  display: block;
}

.hdContentBody .item{
  float: left;
  width: 50%;
  height: 40px;
  border-left: #ccc solid 1px;
  border-bottom: #ccc solid 1px;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.hdContentBody .item:nth-child(even){
  border-left: 0;
}

.hdContentBody .item.top{
  float: none;
  width: 100%;
  text-align: center;
  border-left: 0;
}

.hdContentBody .item a{
  position: relative;
  display: inline-block;
  color: #333;
  width: 100%;
  line-height: 40px;
  padding-left: 40px;
  font-weight: bold;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
	text-decoration: none;
}

.hdContentBody .item a:before{
  position: absolute;
  top: 8px;
  left: 8px;
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  background: url(../../img/3ds/site_header/sp_service.png?20170209) no-repeat;
  background-size: 23px auto;
}

.hdContentBody .top a:before{
  background-position: 0 0;
}

.hdContentBody .live a:before{
  background-position: 0 -58px;
}

.hdContentBody .news a:before{
  background-position: 0 -152px;
}

.hdContentBody .channel a:before{
  background-position: 0 -89px;
}

.hdContentBody .blomaga a:before{
  background-position: 0 -122px;
}

.hdContentBody .manga a:before{
  background-position: 0 -239px;
}

.hdContentBody .book a:before{
  background-position: 0 -182px;
}

.hdContentBody .illust a:before{
  background-position: 0 -207px;
}

.hdContentBody .atsumaru a:before{
  background-position: 0 -270px;
}

.hdContentBody .item.video a::before{
  width: 22px;
  height: 25px;
  background: url(../../img/3ds/site_header/icon_tvchan.png) no-repeat;
  background-size: 22px auto;
}

.hdContentBody .item.mastodon a::before{
  width: 23px;
  height: 26px;
  background: url(../../img/3ds/site_header/icon_mastodon.png) no-repeat;
  background-size: 23px auto;
}

.hdNoFixed .header{
  position: fixed;
  height: auto;
  top: 0;
  left: 0;
}

.hdNoFixed .hdContent.mdSearch{
  height: 0;
  width: 100%;
  overflow: hidden;
}

.hdNoFixed .hdContent.mdNavigation {
  max-height: 0;
  width: 100%;
  overflow: hidden;
}

.hdContentInner{
  padding: 10px;
  box-sizing: border-box;
}

/* ヘッダーメニューabテスト */
/* ABテスト後に移行します */

.mdNavigation .hdContentInner {
  overflow-y: auto;
}

.hdContentBody .item.top {
  text-align: left;
  border-left: #ccc solid 1px;
}

.hdContentBody .item {
  float: none;
  width: 100%;
}

.hdContentBody .item:nth-child(even) {
  border-left: #ccc solid 1px;
}
