/* ============================================================
  キャンペーン投稿（post_type=cmp）共通スタイル
  旧テンプレート内の <style> ブロックをここに集約（PHPからは削除）。
  ============================================================ */

/* ---- ページ全体の基本タイポグラフィ（post-cmp__body = ACFエディター本文の共通ラッパー） ---- */
.content-sub-cmp__detail {
	margin: 44px 0 30px;
}

.content-sub.cmp .post-cmp__body {
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
}

.content-sub.cmp .post-cmp__body.bottom {
	margin-top: 50px;
}

.content-sub.cmp .post-cmp__body h1,
.content-sub.cmp .post-cmp__body h2,
.content-sub.cmp .post-cmp__body h3,
.content-sub.cmp .post-cmp__body h4,
.content-sub.cmp .post-cmp__body h5,
.content-sub.cmp .post-cmp__body h6 {
	font-weight: bold;
	margin: 1.5em 0 .5em;
	line-height: 1.2;
}

.content-sub.cmp .post-cmp__body p {
	margin-bottom: 1em;
}

.content-sub.cmp .post-cmp__body ul,
.content-sub.cmp .post-cmp__body ol {
	margin: 1em 0;
	padding-left: 2em;
}

.content-sub.cmp .post-cmp__body li {
	margin-bottom: .5em;
}

.content-sub.cmp .post-cmp__body blockquote {
	margin: 1.5em 0;
	padding-left: 1em;
	border-left: 4px solid #d9d9d9;
	background: #fafafa;
	font-style: italic;
}

.content-sub.cmp .post-cmp__body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1em auto 2em;
}

.content-sub.cmp .post-cmp__body table {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
}

.content-sub.cmp .post-cmp__body th,
.content-sub.cmp .post-cmp__body td {
	padding: 8px;
	border: 1px solid #ddd;
}

.content-sub.cmp .post-cmp__body th {
	text-align: left;
	background-color: #f2f2f2;
}

.content-sub.cmp .post-cmp__body pre,
.content-sub.cmp .post-cmp__body code {
	background: #f2f2f2;
	border-radius: 4px;
}

.content-sub.cmp .post-cmp__body pre {
	margin: 1.5em 0;
	padding: 1em;
	overflow: auto;
}

.content-sub.cmp .post-cmp__body code {
	padding: 2px 4px;
	font-size: 90%;
}

.content-sub.cmp .post-cmp__body a {
	color: #1a1a1a;
	text-decoration: underline;
}

.content-sub.cmp .post-cmp__body a:hover,
.content-sub.cmp .post-cmp__body a:focus {
	opacity: .5;
}

/* ---- キャンペーンタイトル（campaign_nameを使う場合。現状どの投稿からも呼ばれていないので未使用） ---- */
.content-sub.cmp .post-cmp__campaign-title {
	margin: 80px 0;
	text-align: center;
	font-size: 2.5rem;
	letter-spacing: 10px;
}

/* ---- 「対象商品」見出し・旧キャンペーン見出し ---- */
.content-sub.cmp .volt-campaign h2,
.content-sub.cmp h2.model_number,
.content-sub.cmp .volt-campaign h3,
.content-sub.cmp h3.model_number {
	margin: 50px 0;
	text-align: center;
	font-size: 1.8rem;
	line-height: 1.4;
}

.content-sub.cmp .campaign-visual img {
	width: 800px;
	margin: 50px auto;
}

/* ---- キャンペーン期間・ステータスバッジ（PHPのcmp-date-flexブロックが出力） ---- */
.content-sub.cmp .cmp-date-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ddd;
}

.content-sub.cmp .cmp-date-range,
.content-sub.cmp .cmp-status p {
	display: inline-block;
	margin: 0;
	padding: 4px 10px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: .9rem;
	line-height: 1.4;
	letter-spacing: .03em;
	white-space: nowrap;
}

.content-sub.cmp .cmp-date-range {
	background-color: #f2f2f2;
	color: #666;
	font-weight: 500;
}

.content-sub.cmp .cmp-status p {
	font-weight: bold;
}

.content-sub.cmp .cmp-status p.upcoming {
	color: #1a1a1a;
	background-color: #fff;
	border: 1px solid #1a1a1a;
}

.content-sub.cmp .cmp-status p.active {
	color: #fff;
	background-color: #1a1a1a;
}

.content-sub.cmp .cmp-status p.inactive {
	color: #666;
	background-color: #d9d9d9;
}

/* ---- カテゴリリンク ---- */
.content-sub.cmp .cat_link {
	display: inline-block;
	margin: 10px 0;
	padding: 8px 16px;
	border-radius: 20px;
	background: #f2f2f2;
	font-size: .85rem;
	font-weight: bold;
	text-align: center;
	transition: background-color .2s;
}

