/*
Theme Name: Mirai Digital
Theme URI: https://digital.miraitrading.jp
Author: 合同会社未来商事
Author URI: https://miraitrading.jp
Description: Enterprise-grade bilingual IT solutions theme for Mirai Digital. Fully pre-loaded with all pages, sections, and content. Dark/light mode, bilingual EN/JA, Elementor compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://digital.miraitrading.jp
Text Domain: mirai-digital
Tags: enterprise, bilingual, dark-mode, it-solutions, elementor, responsive
*/

/* ============================================================
   MIRAI DIGITAL - ENTERPRISE THEME
   合同会社未来商事
   ============================================================ */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --md-navy:        #0a0e1a;
    --md-navy-mid:    #0c1120;
    --md-navy-card:   #0f1629;
    --md-navy-light:  #141c35;
    --md-navy-border: #1e3a5f;
    --md-blue:        #3b82f6;
    --md-blue-light:  #60a5fa;
    --md-blue-dark:   #1d4ed8;
    --md-cyan:        #06b6d4;
    --md-violet:      #8b5cf6;
    --md-green:       #22c55e;
    --md-amber:       #f59e0b;
    --md-white:       #e8edf5;
    --md-muted:       #8899bb;
    --md-border:      rgba(59,130,246,0.15);
    --md-card-border: rgba(255,255,255,0.06);
    --md-font-en:     'IBM Plex Sans', sans-serif;
    --md-font-ja:     'Noto Sans JP', 'IBM Plex Sans', sans-serif;
    --md-radius:      10px;
    --md-radius-lg:   14px;
    --md-transition:  all 0.3s ease;
    --md-shadow:      0 20px 60px rgba(0,0,0,0.4);
    --md-glow:        0 8px 25px rgba(59,130,246,0.35);
}

/* Light mode variables */
body.light-mode {
    --md-navy:        #f8fafc;
    --md-navy-mid:    #f1f5f9;
    --md-navy-card:   #ffffff;
    --md-navy-light:  #f1f5f9;
    --md-white:       #0f172a;
    --md-muted:       #64748b;
    --md-card-border: rgba(0,0,0,0.08);
    --md-border:      rgba(59,130,246,0.2);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--md-font-en);
    background-color: var(--md-navy);
    color: var(--md-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.lang-ja { font-family: var(--md-font-ja); }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--md-navy); }
::-webkit-scrollbar-thumb { background: var(--md-blue); border-radius: 2px; }

/* Links */
a { color: var(--md-blue-light); text-decoration: none; transition: var(--md-transition); }
a:hover { color: var(--md-blue); }

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--md-white);
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -1.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.8px; }
h3 { font-size: 1.15rem; }
p { color: var(--md-muted); line-height: 1.75; }

/* ---- GRID BACKGROUND UTILITY ---- */
.md-grid-bg {
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- LAYOUT ---- */
.md-container { max-width: 1280px; margin: 0 auto; padding: 0 5%; width: 100%; }
.md-section    { padding: 90px 5%; }
.md-section-alt { padding: 90px 5%; background: var(--md-navy-mid); }

/* ---- ANNOUNCEMENT BAR ---- */
#md-announcement {
    background: linear-gradient(90deg, #1e3a5f, #1d4ed8, #1e3a5f);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    position: relative;
}
#md-announcement span { color: var(--md-white); }
#md-announcement a { color: var(--md-blue-light); font-weight: 600; }
#md-announcement-close {
    position: absolute; right: 16px;
    background: none; border: none;
    color: var(--md-muted); cursor: pointer; font-size: 16px;
}

