/* ==========================================
   導入事例ページ専用スタイル
   ========================================== */

/* ==========================================
   共通設定
   ========================================== */

/* ページヘッダー */
.c_page_header {
    max-width: 1148px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 3rem 1.5rem 2rem;
    background-color: transparent;
}

.c_page_header .c_page_title {
    font-size: clamp(1.75rem, 1.2007rem + 2.2535vw, 2.75rem);
    font-weight: 700;
    color: var(--c-navy);
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 2.5rem;
    padding: 0;
}

.c_page_header_inner {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.c_page_desc {
    width: calc(100% - 238px - 1rem);
    font-size: 1rem;
}

.customers_header_link a {
    display: flex;
    align-items: center;
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--border-radius-normal);
    padding: 1rem;
    white-space: nowrap;
    width: fit-content;
}

/* ==========================================
   検索フィルターエリア
   ========================================== */
.l_customers_search {
    padding: 3rem 1.5rem;
    background-color: #f7f7f7;
    margin-bottom: 3.5rem;
}

.l_customers_search_inner {
    max-width: 1148px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.c_search_form {
    width: 100%;
}

.c_search_filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.c_search_filter_item {
    flex: 1;
    min-width: 200px;
}

.c_search_filter_item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--c-navy, #003d6d);
}

.c_search_filter_item select,
.c_search_filter_item input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-normal, 4px);
    font-size: 1rem;
    background-color: #fff;
}

.c_search_filter_item select:focus,
.c_search_filter_item input[type="text"]:focus {
    outline: none;
    border-color: var(--cp-blue, #00a4dc);
}

.c_search_keyword {
    flex: 2;
}

.c_search_submit {
    flex: 0 0 auto;
}

.c_search_submit .btn_primary {
    padding: 0.75rem 2rem;
    background-color: var(--cp-blue, #00a4dc);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-normal, 4px);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.c_search_submit .btn_primary:hover {
    background-color: var(--cp-blue-dark, #0088b8);
}

/* ==========================================
   導入事例一覧
   ========================================== */
.l_customers_list {
    padding: 4rem 1.5rem;
    background-color: #fff;
}

.l_customers_list_inner {
    max-width: 1200px;
    margin: 0 auto;
}

.c_customers_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c_customer_card {
    background-color: #fff;
    border-radius: var(--border-radius-large, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c_customer_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.c_customer_card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.c_customer_img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.c_customer_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c_customer_content {
    padding: 1.5rem;
}

.c_customer_tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.c_tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-normal, 4px);
    font-size: 0.8rem;
    font-weight: 500;
}

.c_tag_industry {
    background-color: #e3f2fd;
    color: #1976d2;
}

.c_tag_service {
    background-color: #fff3e0;
    color: #f57c00;
}

.c_tag_challenge {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.c_customer_title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--c-navy, #003d6d);
}

.c_customer_company {
    font-size: 0.9rem;
    color: var(--sub-text, #666);
    margin-bottom: 0.75rem;
}

.c_customer_excerpt {
    font-size: 0.9rem;
    color: var(--text-color, #333);
    line-height: 1.6;
}

/* 検索結果なし */
.c_no_posts {
    text-align: center;
    padding: 3rem 1rem;
}

.c_no_posts p {
    font-size: 1.1rem;
    color: var(--sub-text, #666);
}

/* ==========================================
   導入事例詳細ページ
   ========================================== */
.l_customer_detail {
    max-width: 848px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.l_customer_header {
    text-align: left;
    margin-bottom: 3rem;
}

.l_customer_header .c_page_title {
    font-size: clamp(1.25rem, 0.9754rem + 1.1268vw, 1.75rem);
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.5;
    padding: 0;
}

/* 画像 + 会社情報セクション（2カラム） */
.l_customer_company_section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.l_customer_image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-normal);
}

.l_customer_company_info {
    /* padding-top: 1rem; */
}

.c_company_name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-navy);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.c_company_url {
    font-size: 0.875rem;
    margin: 0;
}

.c_company_url a {
    color: var(--cp-blue);
    text-decoration: none;
    word-break: break-all;
    transition: opacity 0.3s ease;
}

.c_company_url a:hover {
    opacity: 0.6;
    text-decoration: underline;
}

/* お話を伺った方セクション（2カラム） */
.l_customer_interviewee {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-solid);
    border-bottom: 1px solid var(--line-solid);
}

.c_interviewee_label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-navy, #003d6d);
}

.c_interviewee_content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-color, #333);
}

/* 本文コンテンツ */
.l_customer_content {
    padding-bottom: 5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line-solid);
    line-height: 1.8;
}

