@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #186ef9;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
    --nav-color: #333;
}
html, body { height: 100%;}

body {
    background: var(--white-color); 
    color: var(--base-color);
}

img {
	max-width:100%;
	height: auto; /* 高さ自動 */
}
a {
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
ul li {
    list-style-type: none;
}
h2 {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}
.button {
    margin: 1rem;
}

/*ヘッダー
-------------------------------------*/
.header {
	display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
    margin: 1rem 0 2rem 0;
}
.sitetitle {
    font-size: 2.5rem;
    height: 3rem;
    line-height: 3rem;
}
.header-box {
    margin-left: auto;
}

/*スマホ用メニュー
-------------------------------------*/	
/*
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: flex-start;
    list-style: none;
}
nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem 1rem;
    color: var(--nav-color);
}
*/



@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}
#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
    margin-bottom: 10px;
}
.header #open,#close  {
    position: absolute;
    top: 20px;
    right: 25px;
}
nav ul {
	flex-direction: column;
}
nav li {
    margin-bottom: 0;
}
nav li a {
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.header li {
	padding-top: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 125px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 25px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 3rem 0 0 0;
}
section {
	margin: 3rem 0;
}

/* お知らせ
-------------------------------------*/
.news {
    margin-bottom: 2rem;
}
.news h2 {
    border-bottom: 1px solid var(--border-color);
    font-size: 22px;
}

/* お知らせ一覧
-------------------------------------*/
.newsbox {
    position: relative;
}
.postlist {
    position: absolute;
    right: 0;
    top: -2px;
    border: 1px solid var(--border-color);
    padding: 1px 5px;
}

/* サムネイルと文字列
-------------------------------------*/
.news li {
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}
.news-list {
/*    display: flex; /* 画像と文字を横に並べる */
/*    flex-direction: row;*/
}
.news-list .newsimg {
    width: 100%; /* 画像サイズ指定 */
    margin: 0;
    padding: 0 0 1rem 1rem;
    overflow: hidden;
    position: relative;
}
.news-list .newstext {
    margin: 0 1rem;
}
.newscategory {
    border: 1px solid var(--border-color);
    padding: 3px 5px;
}
h3.contents-head {
    margin: 0;
}
.meta {
    margin-top: 1rem;
}
.widget h2 {
    border-bottom: 1px solid var(--border-color);
    font-size: 20px;
    margin-bottom: 2rem;
}
.widget ul {
    margin-bottom: 2rem;
}
h1.contents-head {
    text-align: center;
    display: none;
}
ul.bc-blog-tags {
    display: inline-block;
}

/*フッター
-------------------------------------*/
body > footer {
    position: sticky;
    top: 100vh;
}

/*お問い合わせ
-------------------------------------*/
table { width: 100%; }
.widget-blog-calendar table {
    margin-left: 0 !important; 
}
.row-table-01 th {
    width: 200px;
}
label {
    display: inline-block;
}

input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea { 
    background-color: var(--white-color);
    box-sizing:border-box;
}
textarea {
    width: 100%;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: block;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    background: var(--white-color);
    border: 1px solid var(--linkhover-color);
    padding-top: 30px;
    text-align: center;
    text-decoration: none;
    opacity: 0.8;
}
#pagetop::after{
    content: "";
    display: block;
    border-top: 2px solid var(--base-color);
    border-right: 2px solid var(--base-color);
    width: 25%;
    height: 25%;
    top: 45%;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    transform: rotate(-45deg);
}
#pagetop:hover{
    opacity: 0.5;
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){
	
/*ヘッダー
-------------------------------------*/
.header-box {
    margin-left: 0;
}	
.sitetitle {
    font-size: 2.8rem;
    height: 3rem;
    line-height: 3rem;
    margin-bottom: 1rem;
}

/*お問い合わせ
-------------------------------------*/
.row-table-01 th {
	width: 100%;
	display: block;
}	
.row-table-01 td {
	display: block;
}
input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea { 
    background-color: var(--white-color);
    width: 100%;
    box-sizing:border-box;
}
}

/* 幅500px以下の表示
-------------------------------------*/
@media screen and (max-width: 500px){
/*ニュース
-------------------------------------*/
.news-list {
    flex-direction: column;
}
.news-list .newsimg {
    width: 100%; /*画像サイズ指定*/
    margin: 0;
    padding: 0;
}
}




/* 変更及びつけたしのCSS
-------------------------------------*/

.bs-top-post{
display: grid;
gap: 40px 30px;
grid-template-columns: 1fr 1fr 1fr;
margin: 0 0 58px;
}

.newsimg a{
display: block;
position: relative;
margin: 0 0 11px;
aspect-ratio: 3/2;
width: 100%;
height: 100%;
}

.container{
padding: 50px 0 !important;
}

.newsimg img{
overflow: hidden;
background-color: #eceff1;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.newstext a{
font-size: 16px;
font-weight: 700;
}


.bs-top-post__item-category a{
background-color: #ECEFF1;
display: inline-block;
padding: 1px 6px;
font-size: 13px;
color: #78909C;
}

.iframe_category #header2{display:none;}

.old_blog a, .to_Top a{
position: relative;
display: inline-block;
padding: 1em 1em;
text-decoration: none;
color: #FFF;
background: #93C131;
border: solid 1px #78a31d;
border-radius: 4px;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
text-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.widget_border_h2{
border-bottom: 1px solid var(--border-color);

}

.bs-widget-head{
padding-bottom: 0px;
}

.bs-widget-head_top{
font-size: 17px;
padding-bottom: 0px;
}






@media screen and (max-width: 768px){

.bs-top-post{
grid-template-columns: 1fr 1fr;
gap: 10px 10px;
}

.container{
max-width: 90%;
}



}




