/*
Theme Name: Maeda Engineering LP
Description: マエダのエンジ LP用オリジナルテーマ
Version: 1.2
*/

@charset "UTF-8";

/* =========================================================
   基本リセットとフォント設定
========================================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Noto Sans JP', sans-serif; 
    color: #0054A6; 
    line-height: 2.0; 
    letter-spacing: 0.05em; 
    background-color: #f4ede5; 
}

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
}

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

/* =========================================================
   共通コンテナクラス
========================================================= */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
    text-align: center; 
}

/* PC表示専用の改行クラス */
.pc-only { 
    display: block; 
}

/* インラインブロック用の補助クラス */
.ib { 
    display: inline-block; 
}

/* ▼【修正箇所】画面中央に配置し、青枠と同じ幅（620px）に固定 ▼ */
.text-wrapper {
    display: block;
    width: 100%;
    max-width: 620px; /* 青枠と横幅を完全に揃える */
    margin: 0 auto;
    text-align: left;
}

/* サイト内のテキスト色を青（#0054A6）に強制指定（UIkit等による上書き防止用） */
.section-title, 
.section-lead, 
.section-desc, 
.point-desc, 
.measure-title, 
.measure-desc, 
.point-label h3 {
    color: #0054A6 !important;
}

/* =========================================================
   ヘッダー (PC / スマートフォン共通)
========================================================= */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container { 
    padding: 0 20px !important; 
}

.uk-navbar { 
    min-height: 80px; 
}

.header-logo-img { 
    max-height: 45px; 
    width: auto; 
}

/* --- PC用ナビゲーション --- */
.custom-nav > li {
    display: flex;
    align-items: center;
}

.custom-nav > li > a {
    color: #333 !important; 
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 12px !important;
}

.custom-nav > li > a:hover { 
    color: #1d5c8b !important; 
}

/* 「お問い合わせ」ボタン */
.custom-nav > li.nav-btn { 
    margin-left: 15px; 
}

.custom-nav > li.nav-btn > a.primary-bg-color {
    background-color: #0054A6 !important; 
    color: #fff !important;
    border-radius: 50px; 
    padding: 0 35px !important;
    min-height: 48px !important; 
    height: 48px !important;
    line-height: 48px !important;
    font-size: 0.95rem;
    transition: 0.3s;
}

.custom-nav > li.nav-btn > a.primary-bg-color:hover {
    background-color: #003d7a !important;
    opacity: 0.9;
}

/* --- スマホ用ハンバーガー＆オフキャンバス --- */
.mobile-toggle-wrapper { 
    height: 100%; 
    margin-right: -20px; 
}

.custom-navbar-toggle {
    background-color: #0054A6 !important; 
    width: 80px; 
    height: 80px !important;
    display: flex !important; 
    align-items: center; 
    justify-content: center;
}

/* スマホメニューの幅を固定 */
.custom-offcanvas-bar { 
    background-color: #111824 !important; 
    padding: 60px 40px !important; 
    width: 300px !important; 
}

.custom-offcanvas-close {
    background-color: #0054A6 !important; 
    color: #fff !important; 
    position: absolute !important;
    top: 0; 
    right: 0; 
    width: 80px; 
    height: 80px !important;
    display: flex !important; 
    align-items: center; 
    justify-content: center;
    opacity: 1 !important; 
}

/* xの線を少し太く目立たせるためのUIkit svgの上書き */
.custom-offcanvas-close svg line {
    stroke: #fff !important;
    stroke-width: 1.5 !important;
}

.custom-nav-mobile > li { 
    margin-top: 25px; 
}

/* メニュー文字が絶対に縦積みにならないよう改行を禁止 */
.custom-nav-mobile > li > a { 
    color: #fff !important; 
    font-size: 1rem; 
    font-weight: 500; 
    white-space: nowrap; 
}

