/* まちろぐ：写真レビュー */
.single-photo_review #content { padding-top: 12px; }
.single-photo_review .p-breadcrumb { margin-bottom: 0; }
.mr {
	--mr-bg: #faf8f3;
	--mr-greige: #ddd6cb;
	--mr-line: #402d23;
	--mr-green: #6e8c60;
	--mr-grey: #80766a;
	--mr-head: 150px;   /* ヘッダーの高さの見込み */
	--mr-strip: 64px;
	color: var(--mr-line);
	width: 100%;
	padding: 16px 0 0;
}
.mr button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mr img { display: block; width: 100%; height: 100%; object-fit: cover; }

.mr__body {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 20px;
	height: calc(100svh - var(--mr-head) - var(--mr-strip) - 32px);
	min-height: 520px;
	grid-template-rows: minmax(0, 1fr);
}

/* 左：一覧 */
.mr__list {
	position: relative;
	overflow-y: auto;
	border-right: 1.5px solid var(--mr-greige);
	padding-right: 12px;
	scrollbar-width: thin;
}
.mr__item {
	display: grid;
	grid-template-columns: 52px 22px 1fr;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px;
	margin-bottom: 4px;
	border-radius: 10px;
	text-align: left;
	transition: background .15s;
}
.mr__item:hover { background: #f1ede6; }
.mr__item.is-active { background: var(--mr-greige); }
.mr__item.is-active .mr__num { color: var(--mr-green); }
.mr__thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--mr-greige); }
.mr__num { font-size: 11px; font-weight: 700; color: var(--mr-grey); letter-spacing: .04em; }
.mr__cap { font-size: 13px; line-height: 1.4; min-width: 0; }
.mr__cap b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr__cap small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; color: var(--mr-grey); line-height: 1.45; margin-top: 1px; }
.mr__item--cover { grid-template-columns: 52px 1fr; }
.mr__item--cover .mr__num {
	width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center;
	background: var(--mr-line); color: var(--mr-bg); font-size: 12px;
}
.mr__item--cover.is-active .mr__num { color: var(--mr-bg); background: var(--mr-green); }

/* 右：ステージ */
.mr__stage { position: relative; min-width: 0; height: 100%; }
.mr__panel { height: 100%; grid-template-rows: minmax(0, 1fr); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
.mr__panel[hidden] { display: none; }
.mr__panel.is-active { animation: mrIn .25s ease; }
@keyframes mrIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mr__photo { display: flex; flex-direction: column; gap: 12px; min-height: 0; height: 100%; justify-content: flex-start; }
.mr__subs { flex: none; }
.mr__main {
	flex: none; width: 100%; aspect-ratio: 4 / 3; max-height: calc(100% - 172px);
	border-radius: 16px; overflow: hidden; background: var(--mr-greige);
	border: 2px solid var(--mr-line); box-shadow: 6px 6px 0 var(--mr-greige);   /* 枠を強調 */
}
.mr__main img { border-radius: 14px; }
.mr__subs { display: flex; gap: 8px; }
.mr__subs { gap: 10px; padding-left: 2px; }
.mr__sub {
	position: relative; width: 76px; height: 57px; padding: 3px !important; border-radius: 10px; overflow: visible;
	background: #fff !important; box-shadow: 0 0 0 1px var(--mr-greige), 0 3px 8px rgba(64, 45, 35, .08);
	opacity: .7; transition: opacity .15s, transform .15s, box-shadow .15s;
}
.mr__sub img { border-radius: 7px; }
.mr__sub:hover { opacity: 1; transform: translateY(-2px); }
.mr__sub.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--mr-green), 0 3px 8px rgba(64, 45, 35, .1); }
.mr__sub.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--mr-green); }