/* ---- HEADER ---- */
#masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--md-transition);
    padding: 0 5%;
    border-bottom: 1px solid transparent;
}
#masthead.scrolled {
    background: rgba(10,14,26,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--md-border);
}
body.light-mode #masthead.scrolled {
    background: rgba(248,250,252,0.95);
}
.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo-mark {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--md-blue), var(--md-blue-dark));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: white; letter-spacing: -1px;
    flex-shrink: 0;
}
.site-name { font-size: 17px; font-weight: 700; color: var(--md-white); letter-spacing: -0.5px; }
.site-tagline { font-size: 10px; color: var(--md-muted); letter-spacing: 0.5px; }

/* Nav */
#site-navigation { display: flex; align-items: center; }
#primary-menu { display: flex; gap: 28px; list-style: none; align-items: center; }
#primary-menu > li > a {
    font-size: 14px; font-weight: 500;
    color: var(--md-muted);
    letter-spacing: 0.3px;
    padding: 4px 0;
    position: relative;
}
#primary-menu > li > a::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 1px; background: var(--md-blue);
    transform: scaleX(0); transition: transform 0.3s;
}
#primary-menu > li > a:hover { color: var(--md-blue-light); }
#primary-menu > li > a:hover::after { transform: scaleX(1); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switcher {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: 6px; overflow: hidden;
}
body.light-mode .lang-switcher { background: rgba(0,0,0,0.06); }
.lang-switcher button {
    padding: 6px 12px;
    background: transparent;
    color: var(--md-muted);
    border: none; cursor: pointer;
    font-size: 12px; font-weight: 600;
    transition: var(--md-transition);
}
.lang-switcher button.active { background: var(--md-blue); color: white; }

/* Dark mode toggle */
#dark-toggle {
    background: none;
    border: 1px solid var(--md-border);
    border-radius: 6px;
    width: 36px; height: 36px;
    cursor: pointer;
    color: var(--md-muted);
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--md-transition);
}
#dark-toggle:hover { border-color: var(--md-blue); }

/* CTA button */
.btn-primary {
    background: linear-gradient(135deg, var(--md-blue), var(--md-blue-dark));
    color: white !important;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: var(--md-transition);
    letter-spacing: 0.2px;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-glow);
    background: linear-gradient(135deg, var(--md-blue-light), var(--md-blue));
}
.btn-outline {
    background: transparent;
    color: var(--md-blue) !important;
    border: 1.5px solid var(--md-blue);
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: var(--md-transition);
    display: inline-block;
    text-align: center;
}
.btn-outline:hover {
    background: rgba(59,130,246,0.1);
    transform: translateY(-2px);
}
.btn-lg { padding: 14px 32px !important; font-size: 15px !important; }

/* ---- SECTION TAGS ---- */
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--md-blue-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    margin-bottom: 20px;
}

/* ---- SECTION HEADINGS ---- */
.md-section-head { text-align: center; margin-bottom: 52px; }
.md-section-head h2 { margin-bottom: 12px; }
.md-section-head p { max-width: 560px; margin: 0 auto; }

/* ---- HERO SECTION ---- */
#hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 80px 5% 60px;
    position: relative;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 70% 50%, rgba(59,130,246,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 600px 400px at 20% 80%, rgba(6,182,212,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { max-width: 640px; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--md-blue-light);
    padding: 7px 18px; border-radius: 100px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeUp 0.6s ease forwards;
}
.hero-h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeUp 0.7s ease forwards;
}
.hero-h1 .shimmer {
    background: linear-gradient(90deg, var(--md-blue), var(--md-cyan), var(--md-violet), var(--md-blue));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}
