/*
Theme Name: AFFINGER Child
Template: affinger
Description: AFFINGER6 対応
Version: 20210719
*/
* > .entry-content p:last-child { margin-bottom: revert;}
/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {
	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {
	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {
	/*-- ここまで --*/
}
/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {
	/*-- ここまで --*/
}
/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {
	
	/*-- ここまで --*/
}
/*------------------------------------------------------------
共通固定ヘッダー
-------------------------------------------------------------*/
#global_link a,#global_link li{width:auto!important;height:auto!important}#global_link a,#global_link li,#global_link ul{background:0 0!important;padding:0!important}#global_link{position:static;top:0;left:0;z-index:9999;width:100%;padding:5px 10px;box-sizing:border-box;background:rgba(0,0,0,.8);font-size:12px!important}#global_link a{margin:0!important;color:#eaeff9!important;font-size:12px!important;text-decoration:none!important}#global_link a:hover{color:#fff!important}#global_link ul{display:flex!important;align-items:center!important;justify-content:flex-start!important;max-width:1160px!important;margin:0 auto!important}#global_link li{display:block!important;margin:0 8px!important;letter-spacing:.05em}#global_link li:first-child{margin:0 8px 0 0!important;padding:0!important;letter-spacing:0!important}#global_link li:nth-of-type(2){margin-left:auto!important}#global_link li:last-of-type{margin-right:0!important}#global_link li:not(:first-child) a{display:inline-block!important;position:relative;padding:0 0 0 10px!important}#global_link li:first-child a img{width:auto;height:30px}#global_link li:first-child a:hover img{opacity:.7}#global_link li:not(:first-child) a:before{position:absolute;left:0;top:50%;border:4px solid transparent;border-left:5px solid #eaeff9;transform:translateY(-50%);content:''}@media screen and (max-width:1080px){#global_link li,#global_link li a{display:block!important;height:auto!important}#global_link li,#global_link li a,#global_link ul{padding:0!important;margin:0!important}#global_link li,#global_link li a,#global_link li:first-child,#global_link ul{margin:0!important}#global_link ul{display:flex!important;align-items:stretch!important;flex-wrap:wrap!important;width:auto!important;background:0 0!important;text-align:center!important}#global_link li{width:50%!important;box-sizing:border-box!important;border-bottom:1px dotted #999!important;background:0 0!important;letter-spacing:.05em!important}#global_link li:nth-last-child(-n+2){border:none!important}#global_link li:nth-child(odd){border-right:1px dotted #999!important}#global_link li a{width:auto!important;text-align:left!important}#global_link li:not(:first-child) a{display:flex!important;position:relative;padding:5px 10px 5px 20px!important}#global_link li:first-child a img{height:30px;margin:0!important;padding:0 0 0 10px!important}#global_link li:not(:first-child) a:before{position:absolute;left:10px;top:50%;border:4px solid transparent;border-left:5px solid #eaeff9;transform:translateY(-50%);content:''}}
body {
  color: #1a2c44;
  background-color: #f9f8f4;
}
.wp-block-columns{
  flex-direction: column-reverse;
  
}
.wp-block-column:not(:first-child){
  margin-left: 0;
}
.wp-block-categories-list.wp-block-categories > li{list-style: none}
li.cat-item {
    display: inline-block;
    border: 1px solid #4682B9;
    font-size: 14px;
    
    padding: 5px 20px;
    border-radius: 30px;
    margin: 5px 10px;
}
li.cat-item  a{
    text-decoration: none;
    font-size: 0.6rem;
}
	/*-- 追加カスタマイズ--*/
#breadcrumb ol{
  margin-bottom: 5px;
}
#breadcrumb ol li a{
  margin: 0 10px;
  font-weight: bold;
}
br.brsp{display: none;}
	/*-- トップページ--*/
.st-pagelink .page-numbers{
  font-family: lato,sans-serif;
}
.wp-block-columns{
  margin: 0 auto 4rem!important;
}
.post-card-list{
  box-sizing: border-box;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.post-card-list .post-card-image::before{
  background: rgba(0,0,0,1);
}
.post-card-list .post-card-image a::before {
  background: rgba(0,0,0,.5);
  z-index: 2;
  position: relative;
  height: 100%;
}
.post-card-list .post-card-image a > p{
  position: absolute;
  color: #fff;
  font-weight: bold;
  top: 5px;
  left: 10px;
}
.post-card-list .post-card-image img{
  opacity: 0.7;
}
#header-r .footermenust.st-menu-side a {
  font-family: Dosis,sans-serif;
  letter-spacing: 1px;
}
  
#wrapper{position: relative;}
.colum1:not(.st-lp-wide) #content{max-width: 100%!important;}
#headbox-bg{
  background: rgba(240, 240, 236, 0.7)!important;
  position: relative;
  z-index: 2;
}
#headbox{
  max-width: 100%!important;
}
.post .entry-content h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no2){
  line-height: 1.4;
  letter-spacing: 0;
  font-size: 2.2em;
  font-weight: bold!important;
}
@media (max-width: 768px){
  .next.page-numbers {
    margin: 0 20px;
    width: calc(100% - 40px);}
  
  br.brsp{display: block;}
  
  .post .entry-content h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no2){
    font-size: 1.6em;
  }
}

