/* Page specific styles for yoriaiSEO product page - Cominka Corporate Style (Soft Wa-Modern 2026) */
.page-yoriaiseo {
    /* Color Palette - Japanese Modern & Corp Identity */
    --color-bg: #F9F9F9;
    /* Off-white / Paper */
    --color-surface: #FFFFFF;
    --color-text: #333333;
    /* Sumi Ink */
    --color-text-muted: #666666;
    --color-brand: #229ebd;
    /* Yoriai Blue (Retained) */
    --color-accent: #EE4B2B;
    /* Vermilion Red (Japanese Accent) */
    --color-border: #EEEEEE;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #229ebd 0%, #0077a8 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);

    /* Typography */
    --font-base: "LINE Seed JP", "Zen Kaku Gothic New", sans-serif;

    /* Shapes */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-pill: 9999px;

    /* Effects */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 50px rgba(34, 158, 189, 0.15);

    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
    /* Prevent overflow */
}

/* Reset / Utilities */
.page-yoriaiseo * {
    box-sizing: border-box;
}

.page-yoriaiseo h1,
.page-yoriaiseo h2,
.page-yoriaiseo h3,
.page-yoriaiseo h4 {
    font-family: var(--font-base);
    font-weight: 700;
    /* Guideline: Explicit Bold */
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

/* Guideline: Precise Font Sizes */
.page-yoriaiseo h1 {
    font-size: 64px;
}

.page-yoriaiseo h2 {
    font-size: 32px;
}

.page-yoriaiseo h3 {
    font-size: 24px;
}

.page-yoriaiseo h4 {
    font-size: 20px;
}

@media (max-width: 768px) {
    .page-yoriaiseo h1 {
        font-size: 40px;
    }

    .page-yoriaiseo h2 {
        font-size: 24px;
    }

    .page-yoriaiseo h3 {
        font-size: 20px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3.5rem;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-text);
    /* Corporate Black/Dark */
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-muted {
    background: #eeeeee;
    color: var(--color-text);
    box-shadow: none;
}

.btn-muted:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 12rem 0 8rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f0f2f5 100%);
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    overflow: hidden;
}

/* Aurora Washi Effect (Animated Background) */
.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.12;
    /* Subtle grain increased slightly */
    mix-blend-mode: overlay;
    z-index: 2;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.8;
    will-change: transform;
    animation: drift 15s infinite alternate ease-in-out;
}

.hero-orb.orb-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 158, 189, 0.4) 0%, rgba(34, 158, 189, 0) 70%);
    animation-delay: 0s;
}

.hero-orb.orb-2 {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(238, 75, 43, 0.3) 0%, rgba(238, 75, 43, 0) 70%);
    /* Stronger red */
    animation-delay: -5s;
    animation-duration: 18s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50px, 30px) scale(1.1) rotate(5deg);
    }

    100% {
        transform: translate(30px, -60px) scale(0.9) rotate(-3deg);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(34, 158, 189, 0.1);
    color: var(--color-brand);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-family: var(--font-base);
    margin-bottom: 3rem;
}

