/* IMPORT RESET ================================================== */
@import url("sanitize.css");
/* WEB FONT ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css");
/* LAYOUT ======================================================== */
/*実際に適用するレイアウトパターンを直下のcssディレクトリにコピーして読むこむ*/
@import url("product_c.css");
@import url("event_b.css");
/* LinkBtn ======================================================== */
/*使用するボタンのスタイルをコピーしてstyle.cssに貼り付け
　※その際、下記の読み込みは削除*/
@import url("linkbtn.css");

/* 変数設定 ======================================================== */
/*共通のサイズや色を変数で設定
　変数を使う時は数値で入れる箇所を var(--red) のように記載*/
:root {
	/*文字サイズ*/
	--small: 1.2rem;
	/*75%*/
	--medium: 1.6rem;
	/*100%*/
	--large: 2rem;
	/*125%*/
	--x-large: 2.4rem;
	/*150%*/
	/*色*/
	--red: #c00;
	--blue: #039;
	--mallcolor: #b60081;
	/*カテゴリごとのボタン／枠の背景色*/
	--cat01: #8E3038;
	/* 大人の贈り物 */
	--cat02: #24634D;
	/* サンタからの贈り物 */
	--cat03: #B3843D;
	/* クリスマスグルメ */
	--cat04: #375D60;
	/* イベント情報 */
}

/* STYLES ======================================================== */
/* ルートのフォントサイズを10pxに設定（1rem=10px）*/
html {
	font-size: 62.5%;
}

/* bodyのフォントサイズはfont-m（16px）と同じ */
body {
	font-size: var(--medium);
}

/* MEMO ++++++++++++++++++++++++++++++++
  フォントサイズはremで指定すること
  例）10pxは1rem、12pxは1.2rem
+++++++++++++++++++++++++++++++++++++ */
.font-s {
	font-size: var(--small);
}

.font-m {
	font-size: var(--medium);
}

.font-l {
	font-size: var(--large);
}

.font-xl {
	font-size: var(--x-large);
}

/*文字色*/
.font-red {
	color: var(--red);
}

.font-blue {
	color: var(--blue);
}

.font-mcolor {
	color: var(--mallcolor);
}

* {
	box-sizing: border-box;
}

body {
	font-family: "Zen Kaku Gothic New", sans-serif;
	margin: 0;
	padding: 0;
	background-image: url("../img/bg-pc.jpg");
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
}

@media screen and (max-width: 767px) {
	body {
		background-image: url("../img/bg-sp.jpg");
		background-size: 375px auto;
		background-repeat: repeat;
		background-position: center top;
		background-attachment: scroll;
	}
}

header {
	h1 {
		padding: 10px;
		margin: 0;
		text-align: center;
		z-index: 10;
	}
}

main {
	section {
		padding: 2rem;
		margin: 10px;
		border-radius: 10px;
		box-shadow: 2px 2px 5px 0px rgba(121, 121, 121, 0.4);

		h2 {
			color: #fff;
			text-align: center;
		}
	}
}

@media (min-width: 1100px) {
	header {
		position: fixed;
		top: 50%;
		transform: translateY(-50%);
		left: 0;
		width: calc(50vw - 230px);

		h1 {
			img {
				max-width: 750px;
			}
		}
	}

	main {
		max-width: 460px;
		margin: 10px auto;
	}
}

@media (768px <=width < 1100px) {
	.container {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}

	header {
		h1 {
			position: fixed;
			top: 50%;
			transform: translateY(-50%);
			width: 350px;
		}
	}

	main {
		width: calc(100% - 420px);
		margin: 0 80px 10px 10px;
	}
}

/* =====================================
   フッター
===================================== */
footer {
	background: transparent;
	color: #fff;
	text-align: center;
	padding: 30px 15px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.9),
		0 2px 8px rgba(0, 0, 0, 0.7);
}

