/* ===================================
   トップページ専用スタイル
   =================================== */

/* コンテナ */
.top-container {
    padding-top: 3rem;
}

/* 3つのポイント */
.points-section {
    margin-bottom: 3.5rem;
}

.points-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    line-height: 1.5;
}

/* 相談ジャンル一覧 */
.genre-list-card {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border: none;
}

.genre-list-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.genre-tag {
    background: white;
    color: #667eea;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #e0e7ff;
}

/* カウンセラー紹介セクション */
.counselors-section {
    margin-bottom: 3.5rem;
}

.counselors-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.counselors-section-title {
    font-size: 1.8rem;
}

.counselors-section-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
}

/* カウンセラーカードグリッド */
.counselor-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.counselor-card-wrapper {
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.75rem;
}

.counselor-card-top {
    display: flex;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0.75rem;
}

.counselor-card-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.counselor-avatar-link {
    flex-shrink: 0;
    text-decoration: none;
}

.counselor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.counselor-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.counselor-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.counselor-name-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.counselor-link {
    text-decoration: none;
    color: inherit;
}

.counselor-name {
    font-size: 1rem;
    font-weight: 600;
}

.corporate-badge {
    background: #667eea;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    font-size: 0.65rem;
}

.counselor-job {
    font-size: 0.8rem;
    color: #667eea;
    margin-bottom: 0.4rem;
}

.counselor-intro {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.counselor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.specialty-tag {
    background: #f0f4ff;
    color: #667eea;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.counselor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.counselor-price {
    font-weight: bold;
    color: #667eea;
    font-size: 1.05rem;
}

.price-unit {
    font-size: 0.8rem;
    color: #999;
}

.counselor-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.like-button.liked {
    color: #e91e63;
}

.like-button.not-liked {
    color: #bbb;
}

.like-count {
    color: #bbb;
    font-size: 0.9rem;
}

.counselor-detail-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* ブログセクション */
.blog-section {
    margin-bottom: 3.5rem;
}

.blog-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.blog-card-top {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-thumbnail-link {
    display: block;
}

.blog-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title-link {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.4rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.blog-author-date {
    color: #999;
    font-size: 0.75rem;
}

.blog-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
}

.blog-like-btn.liked {
    color: #e91e63;
}

.blog-like-btn.not-liked {
    color: #bbb;
}

.blog-like-count {
    color: #bbb;
    font-size: 0.78rem;
}

/* 告知セクション */
.announcements-section {
    margin-bottom: 3.5rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .blog-grid-4col {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* カウンセラーカードの調整 */
    .counselor-grid-2col {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* カウンセラーカードを1カラムに */
    .counselor-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .blog-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 告知グリッドも1カラムに */
    .announcements-grid {
        grid-template-columns: 1fr;
    }
    
    /* カウンセラーカード内の調整 */
    .counselor-card-top {
        gap: 0.75rem;
    }
    
    .counselor-avatar,
    .counselor-avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .counselor-name {
        font-size: 1rem;
    }
    
    .counselor-job {
        font-size: 0.8rem;
    }
    
    .counselor-intro {
        font-size: 0.85rem;
    }
    
    .counselor-price {
        font-size: 0.95rem;
    }
    
    .counselor-detail-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    /* ポイントセクション */
    .points-title {
        font-size: 1.5rem;
    }
    
    /* セクションタイトル */
    .counselors-section-title,
    .announcements-section-title,
    .blog-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-grid-4col {
        grid-template-columns: 1fr;
    }
    
    /* カウンセラーカードをさらに最適化 */
    .counselor-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .counselor-avatar-link {
        margin-bottom: 0.5rem;
    }
    
    .counselor-name-row {
        justify-content: center;
    }
    
    .counselor-specialties {
        justify-content: center;
    }
    
    .counselor-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .counselor-actions {
        width: 100%;
        justify-content: center;
    }
    
    .counselor-detail-btn {
        width: 100%;
    }
    
    /* ポイントセクション */
    .points-title {
        font-size: 1.3rem;
    }
    
    /* セクションヘッダー */
    .counselors-section-header,
    .announcements-section-header,
    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===================================
   告知セクション
   =================================== */
.announcements-section {
    margin-bottom: 3.5rem;
}

.announcements-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.announcements-section-title {
    font-size: 1.8rem;
}

.announcements-section-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
}

.announcements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.announcement-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcement-card-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
    transition: box-shadow 0.2s;
}

.announcement-card-top:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
}

.announcement-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.announcement-avatar.counselor {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.announcement-avatar.client {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-author-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.announcement-author-name {
    font-size: 0.88rem;
    color: #333;
}

.announcement-author-badge {
    color: white;
    padding: 0.08rem 0.4rem;
    border-radius: 4px;
    font-size: 0.68rem;
}

.announcement-author-badge.counselor {
    background: #667eea;
}

.announcement-author-badge.client {
    background: #28a745;
}

.announcement-title-text {
    font-weight: bold;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-excerpt {
    color: #666;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.announcement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-date {
    color: #999;
    font-size: 0.75rem;
}

.announcement-read-more {
    color: #667eea;
    font-size: 0.78rem;
}

/* ===================================
   ブログセクション（トップページ）
   =================================== */
.blog-section {
    margin-bottom: 3.5rem;
}

.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-section-title {
    font-size: 1.8rem;
}

.blog-section-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
}

/* トップページ告知カードのプロフィール画像 */
.announcement-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
