@charset "utf-8";
/* CSS Document */

@font-face {
	font-family: hannari;
	src: url('../font/Hannari.otf') format("opentype");
}


body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td,
object {
	margin: 0;
	padding: 0;
}

body {
	width: 100%;
	text-align: center;
	font-size: 12px;
	line-height: 1.3;
	font-family: "qMmpS Pro W3", "Hiragino Kaku Gothic Pro", "CI", Meiryo, Osaka, "lr oSVbN", "MS PGothic", sans-serif;
	background-image: url(../images/top_back.jpg);
}


img {
	image-rendering: auto;
}

div#wrapper {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
	padding-top: 50px;
	background-color: #fff;
	position: relative;
	box-sizing: border-box;
}


#menu-box {
	width: 100%;
	background-color: #AD292B;
	height: 50px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	display: flex;
	justify-content: center;
}


.toggle {
	display: block;
	width: 100%;
	max-width: 1000px;
	background-color: #AD292B;
	-moz-transition: all 0.2s cubic-bezier(0.52, 0.48, 0.15, 0.97);
	-o-transition: all 0.2s cubic-bezier(0.52, 0.48, 0.15, 0.97);
	-webkit-transition: all 0.2s cubic-bezier(0.52, 0.48, 0.15, 0.97);
	transition: all 0.2s cubic-bezier(0.52, 0.48, 0.15, 0.97);
	/*box-shadow: inset 0px -2px 0px 0px rgba(0, 0, 0, 0.1);*/
}

.toggle a {
	display: flex;
	flex-direction: column;
	position: relative;
	line-height: 1.0;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	letter-spacing: 0;
	width: 35px;
	height: 40px;
	align-content: space-between;
	margin: 10px auto 0 10px;
}

.toggle a span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #fff;
	margin-bottom: 5px;
	font-size: 10px;
	transition: .3s;
}

.toggle a span.menu-text {
	background-color: transparent;
}

.toggle a span.close-text {
	display: none;
	background-color: transparent;
}

.toggle.open {
	overflow: hidden;
}

.toggle.active .icon-bar:nth-of-type(1) {
	transform: translate(0px, 8px) rotate(-45deg);
}

.toggle.active .icon-bar:nth-of-type(2) {
	opacity: 0;
}

.toggle.active .icon-bar:nth-of-type(3) {
	transform: translate(0px, -8px) rotate(45deg);
}

.toggle.active .menu-text {
	display: none;
}

.toggle.active .close-text {
	display: block;
}

ul.menu {
	display: none;
	position: fixed;
	top: 50px;
	width: 100%;
		max-width: 1100px;
	height: fit-content;
	background-color: #fff;
	z-index: 1100;
	list-style: none;
	padding: 20px 0;
	overflow-y: auto;
	box-sizing: border-box;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: space-between;
}

ul.open {
	display: flex;
}

.d-btn li {
	width: 23%;
	height: 175px;
	border-radius: 10px;
	background-color: #FBF5DF;
	box-sizing: border-box;
	padding: 0;
	margin-bottom: 1rem;
	display: flex;
	justify-content: space-around;
	align-items: center;
}
@media screen and (max-width:768.98px) {
		.d-btn li {
	width: 32%;
	height: 175px;
	overflow: hidden;
}
ul.menu::after {
	content: "";
	width: 32%;
	display: block;
}
}

@media screen and (max-width:767.98px) {
	.d-btn li {
	width: 48%;
	height: 110px;
}
}

.d-btn li a {
	width: 100%;
	height: 100%;
	position: relative;
}

.d-btn li a img {
	width: 50%;
	height: auto;
	box-sizing: border-box;
	padding: 0.5rem 0.5rem 0 0.5rem;
}

.d-btn li a img:nth-child(2) {
	padding-left: 0;
}

.d-btn li:nth-of-type(2) a img:nth-of-type(1) {
	width: 55%;
	height: auto;
	box-sizing: border-box;
	position: absolute;
	top: 0.5em;
	left: 0;
	padding: 0 0 0 0.5rem;
}

.d-btn li:nth-of-type(2) a img:nth-of-type(2) {
	width: 55%;
	height: auto;
	box-sizing: border-box;
	position: absolute;
	bottom: 0.5em;
	right: 0;
	padding: 0 0.5rem 0 0;

}

.d-btn li a p {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #FFF;
	font-size: 1.25rem;
	width: 100%;
	border-radius: 0 0 7px 7px;
}

.d-btn li:nth-of-type(1) a p {
	background-color: #29AAE3;
}

.d-btn li:nth-of-type(2) a p {
	background-color: #29AAE3;
}

.d-btn li:nth-of-type(3) a p {
	background-color: #D80001;
}

.d-btn li:nth-of-type(4) a p {
	background-color: #009345;
}

