/* ============================================================
   /service/social-tech-lab — Page Styles
   ============================================================ */

:root {
    --teal: #10c59a;
    --teal-dark: #00857e;
    --ink: #333333;
    --bg-light: #f8f8f8;
    --bg-gray: #f2f2f2;
}

/* ── HERO ── */
.stl-hero-label {
    color: var(--color-f8f8f8, #f8f8f8);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding-top: 0 !important;
    margin-bottom: 8px;
}
.other-common-banner .hero-circle-text .text-ac {
    font-size: 48px;
    line-height: 60px;
    white-space: normal;
}

/* ── SECTION COMMON ── */
.stl-section { padding: 80px 0; }
.stl-section-bg-white { background: #fff; }
.stl-section-bg-light { background: var(--bg-light); }

.stl-bg-label {
    font-size: 80px;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    line-height: 1;
    margin-bottom: -40px;
    letter-spacing: -0.02em;
    user-select: none;
}
.stl-section-title {
    color: var(--teal);
    font-size: 36px;
    font-weight: 700;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin-bottom: 56px;
}

/* ── CTA LINK (shared) ── */
.stl-cta-link,
.stl-cta-link:visited,
.stl-cta-link:hover,
.stl-cta-link:active {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}
.stl-cta-link:hover { opacity: 0.7; }
.stl-btn-text {
    border-bottom: 1px solid var(--color-10c59a, #10c59a);
}
.stl-cta-link .cta-circle {
    width: 36px; height: 36px;
    background: var(--teal);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px;
    flex-shrink: 0;
}

/* ── INTRO ── */
.stl-intro-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}
.stl-intro-body { max-width: 700px; }
.stl-intro-title {
    color: var(--teal);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 28px;
}
.stl-intro-text {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 12px;
}
.stl-intro-text:last-of-type { margin-bottom: 0; }
.stl-intro-cta { flex-shrink: 0; }

/* ── CASES ── */
.stl-cases-section { padding-bottom: 240px; } /* CTA banner overlap clearance */

.stl-case-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 64px;
    row-gap: 32px;
    align-items: start;
    padding: 64px 0;
    border-bottom: 1px solid #e0e0e0;
}
.stl-case-item:first-of-type { border-top: 1px solid #e0e0e0; }

/* Default: intro top-left | image right (spans rows) | body bottom-left */
.stl-case-intro    { grid-column: 1; grid-row: 1; }
.stl-case-img-wrap { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.stl-case-body     { grid-column: 1; grid-row: 2; }

/* Reverse: image left (spans rows) | intro top-right | body bottom-right */
.stl-case-item--reverse .stl-case-intro    { grid-column: 2; grid-row: 1; }
.stl-case-item--reverse .stl-case-img-wrap { grid-column: 1; grid-row: 1 / 3; }
.stl-case-item--reverse .stl-case-body     { grid-column: 2; grid-row: 2; }

.stl-case-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.stl-tag {
    display: inline-block;
    background: #cff0e8;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.stl-tag--wide { padding: 3px 14px; }

.stl-case-tagline {
    color: var(--teal);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}
.stl-case-title {
    color: var(--ink);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}
.stl-case-desc {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 32px;
}
.stl-case-img-wrap {
    border-radius: 12px;
    overflow: hidden;
}
.stl-case-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* ── RESPONSIVE ── */
.sp-only { display: none; }

@media (max-width: 1024px) {
    .stl-case-item { gap: 40px; }
}

@media (max-width: 768px) {
    .other-common-banner .hero-circle-text .text-ac { font-size: 32px; line-height: 1.35; position: relative; }
    .other-common-banner .hero-circle-text h1 { font-size: 32px; line-height: 1.35; margin: 0; }
    .other-common-banner .hero-circle-text { padding-bottom: 12px; }
    .other-common-banner .banner-info > p:last-child { padding-top: 20px; }
    .stl-bg-label { font-size: 40px; margin-bottom: -18px; margin-left: -16px; }
    .stl-section-title { font-size: 26px; line-height: 1.4; }
    .stl-intro-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .stl-intro-title { font-size: 24px; }
    .stl-intro-cta { width: 100%; text-align: center; }
    .stl-case-body .stl-cta-link { display: flex; width: fit-content; margin: 0 auto; }
    .sp-only { display: inline; }

    .stl-case-item {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 48px 0;
    }
    /* Non-reverse HTML order: intro → img → body ✓ */
    /* Reverse HTML order: img → intro → body — reorder via flex order */
    .stl-case-item--reverse .stl-case-intro    { order: 1; }
    .stl-case-item--reverse .stl-case-img-wrap { order: 2; }
    .stl-case-item--reverse .stl-case-body     { order: 3; }
    .stl-case-intro .stl-case-title { margin-bottom: 0; }
    .stl-case-img { height: 220px; }
    .stl-case-title { font-size: 22px; }
    .stl-cases-section { padding-bottom: 280px; }
}
