:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --accent-primary: #059669;
    /* Emerald */
    --accent-secondary: #d97706;
    /* Amber */
    --accent-gradient: linear-gradient(135deg, #10b981, #fbbf24);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
}

main {
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.loaded main {
    opacity: 1;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    /* Visible on white */
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

.loader-bar-bg {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--text-color);
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--easing);
    z-index: 1;
}

.btn-primary {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    background: var(--text-color);
    color: white;
}

.btn-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker, Shibui Emerald Gradient */
    background: linear-gradient(135deg,
            #064e3b 0%,
            #059669 50%,
            #064e3b 100%);
    z-index: -1;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s var(--easing);
}

.btn:hover .btn-fill {
    opacity: 1;
    transform: scale(1);
}

.btn:hover {
    color: white;
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 30px rgba(5, 150, 105, 0.4);
    /* Deep Emerald Glow */
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    /* Removed mix-blend-mode to keep colors true */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    /* Removed invert since bg is white and logo is likely dark/colored */
}

.desktop-nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    transition: all 0.3s var(--easing);
}

.nav-link:hover {
    background: linear-gradient(135deg,
            var(--text-color) 0%,
            var(--accent-primary) 50%,
            var(--text-color) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.nav-link::before,
.nav-link::after {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: max(100svh, 48rem);
    padding: 6.5rem 1.5rem 8rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    /* Transparent to show fixed canvas */
}

#hero-canvas {
    position: fixed;
    /* Fixed background */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    filter: blur(80px);
    /* Soften the smoke */
    opacity: 0.8;
    pointer-events: none;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* Above smoke (-2), below content */
    pointer-events: none;
    opacity: 0.7;
    /* Subtle visibility */
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 1rem;
}

.hero > .hero-content {
    width: 100%;
    max-width: 64rem;
    padding: 0;
}

.hero-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s var(--easing) 2.2s forwards;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.hero-label > span {
    /* Remove the trailing tracking space so both ornaments balance. */
    margin-inline-end: -0.2em;
}

.hero-label::before,
.hero-label::after {
    content: '';
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.hero-title {
    font-family: 'Noto Sans JP', var(--font-display), sans-serif;
    font-size: clamp(2.6rem, 7.5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    color: var(--text-color);
}

.hero-title .line {
    overflow: hidden;
    padding: 0.04em 0;
}

.hero-title .word {
    display: inline-block;
    white-space: nowrap;
    /* Both lines end in full-width punctuation: center the visible ink. */
    margin-inline-end: -0.48em;
    transform: translateY(100%);
}

.hero-title-en {
    font-family: var(--font-display), 'Outfit', sans-serif;
    font-weight: 800;
    font-style: italic;
    padding-right: 0.1em;
    letter-spacing: -0.01em;
}

.hero-title .highlight {
    /* Deep rich green base with a metallic shine */
    background: linear-gradient(135deg,
            #064e3b 0%,
            /* Very dark emerald */
            #047857 45%,
            /* Deep emerald */
            #059669 50%,
            /* Subtle sheen (Emerald 600) */
            #047857 55%,
            /* Deep emerald */
            #064e3b 100%
            /* Very dark emerald */
        );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.hero-title .highlight-black {
    /* Black base with a metallic white/grey shine */
    background: linear-gradient(135deg,
            #000000 0%,
            #1a1a1a 45%,
            #555555 50%,
            #1a1a1a 55%,
            #000000 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Special handling for gradient text */
.highlight.glitch-text::before,
.highlight-black.glitch-text::before {
    color: #00cccc;
    mix-blend-mode: normal;
}

.highlight.glitch-text::after,
.highlight-black.glitch-text::after {
    color: #cc00cc;
    mix-blend-mode: normal;
}

/* Japanese Tagline in Hero */
.hero-jp-copy {
    display: block;
    font-family: var(--font-main);
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-top: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s var(--easing) 1.5s forwards;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text::before {
    color: rgba(255, 255, 255, 0.8);
    z-index: -1;
    opacity: 0.3;
    filter: blur(1px);
    animation: glitch-anim-1 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-text::after {
    color: rgba(255, 255, 255, 0.6);
    z-index: -2;
    opacity: 0.3;
    filter: blur(2px);
    animation: glitch-anim-2 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch-anim-1 {

    0%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    94% {
        transform: translate(0);
        opacity: 0;
    }

    95% {
        transform: translate(-1px, 0);
        opacity: 0.3;
    }

    96% {
        transform: translate(1px, 0);
        opacity: 0.3;
    }

    97% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes glitch-anim-2 {

    0%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    94% {
        transform: translate(0);
        opacity: 0;
    }

    95% {
        transform: translate(1px, 0);
        opacity: 0.3;
    }

    96% {
        transform: translate(-1px, 0);
        opacity: 0.3;
    }

    97% {
        transform: translate(0);
        opacity: 0;
    }
}

.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.9;
    letter-spacing: 0.025em;
    padding-inline-start: 0.025em;
    margin: 1.75rem auto 2.25rem;
    max-width: 620px;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
    z-index: 2;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--text-color);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Intro */
.intro {
    padding: 15rem 0;
    /* Seamless fade from transparent (smoke) to white */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 40%, #ffffff 100%);
    position: relative;
    z-index: 1;
}

.intro-text-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.intro-text-wrapper::before {
    content: 'Concept';
    display: block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.intro-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 2;
    max-width: 680px;
    margin: 2rem auto 0;
    text-align: left;
    letter-spacing: 0.03em;
}

/* Service */
.service {
    padding: 12rem 0;
}

.section-header {
    margin-bottom: 8rem;
}

.section-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    text-transform: uppercase;
    color: var(--text-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Service Continue Link */
.service-continue {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.continue-banner {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--easing);
    text-decoration: none;
}

.continue-banner:hover {
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.15);
    transform: translateX(5px);
}

.continue-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

.continue-arrow-wrapper {
    width: 30px;
    height: 30px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s var(--easing);
}

.continue-banner:hover .continue-arrow-wrapper {
    transform: translateX(3px) scale(1.1);
}

.continue-arrow {
    font-size: 1rem;
    line-height: 1;
}

/* Service Groups */
.service-group {
    margin-bottom: 8rem;
    position: relative;
}

.service-group:last-child {
    margin-bottom: 0;
}

.service-category-title {
    margin-bottom: 4rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-category-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-primary);
}

.service-category-title .en {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.service-category-title .ja {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Creative Title Variant */
.service-category-title.creative-title::after {
    background: #d4af37;
}

.service-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    padding: 3rem;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
    isolation: isolate;
}

/* Glowing border lines */
.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-primary),
            transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    z-index: -1;
}

.service-card::before {
    background: linear-gradient(90deg,
            transparent,
            #10b981,
            #34d399,
            #10b981,
            transparent);
    background-size: 200% 100%;
    animation: borderRotate 3s linear infinite;
    animation-play-state: paused;
}

.service-card:hover::before {
    opacity: 1;
    animation-play-state: running;
}

@keyframes borderRotate {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Corner glow effects */
.service-card::after {
    background: radial-gradient(circle at 0% 0%,
            rgba(16, 185, 129, 0.8) 0%,
            transparent 15%),
        radial-gradient(circle at 100% 0%,
            rgba(16, 185, 129, 0.8) 0%,
            transparent 15%),
        radial-gradient(circle at 100% 100%,
            rgba(16, 185, 129, 0.8) 0%,
            transparent 15%),
        radial-gradient(circle at 0% 100%,
            rgba(16, 185, 129, 0.8) 0%,
            transparent 15%);
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 0.6;
    animation: pulse 2s ease-in-out infinite;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px -15px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-number {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    transition: all 0.4s var(--easing);
    line-height: 1;
    letter-spacing: -0.02em;
}

.service-card:hover .card-number {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
}

/* Creative card numbers (Gold) */
.service-card.creative .card-number {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card.creative:hover .card-number {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.4));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.service-card:hover h3 {
    color: var(--accent-primary);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.service-card:hover .card-tags span {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    color: var(--accent-primary);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover .card-bg {
    opacity: 1;
}

/* Creative Cards (Gold Variant) */
.service-card.creative::before {
    background: linear-gradient(90deg,
            transparent,
            #d4af37,
            #f4d03f,
            #d4af37,
            transparent);
    background-size: 200% 100%;
}

.service-card.creative::after {
    background: radial-gradient(circle at 0% 0%,
            rgba(212, 175, 55, 0.8) 0%,
            transparent 15%),
        radial-gradient(circle at 100% 0%,
            rgba(212, 175, 55, 0.8) 0%,
            transparent 15%),
        radial-gradient(circle at 100% 100%,
            rgba(212, 175, 55, 0.8) 0%,
            transparent 15%),
        radial-gradient(circle at 0% 100%,
            rgba(212, 175, 55, 0.8) 0%,
            transparent 15%);
}

.service-card.creative:hover {
    box-shadow: 0 25px 70px -15px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card.creative:hover .card-number {
    color: rgba(212, 175, 55, 0.1);
}

.service-card.creative:hover h3 {
    color: #d4af37;
}

.service-card.creative:hover .card-tags span {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
    color: #d4af37;
}

.service-card.creative .card-bg {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.08), transparent 50%);
}

/* =============================
   Use Case Section — Redesign
   ============================= */
.usecase {
    padding: 12rem 0;
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
}

/* Ambient glow */
.usecase::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
    top: 10%;
    right: -200px;
    pointer-events: none;
    border-radius: 50%;
}

/* ── Header ── */
.usecase-header {
    margin-bottom: 5rem;
    position: relative;
}

.usecase-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.usecase-header-content {
    flex: 1;
    text-align: left;
}

.usecase-header-visual {
    flex-shrink: 0;
    width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.usecase-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(5, 150, 105, 0.15);
    background: #fff;
    animation: float 6s ease-in-out infinite;
}

.usecase-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px dashed rgba(5, 150, 105, 0.4);
    z-index: 2;
    pointer-events: none;
    animation: spin 30s linear infinite;
}

.usecase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .usecase-header-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .usecase-header-content {
        text-align: center;
    }

    .usecase-header-content .section-label,
    .usecase-header-content .usecase-main-title,
    .usecase-header-content .usecase-lead {
        text-align: center !important;
    }
}

.usecase-header::before {
    content: 'Use Case';
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 15rem);
    font-weight: 800;
    font-style: italic;
    color: rgba(16, 185, 129, 0.04);
    top: -6rem;
    left: -3rem;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -0.02em;
}

.usecase-main-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
    color: var(--text-color);
    line-height: 1.35;
    margin: 1rem 0 2rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.usecase-lead {
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ── Grid ── */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

/* ── Card ── */
.uc-card {
    position: relative;
    background: #ffffff;
    padding: 2.6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing),
        background 0.4s var(--easing);
    cursor: pointer;
}

/* Separator between cards */
.uc-card+.uc-card {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

/* (accent bar is now handled by .uc-card-accent element) */

.uc-card:hover {
    background: #fafffe;
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -10px rgba(5, 150, 105, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.06);
    z-index: 2;
}

/* Mouse glow bg */
.uc-card-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(5, 150, 105, 0.07), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.uc-card:hover .uc-card-bg {
    opacity: 1;
}

/* Card accent bar top (per-card color via nth-child) */
.uc-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #6ee7b7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.55s var(--easing);
    z-index: 3;
}

.uc-card:hover .uc-card-accent {
    transform: scaleX(1);
}

/* Card top row: icon + tag */
.uc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 1;
}

/* Icon */
.uc-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(5, 150, 105, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
}

/* Shimmer on icon hover */
.uc-icon-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--easing);
    pointer-events: none;
}

.uc-card:hover .uc-icon-box::after {
    left: 130%;
}

.uc-icon-box svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent-primary);
    transition: all 0.3s;
}

.uc-card:hover .uc-icon-box {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.18), rgba(16, 185, 129, 0.1));
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.2);
    transform: scale(1.05);
}

