@charset "utf-8";
/* CSS Document */

#container {
	width: 100%;
}

#header {
	width: 100%;
    display: flex;
    justify-content: space-between; /* 左右に要素を配置 */
    align-items: center; /* 縦方向の中央揃え */
    padding: 0;
    background-color: #ffeb40;
    overflow: hidden; /* はみ出し防止 */
	height: 80px;
}

#header h1 {
    flex: 1; /* タイトル部分が幅を自動調整 */
    margin: 0;
    padding: 0 10px;
    white-space: nowrap; /* 改行を防止 */
}

#header h1 img {
    max-width: 100%; /* タイトル画像がヘッダー内に収まるようにする */
    height: auto;
}

#header img.discount {
    max-width: 30%; /* 割引画像の幅を調整 */
    height: auto;
    white-space: nowrap; /* 改行を防ぐ */
	padding: 0 10px;
}


#footer {
	margin-top: 1px;
	width: 100%;
	height: 40px;
	background-color: #ffeb40;
	overflow:: hidden;
	
	position: relative;
}

#footer .KLOGO {
	
	position: absolute;
	top: 10px;
	left: 15px;
}

#footer .copyright {
	width: 300px;
	text-align: center;
	font-size: 80%;
	
position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  margin: auto;
}


.nengaIllust img {
	width: 100%;
}

.nengaIllust ul.item {
  display: -webkit-flex; /* Safari */
	-js-display: flex;
  display: flex;

	-webkit-flex-direction: row; /* Safari */
  flex-direction: row;

	-webkit-flex-wrap: wrap; /* Safari */
  flex-wrap: wrap;
}

.nengaIllust ul.item li {
	
	box-sizing: border-box;	
	
	margin-bottom:-1px;
	border-top: 1px solid #aaaaaa;
	border-bottom: 1px solid #aaaaaa;
	border-left: 1px solid #aaaaaa;
	list-style-type:none;
	
	-webkit-flex-grow: 0; /* Safari */
  flex-grow: 0;

	-webkit-flex-shrink: 0; /* Safari */
  flex-shrink: 0;

	-webkit-flex-basis: auto; /* Safari */
  flex-basis: auto;
}

#inlineWindow {
	display: none;
}

#nengaOrderPict { /* はがきデザイン画像 */
	margin: 20px 50px 5px 50px;
	width: auto;
	max-height: 600px;
	border: 1px solid #aaaaaa;
}

#nengaIllustrator { /* アーティスト名 */
	margin: 0 50px 0 50px;
	font-size: 80%;
	text-align: right;
}

#nengaNote { /* あいさつ文の有無 */
	margin-top: 10px;
	text-align: center;
}

#orderButtun {
	display: block;
	height: 50px;
	margin-top: 10px;
	text-align: center;
	overflow: hidden;
	background-image: url(../png/order-buttun-bg.png);
}

#menu {
	padding: 5px;
	background-color: #000;
}

#menu li {
	display: inline;
	padding: 0 10px; 
	border-right: 1px solid #fff;
}

#menu li a {
	color: #fff;
	text-decoration: none;
}

#menu li a:hover {
	text-decoration: underline;
}

#greet {
	margin-bottom: 20px;
}

#greet p {
	font-size: 120%;
	line-height: 200%;
	text-align: center;
}

#pagetop{
	width: 25px;
	height: 100px;
	
	position:fixed;
	right: 0;
	bottom:41px;
	cursor:pointer;
}



/* ここからメディアクエリ */

@media (min-width: 1801px){
	.nengaIllust ul.item li {
		width: 10%;
	}

.nengaIllust ul.item li:last-child {
	width: calc(10% + 1px);
	border-right: 1px solid #aaaaaa;
	}
}

@media (min-width: 1281px) and (max-width: 1800px){
	.nengaIllust ul.item li {
		width: 12.5%;
	}

.nengaIllust ul.item li:last-child {
	width: calc(12.5% + 1px);
	border-right: 1px solid #aaaaaa;
	}
}

@media (min-width: 800px) and (max-width: 1280px){
	.nengaIllust ul.item li {
		width: 25%;
	}
	.nengaIllust ul.item li:last-child {
		width: calc(25% + 1px);
		border-right: 1px solid #aaaaaa;
		margin-right: -1px;
	}
}

@media (min-width: 500px) and (max-width: 799px){
	
    #header {
        padding: 5px;
		height: 60px;
    }

    #header h1 {
        flex: 1;
        padding: 0 5px;
    }

    #header img.discount {
        max-width: 40%; /* 割引画像の幅を調整 */
    }
	.nengaIllust ul.item li {
		width: 33.3%;
	}
.nengaIllust ul.item li:last-child {
	width: calc(33.3% + 1px);
	border-right: 1px solid #aaaaaa;
	margin-right: -1px;
	}
	#nengaOrderPict {
		max-height: 800px;
	}
	#greet p {
		padding: 0 50px 0 15px;
		font-size: 100%;
		line-height: 180%;
		text-align: justify;
		text-justify: inter-ideograph;
	}
}

@media (max-width: 499px){
	
    #header {
        padding: 5px;
		height: 40px;
    }

    #header h1 {
        flex: 1;
        padding: 0 5px;
    }

    #header img.discount {
        max-width: 40%; /* 割引画像の幅を調整 */
    }
	#footer .copyright {
		width: 100%;
		text-align: right;
	}
	.nengaIllust ul.item li {
		width: 50%;
	}
.nengaIllust ul.item li:last-child {
	width: calc(50% + 1px);
	border-right: 1px solid #aaaaaa;
	margin-right: -1px;
	}
	#nengaIllustrator { /* アーティスト名 */
		font-size: 60%;
	}
	#nengaNote { /* あいさつ文の有無 */
		font-size: 80%;
	}
	#nengaOrderPict {
		margin: 20px 50px 5px 50px;
		max-height: 350px;
	}
	#orderButtun img {
		margin-top: 9px;
		width: 200px;
	}
	#menu li a {
		font-size: 80%;
	}
	#greet p {
		padding: 0 15px;
		font-size: 80%;
		line-height: 160%;
		text-align: justify;
		text-justify: inter-ideograph;
	}
}