/* PC：中央カラムと同じ幅 */
@media screen and (min-width: 1100px) {
	footer {
		width: 460px;
		max-width: 100%;
		margin: 0 auto;
	}
}

/* タブレット：中央コンテンツと幅を合わせる */
@media screen and (min-width: 768px) and (max-width: 1099px) {
	footer {
		width: calc(100% - 420px);
		margin: 0 80px 0 10px;
	}
}

section#category01 {
	background-color: var(--cat01);
}

section#category02 {
	background-color: var(--cat02);
}

section#category03 {
	background-color: var(--cat03);
}

section#category04 {
	background-color: var(--cat04);
}


/*リストのレイアウト設定*/
#g-nav li {
	text-align: center;
	list-style: none;

	a {
		color: #333;
		text-decoration: none;
		padding: 10px;
		display: block;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		font-weight: bold;
		color: #fff;
	}
}

@media (min-width: 1100px) {
	nav#g-nav {
		position: fixed;
		top: 50%;
		transform: translateY(-50%);
		left: calc(50vw + 240px);
		width: 300px;
		background-color: #073F35;
		border: 2px solid #D5A65A;
		border-radius: 10px;
	}
}

@media (width < 1100px) {

	/*ハンバーガーメニュー━━━━━━━━━━━━━━━━━━━*/
	/*丸の拡大*/
	.circle-bg {
		position: fixed;
		z-index: 20;
		/*丸の形*/
		width: 100px;
		height: 100px;
		border-radius: 50%;
		background-color: #073F35;
		/*丸のスタート位置と形状*/
		transform: scale(0);
		/*scaleをはじめは0に*/
		right: -50px;
		top: -50px;
		transition: all .6s;
		/*0.6秒かけてアニメーション*/

		&.circleactive {
			transform: scale(50);
			/*クラスが付与されたらscaleを拡大*/
		}
	}

	/*ナビゲーションの縦スクロール*/
	#g-nav-list {
		display: none;
		/*はじめは表示なし*/
		/*ナビの数が増えた場合縦スクロール*/
		position: fixed;
		z-index: 999;
		width: 100%;
		height: 100vh;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	#g-nav.panelactive #g-nav-list {
		display: block;
		/*クラスが付与されたら出現*/
	}

	/*ハンバーガーメニューから広がるナビゲーション*/
	#g-nav {
		ul {
			opacity: 0;
			/*はじめは透過0*/
			/*ナビゲーション天地中央揃え*/
			position: absolute;
			z-index: 999;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
		}

		/*アクティブになったエリア*/
		&.panelactive {
			/*position:fixed;にし、z-indexの数値を大きくして前面へ*/
			position: fixed;
			z-index: 999;
			top: 0;
			width: 100%;
			height: 100vh;

			ul {
				opacity: 1;

				/* 背景が出現後にナビゲーション li を表示*/
				li {
					animation-name: gnaviAnime;
					animation-duration: 1s;
					animation-delay: .2s;
					/*0.2 秒遅らせて出現*/
					animation-fill-mode: forwards;
					opacity: 0;
				}
			}
		}
	}

	@keyframes gnaviAnime {
		0% {
			opacity: 0;
		}

		100% {
			opacity: 1;
		}
	}

	/*========= ボタンのためのCSS ===============*/
	.openbtn {
		position: fixed;
		/*ボタン内側の基点となるためrelativeを指定*/
		background: #073F35;
		box-shadow: 0 0 0 3px #073F35;
		border: 1px solid #D5A65A;
		cursor: pointer;
		width: 50px;
		height: 50px;
		border-radius: 5px;
		z-index: 9999;
		/*ボタンを最前面に*/
		top: 13px;
		right: 13px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;

		/*ボタン内側*/
		span {
			display: inline-block;
			transition: all .4s;
			/*アニメーションの設定*/
			position: absolute;
			left: 14px;
			height: 2px;
			border-radius: 5px;
			background: #D5A65A;
			width: 45%;

			&:nth-of-type(1) {
				top: 13px;
			}

			&:nth-of-type(2) {
				top: 19px;
			}

			&:nth-of-type(3) {
				top: 25px;

				&::after {
					content: "Menu";
					/*3つ目の要素のafterにMenu表示を指定*/
					position: absolute;
					top: 5px;
					left: -2px;
					color: #D5A65A;
					font-size: 0.9rem;
					font-weight: 700;
					text-transform: uppercase;
				}
			}
		}

		/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
		&.active span {
			&:nth-of-type(1) {
				top: 14px;
				left: 18px;
				transform: translateY(6px) rotate(-45deg);
				width: 30%;
			}

			&:nth-of-type(2) {
				opacity: 0;
			}

			&:nth-of-type(3) {
				top: 26px;
				left: 18px;
				transform: translateY(-6px) rotate(45deg);
				width: 30%;

				&::after {
					content: "Close";
					/*3つ目の要素のafterにClose表示を指定*/
					transform: translateY(0) rotate(-45deg);
					top: 5px;
					left: 4px;
				}
			}
		}
	}
}