/* Category tag */
.uc-tag {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: rgba(5, 150, 105, 0.07);
    border: 1px solid rgba(5, 150, 105, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    transition: all 0.3s;
}

.uc-card:hover .uc-tag {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.35);
}

/* Title + Subtitle */
.uc-title {
    font-family: var(--font-main);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.uc-card:hover .uc-title {
    color: var(--accent-primary);
}

.uc-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Divider */
.uc-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.25), rgba(5, 150, 105, 0.05), transparent);
    margin: 1.6rem 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* List */
.uc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.uc-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
}

.uc-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    flex-shrink: 0;
    margin-top: 0.5em;
    box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
    transition: box-shadow 0.3s;
}

.uc-card:hover .uc-list li::before {
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.7);
}

/* Scroll reveal */
.uc-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--easing), transform 0.55s var(--easing),
        background 0.4s var(--easing), box-shadow 0.4s var(--easing);
}

.uc-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.uc-card:nth-child(1) {
    transition-delay: 0.00s;
}

.uc-card:nth-child(2) {
    transition-delay: 0.08s;
}

.uc-card:nth-child(3) {
    transition-delay: 0.16s;
}

.uc-card:nth-child(4) {
    transition-delay: 0.24s;
}

/* Responsive */
@media (max-width: 1100px) {
    .usecase-grid {
        grid-template-columns: repeat(2, 1fr);
        background: rgba(0, 0, 0, 0.04);
    }

    .uc-card+.uc-card {
        border-left: none;
    }

    .uc-card:nth-child(odd) {
        border-right: 1px solid rgba(0, 0, 0, 0.06);
    }

    .uc-card:nth-child(1),
    .uc-card:nth-child(2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 640px) {
    .usecase {
        padding: 6rem 0;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .uc-card:nth-child(odd) {
        border-right: none;
    }

    .uc-card:nth-child(1),
    .uc-card:nth-child(2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .uc-card:nth-child(3) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .uc-ghost-num {
        font-size: 5rem;
    }
}

/* =============================
   Strengths Section — v2 (Canvas Inherit)
   ============================= */
.strengths {
    padding: 12rem 0;
    /* hero-canvas / network-canvas (position:fixed, z-index:-2/-1) をそのまま透かす */
    background: transparent;
    position: relative;
    overflow: hidden;
    color: #1a1a1a;
}

/* ── Header ── */
.strengths-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    /* CanvasBg (z-index:0,1) の上 */
}

.strengths-mascot-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: -1rem;
    position: relative;
    z-index: 3;
}

.strengths-mascot-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.strengths-title-wrap {
    position: relative;
    display: inline-block;
    margin: 1.2rem 0 2rem;
}

.strengths-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 800;
    color: rgba(5, 150, 105, 0.08);
    white-space: nowrap;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
}

