@charset "utf-8";

/* --------------------------------------------------------- */
/*	for Toppage  *********************************************/
/* --------------------------------------------------------- */

/* --------------------------------------------------------- */
/*	HEADER  **************************************************/
/* --------------------------------------------------------- */

.top-header-inner{
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	padding-bottom: 1px;
}

#toptitle-pc{
	display: block;
}
#toptitle-sp{
	display: none;
}

.top-header-row2 img {
	display: block;
	max-width: 100%;   /* 親要素に合わせて縮小 */
	width: 800px;      /* PC時の基準サイズ */
	height: auto;
	margin: 10px auto; /* 中央寄せ + 上下余白 */
}

/* スマホ用 (幅480px以下) */
@media screen and (max-width: 850px) {
	.top-header-row2 img {
		width: 90%;      /* 画面幅90% */
		margin: 0 auto; /* 上下余白を半分に */
	}
}
/* スマホ用 (幅480px以下) */
@media screen and (max-width: 480px) {
	.top-header-row2 img {
		width: 100%;      /* 画面幅いっぱいに表示 */
		margin: 0 auto; /* 上下余白を半分に */
	}
	#toptitle-pc{
		display: none;
	}
	#toptitle-sp{
		display: block;
	}
}

/* --------------------------------------------------------- */
/*	トップページお知らせ表示  ********************************/
/* --------------------------------------------------------- */

main {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	padding: 0 30px 30px 30px;
	border-radius: 0 0 15px 15px;
	margin-bottom: 10px
}


section.top-blog-news{ /*トップページ ブログ、お知らせ記事表示*/
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.top-blog,
.top-news{
	/*border: 1px solid #ccc;*/
}


section.top-banner{ /*トップページ バナー画像表示*/
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

section.top-banner .banner img{
	width:100%;
	height: auto;
}

/* スマホ用、タブレット(幅700px以下) */
@media screen and (max-width: 700px) {

	main {
		padding: 0 10px 20px 10px;
	}

	section.top-blog-news{
	    grid-template-columns: 1fr;
	}

}
/* スマホ用、タブレット(幅480px以下) */
@media screen and (max-width: 480px) {

	section.top-banner{ /*トップページ バナー画像表示*/
	    grid-template-columns: 1fr;
	    gap: 5px;
	}

}


h2 {
	margin: 15px 10px;
}

/* liをflexで横並び */
.top-blog ul li {
  display: flex;
  align-items: flex-start;  /* 上端を揃える */
  gap: 10px;                /* 画像とテキストの間隔 */
  margin-bottom: 15px;
}

/* サムネイル画像 */
.top-blog-news .post-thumbnail {
  flex: 0 0 55px;       /* 横幅を固定 */
  aspect-ratio: 1 / 1;   /* 正方形にする */
  overflow: hidden;      /* はみ出し部分を隠す */
  border-radius: 4px;
  border: 1px solid #aaa;
}

.top-blog-news .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* トリミングして枠に収める */
  display: block;
}
/* テキスト部分 */
.top-blog .post-text {
  flex: 1;
}
.top-blog-news .post-date {
  font-size: 0.7em;
  color: #666;
  margin-bottom: 5px;
}
.top-blog-news .post-title {
  font-size: 1em;
  line-height: 1.4;
  font-weight: bold;
}
.top-blog-news .newpost {
  font-size: 70%;
  margin-left: 5px;
}


#category-description{
	padding: 0 10px 10px 10px;
	font-size:90%;
}



/* --------------------------------------------------------- */
/*	えんま様おみくじ  ****************************************/
/* --------------------------------------------------------- */

#topcenter_omikuji{
	text-align:center;
	font-weight:bold;
}
#spacetop{
	line-height:15px;
}
#spacebottom{
	line-height:30px;
}
#result img{
	width:100%;
	max-width:600px;
}

/* --------------------------------------------------------- */
/*	トップメニュー（PC 3列／タブレット2列／スマホ1列）  ****************************************/
/* --------------------------------------------------------- */

