
/*=========2カラム=========*/
/* #ex-wrap のマージンは style.css で幅90%として一元管理するように変更しました */

/*幅851px以上で2カラム表示*/
@media only screen and (min-width:851px){
	.sub-main{
		display: flex;
		width:100%;
		margin:5% 0;
	}

	#main{
		width:100%;
		float: left;
		margin-right: 5%;
		min-width: 0;
	}

    #side{
        width: 35%;
        max-width: 330px;
        min-width: 240px;
    }

	.sidenavi{
		position: static;
    }
}

/*------サイドバー------*/
.side_widget{
    margin-bottom:2em;

    h2{
        background-color: #af998b;
        color:#fff;
        font-weight: normal;
        font-size:1em;
        text-align: center;
        padding:5px 2em;
        font-family: "Open Sans","游ゴシック Medium","游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", noto-sans-cjk-jp,"Yu Gothic Medium","游ゴシック","Yu Gothic","游ゴシック体",YuGothic,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
    }
}


#side{
    margin-top: 2rem;

    ul{
        padding-left: 1em;
        margin-top: 1em;;
    }

    li{
        margin-bottom:0.8em;
        list-style: square inside;
    }

    li::marker {
        color: #556b2f;
      }

    .authorProfile{
        text-align:justify;
    }
}

#side .wp-block-latest-posts__list {
    padding-left: 0;
    list-style: none;
}

#side .wp-block-latest-posts__list li {
    list-style: none;
}


@media only screen and (max-width:850px){
	.side-profile{
		display: none;
	}

    .side_widget h2{
        font-size:1.6em;
    }
}

.side-yvh-link a img:hover{
        opacity: 0.9; filter: brightness(90%);
}

/*SNS*/
#side .side_sns{
    h2{
        margin-bottom: 1em;
    }

    div{
        margin:auto;
        width:100%;
    }

    li{
        list-style: none;
    }

    a{
        margin-bottom:.3em;
        font-family:"Open Sans","游ゴシック Medium","游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", noto-sans-cjk-jp,"Yu Gothic Medium","游ゴシック","Yu Gothic","游ゴシック体",YuGothic,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
    }

    a:before{
        font-family:"Font Awesome 6 Brands";
        font-weight:400;
        padding-right:1em;
        text-decoration: none;
        display: inline-block;
    }
}

/*------コンテンツ------*/
/*パンくず*/    
#breadcrumb.bc-left{
    text-align: left;
}
    
#breadcrumb {
        text-align: right;
        margin-bottom:2em;
    
    ul{
        display: flex;
    }

    li{
        display: inline-block;
        padding:0 .2em;
        font-size:.9em;
    }

    li a{
        text-decoration: none;
        color:#2d2d2d;
    }

    li a:hover{
        color:#006400;
        text-decoration: underline;
    }
}

@media screen  and (max-width:450px) {
    #breadcrumb li{
        font-size: 0.5em;
    }

    .sp-none{
        display: none;
    }
}


/*アイキャッチ*/
.eyecatch{
    min-height:3em;
}

/*ベーステキスト*/
h1:before, h2:before, h3:before, h4:before, h5:before {
    content:none;
}

main article{
    letter-spacing:.04em;
    line-height:1.9em;
    margin-bottom:2em;

    h1,h2{
    font-size: 1.6em;
    }

    h2,h3,h4,h5{
        margin-top: 1.3em;
        margin-bottom: 0.6em;
    }

    h2{
        border-bottom: 2px solid #2d2d2d;
        padding: 0 2rem 1rem 0;
    }

    h3{
        border-bottom: 1px solid #2d2d2d;
        padding: 0 2rem .5rem 0;
    }

    h4{
        border-bottom: 1px dashed #2d2d2d;
        padding: 0 2rem .3rem 0;
    }

    p{
        margin-bottom: 0.8em;
    }

    ul{
        padding-left: 1em;
        margin-bottom: 0.8em;
    }

    li {
        margin-left: 1.4em;
        text-indent: -1.4em;
        padding-right:1.4em;
        line-height: 1.6em;
        margin-bottom:0.4em;
      }
}

@media only screen and (max-width: 650px){
    main h1,main h2{
        font-size: 1.3em;
    }
}

@media only screen and (max-width: 450px){
    main h1{
        margin-top:4em;
    }
    .single-page-layout .post-h1{
        margin-top:0;
        font-size:2.3rem;
    }
}

/*TOC*/
#toc_container{
    margin: auto;
    max-width: 90%;

    .toc_list {
        padding-left: 20px;  /* インデントを確保 */
        margin-left: 0;       /* 左側にはみ出しを防止 */
    }

    .toc_number{
        margin-right: 1em;
    }
}


/*snsシェア*/
.eyecatch_under{
    margin-bottom: 1.5em;
}

.sns_container{
    display: flex;
    align-items: center; 
    gap: 10px;
    justify-content: flex-end;
    padding:5px 1em;

    a{
        font-size:1.5em;
        line-height: 1;
        text-decoration: none;
    }

    .fa-twitter-square{
        color:#2d2d2d;
    }

    .fa-facebook-square{
        color: #1877f2;
    }

    .fa-line{
        color:#06c755;
    }    
}

.foot_sns{
    margin-top:5em;
}

/*この記事を書いた人*/
.author-profile{
    padding:.5em;
    border:1px solid #2d2d2d;
    margin-bottom: 1em;
    letter-spacing: .1em;

    h1,table{
        margin-bottom: .5em;
    }

    .left-side{
        padding-right: 1em;
    }

    .right-side{
        vertical-align: top;
    }

    .right-side a{
        display: inline-block;
    }
    
    .authorName{
        margin-bottom: .5em;
        font-size:1.3em;
    }
}

/*contact*/
.post-contact{
    text-align: center;

    h1{
        font-size: 1.5em;
        margin-bottom: 2em;
    }

    p{
        margin-bottom: 4em;
    }
}

.button-area{
    margin:2em 0;
}