/* ---- 対象商品グリッド（PHPのproduct_listループが出力。生きてる機能なので構造は維持） ---- */
.content-sub.cmp .new_campaigns_list2,
.content-sub.cmp .new_products_list2 {
	margin-top: 85px;
}

.content-sub.cmp .cmp-list {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.content-sub.cmp .cmp-list>li {
	width: calc((100% - 260px) / 3);
	margin: 0 0 80px 130px;
}

.content-sub.cmp .cmp-list>li:nth-child(3n+1) {
	margin-left: 0;
}

.content-sub.cmp .cmp-list>li>a {
	display: block;
	position: relative;
}

.content-sub.cmp .cmp-list__tag {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}

.content-sub.cmp .cmp-list__tag ._tag {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 25px;
	color: #fff;
}

.content-sub.cmp .cmp-list__tag ._tag__new {
	width: 65px;
	background-color: #b52523;
	font-size: 17px;
}

.content-sub.cmp .cmp-list__tag ._tag__finished {
	width: 80px;
	background-color: #adadaf;
	font-size: 12px;
}

.content-sub.cmp .cmp-list__pic img {
	width: 100%;
	height: 250px;
	min-height: 250px;
	object-fit: cover;
	object-position: center;
}

.content-sub.cmp .cmp-list__ttl {
	margin-top: 25px;
	text-align: center;
	font-size: 18px;
}

.content-sub.cmp .cmp-list__body {
	margin-top: 15px;
	font-size: 14px;
	line-height: 1.42;
	letter-spacing: .05em;
}

.content-sub.cmp .cmp-list__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 15px;
	text-align: center;
}

.content-sub.cmp .cmp-list__price ._price-main {
	margin-bottom: 8px;
	font-size: 13px;
	color: #666;
	text-decoration: line-through;
}

.content-sub.cmp .cmp-list__price ._limited {
	margin: 15px 0 4px;
	font-size: 15px;
	color: #b52523;
	font-weight: bold;
}

.content-sub.cmp .cmp-list__price ._price {
	font-size: 22px;
	font-weight: bold;
	color: #1a1a1a;
}

.content-sub.cmp .cmp-list__price ._price span {
	display: block;
	margin-bottom: 5px;
	line-height: 1;
}

.content-sub.cmp .cmp-list__price ._price i {
	display: block;
	line-height: 1;
	font-style: normal;
}

.content-sub.cmp .cmp-list__cat {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 190px;
	min-height: 30px;
	margin: 30px auto 0;
	border-radius: 15px;
	background-color: #1a1a1a;
	color: #fff;
	font-size: 15px;
	text-align: center;
}

.content-sub.cmp .cmp-list__tax {
	display: flex;
	flex-wrap: wrap;
	margin-top: -7px;
	padding-top: 20px;
}

.content-sub.cmp .cmp-list__tax>li {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 7px 4px 0 0;
	padding: .05em .5em;
	border: 1px solid #1a1a1a;
	border-radius: 12px;
	font-size: 12px;
}

.content-sub.cmp .cmp-list__icon {
	display: flex;
	flex-wrap: wrap;
	margin: -10px 0 0 -10px;
	padding-top: 20px;
}

.content-sub.cmp .cmp-list__icon>li {
	margin: 10px 10px 0 0;
}

.content-sub.cmp .cmp-list__icon>li img {
	height: 45px;
	width: auto;
}

.content-sub.cmp .cmp-list__purchase-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 30px;
}

.content-sub.cmp .cmp-list__link {
	margin: 4px 8px;
	color: #1a1a1a;
	font-size: 14px;
	text-decoration: underline;
}

.content-sub.cmp .cmp-list__link:hover {
	opacity: .5;
}

.content-sub.cmp .cmp-disclaimer {
	margin: 10px 0 20px;
	padding: 10px 0;
	color: #666;
	font-size: .85rem;
	text-align: center;
}

