/* ============================================================
 * blog.css — ブログ・お知らせ（home / category / single post）専用
 * Figma「ブログ・お知らせ」(28:9391) 準拠のヒーローヘッダー。
 * 共通変数（--c-* / --grad-* / --w-content）は style.css(:root) を参照。
 * style.css の後に enqueue（ページ別で共通を上書き可能）。
 * ============================================================ */

/* ============================================================
 * .blog-page = パンくず下〜本文を包む「連続ピンク」背景（帯の境目を作らない）
 * 微調整用カスタムプロパティ（ここを変えるだけで調整可）:
 *   --chara-left-w  / --chara-left-x  / --chara-left-top   左キャラ（ピンク・メガホン）
 *   --chara-right-w / --chara-right-x / --chara-right-top  右キャラ（紫・座り）
 *   --deco-gap-center  装飾クラスタとタイトル中心の間隔
 * ============================================================ */
.blog-page {
	--chara-left-w: clamp(150px, 15vw, 200px);
	--chara-left-x: max(8px, calc(50% - 585px));
	--chara-left-top: 68px;        /* 足が注目カード上端に乗る高さ */
	--chara-right-w: clamp(128px, 13vw, 130px);
	--chara-right-x: max(8px, calc(50% - 558px));
	--chara-right-top: 120px;      /* 足が人気記事ボックス上端に乗る高さ */
	--deco-gap-center: 142px;

	position: relative;
	overflow: hidden;   /* キャラの横はみ出しで横スクロールを出さない */
	background: linear-gradient(180deg, #fce1f2 0%, #f6cfe7 50%, #f3c9e5 100%);
}

/* ---------- ヒーロー（背景は .blog-page 側 / ここは透過） ---------- */
.blog-hero {
	position: relative;
	text-align: center;
	padding: 26px 16px 22px;
}

.blog-hero__inner {
	position: relative;
	z-index: 3;
	max-width: 640px;
	margin: 0 auto;
}

/* EN 見出し（BLOG & NEWS 画像） */
.blog-hero__eyebrow {
	display: block;
	margin: 0 auto 10px;
	height: clamp(18px, 1.9vw, 24px);
	width: auto;
}

/* JP タイトル（ブログ・お知らせ 画像） */
.blog-hero__title { margin: 0; line-height: 0; }
.blog-hero__title img {
	display: block;
	margin: 0 auto;
	height: clamp(34px, 4.6vw, 46px);
	width: auto;
}

/* リード文（白文字＋紫シャドウ） */
.blog-hero__lead {
	margin: 12px auto 0;
	max-width: 600px;
	color: #fff;
	font-size: clamp(12px, 1.5vw, 14px);
	font-weight: 700;
	line-height: 1.6;
	text-shadow: 0 1px 4px rgba(150, 80, 150, 0.55);
}

/* リードを支給画像で表示する場合 */
.blog-hero__lead--img { line-height: 0; text-shadow: none; }
.blog-hero__lead--img img {
	display: block;
	margin: 0 auto;
	height: clamp(15px, 1.9vw, 20px);
	width: auto;
	max-width: 100%;
}

/* ---------- 装飾：タイトルの左右「脇」に寄せて配置 ---------- */
.blog-hero__decos {
	position: absolute;
	top: 48px;
	height: 58px;            /* JP タイトルの縦中央に合わせる */
	z-index: 1;
	display: flex;
	align-items: center;
	gap: clamp(6px, 1vw, 14px);
	width: clamp(180px, 20vw, 264px);
	pointer-events: none;
}
.blog-hero__decos--left  { right: calc(50% + var(--deco-gap-center)); justify-content: flex-end; }
.blog-hero__decos--right { left:  calc(50% + var(--deco-gap-center)); justify-content: flex-start; flex-direction: row-reverse; }

.blog-hero__deco {
	display: block;
	width: auto;
	flex: 0 0 auto;
	opacity: 0.96;
	filter: drop-shadow(0 2px 3px rgba(170, 110, 170, 0.22));
}
.blog-hero__deco--star-purple  { height: clamp(38px, 5.6vw, 56px); transform: translateY(-6px) rotate(-6deg); }
.blog-hero__deco--heart-blue   { height: clamp(24px, 3.6vw, 36px); transform: translateY(10px) rotate(4deg); }
.blog-hero__deco--sparkle-pink { height: clamp(12px, 1.9vw, 19px); transform: translateY(-15px); }
.blog-hero__deco--star-pink    { height: clamp(18px, 2.8vw, 28px); transform: translateY(13px) rotate(8deg); }
.blog-hero__deco--star-blue    { height: clamp(20px, 3.2vw, 31px); transform: translateY(-9px) rotate(-5deg); }
.blog-hero__deco--heart-pink   { height: clamp(22px, 3.4vw, 33px); transform: translateY(8px) rotate(-3deg); }

/* ---------- 左右メイドキャラ（.blog-page 基準で絶対配置・調整可） ---------- */
.blog-chara {
	position: absolute;
	z-index: 5;
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 4px 7px rgba(170, 110, 170, 0.22));
}
.blog-chara--left  { width: var(--chara-left-w);  left:  var(--chara-left-x);  top: var(--chara-left-top); }
.blog-chara--right { width: var(--chara-right-w); right: var(--chara-right-x); top: var(--chara-right-top); }

