CINEMATRONIX トップページ

<!– 人気記事・新着記事 –>
<div class=”cardtype cf”>
[add_widget file=’custom_widget’]
</div>
<a class=”more_posts” href=”/all_post_archive/”><i class=”fa fa-map-signs”></i> もっと読む</a>
<!– 人気記事・新着記事ここまで –>

<!– カテゴリ別新着記事 –>
<div class=”cate_new_posts”>
<p class=”fukidashi_down”><i class=”fa fa-check”></i> カテゴリ別新着記事</p></div><!– タイトル部分 –>
<div class=”tab_posts”>
<input id=”tab_1″ type=”radio” name=”tab_item” checked>
<input id=”tab_2″ type=”radio” name=”tab_item”>
<input id=”tab_3″ type=”radio” name=”tab_item”>
<input id=”tab_4″ type=”radio” name=”tab_item”>

<!– タブ –>
<div class=”tab_area”>
<label id=”tab1″class=”tab_item” for=”tab_1″>タブ1</label><!– マーベル –>
<label id=”tab2″class=”tab_item” for=”tab_2″>タブ2</label><!– DCコミックス –>
<label id=”tab3″class=”tab_item” for=”tab_3″>タブ3</label><!– MOVIE –>
<label id=”tab4″class=”tab_item” for=”tab_4″>タブ4</label><!–  噂・リーク –>
</div>
<!– タブここまで –>

<!– タブ1をクリックした時に表示される記事(デフォルト) –>
<div class=”tab_content” id=”tab1_content”>
<div class=”cardtype cf”>
[catpost catid=”8″ num=”6″ type=”card”]
<div class=”more_cate_posts center”>
[btn href=”カテゴリページのURL” class=”raised main-bc strong rippler rippler-default”]<i class=”fa fa-mortar-board”></i> もっと読む[/btn]
</div>
</div>
</div>

<!– タブ2をクリックした時に表示される記事 –>
<div class=”tab_content” id=”tab2_content”>
<div class=”cardtype cf”>
[catpost catid=”48″ num=”6″ type=”card”]
<div class=”more_cate_posts center”>
[btn href=”カテゴリページのURL” class=”raised main-bc strong rippler rippler-default”]<i class=”fa fa-mortar-board”></i> もっと読む[/btn]
</div>
</div>
</div>

<!– タブ3をクリックした時に表示される記事 –>
<div class=”tab_content” id=”tab3_content”>
<div class=”cardtype cf”>
[catpost catid=” 9″ num=”6″ type=”card”]
<div class=”more_cate_posts center”>
[btn href=”カテゴリページのURL” class=”raised main-bc strong rippler rippler-default”]<i class=”fa fa-mortar-board”></i> もっと読む[/btn]
</div>
</div>
</div>

<!– タブ4をクリックした時に表示される記事 –>
<div class=”tab_content” id=”tab4_content”>
<div class=”cardtype cf”>
[catpost catid=”68″ num=”6″ type=”card”]
<div class=”more_cate_posts center”>
[btn href=”カテゴリページのURL” class=”raised main-bc strong rippler rippler-default”]<i class=”fa fa-mortar-board”></i> もっと読む[/btn]
</div>
</div>
</div>
</div>
<!– HTML ここまで –>

<style>
/*ページ全体*/
#content.page-forfront,#container,#entry{background:transparent;}
.page-forfront .entry-content{padding:0;}
.entry-content img{box-shadow:none;margin:0;}
.page-forfront .entry-content a{border-bottom:0;}
.cardtype{margin-bottom:0;}
.c_linkto{max-width:100%;}
.tab_item, a.more_posts{cursor:pointer;}

/*アイキャッチっぽい部分*/
.top_description{width:calc(100% – 20px);text-align:center;font-size:.9em;margin:0 auto;}

/*ピックアップ4記事(タグ)*/
.tag_posts{width:calc(100% – 6px);margin:0 auto 20px;}
.tag_posts .c_linkto{width:calc(25% – 12px);margin:0 6px;}
.tag_posts .c_linkto_text{font-size:.85em;}

/*人気記事・新着記事の見出し*/
/*記事部分の見出しのCSSが適用されるので上書きしています*/
.entry-content h2:before,.entry-content h2:after{display:none}/*疑似要素を使いたい場合はこの行を削除してください*/
.entry-content .my_popular_posts h2, .entry-content .custom_sc h2,{
background: 背景色; /*タイトル部分の背景色*/
color: 文字色; /*タイトルの文字色*/
font-size: 1.2em;
border:0;
}

/*人気記事・新着記事*/
.my_popular_posts li,.custom_sc li{list-style-type:none;}
.my_popular_posts, .custom_sc{display:inline-block;width: calc(50% – 20px);margin:20px 10px 0;padding:0 0 10px;}
.my_popular_posts h2.widgettitle,.custom_sc h2.widgettitle{padding:10px 20px;margin:0 0 20px;}
.my_popular_posts ul li,.custom_sc ul li{margin:0 15px 0 0;}
.my-widget li a .my-widget__text{padding:0 0 0 10px;}

.my_popular_posts li a:hover,.custom_sc li a:hover{
background-color:#eaf4fc!important; /*記事にカーソルを乗せた時の色*/
}

/*カテゴリ別新着記事*/
.tab_posts{background:transparent;width:100%;margin 0;}
.tab_posts .c_linkto{width:calc(100%/3 – 20px);margin:20px 10px 0;}
.tab_posts .c_linkto_text{font-size:.85em;}

