/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/
.madoshop-news-list {
	margin: 0;
	padding: 0;
}

.madoshop-news-item {
	display: grid;
	grid-template-columns: 145px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 17px 0;
	border-bottom: 1px solid #dddddd;
}

.madoshop-news-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	white-space: nowrap;
}

.madoshop-news-new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #ed7625;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
}

.madoshop-news-date {
	color: #666666;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.madoshop-news-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
}

.madoshop-news-title a {
	color: inherit;
	text-decoration: none;
}

.madoshop-news-title a:hover {
	text-decoration: underline;
}

.madoshop-news-error {
	padding: 12px;
	border: 1px solid #cc0000;
	background: #fff5f5;
	color: #990000;
	font-size: 14px;
}

@media screen and (max-width: 767px) {
	.madoshop-news-item {
		display: block;
		padding: 14px 0;
	}

	.madoshop-news-meta {
		margin-bottom: 6px;
	}

	.madoshop-news-title {
		font-size: 14px;
	}
}

.madoshop-event-list {
	margin: 0;
	padding: 0;
}

.madoshop-event-item {
	display: grid;
	grid-template-columns: 145px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 17px 0;
	border-bottom: 1px solid #dddddd;
}

.madoshop-event-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	white-space: nowrap;
}

.madoshop-event-new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 4px 8px;
	border-radius: 999px;
	background: #ed7625;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.05em;
}

.madoshop-event-date {
	color: #666666;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}

.madoshop-event-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
}

.madoshop-event-title a {
	color: inherit;
	text-decoration: none;
}

.madoshop-event-title a:hover {
	text-decoration: underline;
}

.madoshop-event-error {
	padding: 12px;
	border: 1px solid #cc0000;
	background: #fff5f5;
	color: #990000;
	font-size: 14px;
}

@media screen and (max-width: 767px) {

	.madoshop-event-item {
		display: block;
		padding: 14px 0;
	}

	.madoshop-event-meta {
		margin-bottom: 6px;
	}

	.madoshop-event-title {
		font-size: 14px;
	}
}
/* ==================================================
   最近の施工事例
================================================== */

.madoshop-works-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.madoshop-work-card {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid #dddddd;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.madoshop-work-card:hover {
	transform: translateY(-4px);
	border-color: #ef851c;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11);
}

.madoshop-work-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.madoshop-work-card__link:hover,
.madoshop-work-card__link:focus {
	color: inherit;
	text-decoration: none;
}

/* 画像部分 */
.madoshop-work-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f2;
}

.madoshop-work-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.madoshop-work-card:hover .madoshop-work-card__image img {
	transform: scale(1.045);
}

/* 画像が取得できなかった場合 */
.madoshop-work-card__noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			#fff8ef 0%,
			#f5ede3 100%
		);
	color: #d97713;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* NEWバッジ */
.madoshop-work-card__new {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 45px;
	height: 45px;
	padding: 4px;
	border-radius: 50%;
	background: #f58220;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* カード本文 */
.madoshop-work-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 15px 15px 13px;
}

/* 使用した商品 */
.madoshop-work-card__product-label {
	margin: 0;
	color: #333333;
	font-size: 12px;
	font-weight: 700;
	line-height: 0.7;
	text-decoration: underline;
}

