/* ============================================
   株式会社 ONELINE デザイン決定版（和モダン）
   整理・統合済みバージョン
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap');

/* --- 1. 基本設定 --- */
:root {
    --primary-color: #332f2d;    /* 墨色 */
    --accent-color: #a68b5e;     /* 真鍮ゴールド */
    --bg-warm: #fcfaf5;          /* 温かい白 */
    --text-main: #444;           /* 基本文字色 */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 4%; }

/* --- 2. ヘッダー --- */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 img { height: 45px; width: auto; }

.pc-nav ul { display: flex; list-style: none; gap: 20px; }
.pc-nav a { text-decoration: none; color: var(--primary-color); font-weight: bold; font-size: 14px; }
.btn-contact { background: var(--primary-color); color: #fff !important; padding: 8px 20px; border-radius: 2px; }

/* --- 3. メインビジュアル --- */
.main-visual {
    height: 80vh;
    background: #555 url('../image/main.jpg') no-repeat center/cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; position: relative;
}
.main-visual::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
}
.main-text { position: relative; z-index: 1; }
.main-text h2 { font-family: "Noto Serif JP", serif; font-size: clamp(32px, 8vw, 64px); margin-bottom: 20px; }
.btn-main {
    display: inline-block; background: var(--accent-color); color: #fff;
    padding: 15px 40px; text-decoration: none; font-weight: bold;
    border-radius: 50px; margin-top: 20px; transition: 0.3s;
}
.btn-main:hover { opacity: 0.8; }

/* --- 4. セクション共通 --- */
.section { padding: 100px 0; }
.bg-white { background: #fff; }
.section-title {
    text-align: center; font-family: "Noto Serif JP", serif; font-size: 32px;
    margin-bottom: 60px; color: var(--primary-color);
}

/* --- 5. 選ばれる理由（壱・弐・参） --- */
.reason-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.reason-item { text-align: center; }
.reason-num {
    width: 80px; height: 80px; border: 2px solid var(--accent-color); border-radius: 50%;
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    font-family: "Noto Serif JP", serif; font-size: 32px; color: var(--accent-color); font-weight: bold;
}

/* --- 6. 事業案内パネル --- */
.service-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-panel {
    height: 400px; background-size: cover; background-position: center;
    position: relative; text-decoration: none; display: flex; align-items: flex-end;
    overflow: hidden; transition: 0.3s;
}
.service-panel:hover { transform: translateY(-5px); }
.panel-1 { background-color: #888; background-image: url('../image/service1.jpg'); }
.panel-2 { background-color: #777; background-image: url('../image/service2.jpg'); }
.panel-3 { background-color: #666; background-image: url('../image/service3.jpg'); }
.service-panel::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.panel-txt { position: relative; z-index: 2; padding: 30px; color: #fff; }
.panel-txt h4 { font-size: 22px; margin-bottom: 5px; }

/* --- 7. 会社概要 --- */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th { background: #f9f6f2; padding: 20px; width: 30%; text-align: left; border-bottom: 1px solid #ddd; }
.company-table td { padding: 20px; border-bottom: 1px solid #ddd; }

/* --- 8. お問い合わせ（CONTACT） --- */
.bg-dark { background: #222; color: #fff; }
.bg-dark .section-title { color: #fff; }

.contact-flex { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.contact-info, .contact-form-wrapper { flex: 1; min-width: 300px; }
.contact-box { background: #333; padding: 40px; text-align: center; }
.tel-no { font-size: 36px; font-weight: bold; color: var(--accent-color); display: block; }

.contact-form-wrapper form { display: flex; flex-direction: column; gap: 15px; }
.form-group { text-align: left; display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-weight: bold; color: #fff; font-size: 14px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: none; border-radius: 4px; font-size: 16px;
}
.submit-btn {
    margin-top: 10px; background-color: var(--accent-color); color: #fff;
    padding: 18px; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 16px;
}
.submit-btn:hover { background-color: #c5a676; }

/* --- 9. フッター --- */
.site-footer { padding: 60px 0; text-align: center; background: #fff; }
.f-logo { display: block; width: 200px; height: auto; margin: 0 auto 20px; }
.copyright { font-size: 12px; color: #888; }

/* --- 10. 不要なリンクの削除 & スマホ設定 --- */
body > a[href^="tel:"], 
body > a[href="#contact"] { display: none; }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.bar { width: 25px; height: 3px; background: #333; transition: 0.3s; }

@media (max-width: 980px) {
    .pc-nav { display: none; }
    .menu-toggle { display: flex; }
    .section { padding: 60px 0; }
    
    .bottom-fix-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
    }
    .bottom-fix-nav a {
        flex: 1; color: #fff; text-align: center; padding: 18px;
        text-decoration: none; font-weight: bold;
    }
    .nav-tel { background: var(--accent-color); }
    .nav-mail { background: var(--primary-color); }
}

@media (min-width: 981px) {
    .bottom-fix-nav { display: none; }
}

/* 地図のスタイル */
.contact-map {
    margin-top: 25px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}


.contact-map {
    margin-top: 25px;
    border: 2px solid var(--accent-color); /* 真鍮ゴールドの枠線 */
    border-radius: 8px;
    overflow: hidden;
    line-height: 0; /* 下の隙間を消す */
}

/* スマホ用固定ナビの最終調整 */
@media (max-width: 980px) {
    .bottom-fix-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }
    
    .bottom-fix-nav a {
        flex: 1;
        color: #fff;
        text-align: center;
        padding: 12px 5px;
        text-decoration: none;
        font-weight: bold;
        font-size: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .bottom-fix-nav .icon {
        font-size: 18px;
    }

    .nav-tel { background: #1a3b5e; } /* 濃い青 */
    .nav-mail { background: #2c4a6b; } /* 少し明るい青 */
    .nav-access { background: #a68b5e; } /* ゴールド */
    
    /* 固定ナビの分、フッターの下に余白を作る */
    body { padding-bottom: 70px; }
}

/* --- ハンバーガーメニューが押された時の動き --- */
@media (max-width: 980px) {
    /* メニュー本体の初期状態（隠しておく） */
    .pc-nav {
        display: none; /* 一旦消す */
        position: fixed;
        top: 75px; /* ヘッダーの高さに合わせる */
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background: #fff;
        z-index: 999;
        padding-top: 50px;
    }

    /* 「active」がついた時だけ表示する */
    .pc-nav.active {
        display: block;
    }

    .pc-nav ul {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
        gap: 30px;
    }

    .pc-nav a {
        font-size: 20px; /* スマホで見やすいように大きく */
    }

    /* 三本線ボタンの形 */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* プライバシーチェックのスタイル */
.form-privacy {
    text-align: center;
    margin: 20px 0;
}

.privacy-label {
    font-size: 14px;
    color: #fff; /* 背景が黒いので白文字に */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.privacy-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-label a {
    color: var(--accent-color); /* ゴールド（アクセント色）にする */
    text-decoration: underline;
}

.privacy-label a:hover {
    text-decoration: none;
}

/* --- 11. 下層ページ用追加スタイル --- */
/* ページヘッダーの背景色やフォント */
.page-header {
    background: linear-gradient(rgba(252,250,245,0.9), rgba(252,250,245,0.9)), 
                url('../image/pattern.png'); /* 軽い和紙のような模様があれば */
    border-bottom: 1px solid #ddd;
}

/* 2カラムレイアウト（写真と説明） */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.flex-text { flex: 1; min-width: 300px; }
.flex-img { 
    flex: 1; min-width: 300px; 
    background: #e0e0e0; 
    aspect-ratio: 16 / 9; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.flex-img img { width: 100%; height: 100%; object-fit: cover; }

/* 箇条書き（施工の流れなど） */
.flow-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.flow-num {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Noto Serif JP', serif;
}
.flow-content h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}