@media (max-width: 768px){
  .wp-block-columns{
    margin: 0 auto 2rem!important;
  }
  
  .st-mybtn.st-btn-default{
    min-width: calc(100% - 40px);
    margin: 0 20px;
  }
  
}
/*-- 一覧ページ--*/
header + #content-w{
  padding-top: 0;
}
.n-entry-t {
  display: none;
}
.colum1 main{
  background: none!important;
  padding: 0;
}
.colum1 h1.n-entry{
  width: 100%;
  padding: 120px 0!important;
  margin: 0 0 60px!important;
  border-bottom: none!important;
  color: #fff;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100%;
  background-image: url(./../../uploads/2022/07/bg-title-scaled.jpeg);
  position: relative;
  max-width: 100%!important;
}
.colum1 h1.n-entry::after{
  content: '';
  background-color: rgba(0,0,0,.6);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.category:not(.category-event) .colum1 h1.n-entry{
  color: #333;
  background-position: center 25%;
  background-image: url(./../../uploads/2022/07/bg-title-scaled-1-scaled.jpg);
}
.category:not(.category-event) .colum1 h1.n-entry::after{ display: none;}
.category:not(.category-event) .post-card-list .post-card-image,
.wp-block-columns .post-card-list .post-card-image { border-radius: 0 !important;}
.category:not(.category-event) .post-card-list .post-card-image::before,
.wp-block-columns .post-card-list .post-card-image::before { background: none;}
.category:not(.category-event) .post-card-list .post-card-image img,
.wp-block-columns .post-card-list .post-card-image img { opacity: inherit;}
.category:not(.category-event) .post-card-list .post-card-list-item.post-card,
.wp-block-columns .post-card-list .post-card-list-item.post-card { border-radius: 0 !important;}
.category:not(.category-event) .post-card-list .post-card p.post-card-title:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no):not(.st-matome):not(.rankh5):not(.point):not(.st-cardbox-t):not(.popular-t):not(.kanren-t):not(.popular-t),
.wp-block-columns .post-card-list .post-card p.post-card-title:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no):not(.st-matome):not(.rankh5):not(.point):not(.st-cardbox-t):not(.popular-t):not(.kanren-t):not(.popular-t) {
  margin: 0;
  padding: 0 0 .5rem !important;
  background: #f0f0ed;
  font-weight: bold;
}
.category:not(.category-event) .post-card-list .post-card p.post-card-title:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no):not(.st-matome):not(.rankh5):not(.point):not(.st-cardbox-t):not(.popular-t):not(.kanren-t):not(.popular-t):hover,
.wp-block-columns .post-card-list .post-card p.post-card-title:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no):not(.st-matome):not(.rankh5):not(.point):not(.st-cardbox-t):not(.popular-t):not(.kanren-t):not(.popular-t):hover {
  background: #f0f0ed;
  opacity: 1;
}
.category:not(.category-event) .post-card-list .post-card-body .post-card-logo,
.wp-block-columns .post-card-list .post-card-body .post-card-logo {
  max-width: 80%;
  margin: 0 auto 1rem;
}
.category:not(.category-event) .post-card-list.is-large-columns-3.has-excerpt .post-card-text,
.wp-block-columns .post-card-list.is-large-columns-3.has-excerpt .post-card-text {
  position: relative;
  max-height: calc((1em * 1.4 + 5px) + (1em * 1.4 + 10px) + (1em * 1.4 * 5));
}
@media only screen and (min-width: 960px) {
  .category:not(.category-event) .post-card-list.is-large-columns-3.has-excerpt .post-card-text,
  .wp-block-columns .post-card-list.is-large-columns-3.has-excerpt .post-card-text {
    max-height: calc((1em * 1.4 + 5px) + (.8em * 1.4 * 6)); /* (タイトル font-size * line-height) + margin-bottom + (日付 font-size * line-height) + margin-bottom + (抜粋 font-size * line-height * 行数) */
  }
}
@media (max-width: 768px){
  .category:not(.category-event) .colum1 h1.n-entry,
  .wp-block-columns .colum1 h1.n-entry {
    padding: 20px 0 220px !important;
  }
}
.category:not(.category-event) .post-card-list .post-card-text::after,
.wp-block-columns .post-card-list .post-card-text::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	height: calc(1em * 1.4 * 1 + .25em); /* 抜粋 font-size * line-height * 隠す行数 (± 微調整) */
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)); /* 背景色 */
	content: '';
}
.category:not(.category-event) .post-card-list .post-card-body .post-card-copy b,
.wp-block-columns .post-card-list .post-card-body .post-card-copy b {
  display: block;
  margin-bottom: 1rem;
}
.colum1 h1.n-entry span{
  max-width: 1200px;
  margin: 0 auto;
  display: block;
  padding: 0 20px!important;
  font-family: Dosis,sans-serif!important;
  z-index: 2;
  position: relative;
  font-weight: bold;
  font-size: 45px!important;
  letter-spacing: 5px;
}
  
  
.post-card-list .post-card-excerpt p{
  font-size: 16px;
}
/*-- 記事ページ--*/
.article_content .post .st-catgroup{
	display:none;
  margin: 0 auto;
  padding: 5px 50px 10px;
  max-width: 1200px;
  text-align: center;
}
.article_content .catname{
  background: #726D42;
  color: #ffffff;
  border-radius: 30px;
  padding: 5px 20px;
  
}
.article_content .blogbox{
  max-width: 1200px;
  margin: 10px auto;
  text-align: center;
  padding: 0 50px;
}
.article_content .mainbox{
  max-width: 1200px;
  margin: 30px auto 10px;
}
.article_content .mainbox #nocopy{
  max-width: 1200px;
  margin: 0 20px;
  padding: 50px;
  border-radius: 20px;
  background: #fff;
}
.article_content .mainbox #nocopy p > img{
  width: 60%;
  display: block;
  margin: 0 auto;
  text-align: center;
}
.article_content .mainbox #nocopy p a > img{
  width: 40%;
  display: block;
  margin: 0 auto;
  text-align: center;
}
.article_content .mainbox #nocopy .rbox p > img{
  width: 100%;
}
.article_content .mainbox .yellowbox{
  background: #E6E2D1;
  border: none!important;
}
#st-header-post-under-box.st-header-post-no-data{
  margin-top: 0;
}
.post h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no)::before{
  bottom: -30px;
}
.post h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no)::after{
  bottom: -32px;
}
aside h4:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no2){
  max-width: 1200px;
  margin: 100px auto 10px;
}
  
