/*
Theme Name: Lightning Child
Template: lightning
Description: Lightningテーマ用の子テーマ。AI太陽光発電・最適見積もり提示システム専用カスタマイズ。
Author: あなたの名前
Version: 1.0.0
*/

/* ヘッダー・フッター */
.dx-header {
	background: #fff;
	color: #1976d2;
	padding: 0 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dx-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
}
.dx-header-logo {
	font-size: 1.3rem;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	transition: color 0.2s;
}
/* サイトロゴ */
.dx-header-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px; /* Zumiさんの想定通りこれで固定 */
}
.dx-header-logo:hover {
	color: #bbdefb;
}
.dx-header-nav a {
	color: #1976d2;
	text-decoration: none;
	margin-left: 24px;
	font-weight: bold;
	font-size: 1rem;
	transition: color 0.2s;
}
.dx-header-nav a:hover {
	color: #bbdefb;
}
.dx-footer {
	background: #f5f5f5;
	color: #1976d2;
    text-align: center;
    padding: 20px;
}
.dx-footer-logo {
	font-size: 1.1rem;
	font-weight: bold;
}
.dx-main {
	display: flex;
    flex-direction: column;
    flex: 1;
}
/* ハンバーガーメニュー */
/* --- ハンバーガーボタン本体 --- */
.dx-hamburger {
    display: none; /* PCでは非表示 */
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.5s;
}

.dx-hamburger span {
    display: block;
    position: absolute;
    left: 6px; /* 中央に寄せる調整 */
    width: 28px;
    height: 2px;
    background-color: #1976d2;
    border-radius: 4px;
    transition: all 0.5s;
}

/* 三本線の初期位置 */
.dx-hamburger span:nth-child(1) { top: 22%; }
.dx-hamburger span:nth-child(2) { top: 50%; }
.dx-hamburger span:nth-child(3) { top: 78%; }

/* --- メニューが開いた時のボタン（三本線→×印） --- */
.open .dx-hamburger span:nth-child(1) {
    top: 50%;
    transform: rotate(-315deg);
}
.open .dx-hamburger span:nth-child(2) {
    opacity: 0;
}
.open .dx-hamburger span:nth-child(3) {
    top: 50%;
    transform: rotate(315deg);
}

/* --- スマホ用ナビゲーション（スライド式） --- */
@media (max-width: 800px) {
    .dx-hamburger {
        display: block; /* スマホで表示 */
    }

    .dx-header-nav {
        display: block; /* flexからblockへ（①の仕様に合わせる） */
        position: fixed;
        top: 0;
        left: -300px; /* 画面の外に隠す */
        bottom: 0;
        width: 300px;
        background-color: #1976d2; /* 元のテーマカラーを維持 */
        padding: 60px 25px;
        overflow-y: auto;
        transition: all 0.5s;
        z-index: 1000;
        opacity: 0;
    }

    .dx-header-nav.open {
        left: 0;
        opacity: 1;
        display: flex;         /* Flexboxを開始 */
        flex-direction: column; /* 子要素を縦に並べる */
        align-items: stretch;   /* 子要素を横幅いっぱいに広げる */
    }

    .dx-header-nav ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .dx-header-nav ul li {
        padding: 15px 0;
        border-bottom: solid 1px rgba(255,255,255,0.3);
    }
	.dx-header-nav a {
		color: #fff;
	}
}

/* --- 背景マスク --- */
#mask {
    display: none;
    transition: all 0.5s;
}

.open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.7;
    z-index: 999; /* ナビより下に配置 */
    cursor: pointer;
}

