/**
 * 創業融資代行ナビ - サイト固有CSS
 * テーマカラーのみ上書き。共通スタイルは hojokin-base/assets/css/base.css に従う。
 */

:root {
    --accent-primary:     #059669;
    --accent-primary-rgb: 5, 150, 105;
    --accent-hover:       #047857;
    --accent-dark:        #065f46;
    --accent-light:       #10b981;
    --accent-bg:          #f0fdf4;
    --accent-secondary:   #2563eb;

    /* ヒーローグラデーション */
    --hero-start: #064e3b;
    --hero-mid:   #065f46;
    --hero-end:   #059669;

    /* ハイライトカラー */
    --highlight-gold: #f59e0b;
}

/* ============================================================
   地域ページ共通スタイル
   ============================================================ */

.daikou-content {
    max-width: 860px;
    margin: 0 auto;
}

.daikou-section {
    margin-bottom: 48px;
}

.daikou-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-dark);
    border-bottom: 2px solid var(--accent-bg);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.daikou-section p {
    line-height: 1.8;
    margin-bottom: 12px;
    color: #374151;
}

.daikou-section ul,
.daikou-section ol {
    padding-left: 1.4em;
    line-height: 1.8;
    color: #374151;
}

.daikou-section li {
    margin-bottom: 6px;
}

/* 比較テーブル */
.daikou-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.daikou-compare-table th,
.daikou-compare-table td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.daikou-compare-table thead tr {
    background: var(--accent-bg);
    color: var(--accent-dark);
    font-weight: 700;
}

.daikou-compare-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

/* FAQアコーディオン */
.daikou-faq {
    list-style: none;
    padding: 0;
    margin: 0;
}

.daikou-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.daikou-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    cursor: pointer;
    border: none;
    text-align: left;
    gap: 12px;
}

.daikou-faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    line-height: 1;
}

.daikou-faq-item.is-open .daikou-faq-q::after {
    content: '−';
}

.daikou-faq-a {
    display: none;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #374151;
    background: #fff;
}

.daikou-faq-item.is-open .daikou-faq-a {
    display: block;
}

/* CTA */
.daikou-cta {
    background: var(--accent-bg);
    border-radius: 12px;
    padding: 36px 32px;
    text-align: center;
    margin-top: 48px;
}

.daikou-cta h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.daikou-cta p {
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.7;
}

.daikou-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 市区町村グリッド */
.area-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.area-city-grid a {
    display: block;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    text-decoration: none;
    transition: background 0.15s;
}

.area-city-grid a:hover {
    background: var(--accent-bg);
    text-decoration: underline;
}

/* 都道府県一覧グリッド */
.area-pref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.area-pref-card {
    display: block;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.area-pref-card:hover {
    background: var(--accent-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
}

.area-region-block {
    margin-bottom: 36px;
}

.area-region-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent-bg);
}

/* 融資タイプカード */
.loan-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.loan-type-card {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.loan-type-card:hover {
    box-shadow: 0 4px 16px rgba(5,150,105,0.12);
    border-color: var(--accent-primary);
    text-decoration: none;
}

.loan-type-card-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.loan-type-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.loan-type-card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

/* 専門家タイプ比較 */
.expert-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.expert-type-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.expert-type-card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-bg);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 10px;
}

.expert-type-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.expert-type-card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 10px;
}

.expert-type-card-merit {
    font-size: 0.8rem;
    color: var(--accent-dark);
    font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .daikou-cta {
        padding: 24px 16px;
    }
    .daikou-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .area-city-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .area-pref-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .loan-type-grid {
        grid-template-columns: 1fr 1fr;
    }
    .expert-type-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================================
   AIデータセンター投資ナビ - 追加スタイル
   =========================================================== */

/* シミュレーター */
.simulator-box,
.simulator-full {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    max-width: 880px;
    margin: 0 auto;
}
.simulator-full .simulator-result {
    margin-top: 32px;
}
.simulator-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.simulator-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.simulator-input-row label {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}
.simulator-input-row label small {
    display: block;
    font-weight: 400;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 2px;
}
.simulator-input-row input[type=range] {
    width: 100%;
}
.simulator-out {
    align-self: flex-end;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color, #6366f1);
    font-feature-settings: 'tnum';
}
.simulator-result {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid #e5e7eb;
}
.simulator-result h2 {
    font-size: 1.25rem;
    margin: 0 0 16px;
}
.simulator-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.simulator-result-row:last-child {
    border-bottom: none;
}
.simulator-result-label {
    color: #4b5563;
    font-size: 0.9rem;
}
.simulator-result-value {
    font-weight: 700;
    color: #111827;
    font-feature-settings: 'tnum';
    font-size: 1.05rem;
}
.simulator-result-total {
    background: #f0f1ff;
    border-radius: 8px;
    margin-top: 12px;
    padding: 14px 16px;
}
.simulator-result-total .simulator-result-label {
    color: #111827;
    font-weight: 700;
}
.simulator-result-total .simulator-result-value {
    color: var(--accent-color, #6366f1);
    font-size: 1.4rem;
}
.simulator-note {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 16px;
    line-height: 1.6;
}

/* 制度（seido）グリッド */
.seido-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.seido-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.seido-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.1);
    border-color: var(--accent-color, #6366f1);
}
.seido-card-primary {
    border: 2px solid var(--accent-color, #6366f1);
    background: linear-gradient(135deg, #eef0ff 0%, #fff 100%);
}
.seido-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-color, #6366f1);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    align-self: flex-start;
}
.seido-card h2,
.seido-card h3 {
    font-size: 1.15rem;
    margin: 0;
}
.seido-tag {
    color: var(--accent-color, #6366f1);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 4px 0;
}
.seido-desc {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.seido-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
}
.seido-link {
    color: var(--accent-color, #6366f1);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 8px;
}

/* リスクグリッド */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.risk-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
}
.risk-card-warn {
    border-color: #fca5a5;
    background: #fff7f7;
}
.risk-card .risk-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.risk-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: #111827;
}
.risk-card p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}
.risk-section {
    margin-bottom: 48px;
}
.risk-section h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* 業者詳細 */
.company-detail {
    max-width: 960px;
    margin: 0 auto;
}
.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}
.company-header h1 {
    margin: 0 0 6px;
}
.company-group {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0 0 12px;
}
.company-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f59e0b;
    font-weight: 700;
}
.company-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.8rem;
    border-radius: 999px;
}
.company-overview,
.company-features,
.company-pros-cons,
.company-cta,
.company-other {
    margin-bottom: 36px;
}
.pros-cons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pros, .cons {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
}
.pros h3 {
    color: #059669;
    margin: 0 0 12px;
    font-size: 1.05rem;
}
.cons h3 {
    color: #dc2626;
    margin: 0 0 12px;
    font-size: 1.05rem;
}
.pros ul, .cons ul {
    margin: 0;
    padding-left: 20px;
}
.pros li, .cons li {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.92rem;
}