.hero-visual {
    margin-top: 6rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: white;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-mockup {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}

.hero-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Social Proof */
.social-proof {
    padding: 4rem 0;
}

.logo-scroller {
    display: flex;
    justify-content: center;
    gap: 4rem;
    opacity: 0.5;
    flex-wrap: wrap;
}

/* Bento Grid Features */
.features-section {
    padding: 8rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.bento-card {
    background: var(--color-surface);
    border-radius: 24px;
    border: 1px solid var(--color-border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(34, 158, 189, 0.3);
}

/* Specific Card Visuals */
.bento-card.loop-writing {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    min-height: 280px;
}

/* Common height for standard cards */
.bento-card:not(.loop-writing) {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Feature 1: Mock UI (Writing) */
.loop-writing .bento-visual {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.mock-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-line {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    width: 100%;
}

.mock-line:nth-child(1) {
    height: 16px;
    margin-bottom: 8px;
    background: #cbd5e1;
}

.mock-line:nth-child(even) {
    background: #eef2f6;
}

/* Animation: Lines Expand */
/* Animation: Writing Loop */
@keyframes writingPulse {

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

    50% {
        transform: scaleX(1.05);
        opacity: 0.8;
    }
}

.mock-line {
    transform-origin: left center;
}

.bento-card:hover .mock-line:nth-child(1) {
    animation: writingPulse 1.5s infinite ease-in-out 0s;
}

.bento-card:hover .mock-line:nth-child(2) {
    animation: writingPulse 1.5s infinite ease-in-out 0.2s;
}

.bento-card:hover .mock-line:nth-child(3) {
    animation: writingPulse 1.5s infinite ease-in-out 0.4s;
}

.bento-card:hover .mock-line:nth-child(4) {
    animation: writingPulse 1.5s infinite ease-in-out 0.1s;
}


/* Feature 2: Page Diagnosis (Score) */
.mock-score {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 8px solid var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-brand);
    background: white;
    box-shadow: 0 8px 20px rgba(34, 158, 189, 0.15);
}

.score-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* Animation: Score Pop */
/* Animation: Score Loop */
@keyframes scorePulse {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 8px 20px rgba(34, 158, 189, 0.15);
    }

    50% {
        transform: scale(1.1) rotate(-3deg);
        box-shadow: 0 15px 30px rgba(34, 158, 189, 0.25);
    }

    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 8px 20px rgba(34, 158, 189, 0.15);
    }
}

.bento-card:hover .score-circle {
    animation: scorePulse 2s infinite ease-in-out;
}


/* Feature 3: Site Diagnosis (Health List) */
.mock-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
}

.mock-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centering fix */
    gap: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.mock-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    /* Green check */
}

.mock-check.warn {
    background: #FFC107;
    /* Orange warn */
}

.mock-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    flex: 1;
}

/* Animation: List Slide */
/* Animation: List Check Loop */
@keyframes listFloat {

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

    50% {
        transform: translateX(4px);
    }
}

@keyframes checkPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.bento-card:hover .mock-list-item:nth-child(1) {
    animation: listFloat 2s infinite ease-in-out 0s;
}

.bento-card:hover .mock-list-item:nth-child(2) {
    animation: listFloat 2s infinite ease-in-out 0.2s;
}

.bento-card:hover .mock-list-item:nth-child(3) {
    animation: listFloat 2s infinite ease-in-out 0.4s;
}

.bento-card:hover .mock-check {
    animation: checkPop 2s infinite ease-in-out;
}


/* Feature 4: Rank Tracker (Graph) */
.mock-graph {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    width: 80%;
    justify-content: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

.graph-bar {
    width: 14px;
    background: var(--color-brand);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 0.3s ease;
    transform-origin: bottom;
}

.graph-bar:nth-child(odd) {
    opacity: 0.5;
}

@keyframes barGraphLoop {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.3);
    }
}

.bento-card:hover .graph-bar:nth-child(1) {
    animation: barGraphLoop 1.2s infinite ease-in-out 0s;
}

.bento-card:hover .graph-bar:nth-child(2) {
    animation: barGraphLoop 1.6s infinite ease-in-out 0.2s;
}

.bento-card:hover .graph-bar:nth-child(3) {
    animation: barGraphLoop 1.4s infinite ease-in-out 0.4s;
}

.bento-card:hover .graph-bar:nth-child(4) {
    animation: barGraphLoop 1.8s infinite ease-in-out 0.1s;
}

.bento-card:hover .graph-bar:nth-child(5) {
    animation: barGraphLoop 1.5s infinite ease-in-out 0.3s;
}


/* Feature 5: Keyword Research (Tags) */
.mock-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 90%;
}

