/* Article-specific styles */

/* Article Hero Section */
.article-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 10px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-excerpt {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Article Content */
.article-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.main-content {
    max-width: none;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.content-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 30px 0 15px 0;
}

.content-section h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 25px 0 10px 0;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section ul, .content-section ol {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 25px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.info-box h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.highlight-box {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.highlight-box h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Comparison Table */
.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Step Boxes */
.step-box {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content h3 {
    margin-top: 0;
    color: #333;
}

/* CTA Buttons */
.cta-button {
    text-align: center;
    margin: 30px 0;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

.final-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 40px 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-article {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-2px);
}

.related-article a {
    text-decoration: none;
    color: inherit;
}

.related-article h4 {
    color: #333;
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.related-date {
    font-size: 0.8rem;
    color: #999;
}

/* Category Links */
.category-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.category-link i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-box {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .comparison-table {
        font-size: 0.8rem;
        margin: 20px -15px;
    }
    
    .comparison-table table {
        min-width: 800px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .comparison-table th {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .comparison-table td {
        word-break: break-word;
        hyphens: auto;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 関連記事セクション */
.related-articles-section {
    background: #f8f9fa;
    padding: 3rem 0;
    border-top: 1px solid #e9ecef;
}

.related-articles-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-articles-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-articles-header h2 i {
    color: #667eea;
}

.related-category-name {
    color: #667eea;
    font-weight: 700;
}

.related-articles-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.related-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.85rem;
}

.related-article-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
}

.related-article-date {
    color: #999;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 1.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-description {
    color: #666;
    line-height: 1.6;
    margin: 0.5rem 1.5rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 1rem;
}

.related-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.related-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.related-article-card:hover .related-read-more {
    color: #5a67d8;
}

.related-read-more i {
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-read-more i {
    transform: translateX(3px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .related-articles-section {
        padding: 2rem 0;
    }
    
    .related-articles-header h2 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .related-articles-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 関連記事が1件の場合の調整 */
.related-articles-list:has(.related-article-card:only-child) {
    max-width: 400px;
}

/* 関連記事が2件の場合の調整 */
.related-articles-list:has(.related-article-card:nth-child(2):last-child) {
    max-width: 800px;
}

/* 関連記事がない場合のスタイル */
.no-related-articles {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-related-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-related-articles h4 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

.no-related-articles p {
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.browse-categories {
    margin-top: 30px;
}

.browse-categories p {
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
}

.browse-categories .category-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.browse-categories .category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    font-weight: 500;
    transition: all 0.3s ease;
}

.browse-categories .category-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* セカンダリボタンの修正 */
.btn-secondary {
    background: #6c757d !important;
    color: white !important;
    border: 2px solid #6c757d !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* CTAボタンの間隔調整 */
.cta-button .btn + .btn {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .cta-button .btn + .btn {
        margin-top: 0;
        margin-left: 15px;
    }
}

/* CTAボタンの整列修正 */
.cta-button {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    align-items: center;
}

.cta-button .btn {
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .cta-button {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .cta-button .btn {
        width: auto;
        min-width: 280px;
    }
}

/* セカンダリボタンの色修正 */
.btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border: 2px solid #6c757d !important;
}

.btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
    color: white !important;
}

/* サイドバー関連記事のスタイル */
.no-related-message {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
}

.other-categories {
    text-align: center;
}

.other-categories p {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.category-link-small {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    background-color: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.category-link-small:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

/* デスクトップ・モバイル表示切り替え */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

.mobile-cards {
    display: none !important;
}

.comparison-table {
    display: block !important;
}

/* 強制的にモバイル表示を適用 */
@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-cards {
        display: block !important;
    }
    
    /* テーブルを完全に非表示 */
    .comparison-table,
    .comparison-table table {
        display: none !important;
    }
    
    .comparison-table {
        display: none !important;
    }
    
    /* カードを確実に表示 */
    .comparison-cards {
        display: block !important;
    }
}

/* モバイル用カード形式スタイル */
.comparison-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.ecosystem-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    border-left: 6px solid #667eea;
    margin: 0 10px 25px 10px;
    font-size: 16px;
    line-height: 1.6;
}

.ecosystem-card.rakuten {
    border-left-color: #bf0000;
}

.ecosystem-card.au-ponta {
    border-left-color: #ff6600;
}

.ecosystem-card.d-point {
    border-left-color: #0099ff;
}

.ecosystem-card.paypay {
    border-left-color: #00a95c;
}

.ecosystem-card.t-point {
    border-left-color: #cc0066;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.ecosystem-badge {
    background: rgba(255,255,255,0.25);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-content {
    padding: 25px;
}

.card-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.card-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-item .label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-item .value {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

/* 追加のレスポンシブ対応 */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .comparison-table {
        margin: 20px -20px;
        font-size: 0.7rem;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 6px;
        font-size: 0.7rem;
    }
    
    .comparison-table th {
        font-size: 0.65rem;
    }
    
    .step-box {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .step-number {
        align-self: flex-start;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .info-box,
    .highlight-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .cta-button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* final-cta内のCTAボタンスタイル */
.final-cta .cta-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-bottom: 15px;
}

.final-cta .cta-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.final-cta .cta-button .cta-icon {
    font-size: 1.2rem;
}

.final-cta .cta-note {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .final-cta {
        padding: 30px 20px;
        margin: 30px 0;
    }
    
    .final-cta .cta-button a {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
    
    .final-cta .cta-note {
        font-size: 0.85rem;
        margin-top: 15px;
    }
}


/* 株の種類記事専用スタイル */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.sector-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.theme-item {
    background: #f8fafc;
    color: #475569;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 400;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.theme-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* バッジスタイル */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.standard { background: #28a745; color: white; }
.badge.priority { background: #ffc107; color: #212529; }
.badge.dual-class { background: #6f42c1; color: white; }
.badge.no-voting { background: #6c757d; color: white; }
.badge.domestic { background: #007bff; color: white; }
.badge.overseas { background: #17a2b8; color: white; }
.badge.depositary { background: #fd7e14; color: white; }
.badge.china { background: #dc3545; color: white; }
.badge.large-cap { background: #28a745; color: white; }
.badge.mid-cap { background: #ffc107; color: #212529; }
.badge.small-cap { background: #dc3545; color: white; }
.badge.defensive { background: #28a745; color: white; }
.badge.cyclical { background: #fd7e14; color: white; }
.badge.growth { background: #17a2b8; color: white; }
.badge.value { background: #6f42c1; color: white; }
.badge.dividend { background: #28a745; color: white; }
.badge.dividend-growth { background: #20c997; color: white; }
.badge.factor { background: #6c757d; color: white; }
.badge.standard-unit { background: #007bff; color: white; }
.badge.fractional { background: #28a745; color: white; }
.badge.price-level { background: #6c757d; color: white; }
.badge.ipo { background: #e83e8c; color: white; }
.badge.po { background: #fd7e14; color: white; }
.badge.buyback { background: #20c997; color: white; }
.badge.wrong { background: #dc3545; color: white; }
.badge.growth-strategy { background: #17a2b8; color: white; }
.badge.income-strategy { background: #28a745; color: white; }
.badge.diversified-strategy { background: #6f42c1; color: white; }
.badge.low-cost { background: #28a745; color: white; }
.badge.point-benefit { background: #ff6b35; color: white; }
.badge.rakuten { background: #bf0000; color: white; }
.badge.emaxis { background: #0066cc; color: white; }
.badge.us-focused { background: #1e40af; color: white; }
.badge.global { background: #059669; color: white; }
.badge.developed { background: #7c3aed; color: white; }
.badge.emerging { background: #dc2626; color: white; }
.badge.japan { background: #dc2626; color: white; }
.badge.balanced-strategy { background: #f59e0b; color: white; }

/* カード表示（PC・モバイル共通） */
.mobile-cards {
    display: block;
}

.stock-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border-left: 4px solid #667eea;
}

.stock-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: none;
}

.stock-card .card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.stock-card .card-content {
    padding: 20px;
}

.stock-card .card-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.stock-card .card-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.stock-card .card-content li {
    margin-bottom: 5px;
}

/* カードヘッダーの色分け */
.card-header.legal-type { border-left: 4px solid #007bff; }
.card-header.market-type { border-left: 4px solid #28a745; }
.card-header.size-type { border-left: 4px solid #ffc107; }
.card-header.sector-type { border-left: 4px solid #17a2b8; }
.card-header.style-type { border-left: 4px solid #6f42c1; }
.card-header.liquidity-type { border-left: 4px solid #fd7e14; }
.card-header.event-type { border-left: 4px solid #e83e8c; }

/* 誤解カード */
.stock-card.misconception {
    border: 2px solid #dc3545;
    background: #fff5f5;
}

.stock-card.misconception .card-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-left: none;
}

/* 戦略カード */
.stock-card.strategy {
    border: 2px solid #28a745;
    background: #f8fff9;
}

.stock-card.strategy .card-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-left: none;
}

/* 要約ボックス */
.summary-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.summary-box ul {
    margin: 0;
    padding-left: 20px;
}

.summary-box li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

/* 警告ボックス */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* ポイントボックス */
.point-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.point-box p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

/* 比較表コンテナ */
.comparison-table-container {
    display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comparison-table-container {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    
    .sector-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .sector-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .theme-item {
        padding: 12px;
        font-size: 13px;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .summary-box {
        padding: 20px;
    }
    
    .summary-box li {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .sector-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .sector-item {
        padding: 8px;
        font-size: 11px;
    }
    
    .theme-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .summary-box {
        padding: 15px;
    }
    
    .summary-box li {
        font-size: 13px;
    }
    
    .stock-card .card-header {
        padding: 12px 15px;
    }
    
    .stock-card .card-header h4 {
        font-size: 1rem;
    }
    
    .stock-card .card-content {
        padding: 15px;
    }
    
    .badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* 投資信託ガイド記事用スタイル */
.brand-type { border-left: 4px solid #667eea; }
.fund-type { border-left: 4px solid #28a745; }

.recommendation-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    color: #1e293b;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 5px solid #28a745;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.recommendation-item {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.recommendation-item h5 {
    margin: 0 0 8px 0;
    color: #059669;
}

.choice-guide {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.choice-guide p {
    margin: 5px 0;
    font-weight: 600;
    color: #4c1d95;
}

.final-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #f59e0b;
}

.final-message h4 {
    color: #92400e;
    margin-bottom: 15px;
}

.final-message p {
    margin: 8px 0;
    color: #451a03;
    font-weight: 500;
}

.example-box {
    background: rgba(139, 92, 246, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #8b5cf6;
}

.example-box h4 {
    color: #5b21b6;
    margin-bottom: 10px;
}


/* 副業税務ガイド記事専用スタイル */

/* ベネフィットカード */
.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.benefit-card ul {
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.benefit-card li {
    margin-bottom: 8px;
}

/* ステップガイド */
.step-guide {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-content ul {
    margin: 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
}

/* シミュレーションボックス */
.simulation-box {
    background: #f8f9fa;
    border: 2px solid #667eea;
    color: #2c3e50;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.simulation-box h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.simulation-case {
    background: #ffffff;
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.simulation-case:last-child {
    margin-bottom: 0;
}

.simulation-case h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.simulation-case ul {
    margin: 0;
    padding-left: 20px;
}

.simulation-case li {
    margin-bottom: 5px;
    color: #495057;
}

/* タイムライン */
.timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-left: 20px;
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Q&Aセクション */
.qa-section {
    margin: 30px 0;
}

.qa-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.question {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    margin: 0;
}

.question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.answer {
    padding: 20px;
    background: white;
}

.answer p {
    margin: 0;
}

/* チェックリスト */
.checklist {
    margin: 30px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.checklist-item:hover {
    background: #e9ecef;
}

.checklist-item i {
    color: #28a745;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* フローチャート */
.flow-chart {
    margin: 30px 0;
    text-align: center;
}

.flow-step {
    background: #f8f9fa;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.flow-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.flow-step h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.flow-arrow {
    font-size: 2rem;
    color: #667eea;
    margin: 10px 0;
}

/* アクションチェックリスト */
.action-checklist {
    margin: 30px 0;
}

.action-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.action-item:hover {
    background: #e9ecef;
}

.action-item input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.action-item label {
    cursor: pointer;
    flex: 1;
}

/* ソリューションボックス */
.solution-box {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.solution-box h3 {
    color: #155724;
    margin-bottom: 15px;
}

/* ティップスボックス */
.tips-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.tips-box h3 {
    color: #856404;
    margin-bottom: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .benefit-cards {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        margin-left: 15px;
    }
    
    .flow-step {
        max-width: 100%;
    }
}

/* 生命保険とインデックス投資比較記事専用スタイル */

/* 警告ボックス */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box h3 {
    color: #856404;
    margin-bottom: 10px;
}

/* 計算ボックス */
.calculation-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.calculation-box h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-label {
    font-weight: 500;
    color: #495057;
}

.calc-value {
    font-weight: bold;
    color: #2c3e50;
}

.calc-result {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result .calc-value.highlight {
    color: #dc3545;
    font-size: 1.1rem;
}

/* リスク警告 */
.risk-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.risk-alert p {
    margin: 0;
    color: #721c24;
}

/* 投資シミュレーション */
.investment-simulation {
    background: #e8f5e8;
    border: 2px solid #28a745;
    color: #155724;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.investment-simulation h3 {
    color: #155724;
    margin-bottom: 25px;
    text-align: center;
}

.simulation-conditions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.condition-item {
    background: #ffffff;
    border: 1px solid #28a745;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.condition-label {
    font-weight: 500;
    color: #155724;
}

.condition-value {
    font-weight: bold;
    color: #155724;
}

.simulation-result {
    text-align: center;
    background: #ffffff;
    border: 2px solid #28a745;
    padding: 25px;
    border-radius: 12px;
}

.result-arrow {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 15px;
}

.result-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

.result-note {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* 比較結果 */
.comparison-result {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.comparison-result h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.comparison-value.positive {
    color: #28a745;
    font-weight: bold;
}

.comparison-diff {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diff-value {
    color: #155724;
    font-weight: bold;
    font-size: 1.2rem;
}

.conclusion {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 8px;
}

/* 例示ボックス */
.example-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.example-box h3 {
    color: #1565c0;
    margin-bottom: 20px;
}

.example-calculation {
    margin-bottom: 20px;
}

.example-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #bbdefb;
}

.example-item:last-child {
    border-bottom: none;
}

.example-label {
    font-weight: 500;
    color: #1976d2;
}

.example-value {
    font-weight: bold;
    color: #0d47a1;
}

.example-value.highlight {
    color: #f57c00;
    font-size: 1.1rem;
}

.example-conclusion {
    background: rgba(33, 150, 243, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

/* 重要な洞察 */
.key-insight {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
}

.key-insight h3 {
    color: #f57c00;
    margin-bottom: 15px;
}

.key-insight p {
    margin: 0;
    font-size: 1.1rem;
    color: #e65100;
}

/* 最適戦略 */
.optimal-strategy {
    margin: 30px 0;
}

.optimal-strategy h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.strategy-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.strategy-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.strategy-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.strategy-table tr:last-child td {
    border-bottom: none;
}

.strategy-table tr:nth-child(even) {
    background: #f8f9fa;
}

.strategy-total {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.strategy-total p {
    margin: 0;
    color: #155724;
    font-weight: 500;
}

/* 卒業への道のり */
.graduation-path {
    margin: 30px 0;
}

.graduation-path h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.path-step {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.step-content p {
    margin: 0;
    color: #6c757d;
}

.path-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: #667eea;
    margin: 10px 0;
}

.final-strategy {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
}

.final-strategy p {
    margin: 0;
    color: #155724;
    font-weight: 500;
}

/* 最終比較テーブル */
.final-comparison-container {
    overflow-x: auto;
    margin: 25px 0;
}

.final-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.final-comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: 600;
}

.final-comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.final-comparison-table tr:last-child td {
    border-bottom: none;
}

.final-comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.final-comparison-table td:first-child {
    font-weight: 600;
    background: #e9ecef;
    text-align: left;
}

/* 結論ボックス */
.conclusion-box {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
}

.conclusion-box h3 {
    color: white;
    margin-bottom: 15px;
}

.conclusion-box p {
    margin: 0;
    font-size: 1.1rem;
}

/* アクションステップ */
.action-steps {
    margin: 30px 0;
}

.action-step {
    display: flex;
    align-items: flex-start;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.action-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.action-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.action-content p {
    margin: 0;
    color: #6c757d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .simulation-conditions {
        grid-template-columns: 1fr;
    }
    
    .calc-item,
    .comparison-item,
    .example-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .path-step,
    .action-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon,
    .action-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .strategy-table-container,
    .final-comparison-container {
        font-size: 0.9rem;
    }
    
    .result-value {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-amount {
        font-size: 1.5rem;
    }
}


/* Manus副業記事専用スタイル */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.business-idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.business-idea-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.business-idea-card:hover {
    border-color: #28a745;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.1);
}

.business-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.business-idea-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.3rem;
}

.business-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.business-steps {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.business-steps h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1rem;
}

.business-steps ol {
    margin: 0;
    padding-left: 20px;
}

.business-steps li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.collaboration-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.collaboration-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.collaboration-item h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.collaboration-item ul {
    margin: 0;
    padding-left: 20px;
}

.collaboration-item li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.collaboration-arrow {
    font-size: 2rem;
    color: #667eea;
    text-align: center;
}

.step-guide {
    margin: 30px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: #6c757d;
    line-height: 1.6;
}

.income-simulation {
    background: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.income-simulation h3 {
    color: #155724;
    margin-bottom: 20px;
    text-align: center;
}

.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.simulation-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.simulation-item h4 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 1rem;
}

.simulation-item p {
    color: #495057;
    font-weight: 600;
    margin: 0;
}

.simulation-total {
    text-align: center;
    font-size: 1.5rem;
    color: #155724;
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #28a745;
}

.simulation-note {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 15px;
}

.cta-box-special {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.cta-box-special h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-box-special p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-button {
    margin: 20px 0;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 10px;
}

.final-message {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.final-message h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.final-cta {
    background: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 30px 0;
}

.final-cta h3 {
    color: #155724;
    margin-bottom: 15px;
}

.final-cta p {
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .business-idea-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .collaboration-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .collaboration-arrow {
        transform: rotate(90deg);
    }
    
    .simulation-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        align-self: flex-start;
    }
}


/* コンパクトな機能紹介カード */
.feature-cards-compact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.feature-card-compact {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

.feature-card-compact:hover {
    background: #e9ecef;
}

.feature-icon-compact {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content-compact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.feature-content-compact strong {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.feature-content-compact span {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .feature-cards-compact {
        gap: 0.6rem;
    }
    
    .feature-card-compact {
        padding: 0.8rem;
    }
    
    .feature-icon-compact {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
}

/* ManusのCTAボタンスタイル */
.manus-cta-button {
    text-align: center;
    margin: 2rem 0;
}

.cta-button-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 250px;
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.cta-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
}

.special-cta-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.special-cta-box h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.cta-button-container {
    margin: 1.5rem 0;
}

.special-cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.special-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.special-cta-button .cta-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.special-cta-button .cta-arrow {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.cta-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cta-button-primary {
        min-width: 200px;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .special-cta-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .special-cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* スマホ版のはみ出し対策 */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .article-content {
        padding: 0;
    }
    
    .content-section {
        padding: 1rem 0;
    }
    
    .comparison-table,
    .mobile-cards,
    .feature-cards-compact,
    .income-simulation,
    .special-cta-box {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .cta-button-primary {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
    
    .special-cta-button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* モバイル版の追加はみ出し対策 */
@media (max-width: 768px) {
    /* 全体のコンテナ幅制限 */
    .container {
        max-width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* テーブルのはみ出し防止 */
    .comparison-table table {
        width: 100%;
        table-layout: fixed;
        word-wrap: break-word;
    }
    
    /* カードのはみ出し防止 */
    .mobile-cards .mobile-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 0 15px 0;
        padding: 15px;
    }
    
    /* 副業アイデアカードのはみ出し防止 */
    .side-business-ideas {
        width: 100%;
        max-width: 100%;
    }
    
    .side-business-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 0 20px 0;
    }
    
    /* CTAボタンのはみ出し防止 */
    .final-cta,
    .cta-button,
    .manus-cta-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cta-button a,
    .manus-cta-button a {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: center;
        display: block;
    }
    
    /* 画像のはみ出し防止 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 長いテキストの改行 */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    p, li, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
