:root {
    --primary-color: #4a5d4e; /* 深緑（ナチュラル） */
    --secondary-color: #8fa18d; /* 薄緑 */
    --accent-color: #d4a373; /* 木の色（アクセント） */
    --bg-color: #fefae0; /* 柔らかな背景色 */
    --text-color: #283618; /* 濃い文字色 */
    --card-bg: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* プレミアムな背景装飾 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(143, 161, 141, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: drift 20s linear infinite;
}

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

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--secondary-color);
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* 自己紹介セクション */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-5px);
}

/* 作品集セクション */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.work-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.work-thumb {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.work-info {
    padding: 2rem;
}

.work-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.work-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

.work-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.work-link:hover {
    border-bottom-color: var(--primary-color);
    padding-right: 5px;
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--primary-color);
    color: #e0e7e1;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
}