.d-btn li:nth-of-type(5) a p {
	background-color: #000000;
}

.d-btn li:nth-of-type(6) a p {
	background-color: #662E91;
}

.d-btn li:nth-of-type(7) a p {
	background-color: #F15A25;
}

.d-btn li:nth-of-type(8) a {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #9e9e9e;
	border-radius: 10px;
	color: #fff;
	text-align: center;
	font-size: 1.25rem;
	text-decoration: none;
}

.d-btn li:nth-of-type(8) a:hover{
	background-color: #AD292B;
}

.d-btn li a p i {
	margin-left: 0.5rem;
}

.d-btn::after {
	content: "";
	width: 48%;
}

@media screen and (max-width:767.98px) {
	.d-btn li a p {
		font-size: 0.8rem;
	}

	ul.d-btn::after {
		content: "";
		width: 45%;
		display: block;
	}

	a.cp_btn {
		width: 100%;
		padding: 0.8em 0.2em;
	}

}


h1 {
	width: 70%;
	margin: 1rem auto 2rem auto;
	background: #fef4f4;
	font-size: 1.5rem;
	color: #AD292B;
	-webkit-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1), 15px 15px 0 -5px #fef4f4, 15px 15px 1px -4px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1), 15px 15px 0 -5px #fef4f4, 15px 15px 1px -4px rgba(0, 0, 0, 0.2);
	box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1), 15px 15px 0 -5px #fef4f4, 15px 15px 1px -4px rgba(0, 0, 0, 0.2);
	padding: 8px;
	font-family: hannari;
}

h1 img {
	margin-left: 5px;
	margin-right: 3px;
	margin-bottom: -3px;
}

.bold {
	font-weight: bold;
}

/* 一覧ページ冒頭の使い方案内(タップで拡大・ハートで気になるリスト・注文への導線) */
.usage-guide {
	list-style: none;
	width: 100%;
	max-width: 640px;
	margin: 0 auto 2rem auto;
	padding: 10px 20px;
	background: #fef6f6;
	border-radius: 6px;
	box-sizing: border-box;
	text-align: left;
}

.usage-guide li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 5px 0;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.usage-guide li i {
	color: #AD292B;
	width: 16px;
	text-align: center;
	flex-shrink: 0;
	font-size: 14px;
	margin-top: 0.2em;
}

.usage-guide li span {
	flex: 1;
	min-width: 0;
}

@media screen and (max-width:798.98px) {

	div#contents {
		margin: 0 auto;
		padding: 0px;
		width: 100%;
		max-width: 1100px;
		text-align: center;
	}

	div#contents h2 {
		margin: 0px 0px 0px 10px;
		/*margin:0px 0px 0px 20px;*/
		padding: 5px 0px 5px 10px;
		border-left: solid 5px #FC0;
		font-size: 18px;
		font-weight: normal;
	}

	div#contents p {
		margin-top: 30px;
		margin-right: 0px;
		margin-left: 12px;
		margin-bottom: 30px;
		/*margin:30px 0px 30px 20px;*/
		padding: 0px;
	}
}

