/* ===== 画像カードリスト ===== */
.sh-card-grid {
	--sh-cols: 4;
	--sh-gap: 24px 20px;
	--sh-text: #5a4636;
	--sh-sub: #9a8b80;
	--sh-radius: 8px;
	--sh-border: #ecd9c1;

	display: grid !important;
	grid-template-columns: repeat(var(--sh-cols), minmax(0, 1fr));
	gap: var(--sh-gap);
	margin: 2em 0;
	padding: 0;
	list-style: none;
}

/* 列数を変えたいとき：グループの「追加CSSクラス」に sh-cols-2 / sh-cols-4 を追加 */
.sh-card-grid.sh-cols-2 { --sh-cols: 2; }
.sh-card-grid.sh-cols-4 { --sh-cols: 4; }

.sh-card-grid > li { margin: 0; }

/* カードリストを続けて置いたときも、境目にカード間と同じ余白を入れる */
html body .entry-content > .sh-card-grid.wp-block-group,
.sh-card-grid {
	margin-top: 0 !important;
	margin-bottom: 28px !important;
}
@media (max-width: 781px) {
	html body .entry-content > .sh-card-grid.wp-block-group,
	.sh-card-grid { margin-bottom: 22px !important; }
}

.sh-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	/* 枠 */
	box-sizing: border-box;
	padding: 12px 12px 14px !important;
	background: #fff;
	border: 1px solid var(--sh-border, #ecd9c1);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(87, 53, 34, .06);
}
.sh-card > * { margin-block: 0 !important; }

/* 画像 */
.sh-card .sh-card__img {
	margin: 0 0 12px !important;
	aspect-ratio: 5 / 2; /* 横長にしてカードの高さを約2/3に */
	overflow: hidden;
	border-radius: var(--sh-radius);
	background: #fff;
}
.sh-card .sh-card__img a { display: block; height: 100%; }
.sh-card .sh-card__img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain; /* 画像を切らずに全体を表示 */
	display: block;
	transition: transform .4s ease;
}


/* タイトル */
.sh-card .sh-card__title {
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .03em;
	color: var(--sh-text);
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sh-card .sh-card__title::before,
.sh-card .sh-card__title::after { display: none !important; }
.sh-card .sh-card__title a { color: inherit; text-decoration: none; }
.sh-card .sh-card__title a:hover { opacity: .7; }

/* 日付・ラベル */
.sh-card .sh-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: auto !important;
}
.sh-card .sh-card__date,
.sh-card .sh-card__label {
	margin: 0 !important;
	font-family: inherit;
	font-style: normal;
	font-size: 12px;
	letter-spacing: .03em;
	color: var(--sh-sub);
}
.sh-card .sh-card__label a { color: inherit; text-decoration: none; }

/* レスポンシブ：PC 4列 → 小さめPC・タブレット 3列 → スマホ 2列 */
@media (max-width: 1024px) {
	.sh-card-grid:not(.sh-cols-2) { --sh-cols: 3; }
}
@media (max-width: 781px) {
	.sh-card-grid,
	.sh-card-grid.sh-cols-4 { --sh-cols: 2; --sh-gap: 22px 14px; }
	.sh-card .sh-card__title { font-size: 13px !important; }
}
/* スマホ（幅420px以下）も2列。狭い画面用に余白と文字を少し小さく */
@media (max-width: 420px) {
	.sh-card-grid { --sh-gap: 16px 10px; }
	.sh-card { padding: 8px 8px 10px !important; border-radius: 10px; }
	.sh-card .sh-card__img { margin-bottom: 8px !important; }
	.sh-card .sh-card__title { font-size: 12.5px !important; line-height: 1.5; margin-bottom: 6px !important; }
	.sh-card .sh-card__meta { flex-wrap: wrap; gap: 2px 6px; }
	.sh-card .sh-card__date,
	.sh-card .sh-card__label { font-size: 10.5px; }
	html body .entry-content > .sh-card-grid.wp-block-group,
	.sh-card-grid { margin-bottom: 16px !important; }
}

/* ===== 「買取できるもの」カード内のリンク（行全体を押せる＋右端に ›） ===== */
.sgh-category-card li > a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}
.sgh-category-card li > a::after {
	content: "›";
	flex-shrink: 0;
	color: #f27a29;
	font-weight: 700;
	font-size: 1.25em;
	line-height: 1;
	transition: transform .2s ease;
}
.sgh-category-card li > a:hover,
.sgh-category-card li > a:focus-visible {
	color: #f27a29;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sgh-category-card li > a:hover::after { transform: translateX(2px); }

/* ===== 「投稿と同じデザイン」の固定ページ：白い枠・タイトル・投稿日を非表示 ===== */
html body.sh-article-layout.single-post #main {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 28px !important;
}
/* トップページと同じ幅（1200px）＋ヘッダー下の余白を詰める */
html body.sh-article-layout.single-post #content {
	padding: 20px 0 48px !important;
}
html body.sh-article-layout.single-post #content-in {
	max-width: 1200px !important;
}
@media (max-width: 600px) {
	html body.sh-article-layout.single-post #main { padding: 0 16px !important; }
	html body.sh-article-layout.single-post #content { padding-top: 12px !important; }
}
html body.sh-article-layout.single-post .article-header {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
/* タイトルは見た目だけ隠す（検索エンジン・読み上げ用に残す） */
body.sh-article-layout .article-header .entry-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}
body.sh-article-layout .article-header > *:not(.entry-title) { display: none !important; }

