/*
Theme Name: XeoryBaseChild
Theme URI: https://xeory.jp/base/
Template: xeory_base
Description: Xeoryベース子テーマ
Author: バズ部
Author URI: https://bazubu.com/
Version: 1.0.0
*/

#content{
  background-color: #fff;
}

@media(min-width:768px){
	#content{
    padding: 60px 0 !important;
  }
}
@media(max-width:767px){
	#content{
    padding: 40px 0 !important;
  }
}
.breadcrumb .fa::before{
  top: 50%;
  translate:0 -50% ;
}
.post-content  .more-link-wrap{
  margin-top: 1rem;
}
.more-link{
  display: inline-block;
  margin-bottom: 0;
}

/* Bootstrap競合解消CSS */
/* ================================================== */

/* Bootstrap使用時のXeoryレイアウト修正 */
.navbar {
  align-items: flex-end !important;
}

/* Xeoryのfloatレイアウトをリセット（強制上書き） */
#main,
body #main,
.wrap #main {
  width: 100% !important;
  float: none !important;
}

#side,
body #side,
.wrap #side {
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
}

.main-inner {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* left-content, right-content, one-columnレイアウトもリセット */
.left-content #main,
.right-content #main {
  /* width: auto !important; */
  float: none !important;
}

.left-content .main-inner,
.right-content .main-inner {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.left-content #side,
.right-content #side {
  /* width: auto !important; */
  float: none !important;
  margin-left: 0 !important;
}

.one-column #content .wrap #main {
  /* width: auto !important; */
  float: none !important;
}

.one-column #content .wrap #main .main-inner {
  /* width: auto !important; */
  margin: 0 !important;
}

/* ヘッダー内のfloat要素もリセット */
#header #logo {
  float: none !important;
}

#header #header-sns {
  float: none !important;
}

/* グローバルナビのfloat */
#gnav li {
  float: none !important;
}

/* コメント投稿フォームのfloat */
.comment-form-author {
  float: none !important;
}

.comment-form-email {
  float: none !important;
}

/* ページネーションのfloat */
.pagination a,
.pagination > span {
  float: none !important;
  display: inline-block !important;
}

/* 投稿ループのfloat */
.post-loop-wrap .post-thumbnail {
  float: none !important;
}

/* 投稿内画像のfloat */
.post-content img.alignleft {
  float: none !important;
  margin: 0 0 15px 0 !important;
}

.post-content img.alignright {
  float: none !important;
  margin: 0 0 15px 0 !important;
}

/* 投稿メタ情報のfloat */
.post-thumbnail {
  float: none !important;
  margin: 0 0 20px 0 !important;
}

/* CTAボックスのfloat */
.post-cta .post-cta-img {
  float: none !important;
  margin: 0 0 20px 0 !important;
}

/* 著者情報のfloat */
.post-author .post-author-img {
  float: none !important;
}

.post-author .post-author-meta {
  margin-left: 0 !important;
}

.comment-author {
  float: none !important;
}

/* サイドバー内のfloat */
#side-author .side-author-img {
  float: none !important;
}

#side-author .side-author-meta {
  float: none !important;
  width: auto !important;
}

/* フッターのfloat */
.footer-01 ul li {
  display: inline-block !important;
}

/* XeoryのwrapクラスがBootstrapのcontainerと競合する場合の修正 */
.wrap {
  width: auto !important;
  margin: 0 !important;
}

/* Xeoryのグローバルナビがtpl/header.htmlに置き換わった際の調整 */
#gnav {
  display: none !important;
}

/* Bootstrapのnavbar使用時のヘッダー調整 */
#header {
  position: absolute !important;
  width: 100% !important;
  z-index: 100 !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}
/* header固定スタイルの調整 */
#header.fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1030 !important; /* Bootstrapのnavbar z-indexより上 */
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom: #e4e4e4 2px solid !important;
}


/* Bootstrapのコンテナとの競合解消 */
#content .container {
  max-width: 1200px !important;
}

/* レスポンシブ対応の上書き */
@media screen and (max-width: 991px) {
  #main,
  .main-inner,
  #side {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
  }
}