.openbtn.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/*ラッピング*/
.fa-gift.paid {
	color: #ff6699;
	margin-right: 5px;
}

.fa-gift.free {
	color: #0099ff;
	margin-right: 5px;
}



/*画像は基本的に横幅100%表示、高さは横幅に合わせて自動調整
  小さい画像を使用する際は個別にmax-widthを設定する*/
img {
	width: 100%;
	height: auto;
	vertical-align: bottom;
	image-rendering: -webkit-optimize-contrast;
	/*Chromeで画像がぼやけるのを防止*/
}

/*Flexbox ────────────────────────────────────────────────────────────
　子要素の間隔はgapで指定。
*/
:root {
	--spacing: 20px;
	/*子要素の間隔*/
}

.flexbox {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: var(--spacing);
	gap: var(--spacing);
}

/*子要素のボックスを等分配置*/
/*PC・スマホ共に2分割*/
.flexbox.box2 {
	>* {
		width: calc((100% - var(--spacing)) / 2);
	}
}

/*PC2列、スマホ1列*/
.flexbox.box2-1 {
	>* {
		width: 100%;
	}

	@media (min-width: 768px) {

		/*PCのみ適用*/
		>* {
			width: calc((100% - var(--spacing)) / 2);
		}
	}
}

/*PC3列、スマホ1列*/
.flexbox.box3-1 {
	>* {
		width: 100%;
	}

	@media (min-width: 768px) {
		>* {
			width: calc((100% - var(--spacing) * 2) / 3);
		}
	}
}

/*PC3列、スマホ2列*/
.flexbox.box3-2 {
	>* {
		width: calc((100% - var(--spacing)) / 2);
	}

	@media (min-width: 768px) {

		/*PCのみ適用*/
		>* {
			width: calc((100% - var(--spacing) * 2) / 3);
		}
	}
}

/*PC4列、スマホ2列*/
.flexbox.box4-2 {
	>* {
		width: calc((100% - var(--spacing)) / 2);
	}

	@media (min-width: 768px) {

		/*PCのみ適用*/
		>* {
			width: calc((100% - var(--spacing) * 3) / 4);
		}
	}
}

/*子要素のボックスサイズの個別指定
スマホで縦に並べる場合は親要素をclass="fbox spCancel"とする*/
.flexbox {
	.box25 {
		width: calc((100% - var(--spacing)) * 1 / 4);
	}

	.box75 {
		width: calc((100% - var(--spacing)) * 3 / 4);
	}

	.box30 {
		width: calc((100% - var(--spacing)) * 3 / 10);
	}

	.box70 {
		width: calc((100% - var(--spacing)) * 7 / 10);
	}

	.box40 {
		width: calc((100% - var(--spacing)) * 4 / 10);
	}

	.box60 {
		width: calc((100% - var(--spacing)) * 6 / 10);
	}

	@media (max-width: 768px) {

		/*スマホでは1列に並べる場合*/
		.spCancel>* {
			width: 100%;
		}
	}
}