.mr__text { overflow-y: auto; padding: 4px 6px 0 0; scrollbar-width: thin; position: relative; }
.mr__no { font-size: 12px; font-weight: 700; color: var(--mr-green); letter-spacing: .08em; margin: 0 0 6px; }
.mr__h { font-size: 22px; line-height: 1.45; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1.5px solid var(--mr-line); font-weight: 700; }
.mr .mr__h::before, .mr .mr__h::after, .mr .mr__row h3::before, .mr .mr__row h3::after { display: none; } /* SWELLの見出し飾りを消す */
.mr__row { margin: 0 0 14px; }
.mr__row h3 {
	display: inline-block; font-size: 12px; font-weight: 700; margin: 0 0 4px; padding: 2px 10px;
	border-radius: 99px; background: var(--mr-greige); color: var(--mr-line); border: 0;
}
.mr__rowBody p { font-size: 14.5px; line-height: 1.85; margin: 0 0 .7em; }
.mr__rowBody p:last-child { margin-bottom: 0; }
.mr__rowBody strong { font-weight: 800; }
.mr-mark { background: linear-gradient(transparent 58%, rgba(110, 140, 96, .32) 58%); color: inherit; padding: 0 1px; }
.mr-fig { margin: 10px 0 12px; }
.mr-fig__btn { display: block; width: 100%; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.mr-fig__btn img { width: 100%; height: auto !important; max-height: 220px; object-fit: cover; }
.mr-fig figcaption { font-size: 11.5px; color: var(--mr-grey); margin-top: 5px; }
.mr__buy { margin-top: 10px; font-size: 13px; }
/* ポチップを小さく */
.mr .mr__buy .pochipp-box { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px !important; margin: 0 !important; border-radius: 12px; border: 1.5px solid var(--mr-greige) !important; box-shadow: none !important; background: #fff; }
.mr .mr__buy .pochipp-box__image { width: 64px !important; height: 64px !important; margin: 0 !important; }
.mr .mr__buy .pochipp-box__image img { object-fit: contain; }
.mr .mr__buy .pochipp-box__body { width: auto !important; padding: 0 !important; }
.mr .mr__buy .pochipp-box__title { font-size: 12.5px !important; line-height: 1.5; margin: 0 0 4px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mr .mr__buy .pochipp-box__review, .mr .mr__buy .pochipp-box__info, .mr .mr__buy .pochipp-box__logo, .mr .mr__buy .pochipp-box__saleInfo { display: none !important; }
.mr .mr__buy .pochipp-box__price { font-size: 12px !important; margin: 0 0 6px !important; }
.mr .mr__buy .pochipp-box__btns { grid-column: 1 / -1; display: flex !important; flex-wrap: nowrap; gap: 6px; margin: 0 !important; width: auto !important; }
.mr .mr__buy .pochipp-box__btnwrap { flex: 1; width: auto !important; margin: 0 !important; padding: 0 !important; }
.mr .mr__buy .pochipp-box__btn { font-size: 12px !important; padding: 8px 4px !important; border-radius: 99px !important; }
.mr__cta {
	position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
	margin-top: 18px; padding: 12px 0 2px; background: var(--mr-bg); border-top: 1.5px solid var(--mr-greige);
}
.mr__ctaName { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--mr-grey); }
.mr__ctaBtn {
	display: inline-flex; align-items: center; gap: 8px; flex: none; height: 46px; padding: 0 24px;
	border-radius: 99px; background: var(--mr-green); color: #fff !important; font-weight: 800; font-size: 14.5px;
	text-decoration: none !important; box-shadow: 0 6px 16px rgba(110, 140, 96, .35); transition: transform .15s, background .15s;
}
.mr__ctaBtn:hover { transform: translateY(-2px); background: #5d7a50; }
.mr__ctaBtn svg { width: 19px; height: 19px; }

/* PC：写真の下の商品リンク（文の側のボタンは出さない） */
.mr__shop {
	flex: none; display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 10px 10px 10px 10px;
	border-radius: 14px; background: #fff; border: 1.5px solid var(--mr-greige); box-shadow: 0 3px 10px rgba(64, 45, 35, .05);
}
.mr__shopImg { width: 52px !important; height: 52px !important; flex: none; border-radius: 9px; object-fit: cover; }
.mr__shopName { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.4; color: var(--mr-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr__shopName small { display: block; font-size: 10.5px; font-weight: 700; color: var(--mr-green); letter-spacing: .04em; }
.mr__shopBtns { display: flex; gap: 8px; flex: none; }
.mr__shopBtn {
	display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 22px; border-radius: 99px;
	background: var(--mr-green); color: #fff !important; font-weight: 800; font-size: 14px; text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(110, 140, 96, .35); transition: transform .15s, background .15s;
}
.mr__shopBtn:hover { transform: translateY(-2px); background: #5d7a50; }
.mr__shopBtn.is-sub { background: #fff; color: var(--mr-line) !important; border: 1.5px solid var(--mr-line); box-shadow: none; padding: 0 16px; }
.mr__shopBtn.is-sub:hover { background: var(--mr-tint, #f1ede6); }
.mr__shopBtn svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .mr__photo:has(.mr__shop) + .mr__text .mr__cta { display: none; } }

/* 表紙 */
.mr__cover { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.mr__coverImg { align-self: start; width: 100%; aspect-ratio: 4 / 3; max-height: 100%; border-radius: 16px; overflow: hidden; background: var(--mr-greige); min-height: 0; border: 2px solid var(--mr-line); box-shadow: 6px 6px 0 var(--mr-greige); }
.mr__coverImg--collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); gap: 6px; background: var(--mr-bg); }
.mr__coverImg--collage img { border-radius: 10px; }
.mr__coverImg--collage img { min-height: 0; }
.mr__coverImg--collage:has(img:nth-child(5)) { grid-template-columns: repeat(3, 1fr); aspect-ratio: 3 / 2; } /* 6枚のときは2行×3列（2026-11-11 本人「2行だね」） */
.mr__coverText { display: flex; flex-direction: column; justify-content: center; padding: 0 8px; }
.mr__cat { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--mr-bg); background: var(--mr-green); padding: 3px 12px; border-radius: 99px; margin: 0 0 14px; }
.mr__title { font-size: 26px; line-height: 1.5; margin: 0 0 14px; font-weight: 800; }
.mr__lead { font-size: 15px; line-height: 1.9; margin: 0 0 12px; }
.mr__meta { font-size: 12px; color: var(--mr-grey); margin: 0 0 22px; }
.mr__start {
	align-self: flex-start; padding: 12px 22px !important; border-radius: 99px;
	background: var(--mr-line) !important; color: var(--mr-bg) !important; font-weight: 700; font-size: 14px;
	transition: background .15s;
}
.mr__start:hover { background: var(--mr-green) !important; }

/* 前へ・次へ */
.mr__pager { position: absolute; right: 0; top: 0; display: flex; gap: 6px; z-index: 3; }
.mr__pager button { width: 34px !important; height: 34px !important; font-size: 13px !important; }
.mr.is-cover .mr__pager { top: auto; bottom: 0; }
.mr__pager button {
	width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--mr-line);
	background: var(--mr-bg); font-size: 16px; font-weight: 700;
}
.mr__pager button:hover { background: var(--mr-line); color: var(--mr-bg); }
.mr__pager button:disabled { opacity: .25; pointer-events: none; }

/* 最後の細い帯 */
.mr { --mr-strip: 86px; }
.mr__strip {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: 86px; margin-top: 16px; padding: 8px 16px;
	border-top: 1.5px solid var(--mr-line); background: #f1ede6; border-radius: 0 0 12px 12px;
}
.mr__related { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.mr__stripLabel { font-size: 11px; font-weight: 700; line-height: 1.4; color: var(--mr-green); white-space: nowrap; }
.mr__rel { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mr-line); flex: 1 1 0; min-width: 0; padding: 6px; border-radius: 10px; transition: background .15s; }
.mr__rel:hover { background: var(--mr-bg); }
.mr__rel img { width: 84px !important; height: 47px !important; border-radius: 8px; flex: none; object-fit: cover; }
.mr__relText { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr__relText b { font-size: 12.5px; font-weight: 700; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 1行。入らないときはJSで文字を小さく */
.mr__relText small { font-size: 10.5px; color: var(--mr-grey); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* スマホ */
@media (max-width: 899px) {
	.mr { padding-top: 8px; }
	.mr__body { height: auto !important; min-height: 0; }

	/* 表紙：写真＋題名、その下に一覧（写真＋一言） */
	.mr.is-cover .mr__body { display: flex; flex-direction: column; gap: 0; }
	.mr.is-cover .mr__stage { order: -1; height: auto; }
	.mr.is-cover .mr__list { border: 0; padding: 0; overflow: visible; margin-top: 18px; }
	.mr.is-cover .mr__item--cover { display: none; }
	.mr.is-cover .mr__item { grid-template-columns: 56px 24px 1fr; padding: 6px 4px; border-bottom: 1px solid var(--mr-greige); border-radius: 0; margin: 0; }
	.mr.is-cover .mr__thumb { width: 56px; height: 56px; }
	.mr.is-cover .mr__cap b { font-size: 14px; white-space: normal; }
	.mr.is-cover .mr__cap small { font-size: 12px; }
	.mr.is-cover .mr__pager { display: none; }

	/* レビュー：上に番号つきの写真一覧（横に流れる・上に固定） */
	.mr:not(.is-cover) .mr__body { display: block; }
	.mr:not(.is-cover) .mr__list {
		position: sticky; top: var(--mr-fix, 54px); z-index: 20;
		display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
		margin: 0 -16px 12px; padding: 8px 16px 9px; border: 0;
		background: rgba(250, 248, 243, .96); backdrop-filter: blur(6px);
		box-shadow: 0 1px 0 var(--mr-greige);
	}
	.mr:not(.is-cover) .mr__list::-webkit-scrollbar { display: none; }
	.mr:not(.is-cover) .mr__item { position: relative; display: block; flex: none; width: 46px; padding: 0; margin: 0; border-radius: 9px; background: none !important; }
	.mr:not(.is-cover) .mr__thumb { width: 46px; height: 46px; border-radius: 9px; opacity: .55; transition: opacity .15s; }
	.mr:not(.is-cover) .mr__item.is-active .mr__thumb { opacity: 1; box-shadow: 0 0 0 2px var(--mr-bg), 0 0 0 4px var(--mr-green); }
	.mr:not(.is-cover) .mr__cap { display: none; }
	.mr:not(.is-cover) .mr__item .mr__num {
		position: absolute; left: 3px; bottom: 3px; display: block; min-width: 17px; padding: 0 3px; height: 15px; line-height: 15px;
		border-radius: 5px; background: rgba(64, 45, 35, .82); color: #fff; font-size: 9.5px; text-align: center; letter-spacing: 0;
	}
	.mr:not(.is-cover) .mr__item.is-active .mr__num { background: var(--mr-green); }
	.mr:not(.is-cover) .mr__item--cover .mr__num { position: static; width: 46px; height: 46px; line-height: 1; display: grid; place-items: center; border-radius: 9px; font-size: 10px; background: var(--mr-line); padding: 0; }
	.mr:not(.is-cover) .mr__item + .mr__item:not(.mr__item--cover) { }

	.mr__stage { height: auto; }
	.mr__panel, .mr__cover { display: block; height: auto; }
	.mr__main, .mr__coverImg { aspect-ratio: 4 / 3; flex: none; }
	.mr__photo { margin-bottom: 12px; height: auto; }
	.mr__sub { width: 60px; height: 45px; }
	.mr__main, .mr__coverImg { max-height: none; box-shadow: 4px 4px 0 var(--mr-greige); }
	.mr__text { overflow: visible; padding: 0; }
	.mr__h { font-size: 18px; }
	.mr__title { font-size: 21px; margin-top: 4px; }
	.mr__coverText { padding: 16px 0 0; }
	.mr__pager { top: auto; }
	.mr:not(.is-cover) .mr__pager { position: absolute; top: 8px; right: 8px; }
	.mr__shop { display: none; }
	.mr__cta { bottom: 0; margin: 16px -4px 0; padding: 10px 4px; }
	.mr__ctaBtn { height: 44px; padding: 0 18px; font-size: 13.5px; }

	.mr__strip { flex-direction: column; align-items: stretch; height: auto; padding: 14px; }
	.mr__related { flex-direction: column; align-items: stretch; gap: 6px; }
	.mr__rel { max-width: none; }
	.mr__stripLabel br { display: none; }
}

/* 2026-11-10 リンクが2つ以上：ボタンを2段目に並べて、はみ出さないように */
.mr__shop:has(.mr__shopBtn.is-sub) { flex-wrap: wrap; row-gap: 8px; }
.mr__shop:has(.mr__shopBtn.is-sub) .mr__shopBtns { flex: 1 1 100%; min-width: 0; }
.mr__shop:has(.mr__shopBtn.is-sub) .mr__shopBtn { flex: 1 1 0; min-width: 0; justify-content: center; height: 40px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