ul.topmenu{ /*トップページ メニュー画像表示*/
	display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

ul.topmenu li img{
	width:100%;
	height: auto;
}

/* タブレット用(幅1000px以下) */
@media screen and (max-width: 1000px) {

	ul.topmenu{ /*トップページ バナー画像表示*/
	    grid-template-columns: repeat(2, 1fr);
	}

}
/* スマホ用(幅580px以下) */
@media screen and (max-width: 580px) {

	ul.topmenu{ /*トップページ バナー画像表示*/
	    grid-template-columns: 1fr;
	}

}







/* --------------------------------------------------------- */
/*	Gridbox(左右２分割)  ****************************************/
/* --------------------------------------------------------- */
.header-menu ul.header-grid-box{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    max-height: 250px;
}
.grid-box {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    column-gap: 100px;
    row-gap: 20px;
}
#topnews .grid-box{
    grid-template-rows: max-content 1fr;
}
#topnews .grid-left{
	padding-left:20px;
}
#topnews .grid-right{
	padding-right:20px;
}
#top-post-news {
    grid-row: span 2;
}
#topcontents .grid-box,
#topcontents-bochi .grid-box {
    grid-template-rows: repeat(2, auto);
}
#topcontents .grid-box:nth-child(n+2),
#topcontents-bochi .grid-box {
    grid-auto-flow: row;
}
#topsns .grid-box,
#topaccess .grid-box { /*SNS、アクセス用グリッドボックス*/
    grid-template-columns: 60% 1fr;
    grid-template-rows: none;
}
.grid-child p {
    margin: 10px;
    font-size: 1.6rem;
}
/* 1072px以下に適用されるCSS（タブレット用） */
@media screen and (max-width: 1072px) {
    .grid-box {
        column-gap: 50px;
    }
}
/* 850px以下に適用されるCSS（タブレット用） */
@media screen and (max-width: 850px) {
    .header-menu ul.header-grid-box {
    max-height: 400px;
    }
    .grid-box {
        display: block;
    }
    .grid-child{
        margin-top: 20px;
    }
    #topnews .grid-left{
		padding-left:0;
	}
	#topnews .grid-right{
		padding-right:0;
	}
}
/* --------------------------------------------------------- */
/*	トップページ お知らせ  ****************************************/
/* --------------------------------------------------------- */
#topnews {
    padding-bottom: 100px;
    background-image: url(../images/topnews_bg_yellow.jpg);
    background-position: center;
    width: 100%;
}
#toppage h2 {
    padding-top: 100px;
    text-align: center;
    color: #b1a421;
    font-size: 4rem;
}
#toppage h2 + p {
    padding-top: 20px;
    padding-bottom: 50px;
    text-align: center;
}
#top-post h3{
    margin: 10px 0;
    padding: 10px 0;
    border-bottom: 1px solid #b1a421;
}
#top-post h3 img {
    height: 24px;
}
#top-post li{
    padding: 10px 0;
    margin-left: 25px;
    border-bottom: solid 1px #999;
}
.youtube{
    padding-left: 25px;
}
.youtube iframe{
    width: 100%;
    height: auto;
    aspect-ratio: 2/1;
}

/* 850px以下に適用されるCSS（タブレット用） */
@media screen and (max-width: 850px) {
    #top-post {
        margin: 20px;
    }
    #top-post li:nth-child(n+2) {
        display: none;
    }
    #toppage h2{
        padding-top: 75px;
        font-size: 3rem;
    }
    #toppage h2 + p {
        margin: 20px;
        text-align: left;
        padding-bottom: 20px;
    }
    #toppage h2 + p br{
        display: none;
    }
    #topnews {
        padding-bottom: 50px;
    }
}

/* --------------------------------------------------------- */
/*	トップページお知らせ（記事部分）  ************************/
/* --------------------------------------------------------- */
#top-post-news li{
    display: flex;
    flex-direction: row-reverse;
}

.post-thumbnail{
    position: relative;
    margin-left: 10px;
    width: 110px;
}
.post-text{
    flex: 1;
}
.post-thumbnail img{
    height: auto;
}
.post-date{
    font-size: 1.6rem;
    color: #666;
}
.post-title a{
    text-decoration: underline;
}

.mark {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.4rem;
    text-align: center;
    position: absolute;
    top: 0;
}


/* --------------------------------------------------------- */
/*	トップページ 印刷時にヘッダーが毎ページ印刷されてしまう  */
/* --------------------------------------------------------- */

@media print {
	.is-fixed #header-open {
		display: none;
	}
}