ul.thumb_t {
	list-style: none;
	margin: 0 auto 5rem auto;
	padding: 0px;
	width:100%;
	background-color: white;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

ul.thumb_t li {
	margin: 10px auto;
	padding: 0px;
	position: relative;
	width: 15%;
	height: 240px;
}

ul.thumb_t li.y{
	width: 23%;
	height: 164px;
}


ul.thumb_t li a:not(.thumb-order-btn) {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	transition: transform 0.3s ease;
	/* ハート(左上)を拡大の基点にする。centerだと拡大するほどハートも
	   外側(左上方向)へ移動してしまい、隣の絵柄の枠に入ってそちらが
	   ホバー判定されてしまう。top leftにすればハートの位置は動かず、
	   画像だけが右下方向に大きくなる */
	transform-origin: top left;
}

ul.thumb_t li img {
	width: 100%;
	height:auto;
	border: 1px solid #999;
	padding: 0px;
	background: #f0f0f0;
	position: absolute;
	left: 0;
	top: 0;
	box-sizing: border-box;
	-ms-interpolation-mode: bicubic;
}
ul.thumb_t li:hover {
	z-index: 10;
}

/* ホバーでの自動拡大はPC(画面幅769px以上)のみ。
   768px以下は下の拡大ボタン(.thumb-zoom-btn)によるタップ拡大に一本化 */
@media screen and (min-width:769px) {
	ul.thumb_t li:hover a:not(.thumb-order-btn) {
		transform: scale(1.8);
		/* 拡大はアニメーションさせず一瞬で切り替える。
		   ゆっくり拡大するとハート(中の子要素)も一緒に動き続けるため、
		   移動中のハートを追いかけてクリックしようとした際にカーソルが
		   隣の絵柄の枠に入ってしまい、そちらがホバー判定されてしまう問題があった。
		   縮小時(ホバー解除時)は上のtransitionでなめらかに戻る */
		transition-duration: 0s;
	}

	/* 拡大中は他の絵柄のハートを隠し、どれが今の絵柄のハートか迷わないようにする */
	ul.thumb_t:hover .thumb-fav-btn {
		opacity: 0;
		pointer-events: none;
	}
	ul.thumb_t li:hover .thumb-fav-btn {
		opacity: 1;
		pointer-events: auto;
	}
}

.model-number {
	position: absolute;
	bottom: 5px;
	left: 0;
	width: 100%;
	background-color: rgba(204, 0, 0, 0.8);
	color: white;
	text-align: center;
	padding: 5px 0;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 11;
}

ul.thumb_t li.y .model-number {
	bottom: -1px;
}

ul.thumb_t li a:hover .model-number {
	opacity: 1;
}

/* サムネイル拡大プレビュー(タブレット以下でのみ表示。PCはホバー拡大を使うため非表示) */
.thumb-zoom-btn {
	display: none;
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
	z-index: 12;
	border: none;
	padding: 0;
	cursor: pointer;
}

@media screen and (max-width:768.98px) {
	.thumb-zoom-btn {
		display: flex;
	}
}

/* 一覧の時点で拡大せずに注文できるボタン(タブレット・スマホのみ)。
   はがき画像に重ねず、画像の下に独立した行として配置する。
   品番表示(.model-number)は非表示にして、品番はこのボタンの中に小さく一緒に表示する */
.thumb-order-btn {
	display: none;
	text-decoration: none;
	background: rgba(164, 43, 43, 0.92);
	color: #fff;
	text-align: center;
	border-radius: 3px;
	cursor: pointer;
	line-height: 1.5;
	padding: 1px 2px;
	font-size: 14px;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.thumb-order-btn i {
	margin-right: 2px;
}

@media screen and (max-width:768.98px) {
	/* 型番の半透明表示は絵柄と注文ボタンの距離感を混乱させるのでスマホでは消す
	   (品番は.thumb-order-btnの中に表示済み) */
	.model-number {
		display: none;
	}

	.thumb-order-btn {
		display: block;
		position: static;
		width: 100%;
		box-sizing: border-box;
		margin-top: 4px;
	}
}

.thumb-zoom-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto;
}

.thumb-zoom-frame {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.thumb-zoom-frame img {
	display: block;
	max-width: 100%;
	max-height: 62vh;
	border: 4px solid #fff;
	background: #fff;
	box-sizing: border-box;
}

.thumb-zoom-footer {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 100%;
}

.thumb-zoom-order-row {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
}

.thumb-zoom-overlay .thumb-zoom-code {
	color: #fff;
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 10px;
	flex-shrink: 0;
}

.thumb-zoom-overlay .thumb-zoom-order {
	display: inline-block;
	background: #A42B2B;
	color: #fff;
	padding: 10px 28px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
}

/* ハートは注文ボタンの横に配置。見づらかったので大きめ・はっきりした色にする */
.thumb-zoom-fav-btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: #999;
	font-size: 22px;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.thumb-zoom-fav-btn.is-active {
	color: #E0143C;
}

.thumb-zoom-frame .thumb-zoom-fav-btn.is-active {
	color: #E0143C;
}

/* 閉じるボタンは絵柄右上の×ではなく、注文ボタンの下に置いてタップしやすくする */
.thumb-zoom-footer .thumb-zoom-close {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	padding: 8px 28px;
	border-radius: 4px;
	font-size: 0.9rem;
	cursor: pointer;
}

/* 前後の絵柄に切り替える矢印(画面端に固定、スワイプにも対応) */
.thumb-zoom-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #333;
	border: none;
	font-size: 18px;
	cursor: pointer;
	z-index: 2001;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.thumb-zoom-prev {
	left: 12px;
}

.thumb-zoom-next {
	right: 12px;
}

@media screen and (max-width:480px) {
	.thumb-zoom-nav {
		width: 36px;
		height: 36px;
		font-size: 15px;
	}
	.thumb-zoom-prev {
		left: 6px;
	}
	.thumb-zoom-next {
		right: 6px;
	}
}

/* サムネイル左上の「気になる」ハートボタン */
.thumb-fav-btn {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #bbb;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	/* li:hover の z-index(10)より低くする。
	   これより高いとズームしていない隣の絵柄のハートが、
	   ズーム中の絵柄の上に突き抜けて見えてしまう */
	z-index: 5;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.thumb-fav-btn.is-active {
	color: #E0143C;
	transform: scale(1.15);
}

/* 画面下部固定の「気になる絵柄」トレイ */
.favorite-tray {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100%;
	max-width: 900px;
	z-index: 1500;
	font-size: 14px;
	display: none;
}

.favorite-tray.has-items {
	display: block;
}

.favorite-tray-handle {
	display: block;
	width: 100%;
	background: #A42B2B;
	color: #fff;
	border: none;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	text-align: center;
	border-radius: 8px 8px 0 0;
	box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.favorite-tray-handle i.fa-heart {
	margin-right: 6px;
}

.favorite-tray-caret {
	margin-left: 8px;
	transition: transform 0.2s ease;
}

.favorite-tray.is-open .favorite-tray-caret {
	transform: rotate(180deg);
}

.favorite-tray-panel {
	display: none;
	background: #fff;
	border: 1px solid #A42B2B;
	border-top: none;
	max-height: 60vh;
	overflow-y: auto;
	padding: 10px;
	box-sizing: border-box;
}

.favorite-tray.is-open .favorite-tray-panel {
	display: block;
}

.favorite-tray-list {
	list-style: none;
	margin: 0 0 10px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 14px;
}

.favorite-tray-list li {
	position: relative;
}

.favorite-tray-item {
	display: block;
	text-decoration: none;
	color: #333;
	text-align: center;
	font-size: 13px;
}

.favorite-tray-item img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #999;
	margin-bottom: 4px;
}

.favorite-tray-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #666;
	color: #fff;
	border: none;
	line-height: 1;
	font-size: 13px;
	cursor: pointer;
}

.favorite-tray-clear {
	display: block;
	margin: 0 auto;
	background: none;
	border: 1px solid #999;
	color: #666;
	padding: 4px 14px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
}

@media screen and (max-width:480px) {
	.favorite-tray {
		max-width: 100%;
	}
}

@media screen and (max-width:768.98px) {
/* li を縦並びのflexにして、はがき画像(<a>)の下に注文ボタンを積む。
   <a>の高さは固定pxではなくaspect-ratio(画像の実寸比率)で決めるので、
   画面幅が変わっても画像と箱の比率が常に一致し、隙間もクリップも出ない */
ul.thumb_t li {
	width: 24%;
	height: auto;
	margin-bottom: 32px;
	display: flex;
	flex-direction: column;
}

ul.thumb_t li a:not(.thumb-order-btn) {
	height: auto;
	aspect-ratio: 675 / 1000;
	flex-shrink: 0;
	overflow: hidden;
}

ul.thumb_t li.y{
	width: 33%;
	height: auto;
	margin-bottom: 32px;
}

ul.thumb_t li.y a:not(.thumb-order-btn) {
	height: auto;
	aspect-ratio: 1000 / 675;
}

}

@media screen and (max-width:767.98px) {
ul.thumb_t li {
	width: 45%;
	height: auto;
}

ul.thumb_t li.y{
	width: 45%;
	height: auto;
}

}

/*footer*/
/*footer*/
#footer {
	text-align: center;
	width: 100%;
	padding: 0px;
	background-color: #d3d3d3;
	margin-top: 50px;
}

.copyright {
	width: fit-content;
	height: 52px;
	margin: 0 auto;
	padding: 0px;
	display: flex;
	align-items: center;
}

.copyright a {
	margin-left: 1em;
}

#footer a {
	color: #666666;
}

