/* --- Reset & Base --- */
:root {
    --bg-dark: #101010;
    --bg-light: #1c1c1c;
    --border-color: #2d2d2d;
    --text-primary: #F0F2F5;
    --text-secondary: #a8b3cf;
    --primary-blue: #007acc;
    --primary-blue-hover: #2aa0ff;
    --pro-color: #9d6ee3; /* Purple for Pro badge */
    --font-family-base: 'Inter', 'Noto Sans JP', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-primary); font-family: var(--font-family-base); line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- Utility & Layout --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-small { max-width: 800px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; border-bottom: 1px solid var(--border-color); }
section:last-of-type { border-bottom: none; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 16px; color: var(--text-primary); }
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- Buttons & Badges --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: none; cursor: pointer; }
.btn-primary { background-color: var(--primary-blue); color: #fff; }
.btn-primary:hover { background-color: var(--primary-blue-hover); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 122, 204, 0.25); }
.btn-secondary { background-color: var(--bg-light); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background-color: var(--border-color); transform: translateY(-2px); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.pro-badge { background-color: var(--pro-color); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 0.8em; font-weight: 700; vertical-align: middle; margin-right: 8px; }
.btn.is-disabled { background-color: var(--bg-light); color: #6c757d; border-color: var(--border-color); cursor: not-allowed; opacity: 0.6; }
.btn.is-disabled:hover { transform: none; box-shadow: none; }


/* --- Header --- */
.site-header { padding: 20px 0; background-color: rgba(16, 16, 16, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
.logo-text { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--text-secondary); text-decoration: none; font-size: 1rem; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--text-primary); }

/* --- Hero Section --- */
.hero-section { padding: 80px 0; border: none; }
.hero-title { font-size: 2.8rem; font-weight: 700; line-height: 1.4; margin-bottom: 20px; max-width: 900px; margin-left: auto; margin-right: auto;}
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 40px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.hero-image-wrapper { max-width: 1000px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); }
.hero-image { width: 100%; display: block; }

/* --- Problem/Solution Section --- */
.problem-solution-section { background-color: var(--bg-light); }
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.problem-card, .solution-card { padding: 30px; border-radius: 12px; }
.problem-card { background-color: rgba(220, 53, 69, 0.05); border: 1px solid rgba(220, 53, 69, 0.2); }
.problem-card h3 { color: #f0a3ab; margin-bottom: 15px; }
.problem-card ul { list-style: none; padding-left: 0; }
.problem-card li { margin-bottom: 10px; padding-left: 25px; position: relative; color: var(--text-secondary); }
.problem-card li::before { content: '✗'; color: #dc3545; position: absolute; left: 0; }
.solution-card { background-color: rgba(40, 167, 69, 0.05); border: 1px solid rgba(40, 167, 69, 0.2); }
.solution-card h3 { color: #88d498; margin-bottom: 15px; }
.solution-card p { color: var(--text-secondary); line-height: 1.8; }
.solution-card strong { color: var(--text-primary); }

/* --- Features Section --- */
.features-grid-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-item { background: var(--bg-light); padding: 30px; border-radius: 12px; text-align: center; }
.feature-item svg { color: var(--primary-blue); margin-bottom: 15px; }
.feature-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-item p { color: var(--text-secondary); }

/* --- Pricing Section --- */
.pricing-section { background-color: var(--bg-dark); }
.pricing-table-wrapper { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td { padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.pricing-table thead th { background-color: var(--bg-dark); font-size: 1.2rem; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody td:first-child { text-align: left; font-weight: 500; }
.check-mark { font-size: 1.5rem; color: #28a745; }
.cross-mark { font-size: 1.5rem; color: #dc3545; }
.pro-column { background-color: rgba(157, 110, 227, 0.08); }
.pricing-table tfoot td { border-top: 1px solid var(--border-color); }
.price { font-size: 2rem; font-weight: 700; margin-bottom: 5px; }
.tax-note, .license-note { font-size: 0.9rem; color: var(--text-secondary); }
.license-note { margin-bottom: 15px; }

/* --- How to Buy Section --- */
.how-to-buy-section { background-color: var(--bg-light); }
.steps-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.step { flex: 1; text-align: center; }
.step-icon { width: 60px; height: 60px; background: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto 20px; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-secondary); }
.step-arrow { font-size: 2.5rem; color: var(--border-color); margin-top: 25px; }

/* --- For Business Section --- */
.for-business-section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.for-business-section p { max-width: 600px; margin: 0 auto 30px; color: var(--text-secondary); }

/* --- FAQ Section --- */
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; transition: background-color 0.3s ease; }
.faq-item[open] { background-color: #22252e; }
.faq-item summary { font-size: 1.2rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.8rem; font-weight: 300; color: var(--primary-blue); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-top: 20px; border-top: 1px solid var(--border-color); margin-top: 20px; color: var(--text-secondary); }

/* --- Footer --- */
.site-footer { background-color: var(--bg-dark); border-top: 1px solid var(--border-color); padding: 50px 0; color: var(--text-secondary); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-info { display: flex; flex-direction: column; gap: 15px; }
.copyright { font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-blue); }
.footer-info .logo { display: flex; align-items: center; gap: 12px; }
.footer-info .logo img { height: 48px; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 1.8rem; line-height: 1.5; }
    .hero-title br { display: none; }
    .solution-grid { grid-template-columns: 1fr; }
    .steps-container { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
    .main-nav { display: none; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-info { align-items: center; }
    .footer-links { justify-content: center; }

    .pricing-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .pricing-table {
        min-width: 540px;
    }
}

/* --- Subpage Layout --- */
.subpage-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.subpage-main {
    flex-grow: 1;
    padding: 80px 0;
}

.subpage-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.subpage-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.subpage-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.subpage-content h2:first-of-type {
    margin-top: 0;
}

.subpage-content p, .subpage-content li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.subpage-content ol {
    padding-left: 20px;
}

.subpage-content li {
    margin-bottom: 10px;
}

.subpage-content a {
    color: var(--primary-blue);
    text-decoration: none;
}
.subpage-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .subpage-content {
        padding: 25px;
    }
    .subpage-title {
        font-size: 2rem;
    }
}