.strengths-main-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    z-index: 1;
}

.strengths-main-title em {
    font-style: normal;
    font-size: 1.4em;
    background: linear-gradient(135deg, #10b981, #6ee7b7, #34d399);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

.strengths-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.strengths-divider span:first-child {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #10b981);
}

.strengths-divider .dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    }

    50% {
        box-shadow: 0 0 16px rgba(16, 185, 129, 1), 0 0 30px rgba(16, 185, 129, 0.4);
    }
}

.strengths-lead {
    font-size: 0.95rem;
    color: rgba(26, 26, 26, 0.6);
    line-height: 2;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Grid ── */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* CanvasBg (z-index:0,1) の上 */
    box-shadow: 0 12px 48px rgba(5, 150, 105, 0.12);
}

/* ── Card ── */
.str-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--easing), transform 0.6s var(--easing),
        background 0.4s;
}

.str-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.str-card:nth-child(1) {
    transition-delay: 0.00s;
}

.str-card:nth-child(2) {
    transition-delay: 0.08s;
}

.str-card:nth-child(3) {
    transition-delay: 0.16s;
}

.str-card:nth-child(4) {
    transition-delay: 0.24s;
}

.str-card:nth-child(5) {
    transition-delay: 0.32s;
}

.str-card--wide {
    grid-column: 1 / -1;
}