@media screen and (max-width: 767px) {
  .wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ==================================================
一覧・詳細　共通
================================================== */

/* パンくず
================================================== */
.breadcrumb{
  background-color: transparent !important;
  padding: 0 !important;
}
.breadcrumb li{
  color: #4d4d4d;
  position: relative;
  padding-left: 0;
}
.breadcrumb li:not(:last-child){
  padding-right: 20px;
}
.breadcrumb li:not(:last-child)::after{
  content: '';
  width: 5px;
  height: 5px;
  border: 0;
  border-top: 1px;
  border-right: 1px;
  border-style: solid;
  border-color: #4d4d4d;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%) rotate(45deg);
}
.breadcrumb li i{
  display: none;
}
.breadcrumb li a{
  color: #4d4d4d;
}


/* 投稿
================================================== */
.post-meta{
  margin-bottom: 1rem;
}
.post-meta:after{
  display: none;
}
.post-meta .cat a{
  color: #0667f4;
  font-size: 12px;
  padding: 2px 8px;
  border: #0667f4 1px solid;
  border-radius: 3px;
  min-width: 120px;
  text-align: center;
  display: inline-block;
  line-height: 1.6;
}
.post-meta .cat a:hover{
  text-decoration: none;
}
.published{
  color: #333;
  font-size: 14px;
  font-weight: bold;
  padding-left: 0;
}
.published:before{
  display: none;
}
.post-loop-wrap .post-thumbnail{
  width: 100%;
  height: auto;
}

/* サイドバー
================================================== */
#side .side-inner{
  background-color: #f0f3f7;
  border-radius: 5px;
  padding: 30px 20px;
}
#side .side-inner .widget_search{
  display: none;
}
#side .side-inner .side-widget{
  padding-bottom: 0;
  margin-bottom: 30px;
}
.widget_recent_entries a, 
.widget_archive a, 
.widget_categories a, 
.widget_meta a, 
.widget_views a{
  padding-left: 0;
  background: none;
  color: #000;
}
.widget_recent_entries a:hover, 
.widget_archive a:hover, 
.widget_categories a:hover, 
.widget_meta a:hover, 
.widget_views a:hover{
  background: none;
  color: #0667f4;
  text-decoration: none;
}
@media screen and (min-width: 768px){
  #side .side-inner{
    max-width: 350px;
    margin-left: auto;
    margin-right: 0;
  }
}
@media screen and (max-width: 991px){
  #side{
    padding-top: 0;
  }
}
@media screen and (max-width: 767px){
  #side{
    margin-top: 60px !important;
  }
}

/* 最近の投稿 */
#recent-posts-2 ul{
  border-top: 1px solid #d6d7d8;
  margin-bottom: 0;
}
#recent-posts-2 ul li{
  padding: 0;
  border-bottom: 1px solid #d6d7d8;
}
#recent-posts-2 ul li a{
  font-size: 15px;
  padding: 10px 0; 
}

/* カテゴリ */
#categories-2 ul li{
  padding: 0;
  border-bottom: none;
  margin-bottom: 5px;
}
#categories-2 ul li:not(:last-child){
  margin-right: 10px;
}
#categories-2 ul li a{
  color: #0667f4;
  font-size: 12px;
  padding: 2px 8px;
  border: #0667f4 1px solid;
  border-radius: 3px;
  min-width: 120px;
  text-align: center;
}
#categories-2 ul{
  display: flex;
  flex-wrap: wrap;
}

/* タグ */
#tag_cloud-2 .tagcloud{
  display: flex;
  flex-wrap: wrap;
}
#tag_cloud-2 .tagcloud a{
  font-size: 14px !important;
  text-decoration: underline;
}
#tag_cloud-2 .tagcloud a:not(:last-child){
  margin-right: 10px;
}
#tag_cloud-2 .tagcloud a:hover{
  color: #0667f4;
}

/* アーカイブ */
#archives-2 ul{
  border-top: 1px solid #d6d7d8;
  margin-bottom: 0;
}
#archives-2 ul li{
  padding: 0;
  border-bottom: 1px solid #d6d7d8;
}
#archives-2 ul li a{
  font-size: 15px;
  padding: 10px 0; 
}