/*ページトップスクロール ──────────────────────────────────────────────────*/
#page-top {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 10;
}


/* ========================================
   ページトップボタン
======================================== */

a.topbtn {
    display: block;
   background: #D5A65A;
    color: #073F35;
    border: 1px solid #D5A65A;
    box-shadow: 0 0 0 3px #D5A65A;
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;

    i {
        padding-top: 5px;
        font-size: var(--large);
        display: block;
    }

    span {
        display: block;
        font-size: var(--small);
        font-weight: 700;
        margin-top: -2px;
    }

     @media (hover: hover) {
        &:hover {
            background: #073F35;
            color: #D5A65A;
            box-shadow: 0 0 0 3px #D5A65A;
        }
    }

    @media (hover: none) {
        &:active {
            background: #073F35;
            color: #D5A65A;
            box-shadow: 0 0 0 3px #D5A65A;
        }
    }
}

/* ▲ページトップスクロールここまで▲ */
/* スマホなど幅が足りなくなったらspanで囲った単位で強制改行
   spanで囲まれている文章は自動改行がされなくなるので要注意*/
.spBr span {
	display: inline-block;
	white-space: nowrap;
}




/* =====================================
   クリスマスLP：FV
===================================== */

/* 共通 */
.christmas-fv h1 {
	margin: 0;
	padding: 0;
}

.christmas-fv picture,
.christmas-fv img {
	display: block;
	width: 100%;
}

/* PC：左カラムいっぱいに表示 */
@media screen and (min-width: 1100px) {

	.christmas-fv {
		position: fixed;
		top: 0;
		left: 0;
		transform: none;
		width: calc(50vw - 230px);
		height: 100vh;
		height: 100dvh;
		padding: 0;
		overflow: hidden;
	}

	.christmas-fv h1,
	.christmas-fv picture {
		width: 100%;
		height: 100%;
	}

	.christmas-fv img {
		width: 100%;
		height: 100%;
		max-width: none;
		object-fit: cover;
		object-position: center;
		border-radius: 0;
	}
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1099px) {

	.christmas-fv {
		position: fixed;
		top: 0;
		left: 0;
		transform: none;
		width: 350px;
		height: 100dvh;
		padding: 0;
		overflow: hidden;
	}

	.christmas-fv h1 {
		position: static;
		width: 100%;
		height: 100%;
		transform: none;
	}

	.christmas-fv picture {
		height: 100%;
	}

	.christmas-fv img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0;
	}
}

/* SP：余白なしでFVを表示 */
@media screen and (max-width: 767px) {

	.christmas-fv {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		width: 100%;
		height: auto;
		margin: 0;
		padding: 0;
	}

	.christmas-fv h1 {
		position: static;
		width: 100%;
		margin: 0;
		padding: 0;
		transform: none;
	}

	.christmas-fv picture,
	.christmas-fv img {
		display: block;
		width: 100%;
		height: auto;
		margin: 0;
		padding: 0;
	}

	.christmas-fv img {
		border-radius: 0;
	}
}

/* 掲載内容に関する注意書き */
.lp-note {
	margin: 20px 15px 10px;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1.8;
	text-align: center;
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.9),
		0 2px 8px rgba(0, 0, 0, 0.7);
}

@media screen and (max-width: 767px) {
    .lp-note {
        text-align: left;
    }
}


@media screen and (min-width: 768px) and (max-width: 1099px) {

    .container {
        display: block;
    }

    .christmas-fv {
        position: fixed;
        top: 0;
        left: 0;
        width: 40%;
        height: 100dvh;
        overflow: hidden;
    }

    .christmas-fv img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    main {
        width: 60%;
        margin: 0 0 10px 40%;
        padding: 0 10px;
    }

    footer {
        width: 60%;
        margin: 0 0 0 40%;
        padding: 20px 10px;
    }
}