
.bcc-floating-wrap[hidden] {
	display: none !important;
}

.bcc-floating-wrap {
	position: fixed;
	z-index: 9990;
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease;
}

.bcc-floating-wrap.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.bcc-floating {
	box-sizing: border-box;
	text-decoration: none !important;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: 0 8px 24px rgba(27, 55, 78, .16);
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.bcc-floating:hover,
.bcc-floating:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(27, 55, 78, .22);
}

.bcc-checkmark {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: #217a65;
	font-weight: 900;
}

.bcc-arrow {
	margin-left: auto;
}

/* PC: コンテンツ右側に追尾するカード */
.bcc-pc-card {
	display: none;
	box-sizing: border-box;
	overflow: hidden;
	text-decoration: none !important;
	border: 1px solid #d7e8e2;
	border-radius: 18px;
	background: #fff;
	color: #20342f !important;
	box-shadow: 0 12px 32px rgba(27, 55, 78, .14);
	transition: transform .18s ease, box-shadow .18s ease;
}

.bcc-pc-card:hover,
.bcc-pc-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 36px rgba(27, 55, 78, .20);
}

.bcc-pc-card__image {
	width: 100%;
	overflow: hidden;
	background: #f8fcfa;
	padding: 10px 10px 0;
	box-sizing: border-box;
}

.bcc-pc-card__image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 320px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.bcc-pc-card__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 18px 18px 0;
	border-radius: 50%;
	background: #e7f4ef;
	color: #2f8f79;
	font-size: 24px;
	font-weight: 900;
}

.bcc-pc-card__body {
	padding: 16px 18px 18px;
}

.bcc-pc-card__title {
	margin: 0 0 7px !important;
	color: #20342f !important;
	font-size: 18px;
	line-height: 1.45;
	font-weight: 800;
	text-align: var(--bcc-pc-title-align, left);
}

.bcc-pc-card__text {
	margin: 0 0 13px !important;
	color: #53635f !important;
	font-size: 13px;
	line-height: 1.7;
	font-weight: 400;
}