@media (max-width:768px) {
	.content-sub.cmp .new_products_list2 {
		margin-top: 10.4vw;
	}

	.content-sub.cmp .volt-campaign h2,
	.content-sub.cmp h2.model_number,
	.content-sub.cmp .volt-campaign h3,
	.content-sub.cmp h3.model_number {
		margin: 30px 0;
		font-size: 1.4rem;
	}

	.content-sub.cmp .post-cmp__campaign-title {
		margin: 30px 0;
		font-size: 1.5rem;
		letter-spacing: .8rem;
	}

	.content-sub.cmp .cmp-date-flex {
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 20px;
		padding-bottom: 16px;
	}

	.content-sub.cmp .cmp-date-range,
	.content-sub.cmp .cmp-status p {
		padding: 5px 10px;
		font-size: .75rem;
		line-height: 1.4;
	}

	.content-sub.cmp .cmp-list {
		gap: 16vw 9.33vw;
		padding: 0 2.4vw;
	}

	.content-sub.cmp .cmp-list>li {
		width: calc((100% - 9.33vw) / 2);
		margin: 0;
	}

	.content-sub.cmp .cmp-list__tag ._tag {
		height: 4.53vw;
	}

	.content-sub.cmp .cmp-list__tag ._tag__new {
		width: 12.66vw;
		font-size: 3.2vw;
	}

	.content-sub.cmp .cmp-list__tag ._tag__finished {
		width: 16vw;
		font-size: 2.13vw;
	}

	.content-sub.cmp .cmp-list__pic img {
		height: 37.33vw;
		min-height: 0;
	}

	.content-sub.cmp .cmp-list__ttl {
		margin-top: 5.33vw;
		font-size: 1.2rem;
	}

	.content-sub.cmp .cmp-list__price {
		margin-top: 2.66vw;
	}

	.content-sub.cmp .cmp-list__price ._price span {
		font-size: 4.8vw;
	}

	.content-sub.cmp .cmp-list__price ._price i {
		font-size: 3.2vw;
	}

	.content-sub.cmp .cmp-list__price ._limited {
		margin: 2.66vw 0 1.33vw;
		font-size: 2.66vw;
	}

	.content-sub.cmp .cmp-list__cat {
		width: 100%;
		min-height: 5.33vw;
		margin-top: 4vw;
		border-radius: 2.66vw;
		font-size: 2.93vw;
	}

	.content-sub.cmp .cmp-list__body {
		margin-top: 4vw;
		font-size: 2.93vw;
		line-height: 1.5;
	}

	.content-sub.cmp .cmp-list__tax {
		flex-direction: column;
		margin-top: -.8vw;
		padding-top: 4vw;
	}

	.content-sub.cmp .cmp-list__tax>li {
		width: 100%;
		margin-top: .8vw;
		border-radius: 2.13vw;
		font-size: 2.93vw;
		padding: .05em .5em;
	}

	.content-sub.cmp .cmp-list__icon {
		margin: -2.66vw 0 0 -2.66vw;
		padding-top: 4vw;
	}

	.content-sub.cmp .cmp-list__icon>li {
		margin: 2.66vw 2.66vw 0 0;
	}

	.content-sub.cmp .cmp-list__icon>li img {
		height: 8vw;
	}

	.content-sub.cmp .cmp-disclaimer {
		text-align: left;
	}

	.content-sub.cmp .cat_link {
		padding: 8px 8px;
		text-align: center;
	}

	.post-cmp__body.bottom h3 {
		display: block;
		padding-left: 0;
		font-size: 1.3rem;
	}
}

/* ============================================================
  フォロー/リポスト型 応募UIパーツ（.cmp-campaign）
  投稿本文（ACFエディター）側はこのクラスで全体をラップして使う（キャンペーンごとに使い回す汎用クラス）。
  例: <div id="任意のキャンペーン固有id" class="cmp-campaign"> ... </div>
  色・ボタン形状・ホバー挙動はcommon.cssの.btn-common/.nav__btn__shopに合わせている
  （ブランドカラー#1a1a1a、ホバーはopacity.5のフェードのみ、角丸は高さの半分）。
  上の.post-cmp__body汎用スタイル（a下線・table罫線など）に負けないよう!importantで明示的に上書きしている。
  ============================================================ */
.cmp-campaign {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 0 48px;
	color: #1a1a1a;
	font-size: 15px;
	line-height: 1.8;
}

.cmp-campaign * {
	box-sizing: border-box;
}

.cmp-campaign br,
.cmp-campaign p:empty {
	display: none;
}

.cmp-campaign img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.cmp-campaign p {
	margin: 0 0 14px;
}

.cmp-campaign .twitter-tweet,
.cmp-campaign .twitter-tweet-rendered {
	margin: 32px auto 0 !important;
}

.cmp-campaign strong {
	display: block;
	margin: 0 0 16px;
	line-height: 1.6;
}

.cmp-campaign h2 {
	font-size: 19px;
	line-height: 1.4;
	margin: 64px 0 24px;
	padding: 0 0 12px;
	border-bottom: 1px solid #ddd;
}

.cmp-campaign h3 {
	font-size: 16px;
	line-height: 1.4;
	margin: 28px 0 12px;
}

.cmp-campaign .cp-hero img {
	width: 100%;
	max-width: 550px;
	margin: auto;
}

.cmp-campaign .cp-hero {
	max-width: 550px;
	margin: auto;
}

.cmp-campaign .cp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cmp-campaign .cp-entry {
	margin: 40px 0 0;
	padding: 0;
}

.cmp-campaign .cp-entry ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: cp;
}

.cmp-campaign .cp-entry li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 14px;
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid #ddd;
	counter-increment: cp;
}

