@charset "UTF-8";

/* ==========================================================================
   Front Page Specific Styles
   ========================================================================== */

body.home,
body.front-page,
body.home header .headul li a,
body.home footer h2,
body.home footer .footp1,
body.home footer .footp2,
body.home footer .footer-cta-title {
    font-family: var(--font-base);
}

/* Common Utilities */
.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent inner elements from pushing width */
}

/* Fix for Header Dropdown clipping on Front Page */
header.service .wrapper {
    overflow: visible;
}

/* Hero Section 2026 Redesign */
/* Header Overlay for Front Page */
/* Header Overlay styles removed - handled globally in layout.css */

/* Hero Section 2026 Redesign - Modern Clean */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 90vh;
    /* Increased height for impact */
    background-color: var(--color-base);
    /* Unified with body background */
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 112px;
    /* Header height offset */
}

/* Background Video Wrapper - Modern Smooth Hard Curve (No Haze) */
.hero-bg-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    /* Reduced to 55% to minimize clash */
    height: 100%;
    z-index: 1;
    /* Clean "Non-horizontal" lines using border-radius */
    border-top-left-radius: 300px;
    border-bottom-left-radius: 300px;
    /* Consistent radius */
    /* Remove haze/masks */
    mask-image: none;
    -webkit-mask-image: none;
    overflow: hidden;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Semi-transparent white overlay for "Soft/Gentle" feel and text readability */
.hero-bg-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Reduced opacity for clarity/contrast */
    display: block;
    pointer-events: none;
}

/* Container for Content */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-text {
    width: 100%;
    max-width: 550px;
    /* Constrain more to pull back from video overlap */
}

/* Tagline - Refined */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--color-brand);
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    font-family: "LINE Seed JP", sans-serif;
    letter-spacing: 0.1em;
}

.hero-tagline::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-brand);
}

/* Modern Headline */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.4;
    /* Increased for spacious feel */
    font-weight: 700;
    color: #222;
    /* Darkened for contrast */
    margin-bottom: 2.5rem;
    font-family: "LINE Seed JP", sans-serif;
    letter-spacing: 0.05em;
    text-shadow: none;
}

.hero-title span {
    color: inherit;
    /* Remove red accent */
}