/* ヒーローエリア */
.dx-hero-area {
	width: 100%;
	background: linear-gradient(120deg, #e3f2fd 60%, #e8f5e9 100%);
	padding: 48px 0 32px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.dx-hero-lead {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 18px;
}
.dx-hero-arrow {
	margin-bottom: 8px;
}
.dx-arrow-anim {
	display: inline-block;
	font-size: 2.8rem;
	color: #1976d2;
	animation: arrow-bounce 1.2s infinite cubic-bezier(.5,0,1,1);
	transition: font-size 0.2s;
}
@keyframes arrow-bounce {
	0% { transform: translateY(0) scale(1); }
	30% { transform: translateY(10px) scale(1.2); }
	60% { transform: translateY(0) scale(1); }
	100% { transform: translateY(0) scale(1); }
}
.dx-hero-catch {
	font-size: 1.15rem;
	color: #1976d2;
	font-weight: bold;
	text-align: center;
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}
.dx-hero-catch span:first-child {
	font-size: 1.25rem;
	color: #388e3c;
	font-weight: 700;
}
.dx-hero-cards {
	display: flex;
	gap: 32px;
	justify-content: center;
}
.dx-hero-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
	padding: 32px 28px;
	min-width: 320px;
	max-width: 340px;
	flex: 1 1 320px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}
.dx-hero-card:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.dx-hero-card h2 {
	font-size: 1.3rem;
	color: #1976d2;
	margin-bottom: 12px;
}
.dx-hero-card--scan h2 {
	color: #388e3c;
}
.dx-hero-btn {
	margin-top: 18px;
	padding: 12px 32px;
	font-size: 1.1rem;
	border: none;
	border-radius: 8px;
	background: linear-gradient(90deg, #1976d2 60%, #388e3c 100%);
	color: #fff;
	cursor: pointer;
	font-weight: bold;
	box-shadow: 0 2px 8px rgba(25,118,210,0.08);
	transition: background 0.2s, box-shadow 0.2s;
}
.dx-hero-btn:hover {
	background: linear-gradient(90deg, #1565c0 60%, #2e7d32 100%);
	box-shadow: 0 4px 16px rgba(56,142,60,0.13);
}
@media (max-width: 800px) {
	.dx-hero-cards {
		flex-direction: column;
		gap: 24px;
	}
	.dx-hero-card {
		max-width: 98vw;
	}
}

/* --- AI診断ウィザード --- */
.dx-ai-wizard {
	width: 100%;
	max-width: 520px;
	margin: 32px auto 0 auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 4px 24px rgba(25,118,210,0.08);
	padding: 32px 18px 28px 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.dx-ai-progress {
	width: 100%;
	margin-bottom: 18px;
	position: relative;
}
.dx-ai-progress-bar {
	height: 8px;
	background: linear-gradient(90deg, #1976d2 60%, #388e3c 100%);
	border-radius: 6px;
	transition: width 0.3s;
}
.dx-ai-step-area {
	width: 100%;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.dx-ai-step-card {
	background: #f5fafd;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(25,118,210,0.06);
	padding: 28px 16px 18px 16px;
	margin-bottom: 12px;
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: fadeInStep 0.4s;
}
@keyframes fadeInStep {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.dx-ai-step-title {
	font-size: 1.1rem;
	font-weight: bold;
	color: #1976d2;
	margin-bottom: 18px;
	text-align: center;
}
.dx-ai-step-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}
.dx-ai-option-card {
	background: #fff;
	border: 2px solid #e3f2fd;
	border-radius: 10px;
	padding: 16px 18px;
	min-width: 90px;
	min-height: 48px;
	font-size: 1rem;
	color: #1976d2;
	cursor: pointer;
	transition: border 0.2s, box-shadow 0.2s, background 0.2s;
	box-shadow: 0 1px 4px rgba(25,118,210,0.04);
	text-align: center;
	font-weight: 500;
}
.dx-ai-option-card.selected, .dx-ai-option-card:hover {
	border: 2px solid #388e3c;
	background: #e8f5e9;
	color: #388e3c;
	box-shadow: 0 2px 8px rgba(56,142,60,0.10);
}
.dx-ai-step-actions {
	margin-top: 18px;
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.dx-ai-step-actions button {
	padding: 8px 22px;
	border-radius: 8px;
	border: none;
	background: #1976d2;
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s;
}
.dx-ai-step-actions button:disabled {
	background: #b0bec5;
	cursor: not-allowed;
}
.dx-ai-step-actions button.next {
	background: #388e3c;
}
.dx-ai-step-actions button.next:disabled {
	background: #b0bec5;
}
/* --- 見積書アップロードページ --- */
.dx-upload-section {
	max-width: 480px;
	margin: 40px auto 0 auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(25,118,210,0.08);
	padding: 32px 18px 28px 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.dx-upload-title {
	font-size: 1.3rem;
	color: #1976d2;
	font-weight: bold;
	margin-bottom: 10px;
}
.dx-upload-desc {
	color: #388e3c;
	font-size: 1.05rem;
	margin-bottom: 18px;
	text-align: center;
}
.dx-upload-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}
.dx-upload-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
}
@media (max-width: 800px) {
    .dx-upload-row {
        flex-direction: column;
        width: auto;
    }
}
.dx-upload-label {
	background: #e3f2fd;
	color: #1976d2;
	border-radius: 8px;
	padding: 12px 24px;
	cursor: pointer;
	font-weight: bold;
  margin-bottom: 0;
	transition: background 0.2s;
}
.dx-upload-label:hover {
	background: #bbdefb;
}
.dx-upload-label input[type="file"] {
	display: none;
}
.dx-upload-btn {
	background: #388e3c;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 32px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s;
}
.dx-upload-btn:hover {
	background: #1976d2;
}
.dx-upload-preview {
	margin-top: 18px;
	text-align: center;
}
.dx-upload-preview img {
	max-width: 100%;
	max-height: 220px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(25,118,210,0.08);
}
.dx-upload-status {
	margin-top: 12px;
	color: #1976d2;
	font-weight: bold;
	min-height: 24px;
}

/* AI診断結果パネル */
.dx-ai-result-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 40px 0;
}
.dx-ai-result-panel {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	padding: 32px 24px;
	max-width: 420px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.dx-ai-result-title {
	font-size: 2rem;
	color: #1976d2;
	margin-bottom: 24px;
	text-align: center;
}
/* サブタイトル共通 */
.dx-ai-sub-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    border-left: 4px solid #1976d2;
    padding-left: 10px;
}

/* 電気代シミュレーション */
.dx-ai-sim-container {
    background: #fff9c4; /* 注意を引く薄い黄色 */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.dx-ai-sim-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}

.dx-sim-item { display: flex; flex-direction: column; }
.dx-sim-label { font-size: 0.8rem; color: #666; }
.dx-sim-price { font-size: 1.4rem; font-weight: bold; }
.dx-sim-price.is-old { text-decoration: line-through; color: #999; }
.dx-sim-price.is-new { color: #d32f2f; font-size: 1.8rem; }
.dx-sim-arrow { font-size: 1.5rem; color: #ffb300; }
.dx-sim-note { font-size: 0.7rem; color: #888; margin-top: 10px; text-align: right; }

/* 設置条件サマリー */
.dx-ai-spec-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.dx-ai-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dx-ai-spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.dx-ai-spec-list li:last-child { border-bottom: none; }
.dx-ai-spec-list strong { color: #1976d2; }
.dx-ai-result-price {
	font-size: 2.2rem;
	color: #388e3c;
	font-weight: bold;
	margin-bottom: 8px;
	text-align: center;
}
.dx-ai-result-label {
	font-size: 1rem;
	color: #1976d2;
	margin-right: 8px;
}
.dx-ai-result-compare {
	font-size: 1.1rem;
	color: #1976d2;
	margin-bottom: 12px;
}
.dx-ai-result-graph {
	width: 100%;
	margin: 12px 0;
}
.dx-ai-result-text {
	font-size: 1.1rem;
	color: #333;
	background: #f1f8e9;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 8px;
}
.dx-ai-result-btn {
	display: inline-block;
	background: #1976d2;
	color: #fff;
	border-radius: 8px;
	padding: 10px 32px;
	text-decoration: none;
	font-weight: bold;
	margin-top: 12px;
	transition: background 0.2s;
}
.dx-ai-result-btn:hover {
	background: #1565c0;
}

/* フッターを画面下部に固定する（flexレイアウト） */
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main.site-main {
	flex: 1 0 auto;
    background: linear-gradient(120deg, #e3f2fd 60%, #e8f5e9 100%);
}
/* .dx-hero-area の flex指定は不要 */
footer, .site-footer {
	flex-shrink: 0;
	width: 100%;
}
.dx-hero-btn:hover {
	background: linear-gradient(90deg, #1565c0 60%, #2e7d32 100%);
	box-shadow: 0 4px 16px rgba(56,142,60,0.13);
}
@media (max-width: 800px) {
	.dx-hero-cards {
		flex-direction: column;
		gap: 24px;
	}
	.dx-hero-card {
		max-width: 98vw;
	}
}
