/* 文字コード */
@charset "utf-8";

/* 基本設定 */
* {
	box-sizing: border-box;
}
::before, ::after {
	box-sizing: border-box;
}

/* CSS変数 */
:root {
	--main-font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Segoe UI", "Meiryo", sans-serif;
	--main-text-color: #333333;
	--sub-text-color: #ffffff;
	--main-bg-design: #ffffff linear-gradient(160deg, #ffffff 20%, #ffffff 80%) fixed;
	--width-moderate: 640px;
	--radius: 30px;
	--red: #c00;
	--shadow: 2px 2px 5px rgba(102, 102, 102, 0.3);
	--text-color-02: rgba(102, 102, 102, 0.2);
	--text-color-03: rgba(102, 102, 102, 0.3);
	--text-color-07: rgba(102, 102, 102, 0.7);
	--pink: #ff66b8;
}

/* wrapper設定 */
.wrapper {
	max-width: 640px;
	margin: 0 auto;
	padding: 3rem 0 0 0;
}

/* レスポンシブ設定 */
@media (max-width: 639px) {
	html {
		font-size: 0.8rem;
	}
	.wrapper {
		padding: 3rem 3rem 0 3rem;
	}
	br.mobile {
		display: inline-block;
	}
	.mobile_hidden {
		display: none;
	}
}
@media (min-width: 640px) {
	.wrapper {
		padding: 3rem 0 0 0;
	}
}

/* 基本スタイル */
html {
	font-size: 12px;
	scroll-behavior: smooth;
}
body {
	background: var(--main-bg-design);
	color: var(--main-text-color);
	font-family: var(--main-font-family);
	font-weight: 400;
	letter-spacing: 0.02rem;
	line-height: 1.7rem;
	word-break: break-word;
	font-size: 1rem;
	margin: 0;
	padding: 0;
}

/* リンク */
a {
	color: #ff66b8;
	;
	font-weight: bold;
	text-decoration: underline;
	text-decoration-skip-ink: auto;
	transition: all 0.1s ease-in-out;
}
a:hover, a:active {
	text-decoration: none;
}
a:hover img {
	transform: translateY(-5px);
}

/* 見出し */
h1, h2, h3, h4, h5, h6 {
	line-height: 1.3em;
	margin: 0;
	padding: 0;
}
header h2 {
	margin-bottom: 1rem;
}
h3 {
	font-size: 1.3rem;
	padding-bottom: 1rem;
	color: var(--pink);
	border-bottom: 1px solid var(--text-color-03);
	line-height: 1.4;
	text-align: center;
}

/* テキスト装飾 */
b {
	color: var(--pink);
}
.all {
	color: #666;
}
.r18 {
	color: var(--red);
}
.navi {
	text-align: center;
}

/* ヘッダー */
header {
	border-bottom: none;
	margin-bottom: 3rem;
	padding-bottom: 1rem;
	text-align: center;
}

/* パラグラフ */
p {
	margin: 0 0 1.2em 0;
	padding: 0;
}
p:last-child {
	margin-bottom: 0; /* ヘッダー内のp要素の間隔を消す */
}
header p {
	margin-bottom: 0;
}

/* 画像 */
img {
	height: auto;
	max-width: 100%;
	object-fit: cover;
	transition: transform 0.1s ease-in-out;
	vertical-align: bottom;
}

/* BOOK */
div.books {
	display: grid;
	grid-gap: 5rem 3rem;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	margin-bottom: 5rem;
}

/* 詳細説明用レイアウト */
div.books.long {
	display: block;
	margin: 0 auto 5rem;
	max-width: var(--width-moderate);
}
div.books.long article {
	display: flex;
	gap: 2rem;
	margin-bottom: 5rem;
}
div.books.long .cover {
	display: block;
	flex-basis: 300px;
}
div.books.long .detail {
	flex-basis: 600px;
}
div.books.long h3,
div.books.long .chara {
	text-align: left;
}

/* 記事要素 */
article {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
	font-size: 0.9rem;
	gap: 1rem;
}
article p {
	margin-bottom: 1em;
}

/* カバー画像 */
.cover {
	display: flex;
	justify-content: center;
	align-items: end;
}
.cover img {
	box-shadow: var(--shadow);
	max-width: 300px;
	width: 100%;
}

/* キャラクター表示 */
.chara {
	color: var(--text-color-07);
	font-size: 0.9rem;
	margin: 0.5em 0 1em 0;
	text-align: center;
}

/* テーマ説明 */
.theme {
	margin-top: 1em;
}

/* ボタン */
.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	padding-top: 5px;
	clear: both;
	margin-top: 1rem;
}
.buttons>* {
	border-radius: var(--radius);
	flex-grow: 1;
	line-height: 1.4em;
	padding: 0.5em 1em 0.6em;
	text-align: center;
}
.buttons a {
	background-color: var(--pink);
	color: var(--sub-text-color);
	text-decoration: none;
	opacity: 0.8;
}
.buttons a:hover {
	opacity: 1;
}
.buttons span {
	background-color: var(--text-color-02);
}

/* 通販サイト別ボタン色 */
.buttons a.alice {
	background-color: #1387cd;
	color: #fff;
}
.buttons a.booth {
	background-color: #DC3C3F;
	color: #fff;
}
.buttons a.froma {
	background-color: #FF8297;
	color: #fff;
}
.buttons a.melon {
	background-color: #18BD67;
	color: #fff;
}
.buttons a.tora {
	background-color: #F08000;
	color: #fff;
}
/* fuwaimg用調整 */
p#fuwaimg_caption_text {
	width: unset;
}

/* スマホ表示時の調整 */
@media (max-width: 600px) {
	div.books.long article {
		display: block;
	}
	div.books.long .cover {
		float: left;
		width: 40%;
		padding: 0 1rem 1rem 0;
	}
}

/* 不要なmarginを消す */
.mg0 {
	margin: 0 0 0 0 !important;
}
.mt0 {
	margin-top: 0 !important;
}
.mb0 {
	margin-bottom: 0 !important;
}