/*知識一覧ｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/
.knowledge-list{
	position: relative;
	width: 90%;
	margin: 0 auto;
	padding: 5% 0;
	
	font-size: 1.2vw;
}
.knowledge-list  li {
	display: flex;
	padding: 2%;
	border-bottom: 1px solid #ccc;
	list-style: none;
}

.knowledge-list  a {
	display: flex;
	width: 100%;
	text-decoration: none;
	color: black;
}

.knowledge-list  p{
	display: flex;
	align-items: center;
	height: 80%;
	margin-left: 3%;
	background-color: salmon;
	
	font-size: 0.8vw;
}

.knowledge-list a:hover {
	color: #0bd;
}

.knowledge-list  li span:first-child {
	width: 80%;
	margin-right: 5%;
}

.knowledge-list li span:last-child {
	flex: 1;
}

.knowledge-list #pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 5%;
}
.knowledge-list #pagination button {
	border: none;
	padding: 15px 0;
	cursor: pointer;
	min-width: 40px;
	text-align: center;
	border-radius: 5px;
}

.knowledge-list #pagination button:hover {
	color: #0bd;
}

.knowledge-list #pagination #paginateButton {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/*スマホ版*/
@media(max-width:750px) and (orientation: portrait){
	.knowledge-list{
		font-size: 2.5vw;
	}
	.knowledge-list  li {
		padding: 4%;
	}
}

/*全体------------------------*/
html {
	font-size: 100%;
}

body{
	background-image: url("../image/top-back.jpg")
/*	scroll-behavior: smooth;*/
}

a{
	text-decoration: none;
}

img{
	max-width:100%;
}
ul{
	text-decoration: none;
	list-style:none;
}

.flex{
	display:flex;
}



/* サイドバーレイアウト */

main {
	position: fixed;
    width: 7%;
    height: 100vh;
    top: 0;
    left: 0;
	background-color: #FFFFFF;
	background-image: url("../image/top-back.jpg");
	background-size: cover;
    box-shadow: 0px 0px 4px 0px #666;
	z-index: 100;
}
main img {
	width: 50px;
	margin-left: 5px;
	margin-top: 20px;
}

/*サイドバースマホ版*/
@media(max-width:750px) and (orientation: portrait){
	main, .sidebar {
		display: none;
	}
}


/*全体ｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/

.print_paper{
	position: absolute;
	width: 93%;
	left: 7%;
	overflow: auto;
}

@media(max-width:750px) and (orientation: portrait){
	.print_paper{
		position: absolute;
		width: 100%;
		left: 0px;
		overflow: auto;
	}
}

/*タイトルｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/
h1.title{
	display: flex;
	position: relative;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 8vh;
	background-color: lightblue;
	font-size: 2.5vw;
	color: white;
	text-shadow: 1px 1px 1px #808080;
	text-align: center;
}

@media(max-width:750px) and (orientation: portrait){
	h1.title{
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: 100%;
	height: 4vh;
	background-color: lightblue;
	font-size: 2.5vw;
	color: white;
	text-shadow: 1px 1px 1px #808080;
	text-align: center;
	}
}

/*商品一覧ｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰｰ*/

.item_category{
	display: flex;
  	flex-wrap: wrap;
	gap: 2%;
}

.item_category h1 {
	position: relative;
	width: 80vw;
	margin: 5% auto;
	margin-bottom: -1rem;
	background-color: peru;
	font-size: 2vw;
	color: white;
	text-align: center;
}

.itemlist {
	display: grid;
	gap: 1.5rem; /* アイテム同士の間隔 */
	margin: 2rem;
	grid-template-columns: repeat(3, 1fr);
}


.item {
	flex: 1 1 calc(50% - 2rem); /* 2列分の幅に調整 */
	box-sizing: border-box;
	background-color:antiquewhite; /* 任意：背景色 */
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0px 0px 4px 0px #666;
}

.item h1 {
	font-size: 1.5vw;
	margin-bottom: 0.5rem;
	text-align: center;
	border-top: 2px solid peru;
	border-bottom: 2px solid peru;
	color: peru;
}

.item-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

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

.item-content p {
	font-size: 1.5vw;
	line-height: 1.6;
	text-align: justify;
}


/* レスポンシブ対応：スマホでは1列表示 */
@media screen and (max-width: 750px) {
 	.itemlist {
	  display: grid;
	  grid-template-columns: repeat(2, 1fr);
  	}
}

.right-footer-all {
	position: fixed;
	bottom: 0;
}