/* =========================================================
   ヒーローセクション
========================================================= */
.hero-section { 
    text-align: center; 
    padding: 60px 0 0; 
    background-color: #fff; 
}

.hero-image { 
    width: 100%; 
    margin-top: 20px; 
}

/* =========================================================
   ページ内リンク（目次ブロック）
========================================================= */
/* ▼【修正箇所】最大幅を下のテキストと同じ 620px に変更 ▼ */
.page-index-container { 
    background: transparent; 
    padding: 50px; 
    width: 100%;
    max-width: 620px; /* 下のテキスト幅と完全に揃える */
    margin: 80px auto; 
    border: 1px solid #0054A6; 
    text-align: center;
    box-sizing: border-box; /* paddingによる横幅の膨張を防ぐ */
}

.page-index { 
    list-style: none; 
    text-align: left; 
    display: inline-block; 
    padding: 0; 
    margin: 0; 
}

.page-index li { 
    margin-bottom: 20px; 
    font-weight: bold; 
    font-size: 1.2rem; 
}

.page-index li:last-child { 
    margin-bottom: 0; 
}

.page-index a:hover { 
    border-bottom: 1px solid #0054A6; 
}

/* =========================================================
   メインコンテンツ (共通設定)
========================================================= */
.content-section { 
    padding: 100px 0; 
}

.section-title { 
    font-size: 2.2rem; 
    margin-bottom: 60px; 
    font-weight: bold; 
    line-height: 1.6; 
    text-align: center; 
}

/* 各セクションを区切る全幅の太線 */
#section1, 
#section2, 
#section3 { 
    border-top: 3px solid #0054A6; 
}

.section-lead { 
    font-size: 1.4rem; 
    font-weight: bold; 
    margin-bottom: 40px; 
    text-align: center; 
}

.section-desc, 
.point-desc, 
.measure-desc { 
    font-size: 1.05rem; 
}

/* =========================================================
   セクション② (ポイントブロック詳細)
========================================================= */
.point-block { 
    margin-bottom: 80px; 
}

/* 3pxの青線でポイント間を区切る */
.point-block + .point-block { 
    padding-top: 80px; 
    position: relative; 
}

.point-block + .point-block::before {
    content: ""; 
    display: block; 
    width: 100%; 
    max-width: 850px; 
    height: 3px; 
    background-color: #0054A6; 
    position: absolute; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%); 
}

.point-label { 
    margin-bottom: 30px; 
}

.point-label-image { 
    max-width: 220px; 
    width: 100%; 
}

/* =========================================================
   セクション③ (注力施策詳細)
========================================================= */
.measure-block { 
    margin-bottom: 100px; 
}

.measure-title { 
    font-size: 1.4rem; 
    font-weight: bold; 
    margin-bottom: 30px; 
    line-height: 1.6; 
    text-align: center; 
}

.measure-desc { 
    margin-bottom: 40px; 
}

/* =========================================================
   各画像ごとの最大幅(レスポンシブ考慮)
========================================================= */
.img-integration, 
.img-multipurpose, 
.img-epc, 
.img-renewal, 
.img-automation, 
.img-foodchain {
    margin-top: 40px; 
    width: 100%;
}
.img-integration { max-width: 850px; }
.img-multipurpose { max-width: 650px; }
.img-epc { max-width: 500px; }
.img-renewal { max-width: 450px; }
.img-automation { max-width: 750px; }
.img-foodchain { max-width: 550px; }

/* =========================================================
   フッター (実サイト完全再現)
========================================================= */
.real-site-footer {
    background-color: #161c28; 
    color: #fff; 
    padding: 80px 40px 20px; 
    font-size: 14px; 
    position: relative;
}

.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
}

/* --- フッター左エリア --- */
.footer-left { 
    width: 350px; 
    flex-shrink: 0; 
    text-align: left; 
}

.footer-logo { 
    background-color: #fff; 
    padding: 15px 20px; 
    margin-bottom: 25px; 
    display: inline-block; 
}

