/* Case Detail Page */

/* ページヘッダー（aboutページと同じ） */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/images/business-meeting-two.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* コンテンツ部分 */
.case-content {
    padding: 60px 0;
    background-color: #fff;
}

.case-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* パンくず */
.case-breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.case-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.case-breadcrumb a:hover {
    text-decoration: underline;
}

/* ヘッダー部分 */
.case-header {
    margin-bottom: 50px;
    padding: 35px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
}

.case-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.92);
    z-index: 0;
}

.case-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a2b3c 0%, #3498db 50%, #1a2b3c 100%);
    z-index: 2;
}

.case-header > * {
    position: relative;
    z-index: 1;
}

.case-tag {
    display: inline-block;
    background: #1a2b3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.case-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
    margin-bottom: 20px;
}

.case-lead {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 25px;
}

.case-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.case-meta li {
    font-size: 0.85rem;
    color: #555;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
}

/* メイン画像 */
.case-hero {
    margin: 0 0 50px 0;
}

.case-hero img {
    width: 100%;
    height: auto;
}

/* 本文 */
.case-body {
    line-height: 1.9;
    color: #333;
}

.case-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 50px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a2b3c;
}

.case-body h3:first-child {
    margin-top: 0;
}

.case-body p {
    margin-bottom: 20px;
}

/* ブロック */
.case-block {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
}

.case-block h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.case-block p {
    margin-bottom: 0;
    color: #555;
}

/* 成果リスト */
.case-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-results li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.case-results li:last-child {
    border-bottom: none;
}

/* アーキテクチャ図 */
.case-architecture {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.case-architecture img {
    min-width: 600px;
    height: auto;
    display: block;
}

/* 技術スタック */
.case-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-tech-group {
    background: #f8f9fa;
    padding: 20px;
}

.case-tech-group h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
}

.case-tech-group p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

/* お客様の声 */
.case-quote {
    background: #f8f9fa;
    padding: 30px;
    margin: 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    border-radius: 8px;
}

.case-quote-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.case-quote-icon svg {
    width: 32px;
    height: 32px;
}

.case-quote-content {
    flex: 1;
}

.case-quote-content p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.8;
}

.case-quote-content cite {
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

/* 関連事例 */
.case-related {
    margin-top: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.case-related h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-related li {
    border-bottom: none;
}

.case-related a {
    display: block;
    padding: 16px 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.case-related a:hover {
    background: #1a2b3c;
    color: #fff;
    border-color: #1a2b3c;
}

/* CTA */
.cta-section {
    padding: 80px 0;
    background-color: #1a2b3c;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.cta-text {
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-outline-white {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 40px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: #fff;
    color: #1a2b3c;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .case-title {
        font-size: 1.5rem;
    }

    .case-meta li {
        display: block;
        margin-bottom: 5px;
    }

    .case-body h3 {
        font-size: 1.2rem;
    }

    .case-tech {
        grid-template-columns: 1fr;
    }


    .cta-section {
        padding: 60px 0;
    }
}