/* Clean Description */
.hero-desc {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 3.5rem;
    max-width: 520px;
    background: transparent;
    /* Removed box */
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

/* Adjust primary button for modern flat/soft feel */
.btn-primary {
    background: var(--color-main);
    /* Corporate Black (Sumi) */
    color: #fff;
    padding: 20px 56px;
    /* Guideline Standard */
    border-radius: 9999px;
    /* Guideline Pill */
    font-size: 1.0rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Guideline Shadow */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, filter 0.3s ease-out;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    /* Slightly less transparent */
    backdrop-filter: blur(12px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    color: #333;
    /* Ensure contrast */
    border: 2px solid #fff;
    /* Solid white border for definition */
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-out;
}

.btn-secondary:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    opacity: 1;
    color: var(--color-brand);
}

/* Floating element - simplified or removed for "noise-free" */
.hero-decor-circle {
    /* Keeping it but making it very subtle ambient light */
    position: absolute;
    bottom: -10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: none;
    filter: blur(40px);
}

/* Remove old hero-image styles as we use video bg now */
.hero-image {
    display: none;
}



@media (max-width: 768px) {
    .wrapper {
        padding: 0 15px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 100px;
        align-items: flex-start;
    }

    .hero-bg-video {
        width: 100%;
        height: 100%;
        opacity: 0.15;
        /* Subtle background on mobile */
        border-radius: 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-text {
        width: 100%;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Fallback */
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
}

/* Case Studies Section */
.section-front-case {
    padding: 80px 0;
    background-color: var(--color-base);
}

.section-front-case .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-front-case .section-title .en {
    display: block;
    font-size: 1rem;
    color: var(--color-brand);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-front-case .section-title .ja {
    display: block;
    font-size: 32px;
    /* Guideline H2 */
    color: #333;
    font-weight: 700;
    /* Guideline H2 */
    margin-bottom: 16px;
}

.front-case-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.front-case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.front-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.front-case-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.front-case-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.front-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.front-case-excerpt {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.8;
}

.front-case-btn-wrapper {
    text-align: center;
}

/* Responsive for Case Studies */
@media (max-width: 768px) {
    .section-front-case {
        padding: 60px 0;
    }

    .section-front-case .section-title {
        margin-bottom: 40px;
    }

    .section-front-case .section-title .ja {
        font-size: 1.5rem;
        /* Guideline H2 Mobile (24px) */
    }

    .front-case-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .front-case-body {
        padding: 20px;
    }
}

/* ==========================================================================
   Product Introduction Section (Bento Grid Redesign 2026)
   ========================================================================== */

.section-front-products-bento {
    position: relative;
    padding: 120px 0;
    background-color: var(--color-base);
    overflow: hidden;
}

/* Ambient Glow Effects Removed */

.products-container-bento {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 4vw;
    /* Fluid side padding */
}

/* Header (Shared with previous design mostly) */
.products-header {
    text-align: center;
    margin-bottom: 80px;
}

.products-header .section-title {
    margin-bottom: 24px;
}

.products-header .section-title .en {
    display: block;
    font-size: 1.1rem;
    color: var(--color-brand);
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.products-header .section-title .ja {
    display: block;
    font-size: 32px;
    /* Guideline H2 */
    color: #333;
    font-weight: 700;
    /* Guideline H2 */
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    font-weight: 500;
}

/* Bento Wrapper */
.bento-products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Bento Grid System */
.bento-product-grid {
    display: grid;
    /* 3 Column Layout */
    grid-template-columns: 1fr 1.6fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
    width: 100%;
    max-width: 1800px;
    /* Increased limit for large screens */
    margin: 0 auto;
}

/* Card General Styles */
.bento-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Specific Card Placements (Grid Areas) 
   Default 3-col:
   Col 1: Title(1,1), Feat2(2,1)
   Col 2: Visual(1,2 span 2 rows)
   Col 3: Feat1(1,3), Awards/CTA(2,3)
*/

/* 1. Visual Card (Center) */
.card-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 30px;
    /* Restore padding for card feel */
    background: #fff;
    /* Clean card background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    /* Clean card shadow */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* clean edges */
}

/* .card-visual:hover removed to inherit standard bento card hover */

.visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* Unused backdrop styles removed */
.main-visual-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* Sharper shadow */
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.product-logo-visual {
    position: relative;
    z-index: 10;
    width: 280px;
    height: auto;
    object-fit: contain;
}

.bento-product-grid:hover .main-visual-img {
    transform: scale(1.02);
}

/* 2. Title Block (Top Left) */
.card-title-block {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
}

.product-badge {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 5px;
    /* Reduced margin */
    letter-spacing: 0.05em;
    display: inline-block;
}

.badge-blue {
    background: var(--color-brand);
}

.badge-pink {
    background: var(--color-main);
}

.card-title-highlight {
    font-size: 1.35rem;
    margin: 0;
    line-height: 1.4;
    color: #333;
}

.card-text-desc {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}


/* 3. Feature 1 (Top Right) */
.card-feat-1 {
    grid-column: 3;
    grid-row: 1;
}

/* 4. Feature 2 (Bottom Left) */
.card-feat-2 {
    grid-column: 1;
    grid-row: 2;
}

/* Feature Content */
.feat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.icon-blue {
    background: rgba(34, 158, 189, 0.1);
    color: var(--color-brand);
}

.icon-pink {
    background: rgba(238, 75, 43, 0.1);
    color: var(--color-main);
}

.card-feature h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.card-feature p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

/* 5. Awards/CTA (Bottom Right) -> Track Record */
.card-awards {
    grid-column: 3;
    grid-row: 2;
    justify-content: center;
    padding: 24px;
}

.track-record-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.track-record-content h4 {
    font-size: 1.0rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.record-stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
}

.stat-val {
    font-size: 1.6rem;
    color: var(--color-brand);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-val small {
    font-size: 0.8rem;
    color: #333;
    margin-left: 2px;
}

.awards-mini-row {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.awards-mini-row img {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.awards-mini-row img:hover {
    opacity: 1;
}

/* 6. CTA Button (Integrated into Visual Card) */
.btn-visual-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    max-width: 100%;
}

.btn-visual-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.btn-visual-cta span {
    font-size: 1.1rem;
}

.btn-visual-cta i {
    font-size: 1.3rem;
}

.btn-blue-gradient {
    background: linear-gradient(135deg, var(--color-brand), #4dbce9);
}

.btn-pink-gradient {
    background: var(--color-main);
}

/* Product Report specific Adjustments */
/* Reuse the same grid, just different content order if desired, but consistency is good. */


/* Responsive Design */
@media (max-width: 960px) {
    .bento-product-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    /* Mobile: 
       Title (Span 2)
       Visual (Span 2)
       Feat1 (1) Feat2 (1)
       Awards (Span 2)
    */

    .card-title-block {
        grid-column: 1 / span 2;
        grid-row: 1;
        text-align: center;
        align-items: center;
    }

    .card-text-highlight br {
        display: none;
    }

    .card-visual {
        grid-column: 1 / span 2;
        grid-row: 2;
        margin: 20px 0;
    }

    .card-feat-1 {
        grid-column: 1;
        grid-row: 3;
    }

    .card-feat-2 {
        grid-column: 2;
        grid-row: 3;
    }

    .card-awards {
        grid-column: 1 / span 2;
        grid-row: 4;
    }

    .awards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .section-front-products-bento {
        padding: 60px 0;
    }

    .bento-product-grid {
        gap: 12px;
    }

    .products-header .section-title .ja {
        font-size: 1.5rem;
        /* Guideline H2 Mobile (24px) */
    }

    /* Keep features side-by-side or stack? Side-by-side is usually okay on 375px if small.
       Let's keep side-by-side for "Bento" feel. */

    .bento-card {
        padding: 24px 20px;
    }

    /* Adjust awards for small screen */
    .awards-grid {
        gap: 8px;
    }
}


/* Problem Solving Section */
.section-problem-solving {
    padding: 80px 0;
    background-color: #fff;
    /* White background to contrast with Case Studies (base color) */
}

.section-problem-solving .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-problem-solving .section-title .en {
    display: block;
    font-size: 1rem;
    color: var(--color-brand);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-problem-solving .section-title .ja {
    display: block;
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.problem-solving-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 20px;
}

.problem-card {
    background: var(--color-base);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.problem-card-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-main);
}

.problem-card-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.problem-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.problem-card-desc {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 960px) {
    .problem-solving-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .section-problem-solving {
        padding: 60px 0;
    }

    .section-problem-solving .section-title .ja {
        font-size: 1.75rem;
    }

    .problem-solving-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Section */
.section-front-blog {
    padding: 100px 0;
    background-color: #fff;
    /* White background */
}

.section-front-blog .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-front-blog .section-title .en {
    display: block;
    font-size: 1rem;
    color: var(--color-brand);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-front-blog .section-title .ja {
    display: block;
    font-size: 2rem;
    color: var(--color-text);
    font-weight: 700;
}

.front-blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    text-decoration: none;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Subtle shadow on image */
}

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

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

.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #999;
}

.blog-card-date {
    font-family: 'Lato', sans-serif;
    /* Example numeral font */
}

.blog-card-cat {
    background-color: var(--color-base);
    color: var(--color-text);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--color-brand);
}

.front-blog-btn-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--color-brand);
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .section-front-blog {
        padding: 60px 0;
    }

    .front-blog-list {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 24px;
    }

    .blog-card-title {
        font-size: 1rem;
    }
}