/* ==========================================================================
   相続・事業承継対策ページ専用スタイル
   ========================================================================== */

/* ==========================================================================
   ページヘッダー（共通スタイル）
   ========================================================================== */
.page-header {
    position: relative;
    padding: 100px 0 60px;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 61, 92, 0.85) 0%, rgba(46, 82, 102, 0.85) 100%);
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-title {
    text-align: center;
}

.page-title .title-en {
    display: block;
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    opacity: 0.8;
    font-weight: 400;
}

.page-title .title-ja {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.breadcrumb {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* ==========================================================================
   サービス詳細セクション
   ========================================================================== */
.service-detail-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.service-block {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-header {
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.service-header .service-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
}

.service-content {
    padding: 35px;
}

.lead-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}

.service-description {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.service-description p {
    margin-bottom: 18px;
}

/* サービスブロック（相続・事業承継用） */
.service-block.inheritance .service-header {
    background: linear-gradient(135deg, #7b1fa2 0%, #6a1b9a 100%);
}

.service-block.succession .service-header {
    background: linear-gradient(135deg, #00796b 0%, #00695c 100%);
}

/* 比較メッセージ */
.comparison-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.comparison-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid;
}

.comparison-item.good {
    background: #f1f8f4;
    border-color: #4caf50;
}

.comparison-item.bad {
    background: #fef5f5;
    border-color: #f44336;
}

.comparison-icon {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.comparison-item.good .comparison-icon {
    color: #4caf50;
}

.comparison-item.bad .comparison-icon {
    color: #f44336;
}

.comparison-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.comparison-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.comparison-vs {
    font-size: 24px;
    font-weight: 700;
    color: #999;
}

/* 税務調査警告 */
.tax-investigation-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 25px 0;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.warning-header svg {
    color: #f9a825;
    flex-shrink: 0;
}

.warning-header h4 {
    color: #f57f17;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.tax-investigation-warning p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* アプローチグリッド */
.our-service-approach {
    margin: 35px 0;
}

.our-service-approach h4 {
    text-align: center;
    color: #333;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.approach-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.approach-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.approach-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #7b1fa2;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.approach-item h5 {
    color: #333;
    font-size: 15px;
    margin: 15px 0 10px;
    font-weight: 600;
}

.approach-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* コミットメントメッセージ */
.commitment-message {
    background: linear-gradient(135deg, #f3f4f8 0%, #f8f9fc 100%);
    border-radius: 8px;
    padding: 20px 25px;
    margin: 25px 0;
    text-align: center;
}

.commitment-message p {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    font-weight: 500;
}

/* 重要な検討事項 */
.important-consideration {
    margin: 35px 0;
}

.important-consideration h4 {
    text-align: center;
    color: #333;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.consideration-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.consideration-item {
    text-align: center;
}

.item-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #00796b;
}

.consideration-item h5 {
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.consideration-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* デリケートメッセージ */
.delicate-message {
    background: #f5f5f5;
    border-left: 3px solid #00796b;
    padding: 18px 25px;
    margin: 25px 0;
    border-radius: 6px;
}

.delicate-message p {
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* 承継ソリューション */
.succession-solutions {
    margin-top: 35px;
}

.succession-solutions h4 {
    text-align: center;
    color: #333;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* ソリューションカード */
.solution-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.solution-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #00796b;
}

.card-header {
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.card-icon {
    font-size: 32px;
}

.card-header h5 {
    color: #333;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.solution-title {
    color: #00796b;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* プロセスフロー */
.our-process {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
}

.our-process h5 {
    text-align: center;
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flow-item {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #e8e8e8;
    position: relative;
}

.flow-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00796b;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.flow-item p {
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 0;
}

.flow-arrow {
    color: #00796b;
    font-size: 20px;
    font-weight: 700;
}

/* ==========================================================================
   CTAセクション
   ========================================================================== */
.service-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a3d5c 0%, #2e5266 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 18px;
    line-height: 1.5;
    font-weight: 600;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #4ade80;
    color: #1a3d5c;
}

.cta-button.primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #1a3d5c;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-title .title-ja {
        font-size: 28px;
    }
    
    .page-title .title-en {
        font-size: 12px;
    }
    
    .service-header {
        padding: 20px;
        gap: 15px;
    }
    
    .service-heading {
        font-size: 20px;
    }
    
    .service-content {
        padding: 25px 20px;
    }
    
    .comparison-message {
        flex-direction: column;
        gap: 20px;
    }
    
    .comparison-vs {
        transform: rotate(90deg);
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .consideration-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .solution-cards {
        grid-template-columns: 1fr;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 30px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}