/* ==================================================
アーカイブ
================================================== */
.cat-content{
  border: none;
  padding: 0 !important;
}
.cat-content .cat-header{
  position: relative;
  z-index: 0;
  border-bottom: #0667f4 3px solid;
  background-color: rgba(188, 205, 232, .2);
  padding: 20px 15px;
}
/*.cat-content .cat-header::before{
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("lib/images/bg_grd.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(-1, 1);
}*/
.cat-content .cat-header .post-title{
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* ==================================================
一覧
================================================== */
body:not(.wp-singular) article{
  margin-bottom: 20px;
}
body:not(.wp-singular) article.post{
  border: 1px #e4e4e4 solid;
}
body:not(.wp-singular) .post-loop-wrap .post-content > .row{
  margin-right: -10px;
  margin-left: -10px;
}
body:not(.wp-singular) .post-loop-wrap .post-content > .row > div{
  padding-right: 10px;
  padding-left: 10px;
}
@media screen and (min-width: 768px){
  body:not(.wp-singular) .post-header{
    padding: 4% 4% 0;
  }
  body:not(.wp-singular) .post-loop-wrap .post-content{
    padding: 0 4% 4% !important;
  }
}
@media screen and (max-width: 767px){
  body:not(.wp-singular) .post-header{
    padding: 20px 15px 0;
  }
  body:not(.wp-singular) .post-loop-wrap .post-content{
    padding: 0 15px 30px !important;
  }
}

/* 見出し */
body:not(.wp-singular) .post-title{
  font-size: 22px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: .75rem;
}
.post-title a:hover{
  color: #0667f4;
}
@media screen and (max-width: 767px){
  body:not(.wp-singular) .post-title{
    font-size: 19px;
  }
}

/* テキスト抜粋 */
.post-excerpt{
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 続きを読むボタン */
.more-link-wrap{
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}
.more-link{
  position: relative;
  color: #fff;
  font-size: 14px;
  text-align: center;
  background: #0667f4;
  border-radius: 30px;
  border: #0667f4 1px solid;
  display: block;
  margin: 0 auto;
  max-width: 200px;
  padding: 6px 15px;
  transition: .15s;
  line-height: 1.6;
}
.more-link::after{
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-top: 1px;
  border-right: 1px;
  border-style: solid;
  border-color: #fff;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%) rotate(45deg);
}
.more-link:hover{
  background: #f37189;
  border: #f37189 1px solid;
}


/* ==================================================
詳細
================================================== */
body.wp-singular article.post{
  border: none;
  margin-bottom: 60px;
}
body.wp-singular .post-header,
body.wp-singular .post-content{
  padding: 0 !important;
}

body.wp-singular .post-content a,
body.wp-singular .post-content a:hover{
  color: #0667f4;
}

/* 見出し */
body.wp-singular .post-title{
  font-size: 30px;
}
@media screen and (max-width: 767px){
  body.wp-singular .post-title{
    font-size: 26px;
  }
}

body.wp-singular .post-content h2{
  position: relative;
  font-size: 24px;
  margin: 2.5em 0 1em;
  border-bottom: 1px solid #cacaca;
}
body.wp-singular .post-content h2::after{
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background-color: #0667f4;
}
.post-content h3{
  font-size: 20px;
  border-left: 5px solid #0667f4;
}

/* リスト */
.post-content ol, 
.post-content ul{
  padding: 0 0 0 30px;
}
.post-content ol li::marker{
  font-size: 1.05rem;
  font-weight: bold;
}
.post-content ul{
  list-style: none;
}
.post-content ul li{
  position: relative;
}
.post-content ul li::after{
  content: '';
  display: inline-block;
  position: absolute;
  top: 4px;
  left: -25px;
  width: 16px;
  height: 16px;
  background-color: #bccde8;
  border-radius: 50%;
}

/* テーブル */
.post-content table{
  border-top: 0;
  border-left: 0;
  border-right: 0;
}
.post-content table tbody th,
.post-content table tbody td{
  padding: 1rem;
}
.post-content table tbody th{
  background-color: #91aed8;
  text-align: center;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}
.post-content table tbody th:not(:last-child){
  border-right: #fff 1px solid;
}
.post-content table tbody th:last-child{
  border-right: 0;
}
.post-content table tbody td{
  border-top: 0;
  border-left: 0;
  border-bottom: #e4e4e4 1px solid;
}
.post-content table tbody td:not(:last-child){
  border-right: #e4e4e4 1px solid;
}
.post-content table tbody td:last-child{
  border-right: 0;
}
/* 投稿フッター */
.post-footer{
  padding: 40px 10px 0 !important;
}
.post-footer .tag a{
  color: #0667f4;
  font-size: 14px;
  text-decoration: underline;
}
.post-footer .tag a:not(:last-child){
  margin-right: 10px;
}

/* お問い合わせ */
.post-cta{
  text-align: center;
  border-top: none;
  background: url("lib/images/bg_grd.jpg");
  background-size: cover;
  background-position: center;
  padding: 0 !important;
}
.post-cta .cta-post-title{
  font-size: 24px;
  font-weight: bold;
  display: inline-block;
  text-align: left;
  padding: 40px 4%;
  border-bottom: none;
  margin-bottom: 0;
}
.post-cta .post-cta-inner{
  padding: 0 4% 40px;
  text-align: left;
}
.post-cta .post-cta-btn{
  margin: 0;
}
.post-cta .post-cta-btn a{
  color: #0667f4;
  font-weight: bold;
  background: #fff;
  border-radius: 30px;
  border: #0667f4 1px solid;
  display: block;
  margin: 0 auto;
  max-width: 260px;
  padding: 12px;
  transition: .15s;
}
.post-cta .post-cta-btn a:hover{
  color: #fff;
  background: #f37189;
  border: #f37189 1px solid;
}
@media screen and (max-width: 767px){
  #main .post-cta .cta-post-title{
    padding: 40px 15px 20px !important;
  }
  .post-cta .post-cta-inner{
    padding: 0 15px 40px !important;
  }

}

/* シンプルなCSS stickyを使用したサイドバー */
@media (min-width: 768px) {
  #side {
    position: sticky;
    top: 100px; /* ヘッダーの高さ + 少し余白 */
    align-self: flex-start; /* サイドバーの高さをコンテンツに合わせない */
  }
  
  /* サイドバーの幅を固定しない（レスポンシブ対応） */
  #side .side-inner {
    width: 100%;
    max-width: none;
  }
}

