@charset "utf-8";

body{display: grid;grid-template-rows: auto 1fr;grid-template-columns: 30% 1fr 15%;grid-template-areas:". header .""sidebar main ."". footer .";width: 100%;font-size: 0.8rem;letter-spacing: 0.2rem;}
/* カラム_メイン */
header,.contents{align-self: center;}
/*コンテンツ*/
.contents{padding: 3rem 3rem 2rem 3rem;clear:both;grid-area: main;}
/*ヘッダー*/
header {padding: 3rem 0 0;grid-area: header;}
header p {font-size: 1.2rem;}
header ul li {width: 4.5rem;height: 2.5rem;font-size:1.3em;}
/*サイドバー部分*/
aside{margin: 2rem 1rem;display: block;text-align:center;}
.category ul li{display: inline-block;margin:0 0.5em 0.5em 0;}
.category ul li:last-child{margin-right: 0;}
.category li{display: inline-block;font-size: 0.95rem;margin: 0 0.3em 0.5em 0;padding: 0.35em 0.5em;text-decoration: none;}
section{margin-top: 2rem;}
section h2{margin-bottom:1em;}
.sidebar{position: sticky;grid-area: sidebar;width: 80%;height: auto;margin: 0 0 0 3em;top: 12rem;justify-self: center;align-self: start;border-radius:0.5rem;}
/* 検索窓の幅調整 */
.queryinput{max-width:78%;text-align: left;}
.zlinks a {margin: 0 auto 0.5em;width: fit-content;}
/*固定用の記号*/
article.logstatus-fixed .comment:before{right: 20px;top: -30px;}

.nodata,
.nolist{
	margin-top: 2rem;
	line-height: 1.9;
}
.nodata,
.nolist{
       text-align:center;
}

/*投稿内容*/
.comment {
       padding: 0 1.5rem;
}


/* クイックポスト欄（スライドアップメニュー） */
.sliding-menu {
    position: fixed;
    bottom: -100%; /* 初期状態では画面下に隠れている */
    left: 0;
    width: 100%;
    height: 70%; /* メニューの高さ */
    padding: 1.25rem;
    overflow-y: auto;
    transition: bottom 0.5s ease; /* アニメーション */
    z-index: 1000;
    display: flex; /* Flexboxを使用 */
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
}

.sliding-menu.open {
    bottom: 0; /* 画面下から表示 */
}

.menu-icon.active + .sliding-menu {
    bottom: 0;
}

/*スライドアップメニュー内のテキストエリア*/
.sliding-menu .tegalogpost {
    padding: 0.8rem;
    border-radius: 0.7rem;
    width: 100%; /* 幅を100%に */
    height: 8rem !important;
    margin: 1rem 0;
    
}

.sliding-menu .tegalogpost textarea {
    width: 100%;
    height: 12.5rem; 
    border: 1px solid #ccc;
    padding: 0.7rem; 
    border-radius: 0.4rem;
    font-size: 1rem; /* フォントサイズを設定 */
    resize: none; /* テキストエリアのリサイズを無効にする */
}

.line-textarea {
    width: 100%;
}

/*スライドアップメニュー内の装飾ボタン*/
.decoBtns input[type=button] {
    border-radius: 0.2rem; 
    border: 1px dashed;
    margin: 0 0.2rem 0.1rem; 
    letter-spacing: 0.1rem;
}

span.catChecks label {
    margin-right: 0.3rem;
    font-size: 90%;
    letter-spacing: 0.1rem;
}

/*続きを読むボタン*/
a.readmorebutton {
    margin: 0.8rem auto;
    text-decoration: none;
    width: auto;
    text-align: center;
    padding: 0.3em 0.5em;
}
a.readmorebutton.readmoreclose {
    display: inline-block;
    margin: 0.8rem;
    text-decoration: none;
    width: auto;
    text-align: center;
    padding: 0.1em 0.5em;
}
/*フッター*/
footer {
    display: flex;
    justify-content: center;
    grid-area: footer;
    font-size: 0.8rem;
    margin: 0.8rem 0.8rem 4rem 0.8rem;
}

/* skin-wrapのボーダーデザイン */
.skin-wrap {
    position: relative; /* categoriesをボーダーの上に配置するためにrelativeを設定 */
}

/* categoriesのデザイン */
.skin-wrap .categories {
    position: absolute; /* skin-wrap内で絶対配置 */
    top: -15px; /* skin-wrapの上に配置 */
    left: 20px; /* skin-wrapの左からの距離 */
    padding: 5px 10px; /* 内側の余白 */
    z-index: 10; /* skin-wrapのボーダーより前面に表示 */
}
 
.side-item {
        padding: 0.8rem 2rem 1.3rem;
        display: flex;
        justify-content: center;
        font-size: 0.5rem;
}

.editlink {
      margin-left: 8px;
}

/*下部のカテゴリアイコン(駄目ならスタイルへ)*/
ul{
	padding: 0 0 0 0;
	list-style-type: none;
}

nav ul li{
       display: inline-block;
       margin:0 0.5em 0.5em 0;
}

nav ul li:last-child{
	margin-right: 0;
}

/*アコーディオンメニューの装飾*/
summary{
	font-weight: bold;
}
details.decorationO{
	border-radius:0.5rem;
	padding: 0.15em 0.5em;
	border:5px solid#5977b3;
}
details[open].decorationO{
	height:auto;
	border-radius:0.5rem;
	padding-bottom:4px;
}
.foldedarea{
	border-radius:0.5rem;
	padding: 0.5em 0.8em;
}

/*New！の表示編集*/
.newarticle{
        font-weight: 700;
	font-size: 1.8em;
	position: absolute;
	right: 10px;
	top: -15px;
	background:#ffa520;
	padding:0 5px 0 5px;
	color:#fff;
	border-radius:0.5em;
}

/* メニューバー奮闘中 */
/* div */
.zmenubar{
   background:transparent!important;
}

/* ul */
.zmenukinks{
   display:flex;
   justify-content:right;
   position: fixed;
   bottom: 2rem;     
   right: 1.5rem;
   z-index:1005;
}

/* li */
/* クイックポストのメニューアイコン */
.menu-icon {
    position: fixed;
    bottom: 5rem;
    right: 1.8rem;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001; /* メニューよりも前に表示←タグが原因？で埋もれる */
}

/*ページ上端下端移動*/
.scrollBtns a{
   display: inline-block;
   margin: 3px 0;
   padding: 0.4em 1.5em;
   border-radius: 0.5em;
   opacity: 0.7;
   text-decoration: none;
   text-align: center;
   border:solid 2px #5977b3;
}
.arrow{
   display:block;
   font-size:1.5em;
}

/* ハンバーガーメニューのアイコン消す */
.zhamburger_menu,.zhamburger_btn{
   display:none;
}

/* 画面下部のメニューを消す */
.contents aside{
	display:none;
}

.zlinks a {
    margin: 0 auto 0.5em!important;
}