/* ========================================
   レイアウト最適化（センタリングとバランス）
   ======================================== */

/* コンテナの統一 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション間の統一的なスペーシング */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
}

/* セクションヘッダーのセンタリング */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

/* グリッドレイアウトの統一 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 968px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* カードの統一的なスタイル */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    height: 100%;
}

@media (max-width: 576px) {
    .card {
        padding: 20px;
    }
}

/* テキストのセンタリング */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* CTAセクションのセンタリング */
.cta-section,
.simulation-cta,
.process-cta {
    text-align: center;
    padding: 50px 0;
}

.cta-text {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 600;
}

/* 事例カードのレイアウト最適化 */
.simulation-examples {
    max-width: 100%;
}

.example-card {
    margin-bottom: 20px;
}

.example-card:last-child {
    margin-bottom: 0;
}

/* フッターのレイアウト最適化 */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    margin-bottom: 15px;
}

.footer-bottom-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* 料金シミュレーションのレイアウト */
.simulation-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* お問い合わせフォームのレイアウト */
.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* 導入の流れのレイアウト */
.process-timeline {
    max-width: 900px;
    margin: 50px auto 0;
}

/* 比較表のセンタリング */
.comparison-table-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* 安心の理由グリッド */
.warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

@media (max-width: 968px) {
    .warranty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .warranty-grid {
        grid-template-columns: 1fr;
    }
}

/* 導入事例グリッド */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQリスト */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

/* 選ばれる理由グリッド */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 968px) {
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* 余白の統一 */
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
