/*
Theme Name: ドローン工務店オリジナル
Description: 株式会社ドローン工務店 専用テーマ
Author: Loki Group
Version: 1.0.0
*/

/* --- 基本設定 --- */
:root { --primary-color: #003366; --accent-color: #ffcc00; --text-color: #333; --bg-light: #f9f9f9; --btn-danger: #e63946; }
body { font-family: 'Noto Sans JP', sans-serif; margin: 0; padding: 0; color: var(--text-color); line-height: 1.6; background-color: #fff; padding-top: 80px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; }
.section { padding: 80px 0; scroll-margin-top: 80px; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--primary-color); border-bottom: 3px solid var(--accent-color); display: inline-block; padding-bottom: 10px; }
.center-text { text-align: center; }
.btn { display: inline-block; background-color: var(--primary-color); color: #fff; padding: 15px 40px; border-radius: 50px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: pointer; border: none; }
.btn:hover { background-color: #002244; transform: translateY(-2px); }
.btn-accent { background-color: #d32f2f; /* 赤色アクセント */ }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* --- ヘッダー --- */
header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: 80px; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 20px; }
.header-logo-link { display: flex; align-items: center; height: 100%; text-decoration: none; }
.header-logo-img { height: auto; max-height: 60px; width: auto; display: block; }

.pc-nav ul { display: flex; gap: 15px; align-items: center; }
.pc-nav a { font-weight: bold; font-size: 0.9rem; position: relative; }
.pc-nav a:not(.btn):hover { color: var(--primary-color); }

.hamburger { display: none; cursor: pointer; z-index: 2000; }
.hamburger div { width: 25px; height: 3px; background-color: var(--primary-color); margin: 5px 0; transition: 0.4s; }
.sp-nav { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: #fff; box-shadow: -2px 0 5px rgba(0,0,0,0.1); transition: 0.4s; z-index: 1500; padding-top: 80px; }
.sp-nav.active { right: 0; } .sp-nav a { display: block; padding: 20px; font-weight: bold; border-bottom: 1px solid #eee; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1400; display: none; } .overlay.active { display: block; }
.hamburger.active div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); } .hamburger.active div:nth-child(2) { opacity: 0; } .hamburger.active div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

@media (max-width: 1000px) { 
    .pc-nav { display: none; } .hamburger { display: block; } 
    .header-inner { padding: 0 15px; }
    .header-logo-img { max-height: 45px; }
}

/* --- ヒーローエリア --- */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: -80px; 
    padding-top: 80px;
    background-color: #333;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 0;
    opacity: 0;
    animation: slideAnime 16s infinite;
}
.hero-slide:nth-child(1) { 
    background-image: linear-gradient(rgba(0,51,102,0.5), rgba(0,51,102,0.5)), url('images/slide1.jpg'); 
    animation-delay: 0s; 
}
.hero-slide:nth-child(2) { 
    background-image: linear-gradient(rgba(0,51,102,0.5), rgba(0,51,102,0.5)), url('images/slide2.jpg'); 
    animation-delay: 8s; 
}

@keyframes slideAnime {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; } 40% { opacity: 1; } 
    50% { opacity: 0; transform: scale(1.02); } 100% { opacity: 0; }
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    width: 100%;
    padding: 0 20px;
}
.hero h1 { font-family: 'Noto Serif JP', serif; font-size: 3.5rem; margin-bottom: 20px; line-height: 1.3; }
.hero h1 .small { font-size: 1.5rem; display: block; margin-bottom: 5px; font-family: 'Noto Sans JP', sans-serif; font-weight: normal; }
.hero h1 .accent { color: var(--accent-color); font-size: 4.5rem; font-style: italic; margin: 0 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; font-weight: bold; display: inline-block; background: rgba(0,0,0,0.4); padding: 10px 20px; border-radius: 5px; }

@media (max-width: 768px) {
    .hero { height: 500px; }
    .hero h1 { font-size: 2.2rem; }
    .hero h1 .small { font-size: 1.1rem; }
    .hero h1 .accent { font-size: 3rem; }
    .hero p { font-size: 0.9rem; padding: 8px 15px; line-height: 1.6; display: inline; background: none; text-shadow: 2px 2px 4px #000; }
}

/* --- 理由セクション --- */
.reason-section { background: var(--bg-light); }
.reason-content { max-width: 800px; margin: 0 auto; text-align: left; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* --- PDF誘導エリア --- */
.pdf-cta-section { margin-top: 50px; text-align: center; }
.pdf-card { background: #fff; border: 2px solid var(--accent-color); border-radius: 12px; padding: 40px 30px; position: relative; box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1); max-width: 680px; margin: 0 auto; }
.pdf-card-label { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--accent-color); color: #000; font-weight: bold; padding: 6px 25px; border-radius: 20px; font-size: 0.95rem; box-shadow: 0 3px 6px rgba(0,0,0,0.2); white-space: nowrap; }
.pdf-card h3 { font-size: 1.5rem; color: var(--primary-color); margin-top: 10px; margin-bottom: 20px; line-height: 1.4; }
.pdf-check-box { background: #f4f8fb; padding: 20px; border-radius: 8px; text-align: left; margin-bottom: 25px; }
.pdf-check-list { list-style: none; padding: 0; margin: 0; }
.pdf-check-list li { position: relative; padding-left: 25px; margin-bottom: 8px; font-weight: bold; color: #333; font-size: 1rem; }
.pdf-check-list li::before { content: "✔"; color: var(--btn-danger); position: absolute; left: 0; font-size: 1.2rem; top: -2px; }
.pdf-lead { font-size: 0.95rem; margin-bottom: 25px; display: block; }

.btn-pdf { display: block; width: 100%; max-width: 450px; margin: 0 auto; background-color: var(--btn-danger); color: #fff; padding: 18px; border-radius: 50px; font-weight: bold; font-size: 1.2rem; text-decoration: none; box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4); position: relative; overflow: hidden; transition: 0.3s; }
.btn-pdf:hover { background-color: #c92a35; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6); }
.btn-pdf::after { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); animation: shine 3s infinite; }

@media (max-width: 600px) {
    .pdf-card { padding: 30px 20px; width: auto; margin: 0; }
    .pdf-card h3 { font-size: 1.3rem; }
    .pdf-check-box { padding: 15px; }
    .pdf-check-list li { font-size: 0.9rem; }
    .btn-pdf { font-size: 1.1rem; padding: 15px; width: 100%; box-sizing: border-box; }
}

/* --- サービス一覧 --- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }
.service-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.service-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; display: flex; flex-direction: column; height: 100%; }
.service-card-link:hover .service-card { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.service-img { height: 180px; background-color: #ddd; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 20px; text-align: center; flex-grow: 1; }
.service-body h3 { margin: 0 0 10px 0; color: var(--primary-color); font-size: 1.2rem; text-decoration: underline; text-decoration-color: var(--accent-color); }
.service-body p { font-size: 0.9rem; margin: 0; }

/* --- その他セクション --- */
.merit-section { background: var(--primary-color); color: #fff; }
.merit-section .section-title { color: #fff; border-color: var(--accent-color); }
.merit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.merit-item { background: rgba(255,255,255,0.1); padding: 20px; border-left: 5px solid var(--accent-color); position: relative; }
.merit-number { font-size: 3rem; position: absolute; top: 10px; right: 20px; opacity: 0.3; font-weight: bold; }

.flow-list { counter-reset: flow-count; max-width: 800px; margin: 0 auto; }
.flow-item { display: flex; align-items: center; background: #fff; margin-bottom: 20px; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; }
.flow-item::before { counter-increment: flow-count; content: "STEP " counter(flow-count); background: var(--primary-color); color: #fff; padding: 5px 15px; border-radius: 20px; font-weight: bold; margin-right: 20px; white-space: nowrap; }
.flow-arrow { text-align: center; font-size: 1.5rem; color: #ddd; margin-bottom: 20px; }

/* --- フォーム・フッター --- */
.contact-form { max-width: 600px; margin: 0 auto; background: #f4f4f4; padding: 40px; border-radius: 8px; }
.form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; box-sizing: border-box; } .form-group textarea { height: 150px; }
.success-message { background: #d4edda; color: #155724; padding: 15px; border-radius: 5px; text-align: center; margin-bottom: 20px; }
footer { background: #222; color: #fff; text-align: center; padding: 40px 0; font-size: 0.9rem; }

/* ==================================================
   下層ページ共通スタイル（全ページ統合版）
   ================================================== */

/* --- ページヘッダー＆パンくずリスト --- */
.page-header { background-color: var(--primary-color); color: #fff; padding: 60px 0; text-align: center; margin-bottom: 50px; }
.page-header h1 { margin: 0; font-size: 2.2rem; }
.breadcrumb { font-size: 0.9rem; margin-top: 10px; color: #ccc; }
.breadcrumb a { color: #fff; text-decoration: underline; }

/* --- コンテンツブロック基本設定 --- */
.content-block { margin-bottom: 80px; }
.sub-title { font-size: 1.5rem; color: var(--primary-color); border-left: 5px solid var(--accent-color); padding-left: 15px; margin-bottom: 30px; }

/* --- 交互レイアウト（赤外線・災害・ロープ共通） --- */
.feature-row { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { color: var(--primary-color); font-size: 1.4rem; margin-top: 0; margin-bottom: 15px; position: relative; }
.feature-text h3::before { content: ""; display: inline-block; width: 6px; height: 24px; background: var(--accent-color); margin-right: 10px; vertical-align: middle; }
.feature-img { flex: 1; height: 300px; }
.feature-img img { border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; height: 100%; object-fit: cover; background: #ddd; }
@media (max-width: 768px) {
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 20px; }
    .feature-img { width: 100%; height: 200px; }
}

/* --- Q&Aセクション（赤外線・災害共通） --- */
.qa-list { max-width: 800px; margin: 0 auto; }
.qa-item { margin-bottom: 30px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qa-q { background: var(--primary-color); color: #fff; padding: 15px 20px; font-weight: bold; position: relative; }
.qa-q::before { content: "Q"; margin-right: 10px; font-size: 1.2rem; color: var(--accent-color); }
.qa-a { padding: 20px; background: #fff; }
.qa-a::before { content: "A"; margin-right: 10px; font-weight: bold; color: var(--primary-color); font-size: 1.2rem; }

/* --- 料金表（赤外線ページ用） --- */
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.price-table th, .price-table td { border: 1px solid #ddd; padding: 15px; text-align: center; }
.price-table th { background: #eee; color: var(--primary-color); }
.price-head-row th { background: var(--primary-color); color: #fff; }
@media (max-width: 600px) {
    .price-table { font-size: 0.9rem; }
    .price-table th, .price-table td { padding: 10px 5px; }
}


/* ==================================================
   各下層ページ専用スタイル
   ================================================== */

/* 【会社概要】 */
.company-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; border-top: 2px solid var(--primary-color); }
.company-table th, .company-table td { padding: 20px; border-bottom: 1px solid #ddd; text-align: left; }
.company-table th { background: #f4f4f4; width: 30%; font-weight: bold; color: var(--primary-color); }
@media (max-width: 600px) {
    .company-table th, .company-table td { display: block; width: 100%; }
    .company-table th { background: #eee; padding: 10px; }
}
.map-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-top: 40px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* 【比較表】 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 60px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-radius: 8px; }
.comp-table { width: 100%; min-width: 800px; border-collapse: collapse; background: #fff; }
.comp-table th, .comp-table td { border: 1px solid #ddd; padding: 20px; text-align: left; vertical-align: top; }
.comp-table thead th { background-color: var(--primary-color); color: #fff; text-align: center; padding: 15px; font-size: 1.2rem; width: 15%; }
.comp-table thead th:first-child { width: 30%; }
.col-mark { text-align: center !important; vertical-align: middle !important; font-size: 2.5rem; font-weight: bold; }
.mark-excellent { color: #003366; } .mark-good { color: #28a745; } .mark-fair { color: #fd7e14; } .mark-poor { color: #dc3545; }
.method-title { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); margin-bottom: 10px; display: block; border-bottom: 2px solid var(--accent-color); padding-bottom: 5px; }
.method-desc { font-size: 0.95rem; color: #555; margin: 0; padding-left: 0; list-style: disc inside; }
.method-desc li { margin-bottom: 5px; }
.cta-box { background: var(--bg-light); border: 2px solid var(--primary-color); padding: 40px; text-align: center; border-radius: 10px; margin-top: 40px; }
.cta-text { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }

/* 【災害調査（事例グリッド）】 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.case-img { height: 200px; background: #eee; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 20px; }
.case-body h4 { margin: 0 0 10px 0; color: var(--primary-color); }
@media (max-width: 768px) { .case-grid { grid-template-columns: 1fr; } }

/* 【実施イメージ（フロー）】 */
.phase-header { background: var(--primary-color); color: #fff; padding: 15px 30px; font-size: 1.5rem; font-weight: bold; margin-top: 60px; margin-bottom: 40px; border-left: 10px solid var(--accent-color); border-radius: 0 5px 5px 0; }
.flow-row { display: flex; align-items: center; gap: 40px; margin-bottom: 60px; background: #fff; border-radius: 8px; overflow: hidden; }
.flow-row:nth-child(even) { flex-direction: row-reverse; }
.flow-text { flex: 1; padding: 30px; }
.flow-text h3 { color: var(--primary-color); font-size: 1.4rem; margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.flow-img { flex: 1; height: 300px; }
.flow-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
    .flow-row, .flow-row:nth-child(even) { flex-direction: column; height: auto; border: 1px solid #eee; }
    .flow-img { width: 100%; height: 200px; }
    .flow-text { padding: 20px; }
}
.rope-cta { background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/slide2.jpg'); background-size: cover; background-position: center; color: #fff; text-align: center; padding: 80px 20px; margin-top: 60px; border-radius: 8px; }
.rope-cta h2 { font-size: 2rem; margin-bottom: 20px; }
.rope-cta p { font-size: 1.2rem; margin-bottom: 30px; }

/* 【ロープアクセス施工】 */
.oneday-section { background: linear-gradient(rgba(0,51,102,0.8), rgba(0,51,102,0.8)), url('images/speedy.jpg'); background-size: cover; background-position: center; color: #fff; padding: 60px 20px; text-align: center; border-radius: 8px; margin-top: 60px; border: 2px solid var(--accent-color); }
.oneday-section h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--accent-color); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.oneday-section p { font-size: 1.2rem; margin-bottom: 30px; font-weight: bold; }

/* ==================================================
   お知らせ（トップページ一覧）
   ================================================== */
.news-section { max-width: 800px; margin: 0 auto 80px; padding: 0 20px; }
.news-title { text-align: center; font-size: 2rem; color: var(--primary-color); margin-bottom: 30px; border-bottom: 3px solid var(--accent-color); display: inline-block; padding-bottom: 10px; }
.news-list { border-top: 1px solid #ddd; }
.news-item { border-bottom: 1px solid #ddd; padding: 15px 0; display: flex; align-items: center; gap: 15px; }
.news-date { font-size: 0.95rem; color: #666; white-space: nowrap; font-weight: bold; }
.news-category { background: var(--primary-color); color: #fff; font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.news-link { font-weight: bold; flex-grow: 1; transition: 0.3s; color: var(--text-color); }
.news-link:hover { color: var(--accent-color); text-decoration: underline; }

@media (max-width: 600px) {
    .news-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==================================================
   投稿記事・コラムページ（single.php用）
   ================================================== */
.single-header { background-color: var(--primary-color); color: #fff; padding: 60px 20px; text-align: center; margin-bottom: 50px; }
.single-header h1 { font-size: 1.8rem; max-width: 800px; margin: 0 auto 20px; line-height: 1.5; }
.single-meta { display: flex; justify-content: center; gap: 15px; font-size: 0.9rem; color: #ccc; }
.single-cat { background: var(--accent-color); color: #000; padding: 2px 10px; border-radius: 4px; font-weight: bold; }

/* WordPressのエディタで書いた本文を綺麗に見せる魔法 */
.post-content { max-width: 800px; margin: 0 auto 80px; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); line-height: 1.8; font-size: 1.05rem; }
.post-content h2 { border-left: 5px solid var(--accent-color); padding-left: 15px; margin-top: 50px; margin-bottom: 20px; color: var(--primary-color); font-size: 1.6rem; }
.post-content h3 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px; margin-bottom: 15px; font-size: 1.3rem; }
.post-content p { margin-bottom: 25px; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.post-content a { color: var(--primary-color); text-decoration: underline; }
.post-content ul, .post-content ol { margin-bottom: 25px; padding-left: 20px; }
.post-content li { margin-bottom: 10px; }

@media (max-width: 600px) {
    .post-content { padding: 20px; }
    .post-content h2 { font-size: 1.4rem; }
}

/* ==================================================
   使用するドローン機器 (Equipment Section)
   ================================================== */
/* ==================================================
   使用するドローン機器 (Equipment Section)
   ================================================== */
.equipment-section { background-color: #f4f7f6; padding: 80px 0; }

/* ▼ 修正ポイント1：文字色をネイビーに変更してクッキリ見やすく ▼ */
.equipment-lead { 
    text-align: center; 
    font-size: 1.15rem; 
    font-weight: bold; 
    color: var(--primary-color); /* ←ここを黄色からネイビーに変更！ */
    margin-bottom: 40px; 
}

.equipment-top { 
    text-align: center; 
    margin-bottom: 50px; 
    max-width: 900px; /* 画像がデカくなりすぎないように最大幅を設定 */
    margin-left: auto; 
    margin-right: auto;
}

/* ▼ 修正ポイント2：画像のトリミングをやめて全体を表示させる ▼ */
.equipment-img { 
    width: 100%; 
    height: auto; /* ←高さを固定せずに自然な比率で表示！ */
    /* object-fit: cover; ←これを削除してトリミングを解除！ */
    border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(0,51,102,0.15); 
    margin-bottom: 25px; 
}

.equipment-model { font-size: 1.8rem; color: var(--primary-color); letter-spacing: 1px; font-weight: bold; }

/* 3枚のカードを横並び（スマホ時は縦並び）にする魔法 */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.equipment-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-color); }
.equipment-card-title { font-size: 1.3rem; color: var(--primary-color); border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }

.equipment-spec-item { margin-bottom: 20px; }
.equipment-spec-item:last-child { margin-bottom: 0; }
.equipment-spec-item h5 { font-size: 0.95rem; color: #666; margin-bottom: 5px; border-left: 3px solid var(--accent-color); padding-left: 8px; }
.equipment-spec-item p { font-size: 0.9rem; margin: 0; line-height: 1.6; color: #333; }

/* ==================================================
   フッター下の隙間解消
   ================================================== */
body, html {
    margin: 0;
    padding: 0;
}
/* フッターの中の要素の余白が外に突き抜けるのを防ぐ魔法 */
footer {
    overflow: hidden; 
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

/* ==================================================
   CF7 送信ボタンのズレ解消
   ================================================== */
.contact-form form p {
    position: relative; /* スピナーの基準位置にするため */
    text-align: center; /* pタグの中身を中央寄せ */
}

.wpcf7-submit {
    display: inline-block !important; /* ブロック要素にして中央配置しやすくする */
    margin: 0 auto !important; 
}

/* 隠れているスピナー（ぐるぐる）を絶対配置にして、ボタンを押し出さないようにする */
.wpcf7-spinner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

/* フッターより下にある「管理バー以外」の透明なプラグインタグの余白を強制的に消し去る */
footer ~ div:not(#wpadminbar),
footer ~ iframe {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
}

/* 念のためbodyとhtmlの底もピッタリ閉じる */
html, body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ==================================================
   フッター下の白い隙間を完全に消し去る魔法
   ================================================== */
footer {
    padding-bottom: 25px !important; /* フッターの下側に黒いクッションを足す */
    overflow: hidden !important; /* 余白が外に突き抜けるのを見えない壁でブロック */
}

footer p.copyright {
    margin-bottom: 0 !important; /* 犯人のデフォルトマージンを没収してゼロにする */
}

/* ===================================================
   AI雨漏り診断 CTA セクション
   style.css の末尾に追記してください
   =================================================== */

/* --- AI診断バナー（メイン） --- */
.ai-diagnosis-banner {
    background: linear-gradient(135deg, #003366 0%, #0a4d8c 50%, #1a6bb5 100%);
    border-radius: 16px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}
.ai-diagnosis-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.ai-diagnosis-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.ai-diagnosis-text {
    flex: 1;
}
.ai-diagnosis-visual {
    flex: 0 0 280px;
}
.ai-diagnosis-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.85rem;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}
.ai-diagnosis-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}
.ai-diagnosis-features li {
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- AI診断ボタン --- */
.btn-ai-diagnosis {
    display: inline-block;
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,200,83,0.4);
    transition: all 0.3s ease;
    text-align: center;
}
.btn-ai-diagnosis:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,200,83,0.5);
    background: linear-gradient(135deg, #00b848 0%, #00c853 100%);
    color: #fff;
}

/* --- AI診断結果カード（ビジュアル） --- */
.ai-diagnosis-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}
.ai-diagnosis-card:hover {
    transform: rotate(0deg);
}
.ai-card-header {
    background: linear-gradient(135deg, #0a4d8c, #1a6bb5);
    color: #fff;
    padding: 14px 20px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-card-icon {
    font-size: 1.3rem;
}
.ai-card-body {
    padding: 20px;
}
.ai-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.ai-card-row:last-child {
    border-bottom: none;
}
.ai-card-label {
    font-size: 0.85rem;
    color: #666;
}
.ai-card-value {
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary-color);
}
.ai-card-high {
    color: #00c853;
    font-size: 1.3rem;
}
.ai-card-footer {
    background: #f9f9f9;
    padding: 10px 20px;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .ai-diagnosis-banner {
        padding: 30px 20px;
    }
    .ai-diagnosis-inner {
        flex-direction: column;
        text-align: center;
    }
    .ai-diagnosis-text h2 {
        font-size: 1.5rem !important;
    }
    .ai-diagnosis-features {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 280px;
        margin: 15px auto 0;
    }
    .ai-diagnosis-visual {
        flex: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
    .ai-diagnosis-card {
        transform: rotate(0deg);
    }
    .btn-ai-diagnosis {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 0 auto;
    }
    div[style*="display:flex"][style*="gap:12px"] {
        justify-content: center;
    }
}