/************************************
** 解像度639px以下のスタイル
************************************/
@media screen and (max-width:639px){
  div#main{
    padding: 10px;
  }

  .entry-read a,
  .related-entry-read a{
    display:block;
    width: auto;
    background-color:#eee;
    border:1px solid #ddd;
    border-radius:10px;
    text-align:center;
    padding:5px;
    text-decoration:none;
    color:#111;
    margin-top:18px;
  }

  /*モバイルで呼び出されるスタイル*/
  #list .post{
    margin-bottom: 10px;
  }

  .article br{display: none;}
  /*タイトルをモバイルサイズにする*/
  #site-title{
    font-size: 20px;
    margin-right:30px;
  }
  #h-top #site-title a{
    font-size: 20px;
  }

  #h-top #site-description{
    font-size:14px;
    line-height:140%;
    margin-bottom:10px;
  }

  #main .entry{
    overflow: visible;
  }

  .article img{
    padding: 0;
    margin: 0 auto;
  }

  img.blog-card-thumb-image{
    margin-right: 10px;
  }

  .entry .entry-thumb a,
  .related-entry-thumb a{
    margin:0;
    padding:0;

  }

  .related-entry-thumb img{
    margin-bottom: 10px;
  }

  .post-meta,
  .footer-post-meta{
    text-align:left;
  }

  #mobile-menu a{
    font-size:12px;
    padding: 5px 7px;
  }


  #page-top a#move-page-top{
    font-size:12px;
    margin-bottom: 5px;
    margin-right: 5px;
  }

  /* ページャー＆ページリンク */
  a.page-numbers,
  .pager .current,
  .page-link span,
  .comment-page-link span,
  .comment-page-link a{
    padding: 4px 10px;
    font-size:16px;
    line-height:250%;
  }
  blockquote {
    padding:10px;
  }
  blockquote:before { left:  0;display:none; }
  blockquote:after  { right: 0;display:none; }

  .article h1{
    margin-top:20px;
  }

  .article h1,
  .entry h2 a,
  #archive-title,
  .article h2,
  .article h3,
  .article h4,
  .article h5
  .article h6,
  .article h3,
  #comment-area h2,
  #related-entries h2{
    font-size:20px;
  }


  #sidebar h3{
    font-size:18px;
  }

  .article h2{
    margin:30px 0;
    padding: 15px;
  }

  /*ポストページナビ*/
  #prev-next{text-align:center;}

  #prev-next #prev img,
  #prev-next #next img{
    float:none;
    text-align:center;
  }

  #prev-next p{
    margin: 0;
  }

  /*AndroidHTML対応用の設定*/
  .bookmarklet.androidhtml > div {
      margin-left: 0;
  }

  .bookmarklet.androidhtml > div img.cover-image {
      margin-left: 0;
  }

}

@media screen and (max-width: 500px){
  .entry .entry-thumb,
  .related-entry-thumb{
    float:none;
    text-align:center;
    margin:3px;
  }

  .entry h2{
    margin-top:0;
    line-height: 120%;
  }

  #main div.entry-large-thumbnail{
    width: auto;
  }

  .entry-large-thumbnail{
    max-width:100%;
    margin:10px 0;
  }

  .entry-large-thumbnail .entry-read a{
    width:auto;
    margin:auto;
    padding:5px 0;
  }

  .entry-large-thumbnail .entry-thumb img{
    width: 100%;
    max-width:100%;
    height:auto;
  }

  .entry .entry-thumb,
  .related-entry-thumb{
    margin:0 5px;
  }

  #comment-area img.avatar{
    width:30px;
    height:30px;
  }

  #header #h-top .alignleft{
    margin-left: 10px;
    margin-right: 10px;
  }

  #page-top{
    right: 0;
    bottom: 0;
  }

  #navi #navi-in ul li a{
    padding: 5px 7px;
  }

  .article ul,
  .article ol{
    padding-left: 1.7em;
  }


  .article ul.snsb,
  .article ul.snsp{
    padding-left: 0;
  }


  #navi .sub-menu li,
  #navi .children li{
    padding-left:15px;
  }

  .wpdm_file a{
    padding: 0;
  }
  /*モバイルユーザーエクスペリエンス向け*/
  .article ol,
  .article ul,
  .article dl{
    line-height: 1.8em;
  }

  /************************************
  ** ウィジェットのモバイル用調整
  ************************************/
  #sidebar .widget_categories li,
  #sidebar .widget_display_forums li,
  #sidebar .widget_recent_comments li,
  #sidebar .widget_display_topics li{
    line-height: 1.6em;
  }

  #sidebar .bbp-author-avatar{
    display: none;
  }

  #sidebar .widget_categories li ul.children{
    margin-top: 10px;

  }
 .article th, .article td{
    padding: 1px 2px;
    font-size: 85%;
  }

  blockquote {
    clear: both;
  }

}

/***********************************
 エントリーカードのモバイル表示
 ***********************************/
