/* ============================================================
   合同会社結 — カスタムCSS
============================================================ */

/* ヘッダー背景をグレーに */
.site-header {
    background: rgba(245, 245, 243, 0.95);
    border-bottom: 1px solid #d0cfcb;
}

/* 料金カードのボタンを下に揃える */
.pricing-card {
    display: flex;
    flex-direction: column;
}
.pricing-card .btn {
    margin-top: auto;
}

/* サービスカードの詳しく見るを下に揃える */
.service-card {
    display: flex;
    flex-direction: column;
}
.service-card__link {
    margin-top: auto;
}

/* ============================================================
   スマホ対応 (768px以下)
============================================================ */
@media (max-width: 768px) {

    /* 1枚目: ヒーローの上余白を削減 */
    .hero {
        padding-top: calc(68px + 7rem);
        padding-bottom: 3rem;
    }

    /* 2枚目: 選ばれる3つの理由 → 縦並び */
    .why-grid {
        grid-template-columns: 1fr !important;
    }

    /* 3〜5枚目: サービス詳細の左右2カラム → 縦並び */
    .service-detail-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 6枚目: 制作の流れ → 縦並び */
    .process-grid {
        grid-template-columns: 1fr !important;
    }
    .process-grid > div {
        border-right: none !important;
        border-bottom: 0.5px solid var(--color-gray-300) !important;
    }
    .process-grid > div:last-child {
        border-bottom: none !important;
    }

/* 7枚目: 保守プランテーブル → スマホ時はカード縦積み */
.plan-table-wrap {
    overflow-x: visible;
}
.plan-table-wrap table {
    width: 100%;
    min-width: unset;
}
.plan-table-wrap thead {
    display: none;
}
.plan-table-wrap tbody tr {
    display: flex;
    flex-direction: column;
    border: 0.5px solid var(--color-gray-300);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    padding: 1.25rem;
}
.plan-table-wrap tbody td {
    display: block;
    padding: 0.2rem 0 !important;
    border: none !important;
}
.plan-table-wrap tbody td:first-child {
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 0.5px solid var(--color-gray-100) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.25rem;
}
.plan-table-wrap tbody td:nth-child(2) {
    font-family: var(--font-display);
    font-size: 1.25rem;
}
	
	
    /* statsバー → 2カラムに */
    .stats-bar__inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3) { border-top: 0.5px solid var(--color-gray-300); }
    .stat:nth-child(4) { border-top: 0.5px solid var(--color-gray-300); }
}