#footer a:hover {
	color: #f96;
}

@media screen and (max-width:640px) {
	#footer {
		width: 100%;
		margin-top: 100px;
	}

	.copyright {
		flex-direction: column-reverse;
		height: 60px;
	}

	.copyright p {
		font-size: 12px !important;
		margin-bottom: 5px;
	}

	.copyright a {
		margin-left: 0;
	}

	.copyright a img {
		height: 25px;
		width: auto;
		margin-bottom: 5px;
	}
}
.toggle p {
	display: none;
}


.sp {
	display: none;
}



@media screen and (max-width:798.98px) {
	.sp {
		display: block;
	}

	.pc {
		display: none;
	}

	.none_sp {
		display: none;
	}

	div,
	dl,
	dt,
	dd,
	ul,
	ol,
	li,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	pre,
	form,
	fieldset,
	input,
	textarea,
	p,
	blockquote,
	th,
	td {
		font-size: 15px;
	}

	h2 {
		width: 100%;
		font-size: 48px;
	}

	h2 img {
		width: 60px;
	}


	#footer {
		width: 100%;
		margin-top: 100px;
	}

	.copyright {
		flex-direction: column-reverse;
		height: 60px;
	}

	.copyright a {
		margin-left: 0;
	}

	.copyright a img {
		height: 25px;
		width: auto;
		margin-bottom: 5px;
	}
}

@media screen and (max-width:767.98px) {
.none_ssp {
	display: none;
}
}
