/**
 * サービスバナーセクション スタイルシート
 * wp-content/themes/ryuji01/css/components/service-banner.css
 * 
 * 3色のカラーバリエーション付き
 */

/* ==========================================
   カラー定義
   ========================================== */
   :root {
    /* プライマリー（顧問契約） - ブルー系 */
    --service-primary-color: #1e3a8a;
    --service-primary-light: #3b82f6;
    --service-primary-bg: #dbeafe;
    
    /* セカンダリー（HR） - グリーン系 */
    --service-secondary-color: #166534;
    --service-secondary-light: #22c55e;
    --service-secondary-bg: #dcfce7;
    
    /* ターシャリー（アカデミー） - オレンジ系 */
    --service-tertiary-color: #c2410c;
    --service-tertiary-light: #fb923c;
    --service-tertiary-bg: #fed7aa;
}

/* ==========================================
   サービスバナーセクション
   ========================================== */
.service-banner-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* 装飾的な背景 */
.service-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.service-banner-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* セクションヘッダー */
.service-banner-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.service-banner-section .section-label {
    display: inline-block;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-banner-section .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.service-banner-section .section-description {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

/* バナーグリッド */
.service-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

/* バナーコンテナ */
.service-banner-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* バナー本体 */
.service-banner {
    background-color: #fff;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
}

/* バナー本体 */
.service-three-banner {
    background-color: #fff;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
}

.service-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* カラーバリエーション */
.service-banner-primary {
    border-top: 4px solid var(--service-primary-light);
}

.service-banner-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.25), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

.service-banner-secondary {
    border-top: 4px solid var(--service-secondary-light);
}

.service-banner-secondary:hover {
    box-shadow: 0 20px 25px -5px rgba(34, 197, 94, 0.25), 0 10px 10px -5px rgba(34, 197, 94, 0.04);
}

.service-banner-tertiary {
    border-top: 4px solid var(--service-tertiary-light);
}

.service-banner-tertiary:hover {
    box-shadow: 0 20px 25px -5px rgba(251, 146, 60, 0.25), 0 10px 10px -5px rgba(251, 146, 60, 0.04);
}

/* バナーボディ */
.service-banner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* バナー番号 */
.service-banner-number {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
}

.service-banner-circle {
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: inline-block;
    line-height: 24px;
    font-size: 12px;
    height: 28px;
    text-align: center;
    width: 28px;
}

/* カラー別の番号スタイル */
.service-banner-primary .service-banner-number {
    border-color: var(--service-primary-light);
    color: var(--service-primary-color);
}

.service-banner-secondary .service-banner-number {
    border-color: var(--service-secondary-light);
    color: var(--service-secondary-color);
}

.service-banner-tertiary .service-banner-number {
    border-color: var(--service-tertiary-light);
    color: var(--service-tertiary-color);
}

/* カテゴリー */
.service-banner-category {
    display: block;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 20px 0 0;
    text-transform: uppercase;
    font-weight: 600;
}

.service-banner-primary .service-banner-category {
    color: var(--service-primary-light);
}

.service-banner-secondary .service-banner-category {
    color: var(--service-secondary-light);
}

.service-banner-tertiary .service-banner-category {
    color: var(--service-tertiary-light);
}

/* タイトル */
.service-banner-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0 16px 0;
    color: #1f2937;
}

/* 説明文 */
.service-banner-description {
    display: block;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #6b7280;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* フッター部分 */
.service-banner-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 20px;
}

/* 特徴タグ */
.service-banner-features {
    display: flex;
    gap: 10px;
}

.feature-item {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
}

/* Readリンク */
.service-banner-read {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.service-banner-primary .service-banner-read {
    color: var(--service-primary-light);
    background: var(--service-primary-bg);
}

.service-banner-primary .service-banner-read:hover {
    background: var(--service-primary-light);
    color: white;
}

.service-banner-secondary .service-banner-read {
    color: var(--service-secondary-light);
    background: var(--service-secondary-bg);
}

.service-banner-secondary .service-banner-read:hover {
    background: var(--service-secondary-light);
    color: white;
}

.service-banner-tertiary .service-banner-read {
    color: var(--service-tertiary-light);
    background: var(--service-tertiary-bg);
}

.service-banner-tertiary .service-banner-read:hover {
    background: var(--service-tertiary-light);
    color: white;
}

.service-banner-read svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-banner-read:hover svg {
    transform: translateX(4px);
}

/* タグ */
.service-banner-tag {
    position: absolute;
    top: 30px;
    right: 30px;
    font-weight: 700;
    font-size: 11px;
}

.service-banner-primary .service-banner-tag {
    background: var(--service-primary-light);
    color: white;
    border: none;
}

.service-banner-secondary .service-banner-tag {
    background: var(--service-secondary-light);
    color: white;
    border: none;
}

.service-banner-tertiary .service-banner-tag {
    background: var(--service-tertiary-light);
    color: white;
    border: none;
}

/* メディア（画像） */
.service-banner-media {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    margin-top: auto;
}

.service-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: none; /* 画像がない場合はアイコンを表示 */
}

.service-banner-image[src] {
    display: block;
}

.service-banner:hover .service-banner-image {
    transform: scale(1.05);
}

/* アイコン表示 */
.service-banner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.service-banner-primary .service-banner-icon svg {
    stroke: var(--service-primary-light);
}

.service-banner-secondary .service-banner-icon svg {
    stroke: var(--service-secondary-light);
}

.service-banner-tertiary .service-banner-icon svg {
    stroke: var(--service-tertiary-light);
}

/* 影 */
.service-banner-shadow {
    background-color: #fff;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.08);
    height: 2px;
    margin: -2px auto 0;
    width: 90%;
    z-index: -1;
    border-radius: 50%;
}

/* サービスバナーセクション全体の最小高さ */
.service-banners-wrapper {
    min-height: 600px;
}

/* レスポンシブデザイン */
@media (max-width: 1400px) {
    .service-banner-section .container {
        padding: 0 30px;
    }
    
    .service-banners-grid {
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .service-banners-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    
    .service-banner {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .service-three-banner {
        min-height: auto;
        padding: 22px;
    }
    
    .service-banner-media {
        height: 150px;
    }
    
    .service-banner-body {
        margin-bottom: 12px;
    }
    
    .service-banner-description {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .service-banner-section {
        padding: 60px 0;
    }
    
    .service-banner-section .section-title {
        font-size: 32px;
    }
    
    .service-banners-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .service-banner {
        min-height: auto;
        padding: 30px;
    }
    
    .service-three-banner {
        min-height: auto;
        padding: 25px;
    }
    
    .service-banner-title {
        font-size: 26px;
    }
    
    .service-banner-media {
        height: 160px;
    }
    
    .service-banner-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .service-banner-body {
        margin-bottom: 15px;
    }
    
    .service-banner-description {
        font-size: 15px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .service-banner {
        padding: 20px;
    }
    
    .service-three-banner {
        padding: 20px;
    }
    
    .service-banner-title {
        font-size: 22px;
    }
    
    .service-banner-description {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .service-banner-read {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .feature-item {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .service-banner-media {
        height: 140px;
    }
    
    .service-banner-body {
        margin-bottom: 12px;
    }
    
    .service-banner-category {
        font-size: 12px;
        margin: 15px 0 0;
    }
    
    .service-banner-number {
        font-size: 11px;
    }
    
    .service-banner-circle {
        height: 24px;
        width: 24px;
        line-height: 20px;
    }
}