/* =============================================
   Voice-Casestudy テンプレート用スタイル
   ============================================= */

/* 横幅1100px用クラス */
.l-main-w1000 {
    max-width: 1100px !important;
    margin: 0 auto;
    width: 100% !important;
}

/* ===========================================
   ページ全体
   =========================================== */
.casestudy-page {
    background: #f5f7fa;
    padding-bottom: 60px;
}

.page-hero--casestudy {
    background: linear-gradient(135deg, #18499d 0%, #1cafdd 100%);
}

.page-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.6rem;
    margin-top: 10px;
    font-weight: 500;
}

/* ===========================================
   検索フィルター
   =========================================== */
.casestudy-search {
    background: #fff;
    padding: 40px 20px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.casestudy-search__inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.casestudy-search__header {
    text-align: center;
    margin-bottom: 25px;
}

.casestudy-search__title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.casestudy-search__title-icon {
    font-size: 2.4rem;
}

.casestudy-search__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.casestudy-search__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.casestudy-search__label {
    font-size: 1.4rem;
    font-weight: 700;
    color: #18499d;
    padding-left: 5px;
}

.casestudy-search__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.casestudy-search__btn {
    position: relative;
    cursor: pointer;
}

.casestudy-search__btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.casestudy-search__btn span {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s ease;
}

.casestudy-search__btn:hover span {
    border-color: #18499d;
    color: #18499d;
}

.casestudy-search__btn.is-active span,
.casestudy-search__btn input:checked + span {
    background: #18499d;
    border-color: #18499d;
    color: #fff;
}

.casestudy-search__options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.casestudy-search__group--small {
    flex: 1;
    min-width: 150px;
}

.casestudy-search__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.casestudy-search__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #18499d, #1cafdd);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 73, 157, 0.3);
}

.casestudy-search__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 73, 157, 0.4);
}

.casestudy-search__clear {
    color: #6c757d;
    font-size: 1.4rem;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.2s;
}

.casestudy-search__clear:hover {
    color: #18499d;
}

.casestudy-search__result {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 1.5rem;
    color: #6c757d;
}

.casestudy-search__result strong {
    font-size: 2.8rem;
    color: #18499d;
    font-weight: 800;
    margin: 0 5px;
}