.cmp-campaign .cp-entry li::before {
	content: counter(cp);
	flex: 0 0 26px;
	height: 26px;
	border-radius: 50%;
	background: #1a1a1a;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	line-height: 26px;
	text-align: center;
}

.cmp-campaign .cp-step {
	flex: 1 1 0;
	min-width: 0;
	font-weight: bold;
	font-size: 15px;
	line-height: 1.4;
}

.cmp-campaign .cp-x,
.cmp-campaign .cp-x:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 108px;
	min-height: 44px;
	padding: 0 16px;
	background-color: #1a1a1a !important;
	color: #fff !important;
	border: 1px solid #1a1a1a;
	border-radius: 22px;
	text-decoration: none !important;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: .05em;
	line-height: 1.2;
	transition: opacity .3s linear;
}

.cmp-campaign .cp-x.is-light,
.cmp-campaign .cp-x.is-light:visited {
	background-color: transparent !important;
	color: #1a1a1a !important;
}

.cmp-campaign .cp-x:hover,
.cmp-campaign .cp-x:hover:visited {
	text-decoration: none !important;
	opacity: .5;
}

.cmp-campaign .cp-pair {
	display: flex;
	width: 100%;
	gap: 12px;
	margin-top: 4px;
	flex: 1 1 100%;
}

.cmp-campaign .cp-pair .cp-x {
	flex: 1 1 0;
	min-width: 0;
}

.cmp-campaign .cp-note {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13px;
	color: #666;
}

.cmp-campaign .cp-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	table-layout: auto;
}

.cmp-campaign .cp-table th,
.cmp-campaign .cp-table td {
	padding: 16px 0;
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #ddd !important;
	font-size: 15px;
	vertical-align: middle;
}

.cmp-campaign .cp-table th {
	width: auto;
	text-align: left;
	font-weight: normal;
}

.cmp-campaign .cp-table td {
	width: 1%;
	text-align: right;
	font-weight: bold;
	white-space: nowrap;
	padding-left: 12px;
}

.cmp-campaign .cp-models {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin: 20px 0 0;
}

.cmp-campaign .cp-models img {
	width: 100%;
	border-radius: 10px;
	background: #f2f2f2;
}

.cmp-campaign .cp-models p {
	font-size: 14px;
}

.cmp-campaign .cp-price {
	font-weight: bold;
	font-size: 15px;
}

.cmp-campaign .cp-link,
.cmp-campaign .cp-link:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 20px 0 0;
	border: 1px solid #1a1a1a;
	border-radius: 22px;
	background-color: transparent !important;
	color: #1a1a1a !important;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .05em;
	text-decoration: none !important;
	transition: opacity .3s linear;
}

.cmp-campaign .cp-link:hover,
.cmp-campaign .cp-link:hover:visited {
	text-decoration: none !important;
	opacity: .5;
}

@media (min-width:481px) {
	.cmp-campaign .cp-models {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.cmp-campaign .cp-models>div {
		display: flex;
		flex-direction: column;
	}

	.cmp-campaign .cp-models .cp-link {
		margin-top: auto;
	}
}

.cmp-campaign .cp-list {
	list-style: disc;
	margin: 24px 0 0;
	padding: 0 0 0 1.3em;
	font-size: 14px;
}

.cmp-campaign .cp-list li {
	margin: 0 0 10px;
	padding: 0;
	line-height: 1.7;
}

.cmp-campaign .cp-small {
	font-size: 13px;
	color: #666;
}

.cmp-campaign a:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

@media (max-width:340px) {
	.cmp-campaign .cp-entry li>.cp-x {
		flex: 1 1 100%;
	}
}

/* PC表示では.content-inner-1000（1000px）の中で560pxは狭すぎるので幅を広げる */
@media (min-width:769px) {
	.cmp-campaign {
		max-width: 1000px;
	}
}

/* 追加の余白調整：ブロック間・ボタン周りを広めに */
.cmp-campaign .cp-choice {
	margin: 40px 0 0;
	padding: 28px 20px;
	background: #fafafa;
	border-radius: 12px;
}

.cmp-campaign .cp-choice h3 {
	margin: 0 0 12px;
	text-align: center;
}

.cmp-campaign .cp-choice-note {
	margin: 0 0 20px;
	text-align: center;
}

.cmp-campaign .cp-choice .cp-small {
	margin: 16px 0 0;
}

.cmp-campaign .cp-product-link {
	margin: 28px 0 0;
}

.cmp-campaign .cp-period {
	font-weight: bold;
}

@media (max-width:480px) {
	.cmp-campaign h2 {
		margin: 48px 0 20px;
	}

	.cmp-campaign .cp-choice {
		padding: 24px 16px;
	}
}

/* 「まっしろ派？まっくろ派？」ブロックを中央寄せ */
.cmp-campaign .cp-choice {
	text-align: center;
}

.cmp-campaign .cp-choice .cp-pair {
	justify-content: center;
}