/* ランキングページ専用スタイル */

/* ブレッドクラム */
.breadcrumb {
    padding: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

/* ページタイトル */
.page-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

/* イントロセクション */
.intro {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

/* 比較表 */
.comparison-table {
    margin-bottom: 4rem;
}

.table-wrapper {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #667eea;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background-color: #f8f9fa;
}

.rank-cell {
    font-weight: bold;
    color: #667eea;
}

.highlight {
    color: #ff4757;
    font-weight: bold;
}

/* 詳細ランキング */
.service-detail {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    border-bottom-right-radius: 10px;
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}

.service-detail h3 {
    padding: 2rem 2rem 1rem 2rem;
    margin: 0;
    font-size: 1.5rem;
}

.service-content {
    padding: 0 2rem 2rem 2rem;
}

.check-list {
    list-style: none;
    margin: 1rem 0;
}

.check-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* キャンペーンボックス */
.campaign-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe4b5 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.campaign-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.campaign-price {
    font-size: 1.8rem;
    color: #ff4757;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* メリット・デメリット */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pros, .cons {
    padding: 1rem;
    border-radius: 8px;
}

.pros {
    background-color: #e8f5e9;
}

.cons {
    background-color: #ffebee;
}

.pros h5 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.cons h5 {
    color: #c62828;
    margin-bottom: 0.5rem;
}

.pros ul, .cons ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

/* CTAボタン */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-align: center;
    margin-top: 1rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* FAQ */
.faq {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

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

.faq-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* アクティブナビゲーション */
nav a.active {
    color: #667eea;
    font-weight: bold;
}

/* 目的別おすすめセクション */
.purpose-recommendation {
    margin-top: 3rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.purpose-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.purpose-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.purpose-card p {
    margin: 0.5rem 0;
}

.purpose-card p strong {
    color: #333;
    font-size: 1.1rem;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .campaign-price {
        font-size: 1.5rem;
    }
    
    .purpose-grid {
        grid-template-columns: 1fr;
    }
}

/* 料金相場ガイド */
.price-guide {
    margin-bottom: 3rem;
}

/* チェックリスト */
.checklist {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.checklist-content h4 {
    color: #667eea;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.checklist-content h4:first-child {
    margin-top: 0;
}

.checklist-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.checklist-content li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

/* 市場データグリッド */
.market-data {
    margin-bottom: 3rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.data-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.data-card h3 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.data-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 0;
}

.data-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 成功のヒント */
.success-tips {
    margin-top: 3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.tip-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* 保険タイプグリッド */
.insurance-types {
    margin-bottom: 3rem;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.type-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.type-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.type-card p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* 選択のヒント */
.selection-tips {
    margin-top: 3rem;
}

/* 投資スタイルグリッド */
.investment-styles {
    margin-bottom: 3rem;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.style-card {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}

.style-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.style-card p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* 税制優遇制度比較 */
.tax-advantaged {
    margin: 3rem 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #43a047;
}

.comparison-item h3 {
    color: #43a047;
    margin-bottom: 1rem;
}

.comparison-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* ビギナーガイド */
.beginner-guide {
    margin: 3rem 0;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.step h4 {
    color: #43a047;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* エリア情報セクション */
.area-info {
    margin: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.info-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* おすすめサービス */
.recommended-services {
    margin: 3rem 0;
}

.service-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.service-category h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.service-category > p {
    margin-bottom: 2rem;
    color: #666;
}

/* ミニランキング */
.mini-ranking {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-rank-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mini-rank {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    margin-right: 1.5rem;
    min-width: 50px;
    text-align: center;
    font-size: 0.9rem;
}

.mini-content {
    flex: 1;
}

.mini-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.mini-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.price {
    color: #43a047;
    font-weight: bold;
}

.mini-cta {
    background-color: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.mini-cta:hover {
    background-color: #764ba2;
}

/* エリア詳細 */
.area-details {
    margin: 3rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.detail-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.detail-card li:last-child {
    border-bottom: none;
}

/* 関連ページ */
.related-pages {
    margin: 3rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.related-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.related-card p {
    color: #666;
    margin: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .mini-rank-item {
        flex-direction: column;
        text-align: center;
    }
    
    .mini-rank {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .mini-content {
        margin-bottom: 1rem;
    }
}

/* プレミアム情報セクション */
.premium-info {
    margin: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: white;
}

.premium-info h2 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.premium-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.premium-card p {
    line-height: 1.6;
    opacity: 0.9;
}