@media screen and (max-width: 768px) {
    .casestudy-search {
        padding: 20px 15px;
        margin-top: -20px;
    }
    
    .casestudy-search__inner {
        padding: 20px 15px;
    }
    
    .casestudy-search__title {
        font-size: 1.6rem;
    }
    
    .casestudy-search__options-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .casestudy-search__actions {
        flex-direction: column;
    }
    
    .casestudy-search__submit {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   事例一覧
   =========================================== */
.casestudy-list {
    padding: 40px 20px;
}

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

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

@media screen and (max-width: 1024px) {
    .casestudy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 640px) {
    .casestudy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===========================================
   事例カード
   =========================================== */
.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.case-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ラベル */
.case-card__labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 10;
}

.case-card__label {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.case-card__label--type {
    background: linear-gradient(135deg, #18499d, #1cafdd);
    color: #fff;
}

.case-card__label--youtube {
    background: #ff0000;
    color: #fff;
}

/* 画像エリア */
.case-card__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: #e9ecef;
    position: relative;
}

.case-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-card__image img {
    transform: scale(1.05);
}

.case-card__image-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-card__image--before .case-card__image-label {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.case-card__image--after .case-card__image-label {
    background: rgba(39, 174, 96, 0.9);
    color: #fff;
}

/* カード本体 */
.case-card__body {
    padding: 20px;
}

/* 価格 */
.case-card__price {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-radius: 12px;
    margin-bottom: 15px;
}

.case-card__price-label {
    display: block;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.case-card__price-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #e65100;
    line-height: 1;
}

.case-card__price-value small {
    font-size: 1.4rem;
    font-weight: 600;
}

/* 詳細情報 */
.case-card__details {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.case-card__detail {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.case-card__detail-label {
    display: block;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.case-card__detail-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

/* オプション */
.case-card__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-card__option {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.case-card__option--buy {
    background: #e8f5e9;
    color: #2e7d32;
}

.case-card__option--pack {
    background: #e3f2fd;
    color: #1565c0;
}

/* フッター */
.case-card__footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.case-card__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #18499d;
    transition: color 0.2s;
}

.case-card:hover .case-card__more {
    color: #1cafdd;
}

/* ===========================================
   ページネーション
   =========================================== */
.casestudy-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.casestudy-pagination a,
.casestudy-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.casestudy-pagination a:hover {
    background: #18499d;
    border-color: #18499d;
    color: #fff;
}

.casestudy-pagination span.current {
    background: #18499d;
    border-color: #18499d;
    color: #fff;
}

.casestudy-pagination span.dots {
    border: none;
    background: none;
    min-width: auto;
}

/* ===========================================
   空の状態
   =========================================== */
.casestudy-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.casestudy-empty__icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.casestudy-empty__text {
    font-size: 1.8rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.casestudy-empty__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    background: #18499d;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.casestudy-empty__link:hover {
    background: #1cafdd;
    transform: translateY(-2px);
}

/* ===========================================
   CTA
   =========================================== */
.casestudy-cta {
    background: linear-gradient(135deg, #18499d 0%, #1cafdd 100%);
    padding: 60px 20px;
}

.casestudy-cta__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.casestudy-cta__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.casestudy-cta__title {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 20px;
}

.casestudy-cta__badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.casestudy-cta__badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
}

.casestudy-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.casestudy-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.casestudy-cta__btn--tel {
    background: #fff;
    color: #18499d;
}

.casestudy-cta__btn--mail {
    background: #ff9800;
    color: #fff;
}

.casestudy-cta__btn--line {
    background: #06c755;
    color: #fff;
}

.casestudy-cta__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .casestudy-cta {
        padding: 40px 15px;
    }
    
    .casestudy-cta__title {
        font-size: 2.4rem;
    }
    
    .casestudy-cta__buttons {
        flex-direction: column;
    }
    
    .casestudy-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   シングルページ - ヘッダー
   =========================================== */
.casestudy-single {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

@media screen and (max-width: 640px) {
    .casestudy-single {
        padding: 20px 15px;
    }
}

.casestudy-single__header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.casestudy-single__category {
    display: inline-block;
    background: linear-gradient(135deg, #18499d, #1cafdd);
    color: #fff;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.casestudy-single__title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

@media screen and (max-width: 640px) {
    .casestudy-single__title {
        font-size: 2.2rem;
    }
}

.casestudy-single__section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #18499d;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #18499d;
    position: relative;
}

.casestudy-single__section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100px;
    height: 3px;
    background: #1cafdd;
}

/* ===========================================
   シングルページ - 作業概要テーブル
   =========================================== */
.casestudy-single__overview-wrap {
    margin-bottom: 50px;
}

.casestudy-single__overview {
    margin-bottom: 50px;
}

/* 作業概要グリッド（写真30% + テーブル70%） */
.casestudy-overview-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 30px;
    align-items: start;
}

@media screen and (max-width: 768px) {
    .casestudy-overview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.casestudy-overview-grid__photo {
    position: sticky;
    top: 120px;
}

@media screen and (max-width: 768px) {
    .casestudy-overview-grid__photo {
        position: static;
    }
}

.casestudy-overview-grid__table {
    min-width: 0;
}

/* お客様写真（グリッド内） */
.casestudy-customer-photo {
    text-align: center;
    position: relative;
}

.casestudy-customer-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.casestudy-customer-photo__caption {
    display: block;
    margin-top: 10px;
    font-size: 1.3rem;
    color: #666;
    font-weight: 500;
}

.casestudy-customer-photo--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 40px 20px;
    min-height: 200px;
    color: #999;
}

.casestudy-customer-photo--empty i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.casestudy-customer-photo--empty span {
    font-size: 1.3rem;
}

/* テーブル */
.casestudy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.casestudy-table tr {
    border-bottom: 1px solid #eee;
}

.casestudy-table tr:last-child {
    border-bottom: none;
}

.casestudy-table th {
    width: 40%;
    padding: 18px 15px;
    text-align: left;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    vertical-align: middle;
}

.casestudy-table th i {
    margin-right: 10px;
    color: #18499d;
    width: 20px;
    text-align: center;
}

.casestudy-table td {
    padding: 18px 15px;
    color: #333;
    font-weight: 500;
}

.casestudy-table__highlight {
    background: linear-gradient(to right, #fff3e0, #fff);
}

.casestudy-table__highlight th {
    background: #fff3e0;
}

.casestudy-table__price {
    font-size: 2rem;
    color: #e65100;
}

.casestudy-table__price small {
    font-size: 1.3rem;
    font-weight: 400;
}

.casestudy-table__buyback {
    color: #2e7d32;
    font-weight: 600;
}

.casestudy-table__plan {
    color: #1cafdd;
}

.casestudy-table__area-label {
    display: inline-block;
    background: linear-gradient(135deg, #18499d, #1cafdd);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

@media screen and (max-width: 640px) {
    .casestudy-table th,
    .casestudy-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }
    
    .casestudy-table th {
        background: #18499d;
        color: #fff;
    }
    
    .casestudy-table th i {
        color: #fff;
    }
    
    .casestudy-table tr {
        margin-bottom: 10px;
        display: block;
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
    }
}

/* ===========================================
   シングルページ - Before/After比較
   =========================================== */
.casestudy-single__comparison {
    margin-bottom: 50px;
}

.casestudy-ba-slider__item {
    margin-bottom: 30px;
}

.casestudy-ba-slider__item:last-child {
    margin-bottom: 0;
}

.casestudy-ba-slider__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media screen and (max-width: 640px) {
    .casestudy-ba-slider__images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.casestudy-ba-slider__before,
.casestudy-ba-slider__after {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.casestudy-ba-slider__before img,
.casestudy-ba-slider__after img {
    width: 100%;
    height: auto;
    display: block;
}

.casestudy-ba-slider__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.casestudy-ba-slider__before .casestudy-ba-slider__badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.casestudy-ba-slider__after .casestudy-ba-slider__badge {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

/* ===========================================
   シングルページ - YouTube動画
   =========================================== */
.casestudy-single__youtube {
    margin-bottom: 50px;
}

.casestudy-youtube__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.casestudy-youtube__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.casestudy-youtube__link {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.casestudy-youtube__link:hover {
    background: #cc0000;
}

/* ===========================================
   シングルページ - アンケート
   =========================================== */
.casestudy-single__questionnaire {
    margin-bottom: 50px;
}

.casestudy-questionnaire__item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.casestudy-questionnaire__item:last-child {
    margin-bottom: 0;
}

.casestudy-questionnaire__question {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}

.casestudy-questionnaire__q {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #18499d;
    color: #fff;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.casestudy-questionnaire__answer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.casestudy-questionnaire__a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #e65100;
    color: #fff;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.casestudy-questionnaire__answer p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
}

/* ===========================================
   シングルページ - スタッフコメント
   =========================================== */
.casestudy-single__staff-comment {
    margin-bottom: 50px;
}

.casestudy-staff-comment {
    background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.casestudy-staff-comment::before {
    content: '\f075';
    font-family: 'FontAwesome';
    position: absolute;
    top: -15px;
    left: 30px;
    font-size: 2.5rem;
    color: #18499d;
    background: #fff;
    padding: 5px 10px;
    border-radius: 50%;
}

.casestudy-staff-comment__content {
    font-size: 1.5rem;
    line-height: 2;
    color: #333;
}

.casestudy-staff-comment__content p {
    margin: 0 0 1.5em;
}

.casestudy-staff-comment__content p:last-child {
    margin-bottom: 0;
}

/* ===========================================
   シングルページ - CTA
   =========================================== */
.casestudy-single__cta {
    margin-bottom: 50px;
}

.casestudy-cta-box {
    background: linear-gradient(135deg, #18499d, #1cafdd);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.casestudy-cta-box__text {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 25px;
}

.casestudy-cta-box__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.casestudy-cta-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.casestudy-cta-box__btn--primary {
    background: #fff;
    color: #18499d;
}

.casestudy-cta-box__btn--primary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.casestudy-cta-box__btn--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.casestudy-cta-box__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media screen and (max-width: 640px) {
    .casestudy-cta-box {
        padding: 30px 20px;
    }
    
    .casestudy-cta-box__text {
        font-size: 1.5rem;
    }
    
    .casestudy-cta-box__btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
}

/* ===========================================
   シングルページ - ナビゲーション
   =========================================== */
.casestudy-single__nav {
    margin-bottom: 50px;
}

.casestudy-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.casestudy-nav-links__item {
    flex: 1;
}

.casestudy-nav-links__item--list {
    flex: 0 0 auto;
}

.casestudy-nav-links__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.casestudy-nav-links__item a:hover {
    background: #18499d;
    color: #fff;
}

.casestudy-nav-links__item a:hover .casestudy-nav-links__label,
.casestudy-nav-links__item a:hover .casestudy-nav-links__title {
    color: #fff;
}

.casestudy-nav-links__label {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 5px;
}

.casestudy-nav-links__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 640px) {
    .casestudy-nav-links {
        flex-wrap: wrap;
    }
    
    .casestudy-nav-links__item {
        flex: 1 1 45%;
    }
    
    .casestudy-nav-links__item--list {
        flex: 1 1 100%;
        order: -1;
    }
}

/* ===========================================
   シングルページ - 関連事例
   =========================================== */
.casestudy-single__related {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 640px) {
    .casestudy-single__related {
        padding: 25px 15px;
    }
}

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

@media screen and (max-width: 900px) {
    .casestudy-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .casestudy-related-grid {
        grid-template-columns: 1fr;
    }
}

.casestudy-related-card {
    position: relative;
}

.casestudy-related-card a {
    display: block;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.casestudy-related-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.casestudy-related-card__label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #18499d, #1cafdd);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 5;
}

.casestudy-related-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.casestudy-related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.casestudy-related-card a:hover .casestudy-related-card__image img {
    transform: scale(1.05);
}

.casestudy-related-card__info {
    padding: 15px;
}

.casestudy-related-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.casestudy-related-card__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e65100;
    margin: 0;
}