.mock-tag {
    background: #eef6f9;
    color: var(--color-brand);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.mock-tag:nth-child(odd) {
    background: #fff;
    border: 1px solid #eef6f9;
}

/* Animation: Floating Tags */
/* Animation: Floating Tags Loop */
@keyframes tagFloat {

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

    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

@keyframes tagFloatReverse {

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

    50% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

.bento-card:hover .mock-tag:nth-child(odd) {
    animation: tagFloat 2.5s infinite ease-in-out;
}

.bento-card:hover .mock-tag:nth-child(even) {
    animation: tagFloatReverse 3s infinite ease-in-out;
}


/* Feature 6: Competitor Research (Comparison) */
.mock-vs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vs-bar-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.vs-bar {
    width: 12px;
    background: #ddd;
    border-radius: 4px;
}

.vs-bar.us {
    background: var(--color-brand);
}

.vs-bar.them {
    background: var(--color-accent);
    opacity: 0.7;
}

.vs-text {
    font-weight: 900;
    font-style: italic;
    color: #999;
}

/* Animation: VS Loop */
@keyframes vsFightUs {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.3);
    }
}

@keyframes vsFightThem {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 0.5;
    }
}

.vs-bar {
    transform-origin: bottom;
}

.bento-card:hover .vs-bar.us {
    animation: vsFightUs 1.5s infinite ease-in-out;
}

.bento-card:hover .vs-bar.them {
    animation: vsFightThem 1.5s infinite ease-in-out;
}


/* Feature 7: Backlink (Link Nodes) */
.mock-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.mock-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    font-weight: bold;
}

.mock-node.main {
    width: 48px;
    height: 48px;
    background: var(--color-brand);
    border: none;
    color: white;
}

.mock-link-line {
    position: absolute;
    width: 60%;
    height: 2px;
    background: #ddd;
    top: 50%;
    z-index: 1;
    transition: height 0.3s ease;
}

/* Animation: Node Loop */
@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 15px rgba(34, 158, 189, 0.2);
    }
}

@keyframes nodeMainPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(34, 158, 189, 0.5);
    }
}

.bento-card:hover .mock-node:not(.main) {
    animation: nodePulse 2s infinite ease-in-out;
}

.bento-card:hover .mock-node.main {
    animation: nodeMainPulse 2s infinite ease-in-out;
}

.bento-card:hover .mock-link-line {
    opacity: 0.8;
    height: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .bento-card.loop-writing {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .pricing-card.featured {
        transform: none;
    }

    .logo-scroller {
        gap: 2rem;
    }
}


/* =========================================
   Ported Styles from LP (Problems, Comparison)
   ========================================= */

/* Problems Section (Swiper) */
.problemdiv .swiper {
    width: 280px;
    height: 380px;
}

.problemdiv .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    padding: 20px;
    text-align: center;
    gap: 20px;
    /* Add gap to prevent overlap */
}

.swipetop {
    margin-bottom: auto;
    width: 100%;
}

.swipebottom {
    margin-top: auto;
    margin-bottom: 20px;
}

