/* Global Reset & Typography - Japandi Tech Update */
:root {
    /* --- Colors (Japandi Tech) --- */
    --bg-color: #fdfdfd;
    /* Off-white, paper-like */
    --color-bg-section-alt: #f4f6f8;

    --text-primary: #2b2b2b;
    /* Soft Black */
    --text-secondary: #5e6673;
    /* Blue-grey muted */

    /* Primary: Kachi-iro (Victory Blue) - Deep Indigo */
    --accent-tech-blue: #0f1c3f;
    /* Secondary: Platinum / Silver */
    --accent-platinum: #cfd1d4;
    /* Accent: Subtle Gold/Brass */
    --accent-gold: #c5a365;

    /* Gradients (Updated to muted japandi tech) */
    --accent-gradient: linear-gradient(135deg, #1a2b55 0%, #0f1c3f 100%);

    --card-shadow: 0 5px 20px rgba(15, 28, 63, 0.08);
    /* Indigo tinted shadow */
    --card-border: 1px solid #e6e8eb;

    /* --- Typography --- */
    --font-main: "Helvetica Neue", "Helvetica", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", Arial, sans-serif;
    --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGSMinchoE", "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;

    /* Washi Texture Effect */
    background-image:
        radial-gradient(#e0e0e0 1px, transparent 1px),
        radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-blend-mode: multiply;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-serif);
    /* Mincho for headings */
    font-weight: 500;
    line-height: 1.4;
    color: var(--accent-tech-blue);
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header (Inherited-ish Style) */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-text h1 {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-tech-blue);
}

.btn-login {
    background: #333;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Hero Section (Sales LP Style) */
.hero-section {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../assets/images/hero-bg.jpg');
    /* Assuming image exists, else fallback */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #eee;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-tagline {
    font-family: var(--font-serif);
    color: var(--accent-tech-blue);
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-tech-blue);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    border-color: #333;
}


/* Layout Reset: New styles will be added here */

/* =========================================
   1. Showcase / Feature Grid Section
   ========================================= */
.showcase-section {
    padding: 80px 0;
    background: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC: 3 Columns Fixed */
    gap: 40px;
}

/* Card Styles */
.white-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Align height */
}

.white-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-visual {
    height: 200px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #fff;
}

/* Gradients */
.visual-csv {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    color: #5e72e4;
}

.visual-slideshow {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #2dce89;
}

.visual-video {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #fb6340;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-badge {
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.card-type {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.type-onetime {
    background: #e0eafc;
    color: #333;
}

.type-monthly {
    background: #e2fce0;
    color: #2dce89;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.4;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.card-arrow {
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    /* Vertical Center */
    justify-content: center;
    /* Horizontal Center */
    color: #333;
    transition: 0.3s;
    /* Font Awesome Icon Centering Fix */
    font-size: 0.9rem;
    line-height: 1;
}

.white-card:hover .card-arrow {
    background: var(--accent-tech-blue);
    color: #fff;
}


/* =========================================
   2. Detail Page: Product Layout Style
   ========================================= */
.single-feature-page .site-main {
    background: #f9f9f9 !important;
    /* Page BG */
    padding-bottom: 80px;
}

.product-layout-wrapper {
    display: flex;
    gap: 60px;
    margin-top: 40px;
    align-items: flex-start;
    background: #fff;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

/* Left Col: Image */
.product-image-col {
    width: 50%;
    position: relative;
}

.product-image-col img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: block;
}

/* Right Col: Info */
.product-info-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-badges {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.detail-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.detail-price {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    width: 100%;
}

.detail-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

/* =========================================
   3. Mobile Responsive
   ========================================= */
@media (max-width: 900px) {

    /* Tablet: Stack Grid to 2 cols */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-layout-wrapper {
        padding: 40px;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Feature List: Keep 2 columns but smaller gap */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 cols */
        gap: 15px;
        /* Narrower gap for mobile */
    }

    .card-content {
        padding: 15px;
        /* Reduce padding */
    }

    .card-visual {
        height: 140px;
        /* Reduce height */
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1rem;
        /* Smaller title */
    }

    .card-text {
        font-size: 0.8rem;
        /* Smaller text */
        display: none;
        /* Optional: Hide text on mobile if too crowded? Keep for now based on request */
    }

    /* Detail Page: Stack Vertically */
    .product-layout-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
        margin-top: 20px;
    }

    .product-image-col,
    .product-info-col {
        width: 100%;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    /* Ensure no overflow */
    .container {
        padding: 0 15px;
    }
}