body{
    max-width: 430px;
    background-color: black;
    color: white;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}

/*最上部の「X動画保存.com」*/

header h1{
    background-color: #334047;
    text-align: center;
    font-size: 16px;
    margin: 0;
    height: 52px;
    line-height: 52px;
}
h1>a{
    text-decoration: none;
    color: white;
}
/*ハンバーガー*/
div.hamburger{
    width:30px;
    height:52px;
    position: absolute;
    padding-right: 10px;
    top:0;
    right:0;
}
:root {
    --background-navbar: rgba(55, 55, 55, 0.98);
  }
header{
    position: relative;
}

/* Nav items */
.menu {
    list-style: none;
    position: absolute;
    width: 160px;
    height: auto;
    top: 0;
    right: 0;
    margin-top: 52px;
    padding-left: 0px;
    clear: both;
    background: var(--background-navbar);
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
    transform: scale(1, 0);
    transform-origin: top;
    z-index: 999;
  }
  
  /* Hamburger menu button */
  .menu-btn:checked ~ .menu {
    transform: scale(1, 1);
    transform-origin: top;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  }
  
  /* Hamburger menbu text */
  .menu a {
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: capitalize;
    color: #ddd;
    opacity: 0;
    transition: 0.5s;
  }
  
  .menu li {
    border-top: 1px solid rgb(75, 75, 75);
    padding: 15px 0;
    margin: 0 16px;
    opacity: 0;
    transition: 0.5s;
  }
  
  .menu-btn:checked ~ .menu a,
  .menu-btn:checked ~ .menu li {
    opacity: 1;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
  }
  
  .menu-btn {
    display: none;
  }
  
  .menu-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    padding: 26px 0px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  
  .navicon {
    background: #ddd;
    display: block;
    height: 3px;
    width: 26px;
    position: relative;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  }
  
  .navicon:before,
  .navicon:after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    background: #ddd;
    transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  }
  
  .navicon:before {
    top: 9px;
  }
  
  .navicon:after {
    bottom: 9px;
  }
  
  /* Hamburger Menu Animation Start */
  .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
  }
  
  .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
  }
  
  .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
    top: 0;
  }
  .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    bottom: 0;
  }
  
  .menu-btn:checked ~ .menu-icon .navicon {
    background: rgba(0, 0, 0, 0);
    transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  }
  /* Hamburger Menu Animation End */


/*DailyとWeeklyの横並び*/
table.day_or_week{
    padding-top: 12px;
    padding-bottom: 20px;
    font-size: 14px;
    margin: auto;
}
table.day_or_week th{
    padding-left: 20px;
    padding-right: 20px;
}
table.day_or_week th a{
    padding-left:8px;
    border-bottom: 2px solid white;
    color: white;
    text-decoration: none;
}
table.day_or_week th.selected a{
    border-bottom: 2px solid rgb(116, 116, 255);
    text-decoration: none;
    color: white;
}

/*選択されているランキングのタイトルと説明文*/
div.header2 .selected_title{
    font-weight: bold;
    font-size: 18px;
}
div.header2 .selected_description{
    font-size: 12px;
    padding-top:6px;
    padding-bottom:6px;
}

/*ページネーションとソート*/
div.page_sort{
    position: relative;
}
ul.pagenation{
    margin:15px auto;
    padding:0;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.pagenation li{
    width:28px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}
ul.pagenation li.isActive{
    color:rgb(188, 188, 255);
}
ul.pagenation li>a{
    text-decoration: none;
    color: white;
}
/*ソート要素*/
div.page_sort div.sort{
    position: absolute;
    right: 12px;
    top:0;
    font-size: 12px;
    display: none;
    visibility: hidden;
}
div.sort select{
    border-radius: 25px;
    padding-left: 7px;
    padding-right: 7px;
}

/*メインコンテンツ*/
main{
    margin: 16px auto;
    padding-left: 10px;
    padding-right: 10px;
}
div.flexbox{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
div.flexbox .contents_block{
    /*max-width:49.9%;*/
    margin-bottom: 10px;
    width:48%;
    height:363px;
    /*border: 1px solid white;*/
    font-size: 11px;
}
/*番号*/
div.contents_block div.number{
    width: 100%;
    height:13px;
}
/*画像要素*/
div.contents_block div.img_block{
    width:100%;
    height:350px;
    position: relative;
}
/*サムネ画像*/
div.contents_block div.img_block img.thumb{
    width:100%;
    height:100%;
    object-fit: cover;
}
/*Xロゴ画像*/
div.contents_block div.img_block img.xlogo{
    position: absolute;
    padding:4px;
    width:14px;
    height:14px;
    top:4px;
    right:4px;
    background-color: black;
}
/*フッター*/
footer div.footer{
    text-align: center;
    margin: 0 auto;
    background-color: #334047;
    font-size: 11px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin: 0;
    height: 28px;
    line-height: 28px;
}
/* インフィード広告 */
div.ad_infeed{
  width:95%;
  height:auto;
  max-height:300px;
  margin: 8px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
div.ad_infeed.invisible{
  display:none;
  visibility: hidden;
}
div.ad_infeed a{
  width: auto;
  height:auto;
  max-height: 300px;
}
div.ad_infeed a img{
  width:100%;
  height:auto;
  max-height: 300px;
  object-fit: contain;
}
/*下部追従バナー*/
div.ad_below{
  width:100%;
  height:auto;
  position:sticky;
  bottom:0;
  padding-top: 10px;
}
div.ad_below.invisible{
  display:none;
  visibility: hidden;
}
div.ad_below ins iframe{
  width:100%;
}