.madoshop-work-card__product {
	margin: -2px 0 8px;
	overflow: hidden;
	color: #555555;
	font-size: 12px;
	line-height: 0.7;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 施工事例タイトル */
.madoshop-work-card__title {
	display: -webkit-box;
	margin: 0 0 5px;
	overflow: hidden;
	color: #222222;
	font-size: 14px;
	font-weight: 700;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.madoshop-work-card:hover .madoshop-work-card__title {
	color: #d96f08;
}

/* 掲載日・矢印 */
.madoshop-work-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

.madoshop-work-card__date {
	color: #888888;
	font-size: 10px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.madoshop-work-card__arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff3e7;
	color: #e87912;
	font-size: 0; /* 元の「＞」を非表示 */
	line-height: 1;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.madoshop-work-card__arrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, 1px);
	transform-origin: center;
}

.madoshop-work-card:hover .madoshop-work-card__arrow {
	transform: translateX(2px);
	background: #f58220;
	color: #ffffff;
}
/* 管理者向けエラー表示 */
.madoshop-works-error {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #cc0000;
	border-radius: 6px;
	background: #fff5f5;
	color: #990000;
	font-size: 14px;
}

/* ==================================================
   タブレット
================================================== */

@media screen and (max-width: 991px) {

	.madoshop-works-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 575px) {

	.madoshop-works-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.madoshop-work-card {
		border-radius: 10px;
	}

	.madoshop-work-card__link {
		display: grid;
		grid-template-columns: 42% minmax(0, 1fr);
	}

	.madoshop-work-card__image {
		height: 100%;
		min-height: 175px;
		aspect-ratio: auto;
	}

	.madoshop-work-card__body {
		padding: 13px 12px 11px;
	}

	.madoshop-work-card__product-label,
	.madoshop-work-card__product {
		font-size: 11px;
	}

	.madoshop-work-card__title {
		margin-bottom: 10px;
		font-size: 13px;
		line-height: 1.55;
		-webkit-line-clamp: 3;
	}

	.madoshop-work-card__date {
		font-size: 9px;
	}

	.madoshop-work-card__new {
		top: 8px;
		left: 8px;
		min-width: 39px;
		height: 39px;
		font-size: 9px;
	}
}
/* ==================================================
   お客様の声
================================================== */

.madoshop-voice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* カード */
.madoshop-voice-card {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 2px solid #ef851c;
	border-radius: 12px;
	background: #ffffff;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.madoshop-voice-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.09);
}

/* カード全体のリンク */
.madoshop-voice-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 92px;
	gap: 14px;
	align-items: stretch;
	min-height: 150px;
	padding: 20px 16px 15px 20px;
	color: inherit;
	text-decoration: none;
}

.madoshop-voice-card__link:hover,
.madoshop-voice-card__link:focus {
	color: inherit;
	text-decoration: none;
}

/* テキスト部分 */
.madoshop-voice-card__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

/* お客様の声本文 */
.madoshop-voice-card__message {
	display: -webkit-box;
	height: 5rem;
	margin: 0 0 7px;
	overflow: hidden;
	color: #222222;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.madoshop-voice-card:hover
.madoshop-voice-card__message {
	color: #d96f08;
}

/* 関連する施工事例タイトル */
.madoshop-voice-card__case {
	margin: 0 0 4px;
	overflow: hidden;
	color: #333333;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.45;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* 日付・続きを読む */
.madoshop-voice-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin-top: auto;
	padding-top: 10px;
}

/* 掲載日 */
.madoshop-voice-card__date {
	display: block;
	flex-shrink: 0;
	margin: 0;
	color: #888888;
	font-size: 10px;
	line-height: 1.5;
	text-align: left;
	font-variant-numeric: tabular-nums;
}

/* 続きを読む */
.madoshop-voice-card__more {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	margin: 0;
	padding: 0;
	color: #e87912;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.madoshop-voice-card__more::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 5px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

.madoshop-voice-card:hover
.madoshop-voice-card__more {
	color: #c95f00;
}

/* サムネイル */
.madoshop-voice-card__image {
	align-self: center;
	width: 92px;
	height: 92px;
	overflow: hidden;
	border-radius: 6px;
	background: #f2f2f2;
}

.madoshop-voice-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.madoshop-voice-card:hover
.madoshop-voice-card__image img {
	transform: scale(1.04);
}

/* 管理者向けエラー */
.madoshop-voice-error {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #cc0000;
	border-radius: 6px;
	background: #fff5f5;
	color: #990000;
	font-size: 14px;
}

/* ==================================================
   タブレット
================================================== */

@media screen and (max-width: 991px) {

	.madoshop-voice-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.madoshop-voice-card__link {
		min-height: 135px;
	}
}

/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 575px) {

	.madoshop-voice-card__link {
		grid-template-columns: minmax(0, 1fr) 78px;
		gap: 10px;
		min-height: 125px;
		padding: 15px 12px 12px 15px;
	}

	.madoshop-voice-card__image {
		width: 78px;
		height: 78px;
	}

	.madoshop-voice-card__message {
		height: auto;
		font-size: 14px;
		-webkit-line-clamp: 3;
	}

	.madoshop-voice-card__case {
		font-size: 10px;
	}

	.madoshop-voice-card__footer {
		gap: 6px;
		padding-top: 8px;
	}

	.madoshop-voice-card__date {
		font-size: 9px;
	}

	.madoshop-voice-card__more {
		font-size: 10px;
	}
}