.post h4.point{
  border: none!important;
}
.post h4:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no):not(.rankh4) .point-in{
  display: block!important;
  position: static!important;
  background: #000!important;
  max-width: 100%!important;
  border-radius: 0!important;
  margin: 0 20px;
}
  
.article_content .mainbox .freebox{
  border: none;
}
.article_content .mainbox .p-entry-f{
  display: block;
  color: #fff;
  background: #000;
}
aside .kanren{
  max-width: 1200px;
  margin: 20px auto 10px;
}
aside .kanren dl,
aside .kanren > p{
  padding: 0 20px;
}
.content-post-slider, .post-card-list{width: 100%;}
.post-card-list.is-large-columns-3 .post-card-list-item {
	width: calc(33.33333% - 30px);
	border-radius: 0.3rem;
}
.post-card-list.is-large-columns-3 .post-card-list-item:not(:nth-of-type(3n)) {
	margin-right: 45px;
}
.post-card-list .post-card-list-item, .post-card-list.is-small-columns-1 .post-card-list-item{
	margin: 0 0 50px;
}
.content-post-slider .post-slide-image, .post-card-list .post-card-image{
	border-radius: 0.3rem 0.3rem  0 0;
}
.content-post-slider .post-slide-excerpt p, .post-card-list .post-card-excerpt p {
    line-height: 1.6!important;
}
.post-card-list .post-card-body{
padding: 15px 30px 30px;
}
.post-card-list .post-card-image .st-catgroup.itiran-category {
	top:auto;
	bottom: -15px;
}
.post .entry-content h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no2).top_md_title{
	font-size: 2.8em;
	font-family: 'Dosis',sans-serif;
	font-weight: normal!important;
	letter-spacing: 0.1em;
	margin-bottom: 50px!important;
	padding: 0;
}
.post .entry-content h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no2).top_md_title span{
	font-family: "Noto Sans JP", sans-serif!important;
	display: block;
	font-size: 16px;
	margin-top: 5px;
	line-height: 2;
 	font-weight: bold;
}
.post .entry-content h2:not([class^="is-style-st-heading-custom-"]):not([class*=" is-style-st-heading-custom-"]):not(.st-css-no2).st-mybtn{
	font-family: 'Dosis',sans-serif;
}
.post .entry-content a.imghover:hover{
  opacity: 0.6;
}
@media (max-width: 768px){
  .colum1 h1.n-entry{
    background-size: auto 100%;
  }
  
  .article_content .mainbox #nocopy {
    border-radius: 10px;
    padding: 30px 15px;
  }
  
  .article_content .mainbox #nocopy p a > img{
    width: 100%;
  }
  
  
  .article_content .mainbox #nocopy p > img{width: 100%;}
  
  .st-kaiwa-face, .st-kaiwa-face2{width: 50px!important;}
  
  .article_content .mainbox .yellowbox{padding: 15px;}
  .post-card-list{
    flex-direction: column;
  }
  .post-card-list.is-large-columns-3 .post-card-list-item {
    width: 100%;
    border-radius: 0.3rem;
  }
  .post-card-list.is-large-columns-3 .post-card-list-item:not(:nth-of-type(3n)) {
    margin-right: 0;
  }
  
  .post-card-list .post-card-list-item, .post-card-list.is-small-columns-1 .post-card-list-item{
    margin: 0 0 3rem;
  }
  
}