.str-card:hover {
    background: rgba(240, 253, 244, 0.92);
}

/* ── Number — same language as .card-number in service section ── */
.str-number {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.28), rgba(16, 185, 129, 0.5));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s var(--easing);
    display: inline-block;
}

.str-card:hover .str-number {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.55), rgba(16, 185, 129, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.04);
}

/* Mouse radial glow */
.str-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--str-mx, 50%) var(--str-my, 50%),
            rgba(16, 185, 129, 0.14) 0%,
            transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.str-card:hover::after {
    opacity: 1;
}

/* ── Scan line animation ── */
.str-scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.7), transparent);
    z-index: 4;
    pointer-events: none;
    transition: none;
}

.str-card:hover .str-scan-line {
    animation: scan-down 0.7s var(--easing) forwards;
}

@keyframes scan-down {
    0% {
        top: -2px;
        opacity: 1;
    }

    100% {
        top: 102%;
        opacity: 0;
    }
}

/* ── Corner reticle decorators ── */
.str-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s var(--easing);
}

.str-card:hover .str-corner {
    opacity: 1;
}

.str-corner.tl {
    top: 10px;
    left: 10px;
    border-top: 1.5px solid #10b981;
    border-left: 1.5px solid #10b981;
}

.str-corner.tr {
    top: 10px;
    right: 10px;
    border-top: 1.5px solid #10b981;
    border-right: 1.5px solid #10b981;
}

.str-corner.bl {
    bottom: 10px;
    left: 10px;
    border-bottom: 1.5px solid #10b981;
    border-left: 1.5px solid #10b981;
}

.str-corner.br {
    bottom: 10px;
    right: 10px;
    border-bottom: 1.5px solid #10b981;
    border-right: 1.5px solid #10b981;
}

/* ── Card inner ── */
.str-card-inner {
    padding: 2rem 2.4rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* ── Head row: icon + title ── */
.str-head {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

/* Icon */
.str-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s var(--easing);
    position: relative;
    overflow: hidden;
}

.str-icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: #10b981;
    transition: all 0.4s var(--easing);
}

.str-card:hover .str-icon-wrap {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.12));
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.3), inset 0 0 12px rgba(16, 185, 129, 0.08);
    transform: scale(1.06);
}

.str-card:hover .str-icon-wrap svg {
    stroke: #6ee7b7;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.8));
}

/* Title — 横並び・大きく */
.str-head h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: #064e3b;
    line-height: 1.35;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.str-card:hover .str-head h3 {
    color: #059669;
}

/* Description */
.str-card-inner>p {
    font-size: 0.88rem;
    color: rgba(6, 78, 59, 0.7);
    line-height: 1.9;
    margin: 0;
}

/* Wide card: horizontal split — number + head left, text right */
.str-card--wide .str-card-inner {
    flex-direction: row;
    align-items: center;
    gap: 0;
}

/* number + head をまとめた左ブロック */
.str-card--wide .str-number {
    margin-bottom: 0;
    margin-right: 1.4rem;
    flex-shrink: 0;
    align-self: center;
}

.str-card--wide .str-head {
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    width: 220px;
    gap: 0.8rem;
    padding-right: 2.4rem;
    border-right: 1px solid rgba(16, 185, 129, 0.15);
}

.str-card--wide .str-card-inner>p {
    padding-left: 2.8rem;
    flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .strengths-grid {
        grid-template-columns: 1fr;
    }

    .str-card--wide {
        grid-column: 1;
    }

    .str-card--wide .str-card-inner {
        flex-direction: column;
    }

    .str-card--wide .str-head {
        width: auto;
        flex-direction: row;
    }

    .str-card--wide .str-card-inner>p {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(16, 185, 129, 0.15);
        padding-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .strengths {
        padding: 6rem 0;
    }

    .str-card-inner {
        padding: 1.6rem 1.4rem;
    }

    .str-number {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
    }

    .str-head h3 {
        font-size: 1.1rem;
    }

    .str-icon-wrap {
        width: 44px;
        height: 44px;
    }
}

/* Work */
.work {
    padding: 12rem 0;
    background: #fafafa;
    /* Slight contrast from white */
}

.work-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.work-tab {
    padding: 0.8rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    background: transparent;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.work-tab:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.work-tab.active {
    background: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

.work-card.hidden {
    display: none;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.work-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.work-img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--easing);
}

.work-video {
    display: block;
    object-fit: cover;
    background: #0f172a;
}

.work-card:hover .work-img-placeholder {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    transition: background 0.3s;
}

.work-card:hover .work-overlay {
    background: rgba(0, 0, 0, 0);
}

.work-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.work-cat {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-color);
}

.work-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.work-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 100px;
    color: var(--text-muted);
}