/* ===== 全ページ共通フッター（トップページと同じデザイン） ===== */
body.sh-has-global-footer #footer { display: none !important; }
.sh-global-footer {
	background: #fff;
	color: #26211e;
	font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
.sh-global-footer .sgh-footer {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px;
	font-size: 12px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.sh-global-footer .sgh-brand {
	font-size: 26px;
	font-weight: 900;
	line-height: 1.2;
	color: #ec3e13 !important;
}
.sh-global-footer .sgh-brand small { display: block; font-size: 13px; color: #333; }
.sh-global-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-global-footer nav a { color: #26211e; font-size: 12px; text-decoration: none; }
.sh-global-footer nav a:hover { color: #ec3e13; }
@media (max-width: 767px) {
	.sh-global-footer .sgh-footer { padding: 24px 16px; }
}

/* ===== ページ最後の導線（申込み・買取の流れ） ===== */
.sh-end-cta {
	box-sizing: border-box;
	margin: 48px 0 16px;
	padding: 40px 28px 32px;
	border-radius: 20px;
	background: linear-gradient(115deg, #ffb340, #f26921);
	color: #fff;
	text-align: center;
	box-shadow: 0 10px 30px rgba(242, 105, 33, .18);
}
.sh-end-cta .sh-end-cta__lead {
	display: inline-block;
	margin: 0 0 12px !important;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}
.sh-end-cta .sh-end-cta__title,
html body .entry-content .sh-end-cta h2.sh-end-cta__title {
	margin: 0 0 22px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #fff !important;
	font-size: 30px !important;
	font-weight: 900 !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}
.sh-end-cta .sh-end-cta__title::before,
.sh-end-cta .sh-end-cta__title::after,
html body .entry-content .sh-end-cta h2.sh-end-cta__title::before,
html body .entry-content .sh-end-cta h2.sh-end-cta__title::after { display: none !important; }
.sh-end-cta .sh-sp { display: none; }
.sh-end-cta .sh-end-cta__steps {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 26px !important;
	padding: 0 !important;
	list-style: none;
}
.sh-end-cta .sh-end-cta__steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 8px 16px 8px 8px;
	border-radius: 999px;
	background: #fff;
	color: #26211e;
	font-size: 14px;
	font-weight: 700;
}
.sh-end-cta .sh-end-cta__steps li::before { display: none !important; }
.sh-end-cta .sh-end-cta__steps span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #f26921;
	color: #fff;
	font-size: 13px;
}
.sh-end-cta .sh-end-cta__btns {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 16px;
}
.sh-end-cta a { text-decoration: none !important; }
.sh-end-cta .sh-end-cta__main {
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	border: 1.6px solid #fff;
	border-radius: 999px;
	background: linear-gradient(#ff6841, #e62312);
	box-shadow: 0 4px 0 #b83311, 0 8px 20px rgba(206, 82, 21, .17);
	color: #fff !important;
	font-size: 20px;
	font-weight: 900;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sh-end-cta .sh-end-cta__main:hover { transform: translateY(2px); box-shadow: 0 2px 0 #b83311, 0 6px 16px rgba(206, 82, 21, .17); }
.sh-end-cta .sh-end-cta__sub {
	display: inline-flex;
	align-items: center;
	padding: 12px 26px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	transition: background .15s ease, color .15s ease;
}
.sh-end-cta .sh-end-cta__sub:hover { background: #fff; color: #f26921 !important; }
.sh-end-cta .sh-end-cta__line {
	display: inline-block;
	margin-top: 18px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	opacity: .95;
}
.sh-end-cta .sh-end-cta__line:hover { text-decoration: underline !important; }
@media (max-width: 600px) {
	.sh-end-cta { margin-top: 36px; padding: 30px 16px 24px; border-radius: 16px; }
	html body .entry-content .sh-end-cta h2.sh-end-cta__title { font-size: 22px !important; }
	.sh-end-cta .sh-sp { display: inline; }
	.sh-end-cta .sh-end-cta__steps { gap: 6px; }
	.sh-end-cta .sh-end-cta__steps li { padding: 6px 12px 6px 6px; font-size: 12px; }
	.sh-end-cta .sh-end-cta__btns { flex-direction: column; }
	.sh-end-cta .sh-end-cta__main,
	.sh-end-cta .sh-end-cta__sub { justify-content: center; width: 100%; box-sizing: border-box; }
	.sh-end-cta .sh-end-cta__main { font-size: 18px; }
}

/* リストにない商品も査定可能のお知らせ（導線の上） */
html body .entry-content .sh-end-note {
	margin: 44px 0 0 !important;
	padding: 16px 20px !important;
	border: 2px dashed #f2a266;
	border-radius: 12px;
	background: #fff;
	color: #5a4636;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}
.sh-end-note + .sh-end-cta { margin-top: 16px; }
@media (max-width: 600px) {
	html body .entry-content .sh-end-note { margin-top: 32px !important; padding: 14px 14px !important; font-size: 13px; }
	.sh-end-note + .sh-end-cta { margin-top: 12px; }
}

/* ===== 「買取できるもの」ページの上下余白を詰める ===== */
.sgh-items-page .sgh-items-page__hero { padding-top: 40px !important; padding-bottom: 24px !important; }
.sgh-items-page .sgh-items-jump { padding-bottom: 24px !important; }
.sgh-items-page .sgh-major { padding-top: 24px !important; padding-bottom: 24px !important; }
.sgh-items-page .sgh-major + .sgh-major { margin-top: 16px !important; }
.sgh-items-page .sgh-items-page__content { padding-bottom: 24px !important; }
@media (max-width: 600px) {
	.sgh-items-page .sgh-items-page__hero { padding-top: 28px !important; padding-bottom: 16px !important; }
	.sgh-items-page .sgh-major { padding-top: 16px !important; padding-bottom: 16px !important; }
	.sgh-items-page .sgh-major + .sgh-major { margin-top: 8px !important; }
}
