@charset "UTF-8";
/*
 * にこいち：有料アドオンの置き換え部品（inc/nicoichi-addon-parts.php と対）
 *
 * 1. 円グラフ          … 旧 Happy Addons Pro の ha-pie-chart
 * 2. お客様の声スライダー … 旧 Ele Custom Skin Pro のスライダー表示（トップ・スマホ）
 * 3. 一覧カードの高さ揃え … 旧 Ele Custom Skin Pro の same_height
 * 4. インスタグラムのボタン … 旧 Instagram Feed Pro の欄（いまはボタンだけ）
 *
 * 数値は旧部品を実測して合わせた（DB変更メモ 36章）。
 * 部品を使っているページでだけ読み込まれる。
 */

/* ==========================================================================
   1. 円グラフ
   高さ 340 = タイトル 41.6 + 凡例 32 + グラフ 266.4（Chart.js 2 と同じ割り付け）
   ========================================================================== */
.wh-pie {
	display: flex;
	flex-direction: column;
	height: 340px;
	margin: 0;
	container-type: inline-size;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #222;
}

/* Chart.js はタイトルを折り返さず、幅が足りないと字を横に潰して1行に収めていた。
   ここでは文字数（--wh-pie-chars）から1行に収まる大きさを出し、
   それが 13px を下回る幅（スマホ）では 13px のまま2行に折り返す（字を潰さない）。
   PC は 18px・1行・高さ 41.6px で旧と同じ。スマホはグラフが少し小さくなる。 */
.wh-pie__title {
	box-sizing: border-box;
	flex: 0 0 auto;
	min-height: 41.6px;
	margin: 0;
	padding: 10px 0;
	font-size: max(13px, min(18px, calc(100cqi / var(--wh-pie-chars, 20))));
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-wrap: balance;
}

.wh-pie__legend {
	box-sizing: border-box;
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 10px;
	height: 32px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	font-size: 12px;
	line-height: 12px;
}

.wh-pie__legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.wh-pie__legend-item::before {
	content: none;
}

.wh-pie__swatch {
	box-sizing: border-box;
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 12px;
	border: 1px solid #fff;
}

.wh-pie__chart {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wh-pie__svg {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	overflow: visible;
}

.wh-pie__svg path {
	stroke: #fff;
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	transition: stroke 0.15s;
}

.wh-pie__svg path:hover {
	stroke: #f5f5f5;
}

/* ==========================================================================
   2. お客様の声スライダー（スマホ）
   旧：幅 calc(100% - 12px)・下に 30px の余白・点は 6px
   ========================================================================== */
.wh-voice-slider {
	position: relative;
	/* Swiper 本体のCSSは変数で位置と大きさを決めている（セレクタが強いので変数で渡す） */
	--swiper-pagination-bottom: 14px;
	--swiper-pagination-bullet-size: 6px;
	--swiper-pagination-bullet-horizontal-gap: 6px;
	--swiper-pagination-color: #000;
	--swiper-pagination-bullet-inactive-color: #000;
	--swiper-pagination-bullet-inactive-opacity: 0.2;
}

.wh-voice-slider .wh-voice-slider__swiper {
	position: relative;
	box-sizing: border-box;
	margin: 0 6px;
	padding-bottom: 30px;
	overflow: hidden;
}

/* Swiper が動かない環境でも1枚目だけはきちんと見えるように */
.wh-voice-slider__swiper:not(.is-ready) .swiper-wrapper {
	display: flex;
}

.wh-voice-slider__swiper:not(.is-ready) .swiper-slide {
	flex: 0 0 100%;
}

.wh-voice-slider .swiper-slide {
	height: auto;
}

/* Elementor の e-swiper.css（後から読まれる・4段）が bottom を上書きするので5段で指定 */
.wh-voice-slider .wh-voice-slider__swiper.swiper > .swiper-pagination.swiper-pagination-bullets {
	position: absolute;
	top: auto;
	bottom: 11px;
	left: 0;
	width: 100%;
	line-height: 6px;
	text-align: center;
}

.wh-voice-slider .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	margin: 0 6px;
	background: #000;
	opacity: 0.2;
}