@media screen and (max-width:500px){
  .entry-card h2,
  .entry-card h2 a.entry-title,
  .related-entry h3,
  .related-entry h3 a {
    line-height: 110%;
    font-size: 17px ;
  }

  /* サムネイル回り込み */
  .entry-card .entry-thumb,
  .related-entry .related-entry-thumb {
    float: left;
    margin: 0 6px 0 0;
    padding: 0;
  }

/*  .entry-card h2 a{
    font-size: 17px;
  }*/

  .entry-card-content,
  .related-entry-content{
    margin-left: 110px;
  }


  /* サムネイルサイズ変更 */
  .entry-card .entry-thumb img{
    width:100px;
    height:100px;
    margin-bottom: 10px;
  }

  /* 記事間の余白調整 */
  #main .entry-card,
  #main .related-entry {
    margin-bottom: 23px;
  }

  /* 本文抜粋の調整 */
  .entry-card .entry-snippet,
  .related-entry .related-entry-snippet,
  .entry-card .admin-pv,
  .entry-card .post-meta {
    font-size: 13px ;
    line-height: 130%;
    margin-bottom: 5px;
  }
  /* 「続きを読む」の調整 */
  .entry-card .entry-read a,
  .related-entry .related-entry-read a {
    font-size: 80%;
    margin: 0;
    padding: 3px;
  }
}

/***********************************
 モバイルへのサムネイルカードの一覧性を上げる
 ダメだったら元に戻しやすいようにあえて
 max-width:359pxを分けて書く
 ***********************************/
@media screen and (max-width:359px){
  /* 記事タイトルfont調整 */
/*  .entry-card h2,
  .entry-card h2 a.entry-title,
  .related-entry h3,
  .related-entry h3 a {
    line-height: 100%;
    font-size: 17px ;
  }*/

  /* サムネイル回り込み */
  .entry-card .entry-thumb,
  .related-entry .related-entry-thumb {
    float: left;
    margin: 0 6px 0 0;
    padding: 0;
  }

  .entry-card .entry-thumb{
    margin-top: 5px;
  }

  /* meta情報の回込み解除 */
  .entry-card .post-meta{
    margin: 1px auto 5px;
    margin-top: 9px;
    clear: both;
  }

  .entry .entry-card-content,
  .related-entry-content{
    margin-left: 0;
  }

  /* 本文抜粋の調整 */
  .entry-card .entry-snippet,
  .related-entry .related-entry-snippet,
  .admin-pv {
    clear: both;
  }

  #related-entries .related-entry-thumbnail{
    margin: auto;
    width: 100%;
    margin-bottom: 1em;
    height: auto;
  }
  #related-entry-thumbnail .related-entry-thumb{
    margin: auto;
  }

}

/************************************
** Facebookページを「いいね！」するエリアのスタイル
************************************/
@media screen and (max-width: 639px){
  .article-like-body{
    margin-right: 100px;
    font-size: 1em;
    line-height: 1.2em;
  }
  .article-like-body::after{
    display: none;
  }
}

@media screen and (max-width: 440px){
  .article-like-body{
    font-size: 0.8em;
    padding: 5px;
    line-height: 1.1em;
    margin-right: 0;
    height: 70px;
  }
  .article-like-arrow-box{
    height: 100px;
  }
  .article-like-button{
    float: none;
    width: 100%;
    height: 30px;
    display: block;
    padding-top: 0;
    line-height: 24px;
  }
  div.fb-like-mobile{
    display: block;
  }
  div.fb-like-pc{
    display: none;
  }
}

/***********************************
 「サムネイル大」サイズを2列にする
 ***********************************/
@media screen and (max-width: 699px){

  #main .entry.entry-large-thumbnail,
  #main .entry.entry-tile{
    width: 47%;
    margin-left: 3px;
    margin-right: 3px;
  }

  #main .entry.entry-large-thumbnail{
    height: 280px;
  }

  .entry.entry-large-thumbnail .entry-card-content{
    font-size: 11px;
    line-height: 110%;
  }

  .entry.entry-large-thumbnail .entry-snippet{
    height: auto;
    max-height: 48px;
  }

  #main .entry.entry-large-thumbnail .entry-title{
    font-size: 16px;
  }


  #main .entry.entry-large-thumbnail h2{
    margin: 2px 0;
    padding: 0;
  }

  .entry-large-thumbnail .entry-card-content,
  .entry-large-thumbnail .entry-card-content .post-meta,
  .entry-tile .entry-card-content,
  .entry-tile .entry-card-content .post-meta{
    font-size: 13px;
  }

  .entry-large-thumbnail .entry-thumb img,
  .entry-tile .entry-thumb img{
      height: auto;
      max-width: 100%;
      width: 100%;
      margin-bottom: 5px;
  }
}
/***********************************
 「サムネイル大」画面幅が狭い場合は1列
 ***********************************/
 @media screen and (max-width: 359px){
  #main .entry.entry-large-thumbnail,
  #main .entry.entry-tile{
    width: auto;
    float: none;
    height: auto;
    margin-bottom: 12px;
    margin-left: 0;
    margin-right: 0;
  }

  #main .entry.entry-tile{
    width: 100%;
  }

  .entry.entry-large-thumbnail .entry-card-content{
    font-size: 13px;
    line-height: 130%;
  }

}

/***********************************
 バイラルシェアボタンのレスポンシブ
 ***********************************/
@media screen and (max-width:540px){
  .sns-group-viral ul.snsb li a{
    font-size: 15px;
  }
  .sns-group-viral ul.snsb li{
    width: 32%;
    margin-right: 1%;
  }
}

@media screen and (max-width:380px){
  .sns-group-viral ul.snsb li{
    width: 49%;
    margin-right: 1%;
  }
}