.hero-sub {
    font-size: 17px;
    color: var(--md-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    font-weight: 300;
    max-width: 540px;
    animation: fadeUp 0.8s ease forwards;
}
.hero-buttons {
    display: flex; gap: 14px; flex-wrap: wrap;
    animation: fadeUp 0.9s ease forwards;
}
.hero-stats {
    display: flex; gap: 36px;
    margin-top: 52px;
    padding-top: 36px;
    border-top: 1px solid var(--md-border);
    animation: fadeUp 1s ease forwards;
}
.hero-stat-val {
    font-size: 28px; font-weight: 800;
    color: var(--md-blue); letter-spacing: -1px;
}
.hero-stat-label { font-size: 12px; color: var(--md-muted); font-weight: 500; margin-top: 2px; }

/* Hero floating dashboard */
.hero-dashboard {
    position: absolute; right: 5%; top: 50%;
    transform: translateY(-50%);
    width: 400px;
    animation: float 5s ease-in-out infinite;
    opacity: 0.65;
}
body.light-mode .hero-dashboard { opacity: 0.4; }
.dashboard-card {
    background: var(--md-navy-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(59,130,246,0.2);
    box-shadow: var(--md-shadow);
}
.dashboard-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.dashboard-dot { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(59,130,246,0.06);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}
.dashboard-row span:first-child { color: var(--md-muted); }
.dashboard-chart { margin-top: 14px; padding: 10px 12px; background: rgba(59,130,246,0.1); border-radius: 6px; }
.dashboard-chart-label { font-size: 10px; color: var(--md-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.dashboard-bars { display: flex; gap: 3px; align-items: flex-end; height: 30px; }
.dashboard-bar { flex: 1; border-radius: 2px 2px 0 0; }

/* Hero orbit rings */
.hero-orb {
    position: absolute; right: 8%; top: 15%;
    width: 360px; height: 360px;
    pointer-events: none; opacity: 0.12;
    animation: float 6s ease-in-out infinite reverse;
}
.hero-orb-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid;
}

/* ---- CARDS GENERAL ---- */
.md-card {
    background: var(--md-navy-card);
    border: 1px solid var(--md-card-border);
    border-radius: var(--md-radius);
    transition: var(--md-transition);
    position: relative;
    overflow: hidden;
}
.md-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.25);
}
.md-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--md-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.md-card:hover::before { opacity: 0.5; }

/* ---- TRUST SECTION ---- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.trust-card { padding: 28px 24px; }
.trust-icon { font-size: 28px; margin-bottom: 14px; }
.trust-title { font-size: 15px; font-weight: 700; color: var(--md-white); margin-bottom: 8px; }
.trust-desc { font-size: 13px; line-height: 1.65; }

/* ---- SERVICES SECTION ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.service-card { padding: 28px 24px; cursor: pointer; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); }
.service-icon { font-size: 32px; margin-bottom: 16px; display: inline-block; transition: transform 0.3s; }
.service-tag {
    position: absolute; top: 14px; right: 14px;
    padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    border: 1px solid currentColor;
}
.service-tag.popular { color: var(--md-blue-light); background: rgba(59,130,246,0.12); }
.service-tag.new     { color: var(--md-cyan);        background: rgba(6,182,212,0.12); }
.service-tag.strategic { color: var(--md-violet);    background: rgba(139,92,246,0.12); }
.service-title { font-size: 16px; font-weight: 700; color: var(--md-white); margin-bottom: 8px; }
.service-short { font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
.service-cta { font-size: 13px; color: var(--md-blue); font-weight: 600; }

/* Service modal */
#service-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}
#service-modal.open { display: flex; }
.modal-inner {
    background: var(--md-navy-card);
    border: 1px solid var(--md-border);
    border-radius: var(--md-radius-lg);
    padding: 40px;
    max-width: 560px; width: 100%;
    animation: fadeUp 0.3s ease;
}
.modal-close {
    float: right; background: none; border: none;
    color: var(--md-muted); font-size: 24px; cursor: pointer;
    line-height: 1;
}

/* ---- PRICING SECTION ---- */
.pricing-toggle {
    display: inline-flex;
    background: rgba(255,255,255,0.06);
    border-radius: 8px; overflow: hidden;
    margin-bottom: 48px;
}
body.light-mode .pricing-toggle { background: rgba(0,0,0,0.06); }
.pricing-toggle button {
    padding: 8px 28px;
    background: transparent;
    color: var(--md-muted);
    border: none; cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: var(--md-transition);
}
.pricing-toggle button.active { background: var(--md-blue); color: white; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 980px; margin: 0 auto;
}
.pricing-card { padding: 32px 28px; }
.pricing-card.highlighted {
    background: linear-gradient(135deg, var(--md-navy-border), var(--md-blue-dark));
    border-color: rgba(59,130,246,0.5);
    box-shadow: 0 20px 60px rgba(59,130,246,0.2);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 18px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    white-space: nowrap;
}
.pricing-badge.highlight { background: var(--md-blue-light); color: #0f172a; }
.pricing-badge.enterprise { background: rgba(30,58,95,1); color: var(--md-blue-light); border: 1px solid var(--md-blue); }
.pricing-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pricing-desc { font-size: 13px; margin-bottom: 20px; }
.pricing-price { margin-bottom: 24px; }
.pricing-price .amount { font-size: 36px; font-weight: 800; color: var(--md-blue); letter-spacing: -1px; }
.pricing-card.highlighted .pricing-price .amount { color: white; }
.pricing-price .period { font-size: 14px; color: var(--md-muted); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--md-muted);
    margin-bottom: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--md-green); font-size: 14px; }
