html { scroll-behavior: smooth; }
:root {
    --primary-color: #0b3b60;
    --secondary-color: #e67e22;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #fff;
    --border-color: #ddd;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Header */
.seo-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo a {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}
.header-tel {
    text-align: right;
}
.target-badge {
    font-size: 11px;
    color: var(--secondary-color);
    margin: 0 0 2px 0;
    font-weight: bold;
}
.tel-link {
    font-size: 18px;
    font-weight: bold;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1000px;
    margin: 15px auto;
    padding: 0 20px;
    font-size: 12px;
}
.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #999;
}

/* Main */
.seo-main {
    background: var(--white);
    padding-bottom: 80px;
}
.section {
    padding: 50px 20px;
}
.section.bg-light {
    background: #f4f7f6;
}
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.section-desc {
    text-align: center;
    margin-bottom: 40px;
}

/* FV */
.fv {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
.fv h1 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.fv .highlight {
    color: var(--secondary-color);
}
.fv-lead {
    font-size: 16px;
}

/* Area Grid */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.area-group-title {
    font-size: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.area-list a {
    display: block;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    transition: 0.2s;
}
.area-list a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Industry Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.industry-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.industry-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}
.industry-pain-points {
    font-size: 14px;
    color: #666;
}

/* Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.comparison-table th, .comparison-table td {
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}
.comparison-table th {
    background: #f4f7f6;
    font-weight: bold;
}

/* Fixed CTA */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    text-align: center;
    z-index: 100;
}
.cta-text {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 5px 0;
}
.btn-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
    animation: pulse-orange 2s infinite;
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.6);
    color: var(--white);
    animation: none;
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* EFO Validation Styles */
.form-group.has-error input, .form-group.has-error select {
    border-color: #d32f2f !important;
    background-color: #ffebee !important;
}
.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 5px;
    font-weight: bold;
    display: none;
}
.form-group.has-error .error-message {
    display: block;
}
.cta-note {
    font-size: 10px;
    color: #999;
    margin: 5px 0 0 0;
}

@media (max-width: 768px) {
    .cta-text, .cta-note {
        display: none;
    }
    .fixed-cta {
        padding: 8px 15px;
    }
}

/* Footer */
.seo-footer {
    background: #333;
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}
.footer-links a {
    color: var(--white);
}
.copyright {
    font-size: 12px;
    margin-top: 20px;
    color: #999;
}

/* Base & Forms */
.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}
.form-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .form-wrapper {
        padding: 20px 16px;
    }
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    .header-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .fv {
        padding: 40px 16px;
    }
    .fv h1, .fv-section h1 {
        font-size: 22px !important;
    }
    .section, .content-section, .compare-section, .fv-section {
        padding: 36px 16px !important;
    }
    .comparison-table, .compare-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .fixed-cta {
        padding: 10px;
    }
    .btn-cta {
        width: 100%;
        max-width: 360px;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    .area-list, .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--primary-color);
}
.faq-q {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: var(--text-color);
    list-style: none;
    position: relative;
    background: #fdfdfd;
    transition: background 0.2s;
}
.faq-q::-webkit-details-marker {
    display: none;
}
.faq-q:hover {
    background: var(--bg-color);
}
.faq-icon-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}
.faq-text-q {
    flex-grow: 1;
    line-height: 1.4;
    padding-right: 20px;
}
.faq-toggle-icon {
    color: var(--primary-color);
    transition: transform 0.3s;
}
.faq-item[open] .faq-toggle-icon {
    transform: rotate(180deg);
}
.faq-a {
    display: flex;
    align-items: flex-start;
    padding: 0 20px 20px 20px;
    color: #555;
    background: var(--white);
    border-top: 1px dashed #eee;
    margin-top: 5px;
    padding-top: 15px;
    animation: fadeIn 0.4s ease;
}
.faq-icon-a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}
.faq-text-a {
    line-height: 1.8;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
