@charset "UTF-8";

/* ==========================================================================
   導入事例共通・一覧・詳細スタイル
   ========================================================================== */

/* 一覧ページ：案内テキスト */
.case_guide_text {
    line-height: 1.8;
    margin-bottom: 40px;
    color: #333;
    font-size: 15px;
}

/* 一覧ページ：フィルター */
.case_filter {
    margin: 0 auto 50px;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case_filter_label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
}

.case_filter_select_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.case_filter select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #1a5090;
    border-radius: 5px;
    color: #1a5090;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #1a5090 50%), linear-gradient(135deg, #1a5090 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    outline: none;
}

.case_filter select:focus {
    box-shadow: 0 0 5px rgba(26, 80, 144, 0.3);
}

/* 一覧ページ：カードリスト */
.case_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.case_card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.case_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.case_card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.case_card_img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8f8f8;
}

.case_card_img img {
    width: 100%;
    height: 100%;
    /* aspect-ratioに従って16:9の枠いっぱいに表示 */
    object-fit: cover;
}

.case_card_body {
    padding: 20px;
}

.case_type {
    margin-bottom: 10px;
}

.case_type span {
    background: #1a5090;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
    font-weight: bold;
}

.case_type span.install_tag {
    background: #2d8c3c;
    color: #fff;
    margin-left: 5px;
}

.case_name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.case_more {
    color: #1a5090;
    font-weight: bold;
    font-size: 14px;
    text-align: right;
}

.case_more::after {
    content: " →";
}

/* 共通：ページネーション & ボタン */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-size: 14px;
}

.pagination span.current {
    background: #1a5090;
    color: #fff;
    border-color: #1a5090;
}

.btn_gray {
    display: inline-block;
    padding: 12px 40px;
    background: #666;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn_gray:hover {
    background: #444;
}

/* 詳細ページ固有 */
.case_detail_container {
    margin-top: 20px;
}

.case_images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.case_img_item img {
    width: 100%;
    height: auto;
    /* 写真の本来の比率を維持 */
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.case_info_table {
    margin-bottom: 30px;
}

.case_info_table table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.case_info_table th,
.case_info_table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

.case_info_table th {
    background: #f9f9f9;
    color: #1a5090;
    font-weight: bold;
    width: 160px;
    /* PC表示時の項目名の幅を固定 */
    white-space: nowrap;
    /* 文字の折り返しを防ぐ */
}

.case_comment {
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.case_comment h3 {
    margin: 0;
    background: #f9f9f9;
    color: #1a5090;
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.case_comment p {
    padding: 20px;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

/* レスポンシブ */
@media (max-width: 950px) {
    .case_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .case_images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .case_filter {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

@media (max-width: 650px) {
    .case_list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .pc_only {
        display: block;
    }
}

@media (max-width: 768px) {
    .pc_only {
        display: none;
    }
}

/* スマホ表示での調整 */
@media (max-width: 600px) {
    .case_info_table th {
        width: 100px;
        /* スマホでは少し狭くする */
        padding: 10px;
        font-size: 13px;
    }

    .case_info_table td {
        padding: 10px;
        font-size: 13px;
    }
}

/* ============================================================
   CTAセクション（詳細ページ）
   ============================================================ */
.case_cta_section {
    background: #fdf5ee;
    padding: 20px 20px;
    margin: 40px 0;
}

.case_cta_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.case_cta_text {
    flex: 1;
}

.case_cta_headline {
    font-size: 22px;
    font-weight: bold;
    color: #e07030;
    line-height: 1.5;
    margin: 0 0 16px;
}

.case_cta_sub {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.case_cta_buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 200px;
}

.case_cta_btn_primary,
.case_cta_btn_secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s, background 0.2s;
}

.case_cta_btn_primary {
    background: #e07030;
    color: #fff;
    border: 2px solid #e07030;
}

.case_cta_btn_primary:hover {
    opacity: 0.85;
}

.case_cta_btn_secondary {
    background: #fff;
    color: #555;
    border: 2px solid #ccc;
}

.case_cta_btn_secondary:hover {
    border-color: #e07030;
    color: #e07030;
}

.case_cta_btn_icon {
    margin-right: 8px;
    font-size: 22px;
}

.case_cta_btn_arrow {
    font-size: 18px;
    margin-left: auto;
    padding-left: 10px;
}

.case_cta_hours {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin: 0;
}

/* CTAセクション スマホ対応 */
@media (max-width: 768px) {
    .case_cta_section {
        padding: 36px 24px;
    }

    .case_cta_inner {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .case_cta_headline {
        font-size: 18px;
    }

    .case_cta_buttons {
        min-width: auto;
        width: 100%;
    }
}