:root {
    /* Enhanced Color Palette */
    --primary-color: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary-color: #3B82F6;
    --secondary-light: #60A5FA;
    --secondary-dark: #2563EB;
    
    /* Background Colors */
    --background-color: #0A0A0B;
    --background-light: #111113;
    --surface-color: #18181B;
    --surface-hover: #27272A;
    --surface-active: #3F3F46;
    
    /* Text Colors */
    --text-primary-color: rgba(255, 255, 255, 0.95);
    --text-secondary-color: rgba(255, 255, 255, 0.70);
    --text-tertiary-color: rgba(255, 255, 255, 0.50);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-surface: linear-gradient(135deg, var(--surface-color) 0%, var(--surface-hover) 100%);
    --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #06B6D4 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* Technology Colors */
    --rails-color: #CC0000;
    --react-color: #61DAFB;
    --mysql-color: #00758F;
    --python-color: #3776AB;
    --aws-color: #FF9900;
    --typescript-color: #3178C6;
    --cloudflare-color: #F38020;
    --ai-color: #10B981;
    --nextjs-color: #000000;
    --supabase-color: #3ECF8E;
    --opensource-color: #E11D48;
    --mit-color: #8B5CF6;
    --honejs-color: #FF6B6B;
    --github-color: #24292F;
    --qiita-color: #55C500;
    --seo-color: #3B82F6;
    --analytics-color: #EC4899;
    --growth-color: #F59E0B;
    --content-color: #8B5CF6;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography System */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: url('../images/cursors/custom-cursor.svg') 16 16, auto;
}

/* カスタムカーソルの微調整 */
* {
    cursor: inherit;
}

/* リンクやボタンのホバー時のカーソル */
a, button, [role="button"], 
.project-card, .timeline-content, .blog-post,
input[type="submit"], input[type="button"],
.contact-button, .view-more-button {
    cursor: url('../images/cursors/pointer-cursor.svg') 14 6, pointer;
}

/* Type Scale - Golden Ratio (1.618) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.236rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.618rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.618rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary-color);
}

code, pre {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.875rem;
}

body.modal-open {
    overflow: hidden;
}

/* Qiita Achievements Section */
#qiita-achievements {
    padding: var(--space-3xl) 0;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

#qiita-achievements::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.achievements-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.achievement-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(139, 92, 246, 0.3);
}

.achievement-header {
    margin-bottom: var(--space-lg);
}

.achievement-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary-color);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.achievement-header h3 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.achievement-subtitle {
    color: var(--text-secondary-color);
    font-size: 1rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.1), 
        transparent);
    transition: left 0.8s ease;
}

.stat-item:hover {
    background: var(--surface-hover);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
    animation: number-count 2s ease-out;
}

@keyframes number-count {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-date {
    color: var(--text-tertiary-color);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: var(--space-lg);
}

.milestone-timeline {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.milestone-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.5) 50%, 
        rgba(16, 185, 129, 0.8) 100%);
    animation: timeline-pulse 3s ease-in-out infinite;
}

@keyframes timeline-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.milestone-item {
    position: relative;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    animation: milestone-fade-in 0.8s ease-out forwards;
}

.milestone-item:nth-child(1) { animation-delay: 0.2s; }
.milestone-item:nth-child(2) { animation-delay: 0.4s; }
.milestone-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes milestone-fade-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.milestone-item.highlight .milestone-content {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(16, 185, 129, 0.1) 100%);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.milestone-item.highlight .milestone-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #10B981, #8B5CF6, #10B981);
    border-radius: var(--radius-md);
    opacity: 0;
    z-index: -1;
    animation: highlight-glow 2s ease-in-out infinite;
}

@keyframes highlight-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

.milestone-icon {
    position: absolute;
    left: -32px;
    width: 32px;
    height: 32px;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all var(--transition-base);
}

.milestone-item.highlight .milestone-icon {
    background: var(--gradient-primary);
    border-color: #10B981;
    animation: icon-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    }
}

