/* ========================================
   サービスページ共通スタイル
======================================== */

:root {
    --primary-color: #275d46;
    --secondary-color: #022b22;
    --accent-color: #569578;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #495057;
}

/* パンくずリスト - main.cssで統一管理されています */

/* ボタン共通スタイル */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 93, 70, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--light-gray);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* カテゴリーグリッド */
.service-categories-grid { padding: 48px 0 96px; }

.categories-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; align-items: stretch; }
@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px)  { .categories-grid { grid-template-columns: 1fr; } }

/* --- Services list grid (marketing child etc.) --- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; align-items: stretch; grid-auto-flow: row dense; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card { display:flex; flex-direction:column; height: 100%; }
.service-card .service-body { flex:1 1 auto; }

.category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 50px 40px 110px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 16px 16px 0 0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(39, 93, 70, 0.15);
    border-color: var(--accent-color);
}

.category-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 25px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 15px;
}

.category-description {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.category-services {
    text-align: left;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.category-services-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 8px 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li::before {
    content: "→";
    color: var(--accent-color);
    font-weight: bold;
}

.category-link-btn,
.category-card .service-footer {
    display: block;
    text-align: center;
    position: absolute;
    bottom: 35px;
    left: 40px;
    right: 40px;
}

.category-card .service-footer .btn-block {
    width: 100%;
    position: static;
}

.category-card:hover .category-link-btn,
.category-card:hover .service-footer .btn {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* ========================================
   カテゴリーページ (taxonomy-service_category.php)
======================================== */

/* カテゴリーヒーロー */
.service-category-page .category-hero,
.category-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.category-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.category-hero-description {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* サービスグリッド */
.services-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 93, 70, 0.15);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.6;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-link-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-link-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 93, 70, 0.2);
}

/* ========================================
   個別サービスページ (single-service.php)
======================================== */

/* サービスヒーロー */
.single-service-hero {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f7f4 100%);
    padding: 60px 0;
    text-align: center;
}

