@charset "utf-8";

/*
Theme Name: wakal-theme
Author: wakal.net
Description: Authority Site Theme
Version: 1.0
*/


/*******************************************

   基本設定

*******************************************/

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@font-face {
  font-family: YuGothicM;
  src: local("Yu Gothic Medium");
}

body {
  font-family: -apple-system,BlinkMacSystemFont,"Helvetica Neue","游ゴシック Medium",YuGothic,YuGothicM,"Hiragino Kaku Gothic ProN",メイリオ,Meiryo,sans-serif;
  color: #333;
  background: #f7f7f7;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

img   {max-width: 100%; height:auto;}
a img {border: none;}

ul li {list-style:none;}
ol li {list-style:decimal inside;}
.center {text-align:center;}
.left   {text-align:left;}
.right  {text-align:right;}

/* ClearFix */
.cf:before, .cf:after {content:"";display:table;}
.cf:after{clear:both;}
.cf {zoom:1;}

/* リンク画像にオンマウスで透過 */
a:hover img {
  opacity:0.7;
  filter:alpha(opacity=70);
  -ms-filter: "alpha( opacity=70 )";
}

/* iPhoneのボタンのスタイルをリセット */
input[type="button"],input[type="submit"],select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/*******************************************

   リンク

*******************************************/

a {
  color: #39f;
  text-decoration: underline;
}

a:hover {
  color: #f69;
  text-decoration: none;
}

#site-header a {
  color:#fff;
  text-decoration:none;
}

#site-footer a {
  color:#333;
  text-decoration:none;
}

#site-footer a:hover {
  text-decoration:underline;
}

#copyright a {
  color:#ddd;
  text-decoration:none;
}

/*******************************************

   構造

*******************************************/

#site-header {
  width: 100%;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.header-color {
  color: #fff;
  background: rgba(0,0,0,1);
}

.home #site-header {
  background:#000 url(images/hero2.jpg) no-repeat center center;
  background-size:cover;
  padding-bottom:300px;
}

.home .header-color {
  background: rgba(0,0,0,0.7);
}

#main {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

.inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

#primary {
  background: #fff;
  border: 1px solid #ddd;
}

#site-footer {
  width: 100%;
  background: #fff;
}

#copyright {
  background: #000;
  color: #ddd;
  font-size: 14px;
  padding: 10px;
}

/*******************************************

   ヘッダー

*******************************************/

#site-header h1 {
  font-size: 24px;
  padding:20px 20px 0 20px;
}

#site-header h1 a {
  color:#fff;
  transition: 0.2s;
}

#site-header h1 a:hover {
 text-shadow: 0 0 20px #fff
}

#site-header h2 {
  font-size: 14px;
  padding:0 20px 20px 20px;
  font-weight: normal;
  color: #ccc;
}

#header-nav li {
  display: inline-block;
  width:100%;
}

#header-nav li a {
  display: block;
  text-align:center;
  padding:10px;
  font-size:13px;
  transition: 0.2s;
  text-shadow: 0 0 20px #fff;
}

#header-nav li a:hover {
 text-shadow: 0 0 20px #fff,0 0 20px #fff,0 0 20px #fff;
 font-weight:bold;
}

/**********************************************

    パンくず

***********************************************/

.breadcrumb {
  padding: 10px 20px;
  text-align: left;
}

.breadcrumb li {
  display: inline;
  color: #b69e84;
  font-size:13px;
}

.breadcrumb li a {
  text-decoration:none;
  color:#666;
}

.breadcrumb li a:hover {
  text-decoration:underline;
}

.breadcrumb li:not(:first-child):before {
  content: "\f105";
  font-family: FontAwesome;
  display: inline-block;
  margin:0 0.5em;
  color:#999;
}

/*******************************************

   フッター

*******************************************/

#site-footer .inner {
  padding: 20px;
}

#site-footer ul {
  margin: 10px 0 0;
}
#site-footer li:before {
  content: "\f144";
  font-family: FontAwesome;
  margin:0 5px 0 0;
  color:#999;
}

/**********************************************

  ウィジェット
   
**********************************************/

/* サイドウィジェット */

#secondary .widget {
  margin: 30px 20px;
  text-align:center;
}

#secondary .side-main {
  background: #fff;
}

#secondary .widget-title {
  background: #ddd;
  padding: 10px;
  line-height: 1;
  font-size: 18px;
}


#secondary .widget > ul{
  padding: 20px;
}

#secondary .widget ul.children {
  margin-left: 1em;
}