/*タブのスタイル*/
.tab_area {width:calc(100% – 20px);font-size:0;background:#fcfcfc;margin:0 10px;border-radius:2px;box-shadow:rgba(0, 0, 0, 0.2) 0px 3px 10px -2px;}
.tab_item {width: calc(100%/4);height:50px;line-height:50px;font-size:16px;text-align:center;color:#565656;display:inline-block;text-align:center;font-weight:bold;border-right:1px solid #eaeaea;transition:all 0.2s ease;}
#tab4.tab_item{border: none;}
.tab_item:hover{opacity: 0.75;}

/*ラジオボタンを全て消す*/
input[name=”tab_item”]{display:none;}

/*タブ切り替えの中身のスタイル*/
.tab_content{display:none;padding:0;overflow:hidden;}

/*選択されているタブのコンテンツのみを表示*/
#tab_1:checked~#tab1_content,#tab_2:checked~#tab2_content,#tab_3:checked~#tab3_content,#tab_4:checked~#tab4_content{display: block;}
#tab_1:checked~.tab_area #tab1{border-radius: 3px 0 0 3px;}
#tab_4:checked~.tab_area #tab4{border-radius: 0 3px 3px 0}

#tab_1:checked~.tab_area #tab1, #tab_2:checked~.tab_area #tab2, #tab_3:checked~.tab_area #tab3, #tab_4:checked~.tab_area #tab4{
background: 背景色; /*選択されているタブの背景色*/
color: #文字色; /*文字色*/
}

/*リンク*/
.more_cate_posts{width:100%;margin:20px 0 0;}
.entry-content .more_cate_posts a.btn{width:calc(100%/3 – 20px);}
#inner-content .more_cate_posts .btn{margin:0;}

a.more_posts {
text-align: center;
background: #eaedf7; /*記事一覧へのリンクの背景色*/
color: #afafaf; /*文字色*/
margin:0;
padding: 10px 20px;
display: block;
width: 100%;
border-radius: 2px;
}
a.more_posts:hover {
background: #eaf4fc; /*記事一覧へのリンクにカーソルを乗せた時の背景色*/
color: #8491c3; /*文字色*/
border-radius: 2px;
}

/*吹出タイトル*/
.fukidashi_down img{max-width:300px;height:auto;}
.tag_posts p.fukidashi_down{margin:0 50% 20px 4px;}
.cate_new_posts p.fukidashi_down{margin:0 50% 20px 10px;}
p.fukidashi_down{width:calc(50% – 10px);padding: 10px 25px;text-align:center;font-size:1.2;}

.fukidashi_down{
position: relative;
display: inline-block;
min-width: 120px;
max-width: 100%;
color: #4d4c61; /*吹出の文字色*/
background: #eaedf7; /*吹出の背景色*/
border-radius: 5px;
}
.fukidashi_down:before {
content: “”;
position: absolute;
left: 50%;
bottom: -40px;
margin-left: -20px;
border: 20px solid transparent;
border-top: 20px solid #eaedf7; /*吹出の背景色*/
}

/*レスポンシブ対応用*/
@media only screen and (min-width: 768px){
a.more_posts{width:calc(50% – 20px);margin:0 0 20px calc(50% + 10px);}
}
@media only screen and (min-width:1030px) {
.wrap,#inner-header,#inner-content{max-width: 1000px;}
}
@media only screen and (max-width: 1029px){
.entry-content ul.my-widget{width:100%;padding:0 0 0 7px;}
.my_popular_posts ul li,.custom_sc ul li{margin:0 7px 0 0;}
.my_popular_posts, .custom_sc {margin: 20px 9.5px 0;}
.tag_posts{width:100%;margin:0 auto;}
.tag_posts .c_linkto{width:calc(50% – 20px);margin:0 9.5px 20px;}
.tab_posts .c_linkto{width:calc(50% – 20px);margin:20px 9.5px 0;}
.tag_posts p.fukidashi_down, .cate_new_posts p.fukidashi_down{margin:20px 10px 25px;width:calc(100% – 20px);}
}
@media only screen and (max-width: 480px) {
.top_description,.head_intro,.thor,.tag_posts .c_linkto,.tab_area,.tab_posts .c_linkto,.my_popular_posts,.custom_sc,p.fukidashi_down,.tag_posts p.fukidashi_down,.cate_new_posts p.fukidashi_down,.entry-content .more_cate_posts a.btn{width:100%;}
.tab_area{margin:10px 0;}
.tab_item{width: calc(100%/2);}
#tab1.tab_item,#tab2.tab_item{border-bottom: 1px solid #eaeaea;}
#tab_1:checked~.tab_area #tab1{border-radius: 3px 0 0 0;}
#tab_2:checked~.tab_area #tab2{border-radius: 0 3px 0 0;}
#tab_3:checked~.tab_area #tab3{border-radius: 0 0 3px 0;}
#tab_4:checked~.tab_area #tab4{border-radius: 0 0 0 3px}
.tab_posts .c_linkto{margin:20px 9.5px 10px;}
.tag_posts .c_linkto{margin:10px 9.5px 20px;}
.cate_new_posts p.fukidashi_down,.tag_posts p.fukidashi_down{margin:30px auto 20px;}
p.fukidashi_down{padding:10px 5px;}
a.more_posts{margin:0 0 20px;}
.more_cate_posts{margin:10px auto 20px;width:calc(100% – 20px);}
.my_popular_posts,.custom_sc{margin:20px 0 0;}
}
</style>