/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-logo h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* プロフィールセクション */
.profile-section {
    padding: 60px 0;
    background: white;
}

.profile-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    background: #ddd;
}

.profile-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.profile-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile-content strong {
    color: #667eea;
}

.profile-badges {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-links {
    margin-top: 20px;
}

.btn-twitter {
    display: inline-block;
    background: #1DA1F2;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29,161,242,0.4);
}

/* 記事セクション */
.articles-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.article-thumbnail {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* フッター */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-note {
    margin-top: 10px;
    opacity: 0.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}