#secondary .widget li a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  padding: 2px 0;
  text-align:left;
  padding-left:1.2em;
  position:relative;
}

#secondary .widget ul li a:before {
  content: "\f114";
  font-family: FontAwesome;
  display: inline-block;
  color: #999;
  position:absolute;
  left:0;
  top:2px;
}

#secondary .widget ul.children li a:before {
  content: "├";
  color: #ccc;
}

/*******************************************

   アーカイブ

*******************************************/

.archive .content-area h1 {
  margin:20px;
}

.archive .content-area h1 span{
  font-size: 0.6em;
}

.archive .content-area .cat-desc {
  margin:20px;
}


/* ループ */

.post-list {
  margin: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  font-size:0;
}

.post-list .post-img {
  display: inline-block;
  vertical-align: top;
  width: 40%;
  font-size: 1em;
}

.post-list .post-info {
  display: inline-block;
  vertical-align: top;
  width: 60%;
}
 
.post-list h2 {
  font-size: 18px;
  margin: 10px 0 10px 20px;
}

.post-list h2 a {
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.post-list h2 a:hover {
  text-decoration: underline;
  color: #333;
}
 
.cat-name a {
  font-size: 13px;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  background: #96781E;
  text-decoration:none;
  border-radius: 6px;
}

.cat-name a:hover {
  opacity: 0.8;
}

.post-list .cat-name {
  margin-left:20px;
}

.post-list li {
  font-size: 15px;
  color:#e65;
  font-weight:bold;
  margin-left:20px;
}

/* ページング */

.pagination {
  margin: 40px 0 30px;
  text-align: center;
}
 
.pagination ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
 
.pagination li {
  display: inline-block;
  width: auto;
}
 
.pagination li a, .pagination li > span {
  font-size: .9em;
  display: block;
  width: 30px;
  margin: 0 1px;
  padding: 5px 0;
  text-decoration: none;
  color: #000;
  border: solid 1px #ccc;
  border-radius: 3px;
}
 
.pagination li > span {
  color: #fff;
  background-color: #464646;
}
 
.pagination li a:hover {
  color: #fff;
  background-color: #464646;
}
 
.pagination li .dots {
  width: 15px;
  padding: 0;
  color: #000;
  border-color: transparent;
  background-color: transparent;
}


/*******************************************

   投稿

*******************************************/

.post {
  margin: 0;
  padding:20px;
}
 
.post .post-meta .cat-data a {
  text-decoration: none;
  color: #fff;
}
 
.post .post-meta .cat-data a:hover {
  opacity: .8;
}
 
.post .post-img {
  max-width: 640px;
  margin: 30px auto;
  text-align: center;
}

.post .post-tag {
  text-align: right;
}
 
.post .post-tag ul {
  list-style: none;
}
 
.post .post-tag li {
  display: inline-block;
  color: #464646;
}
 
.post .post-tag li a {
  font-size: .8em;
  margin-right: 7px;
  padding: 2px 7px;
  text-decoration: none;
  color: #464646;
  border: solid 1px #464646;
  border-radius: 2px;
}
 
.post .post-tag li a:hover {
  opacity: .8;
}

.post strong {
  color: #c00;
}

.post p {
  margin-top: 0;
  margin-bottom: 1em;
}
 
.post h1 {
  font-size: 1.7em;
  margin: .3em 0;
}
 
.post h2 {
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  padding: .4em 0;
  border-top: solid 1px #333;
  border-bottom: solid 1px #333;
}
 
.post h3 {
  font-size: 1.35em;
  margin-top: 2em;
  margin-bottom: 1em;
  padding: 0 .5em;
  border-left: solid 1px #333;
}
 
.post h4 {
  font-size: 1.2em;
  margin: 0 0 .3em;
}
 
.post h5 {
  font-size: 1.1em;
  margin: 0 0 .3em;
}

.post table {
  border-collapse: collapse;
  margin: 1em 0;
}

.post table th {
  background: #f6f6f6;
  border: 1px solid #ddd;
  padding: 10px 0;
  width: 5em;
  text-align:center;
}

.post table td {
  border: 1px solid #ddd;
  padding: 10px;
  word-break: break-all;
}

/**********************************************

  アドセンス・Amazon
   
**********************************************/

.h2-top-sp {
  text-align:center;
  margin: 30px 0;
}

.h2-btm-pc {
  text-align:center;
  margin: 40px 0;
}

.post-btm-sp,
.post-btm-pc {
  text-align:center;
  margin:40px 0;
}

.af-link {
  text-align:center;
  border: 1px solid #eee;
  margin: 30px 0 60px;
  padding: 20px 10px;
}

.af-link dt {
  font-weight:bold;
}

.af-link dt span {
  color:#c00;
}

.af-link dt img{
  width:240px;
  margin:0 0 1em;
}

.af-link dd  {
  font-weight:bold;
  padding:0 !important;
  margin:1em 0 0 !important;
}

.af-link dd a {
  display:inline-block;
  width:130px;
  padding:10px 0;
  margin:8px;
  text-align:center;
  color:#fff;
  background:#900;
  text-decoration:none;
}

.af-link dd a:hover {
  background:#c00;
}

/*******************************************

   目次

*******************************************/

#toc_container {
	margin:40px auto;
}