.pricing-card.highlighted .pricing-features li { color: rgba(255,255,255,0.8); }
.pricing-card.highlighted .pricing-features li::before { color: var(--md-blue-light); }
.pricing-cta {
    width: 100%; padding: 12px 0;
    border-radius: 6px;
    border: 1.5px solid var(--md-blue);
    background: transparent; color: var(--md-blue);
    font-weight: 600; font-size: 14px;
    cursor: pointer; transition: var(--md-transition);
}
.pricing-cta:hover { background: rgba(59,130,246,0.1); }
.pricing-card.highlighted .pricing-cta {
    background: rgba(255,255,255,0.15);
    border-color: transparent; color: white;
}
.pricing-card.highlighted .pricing-cta:hover { background: rgba(255,255,255,0.25); }

/* ---- INDUSTRIES SECTION ---- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.industry-card { padding: 24px 20px; cursor: pointer; }
.industry-icon { font-size: 28px; margin-bottom: 12px; }
.industry-title { font-size: 15px; font-weight: 700; color: var(--md-white); margin-bottom: 8px; }
.industry-desc { font-size: 12.5px; line-height: 1.65; }

/* ---- PORTFOLIO SECTION ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.portfolio-card { padding: 0; }
.portfolio-thumb {
    height: 140px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.portfolio-cat {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.4); color: var(--md-blue-light);
    padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
}
.portfolio-thumb-icon { font-size: 48px; opacity: 0.4; }
.portfolio-body { padding: 20px 22px; }
.portfolio-title { font-size: 16px; font-weight: 700; color: var(--md-white); margin-bottom: 4px; }
.portfolio-client { font-size: 12px; color: var(--md-muted); margin-bottom: 10px; }
.portfolio-desc { font-size: 13px; line-height: 1.65; margin-bottom: 14px; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.portfolio-tag {
    font-size: 11px;
    background: rgba(59,130,246,0.1); color: var(--md-blue-light);
    padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.portfolio-result {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    background: rgba(34,197,94,0.08); border-radius: 6px;
    font-size: 13px; color: var(--md-green); font-weight: 600;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
    background: var(--md-navy-card);
    border: 1px solid var(--md-card-border);
    border-radius: 16px;
    padding: 44px 48px;
    position: relative;
    max-width: 900px; margin: 0 auto;
}
.testimonial-quote-mark {
    position: absolute; top: 24px; left: 48px;
    font-size: 56px; color: rgba(59,130,246,0.15);
    font-family: Georgia, serif; line-height: 1;
}
.testimonial-text {
    font-size: 17px; color: var(--md-white);
    line-height: 1.75; font-style: italic;
    margin-bottom: 28px; padding-top: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--md-blue), var(--md-blue-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: white; font-weight: 700;
}
.testimonial-name { font-size: 15px; font-weight: 700; color: var(--md-white); }
.testimonial-role { font-size: 12px; color: var(--md-muted); }
.testimonial-stars { margin-left: auto; color: var(--md-amber); font-size: 14px; }
.testimonial-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 24px;
}
.testimonial-dot {
    height: 8px; border-radius: 100px;
    background: rgba(59,130,246,0.3);
    border: none; cursor: pointer;
    transition: var(--md-transition);
}
.testimonial-dot.active {
    background: var(--md-blue); width: 24px;
}
.testimonial-dot:not(.active) { width: 8px; }

/* ---- CONTACT SECTION ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px; margin: 0 auto;
}
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info-icon {
    width: 40px; height: 40px; border-radius: 8px;
    background: rgba(59,130,246,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.contact-info-label { font-size: 11px; color: var(--md-muted); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
.contact-info-val { font-size: 14px; color: var(--md-white); font-weight: 500; }
.contact-channels { display: flex; gap: 10px; margin-top: 28px; }
.contact-channel-btn {
    padding: 8px 18px;
    background: rgba(59,130,246,0.1);
    border: 1px solid var(--md-border);
    border-radius: 6px; color: var(--md-blue-light);
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--md-transition);
}
.contact-channel-btn:hover { background: rgba(59,130,246,0.2); }
.contact-form-card { padding: 36px 32px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.md-input {
    width: 100%; padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--md-border);
    border-radius: 6px; color: var(--md-white);
    font-size: 14px; font-family: inherit;
    transition: var(--md-transition);
}
body.light-mode .md-input { background: #f8fafc; color: #0f172a; }
.md-input:focus { outline: none; border-color: var(--md-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.md-input::placeholder { color: var(--md-muted); }
textarea.md-input { resize: vertical; }
.contact-submit { width: 100%; }

/* ---- FAQ SECTION ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--md-card-border);
    padding: 20px 0;
}
.faq-question {
    width: 100%; text-align: left;
    background: none; border: none;
    color: var(--md-white); font-size: 15px;
    font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between;
    align-items: center; gap: 16px;
    font-family: inherit;
}
.faq-icon { color: var(--md-blue); font-size: 20px; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { font-size: 14px; line-height: 1.75; padding-top: 14px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---- FOOTER ---- */
#colophon {
    background: #060a14;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 5% 28px;
}
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
.footer-brand-tagline { font-size: 13px; color: #6b7280; line-height: 1.75; max-width: 300px; margin-top: 14px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px; display: flex;
    align-items: center; justify-content: center;
    font-size: 13px; color: #6b7280;
    font-weight: 700; cursor: pointer;
    transition: var(--md-transition);
    text-decoration: none;
}
.footer-social:hover { background: rgba(59,130,246,0.15); color: var(--md-blue-light); }
.footer-col-title { font-size: 11px; font-weight: 700; color: #9ca3af; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col-link { display: block; font-size: 13px; color: #6b7280; margin-bottom: 10px; cursor: pointer; transition: color 0.2s; }
.footer-col-link:hover { color: var(--md-blue-light); }
.footer-bottom {
    max-width: 1280px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: #4b5563; }
.footer-lang { display: flex; gap: 6px; }
.footer-lang button {
    padding: 4px 10px;
    border-radius: 4px; font-size: 11px; font-weight: 600;
    cursor: pointer; transition: var(--md-transition);
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent; color: #6b7280;
}
.footer-lang button.active {
    background: rgba(59,130,246,0.15);
    border-color: rgba(59,130,246,0.4);
    color: var(--md-blue-light);
}

/* ---- FLOATING BUTTONS ---- */
.floating-actions {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 500;
}
.float-btn {
    width: 48px; height: 48px; border-radius: 12px;
    border: none; cursor: pointer; font-size: 20px;
    transition: transform 0.2s; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.float-btn:hover { transform: scale(1.12); }
.float-whatsapp { background: #22c55e; box-shadow: 0 4px 20px rgba(34,197,94,0.3); }
.float-line      { background: #06b6d4; box-shadow: 0 4px 20px rgba(6,182,212,0.3); }

/* ---- CTA BANNER ---- */
.cta-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%);
    padding: 70px 5%;
    text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { color: white; margin-bottom: 14px; position: relative; }
.cta-banner p  { color: rgba(255,255,255,0.75); margin-bottom: 32px; position: relative; }
.cta-banner .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-white {
    background: white; color: var(--md-blue-dark) !important;
    padding: 14px 32px; border-radius: 6px; font-weight: 700;
    font-size: 15px; border: none; cursor: pointer;
    transition: var(--md-transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white !important; border: 1.5px solid rgba(255,255,255,0.3);
    padding: 13px 28px; border-radius: 6px;
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: var(--md-transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ---- ANIMATIONS ---- */
@keyframes float    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes shimmer  { 0%{background-position:200% center} 100%{background-position:-200% center} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes countUp  { from{opacity:0} to{opacity:1} }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- MOBILE HAMBURGER ---- */
.menu-toggle {
    display: none; background: none; border: 1px solid var(--md-border);
    border-radius: 6px; width: 38px; height: 38px;
    cursor: pointer; color: var(--md-muted);
    align-items: center; justify-content: center; font-size: 18px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .hero-dashboard, .hero-orb { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    #primary-menu { display: none; }
    #primary-menu.open {
        display: flex; flex-direction: column;
        position: fixed; top: 68px; left: 0; right: 0;
        background: rgba(10,14,26,0.97);
        backdrop-filter: blur(20px);
        padding: 24px; gap: 20px;
        border-bottom: 1px solid var(--md-border);
    }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .contact-form-row { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .testimonial-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 14px; }
}

/* ---- WORDPRESS DEFAULT STYLES ---- */
.wp-block-image { margin: 24px 0; }
.aligncenter { text-align: center; margin: 0 auto; display: block; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link { position: absolute; top: -100px; }
.skip-link:focus { top: 0; }

/* ============================================================
   FIX: Pricing card visibility (v1.0.1)
============================================================ */
.pricing-card {
    overflow: visible !important; /* allow badge to overflow top */
    margin-top: 14px;             /* space for badge */
}
.pricing-grid {
    align-items: start;
    padding-top: 8px;
}
.pricing-card .pricing-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-white);
    margin-bottom: 8px;
}
.pricing-card .pricing-desc {
    font-size: 13px;
    color: var(--md-muted);
    margin-bottom: 20px;
    min-height: 36px;
}
.pricing-card .pricing-price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}
.pricing-card .pricing-amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--md-blue);
    letter-spacing: -1px;
    line-height: 1;
}
.pricing-card.highlighted .pricing-amount { color: white; }
.pricing-card .pricing-period {
    font-size: 15px;
    color: var(--md-muted);
}
.pricing-card.highlighted .pricing-period { color: rgba(255,255,255,0.7); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features[data-lang] { display: none; }
.pricing-features.active-lang { display: block; }
/* JS will toggle .active-lang; fallback show first one */
.pricing-features:first-of-type { display: block; }

/* ============================================================
   FIX: Service single page — responsive sidebar
============================================================ */
@media (max-width: 900px) {
    .service-single-grid {
        grid-template-columns: 1fr !important;
    }
    .service-single-sidebar {
        position: static !important;
    }
}

/* ============================================================
   LANGUAGE DEFAULT — JS injects an early <style> tag before DOM ready
   that shows JA and hides EN by default. These rules are fallbacks only.
   DO NOT put display rules here — they conflict with the JS system.
============================================================ */
/* No-JS fallback: show Japanese by default */
@media (scripting: none) {
    [data-lang="en"] { display: none !important; }
    [data-lang="ja"] { display: revert !important; }
}
