/* 
 * page-case-detail.css
 * 実績詳細ページ専用スタイル
 */

 .site-main {
    margin-top: 60px;
  }

 /* ヒーローセクション */
.site-hero-bg {
    position: relative;
    height: 120px;
    min-height: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
  }
  
  .site-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .site-hero-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
  }
  
  .site-hero-content h1 {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  }

  .site-container {
    padding-top: 0;
  }

/* 実績概要セクション */
.case-overview {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.case-title {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.case-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-category {
    display: inline-block;
    background-color: #EF454A;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    width: auto;
    margin-right: 10px;
}

.case-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 15px;
    color: var(--text-light);
}

/* 共通セクションスタイル */
.case-section {
    margin-bottom: 60px;
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    border-radius: 2px;
    background-color: var(--primary-color);
}

/* 問題2: ソリューションセクションタイトルの装飾統一 - 青色の縦線を追加 */
.case-approach .section-title::before {
    background-color: #2E86C1; /* アクセントカラー（青）を明示的に指定 */
}

.case-result .section-title::before {
    background-color: #28a745; /* 成功色 */
}

.section-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

/* リストタイトルのスタイル */
.list-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-weight: 600;
    position: relative;
}

/* 課題セクション */
.problem-list {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.problem-list li {
    margin-bottom: 10px;
    position: relative;
}

.problem-list li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.problem-heading {
    font-weight: bold;
    margin-top: 15px;
    list-style-type: disc;
    color: #EF454A;
}

.problem-detail {
    margin-left: 20px;
    list-style-type: disc;
    color: #666;
}

/* 標準リストスタイル */
.standard-list {
    margin: 15px 0 25px;
    padding-left: 25px;
}

.standard-list li {
    margin-bottom: 10px;
    position: relative;
}

.standard-list li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* 特長リストスタイル */
.feature-list {
    margin: 20px 0 30px;
    padding-left: 0;
    list-style: none;
    counter-reset: feature-counter;
}

.feature-list li {
    position: relative;
    margin-bottom: 25px;
    padding-left: 40px;
    counter-increment: feature-counter;
}

.feature-list li::before {
    content: counter(feature-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #2E86C1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.feature-list h4 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--secondary-color);
}

.feature-list p {
    margin: 0;
    color: var(--text-light);
}

/* ステップリスト */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.step-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    counter-increment: step-counter;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #2E86C1; /* 濃い青色に変更 */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px; /* 文字サイズを明示的に指定 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 立体感を持たせる */
}

/* 未来リスト */
.future-list {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.future-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 25px;
}

.future-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.future-title {
    font-size: 18px;
    margin: 0 0 10px;
    color: var(--secondary-color);
}

/* キーポイント */
.key-point {
    background-color: #f0f7fb;
    border-left: 5px solid #2E86C1; /* アクセントカラー（青）を明示的に指定 */
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.point-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 18px;
}

/* 成果セクション */
.result-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
    justify-content: center;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 250px;
}

.metric-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.metric-value small {
    font-size: 24px;
}

.metric-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.metric-detail {
    font-size: 14px;
    color: var(--text-light);
}

/* テーブルスタイル */
.case-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.case-table th, .case-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.case-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    color: #333;
}

.case-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* コスト比較テーブル */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cost-table th, .cost-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.cost-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.cost-table tr:last-child {
    background-color: #f8f8f8;
    font-weight: bold;
}

.cost-reduction {
    color: #EF454A; /* プライマリーカラー（赤）を明示的に指定 */
}

/* 図表 */
.case-figure {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.case-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.case-figure figcaption {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* 関連サービスセクション */
.related-intro {
    margin-bottom: 20px;
}

.related-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-service {
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.related-service h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.related-service p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-more {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #EF454A; /* プライマリーカラー（赤）を明示的に指定 */
    color: #EF454A; /* プライマリーカラー（赤）を明示的に指定 */
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-more:hover {
    background-color: #EF454A; /* プライマリーカラー（赤）を明示的に指定 */
    color: white;
}

/* お問い合わせCTA */
.case-cta {
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 60px;
}

.case-cta h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.case-cta p {
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background-color: #EF454A; /* プライマリーカラー（赤）を明示的に指定 */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #D03539; /* プライマリーダークカラー（濃い赤）を明示的に指定 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-main {
        margin-top: 60px;
    }

    .site-hero-bg {
        height: 100px;
    }
      
    .site-hero-content h1 {
        font-size: 28px;
    }

    .case-title {
        font-size: 26px;
    }
    
    .case-section {
        padding: 20px;
    }
    
    .result-metrics {
        flex-direction: column;
        align-items: center;
    }
    
    .metric {
        width: 100%;
    }
    
    .case-cta {
        padding: 30px 20px;
    }
    
    .cost-table {
        font-size: 14px;
    }
    
    .cost-table th, .cost-table td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .site-main {
        margin-top: 60px;
    }

    .site-hero-bg {
        height: 80px;
    }
      
      .site-hero-content h1 {
        font-size: 24px;
    }

    .case-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-services {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .feature-list li {
        padding-left: 35px;
    }
    
    .cost-table {
        font-size: 12px;
    }
}