/*******************************************

   トップページ front-page

*******************************************/

.home .content-area section h1 {
 text-align: center;
 background: #f7f7f7;
 margin: 1.5em 20px 1em;
 padding: .3em;
}

#home-nav  ul {
  font-size: 0;
 margin: 10px;
}

#home-nav li {
  display: inline-block;
  width: 100%;
  margin: 2% 0;
  font-size: 16px;
  font-weight: bold;
}

#home-nav li span {
  display: block;
  font-size: 13px;
  color: #666;
}

#home-nav li span:first-of-type {
  color: #AA9244;
}

#home-nav li a {
  display: block;
  padding: 20px 20px 20px 100px;
  border:1px solid #ddd;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

#home-nav li a:hover {
  border:1px solid #ccc;
  box-shadow:2px 2px 8px #ccc;
}


/*******************************************

   メディアクエリ

*******************************************/

@media (max-width: 1039px){ /* PC以下 */
  #header-nav {
    padding:10px 0;
    background: #333333;
    background: -moz-linear-gradient(top, #000 0%, #333 100%);
    background: -webkit-linear-gradient(top, #000 0%, #333 100%);
    background: linear-gradient(to bottom, #000 0%, #333 100%);
    width:100%;
    position:absolute;
    top:0;
    left:0;
    z-index:10;
    display:none;
  }

  .sp-menu {
    display:block;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    text-align:center;
    z-index:20;
  }
    
  .sp-menu a,
  .sp-menu a span {
    display: inline-block;
    transition: all .4s;
    box-sizing: border-box;
  }

  .sp-menu a {
    position: relative;
    width: 20px;
    height: 18px;
    margin:8px auto 0;
  }
    
  .sp-menu a span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  .sp-menu a.active span {
    background: #fff;
  }

  .sp-menu a span:nth-of-type(1) {top: 0;}
  .sp-menu a span:nth-of-type(2) {top: 8px;}
  .sp-menu a span:nth-of-type(3) {bottom: 0;}

  /* スマホメニュー：アニメーション */

  .sp-menu a.active span:nth-of-type(1) {
    -webkit-transform: translateY(8px) rotate(-45deg);
    transform: translateY(8px) rotate(-45deg);
  }

  .sp-menu a.active span:nth-of-type(2) {
    opacity: 0;
  }

  .sp-menu a.active span:nth-of-type(3) {
    -webkit-transform: translateY(-8px) rotate(45deg);
    transform: translateY(-8px) rotate(45deg);
  }
}


@media (min-width: 680px){ 
  #home-nav li {
    display: inline-block;
    width: 46%;
    margin: 2%;
    font-size: 16px;
    font-weight: bold;
  }
}

@media (min-width: 1040px){ /* PC以上 */
  .home #site-header {
    padding-bottom:480px;
  }
  #site-header h1 {
    padding: 20px 0 0 0 ;
  }

  #site-header h2 {
    padding: 0 0 20px;
  }
  
  #header-nav {
    display:block;
    font-size:0;
    position:absolute;
    bottom:20px;
    right:0;
  }

  #header-nav li {
    width:auto;
    font-size:16px;
  }
  
  #header-nav li a {
    margin: 0 5px;
    padding: 5px 10px;
  }
  

  .sp-menu {
    display:none;
  }

  #primary {
    float:left;
    width:680px;
  }

  #secondary {
    float:right;
    width:300px;
  }
  
  #secondary .widget {
    margin: 0 0 30px;
  }
  
  #main {
    margin: 0 auto 30px;
  }

  .home #main {
    margin: 30px auto;
  }

}

/*******************************************

   サイトごとに設定

*******************************************/