.footer-logo img { 
    height: 35px; 
    width: auto; 
}

.company-name { 
    font-weight: 500; 
    font-size: 16px; 
    margin-bottom: 20px; 
}

.company-address { 
    margin-bottom: 20px; 
    line-height: 1.8; 
    color: #fff; 
}

.company-tel { 
    font-weight: bold; 
    color: #fff; 
}

/* --- フッター中央の区切り線 --- */
.footer-divider { 
    width: 1px; 
    background-color: #3b4455; 
    margin: 0 50px; 
}

/* --- フッター右エリア(リンク群) --- */
.footer-right { 
    flex-grow: 1; 
    display: flex; 
    justify-content: space-between; 
    padding-top: 10px; 
    text-align: left; 
}

.footer-col { 
    flex: 1; 
    padding-right: 15px; 
}

.footer-nav-heading { 
    margin-bottom: 20px; 
    font-size: 15px; 
    font-weight: 500; 
}

.footer-nav-heading a { 
    color: #fff !important; 
    text-decoration: none; 
}

.footer-nav-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-nav-list li { 
    margin-bottom: 12px; 
}

.footer-nav-list li a { 
    color: #7b8898 !important; 
    font-size: 13px; 
    transition: 0.3s; 
    text-decoration: none; 
}

.footer-nav-list li a:hover { 
    color: #fff !important; 
}

/* --- コピーライトとボタン --- */
.footer-bottom-bar { 
    max-width: 1400px; 
    margin: 60px auto 0; 
    text-align: right; 
    color: #4b5463; 
    font-size: 12px; 
}

.scroll-top-btn {
    position: absolute; 
    right: 30px; 
    bottom: 30px; 
    background-color: #7b8898; 
    color: #fff !important; 
    width: 40px; 
    height: 40px; 
    border-radius: 4px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px;
    text-decoration: none; 
    transition: 0.3s;
}

.scroll-top-btn:hover { 
    background-color: #5b677a; 
    text-decoration: none; 
}

