.single-case {
    --case-primary: #1e3a8a;
    --case-gray: #4b5563;
    --case-light: #f8fafc;
    --case-border: #e5e7eb;
    background: #ffffff;
    color: #1f2937;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

main.single-case {
    margin-top: calc(var(--header-h) + 8px);
}
body.admin-bar main.single-case {
    margin-top: calc(var(--header-h) + var(--adminbar-h) + 8px);
}

.single-case .case-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.single-case .case-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.single-case .case-hero-block {
    padding: 48px 0 32px;
    background: #ffffff;
}

/* case-breadcrumbs removed - now using unified breadcrumbs from main.css */


.single-case .case-hero-block .case-label {
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.24em;
    margin-bottom: 16px;
    display: inline-block;
}

.single-case .case-hero-block .case-title {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    color: var(--secondary-color, #022b22);
    line-height: 1.25;
    margin-bottom: 16px;
    text-align: center;
}

.single-case .case-hero-block .case-label { text-align:center; display:block; }
.single-case .case-hero-block .case-tags { justify-content:center; }
.single-case .case-hero-block .case-hero-image { margin-top: 24px; }

.single-case .case-hero-block .case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* Double logos in hero */
.single-case .client-logos--double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 160px));
    gap: 16px;
    margin-top: 16px;
    align-items: center;
}
.single-case .client-logos--double .client-logo-item { background:#f3f4f6; border:1px solid #e5e7eb; border-radius:8px; height:60px; padding:8px 12px; display:flex; align-items:center; justify-content:center; }
.single-case .client-logos--double .client-logo-item {
    
}
.single-case .client-logos--double .client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 640px){
    .single-case .client-logos--double { grid-template-columns: 1fr; }
}