.wh-voice-slider .swiper-pagination-bullet-active {
	opacity: 1;
}

/* カード（旧ループテンプレート 7955 と同じ寸法）
   Elementor の .elementor-kit-6 a・.swiper-slide a（後から読まれる）に負けないよう、
   リンクは2段で指定している。 */
.wh-voice-card {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
}

.wh-voice-card a.wh-voice-card__media {
	display: block;
	line-height: 0;
}

.wh-voice-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wh-voice-card__cat {
	position: absolute;
	top: 0;
	left: 0;
	margin: 10px;
	padding: 5px 10px;
	background: #942827;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	color: #fff;
}

.wh-voice-card .wh-voice-card__cat a {
	color: #fff;
	text-decoration: none;
}

.wh-voice-card__title {
	margin: 0;
	padding: 2px 0 0;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #3e4f62;
}

.wh-voice-card__title::before,
.wh-voice-card__title::after {
	content: none;
}

.wh-voice-card .wh-voice-card__title a {
	color: #3e4f62;
	text-decoration: underline;
}

.wh-voice-card .wh-voice-card__title a:hover {
	text-decoration: none;
}

.wh-voice-card__label {
	align-self: flex-start;
	margin: 0;
	padding: 6px 10px;
	background: #f7f7f7;
	font-size: 12px;
	line-height: 1;
	color: #7a7a7a;
}

.wh-voice-card__more {
	margin: 0;
	text-align: right;
}

.wh-voice-card a.wh-voice-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 20px;
	border: 1px solid #942827;
	border-radius: 26px;
	background: #fff;
	font-size: 12px;
	line-height: 1;
	color: #54595f;
	text-decoration: none;
	transition: color 0.3s;
}

.wh-voice-card a.wh-voice-card__btn:hover,
.wh-voice-card a.wh-voice-card__btn:focus {
	color: #942827;
	text-decoration: none;
}

.wh-voice-card__arrow {
	display: block;
	width: 12px;
	height: auto;
	fill: #942827;
}

/* ==========================================================================
   3. 一覧カードの高さ揃え（旧 Ele Custom Skin Pro の same_height）
   トップ「コラム」485c9ba と HOME105平屋「モデルハウス」a7d7024。
   旧プラグインが Elementor の生成CSSに書き出していた指定をそのまま写した。
   ========================================================================== */
.elementor-element-485c9ba .ecs-link-wrapper,
.elementor-element-485c9ba .ecs-custom-grid .ecs-post-loop,
.elementor-element-485c9ba .ecs-post-loop > .elementor,
.elementor-element-485c9ba .ecs-post-loop > .elementor .elementor-container,
.elementor-element-a7d7024 .ecs-link-wrapper,
.elementor-element-a7d7024 .ecs-custom-grid .ecs-post-loop,
.elementor-element-a7d7024 .ecs-post-loop > .elementor,
.elementor-element-a7d7024 .ecs-post-loop > .elementor .elementor-container {
	height: 100%;
}

.elementor-element-485c9ba .elementor-post,
.elementor-element-a7d7024 .elementor-post {
	height: auto;
}

/* ==========================================================================
   4. インスタグラムのボタン（旧 Elementor ボタン f1ca5d4 と同じ寸法）
   ========================================================================== */
.wh-insta {
	margin: 0;
	text-align: center;
}

.wh-insta a.wh-insta__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 380px;
	max-width: 100%;
	height: 50px;
	padding: 12px 24px;
	border: 1px solid #942827;
	border-radius: 25px;
	background: #fff;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	color: #333;
	text-decoration: none;
	transition: color 0.3s;
}

.wh-insta a.wh-insta__btn:hover,
.wh-insta a.wh-insta__btn:focus {
	color: #942827;
	text-decoration: none;
}

.wh-insta__arrow {
	display: block;
	flex: 0 0 auto;
	width: 1em;
	height: auto;
	fill: #942827;
}

@media (max-width: 767px) {
	.wh-insta a.wh-insta__btn {
		width: 300px;
		height: 40px;
		font-size: 16px;
	}
}
