/* Energy Solutions - Page-specific Styles */
/* v2.1 — Fixed: removed bordered cards, matched FA Solutions patterns, resolved .energy-diagram class conflict */

/* ============================================
   Hero / Main Visual (page-specific BG)
   ============================================ */
.marketdev-energy-solutions .energy-hero {
	background-image: url(/images/marketdev/22_Shikai-EngSol-Img01.png);
}

/* ============================================
   Shared section text
   ============================================ */
.energy-section-text {
	line-height: 1.8;
	color: #333;
}

@media screen and (min-width: 768px) {
	.energy-section-text {
		font-size: 15px;
		margin-bottom: 25px;
	}
}

@media screen and (max-width: 767px) {
	.energy-section-text {
		font-size: 14px;
		margin-bottom: 20px;
	}
}

/* ============================================
   S3: 3つの柱 — Three Pillars Introduction
   ============================================ */
.energy-pillars-section {
	background-color: #fff;
}

@media screen and (min-width: 768px) {
	.energy-pillars-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-pillars-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

.pillars-diagram {
	margin-top: 20px;
}

.energy-pillars-section .energy-section-text:last-child {
	margin-bottom: 0;
}

/* Sub-headings within pillars section */
.energy-sub-heading {
	font-weight: bold;
	color: #1a3a5c;
	margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
	.energy-sub-heading {
		font-size: 16px;
	}
}

@media screen and (max-width: 767px) {
	.energy-sub-heading {
		font-size: 15px;
	}
}

.pillars-diagram img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   S4: 省エネ — サービス紹介
   ============================================ */
.energy-shonene-intro-section {
	background-color: #f5f7fa;
}

@media screen and (min-width: 768px) {
	.energy-shonene-intro-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-shonene-intro-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

/* ============================================
   S4（統合）: 省エネ画像行
   ============================================ */
.energy-save-section {
	background-color: #fff;
}

@media screen and (min-width: 768px) {
	.energy-save-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-save-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

/* ============================================
   Shared: Two-image horizontal row
   ============================================ */
.energy-img-row {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
	align-items: stretch;
}

.energy-img-row > * {
	flex: 1;
	margin-bottom: 0;
}

.energy-img-row .energy-photo img,
.energy-img-row .es-diagram img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.es-diagram-wrap {
	display: flex;
	flex-direction: column;
}

@media screen and (max-width: 767px) {
	.energy-img-row {
		flex-direction: column;
		gap: 15px;
	}
}

/* ============================================
   Shared: Section photo
   ============================================ */
.energy-photo {
	margin-bottom: 25px;
	line-height: 0;
}

@media screen and (max-width: 767px) {
	.energy-photo {
		margin-bottom: 20px;
	}
}

.energy-photo img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   Shared: Energy detail grid (sub-service labels + text)
   Matches FA Solutions equipment-grid / case-detail pattern
   ============================================ */
.energy-detail-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 25px;
}

@media screen and (min-width: 768px) {
	.energy-detail-grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.energy-detail-grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.energy-detail-grid {
		grid-template-columns: 1fr;
		gap: 15px;
		margin-bottom: 20px;
	}
}

.energy-detail-label {
	font-weight: bold;
	color: #0095d9;
	margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
	.energy-detail-label {
		font-size: 16px;
	}
}

@media screen and (max-width: 767px) {
	.energy-detail-label {
		font-size: 15px;
	}
}

.energy-detail-item p {
	line-height: 1.8;
	color: #333;
}

@media screen and (min-width: 768px) {
	.energy-detail-item p {
		font-size: 14px;
	}
}

@media screen and (max-width: 767px) {
	.energy-detail-item p {
		font-size: 13px;
	}
}

/* ============================================
   Shared: Energy services diagram
   (renamed from .energy-diagram to avoid conflict
    with marketdev.css top-page .energy-diagram)
   ============================================ */
.es-diagram {
	margin-bottom: 25px;
}

@media screen and (max-width: 767px) {
	.es-diagram {
		margin-bottom: 20px;
	}
}

.es-diagram img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   S5: 創エネ
   ============================================ */
.energy-create-section {
	background-color: #fff;
}

@media screen and (min-width: 768px) {
	.energy-create-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-create-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

/* ============================================
   S6: 蓄エネ
   ============================================ */
.energy-store-section {
	background-color: #f5f7fa;
}

@media screen and (min-width: 768px) {
	.energy-store-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-store-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

/* UPS feature block */
.ups-feature {
	margin-bottom: 25px;
}

@media screen and (max-width: 767px) {
	.ups-feature {
		margin-bottom: 20px;
	}
}

.ups-image {
	line-height: 0;
}

@media screen and (min-width: 768px) {
	.ups-image {
		max-width: 100%;
	}
}

.ups-image img {
	width: 100%;
	height: auto;
	display: block;
}

.ups-caption {
	font-weight: bold;
	color: #1a3a5c;
	margin-top: 10px;
}

.ups-caption-above {
	text-align: center;
	margin-top: 0;
	margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
	.ups-caption {
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.ups-caption {
		font-size: 14px;
	}
}

/* ============================================
   S7: EVカーリース
   ============================================ */
.energy-ev-section {
	background-color: #fff;
}

@media screen and (min-width: 768px) {
	.energy-ev-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-ev-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

.ev-images {
	display: grid;
	gap: 20px;
	margin-bottom: 1.5em;
}

@media screen and (min-width: 768px) {
	.ev-images {
		grid-template-columns: 3fr 4fr;
		align-items: end;
	}
}

@media screen and (max-width: 767px) {
	.ev-images {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

.ev-image {
	line-height: 0;
}

.ev-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* EV feature content */
.ev-feature-heading {
	font-weight: bold;
	color: #1a3a5c;
	margin-bottom: 15px;
}

@media screen and (min-width: 768px) {
	.ev-feature-heading {
		font-size: 17px;
	}
}

@media screen and (max-width: 767px) {
	.ev-feature-heading {
		font-size: 15px;
	}
}

.ev-feature-list {
	line-height: 1.8;
	color: #333;
}

.ev-feature-list dt {
	font-weight: bold;
	margin-top: 12px;
}

.ev-feature-list dt:first-child {
	margin-top: 0;
}

.ev-feature-list dd {
	margin-left: 0;
}

@media screen and (min-width: 768px) {
	.ev-feature-list dt,
	.ev-feature-list dd {
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.ev-feature-list dt,
	.ev-feature-list dd {
		font-size: 14px;
	}
}

/* ============================================
   S8: お客様の声、導入事例
   ============================================ */
.energy-casestudy-section {
	background-color: #fff;
}

@media screen and (min-width: 768px) {
	.energy-casestudy-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-casestudy-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

.casestudy-sub-heading {
	font-weight: bold;
	color: #1a3a5c;
	margin-top: 40px;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid #0095d9;
}

@media screen and (min-width: 768px) {
	.casestudy-sub-heading {
		font-size: 18px;
	}
}

@media screen and (max-width: 767px) {
	.casestudy-sub-heading {
		font-size: 16px;
		margin-top: 30px;
		margin-bottom: 10px;
	}
}

.casestudy-visit-link {
	margin-bottom: 20px;
}

.casestudy-visit-link a {
	color: #0095d9;
	text-decoration: underline;
	font-weight: bold;
}

@media screen and (min-width: 768px) {
	.casestudy-visit-link a {
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.casestudy-visit-link a {
		font-size: 14px;
	}
}

.casestudy-visit-link a:hover {
	text-decoration: none;
}

/* Building diagram */
.building-diagram {
	margin-bottom: 30px;
	line-height: 0;
}

@media screen and (max-width: 767px) {
	.building-diagram {
		margin-bottom: 20px;
	}
}

.building-diagram img {
	width: 100%;
	height: auto;
	display: block;
}

/* Building spec list */
.building-spec-list {
	list-style: disc;
	padding-left: 1.5em;
	margin-bottom: 30px;
	line-height: 1.8;
	color: #333;
}

@media screen and (min-width: 768px) {
	.building-spec-list {
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.building-spec-list {
		font-size: 14px;
		margin-bottom: 20px;
	}
}

/* Equipment photo grid (3×2) */
.equipment-photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
	.equipment-photo-grid {
		gap: 15px;
		margin-bottom: 20px;
	}
}

.equipment-photo-item {
	text-align: center;
}

.equipment-photo-item img {
	width: 100%;
	height: auto;
	display: block;
}

.equipment-photo-label {
	font-weight: bold;
	color: #333;
	margin-top: 8px;
}

@media screen and (min-width: 768px) {
	.equipment-photo-label {
		font-size: 13px;
	}
}

@media screen and (max-width: 767px) {
	.equipment-photo-label {
		font-size: 12px;
		margin-top: 5px;
	}
}

/* EMS diagram */
.ems-diagram {
	margin-bottom: 30px;
	line-height: 0;
}

@media screen and (max-width: 767px) {
	.ems-diagram {
		margin-bottom: 20px;
	}
}

.ems-diagram img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   S9: FAQ Accordion
   ============================================ */
.energy-faq-section {
	background-color: #f5f7fa;
}

@media screen and (min-width: 768px) {
	.energy-faq-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-faq-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

.faq-list {
	margin-top: 10px;
}

.faq-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
	overflow: hidden;
}

.faq-question {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	cursor: pointer;
	background-color: #f9f9f9;
	transition: background-color 0.2s ease;
}

.faq-question:hover {
	background-color: #f0f0f0;
}

@media screen and (max-width: 767px) {
	.faq-question {
		padding: 12px 15px;
	}
}

.faq-q-label {
	font-weight: bold;
	color: #0095d9;
	margin-right: 10px;
	flex-shrink: 0;
}

@media screen and (min-width: 768px) {
	.faq-q-label {
		font-size: 18px;
	}
}

@media screen and (max-width: 767px) {
	.faq-q-label {
		font-size: 16px;
	}
}

.faq-q-text {
	flex: 1;
	font-weight: bold;
	color: #333;
}

@media screen and (min-width: 768px) {
	.faq-q-text {
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.faq-q-text {
		font-size: 14px;
	}
}

.faq-toggle {
	width: 20px;
	height: 20px;
	position: relative;
	flex-shrink: 0;
	margin-left: 15px;
}

.faq-toggle::before,
.faq-toggle::after {
	content: '';
	position: absolute;
	background-color: #666;
	transition: transform 0.3s ease;
}

.faq-toggle::before {
	width: 16px;
	height: 2px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.faq-toggle::after {
	width: 2px;
	height: 16px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
	display: none;
	padding: 0 20px 15px;
}

@media screen and (max-width: 767px) {
	.faq-answer {
		padding: 0 15px 12px;
	}
}

.faq-item.is-open .faq-answer {
	display: flex;
	align-items: flex-start;
}

.faq-a-label {
	font-weight: bold;
	color: #e74c3c;
	margin-right: 10px;
	flex-shrink: 0;
}

@media screen and (min-width: 768px) {
	.faq-a-label {
		font-size: 18px;
	}
}

@media screen and (max-width: 767px) {
	.faq-a-label {
		font-size: 16px;
	}
}

.faq-a-text {
	line-height: 1.8;
	color: #333;
}

@media screen and (min-width: 768px) {
	.faq-a-text {
		font-size: 14px;
	}
}

@media screen and (max-width: 767px) {
	.faq-a-text {
		font-size: 13px;
	}
}

/* ============================================
   S10: CTA Section
   ============================================ */
.energy-cta-section {
	background-color: #f0f8ff;
}

@media screen and (min-width: 768px) {
	.energy-cta-section .page-wrap {
		padding-top: 50px;
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.energy-cta-section .page-wrap {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

.cta-heading {
	font-weight: bold;
	color: #1a3a5c;
	text-align: center;
	margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
	.cta-heading {
		font-size: 20px;
	}
}

@media screen and (max-width: 767px) {
	.cta-heading {
		font-size: 17px;
	}
}

.cta-subtext {
	text-align: center;
	color: #333;
	line-height: 1.8;
	margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
	.cta-subtext {
		font-size: 15px;
	}
}

@media screen and (max-width: 767px) {
	.cta-subtext {
		font-size: 14px;
	}
}