/* レスポンシブ */
@media (max-width: 1024px) {
	.blog-page { --deco-gap-center: 116px; }
	.blog-hero__decos { width: clamp(120px, 16vw, 190px); }
}
@media (max-width: 860px) {
	.blog-chara { display: none; }
	.blog-page { --deco-gap-center: 96px; }
	.blog-hero__deco--sparkle-pink { display: none; }
}
@media (max-width: 560px) {
	.blog-hero__decos { width: 92px; gap: 2px; }
	.blog-hero__deco--heart-pink,
	.blog-hero__deco--star-blue { display: none; }
}

/* ---------- パンくず（全幅バー / ヒーローの上） ---------- */
.blog-page__crumbs {
	background: #fff;
	border-bottom: 1px solid #f4dcec;
}
.blog-page__crumbs-inner {
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 14px 16px;
	font-size: 13px;
	color: var(--c-text-sub);
}
.blog-page__crumbs a { color: var(--c-accent); text-decoration: none; font-weight: 700; }
.blog-page__crumbs a:hover { text-decoration: underline; }
.blog-page__crumbs-sep { margin: 0 8px; color: #d6a9c6; }


/* ============================================================
 * 絞り込みタブ（すべて / ブログ / お知らせ）
 * ============================================================ */
.blog-filter {
	background: transparent;
	text-align: center;
	padding: 20px 16px 4px;
}
.blog-filter__inner {
	display: inline-flex;
	gap: 4px;
	background: #fff;
	border: 1.5px solid #f0c8df;
	border-radius: 999px;
	padding: 5px;
	box-shadow: 0 2px 8px rgba(200, 130, 180, 0.15);
}
.blog-filter__tab {
	padding: 8px 24px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-text-sub);
	text-decoration: none;
	transition: color 0.15s, background 0.15s;
}
.blog-filter__tab:hover { color: var(--c-accent); }
.blog-filter__tab.is-active {
	background: var(--grad-cta);
	color: #fff;
}
@media (max-width: 480px) {
	.blog-filter__tab { padding: 8px 16px; font-size: 13px; }
}

/* ============================================================
 * 本文レイアウト（一覧 + サイドバー）
 * ============================================================ */
.blog-body { padding-top: 12px; padding-bottom: 56px; position: relative; z-index: 2; }
.blog-layout {
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 10px 16px 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}
@media (max-width: 900px) {
	.blog-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 記事グリッド・カード ---------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: 18px;
}
.blog-card {
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
	box-shadow: 0 6px 18px rgba(200, 120, 170, 0.22);
	transform: translateY(-2px);
}
.blog-card--big {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 42% 1fr;
}
@media (max-width: 600px) {
	.blog-card--big { grid-template-columns: 1fr; display: flex; }
}

.blog-card__thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #f3d9ec, #ddc9f0);
}
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__thumb-ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.blog-card__thumb-ph img {
	width: clamp(40px, 22%, 64px);
	height: auto;
	opacity: 0.92;
}
.blog-card--big .blog-card__thumb { aspect-ratio: auto; min-height: 190px; }
@media (max-width: 600px) {
	.blog-card--big .blog-card__thumb { aspect-ratio: 16 / 10; min-height: 0; }
}