/* 記事カード（TOP・記事詳細関連） */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.article-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.08);
    border-color: var(--accent-color, #6366f1);
}
.article-card-cat {
    color: var(--accent-color, #6366f1);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.article-card-title {
    font-size: 1.05rem;
    margin: 0;
    color: #111827;
    line-height: 1.5;
}
.article-card-desc {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}
.article-card-link {
    color: var(--accent-color, #6366f1);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 4px;
}

/* 記事詳細 */
.article-body {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}
.article-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
    margin-bottom: 24px;
}
.article-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-color, #6366f1);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 12px;
}
.article-title {
    font-size: 1.7rem;
    line-height: 1.4;
    margin: 0 0 14px;
}
.article-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.85rem;
}
.article-meta time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-lead {
    color: #4b5563;
    line-height: 1.8;
    margin-top: 18px;
    font-size: 0.95rem;
}
.article-content h2 {
    font-size: 1.35rem;
    margin: 32px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--accent-color, #6366f1);
}
.article-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 10px;
}
.article-content p, .article-content li {
    line-height: 1.85;
    color: #374151;
}
.article-content ul, .article-content ol {
    padding-left: 22px;
    margin: 14px 0;
}
.article-content a {
    color: var(--accent-color, #6366f1);
    text-decoration: underline;
}
.article-cta {
    background: linear-gradient(135deg, #eef0ff 0%, #fff 100%);
    border: 1px solid var(--accent-color, #6366f1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    text-align: center;
}
.article-cta h3 {
    margin: 0 0 8px;
}
.related-articles {
    margin-top: 48px;
}
.related-articles .section-title {
    margin-bottom: 16px;
}

/* アラート */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin: 24px 0;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.alert h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.alert ul, .alert ol {
    margin: 8px 0 0;
    padding-left: 22px;
}
.alert p {
    margin: 0;
    line-height: 1.7;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.faq-item[open] {
    border-color: var(--accent-color, #6366f1);
}
.faq-question {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    color: #111827;
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-q-icon {
    color: var(--accent-color, #6366f1);
    font-weight: 800;
    flex-shrink: 0;
}
.faq-answer {
    padding: 0 20px 16px 50px;
    color: #4b5563;
    line-height: 1.8;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color, #6366f1) 0%, var(--accent-hover, #4f46e5) 100%);
    color: #fff;
}
.cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.cta-title {
    font-size: 1.6rem;
    margin: 0 0 16px;
    line-height: 1.4;
}
.cta-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0 0 24px;
}
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 業者一覧テーブルレスポンシブ */
.cost-table-wide {
    min-width: 980px;
}

/* レスポンシブ追加 */
@media (max-width: 768px) {
    .pros-cons-row {
        grid-template-columns: 1fr;
    }
    .company-header {
        flex-direction: column;
    }
    .article-body {
        padding: 20px;
    }
    .article-title {
        font-size: 1.35rem;
    }
    .simulator-box, .simulator-full {
        padding: 20px;
    }
    .cta-title {
        font-size: 1.3rem;
    }
}

/* 記事監修者ボックス */
.article-author-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f8f9ff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 18px;
}
.article-author-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-color, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-author-meta {
    flex: 1;
    min-width: 0;
}
.article-author-name {
    font-weight: 800;
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.article-author-credential {
    color: var(--accent-color, #6366f1);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.article-author-desc {
    color: #4b5563;
    font-size: 0.83rem;
    line-height: 1.6;
}