.l_customer_content h2 {
    position: relative;
    font-size: 1.375rem;
    margin: 3rem 0 1.5rem;
    /* padding-left: 1rem;
    border-left: 4px solid var(--cp-blue, #00a4dc); */
    line-height: 1.5;
    padding-left: calc(60px + 1rem);
}

.l_customer_content h2::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--c-navy);
    margin-right: 1rem;
}

.l_customer_content h2:first-child {
    margin-top: 0;
}

.l_customer_content p {
    margin-bottom: 1rem;
}

.l_customer_content img {
    width: 70%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

.l_customer_content figure {
    margin: 2rem 0;
    text-align: center;
}

.l_customer_content figure img {
    width: 70%;
    height: auto;
    margin: 0 auto;
}

/* インタビュー Q&A */
.l_customer_interview {
    margin-bottom: 3rem;
}

.c_qa_item {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius-large, 8px);
}

.c_qa_even {
    background-color: #f8f9fa;
}

.c_question {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.c_q_mark {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cp-blue, #00a4dc);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
}

.c_q_text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-navy, #003d6d);
    line-height: 1.6;
    padding-top: 0.5rem;
}

.c_answer {
    display: flex;
    gap: 1rem;
}

.c_a_mark {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-navy, #003d6d);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
}

.c_a_text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color, #333);
    padding-top: 0.5rem;
}

/* 一覧へ戻るリンク */
.l_customer_back {
    margin-bottom: 3.5rem;
}

.btn_back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--c-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn_back:hover {
    opacity: .6;
}

.btn_back img {
    width: 20px;
    height: 20px;
}

/* 関連事例 */
.l_related_customers {
    max-width: 1148px;
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto 7.5rem;
}

.c_section_title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

/* タブレット */
@media screen and (max-width: 1024px) {
    .c_customers_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマートフォン */
@media screen and (max-width: 768px) {

    /* ページヘッダー */
    .c_page_header {
        padding: 2rem 1rem 1rem;
        text-align: left;
    }

    .c_page_header .c_page_title {
        font-size: 1.75rem;
    }

    .c_page_header_inner {
        flex-direction: column;
    }

    .c_page_desc {
        width: 100%;
    }

    .customers_header_link a {
        width: 100%;
    }

    /* 検索エリア */
    .l_customers_search {
        padding: 2rem 1rem;
    }

    .l_customers_search_inner {
        padding: 1.5rem 1rem;
    }

    /* 検索フィルター */
    .c_search_filters {
        flex-direction: column;
    }

    .c_search_filter_item,
    .c_search_keyword {
        min-width: 100%;
    }

    .c_search_submit {
        width: 100%;
    }

    .c_search_submit .btn_primary {
        width: 100%;
    }

    /* 一覧グリッド */
    .c_customers_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 詳細ページ */
    .l_customer_header {
        text-align: left;
        margin-bottom: 2rem;
    }

    .l_customer_header .c_page_title {
        font-size: 1.5rem;
    }

    /* 画像+会社情報を1カラムに */
    .l_customer_company_section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .l_customer_company_info {
        padding-top: 0;
    }

    /* お話を伺った方を1カラムに */
    .l_customer_interviewee {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    /* コンテンツ内の画像をモバイルでは100%に */
    .l_customer_content img,
    .l_customer_content figure img {
        width: 100%;
    }

    .c_q_mark,
    .c_a_mark {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .c_q_text {
        font-size: 1rem;
    }

    .c_a_text {
        font-size: 0.95rem;
    }

    .c_qa_item {
        padding: 1.5rem 1rem;
    }
}