/* =========================================
   1. Variables & Base Styles
   ========================================= */
:root {
    --bg-color: #0f172a;       /* メイン背景: 濃紺 */
    --bg-card: #1e293b;        /* カード背景 */
    --text-main: #f8fafc;      /* テキスト: 白 */
    --text-sub: #94a3b8;       /* テキスト: 薄グレー */
    --accent: #3b82f6;         /* アクセント: テックブルー */
    --accent-hover: #2563eb;
    --code-bg: #020617;        /* コードブロック背景 */
    --gradient: linear-gradient(90deg, #60a5fa, #34d399);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin-top: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. Components
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-lg { padding: 16px 48px; font-size: 1.1rem; }
.btn-full { display: block; width: 100%; text-align: center; }

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* =========================================
   3. Header
   ========================================= */
.header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 40px; width: 40px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.1); }
.logo { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: white; }

/* =========================================
   4. Hero Section
   ========================================= */
.hero { text-align: center; padding: 120px 0 100px; }
.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-sub);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.02);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* --- Conceptual Diagram --- */
.diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    gap: 15px;
    flex-wrap: wrap;
}
.diagram-box {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    width: 150px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s;
}
.diagram-box:hover { transform: translateY(-5px); }
.diagram-box.maestr {
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    width: 180px;
    height: 140px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    z-index: 10;
}
.diagram-box.workflow, .diagram-box.ai {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}
.diagram-box .label { font-size: 0.7rem; color: var(--text-sub); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.diagram-box .name { font-weight: 700; font-size: 1.25rem; }
.arrow { font-size: 1.5rem; color: var(--text-sub); font-family: monospace; }
.browser-ui {
    width: 80%;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.browser-ui .bar {
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.diagram-note { font-size: 0.85rem; color: var(--text-sub); margin-top: 20px; opacity: 0.8; }
.mobile-only { display: none; }

/* =========================================
   5. Workflow (GitOps) Section
   ========================================= */
.section { padding: 100px 0; }
.bg-darker { background-color: rgba(0,0,0,0.2); }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 60px; }
.section-subtitle { text-align: center; color: var(--text-sub); max-width: 700px; margin: -40px auto 60px; font-size: 1rem; }
.subtitle-text { font-size: 1.2rem; color: var(--text-sub); font-weight: 400; display: block; margin-top: 10px; }

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.step-card.highlight {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}
.step-card h3 { font-size: 1.3rem; margin-bottom: 15px; position: relative; }
.step-card p { font-size: 0.9rem; color: var(--text-sub); flex-grow: 1; margin-bottom: 20px; }

.code-preview {
    background: var(--code-bg);
    padding: 10px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #a5b4fc;
    border: 1px solid rgba(255,255,255,0.1);
}
.code-preview code { display: block; margin-bottom: 4px; }
.icon-display {
    background: rgba(255,255,255,0.05);
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}
.step-arrow { display: flex; align-items: center; font-size: 1.5rem; color: var(--text-sub); }

/* =========================================
   6. Persona Grid
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.persona-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
}
.persona-icon { font-size: 2.5rem; margin-bottom: 15px; }
.persona-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.persona-card p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.7; margin-bottom: 0; }
.persona-card strong { color: var(--text-main); display: block; margin-bottom: 5px; }

/* =========================================
   7. E2E Split Section
   ========================================= */
.bg-blue-gradient {
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(30, 58, 138, 0.15) 50%, rgba(15, 23, 42, 1) 100%);
}
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-content { flex: 1; }
.split-visual { flex: 1; display: flex; justify-content: center; }
.split-content h2 { font-size: 2.2rem; margin-bottom: 20px; font-weight: 700; }
.split-content p { color: var(--text-sub); font-size: 1.05rem; margin-bottom: 30px; }
.check-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
    color: var(--text-sub);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.check-list strong { color: var(--text-main); }

/* Fake Test Report UI */
.test-report-ui {
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}
.report-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}
.status-pass { color: #34d399; font-weight: 700; }
.report-item { margin-bottom: 8px; display: flex; justify-content: space-between; color: var(--text-sub); }
.report-item .time { color: #64748b; font-size: 0.75rem; }

/* =========================================
   8. Business Use Cases (Cards)
   ========================================= */
.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
.card h3 { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--text-sub); font-size: 0.95rem; margin: 0; }

/* =========================================
   9. Pricing & Services
   ========================================= */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; max-width: 900px; margin: 0 auto; }
.service-card {
    background: linear-gradient(145deg, #1e293b, #172033);
    display: flex; gap: 20px; align-items: flex-start;
}
.service-icon { font-size: 2rem; background: rgba(59, 130, 246, 0.1); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0; }
.service-content h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-main); }
.service-content p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.6; margin: 0; }

.pricing-wrapper { display: flex; gap: 30px; align-items: stretch; justify-content: center; }
.pricing-card { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 40px; flex: 1; }
.main-plan { border: 2px solid var(--accent); background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 41, 59, 0) 100%); }

.plan-price { margin: 20px 0; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-size: 2.5rem; font-weight: 800; }
.plan-price .period { color: var(--text-sub); font-size: 0.9rem; }
.plan-features li { margin-bottom: 12px; display: flex; align-items: center; font-size: 0.95rem; }
.check { margin-right: 10px; color: var(--accent); }
.note { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 1px 5px; border-radius: 4px; margin-left: auto; }

/* Options - Grid Layout Fix */
.options h3 { font-size: 1.3rem; margin-bottom: 20px; }
.option-item {
    display: grid;
    grid-template-columns: 1fr auto; /* 左側可変、右側自動 */
    grid-template-rows: auto auto;   /* 2行 */
    gap: 4px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
    align-items: center;
}
.option-item:last-child { border: none; }
.opt-name { grid-column: 1 / 2; grid-row: 1 / 2; font-weight: 500; font-size: 1rem; }
.opt-price {
    grid-column: 2 / 3; grid-row: 1 / 2;
    background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 4px;
    font-size: 0.85rem; font-weight: 700; white-space: nowrap;
}
.opt-detail {
    grid-column: 1 / 3; grid-row: 2 / 3;
    font-size: 0.8rem; color: var(--text-sub); display: block; margin-top: 4px; line-height: 1.5;
}

/* =========================================
   10. Final CTA & Footer
   ========================================= */
.cta-section { padding: 80px 0; }
.cta-box {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.cta-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; color: white; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 40px; }
.cta-box .btn-primary { background-color: white; color: var(--accent); }
.cta-box .btn-primary:hover { background-color: #f1f5f9; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.site-footer {
    background-color: #020617;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 0 30px;
    font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.logo-img-sm { height: 30px; width: 30px; border-radius: 50%; }
.footer-logo-text { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.footer-desc { color: var(--text-sub); line-height: 1.8; }
.footer-nav h4 { font-size: 1rem; margin-bottom: 20px; color: white; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a { color: var(--text-sub); transition: color 0.2s; }
.footer-nav ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; color: #475569; font-size: 0.8rem; }

/* =========================================
   11. Mobile Responsive
   ========================================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .workflow-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); justify-content: center; margin: 10px 0; }
    .split-layout { flex-direction: column; }
    .pricing-wrapper { flex-direction: column; }
    .header-container { flex-direction: row; }
    .btn-lg { width: 100%; padding: 15px; }
    .diagram-container { flex-direction: column; gap: 10px; }
    .arrow { transform: rotate(90deg); margin: 5px 0; }
    .diagram-box.maestr { width: 150px; height: 110px; }
    .mobile-only { display: inline; }
    
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
}