/* Blog */
.blog {
    padding: 12rem 0;
    background: white;
    overflow: hidden;
}

.blog-scroller {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 5%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.blog-scroller::-webkit-scrollbar {
    display: none;
}

.blog-scroller:active {
    cursor: grabbing;
}

.blog-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding-right: 5%;
}

.blog-card {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s var(--easing), box-shadow 0.4s var(--easing);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--easing);
}

.blog-card:hover .blog-img-placeholder {
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    transition: background 0.3s;
}

.blog-card:hover .blog-overlay {
    background: rgba(0, 0, 0, 0);
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.blog-date {
    color: var(--text-muted);
}

.blog-tag {
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: auto;
    display: inline-block;
    transition: color 0.3s;
}

.blog-link:hover {
    color: var(--accent-primary);
}

/* About */
.about {
    padding: 15rem 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.visual-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-orb {
    width: 60%;
    height: 60%;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(60px);
    animation: smoke-effect 15s ease-in-out infinite;
    opacity: 0.6;
}

.glass-panel {
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    transform: rotate(-5deg);
    /* Removed transition to keep it static as requested, or keep it if hover effect is desired but minimal */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    width: 50%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.2));
    animation: float-logo 6s ease-in-out infinite;
}

@keyframes smoke-effect {
    0% {
        border-radius: 50%;
        transform: scale(1) rotate(0deg);
        filter: blur(60px);
    }

    33% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1.1) rotate(120deg);
        filter: blur(80px);
    }

    66% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: scale(0.9) rotate(240deg);
        filter: blur(50px);
    }

    100% {
        border-radius: 50%;
        transform: scale(1) rotate(360deg);
        filter: blur(60px);
    }
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-8px) rotate(1deg);
    }

    67% {
        transform: translateY(5px) rotate(-1deg);
    }
}

.about-wrapper:hover .glass-panel {
    transform: rotate(0deg) scale(1.05);
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0 3rem;
    color: var(--text-color);
}

/* Fit the two editorial lines to this column, not to the viewport. */
#about .about-content {
    min-width: 0;
    container-type: inline-size;
}

#about .about-title {
    font-size: clamp(18px, 3vw, 40px);
    font-size: clamp(18px, 8cqi, 48px);
    line-height: 1.55;
    letter-spacing: -0.025em;
}

#about .about-title > span {
    display: block;
    white-space: nowrap;
}

.about-desc p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Recruit */
.recruit {
    padding: 6rem 0;
    position: relative;
    background: #022c22;
    /* Dark Emerald */
    overflow: hidden;
    color: white;
}

.recruit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.recruit-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: #10b981;
    /* Emerald */
    top: 20%;
    left: 20%;
    animation: float 8s infinite ease-in-out;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: #fbbf24;
    /* Amber */
    bottom: 30%;
    right: 20%;
    animation: float 10s infinite ease-in-out reverse;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: #06b6d4;
    /* Cyan */
    top: 60%;
    left: 50%;
    animation: float 12s infinite ease-in-out 1s;
}

.recruit-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.recruit-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: white;
}

.recruit-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
}

.btn-white {
    background: white;
    color: var(--text-color);
    padding: 1.2rem 3.5rem;
    font-weight: 600;
}

.btn-white .btn-fill {
    background: #f3f4f6;
}

.btn-white:hover {
    color: var(--text-color);
    transform: scale(1.05);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -30px);
    }
}