/* =========================================================
   レスポンシブ対応 (スマートフォン用表示切り替え)
========================================================= */
@media screen and (max-width: 959px) {
    /* UIkit代替クラス */
    .d-sm-none { display: none !important; }
    
    /* PC用の改行を無効化 */
    br.pc-only { display: none; }
    
    .hero-section { padding: 40px 0 0; } 
    .section-title { font-size: 1.6rem; margin-bottom: 40px; }
    .section-lead { font-size: 1.2rem; }
    
    /* ▼ スマホ表示では幅の固定を解除し、画面幅に合わせる ▼ */
    .page-index-container { margin: 40px 20px; padding: 30px 20px; width: auto; max-width: none; }
    .page-index a { font-size: 1rem; }
    
    .point-block + .point-block { padding-top: 50px; }
    
    /* ▼ スマホ時はテキストブロックの左右に余白を持たせる ▼ */
    .text-wrapper { display: block; padding: 0 10px; width: auto; max-width: none; }
    
    .point-label-image { max-width: 180px; }
    .content-section { padding: 60px 0; }

    /* フッターのスマホ表示（縦並び） */
    .real-site-footer { padding: 40px 20px 20px; }
    .footer-container { flex-direction: column; }
    
    .footer-left { 
        width: 100%; 
        text-align: left; /* 左揃えに変更 */
        margin-bottom: 30px; 
    }
    
    .footer-logo {
        display: block; /* 横幅いっぱいに広げる */
        width: 100%;
        text-align: center;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .footer-divider { 
        width: 100%; 
        height: 1px; 
        margin: 0 0 30px 0; 
    }
    
    .footer-right { 
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2カラムのグリッドに設定 */
        gap: 30px 10px; /* 要素同士の隙間調整 */
        text-align: left;
    }
    
    .footer-col { 
        margin-bottom: 0; /* gridの隙間設定に任せるため0に */
        padding-right: 0; 
    }
    
    .footer-nav-heading {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-nav-list li a {
        font-size: 12px;
    }
    
    .footer-bottom-bar { 
        text-align: center; 
        margin-top: 40px; 
        padding-bottom: 40px; /* 矢印ボタンが被らないよう下余白確保 */
    }
    
    .scroll-top-btn { 
        right: 15px; 
        bottom: 15px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* PC時のUIkit代替クラス */
@media screen and (min-width: 960px) {
    .d-md-none, 
    .d-lg-none { 
        display: none !important; 
    }
}

/* =========================================================
   お問い合わせページ用スタイル
========================================================= */
.breadcrumb-area {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 14px;
}
.breadcrumb-area ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.breadcrumb-area span {
    margin: 0 10px;
}
.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #0054A6;
    margin-bottom: 30px;
    border-bottom: 2px solid #0054A6;
    padding-bottom: 10px;
}
.contact-intro {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #333;
}
.privacy-links {
    margin-top: 20px;
}
.privacy-links a {
    color: #0054A6;
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 5px;
}

/* フォームのテーブルデザイン */
.contact-form-wrapper {
    margin-bottom: 80px;
}
.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}
.contact-table th, .contact-table td {
    border: 1px solid #ddd;
    padding: 15px;
    vertical-align: middle;
}
.contact-table th {
    background-color: #f9f9f9;
    width: 30%;
    font-weight: 500;
    color: #333;
    text-align: left;
}
.contact-table td {
    width: 70%;
}
.required {
    background-color: #d9534f;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* 入力欄のデザイン */
.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table input[type="tel"],
.contact-table textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* はみ出し防止 */
    max-width: 100%;
}
.contact-table textarea {
    height: 150px;
    resize: vertical;
}

/* ラジオボタンの余白 */
.wpcf7-radio .wpcf7-list-item {
    margin-right: 20px;
    display: inline-block;
}

/* ▼ 送信ボタン（自動挿入タグ対策で強制中央揃え） ▼ */
.contact-submit {
    text-align: center !important;
    width: 100%;
    margin-top: 30px;
}
.contact-submit p {
    text-align: center !important; 
    margin: 0;
}
.contact-submit input[type="submit"] {
    background-color: #0054A6;
    color: #fff;
    padding: 15px 80px; 
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    width: auto;
    max-width: 100%;
}
.contact-submit input[type="submit"]:hover {
    background-color: #003d7a;
    opacity: 0.9;
}

/* =========================================================
   レスポンシブ (スマホ向け) フォーム特化調整
========================================================= */
@media screen and (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    /* テーブルをブロック化して縦並びに */
    .contact-table, 
    .contact-table tbody, 
    .contact-table tr, 
    .contact-table th, 
    .contact-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 行ごとにカード状の枠で囲む */
    .contact-table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd; 
    }
    
    /* 個別の罫線を消す */
    .contact-table th, 
    .contact-table td {
        border: none; 
    }
    
    .contact-table th {
        background-color: #f9f9f9;
        padding: 15px;
        border-bottom: 1px solid #eee; /* 見出しと入力欄の境界線 */
    }
    
    .contact-table td {
        padding: 15px;
    }
    
    /* ラジオボタンを縦並びに */
    .wpcf7-radio .wpcf7-list-item {
        display: block;
        margin-bottom: 15px;
        margin-right: 0;
    }
    .wpcf7-radio .wpcf7-list-item:last-child {
        margin-bottom: 0;
    }
    
    /* ▼ スマホ時の送信ボタンの確実な中央寄せ ▼ */
    .contact-submit input[type="submit"] {
        width: 100%; 
        max-width: 300px; /* 大きくなりすぎないよう制限 */
        padding: 15px 0;
        margin: 0 auto; /* ここで確実に中央へ */
        display: block;
    }
}