
:root {
	--primary-color: #2c3e50;
	--accent-color: #999999;
	--bg-color: #f8f9fa;
	--text-color: #333;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	background-color: #f8f8f8;
	color: #444;
	line-height: 1.6;
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
}

header {
	background-color: #ffffff;
	text-align: left;
	padding: 20px 20px 10px;
	border-bottom: 1px solid #eee;
}

header h1 {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 10px;
}
        
header p {
	color: #666;
	font-size: 1rem;
	text-align: right;
	padding: 10px;
}

footer {
	text-align: center;
	padding: 30px 0;
	color: #777;
	font-size: 0.9rem;
	border-top: 1px solid #eee;
	margin-top: 40px;
}


nav {
	text-align: center;
	margin: 20px 0;
	font-size:14x;
}

nav a {
	color: var(--accent-color);
	text-decoration: none;
	margin: 0 15px;
	font-weight: 500;
}

a {
    text-decoration: none;
	color: var(--accent-color);
}

nav a:hover {
	text-decoration: underline;
}

.main-content {
	display: flex;
	gap: 40px;
}

.posts {
	flex: 3;
}

.sidebar {
	flex: 1;
	display: block;
}


/*------カレンダー-------*/

#cal{
	width: 175px;
	margin-bottom: 10px;
}

#cal td{
	text-align: center;
	font-size: 12px;
}

#cal .w{
	width: 25px;
	font-weight: bold;
}

#mlink_last,
#mlink_next{
	font-weight: bold;
	position: relative;
}

#mlink{
	font-weight: bold;
}


/*------アーカイブ等-------*/

.sidebar-widget {
	background: white;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
	margin-bottom: 10px;
	color: var(--primary-color);
}

/*------記事-------*/


.post {
	background: white;
	border-radius: 8px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}



.post-top>p{
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.post-top>p::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(
        to bottom,
        transparent,
        white
    );
}

.post h2 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: var(--primary-color);
}

.post h2 a {
	color: var(--primary-color);
}


.post-meta {
	color: #777;
	font-size: 0.9rem;
	margin-bottom: 20px;
}

.post>p>img.icon{
	vertical-align: middle;
	position: relative;
	bottom: 2px;
}

.post>p>img.up{
	border-radius: 6px;
	margin: 10px 0;
	max-width: 100%;
	height: auto;
}


.post p {
	margin-bottom: 20px;
}



#navi{
	text-align: center;
	margin-bottom: 8px;
	display: flex;
}

#navi_prev{
	width: 50%;
	text-align: left;
}

#navi_next{
	width: 50%;
	text-align: right;
}

.res{
	margin-bottom: 10px;
}

.res h2{
	font-size: 1.2rem;
}

/*------ページリンク-------*/

ul.pagelink{
	list-style-type: none;
	margin: 0;
}

ul.pagelink li{
	float: left;
}

ul.pagelink a,
ul.pagelink li.current{
	display: block;
	width: 35px;
	line-height: 2.0;
	text-align: center;
	text-decoration: none;
	border-style: solid;
	border-color: #bebebe;
	border-width: 1px;
	margin-right: 5px;
	padding:1px;
	border-radius: 3px;
	background-color: #FFFFFF;
}

ul.pagelink a:hover{
	background-color: #F0F0F0;
}

ul.pagelink:after{
	display: block;
	clear: both;
	content: '';
}

ul.pagelink li.current{
	font-weight:bold;
}


div#page {
	position: relative;
	overflow: hidden;
}

div#page ul {
	float:left;
	left:50%;
	position:relative;
}

div#page li {
	float:left;
	left:-50%;
	position:relative;
}


/*------その他-------*/

#result{
	position: absolute;
	border-style: solid;
	border-width: 1px;
	width: 250px;
	height: 150px;
	border-color: #999999;
	background-color: #ffffff;
	word-break: break-all;
	visibility: hidden;
	padding-top: 10px;
}

#count{
	margin-top: 10px;
}


#delfo{
	display: none;
}

.mb10{
	margin-bottom: 10px;
}

.s{
	font-size:11px
}

.s2{
	font-size:11px;
	font-weight:bold
}

.b{
	font-weight:bold
}

.hissu{
	color: #990000;
	font-weight: bold;
}

ul{
	list-style: none;
	padding: 0;
	font-size:14px;
}

input[type=text],
input[type=password],
textarea{
	border: 1px solid #dedede;
	border-radius: 3px;
	margin-bottom: 1px;
}

input{
	height: 34px;
}

input[type=submit]{
	padding: 0 15px;
}

p{
	font-size:14px;
	padding-bottom: 4px;
}

/*------スマートフォン用------*/

@media (max-width: 600px) {

	img{
    max-width: 100%;
    height: auto;
    width /***/:auto;
    }
	
	.main-content {
		display: block;
	}

	.posts {
		width: 100%;
	}

	.sidebar {
		width: 100%;
	}

	.post>p>img.up{
		width: 100%;
		height: auto;
	}

	#cal{
		width: 100%;
	}

	#cal td{
		font-size: 18px;
	}

	#cal .w{
		width: 25px;
	}

	#page{
		margin-bottom: 20px;
	}
	
	input[type=text],
	input[type=password],
	textarea{
		width: 100%;
	}
}