.milestone-icon i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.milestone-item.highlight .milestone-icon i {
    color: #fff;
}

.milestone-date {
    color: var(--text-tertiary-color);
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.milestone-title {
    color: var(--text-primary-color);
    font-weight: 600;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.impact-item {
    padding: var(--space-md);
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all var(--transition-base);
}

.impact-item.highlight {
    background: var(--gradient-surface);
    border-color: var(--primary-color);
}

.impact-label {
    color: var(--text-secondary-color);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.impact-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.impact-percentage {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--text-primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-light);
    background: var(--glass-bg);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 自己紹介セクション */
#about {
    padding: var(--space-3xl) 0;
}

#about h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
                var(--gradient-primary) border-box;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.5;
}

/* 経歴セクション */
#experience {
    padding: var(--space-3xl) 0;
}

#experience h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 縦棒のスタイル調整 */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
}

/* タイムラインアイテムの調整 */
.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    z-index: 2;
}

/* 点（丸）のスタイル調整 */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 3;
}

/* 左側のアイテム */
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
}

.timeline-item:nth-child(odd)::after {
    right: -14px;
}

/* 右側のアイテム */
.timeline-item:nth-child(even) {
    left: 45%;
    padding-left: 40px;
}

.timeline-item:nth-child(even)::after {
    left: -14px;
}

/* タイムラインコンテンツのスタイル調整 */
.timeline-content {
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 3;
    cursor: pointer;
    transition: all var(--transition-base);
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-light);
}

/* クリック可能なことを示すアイコンを復活 */
.timeline-content::after {
    content: '\f0a9';
    /* FontAwesomeの右矢印アイコン */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 1.2em;
    color: var(--secondary-color);
    opacity: 0.7;
    /* 少し透明に */
    transition: opacity 0.3s ease;
}

.timeline-content:hover::after {
    opacity: 1;
    /* ホバー時に完全に不透明に */
}

/* 左側のコンテンツの矢印 */
.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--surface-color);
    transition: border-color 0.3s ease;
}

/* 右側のコンテンツの矢印 */
.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--surface-color) transparent transparent;
    transition: border-color 0.3s ease;
}

/* ホバー時の矢印の色変更（必要に応じて） */
.timeline-content:hover::before {
    border-color: transparent transparent transparent var(--surface-color) !important;
}

.timeline-item:nth-child(even) .timeline-content:hover::before {
    border-color: transparent var(--surface-color) transparent transparent !important;
}

/* 日付のスタイリング */
.timeline-date {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* 左側の日付を右寄せにする */
.timeline-item:nth-child(odd) .timeline-date {
    text-align: right;
}

/* レスポンシブデザイン用の調整 */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .about-text {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
}

.hero {
    text-align: center;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5);
    z-index: 0;
}

/* hero コンテンツの位置調整 */
.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
    }
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--space-md);
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease-out;
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary-color);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#projects {
    padding: var(--space-3xl) 0;
}

#projects h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-light);
}

/* project-cardに矢印を追加 */
.project-card::after {
    content: '\f0a9';
    /* FontAwesomeの右矢印アイコン */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 1.2em;
    color: var(--secondary-color);
    opacity: 0.7;
    /* 少し透明に */
    transition: opacity 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
    /* ホバー時に完全に不透明に */
}

