/* --- デザインベース（青を基調としたシックな3色） ---
   1. メイン/ブランドカラー：ディープネイビー（誠実・信頼） #1a2e40
   2. アクセントカラー：クラシックブルー（清潔感・専門性） #2c7be5
   3. ベースカラー：クリーンホワイト / ライトグレー（視認性） #f8f9fa
-------------------------------------------------- */

:root {
    --primary-color: #1a2e40;
    --accent-color: #2c7be5;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e3e6ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;  /* 親要素の幅より大きくならない（はみ出し防止） */
    height: auto;     /* 横幅に合わせて、縦横比を保ったまま自動縮小する */
    display: block;   /* 画像の下に生まれる謎の隙間（数ピクセル）を消す */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. ヘッダー --- */
.header {
    background-color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 135px;
    max-width: 100%; 
    padding: 0 10px; 
}

.logo {
    display: flex;
    align-items: center;
    height: 100%; 
}

.logo-img {
    width: 410px; 
    height: 210px; 
    object-fit: fill;
    display: block; 
    padding: 5px 0; 
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item a {
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s;
}

.nav-item a:hover {
    color: var(--accent-color);
}

/* --- 2. メインビジュアル --- */
.hero {
    background: linear-gradient(135deg, rgba(15, 28, 41, 0.85) 0%, rgba(26, 82, 156, 0.8) 100%), url('https://via.placeholder.com/1920x1080/1a2e40/ffffff?text=Clean+Air+Conditioner') no-repeat center center/cover;
    color: var(--text-light);
    padding: 75px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.8);
}

.hero-title span {
    color: #ffd166; /* ハイライト黄 */
    display: block;
    font-size: 3.5rem;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 3px rgba(0, 0, 0, 0.9);

    /* 💡 【ここを追加】絶対に途中で自動改行（折り返し）させない最強の命令です */
    white-space: nowrap; 
}

.hero-lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.8);
}

.hero-cta-btn {
    display: inline-block;
    background-color: #ffd166;
    color: var(--primary-color);
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 共通セクションスタイル */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
    display: inline-block; 
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 3px; 
    background-color: var(--accent-color);
}

.section-desc {
    display: block;
    clear: both;
    text-align: center;
    color: #666;
    margin-bottom: 48px;
}

/* --- 3. 予約用カレンダー --- */
.calendar-box {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.calendar-container {
    position: relative;
    width: 100%;
    padding-top: 120%; 
    box-sizing: border-box;
    border: 2px solid var(--accent-color); /* 💡 変数に変更して統一 */
    border-radius: 8px;
    overflow: hidden;
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 4. SEOセクションのスタイル --- */
.seo-section {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.seo-container {
    max-width: 900px;
}

.seo-block {
    margin-bottom: 50px;
}

.seo-block:last-child {
    margin-bottom: 20px;
}

.seo-sub-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
    font-weight: 700;
}

.seo-text {
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.seo-area-box {
    background-color: #f4f8fc;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.seo-area-title {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.seo-area-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.95rem;
    color: #555;
}

/* --- 5. 工事の流れ（💡消えていた記述を復活・最適化） --- */
.flow-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

.flow-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.flow-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; 
    overflow: hidden;
    background-color: #eee; /* 画像がない場合の仮背景 */
}

.flow-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; /* 💡 正しい記述に修正 */
    transition: transform 0.3s;
}

.flow-card:hover .flow-img {
    transform: scale(1.05);
}

.flow-step {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--text-light); 
    border: 2px solid var(--accent-color); 
    color: var(--accent-color) !important; 
    font-weight: 800; 
    font-size: 0.85rem;
    padding: 4px 14px; 
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    z-index: 2;
}

.flow-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.flow-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.flow-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- 6. お問い合わせページ・フォーム --- */
.contact-page-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px; 
    color: #333;
    line-height: 1.6;
}

.contact-page-container h2 {
    color: var(--primary-color); /* 💡 テーマカラーに変更 */
    border-bottom: 3px solid var(--accent-color); /* 💡 テーマカラーに変更 */
    padding-bottom: 10px;
    font-size: 26px;
    display: inline-block;
    margin-bottom: 20px;
}

.contact-page-container h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 30px;
}

.intro-points ul {
    background: #f4f8fc;
    border-left: 4px solid var(--accent-color);
    padding: 15px 15px 15px 35px;
    list-style-type: disc;
    border-radius: 0 4px 4px 0;
    margin: 15px 0;
}

.intro-points li {
    margin-bottom: 8px;
    font-weight: bold;
}

.section-divider {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 40px 0;
}

.tel-button-container {
    text-align: center;
    margin: 25px 0;
}

.tel-button {
    display: inline-block;
    background-color: var(--accent-color); /* 💡 テーマカラーに変更 */
    color: #fff !important;
    font-weight: bold;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
}

.tel-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.tel-button .tel-number {
    font-size: 24px;
    color: #fff;
    display: block;
    margin-top: 5px;
}

.info-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
}

.notice {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.contact-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.required {
    background: #de3545;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.optional {
    background: #6c757d;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.submit-button {
    display: block;
    width: 100%;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

.submit-button:hover {
    background: #218838;
}

/* --- 7. レスポンシブ対応（スマホ表示の最適化） --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 10px;
    }
    
    .logo-img {
        width: 280px;
        height: auto;
    }
    
    .nav-menu {
        gap: 15px;
        margin-top: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    /* 💡 スマホ表示でも絶対に1行に収まるように、文字サイズを少しだけコンパクトに調整します */
    .hero-title span {
        font-size: 1.8rem; 
        white-space: nowrap; /* スマホでも絶対バラバラにしない */
    }
    
    .flow-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .flow-img-wrapper {
        height: 180px;
    }
}