/* Contact */
.contact {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.contact-bg-anim {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.contact-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fafafa;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    /* Removed invert */
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    position: relative;
    color: var(--text-muted);
    transition: all 0.3s var(--easing);
}

.footer-nav a:hover {
    background: linear-gradient(135deg,
            var(--text-muted) 0%,
            var(--accent-primary) 50%,
            var(--text-muted) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
    opacity: 1;
}

.footer-nav a::before {
    display: none;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Hide custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* Restore default cursor */
    body {
        cursor: auto;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: column;
    }

    /* Footer Mobile Fix */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        font-size: 0.9rem;
        max-width: 100%;
        white-space: normal;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
        max-width: 350px;
        /* Constrain width to force nice wrapping */
    }

    /* Hide Recruit, Contact, and Privacy Policy on Mobile */
    .footer-nav a[href*="recruit"],
    .footer-nav a[href*="contact"],
    .footer-nav a:last-child {
        display: none;
    }

    .footer-nav a {
        font-size: 0.95rem;
        color: var(--text-color);
        /* Make text darker for better visibility on mobile */
        font-weight: 500;
        position: relative;
        padding: 0.2rem 0;
    }

    /* Mission Section Adjustment for Mobile */
    .mission-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
        margin-top: 3rem;
        padding: 0 1rem;
        align-items: center;
    }

    .mission-visual {
        order: 2 !important;
        margin: 1rem auto 0;
        width: 220px !important;
        height: 220px !important;
        position: relative;
        display: flex !important;
        justify-content: center;
        align-items: center;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 10;
        float: none !important;
    }

    .visual-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 50%;
        overflow: hidden;
        background: #f8fafc;
        box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.18);
        opacity: 1 !important;
        z-index: 11;
        animation: none !important;
        transform: none !important;
    }

    .mascot-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        opacity: 1 !important;
        display: block !important;
        mix-blend-mode: normal !important;
    }

    /* Hide decorative accents on mobile */
    .mission-visual .tech-accent,
    .mission-visual .tech-dot {
        display: none;
    }

    /* Fix Background Decorations */
    .mission-watermark {
        font-size: 16vw;
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.04;
        width: 100%;
        text-align: center;
    }

    .mission-shape-1 {
        top: -10%;
        right: -10%;
        width: 250px;
        height: 250px;
        opacity: 0.6;
    }

    .mission-shape-2 {
        bottom: 10%;
        left: -10%;
        width: 180px;
        height: 180px;
        opacity: 0.6;
    }

    .mission-header {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .mission-content-box {
        order: 1 !important;
        text-align: center;
        padding-left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mission-title {
        font-size: 1.6rem;
        line-height: 1.45;
        margin-bottom: 1.2rem;
        word-break: keep-all;
        overflow-wrap: break-word;
        text-align: center;
        text-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
    }

    .mission-text {
        font-size: 0.92rem;
        line-height: 1.85;
        text-align: center;
        margin-bottom: 0.5rem;
        max-width: 100%;
    }

    .mission-title br {
        display: inline;
    }
}

/* =========================================
   About Section Image Update
   ========================================= */

.about-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.15);
    background: #fff;
    animation: float 7s ease-in-out infinite reverse;
    /* Reverse float for variety */
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* Inner stroke */
    z-index: 2;
}

.about-img-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face */
    transform: scale(1.1);
    /* Zoom slightly */
}

/* Responsive adjustment for About Image */
@media (max-width: 768px) {
    .about-image-wrapper {
        width: 320px;
        height: 320px;
        margin: 0 auto 1rem;
        animation: none;
    }
}


/* =========================================
   Mission Section (Rich Design)
   ========================================= */

.mission-container {
    position: relative;
    margin-top: 15rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Image Left, Text Right */
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Background Decorations */
.mission-watermark {
    position: absolute;
    top: -8rem;
    left: -5rem;
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 900;
    color: rgba(16, 185, 129, 0.03);
    /* Extremely subtle Emerald */
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

.mission-shape-1 {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    /* Amber Glow */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.mission-shape-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    /* Emerald Glow */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Visual Area (Left) */
.mission-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.15);
    /* Strong shadow for depth */
    background: #fff;
    animation: float 6s ease-in-out infinite;
}

/* Gradient Ring */
.visual-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 4px;
    /* Inner stroke */
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.mascot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    /* Zoom slightly */
}

/* Tech Accents */
.tech-accent {
    position: absolute;
    font-family: monospace;
    font-weight: bold;
    color: var(--accent-primary);
    font-size: 1.2rem;
    opacity: 0.6;
}

.pos-1 {
    top: 10%;
    left: 10%;
}

.pos-2 {
    bottom: 15%;
    right: 5%;
}

.tech-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-secondary);
    /* Amber dot */
    border-radius: 50%;
    bottom: 20%;
    left: 0;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
    animation: pulse 3s infinite;
}

/* Content Area (Right) */
.mission-content-box {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
}

.mission-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mission-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    /* Emerald */
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.mission-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.mission-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    /* Slightly larger */
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