.nayami {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.count {
    font-size: 50px;
    line-height: 1;
    margin: 10px 0;
    font-family: 'LINE Seed JP', sans-serif;
}

.catp {
    font-size: 14px;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.problemdiv .slide1 {
    background: #43AFC9;
}

.problemdiv .slide2 {
    background: #2BD2CA;
}

.problemdiv .slide3 {
    background: #E83A3B;
}

.problemdiv .slide4 {
    background: #FF971E;
}

.problemdiv .slide5 {
    background: #4A7ABA;
}


/* Comparison Section */
.plantopleft .innerright ul li,
.plantopleft .innerright ul li {
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.innercontent>div>div {
    border-bottom: 1px solid #eee;
    height: 60px;
    /* match li height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix alignment for comparison table rows */
.plantopleft .innerright ul {
    margin: 0;
    padding: 0;
}

.plantopleft .innerright ul li {
    height: 60px;
}

/* Highlight Yoriai Column */
.yoriaitha {
    background: #9CDAE8;
    color: #229EBC;
    font-weight: bold;
}

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

    .bento-card.loop-writing {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.loop-writing {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column-reverse;
    }

    .bento-card {
        padding: 2rem;
        min-height: auto !important;
        flex-direction: column-reverse;
    }
}

/* AI Analysis Section (Dark/Brand Mode) */
.ai-section {
    padding: 8rem 0;
    background: var(--color-text);
    color: white;
    border-radius: var(--radius-lg);
    margin: 4rem 2rem;
    /* Inset section */
    position: relative;
    overflow: hidden;
}

.ai-section h2 {
    color: white;
}

.ai-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Pricing */
.pricing-section {
    padding: 8rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Push button to bottom */
.pricing-card .btn {
    margin-top: auto;
}

.pricing-card.featured {
    border: 2px solid var(--color-brand);
    background: #FAFDFF;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.price {
    font-size: 3rem;
    font-family: var(--font-base);
    margin: 1.5rem 0;
    color: var(--color-text);
}


.price small {
    font-size: 1rem;
    color: #999;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: "✔";
    color: var(--color-brand);
    margin-right: 10px;
}

/* Footer CTA */
.footer-cta {
    padding: 10rem 0 6rem;
    text-align: center;
    background: transparent;
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }



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

    .ai-section {
        margin: 2rem 1rem;
        padding: 4rem 1rem;
    }

    .hero-section {
        border-radius: 0 0 40px 40px;
    }
}

/* Case Study Visual Cards */
.case-study-section {
    padding: 8rem 0 6rem;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card-visual {
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.case-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.case-visual-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f2f5;
    overflow: hidden;
}

.case-visual-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f0f2f5;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card-visual:hover .case-overlay {
    opacity: 1;
}

.read-more-btn {
    background: white;
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.case-card-visual:hover .read-more-btn {
    transform: translateY(0);
}

.case-visual-content {
    padding: 1.5rem;
}

.case-visual-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .case-visual-thumb {
        aspect-ratio: 16 / 10;
    }
}

/* Awards Grid */
.awards-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.awards-grid img {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.awards-grid img:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .awards-grid img {
        height: 80px;
    }
}

/* Secondary Button & CTA Group */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    /* Clean, simple card style */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

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

.blog-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f2f5;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-family: var(--font-base);
}

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.hero-cta.cta-group {
    margin-top: 0;
    /* Override default if needed */
}

.btn-secondary {
    background: white;
    color: var(--color-brand);
    border: 2px solid var(--color-brand);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--color-brand);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(34, 158, 189, 0.2);
}

/* Flow Section Fixes */
.flow-step-card {
    width: calc((100% - 60px) / 4);
    min-width: 240px;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .flow-step-card {
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .flow-step-card {
        width: 100%;
    }
}

/* Bento Grid for Problems Section */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    margin-top: 3rem;
}

.problem-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(34, 158, 189, 0.2);
}

/* Intro Card (Full Width on Mobile, Span 2 on Desktop if desired, but 3-col grid logic used here) */
/* Let's make the Intro Card span 2 columns on large screens */
.problem-card.intro {
    grid-column: span 1;
    /* Default to 1-col but can span if needed. For 5 + 1 items, 3 cols * 2 rows works nicely */
    background: var(--gradient-brand);
    color: white;
    border: none;
}

/* Specific Grid Layout for 6 items (1 intro + 5 problems) */
@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1023px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Content Styles */
.intro-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: white;
}

.intro-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.intro-icon {
    position: absolute;
    bottom: -10px;
    right: 10px;
    font-size: 5rem;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.prob-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.prob-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-brand);
    font-family: var(--font-base);
}

.prob-cat {
    font-size: 0.75rem;
    font-weight: bold;
    color: #aaa;
    letter-spacing: 0.1em;
}

.prob-body {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.prob-text {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    margin-bottom: 0;
    /* Align fix */
    flex: 1;
    z-index: 2;
    text-align: left;
}

.prob-icon-bg {
    position: relative;
    /* Reset from absolute */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
    /* Ensure background if image is transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Border or slight separation */
    border: 1px solid #f0f0f0;
}

.prob-icon-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile specific adjustments */
@media (max-width: 600px) {
    .prob-body {
        align-items: center;
    }

    .prob-text {
        font-size: 1rem;
    }

    .prob-icon-bg {
        width: 60px;
        height: 60px;
    }
}

/* Flow Section Background Animation */
.flowdiv {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background-image: repeating-linear-gradient(-45deg,
            #ffffff,
            #ffffff 40px,
            #f8fcfe 40px,
            #f8fcfe 80px);
    background-size: 200% 200%;
    animation: flowBackground 30s linear infinite;
}

@keyframes flowBackground {
    0% {
        background-position: 0% 0%;
    }

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