/* 期間限定キャンペーンの告知カード（商品ページ / template-parts/campaign-notice.php）。

   価格・評価のすぐ下に入るので、周りが白地でもカード自身は黒地で完結させる
   （＝テーマ側の配色に影響されない）。緑はサイトの他と同じ #138808 の1色（DESIGN.md）。
   黒地の上の #138808 は 4.06 なので、緑にするのは大きな数字（18.66px 以上の太字）だけにする。 */

.nb-cp {
	margin: 16px 0;
}

.nb-cp__card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 22px 18px 18px;
	border-radius: 16px;
	background: #101211;
	color: #ffffff;
	text-align: center;
	font-feature-settings: "palt";
}

/* align-items:center の子は既定で content 幅になり、長い行（期間など）が
   カードからはみ出す。中身は全部カード幅に収める。 */
.nb-cp__card > * {
	max-width: 100%;
}

/* 上辺の光る緑のライン。カード全体を縁取ると重いので、天面だけ。 */
.nb-cp__card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 2px;
	background: var(--nb-color-brand, #138808);
	box-shadow: 0 0 12px rgba(19, 136, 8, 0.6);
}

/* --- バッジ「● NICOBAYの日 限定」 --- */
.nb-cp__badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 7px 18px;
	border: 1px solid rgba(19, 136, 8, 0.8);
	border-radius: 999px;
	background: rgba(19, 136, 8, 0.15);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	color: #ffffff;
}

.nb-cp__badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nb-color-sale, #138808);
}

/* --- 見出し「最大 30%OFF」 --- */
.nb-cp__headline {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0;
	margin: 0;
	width: 100%;
	line-height: 1;
}

.nb-cp__headline-lead {
	margin-right: 4px;
	font-size: 1.8rem;
	font-weight: 700;
	color: #ffffff;
}

.nb-cp__headline-num {
	font-size: 5.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--nb-color-brand, #138808);
	text-shadow: 0 0 18px rgba(19, 136, 8, 0.45);
	font-variant-numeric: tabular-nums;
}

.nb-cp__headline-unit,
.nb-cp__headline-suffix {
	font-size: 2.4rem;
	font-weight: 800;
	color: var(--nb-color-brand, #138808);
	text-shadow: 0 0 14px rgba(19, 136, 8, 0.4);
}

.nb-cp__headline-suffix {
	margin-left: 8px;
	letter-spacing: 0.01em;
}

/* --- 施策のパネル --- */
.nb-cp__terms {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid #272b29;
	border-radius: 12px;
	background: #171a18;
}

.nb-cp__term {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin: 0;
	line-height: 1.2;
}

.nb-cp__term-label {
	font-size: 1.4rem;
	font-weight: 700;
	color: #ffffff;
}

.nb-cp__term-num {
	font-size: 2.8rem;
	font-weight: 800;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.nb-cp__term-unit {
	font-size: 1.4rem;
	font-weight: 700;
	color: #ffffff;
}

/* 14px の単位は白のまま（黒地の #138808 は小さな文字だと読みにくい） */
.nb-cp__term--hi .nb-cp__term-num {
	color: var(--nb-color-brand, #138808);
	text-shadow: 0 0 12px rgba(19, 136, 8, 0.4);
}

/* 2 つの施策の間の区切り。横線の中央に丸い「＋」を置く。 */
.nb-cp__plus {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nb-cp__plus::before,
.nb-cp__plus::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #2c312e;
}

.nb-cp__plus-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1px solid rgba(19, 136, 8, 0.8);
	border-radius: 50%;
	background: #101211;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1;
	color: var(--nb-color-brand, #138808);
}

/* --- 期間 --- */
.nb-cp__period {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	width: 100%;
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.5;
	color: #e7ebe8;
	font-variant-numeric: tabular-nums;
}

.nb-cp__period-icon {
	flex: 0 0 auto;
	margin-top: 3px;
	color: #8d968f;
}

/* --- カウントダウン --- */
.nb-cp__timer {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 14px 12px 16px;
	border: 1px solid #272b29;
	border-radius: 12px;
	background: #171a18;
}

.nb-cp__timer-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	color: #ffffff;
}

.nb-cp__timer-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--nb-color-sale, #138808);
	animation: nb-cp-blink 1.5s infinite;
}

@keyframes nb-cp-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.nb-cp__timer-dot { animation: none; }
}

.nb-cp__clock {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.nb-cp__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 72px;
	padding: 8px 10px 7px;
	border: 1px solid #30352f;
	border-radius: 8px;
	background: #1f2321;
}

.nb-cp__unit-num {
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

/* 秒も時・分と同じ白（2026-10-30 小田さん「秒数の緑色が気持ち悪いから白に」）。以前は秒だけ緑 */
.nb-cp__unit--hi .nb-cp__unit-num {
	color: #ffffff;
}

.nb-cp__unit-label {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	color: #8d968f;
}

.nb-cp__colon {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: #5d655f;
	transform: translateY(-5px);
}

/* --- 注記 --- */
.nb-cp__note {
	margin: 0;
	width: 100%;
	font-size: 1.1rem;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #8d968f;
}

@media screen and (min-width: 750px) {
	.nb-cp__card {
		padding: 24px 24px 20px;
	}

	.nb-cp__headline-num {
		font-size: 5.8rem;
	}

	.nb-cp__period {
		font-size: 1.5rem;
	}
}