/* project-cardの内容のパディングを調整 */
.project-card .content {
    padding: 25px 25px 35px;
    /* 下部のパディングを増やして矢印用のスペースを確保 */
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card .content {
    padding: 25px;
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 0;
    color: var(--text-primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card p {
    color: var(--text-secondary-color);
    font-size: 1em;
    margin-bottom: 20px;
}

.project-card .technologies {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
}

.project-card .technologies span {
    color: var(--text-secondary-color);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 6px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card .technologies span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left var(--transition-base);
}

.project-card .technologies span:hover::before {
    left: 100%;
}

/* Technology Tag Colors - Refined Monochromatic Design */
.technologies .python { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(55, 118, 171, 0.3);
}
.technologies .ruby { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(204, 0, 0, 0.3);
}
.technologies .rails { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(204, 0, 0, 0.3);
}
.technologies .react { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(97, 218, 251, 0.3);
}
.technologies .typescript { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(49, 120, 198, 0.3);
}
.technologies .javascript { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(247, 223, 30, 0.3);
}
.technologies .cloudflare { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(243, 128, 32, 0.3);
}
.technologies .ai { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.technologies .aws { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(255, 153, 0, 0.3);
}
.technologies .nextjs { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.technologies .supabase { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(62, 207, 142, 0.3);
}
.technologies .mysql { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(0, 117, 143, 0.3);
}
.technologies .opensource { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(225, 29, 72, 0.3);
}
.technologies .MIT { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid var(--glass-border);
}
.technologies .honejs { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}
.technologies .github { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.technologies .qiita { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(85, 197, 0, 0.3);
}
.technologies .seo { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.technologies .analytics { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(236, 72, 153, 0.3);
}
.technologies .growth { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.technologies .content { 
    background: var(--surface-hover);
    color: var(--text-secondary-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.technologies span:hover {
    background: var(--surface-active);
    border-color: var(--primary-light);
    color: var(--text-primary-color);
    transform: translateY(-2px);
}

.btn {
    display: none;
}

#skills {
    padding: var(--space-3xl) 0;
    text-align: center;
}

#skills h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.skill-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.skill-category {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.skill-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text-primary-color);
    font-weight: 600;
}

.skill-list {
    list-style-type: none;
    padding: 0;
}

.skill-list li {
    margin-bottom: 15px;
    text-align: left;
}

.skill-name {
    display: inline-block;
    width: 120px;
    font-weight: 500;
    color: var(--text-primary-color);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-label {
    position: absolute;
    top: -20px;
    /* スキルバーの上にラベルを配置 */
    left: 100%;
    transform: translateX(-100%);
    font-size: 0.8em;
    color: #555;
    white-space: nowrap;
    /* ラベルのテキストが折り返されないようにする */
}

.skill-legend {
    margin-top: 30px;
    text-align: left;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-legend h4 {
    margin-bottom: 10px;
    color: var(--text-primary-color);
}

.skill-legend ul {
    list-style-type: none;
    padding: 0;
}

.skill-legend li {
    margin-bottom: 5px;
    color: var(--text-secondary-color);
}

.aws-services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.aws-services h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    color: var(--text-primary-color);
    font-weight: 600;
}

.aws-services .skill-category {
    flex: 1 1 300px;
    min-width: 0;
}

.aws-services .service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aws-services .service-tag {
    font-family: 'Montserrat', sans-serif;
    background-color: #333;
    color: #eee;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* certificationsと同じtransitionを追加 */
}

.aws-services .service-tag:hover {
    transform: translateY(-3px);
    /* ホバー時に少し上に移動 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* certificationsと同じbox-shadowを追加 */
}

@media screen and (max-width: 768px) {
    .aws-services {
        flex-direction: column;
        justify-content: center;
    }

    .aws-services .skill-category {
        width: 100%;
    }
}

.certifications {
    margin-top: 40px;
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.certifications h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text-primary-color);
    font-weight: 600;
}

.certifications ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.certifications li {
    font-family: 'Montserrat', sans-serif;
    background-color: #333;
    color: #eee;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certifications li:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* 影を追加 */
}

footer {
    background-color: var(--surface-color);
    text-align: center;
    padding: 10px 0;
    margin-top: 60px;
}

footer p {
    font-size: 0.9em;
    color: var(--text-secondary-color);
}

#contact {
    padding: var(--space-3xl) 0;
    text-align: center;
}

#contact h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-2xl);
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: var(--surface-color);
    color: var(--text-primary-color);
}

#contact textarea {
    height: 200px;
    resize: vertical;
}

#contact button {
    background-color: var(--secondary-color);
    color: var(--background-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #02b8a2;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-button:active::before {
    width: 300px;
    height: 300px;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    margin: 0 auto;
    padding: var(--space-2xl);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 800px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal.show .modal-content {
    transform: translateY(-50%) scale(1);
}

.modal-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.modal-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-content a:hover {
    color: #02b8a2;
    text-decoration: none;
}

.modal-content img {
    width: 100%;
    max-height: 40vh;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-content .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.modal-content .technologies span {
    background-color: var(--background-color);
    color: var(--text-primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.close {
    color: var(--text-secondary-color);
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

.close:hover,
.close:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

#blog {
    padding: var(--space-3xl) 0;
}

#blog h2 {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.blog-post {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-post:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-light);
}

.blog-post::after {
    content: '\f0a9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 1.2em;
    color: var(--secondary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.blog-post:hover::after {
    opacity: 1;
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    margin: 15px 20px;
    color: var(--text-primary-color);
}

.blog-post .post-meta {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin: 0 20px 10px;
}

.blog-post p {
    margin: 0 20px 40px;
    color: var(--text-secondary-color);
}

.blog-post::after {
    content: '\f0a9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 1.2em;
    color: var(--secondary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.blog-post:hover::after {
    opacity: 1;
}

.blog-post h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    margin: 15px 20px;
    color: var(--text-primary-color);
}

.blog-post .post-meta {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin: 0 20px 10px;
}

.blog-post p {
    margin: 0 20px 40px;
    color: var(--text-secondary-color);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modal-content .github-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-content .github-link:hover {
    color: #02b8a2;
    text-decoration: none;
}

.modal-content .github-link i {
    margin-left: 10px;
    font-size: 1.2em;
}

/* スクロールアニメーション用のスタイル */
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* タイムラインイテムのアニメーション */
.timeline-item {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

/* スキルバのアニメーション */
.skill-bar .skill-level {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
    transition: width 1s ease;
    width: 100%;
}

.skill-animate .skill-level {
    width: 100%;
}

.timeline-item.scroll-animation {
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even).scroll-animation {
    transform: translateX(50px);
}

.timeline-item.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.skill-bar.scroll-animation .skill-level {
    width: 100%;
}

/* スキル名を常に表示 */
.skill-name {
    display: inline-block;
    width: 120px;
    font-weight: 500;
    color: var(--text-primary-color);
    position: relative;
    z-index: 1;
}

/* ソーシャルリンクのスタイル */
.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--text-primary-color);
    font-size: 1.5rem;
    margin: 0 var(--space-sm);
    transition: all var(--transition-base);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-links a:hover::after {
    opacity: 1;
    visibility: visible;
}

.social-links a:hover {
    color: var(--primary-light);
    background: var(--gradient-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: transparent;
}

/* Highlight Link Style */
.highlight-link {
    color: var(--primary-light);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    background: var(--primary-light);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-base);
}

.highlight-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.highlight-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.highlight-link:hover {
    filter: brightness(1.2);
}

/* reCAPTCHAのスタイル */
#contact .g-recaptcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 300px) {
    #contact .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}

.blog-post .source {
    font-size: 0.8em;
    color: var(--text-secondary-color);
    display: flex;
    align-items: center;
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 15px;
    z-index: 1;
}

.blog-post .source i {
    margin-right: 5px;
    font-size: 1.2em;
}

.blog-post .source span {
    font-weight: bold;
}

/* ソースアイコンの色 */
.blog-post .source .fa-github {
    color: #ffffff;
}

.blog-post .source .fa-quora {
    color: #ffffff;
}

.blog-post .source .fa-notebook {
    color: #ffffff;
}

/* ホバー時のエフェクト */
.blog-post:hover .source {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.blog-post:hover .source i,
.blog-post:hover .source span {
    transform: none;
}

/* blog-postの矢印位置調整 */
.blog-post::after {
    bottom: 20px;
}

/* blog-postの内容のパディングを調整 */
.blog-post h3,
.blog-post .post-meta,
.blog-post p {
    padding: 0 20px;
}

.blog-post p:last-child {
    padding-bottom: 40px;
}

#mobile-warning-modal .modal-content {
    max-width: 90%;
    width: 300px;
    height: auto;
    text-align: center;
    padding: 20px;
}

#mobile-warning-modal h3 {
    margin-bottom: 15px;
}

#mobile-warning-modal p {
    font-size: 14px;
    line-height: 1.5;
}

/* Qiita Modal Styles */
.qiita-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .qiita-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.qiita-stat {
    background: var(--surface-color);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.qiita-stat:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.qiita-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.qiita-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qiita-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.qiita-milestone {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.qiita-milestone.highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.qiita-date {
    font-size: 0.9rem;
    color: var(--text-tertiary-color);
    min-width: 100px;
}

.qiita-event {
    font-weight: 600;
    color: var(--text-primary-color);
}

.modal-content h4 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.modal-content h5 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Popular Article Box */
.popular-article-box {
    background: var(--surface-color);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin: var(--space-md) 0;
    transition: all var(--transition-base);
}

.popular-article-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-md);
}

.article-stats {
    display: flex;
    gap: var(--space-xl);
    margin: var(--space-md) 0;
    justify-content: center;
}

.article-stat {
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-xs);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-link {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: white !important;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
}

.article-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.article-link i {
    color: white !important;
}

/* Qiita Charts Container */
.qiita-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

@media (max-width: 768px) {
    .qiita-charts-container {
        grid-template-columns: 1fr;
    }
}

.qiita-chart-box {
    background: var(--surface-color);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.qiita-chart-box:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-md);
}

.chart-wrapper {
    position: relative;
    height: 250px;
    margin-top: var(--space-md);
}

@media (max-width: 480px) {
    .chart-wrapper {
        height: 200px;
    }
}

/* Visual Timeline */
.qiita-visual-timeline {
    position: relative;
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
}

.timeline-progress-bar {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    z-index: 1;
}

.timeline-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
    animation: timeline-fill 2s ease-out forwards;
}

@keyframes timeline-fill {
    to { width: 100%; }
}

.qiita-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .qiita-timeline {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .timeline-progress-bar {
        display: none;
    }
    
    .milestone-marker {
        display: none;
    }
}

.qiita-milestone {
    text-align: center;
    position: relative;
    opacity: 0;
    animation: milestone-appear 0.5s ease-out forwards;
}

.qiita-milestone:nth-child(1) { animation-delay: 0.3s; }
.qiita-milestone:nth-child(2) { animation-delay: 0.6s; }
.qiita-milestone:nth-child(3) { animation-delay: 0.9s; }
.qiita-milestone:nth-child(4) { animation-delay: 1.2s; }

@keyframes milestone-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.milestone-marker {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--surface-hover);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 3;
}

.milestone-marker.success {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: success-pulse 2s ease-in-out infinite;
}

@keyframes success-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    }
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--background-color);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

/* Language switch button */
.lang-switch a {
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-weight: 600;
    border: none;
}

.lang-switch a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.view-more-container {
    text-align: right;
    margin-top: -1rem;
    margin-bottom: 2rem;
    padding-right: 1rem;
}

/* ブログセクション用の特別なマージン */
#blog .view-more-container {
    margin-top: 1rem;
}

.view-more-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    color: var(--primary-light);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--background-color), var(--background-color)),
                      var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    position: relative;
}

.view-more-button:hover {
    background-image: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.view-more-button i {
    margin-left: 0.5rem;
    font-size: 0.8em;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-more-button:hover i {
    transform: translateX(3px);
}

/* プロジェクトとブログの一覧ページのスタイル */
.all-projects, .all-blogs {
    padding-top: 120px;
    padding-bottom: 60px;
}

.all-projects h1, .all-blogs h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.all-projects h1::after, .all-blogs h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.projects-grid, .blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 1400px;
}