/* タブレット・スマートフォンでのスティッキー無効化 */
@media (max-width: 767px) {
  #side {
    position: static !important;
    top: auto !important;
  }
}

/* ==================================================
目次
================================================== */
#ez-toc-container{
  border-radius: 5px;
  border: 1px solid #d6d7d8;
  box-shadow: none;
  padding: 3%;
}
#ez-toc-container ul ul,
.ez-toc div.ez-toc-widget-container ul ul{
  margin-left: 1rem;
}
div#ez-toc-container ul li, div#ez-toc-container ul li a{
  font-size: 15px;
}
#ez-toc-container .ez-toc-js-icon-con{
  left: 0;
  border: none;
}
#ez-toc-container .ez-toc-js-icon-con svg{
  fill: #cacaca !important;
  color: #cacaca !important;
}
.ez-toc-title-container{
  position: relative;
  text-align: center;
}
.ez-toc-title-container .ez-toc-title-toggle{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.ez-toc-title-container .ez-toc-title{
  color: #0667f4;
  font-weight: bold !important;
}
.ez-toc-counter nav ul li a::before{
  color: #0667f4;
}
.ez-toc-heading-level-2{
  border-bottom: 1px dashed #d6d7d8;
  padding: 5px !important;
}
.ez-toc-heading-level-2 > a{
  color: #333 !important;
  font-weight: bold !important;
}
.ez-toc-heading-level-2 > a:hover{
  color: #0667f4;
}
.ez-toc-heading-level-2 > a::before{
  margin-right: 5px !important;
}
.ez-toc-section{
  padding-top: 20px;
}