.single-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.single-hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* サービス詳細 */
.service-detail {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* メインコンテンツ */
.content-main {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.content-main h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.content-main h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.content-main p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.content-main ul,
.content-main ol {
    margin-bottom: 20px;
    padding-left: 30px;
    color: var(--dark-gray);
}

.content-main li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* サービスの特徴セクション */
.service-features-section {
    margin-bottom: 60px;
}

/* (global .section-title is defined in main.css) */

/* 料金セクション */
.service-price-section {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.price-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.price-note {
    font-size: 14px;
    color: var(--gray);
    padding: 15px;
    background: var(--white);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
}

/* 導入事例セクション */
.related-cases-section {
    margin-bottom: 60px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 93, 70, 0.12);
}

.case-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 25px;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-result {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.case-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

/* 関連サービスセクション */
.related-services-section {
    margin-bottom: 60px;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-service-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(39, 93, 70, 0.1);
}

.related-service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-service-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.related-service-title a:hover {
    color: var(--accent-color);
}

.related-service-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.related-service-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.related-service-link:hover {
    color: var(--primary-color);
}

/* サイドバー */
.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.sidebar-cta .cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.sidebar-cta .cta-text {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.sidebar-cta .btn {
    margin-bottom: 10px;
}

.sidebar-cta .btn-secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.sidebar-cta .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.sidebar-services {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-services .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-services .service-list li {
    margin-bottom: 12px;
    padding: 0;
}

.sidebar-services .service-list li::before {
    display: none;
}

.sidebar-services .service-list a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.sidebar-services .service-list a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.sidebar-services .service-list .current a {
    color: var(--primary-color);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

/* 下部CTAセクション */
.service-bottom-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.service-bottom-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-bottom-cta .cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-bottom-cta .cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.service-bottom-cta .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 共通CTAセクション */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* サービス共通: CTAを単一ボタンへ */
.cta-buttons { display:flex; justify-content:center; }
.cta-buttons .btn { background: var(--white); color: var(--primary-color); border: none; }
.cta-buttons .btn:hover { background: var(--light-gray); }

.cta-section .btn-secondary {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .categories-grid,
    .services-grid,
    .features-grid,
    .cases-grid,
    .related-services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-archive .hero-title,
    .category-hero-title,
    .single-hero-title {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .category-card {
        padding: 30px 25px 100px;
    }
    
    .category-link-btn,
    .category-card .service-footer {
        left: 25px;
        right: 25px;
        bottom: 30px;
    }
    
    .content-main {
        padding: 25px;
    }
}

/* ========================================
   Marketing child pages (/service/*)
   HTML classes: category-hero, hero-bg-pattern, category-badge,
   hero-title/hero-subtitle/hero-description, hero-stats, section-header,
   service-card.featured + service-badge, process-*, cases-*
======================================== */

/* Hero */
.category-hero { position: relative; }
.category-hero .hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
    background: radial-gradient(1200px 400px at 20% 20%, var(--white) 0%, transparent 60%),
                radial-gradient(800px 300px at 80% 60%, var(--white) 0%, transparent 70%);
}
.category-badge {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 12px;
    letter-spacing: .08em;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
}
.hero-title { font-weight: 800; }
.hero-description { max-width: 760px; margin: 12px auto 0; line-height: 1.9; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 20px;
    margin-top: 28px;
}
.hero-stats .stat-item {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 14px 16px;
}
.stat-number { display:block; font-size: 28px; font-weight: 800; color:#fff; }
.stat-label  { display:block; font-size: 12px; color:#fff; opacity:.9; }

/* Section header */
.section-header { text-align: center; margin-bottom: 30px; }
.section-subtitle { color: var(--gray); margin-top: 8px; }

/* Services */
.service-card.featured { border: 2px solid var(--accent-color); position: relative; }
.service-badge {
    position: absolute; top: -12px; left: 16px;
    background: var(--accent-color); color: #fff; font-size: 12px; font-weight: 700;
    padding: 6px 10px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.service-header { margin-bottom: 10px; }
.service-body   { flex: 1 1 auto; }
.service-description { color: var(--dark-gray); margin: 10px 0 16px; }
.service-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.price-label { font-size: 12px; color: var(--gray); }
.price-amount { font-size: 20px; font-weight: 800; color: var(--primary-color); }
.service-footer { margin-top: 20px; }

/* Process */
.process-section { padding: 80px 0; background: var(--light-gray); }
.process-timeline { display: grid; gap: 16px; }
.process-item { display: flex; align-items: center; gap: 16px; background:#fff; border-radius: 12px; padding: 18px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); }
.process-number {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; color: #fff; font-weight: 800; display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}
.process-content h3 { font-size: 18px; color: var(--primary-color); margin-bottom: 4px; }
.process-content p  { font-size: 14px; color: var(--dark-gray); margin: 0; }

/* Cases */
.cases-section { padding: 80px 0; }
.case-industry { display: inline-block; font-size: 12px; color: var(--accent-color); border:1px solid var(--accent-color); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.case-results { display: grid; gap: 8px; margin: 12px 0 16px; }
.result-item { display:flex; align-items:center; gap: 8px; }
.result-item .result-label { font-size: 12px; color: var(--gray); }
.result-item .result-value { font-size: 14px; color: var(--dark-gray); }
.result-item.highlight .result-value { color: var(--accent-color); font-weight: 700; }
.cases-cta { text-align: center; margin-top: 20px; }

/* Responsive (marketing) */
@media (max-width: 992px) {
    .hero-stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .service-card.featured .service-badge { left: 12px; top: -10px; }
}

/* Hide popularity badge across service pages */
.service-card .service-badge { display: none !important; }

/* Guard: prevent first-child margin-collapsing inside content container */
.service-page-content > .container { display: flow-root; }
.service-page-content .section-header { margin-top: 0; }
.service-page-content .section-title { margin-top: 0; }

/* ========================================
   Service child fixed pages (managed in admin)
   HTML blocks: service-detail/detail-grid/content-block/pricing/faq/sidebar/bottom-cta
   Purpose: ensure /service/marketing/* fixed pages get proper styling from service.css
======================================== */

/* Layout */
.service-detail { padding: 80px 0; background: var(--light-gray); }
.service-detail .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.service-detail .detail-grid { display: grid !important; grid-template-columns: minmax(0,1fr) 350px; gap: 60px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 40px; grid-column: 1; }
.detail-sidebar { grid-column: 2; }

/* Content blocks */
.content-block { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.content-title { font-size: 32px; font-weight: 700; color: var(--primary-color); margin-bottom: 30px; padding-bottom: 15px; border-bottom: 3px solid var(--accent-color); }
.content-body p { margin-bottom: 20px; line-height: 1.8; color: var(--dark-gray); }

/* Steps */
.support-steps { display: flex; flex-direction: column; gap: 30px; }
.step-item { display: flex; gap: 30px; padding: 30px; background: var(--light-gray); border-radius: 12px; transition: all .3s ease; }
.step-item:hover { background: linear-gradient(135deg, rgba(86,149,120,.05) 0%, rgba(39,93,70,.05) 100%); transform: translateX(5px); }
.step-number { flex-shrink: 0; width: 60px; height: 60px; background: var(--accent-color); color: var(--white); border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size: 24px; font-weight: 700; }
.step-content { flex: 1; }
.step-title { font-size: 20px; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.step-description { color: var(--dark-gray); margin-bottom: 15px; }
.step-list { list-style: none; padding-left: 0; }
.step-list li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--dark-gray); font-size: 14px; }
.step-list li::before { content: "・"; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 30px; }
.feature-card { padding: 30px; background: var(--light-gray); border-radius: 12px; position: relative; transition: all .3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,.08); background: var(--white); }
.feature-number { position: absolute; top: -15px; left: 30px; width: 40px; height: 40px; background: var(--primary-color); color: var(--white); border-radius: 50%; display:flex; align-items:center; justify-content:center; font-size: 18px; font-weight: 700; }
.feature-title { font-size: 20px; font-weight: 700; color: var(--primary-color); margin: 10px 0 15px; }
.feature-description { color: var(--dark-gray); font-size: 14px; line-height: 1.7; }

/* Pricing */
.pricing-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 30px; margin-bottom: 30px; }
.pricing-card { background: var(--white); border: 2px solid var(--gray-medium); border-radius: 12px; overflow: hidden; transition: all .3s ease; position: relative; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.pricing-card.featured { border-color: var(--accent-color); }
.pricing-badge { position: absolute; top: 20px; right: 20px; background: var(--warning-color, #ffc107); color: var(--secondary-color); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pricing-header { padding: 30px; background: var(--light-gray); text-align: center; }
.pricing-name { font-size: 20px; font-weight: 700; color: var(--primary-color); margin-bottom: 15px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.price-amount { font-size: 36px; font-weight: 700; color: var(--primary-color); }
.price-unit { font-size: 16px; color: var(--gray); }
.pricing-body { padding: 30px; }
.pricing-description { color: var(--dark-gray); margin-bottom: 20px; text-align: center; font-size: 14px; }
.pricing-features { list-style: none; }
.pricing-features li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--dark-gray); font-size: 14px; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }
.pricing-note { padding: 20px; background: rgba(39,93,70,.05); border-left: 3px solid var(--accent-color); border-radius: 4px; font-size: 14px; color: var(--gray); }

/* Cases */
.case-slider { background: var(--white); border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.case-link { color: var(--accent-color); text-decoration: none; font-weight: 600; font-size: 14px; }
.case-link:hover { color: var(--primary-color); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-medium); border-radius: 8px; overflow: hidden; }
.faq-item.active { border-color: var(--accent-color); }
.faq-question { width: 100%; padding: 20px; background: var(--white); border: none; display:flex; justify-content: space-between; align-items:center; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--primary-color); text-align:left; }
.faq-question:hover { background: var(--light-gray); }
.faq-icon { font-size: 24px; color: var(--accent-color); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 20px 20px; color: var(--dark-gray); font-size: 14px; line-height: 1.7; }

/* Sidebar */
.detail-sidebar { position: sticky; top: var(--header-h); display: flex; flex-direction: column; gap: 30px; }
body.admin-bar .detail-sidebar { top: calc(var(--header-h) + var(--adminbar-h)); }
.sidebar-cta { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,.08); }
.sidebar-cta .cta-title { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.sidebar-cta .cta-text { font-size: 14px; margin-bottom: 20px; opacity: .95; line-height: 1.7; }
.sidebar-cta .btn { margin-bottom: 10px; }
.sidebar-cta .btn:last-child { margin-bottom: 0; }
.sidebar-section { background: var(--white); border-radius: 12px; padding: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.sidebar-title { font-size: 18px; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-color); }

.related-services { list-style: none; }
.related-services li { margin-bottom: 12px; }
.related-services a { color: var(--dark-gray); text-decoration: none; font-size: 14px; display:block; padding: 8px 12px; border-radius: 4px; transition: all .3s ease; }
.related-services a:hover { background: var(--light-gray); color: var(--primary-color); padding-left: 18px; }
.related-services .current a { background: var(--accent-color); color: var(--white); font-weight: 600; }

.resource-list { display: flex; flex-direction: column; gap: 15px; }
.resource-item { display: flex; gap: 15px; padding: 15px; background: var(--light-gray); border-radius: 8px; text-decoration: none; transition: all .3s ease; }
.resource-item:hover { background: linear-gradient(135deg, rgba(86,149,120,.1) 0%, rgba(39,93,70,.1) 100%); transform: translateX(5px); }
.resource-icon { font-size: 32px; flex-shrink: 0; }
.resource-content h4 { font-size: 14px; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; }
.resource-content p { font-size: 12px; color: var(--gray); }

/* Bottom CTA */
.bottom-cta { background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%); color: var(--white); padding: 80px 0; text-align: center; }
.bottom-cta .cta-content { max-width: 800px; margin: 0 auto; }
.bottom-cta .cta-buttons { display: flex; gap: 20px; justify-content: center; }
.bottom-cta .btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.bottom-cta .btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* Responsive */
@media (max-width: 1024px) {
  .service-detail .detail-grid { grid-template-columns: 1fr; }
  .detail-main, .detail-sidebar { grid-column: auto; }
  .detail-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 30px; }
  .pricing-table { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .step-item { flex-direction: column; text-align: center; }
  .bottom-cta .cta-buttons { flex-direction: column; align-items: center; }
  .bottom-cta .cta-buttons .btn { width: 100%; max-width: 300px; }
}

/* ========================================
   サービス詳細ページ（固定ページ本文用）
======================================== */

/* 共通セクション */
.page-content .service-detail-section {
    margin-bottom: 80px;
}

.page-content .service-detail-section:last-child {
    margin-bottom: 0;
}

/* セクションタイトル */
.page-content .service-detail-section > h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.page-content .service-detail-section > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* 課題リスト */
.page-content .problems-list {
    max-width: 800px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.page-content .problems-list li {
    position: relative;
    padding: 16px 16px 16px 40px;
    margin-bottom: 16px;
    background: #f8faf9;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.page-content .problems-list li::before {
    content: '✓';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.page-content .problems-list li:hover {
    background: #eef6f2;
    transform: translateX(5px);
}

/* できることグリッド */
.page-content .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.page-content .capability-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.page-content .capability-item:hover {
    box-shadow: 0 8px 30px rgba(39, 93, 70, 0.12);
    transform: translateY(-5px);
}

.page-content .capability-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
}

.page-content .capability-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-content .capability-item ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

.page-content .capability-item ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.page-content .capabilities-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 30px;
    font-style: italic;
}

/* 支援フロー */
.page-content .flow-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.page-content .flow-step {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.page-content .flow-step:hover {
    box-shadow: 0 8px 30px rgba(39, 93, 70, 0.12);
    transform: translateY(-5px);
}

.flow-step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(39, 93, 70, 0.3);
}

.page-content .flow-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0 16px;
}

.page-content .flow-step p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* 提供メニューカード */
.page-content .subservices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.subservice-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e8ecea;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-content .subservice-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(39, 93, 70, 0.12);
    transform: translateY(-5px);
}

.page-content .subservice-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.page-content .subservice-card p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-content .subservice-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.page-content .subservice-card a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* 最終CTAセクション */
.page-content .final-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 80px;
}

.page-content .final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,117.3C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.page-content .final-cta-section > * {
    position: relative;
    z-index: 1;
}

.final-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.page-content .final-cta-section h2::after {
    display: none;
}

.final-cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.final-cta-section .btn {
    background: #ffffff;
    color: var(--primary-color);
    padding: 16px 48px;
    font-size: 1.1rem;
}

.page-content .final-cta-section .btn:hover {
    background: #f8faf9;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .page-content .capabilities-grid,
    .page-content .flow-steps,
    .page-content .subservices-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-content .service-detail-section {
        margin-bottom: 60px;
    }
    
    .page-content .service-detail-section > h2 {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }
    
    .page-content .capability-item,
    .page-content .flow-step,
    .page-content .subservice-card {
        padding: 24px 20px;
    }
    
    .page-content .flow-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -15px;
        left: 20px;
    }
    
    .page-content .final-cta-section {
        padding: 60px 20px;
        margin-top: 60px;
    }
    
    .page-content .final-cta-section h2 {
        font-size: 1.6rem;
    }
    
    .page-content .final-cta-section p {
        font-size: 1rem;
    }
    
    .page-content .final-cta-section .btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
}
