/* ==============================================================
   Case Study Page Styles (法人向け活用事例ページ)
============================================================== */
/* 1. ヒーローセクション（ファーストビュー） */
.case-hero {
    position: relative;
    padding: 160px 0 100px;
    background-image: url(' "../img/bg/lobi.jpg"');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: #fff;
}
.case-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17,17,17,0.95) 0%, rgba(35,35,35,0.8) 100%);
    z-index: 1;
}
.case-hero-content {
    position: relative;
    z-index: 2;
}
.case-hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}
.case-hero-subtitle {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
}

/* 共通セクション設定 */
.case-section {
    padding: 100px 0;
}
.case-bg-light {
    background-color: #fcfcfc;
}
.case-sec-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: #232323;
    margin-bottom: 50px;
}

/* 2. 活用事例カード（3つのケース） */
.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
    height: 100%;
}
.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.case-card-img {
    height: 220px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
}
.case-card-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: #ffd700;
    color: #111;
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.case-card-body {
    padding: 30px;
}
.case-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #232323;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}
.case-card-scene {
    font-size: 0.9rem;
    color: #06C755;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}
.case-card-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}
.case-card-price {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #232323;
    font-size: 1.1rem;
    border: 1px dashed #ccc;
}
.case-card-price span {
    color: #e60000;
    font-size: 1.3rem;
}

/* 3. 選ばれる理由（3つの強み） */
.reason-box {
    text-align: center;
    padding: 20px;
}
.reason-icon {
    width: 80px; height: 80px;
    background: #fff;
    border: 2px solid #ffd700;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.15);
}
.reason-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #232323;
    margin-bottom: 15px;
}
.reason-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    text-align: left;
}

/* 4. ご利用までの流れ（ステップ） */
.flow-container {
    max-width: 900px;
    margin: 0 auto;
}
.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.flow-num {
    flex: 0 0 60px;
    width: 60px; height: 60px;
    background: #232323;
    color: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-right: 25px;
}
.flow-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #232323;
    margin-bottom: 10px;
    margin-top: 5px;
}
.flow-content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

/* 5. 強力なCTAエリア */
.case-cta-sec {
    background-color: #111;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.case-cta-sec h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}
.case-cta-sec p {
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.05rem;
}
.btn-case-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: #ffd700; color: #111 !important;
    padding: 18px 40px; border-radius: 4px; font-weight: bold; font-size: 1.15rem;
    text-decoration: none; transition: all 0.3s ease;
    margin: 10px;
}
.btn-case-primary:hover {
    background: #e6c200; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}
.btn-case-line {
    display: inline-flex; align-items: center; justify-content: center;
    background: #06C755; color: #fff !important;
    padding: 18px 40px; border-radius: 4px; font-weight: bold; font-size: 1.15rem;
    text-decoration: none; transition: all 0.3s ease;
    margin: 10px;
}
.btn-case-line:hover {
    background: #05b34c; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(6, 199, 85, 0.3);
}

@media (max-width: 768px) {
    .case-hero-title { font-size: 2rem; }
    .flow-step { flex-direction: column; text-align: center; align-items: center; }
    .flow-num { margin-right: 0; margin-bottom: 20px; }
    .btn-case-primary, .btn-case-line { width: 100%; display: block; margin: 10px 0; }
}

/* ==============================================================
   Use Cases Slider Section (ご利用実績・活用シーン)
============================================================== */
.usecase-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden; /* 横スクロールのバーをはみ出させない */
}

.usecase-sec-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #232323;
    margin-bottom: 40px;
}

.usecase-sec-title span {
    color: #ffd700;
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* スライダーコンテナ（CSS Scroll Snapによる横スクロール） */
.usecase-slider-wrap {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px 40px; /* スクロールバーのための余白 */
    -webkit-overflow-scrolling: touch;
    /* スクロールバーのカスタマイズ */
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #eaeaea;
}

.usecase-slider-wrap::-webkit-scrollbar {
    height: 8px;
}
.usecase-slider-wrap::-webkit-scrollbar-track {
    background: #eaeaea; 
    border-radius: 10px;
}
.usecase-slider-wrap::-webkit-scrollbar-thumb {
    background: #ffd700; 
    border-radius: 10px;
}

/* 実績カード */
.usecase-card {
    flex: 0 0 calc(33.333% - 14px); /* PCでは3枚表示 */
    min-width: 320px; /* カードの最小幅 */
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.usecase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.usecase-img {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
}

.usecase-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(17, 17, 17, 0.85);
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.usecase-body {
    padding: 25px 20px;
}

.usecase-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #232323;
    margin-bottom: 10px;
    line-height: 1.5;
}

.usecase-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* レスポンシブ対応（タブレット・スマホ） */
@media (max-width: 992px) {
    .usecase-card { flex: 0 0 calc(50% - 10px); } /* タブレットは2枚表示 */
}
@media (max-width: 768px) {
    .usecase-card { flex: 0 0 85%; scroll-snap-align: center; } /* スマホは1枚表示で中央寄せ */
    .usecase-slider-wrap { padding-bottom: 20px; }
}
/* ==============================================================
   Instagram Link Area (ご利用実績スライダー下部)
============================================================== */
.usecase-instagram-wrap {
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
}

.usecase-instagram-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 30px; /* 丸みを持たせてタップしやすく */
    /* Instagramの公式グラデーションカラー */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
    font-weight: bold;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram i {
    font-size: 1.3rem;
    margin-right: 10px;
}

.btn-instagram:hover {
    transform: translateY(-4px); /* ホバーで少し長めに浮き上がる */
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.5);
}

@media (max-width: 768px) {
    .btn-instagram {
        width: 100%;
        max-width: 320px; /* スマホでは押しやすい幅に広げる */
    }
}
