@charset "UTF-8";

/* ==========================================================================
   Pricing Page Styles - Matching page-yoriaiseo.php aesthetic
   ========================================================================== */

/* Variables inherited from Corporate Style but explicitly defined here for standalone safety */
.page-template-page-pricing {
    /* Color Palette - Japanese Modern & Corp Identity */
    --color-bg: #F9F9F9;
    --color-surface: #FFFFFF;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-brand: #229ebd;
    --color-accent: #EE4B2B;
    --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);

    /* Plan Colors */
    --plan-free-bg: #90D3E3;
    --plan-light-bg: #7FBCC8;
    --plan-normal-bg: #5CA6B5;
    --plan-pro-bg: #229EBD;

    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    line-height: 1.8;
    letter-spacing: 0.05em;
    padding-bottom: 80px;
}

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

/* Typography Helpers */
.text-center {
    text-align: center;
}

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

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

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

.section-label {
    display: inline-block;
    color: var(--color-brand);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(34, 158, 189, 0.08);
    /* Brand blue tint */
    padding: 6px 16px;
    border-radius: var(--radius-pill);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero Section (Aurora Washi Effect)
   ========================================================================== */
.pricing-hero {
    padding: 10rem 0 6rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f0f2f5 100%);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.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;
    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;
    mix-blend-mode: overlay;
    z-index: 2;
}

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

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

.hero-orb.orb-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(238, 75, 43, 0.2) 0%, rgba(238, 75, 43, 0) 70%);
    /* Vermilion */
    animation-delay: -5s;
}

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

    100% {
        transform: translate(30px, -40px) rotate(5deg);
    }
}

/* ==========================================================================
   Pricing Table Section
   ========================================================================== */
.pricing-section {
    padding: 0 0 6rem;
}

/* The Card wrapper for the table */
.pricing-table-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    overflow: hidden;
    /* Contains the scroll */
}

.scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.pricing-table {
    width: 100%;
    min-width: 1000px;
    /* Force minimum width to prevent bunching */
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    /* Fixed Layout for predictable column widths */
}

/* Column Widths */
.pricing-table th.row-header {
    width: 180px;
}

.pricing-table .col-plan {
    width: 20%;
}

/* Cells */
.pricing-table th,
.pricing-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
}

.pricing-table th.row-header {
    text-align: left;
    background-color: var(--color-bg);
    /* Slight gray for headers */
    font-weight: 700;
    color: var(--color-text);
    padding-left: 1.5rem;
}

/* Plan Headers */
.plan-header-cell {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.plan-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bg-free {
    background-color: var(--plan-free-bg);
}

.bg-light {
    background-color: var(--plan-light-bg);
}

.bg-normal {
    background-color: var(--plan-normal-bg);
}

.bg-pro {
    background-color: var(--plan-pro-bg);
}

/* Prices (Fixing Layout Overlap) */
.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.price-main {
    font-size: 2.2rem;
    /* Adjusted size */
    font-weight: 700;
    font-family: "Barlow", sans-serif;
    /* Number font if available, else standard */
    line-height: 1;
    color: var(--color-text);
    white-space: nowrap;
    /* Prevent breaking */
}

.price-unit {
    font-size: 1rem;
    font-weight: normal;
    margin-left: 2px;
}

.price-monthly-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    display: block;
    white-space: nowrap;
}

/* Row Grouping */
.group-header th {
    background-color: #f0f4f8;
    /* Separate groups visually */
    color: var(--color-brand);
    font-size: 1.1rem;
    border-top: 2px solid white;
}

/* Text Styles */
.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.2rem;
}

/* ==========================================================================
   Credits & Comparison Sections (Bento Style)
   ========================================================================== */
.bento-card-wrapper {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    margin-bottom: 4rem;
}

/* Credits Grid (3 Column Fixed) */
.credits-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.credit-column h4 {
    color: var(--color-brand);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(34, 158, 189, 0.2);
    min-height: 40px;
    /* Ensure uniform header height */
    display: flex;
    align-items: center;
}

.credit-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.credit-name {
    flex-shrink: 0;
    font-weight: 500;
    color: var(--color-text);
}

.credit-dots {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 12px;
    position: relative;
    top: -5px;
}

.credit-val {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--color-text);
}


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

    .pricing-table-card,
    .bento-card-wrapper {
        padding: 1.5rem;
    }

    /* Change 3-column credits to 1-column on mobile */
    .credits-grid-3col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .credit-column h4 {
        margin-bottom: 1rem;
        min-height: auto;
    }

    /* Table will scroll, no layout break */
}