@charset "UTF-8";

/* --- 1. リード文（自然な強調） --- */
.main-lead {
    font-size: 22px;         /* PC: 標準より少し大きい程度 */
    font-weight: bold;       /* 太字でそれとなく強調 */
    color: #333;             /* 自然な黒（または企業の濃い青 #004494） */
    line-height: 1.6;
    margin: 15px 0;
    display: block;
    margin-bottom: 10px;
}

/* --- 2. 画像のPC/スマホ切り替え --- */
.img-pc {
    display: block !important;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.img-sp {
    display: none !important;
}



table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;         /* テーブル内は少し小さめに */
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
}

th {
    background-color: #f9f9f9;
    width: 25%;
}

/* --- 5. スマホ・タブレット向け設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    /* スマホのリード文も控えめに */
    .main-lead {
        font-size: 22px;
        line-height: 1.5;
    margin-bottom: 10px;
    }

    /* 画像の入れ替え */
    .img-pc { display: none !important; }
    .img-sp { display: block !important; max-width: 100%; height: auto; }


    /* テーブルを縦並び（スマホでの読みやすさ重視） */
    th, td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    th {
        background-color: #004494;      /* 紺色 */
        color: #fff;
        border-bottom: none;
        padding: 6px 10px;
    }
    
    td {
        border-top: none;
        margin-bottom: 8px;
    }
}


/* --- 取付対象商品（罫線なし・文字強調） --- */
.target-box {
    margin: 16px 0;
}

.target-box table, 
.target-box tr, 
.target-box td {
    border: none !important;      /* 罫線をすべて消す */
    border-collapse: collapse;
    background: transparent !important;
}

/* 商品名の3行：大きく・太く */
.target-list {
    font-size: 18px !important;   /* PCで大きく */
    font-weight: bold !important;
    line-height: 1.8;
    padding-bottom: 5px !important;
}


/* 補足文：少し小さく控えめに */
.target-note {
    font-size: 16px !important;
    color: #3b3b3b;   /* 濃いめグレー */

    padding-top: 3px !important;
}

@media screen and (max-width: 768px) {
    /* ...他の設定... */
    .target-note {
        font-size: 17px !important; /* 17pxから15pxに下げると補足らしくなります */
        padding-top: 2px !important;
    }
}


/* --- 特典・保証案内（渋い赤文字） --- */
.bonus-text {
    display: inline-block;   /* 余白をしっかり持たせるため */
    color: #b22222 !important; /* 渋い赤（エンジ色） */
    font-size: 20px !important; /* 少し大きく */
    font-weight: bold !important;
    line-height: 1.5 !important; /* 行間を広めに */
    margin-bottom: 20px;      /* 次の行との間隔 */
    margin-top: 16px;
}

/* スマホ向けの調整 */
@media screen and (max-width: 768px) {
    .bonus-text {
        font-size: 18px !important; /* スマホで適切なサイズ */
        margin-bottom: 26px;
    line-height: 1.5 !important; /* 行間を広めに */
    }
}

/* --- 弊社取付所テーブル（PC：サイズ自動 / スマホ：2列維持） --- */
.company-info {
    width: auto !important;      /* PC: テキストの長さに合わせる */
    min-width: 300px;            /* 極端に狭くなるのを防止 */
    margin-bottom: 25px;
    border-collapse: collapse;
}

.company-info th, 
.company-info td {
    border: 1px solid #ccc;
    padding: 12px 25px;
    text-align: left;
    white-space: nowrap;         /* 勝手に改行させない */
}

.company-info th {
    background-color: #f5f5f5;   /* 背景用　ちょい薄めグレー */
    font-weight: bold;
    width: auto !important;      /* 固定幅を解除 */
    white-space: nowrap;         /* 勝手に改行させない */
}

/* --- スマホ向け設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    .company-info {
        width: 100% !important;  /* スマホでは横幅いっぱいに */
        display: table !important; /* 縦並びを解除してテーブル形式を維持 */
    }

    .company-info tr {
        display: table-row !important;
    }

    .company-info th, 
    .company-info td {
        display: table-cell !important; /* 2列表示を強制 */
        font-size: 18px !important;    /* 文字を少し大きく */
        white-space: normal;           /* スマホでは住所などが長い場合に改行を許可 */
        padding: 10px;
    }

    .company-info th {
        width: 30% !important;         /* 項目名の幅を固定 */
        background-color: #f5f5f5 !important;   /* 背景用　ちょい薄めグレー */
        color: #333 !important;        /* 文字色もPCと同じ */
        white-space: nowrap;         /* 勝手に改行させない */
        font-size: 17px !important;    /* 文字を少し大きく */
    }
}

/* --- お支払い方法の見出し（リストより大きく） --- */
.payment-title {
    font-size: 18px !important;   /* リスト(16px)より大きく設定 */
    display: inline-block;        /* 余白を有効にするため */
    margin-bottom: 15px;          /* 下の「下記より〜」との間隔 */
    color: #333;
    margin-top: 15px;
}

/* お支払い方法リスト（先ほどの設定を継続） */
.payment-list {
    margin: 10px 0 25px 0 !important;
    padding-left: 1.5em !important;
}

.payment-list li {
    font-size: 16px;              /* リストは標準サイズ */
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
}

/* スマホ向けの調整 (768px以下) */
@media screen and (max-width: 768px) {
    .payment-title {
        font-size: 20px !important; /* スマホでさらに見やすく大きく */
        margin-top: 15px;
    }
    .payment-list li {
        font-size: 18px !important; /* リストもスマホでは少しアップ */
    }
}