/* Additional block (below article) */
.single-case .case-additional { padding: 48px 0; background:#ffffff; }
.single-case .case-additional .metrics-card { margin-bottom: 32px; }

/* ========== New styles to match refreshed design ========== */
/* Reset generic section padding from main.css only on case pages */
.single-case section { padding: 0 !important; }
/* Hero center elements */
.single-case .case-hero-logo { height: 48px; margin: 0 auto 16px; display:block; }
.single-case .case-hero-lead { margin-top: 16px; color:#022b22; max-width:780px; margin-left:auto; margin-right:auto; }
.single-case .case-hero-image { margin-top: 24px; border-radius: 16px; overflow:hidden; box-shadow: 0 12px 30px rgba(0,0,0,.12); max-width: 70%; margin-left:auto; margin-right:auto; }

/* Section title override for case pages */
.single-case .section-title { 
    text-align: left;
    border-left: 4px solid var(--secondary-color, #022b22);
    padding-left: 16px;
    margin-bottom: 12px;
}
.single-case .section-title::after { display: none; }

/* Content lists card-like */
.single-case .content-body ul { background:#f3f4f6; padding:24px 24px 24px 64px; border-radius:12px; }
.single-case .content-body ul li { margin-bottom:8px; }

/* Before/After colored texts inside boxes */
.single-case .before-text { color:#dc2626; font-weight:700; }
.single-case .after-text { color:#065f46; font-weight:700; }

/* KPI grid */
.single-case .kpi-grid { display:grid; grid-template-columns:1fr; gap:24px; text-align:center; }
@media (min-width: 768px){ .single-case .kpi-grid { grid-template-columns: repeat(2,1fr); } }
.single-case .kpi-card { padding:24px; border-radius:16px; }
.single-case .kpi-card.primary { background: rgba(39, 93, 70, 0.2); color:#fff; }
.single-case .kpi-card.outline { background:#fff; border:2px solid var(--secondary-color, #022b22); color: var(--secondary-color, #022b22); }
.single-case .kpi-card .kpi-title { font-weight:700; }
.single-case .kpi-card .kpi-value { font-size:32px; font-weight:800; }
.single-case .kpi-card .kpi-note { opacity:.85; font-size:14px; }

/* Voice (testimonial) */
.single-case .voice-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    display: flex
;
    flex-direction: column;
    gap: 24px;
    margin: 0px 40px 100px 40px;
}

@media(min-width: 768px){ .single-case .voice-card { flex-direction:row; align-items:center; } }
.single-case .voice-card .avatar { width:128px; height:128px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.single-case .voice-card .quote { font-size:16px; line-height:1.8; font-style: italic; color:#374151; }

/* CTA revamped */
.single-case .case-cta { background: #022b22; padding: 64px 0; text-align:center; }
.single-case .case-cta h2, .single-case .case-cta p { color:#fff; }
.single-case .case-cta .cta-buttons { display:flex; flex-direction:column; gap:16px; justify-content:center; max-width:500px; margin:24px auto 0; }
@media(min-width:640px){ .single-case .case-cta .cta-buttons { flex-direction:row; } }
.single-case .case-cta .btn-primary { background:#fff; color: var(--secondary-color, #022b22) !important; }
.single-case .case-cta .btn-secondary { border:2px solid #fff; background:#275d46; color:#fff !important; }

/* ===== Archive v2 (list) ===== */
.case-archive.case-archive-v2 .archive-hero { background:#ffffff; padding: 32px 0; border-bottom:1px solid #e5e7eb; }
.case-archive.case-archive-v2 .archive-title { font-size: clamp(24px, 4vw, 32px); font-weight:800; color:#022b22; margin:0; }
.case-archive.case-archive-v2 .archive-lead { color:#6b7280; margin-top:8px; }

.case-archive.case-archive-v2 .case-container { max-width: 1200px; margin:0 auto; padding: 0 24px; }
.case-archive.case-archive-v2 .archive-list { padding: 40px 0 64px; }
.case-archive.case-archive-v2 .case-grid-v2 { display:grid; grid-template-columns: 1fr; gap:24px; }
@media(min-width: 768px){ .case-archive.case-archive-v2 .case-grid-v2 { grid-template-columns: repeat(2,1fr); } }
@media(min-width: 1024px){ .case-archive.case-archive-v2 .case-grid-v2 { grid-template-columns: repeat(3,1fr); } }

.case-archive.case-archive-v2 .case-card-v2 { 
    background:#fff; 
    border-radius:12px; 
    overflow:hidden; 
    box-shadow:0 8px 18px rgba(0,0,0,.06); 
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.case-archive.case-archive-v2 .case-card-v2:hover { transform: translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.1); }
.case-archive.case-archive-v2 .card-link { 
    text-decoration:none; 
    color:inherit; 
    display: flex;
    flex-direction: column;
    height: 100%;
}
.case-archive.case-archive-v2 .thumb-wrap { position:relative; flex-shrink: 0; }
.case-archive.case-archive-v2 .thumb-wrap img { width:100%; height:224px; object-fit:cover; display:block; }
.case-archive.case-archive-v2 .thumb-placeholder { width:100%; height:224px; background:#e2e8f0; }
.case-archive.case-archive-v2 .logo-overlay { position:absolute; top:16px; left:16px; background:#fff; padding:10px; border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,.1); }
.case-archive.case-archive-v2 .logo-overlay img { height:24px; display:block; }
.case-archive.case-archive-v2 .card-body { 
    padding: 16px 18px 80px; /* 下部にボタンスペースを確保 */
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-archive.case-archive-v2 .card-label { font-size:12px; font-weight:700; color:#2563eb; flex-shrink: 0; }
.case-archive.case-archive-v2 .card-title { margin:8px 0 4px; font-size:18px; font-weight:800; color:#022b22; flex-shrink: 0; }
.case-archive.case-archive-v2 .card-excerpt { color:#6b7280; font-size:14px; line-height:1.7; flex-shrink: 0; }
.case-archive.case-archive-v2 .view-more { 
    display:inline-block; 
    background:#022b22; 
    color:#fff; 
    padding:8px 14px; 
    border-radius:999px; 
    font-weight:700; 
    font-size:13px;
    position: absolute;
    bottom: 18px;
    right: 18px;
    transition: all 0.3s ease;
}
.case-archive.case-archive-v2 .case-card-v2:hover .view-more {
    background:#275d46;
    transform: translateX(3px);
}


.single-case .case-hero-block .case-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    background: #e6f6f3;
    color: #047857;
    letter-spacing: 0.08em;
}

.single-case .case-eyecatch {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .single-case .case-eyecatch {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.single-case .metrics-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(30, 58, 138, 0.08);
}


.single-case .metrics-card p {
    margin: 0;
    color: #111827;
}

.single-case .metrics-card .metrics-value {
    font-size: 2rem;
    margin-top: 12px;
    font-weight: 700;
    color: #111827;
}

.single-case .client-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.single-case .client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(30, 58, 138, 0.08);
}

.single-case .client-meta p {
    margin: 0;
    color: #111827;
}

.single-case .case-hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(30, 58, 138, 0.2);
    background: #e0e7ff;
}

.single-case .case-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-case .case-image-placeholder {
    padding: 120px 0;
    text-align: center;
    color: rgba(15, 23, 42, 0.6);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.single-case .case-summary {
    background: #f9fafb;
    padding: 64px 0;
}

.single-case .summary-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.single-case .summary-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 35px rgba(30, 64, 175, 0.08);
}

.single-case .summary-card h3 {
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.single-case .summary-card p {
    font-weight: 700;
    font-size: 18px;
    color: #1f2937;
    margin: 0;
}

.single-case .case-summary-legacy {
    margin-top: 32px;
}

.single-case .case-body {
    background: #fff;
}

.single-case .case-body section {
    margin-bottom: 64px;
}

.single-case .case-body section:last-child {
    margin-bottom: 0;
}

.single-case .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #022b22;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.single-case .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 60%;
    height: 2px;
    background-color: var(--case-primary);
}

.single-case .case-body p {
    line-height: 1.8;
    color: #1f2937;
    margin: 0 0 18px;
}

.single-case .highlight-box {
    background: #f1f5f9;
    border: 2px dashed #cbd5f5;
    border-radius: 20px;
    padding: 40px;
    color: #6b7280;
    text-align: center;
}

.single-case .point-list {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .single-case .point-list {
        grid-template-columns: 1fr 1fr;
    }
}

.single-case .point-item {
    background: #f8fafc;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(30, 58, 138, 0.12);
}

.single-case .interview-box {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.single-case .interview-box:last-child { margin-bottom: 0; }

.single-case .interview-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-weight: 700;
}

.single-case .interview-content h3 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.single-case .interview-content p {
    margin: 0;
    color: #4b5563;
    line-height: 1.75;
}

.single-case .case-rich-content {
    margin-top: 64px;
}

.single-case .case-rich-content p,
.single-case .case-rich-content ul,
.single-case .case-rich-content ol {
    color: #1f2937;
}

.single-case .case-rich-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 48px 0 20px;
    border-left: 4px solid var(--case-primary);
    padding-left: 16px;
}

.single-case .case-rich-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 28px 0 16px;
}

.single-case .case-rich-content ul,
.single-case .case-rich-content ol {
    margin-left: 1.4em;
    line-height: 1.75;
}

.single-case .case-content-block {
    margin-bottom: 56px;
    display: grid;
    gap: 16px;
}

.single-case .case-content-highlight {
    background: #f1f5f9;
    border: 1px solid #d8e3f0;
    border-radius: 16px;
    padding: 24px;
    color: #1f2937;
}

.single-case .case-content-list {
    display: grid;
    gap: 12px;
}

.single-case .case-rich-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    overflow: hidden;
}

.single-case .case-rich-content table th,
.single-case .case-rich-content table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.single-case .case-rich-content table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1f2937;
}

.single-case .case-rich-content table tr:last-child th,
.single-case .case-rich-content table tr:last-child td {
    border-bottom: none;
}

.single-case .case-cta {
    background: #022b22;
    color: #fff;
    padding: 72px 0;
}

.single-case .case-cta h2 {
    font-size: clamp(28px, 5vw, 38px);
    margin-bottom: 16px;
    font-weight: 700;
}

.single-case .case-cta p {
    color: rgba(255,255,255,0.78);
    margin: 0 0 32px;
    font-size: 16px;
}

.single-case .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 640px) {
    .single-case .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.single-case .cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.single-case .cta-buttons a:first-child {
    background: #fff;
    color: var(--case-primary);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.single-case .cta-buttons a:last-child {
    background: #b7b7b7;
    color: #1f2937;
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.single-case .cta-buttons a:hover {
    transform: translateY(-3px);
}

.single-case .case-back {
    margin-top: 40px;
    text-align: center;
}

.single-case .case-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #022b22;
    font-weight: 600;
    text-decoration: none;
}

.single-case .case-back a::before {
    content: '\2190';
    font-size: 18px;
}