.bcc-pc-card__button {
	display: flex;
	align-items: center;
	justify-content: var(--bcc-pc-button-justify, flex-start);
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border-radius: 11px;
	background: var(--bcc-pc-button-bg, #2f8f79);
	color: var(--bcc-pc-button-text, #ffffff);
	font-size: 14px;
	font-weight: 800;
}

.bcc-pc-card__button-label,
.bcc-pc-card__button-arrow {
	flex: 0 0 auto;
}


.bcc-pc-tab {
	display: none;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	flex-direction: var(--bcc-pc-tab-flex-direction, column);
	gap: 7px;
	width: var(--bcc-pc-tab-width, 54px);
	height: var(--bcc-pc-tab-height, 150px);
	padding: 10px 8px;
	border-radius: 14px 0 0 14px;
	background: var(--bcc-pc-button-bg, #2f8f79);
	color: var(--bcc-pc-button-text, #ffffff) !important;
	box-shadow: 0 10px 26px rgba(27, 55, 78, .18);
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	transition: transform .18s ease, box-shadow .18s ease;
}

.bcc-pc-tab:hover,
.bcc-pc-tab:focus-visible {
	transform: translateX(-2px);
	box-shadow: 0 12px 30px rgba(27, 55, 78, .24);
}

.bcc-pc-tab__text {
	min-width: 0;
	overflow-wrap: anywhere;
	writing-mode: var(--bcc-pc-tab-writing-mode, vertical-rl);
	text-orientation: var(--bcc-pc-tab-text-orientation, upright);
	letter-spacing: .08em;
}

.bcc-pc-tab__arrow {
	flex: 0 0 auto;
}

@media (min-width: 1180px) {
	.bcc-floating-wrap {
		top: 52%;
		left: auto;
		right: 18px;
		transform: translateY(-50%);
	}

	.bcc-floating-wrap.is-visible {
		transform: translateY(-50%);
	}

	.bcc-pc-card,
	.bcc-pc-tab {
		display: none;
	}

	.bcc-floating-wrap.is-pc-large .bcc-pc-card {
		display: block;
		width: var(--bcc-pc-width, 280px);
	}

	.bcc-floating-wrap.is-pc-tab .bcc-pc-tab {
		display: flex;
	}

	.bcc-floating--sp,
	.bcc-sp-close {
		display: none !important;
	}
}

@media (max-width: 1179px) {
	.bcc-floating-wrap {
		left: 50%;
		right: auto;
		bottom: calc(12px + env(safe-area-inset-bottom) + var(--bcc-sp-bottom-offset, 8px) + var(--bcc-sp-detected-offset, 0px));
		width: min(560px, calc(100% - 24px));
		transform: translateX(-50%) translateY(8px);
	}

	.bcc-floating-wrap.is-visible {
		transform: translateX(-50%) translateY(0);
	}

	.bcc-pc-card,
	.bcc-pc-tab {
		display: none;
	}

	.bcc-floating--sp {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 9px;
		width: 100%;
		min-height: var(--bcc-sp-height, 56px);
		padding: 10px 16px;
		border-radius: var(--bcc-sp-radius, 14px);
		background: var(--bcc-sp-bg, #2f8f79);
		color: var(--bcc-sp-text, #ffffff) !important;
		font-size: 15px;
	}

	.bcc-floating--sp .bcc-arrow {
		margin-left: 2px;
	}

	.bcc-floating--sp .bcc-checkmark {
		background: rgba(255,255,255,.92);
		color: #217a65;
	}
}

.bcc-footer-visible .bcc-floating-wrap {
	opacity: 0 !important;
	pointer-events: none !important;
}

/* TOPカード */
.bcc-top-card {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	margin: 28px 0;
	padding: 22px 24px;
	border: 1px solid #dcebe6;
	border-radius: 18px;
	background: linear-gradient(135deg, #f8fcfa 0%, #fffdf4 100%);
	box-shadow: 0 8px 24px rgba(35, 81, 70, .07);
}

.bcc-top-card__icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #2f8f79;
	color: #fff;
	font-size: 25px;
	font-weight: 900;
}

.bcc-top-card__eyebrow {
	margin: 0 0 4px;
	color: #2f8f79;
	font-size: 13px;
	font-weight: 800;
}

.bcc-top-card__title {
	margin: 0 0 6px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #20342f;
	font-size: clamp(20px, 2vw, 27px);
	line-height: 1.35;
}

.bcc-top-card__text {
	margin: 0;
	color: #4b5e59;
	font-size: 14px;
	line-height: 1.75;
}

.bcc-top-card__button,
.bcc-article-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none !important;
	border-radius: 12px;
	background: #2f8f79;
	color: #fff !important;
	font-weight: 800;
	white-space: nowrap;
	transition: transform .18s ease, box-shadow .18s ease;
}

.bcc-top-card__button {
	padding: 13px 16px;
}

.bcc-top-card__button:hover,
.bcc-top-card__button:focus-visible,
.bcc-article-cta__button:hover,
.bcc-article-cta__button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(47, 143, 121, .22);
}

@media (max-width: 767px) {
	.bcc-top-card {
		grid-template-columns: auto 1fr;
		gap: 12px;
		padding: 18px;
		border-radius: 16px;
	}

	.bcc-top-card__icon {
		width: 42px;
		height: 42px;
		font-size: 21px;
	}

	.bcc-top-card__button {
		grid-column: 1 / -1;
		width: 100%;
		margin-top: 2px;
	}

	.bcc-top-card__text {
		font-size: 13px;
	}
}

/* 記事末CTA */
.bcc-article-cta {
	box-sizing: border-box;
	display: flex;
	gap: 14px;
	margin: 34px 0 12px;
	padding: 20px;
	border: 1px solid #d9e9e4;
	border-radius: 16px;
	background: #f8fcfa;
}

.bcc-article-cta__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	background: #e7f4ef;
	color: #2f8f79;
	font-size: 20px;
	font-weight: 900;
}

.bcc-article-cta__title {
	margin: 0 0 7px !important;
	font-size: 18px;
	line-height: 1.5;
	font-weight: 800;
	color: #20342f;
}

.bcc-article-cta__text {
	margin: 0 0 13px;
	color: #4b5e59;
	font-size: 14px;
	line-height: 1.8;
}

.bcc-article-cta__button {
	padding: 11px 15px;
	font-size: 14px;
}

@media (max-width: 560px) {
	.bcc-article-cta {
		padding: 16px;
	}

	.bcc-article-cta__icon {
		display: none;
	}

	.bcc-article-cta__button {
		width: 100%;
	}
}


/* SP fixed CTA close button */
.bcc-sp-close {
	display: none;
}

@media (max-width: 1179px) {
	.bcc-floating-wrap {
		overflow: visible;
	}

	.bcc-sp-close {
		position: absolute;
		top: -8px;
		right: -6px;
		z-index: 3;
		display: grid;
		place-items: center;
		width: 28px;
		height: 28px;
		padding: 0;
		border: 1px solid rgba(0,0,0,.12);
		border-radius: 50%;
		background: #ffffff;
		color: #4c5552;
		box-shadow: 0 3px 10px rgba(27,55,78,.18);
		font-size: 20px;
		font-weight: 700;
		line-height: 1;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.bcc-sp-close:hover,
	.bcc-sp-close:focus-visible {
		background: #f4f6f5;
		color: #20342f;
		outline: none;
	}

	.bcc-sp-close:focus-visible {
		box-shadow: 0 0 0 3px rgba(47,143,121,.25), 0 3px 10px rgba(27,55,78,.18);
	}
}
/* v1.4.3 approved video CTA layout */
.bcc-inline-cta.bcc-video-cta.bcc-inline-cta--disaster-info{border:0;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:24px;padding:20px;border-radius:18px;background:#153e32;box-shadow:none}
.bcc-video-cta.bcc-article-cta{border:0;display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:22px;padding:20px;background:#153e32;color:white;border-radius:18px}
.bcc-video-cta .bcc-article-cta__title,.bcc-video-cta .bcc-article-cta__text{color:white}
.bcc-video-cta .bcc-article-cta__button{background:#d9ed99;color:#153e32!important}
.bcc-video-media{min-width:0;align-self:stretch;display:flex;align-items:center;position:relative;border-radius:10px;overflow:hidden;background:#153e32}
.bcc-video-media video{display:block;width:100%;height:100%;min-height:0;object-fit:contain;aspect-ratio:16/9;border:0;border-radius:10px}
.bcc-video-cta-link{position:absolute;inset:0;z-index:1;border:0;border-radius:10px;text-decoration:none;cursor:pointer}
.bcc-video-cta-link:focus-visible{outline:3px solid #ffffff;outline-offset:-3px}
.bcc-video-controls{position:absolute;z-index:2;bottom:6px;right:6px;display:flex;gap:4px;opacity:0;transition:opacity .15s}
.bcc-video-media:hover .bcc-video-controls,.bcc-video-media:focus-within .bcc-video-controls,.bcc-video-media.is-paused .bcc-video-controls{opacity:1}
.bcc-video-controls button{min-width:44px;min-height:44px;background:rgba(10,30,24,.86);color:white;border:0;border-radius:8px;font:700 13px system-ui;cursor:pointer;padding:8px}
.bcc-video-controls button:focus-visible{outline:3px solid white;outline-offset:2px}
@media(pointer:coarse){.bcc-video-controls{opacity:1}}
@media(max-width:720px){
.bcc-inline-cta.bcc-video-cta.bcc-inline-cta--disaster-info,.bcc-video-cta.bcc-article-cta{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px;border-radius:16px}
.bcc-video-media{align-self:auto}
.bcc-video-media video{height:auto;aspect-ratio:16/9}
.bcc-video-cta .bcc-inline-cta__title{text-align:left}
.bcc-video-cta .bcc-inline-cta__note{text-align:left}
.bcc-video-cta .bcc-article-cta__button{width:100%;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.bcc-video-controls{transition:none;opacity:1}}

/* v1.4.5: article-bottom CTA only; match the accepted disaster CTA type scale. */
.bcc-video-cta.bcc-article-cta .bcc-article-cta__content {
  min-width: 0;
}
.bcc-video-cta.bcc-article-cta .bcc-article-cta__title {
  margin: 0 0 8px !important;
  font-size: clamp(21px, 2.2vw, 29px);
  line-height: 1.35;
}
.bcc-video-cta.bcc-article-cta .bcc-article-cta__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
}
.bcc-video-cta.bcc-article-cta .bcc-article-cta__button {
  display: flex;
  width: min(100%, 560px);
  min-height: 56px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px;
  font-size: 19px;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .bcc-video-cta.bcc-article-cta .bcc-article-cta__title {
    margin-bottom: 7px !important;
    font-size: 21px;
    line-height: 1.4;
  }
  .bcc-video-cta.bcc-article-cta .bcc-article-cta__text {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
  }
  .bcc-video-cta.bcc-article-cta .bcc-article-cta__button {
    width: 100%;
    min-height: 54px;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 14px;
    font-size: 16px;
  }
}

/* v1.4.7: post 158 recommendation CTA. */
.bcc-timeline-cta.bcc-video-cta { margin:24px 0; }
.bcc-timeline-cta__label { margin:0 0 8px!important; font-size:14px; font-weight:700; line-height:1.4; color:#d9ed99; }
.bcc-timeline-cta.bcc-video-cta .bcc-article-cta__button { box-sizing:border-box; white-space:normal; text-align:center; }