/* --- 弊社工賃表（配置の調整） --- */
.labor-info {
    width: auto !important;      /* PC: テキスト幅に合わせる */
    min-width: 400px;            /* 極端に狭くなるのを防止 */
    margin-top: 10px;
    padding: 10 20 10 20;
}

/* 見出し（項目名）をセンター揃え */
.labor-info th {
    text-align: center !important;
    background-color: #f5f5f5;   /* 背景用　ちょい薄めグレー */
}

/* 商品名（1列目）は左寄せ */
.labor-info td:first-child {
    text-align: left;
}

/* 金額（2列目）を右寄せにして太字に */
.labor-info td:last-child {
    text-align: right !important;
    font-weight: bold;
    color: #333;
    padding-right: 20px; /* 右側に少し余白をあけて読みやすく */
}

/* --- スマホ向け設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    .labor-info {
        width: 100% !important;      /* 画面幅いっぱいに固定 */
        table-layout: fixed !important; /* 文字が長くても枠を広げない */
        min-width: auto !important;   /* PC用のmin-widthを解除 */
    }

    .labor-info th, 
    .labor-info td {
        font-size: 17px !important;  /* 文字を少し小さくして収まりを良く */
        padding: 10px 5px !important; /* 左右の余白を詰める */
        word-break: break-all;       /* 長い単語を強制的に改行させる */
        white-space: normal !important; /* 折り返しを許可 */
    }

    .labor-info th {
    background-color: #f5f5f5 !important;   /* 背景用　ちょい薄めグレー */
    }

    /* 商品名と工賃の比率を調整 */
    .labor-info th:first-child, 
    .labor-info td:first-child { 
        width: 60% !important; 
    }
    .labor-info th:last-child, 
    .labor-info td:last-child { 
        width: 40% !important; 
    }
}

/* --- PCでは改行タグを無効化する --- */
.sp-br {
    display: none !important;
}

/* --- スマホ・タブレット向け設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    /* スマホの時だけ改行タグを有効化（表示）する */
    .sp-br {
        display: inline !important;
    }

    /* 前回のテーブルはみ出し対策も継続 */
    .labor-info {
        width: 100% !important;
        table-layout: fixed !important;
    }
}

/* --- 都道府県ナビボタン（サイズ統一・文字強調） --- */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;           /* ボタン同士の間隔 */
    margin: 25px 0;
    justify-content: flex-start;
}

.nav-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004494;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold !important; /* 太字 */
    font-size: 18px !important;   /* 文字を大きめに */
    height: 50px;                 /* 高さを統一 */
    /* PCでのボタン幅：5列並び(100%÷5 - 隙間) */
    flex: 0 0 calc(20% - 10px); 
    box-sizing: border-box;
    transition: 0.3s;
}

.nav-buttons a:hover {
    background-color: #0066cc;
    opacity: 0.9;
}

/* --- スマホ向け設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    .nav-buttons {
        gap: 5px; /* 3列にするため隙間を少し狭くする */
    }

    .nav-buttons a {
        /* 3列並びの計算：(100% ÷ 3) - 隙間分 */
        flex: 0 0 calc(33.33% - 5px); 
        font-size: 17px !important;   /* 3列で枠内に収まるよう少しサイズダウン */
        height: 50px;                 /* 高さを揃える */
        padding: 5px;                 /* 内側の余白を最小限に */
        letter-spacing: -0.5px;       /* 文字間をわずかに詰めて4文字（神奈川県など）を収める */
    }
}


/* --- 店舗カード共通設定 --- */
.company-card {
    margin-bottom: 35px; /* PC: 企業間の大きな余白 */
}

.company-card table {
    width: auto;             /* PC: コンテンツ幅に合わせる */
    min-width: 500px;        /* PC: 狭すぎ防止 */
    border-collapse: collapse;
}

.company-card th {
    border: 1px solid #ddd;
    padding: 10px 35px;
    text-align: center;
    vertical-align: middle !important;
}

.company-card td {
    text-align: left;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

/* PCの項目名：文字に合わせて幅を自動調整 */
.company-card th {
    background-color: #f5f5f5;   /* 背景用　ちょい薄めグレー */
    width: 1% !important;     /* 最小幅を指定することで文字にぴったり吸着させる */
    white-space: nowrap;      /* 文字に合わせて幅を広げ、改行を禁止する */
    font-weight: bold;
}

/* --- スマホ向け設定 (768px以下) --- */
@media screen and (max-width: 768px) {
    .company-card {
        margin-bottom: 30px;
    }

    .company-card table {
        width: 100% !important; /* スマホは横幅いっぱい */
        min-width: auto !important;
        padding: 4px 3px;
    }

    .company-card th, 
    .company-card td {
        display: table-cell !important;
        font-size: 19px !important;
        line-height: 1.3 !important;
        padding: 12px 8px !important; /* 上下を極限までくっつける */
    }

    /* スマホの項目名：背景をグレーにし、文字に幅を合わせる */
    .company-card th {
        width: 1% !important;         /* スマホでも文字幅にぴったり合わせる */
        background-color: #f5f5f5;   /* 背景用　ちょい薄めグレー */
        color: #666 !important;
        white-space: nowrap;          /* 「所在地」などが改行されないようにする */
        font-size: 17px !important;
        text-align: center;
        vertical-align: middle !important;
    }
    
    .company-card td {
        word-break: break-all;        /* 右側の住所などは長い場合に改行を許可 */
        text-align: left;
    }
}