.blog-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.blog-card__meta { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.blog-card__date { font-size: 11.5px; color: var(--c-text-sub); }
.chip--new { background: var(--grad-cta); color: #fff; }
.blog-card__title { margin: 0; font-size: 14.5px; line-height: 1.5; }
.blog-card--big .blog-card__title { font-size: 18px; }
.blog-card__title a { color: var(--c-text); text-decoration: none; }
.blog-card__title a:hover { color: var(--c-accent); }
.blog-card__excerpt { margin: 0; font-size: 12.5px; color: var(--c-text-sub); line-height: 1.6; }

.blog-empty { background: #fff; border-radius: var(--radius-md); padding: 24px; }

/* ---------- サイドバー ---------- */
.blog-sidebar { display: flex; flex-direction: column; gap: 18px; }

/* 人気記事 */
.blog-popular { list-style: none; margin: 0; padding: 0; }
.blog-popular__item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px dashed #f0d7e6;
}
.blog-popular__item:last-child { border-bottom: 0; }
.blog-popular__rank {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--grad-cta);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.blog-popular__item:nth-child(n+4) .blog-popular__rank { background: #e3acce; }
.blog-popular__link { font-size: 13px; line-height: 1.5; color: var(--c-text); text-decoration: none; }
.blog-popular__link:hover { color: var(--c-accent); }

/* カテゴリ */
.blog-catlist { list-style: none; margin: 0; padding: 0; }
.blog-catlist li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px dashed #f0d7e6;
	margin: 0;
}
.blog-catlist li:last-child { border-bottom: 0; }
.blog-catlist a { color: var(--c-text); text-decoration: none; font-size: 13.5px; }
.blog-catlist a:hover { color: var(--c-accent); }
.blog-catlist .shops-sidebar__count { color: var(--c-text-sub); font-size: 12px; margin: 0; }

/* タグ */
.blog-taglist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.blog-taglist .chip {
	background: #fce1ef;
	color: #d96ba6;
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.blog-taglist .chip:first-child { background: var(--grad-cta); color: #fff; }
.blog-taglist .chip:hover { background: var(--grad-cta); color: #fff; }

/* 店舗を探す CTA */
.blog-widget--cta p { font-size: 12.5px; margin: 0 0 10px; line-height: 1.6; }
.blog-widget__cta-btn {
	display: block;
	text-align: center;
	background: var(--grad-cta);
	color: #fff;
	padding: 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.blog-widget__cta-btn:hover { opacity: 0.92; }


/* ============================================================
 * 記事詳細（single.php）— 一覧と統一
 * ============================================================ */
.blog-single {
	background: #fff;
	border: 1.5px solid var(--c-primary);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* アイキャッチ / プレースホルダ */
.blog-single__thumb {
	position: relative;
	aspect-ratio: 16 / 7;
	background: linear-gradient(135deg, #f3d9ec, #ddc9f0);
	overflow: hidden;
}
.blog-single__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-single__inner { padding: 28px clamp(18px, 3vw, 36px) 32px; }

.blog-single__meta { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.blog-single__meta .chip { text-decoration: none; }
.blog-single__date { font-size: 12.5px; color: var(--c-text-sub); }

.blog-single__title {
	margin: 0 0 22px;
	font-size: clamp(20px, 3vw, 28px);
	line-height: 1.5;
	color: var(--c-text);
	padding-bottom: 18px;
	border-bottom: 2px dashed #f0d0e3;
}

/* ---------- 本文タイポグラフィ ---------- */
.blog-single__body { font-size: 15px; line-height: 1.95; color: var(--c-text); }
.blog-single__body > :first-child { margin-top: 0; }
.blog-single__body p { margin: 0 0 1.4em; }
.blog-single__body a { color: var(--c-accent); text-decoration: underline; }
.blog-single__body h2 {
	margin: 2em 0 0.8em;
	font-size: clamp(18px, 2.4vw, 22px);
	color: var(--c-primary-dark);
	padding: 8px 0 8px 14px;
	border-left: 5px solid var(--c-primary);
	line-height: 1.5;
}
.blog-single__body h3 {
	margin: 1.8em 0 0.7em;
	font-size: clamp(16px, 2vw, 19px);
	color: var(--c-primary-dark);
	line-height: 1.5;
}
.blog-single__body h3::before { content: "\25c6"; color: var(--c-primary); margin-right: 8px; font-size: 0.8em; }
.blog-single__body ul,
.blog-single__body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.blog-single__body li { margin: 0 0 0.5em; }
.blog-single__body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 0.5em 0; }
.blog-single__body blockquote {
	margin: 1.4em 0;
	padding: 14px 18px;
	background: #fdeef6;
	border-left: 4px solid var(--c-primary);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	color: var(--c-text-sub);
}
.blog-single__body blockquote p:last-child { margin-bottom: 0; }
.blog-single__body strong { color: var(--c-primary-dark); }

/* タグ */
.blog-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0;
	padding-top: 22px;
	border-top: 1px dashed #f0d0e3;
}

/* 前後記事ナビ */
.blog-single__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 26px 0 0;
}
.blog-single__nav-link {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 16px;
	border: 1.5px solid #f0d0e3;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}
.blog-single__nav-link:hover { border-color: var(--c-primary); background: #fdf3f8; }
.blog-single__nav-link--next { text-align: right; }
.blog-single__nav-dir { font-size: 12px; color: var(--c-primary); font-weight: 700; }
.blog-single__nav-title { font-size: 13px; color: var(--c-text); line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 一覧へ戻る */
.blog-single__back { margin: 28px 0 0; text-align: center; }
.blog-single__back a {
	display: inline-block;
	padding: 11px 28px;
	background: var(--grad-cta);
	color: #fff;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
}
.blog-single__back a:hover { opacity: 0.92; }

@media (max-width: 600px) {
	.blog-single__nav { grid-template-columns: 1fr; }
	.blog-single__nav-link--next { text-align: left; }
}