/* Text Highlight Style */
.highlight-text {
    background: linear-gradient(120deg, var(--accent-primary) 0%, #34d399 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Underline decoration for highlights */
.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(16, 185, 129, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.mission-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 0;
}

/* ============================================================
   Case Study Detail Pages
   ============================================================ */

/* ── work-card に hover arrow 追加 ── */
.work-card {
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.work-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: 1.2rem;
    letter-spacing: 0.04em;
    transition: gap 0.3s var(--easing);
}

.work-card:hover .work-card-arrow {
    gap: 0.8rem;
}

/* ── Case Hero Banner ── */
.case-hero {
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.case-hero .container {
    position: relative;
    z-index: 2;
}

.case-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.case-breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.case-breadcrumb a:hover {
    opacity: 0.75;
}

.case-breadcrumb span {
    color: rgba(0, 0, 0, 0.25);
}

.case-hero-cat {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.6rem;
}

.case-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    max-width: 700px;
    margin-bottom: 1rem;
}

.case-hero-client {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.case-hero-client strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* ── Layout ── */
.case-body {
    padding: 4rem 0 10rem;
    background: white;
}

.case-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

/* ── Main Image ── */
.case-main-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.4rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.case-main-image-placeholder {
    width: 100%;
    height: 100%;
}

/* ── Tabs ── */
.case-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.case-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: #f9fafb;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.case-tab:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.case-tab.active {
    background: var(--text-color);
    color: white;
}

.case-tab-panel {
    display: none;
}

.case-tab-panel.active {
    display: block;
}

/* 導入前の課題 */
.case-tab-panel--before .case-issue-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.case-tab-panel--before .case-issue-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem 1.4rem;
    background: #fff5f5;
    border-radius: 10px;
    border-left: 3px solid #ef4444;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.case-issue-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* 導入後の効果 */
.case-tab-panel--after .case-effect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.case-effect-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(5, 150, 105, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.4rem;
    text-align: center;
}

.case-effect-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.case-effect-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.case-effect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-effect-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: rgba(16, 185, 129, 0.04);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* ── Sidebar Company Card ── */
.case-sidebar {
    position: sticky;
    top: 8rem;
}

.case-company-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.case-company-card h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.case-company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.case-company-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.case-company-table th {
    text-align: left;
    padding: 0.7rem 0;
    color: var(--text-muted);
    font-weight: 500;
    width: 36%;
    vertical-align: top;
}

.case-company-table td {
    padding: 0.7rem 0;
    color: var(--text-color);
    font-weight: 500;
    vertical-align: top;
}

.case-company-table td a {
    color: var(--accent-primary);
    text-decoration: none;
    word-break: break-all;
}

.case-company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.case-company-tags span {
    font-size: 0.73rem;
    padding: 0.25rem 0.7rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
    border-radius: 100px;
    font-weight: 600;
}

/* CTA card in sidebar */
.case-cta-card {
    background: linear-gradient(135deg, var(--accent-primary), #059669);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.case-cta-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.case-cta-btn {
    display: inline-block;
    background: white;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.8rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.case-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Back link */
.case-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s, gap 0.2s;
}

.case-back:hover {
    color: var(--accent-primary);
    gap: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
    .case-layout {
        grid-template-columns: 1fr;
    }

    .case-sidebar {
        position: static;
    }

    .case-tab-panel--after .case-effect-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .case-hero {
        padding: 8rem 0 4rem;
    }

    .case-tab-panel--after .case-effect-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Media Article Pages
   ============================================= */

/* Make blog cards fully clickable */
a.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.blog-card:hover .blog-title {
    color: var(--accent-primary);
}

a.blog-card:hover .blog-img-placeholder {
    transform: scale(1.04);
}

/* Article Hero */
.media-hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.media-hero-inner {
    position: relative;
    z-index: 2;
}

/* グラデーションオーバーレイ：opacity は inline rgba で制御するので1に */
.media-hero-gradient {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 0;
}

/* ヒーロー内のテキストはすべて白 */
.media-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.media-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.media-breadcrumb a:hover {
    color: #fff;
}

.media-breadcrumb span {
    opacity: 0.5;
}

.media-hero-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.media-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
    max-width: 860px;
}

.media-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.media-hero-meta .dot {
    opacity: 0.4;
}

/* Article Layout */
.media-body {
    padding: 5rem 0 8rem;
    background: transparent;
    position: relative;
    z-index: 2;
}

.media-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.media-content {
    width: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 3rem 3.5rem;
}

.media-lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.media-section {
    margin-bottom: 3.5rem;
}

.media-section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.media-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.8rem;
}

.media-section p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.media-section ul,
.media-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.media-section li {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.media-section ul li::marker {
    color: var(--accent-primary);
}

.media-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.media-highlight p {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.media-highlight strong {
    color: var(--accent-primary);
}

.media-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.media-step-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-step-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.media-step-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

/* Article Sidebar */
.media-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-sidebar-card {
    background: #fff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    padding: 1.8rem;
}

.media-sidebar-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
}

.media-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.media-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.media-author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.media-author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.media-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.media-tags-list span {
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.media-cta-card {
    background: var(--accent-gradient);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
}

.media-cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.media-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.media-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.media-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 3rem;
    transition: color 0.2s, gap 0.2s;
}

.media-back:hover {
    color: var(--accent-primary);
    gap: 0.8rem;
}

/* Responsive: Media Articles */
@media (max-width: 900px) {
    .media-layout {
        grid-template-columns: 1fr;
    }

    .media-sidebar {
        position: static;
    }

    .media-hero h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .media-hero {
        padding: 8rem 0 3rem;
    }

    .media-body {
        padding: 3rem 0 5rem;
    }

    .media-content {
        padding: 2rem 1.5rem;
    }
}

/* =============================================
   Comprehensive Mobile Optimization
   ============================================= */
@media (max-width: 768px) {

    /* ── Global spacing ── */
    .container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    /* ── Intro / Mission Section Fix (sumaho01) ── */
    .intro {
        padding: 6rem 0 4rem;
    }

    .intro-text-wrapper {
        text-align: center;
        padding: 0 0.5rem;
    }

    .intro-text {
        font-size: clamp(1.8rem, 7.5vw, 2.6rem);
        text-align: center;
        line-height: 1.3;
        margin-bottom: 2rem;
        letter-spacing: -0.01em;
    }

    .intro-sub {
        font-size: 0.95rem;
        line-height: 1.85;
        text-align: center;
        margin: 1.5rem auto 0;
        max-width: 100%;
    }

    /* MISSIONテキスト中央揃え・間隔修正 — 上の768pxクエリで !important 付きで制御済み */
    .mission-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        margin-top: 8rem;
        gap: 1.5rem;
        padding: 0 0.8rem;
        align-items: center;
    }

    .mission-visual {
        order: 2 !important;
        width: 320px !important;
        height: 320px !important;
        margin: 1rem auto 0;
    }

    .mission-content-box {
        order: 1 !important;
        padding-left: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mission-header {
        justify-content: center;
        margin-bottom: 1rem;
    }

    .mission-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.45;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .mission-text {
        font-size: 0.92rem;
        line-height: 1.85;
        text-align: center;
    }

    /* ── About Section Fix (sumaho02) ── */
    .about {
        padding: 6rem 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visual {
        display: flex;
        justify-content: center;
    }

    .about-image-wrapper {
        width: 320px;
        height: 320px;
        margin: 0 auto 1rem;
        animation: none;
    }

    .about-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        margin: 0.5rem 0 1.5rem;
    }

    .about-desc p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .about-content .section-label {
        display: block;
    }

    /* ── Strengths Section Fix (sumaho03) ── */
    .strengths {
        padding: 6rem 0;
    }

    .strengths-header {
        margin-bottom: 3rem;
    }

    .strengths-mascot-wrapper {
        margin-bottom: -0.5rem;
    }

    .strengths-mascot-img {
        max-width: 160px;
    }

    .strengths-title-wrap {
        margin: 0.8rem 0 1.2rem;
    }

    .strengths-main-title {
        font-size: 1.8rem;
    }

    .strengths-bg-text {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .strengths-lead {
        font-size: 0.88rem;
        line-height: 1.85;
        padding: 0 0.5rem;
    }

    /* ── Strengths Grid Cards ── */
    .strengths-grid {
        border-radius: 12px;
    }

    .str-card-inner {
        padding: 1.6rem 1.4rem;
        gap: 0.6rem;
    }

    .str-number {
        font-size: 2.2rem;
        margin-bottom: 0.4rem;
    }

    .str-head {
        gap: 1rem;
    }

    .str-head h3 {
        font-size: 1.05rem;
    }

    .str-icon-wrap {
        width: 44px;
        height: 44px;
    }

    .str-icon-wrap svg {
        width: 22px;
        height: 22px;
    }

    .str-card-inner>p {
        font-size: 0.82rem;
        line-height: 1.8;
    }

    /* ── Service Section ── */
    .service {
        padding: 6rem 0;
    }

    .section-header {
        margin-bottom: 4rem;
    }

    /* ── Use Case Section ── */
    .usecase-header-visual {
        width: 100%;
    }

    .usecase-image-wrapper {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }

    .usecase-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Hero Section ── */
    .hero {
        min-height: 100svh;
        padding: 7rem 1.25rem 8rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 8.5vw, 3.2rem);
        line-height: 1.16;
        margin-bottom: 0;
        letter-spacing: -0.02em;
    }

    .hero-label {
        font-size: 0.65rem;
        letter-spacing: 0.18em;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
    }

    .hero-label > span {
        margin-inline-end: -0.18em;
    }

    .hero-label::before,
    .hero-label::after {
        width: 20px;
        flex-shrink: 0;
    }

    .hero-subtitle {
        font-size: clamp(0.78rem, 3.3vw, 0.95rem);
        line-height: 1.95;
        letter-spacing: 0.015em;
        padding-inline-start: 0.015em;
        margin: 1.5rem auto 1.75rem;
    }

    .hero-jp-copy {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        line-height: 1.8;
    }

    /* ── Recruit Section ── */
    .recruit {
        padding: 5rem 0;
    }

    .recruit-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    /* ── Contact Section ── */
    .contact {
        padding: 5rem 0;
    }
}

/* ── Extra Small (under 480px) ── */
@media (max-width: 480px) {

    .intro-text {
        font-size: 1.7rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
        line-height: 1.16;
        letter-spacing: -0.02em;
    }

    .mission-visual {
        width: 260px !important;
        height: 260px !important;
    }

    .mission-title {
        font-size: 1.5rem;
    }

    .about-image-wrapper {
        width: 260px;
        height: 260px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .strengths-mascot-img {
        max-width: 140px;
    }

    .strengths-main-title {
        font-size: 1.5rem;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .usecase-image-wrapper {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }

    .str-card-inner {
        padding: 1.4rem 1.2rem;
    }

    .str-number {
        font-size: 1.8rem;
    }

    .str-head h3 {
        font-size: 0.95rem;
    }
}
/* Keep the approved mission statement in three lines at every width. */
.mission-title > .mission-title-line { display: block; white-space: nowrap; }
