/* リセットCSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 変数定義 */
:root {
    --primary-dark: #1a202c;
    --secondary-dark: #2d3748;
    --accent-blue: #3182ce;
    --bg-white: #ffffff;
    --text-gray: #4a5568;
    --text-light: #718096;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1800px;
}

/* 基本設定 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--bg-white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background-color: var(--primary-dark);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--accent-blue);
}

.hero__catch {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.hero__subcatch {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: bounce 2s infinite;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--bg-white);
    border-bottom: 2px solid var(--bg-white);
    transform: rotate(45deg);
}

/* セクション共通 */
section {
    padding: var(--spacing-lg) 0;
}

/* 自己紹介セクション */
.about {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="20" cy="70" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.about__content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about__description {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.8;
}

.about__benefits {
    list-style: none;
    padding-left: var(--spacing-md);
}

.about__benefits li {
    position: relative;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
}

.about__benefits li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.about__subtitle {
    font-size: 2rem;
    margin: var(--spacing-lg) 0 var(--spacing-lg) 0;
    text-align: center;
    color: var(--bg-white);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.about .section-title {
    color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.about__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 20px;
    pointer-events: none;
}

.benefit-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.benefit-item:nth-child(1) {
    background: rgba(102, 126, 234, 0.2);
}

.benefit-item:nth-child(2) {
    background: rgba(240, 147, 251, 0.2);
}

.benefit-item:nth-child(3) {
    background: rgba(79, 172, 254, 0.2);
}

.benefit-item h4 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bg-white);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.benefit-item strong {
    font-weight: 700;
    color: var(--bg-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 実績セクション */
.works {
    background-color: #f7fafc;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-left: 0;
    padding-right: 0;
}

.work-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.work-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    min-height: 220px;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__content {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.work-card__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.work-card__period {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.work-card__description {
    margin-bottom: var(--spacing-md);
}

.work-card__link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-blue);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.work-card__link:hover {
    background-color: #2c5282;
}

/* スキルセクション */
.skills__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.skills__tech, .skills__vibe {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skills__list {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.skills__list li {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.skills__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* コンタクトセクション */
.contact {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.contact__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact__message {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.contact__link {
    display: inline-block;
    padding: 1rem 2rem;
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
}

.contact__link--line {
    background: linear-gradient(135deg, #00B900 0%, #00C300 100%);
    box-shadow: 0 4px 20px rgba(0, 185, 0, 0.3);
}

.contact__link--email {
    background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.3);
}

.contact__link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact__link:hover::before {
    left: 100%;
}

.contact__link:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.contact__link--line:hover {
    box-shadow: 
        0 8px 30px rgba(0, 185, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.contact__link--email:hover {
    box-shadow: 
        0 8px 30px rgba(49, 130, 206, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* フッター */
.footer {
    background-color: var(--secondary-dark);
    color: var(--bg-white);
    padding: var(--spacing-md) 0;
    text-align: center;
}

/* アニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* レスポンシブ対応 */
@media (max-width: 1100px) {
    .works__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-md: 1.5rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__catch {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .works__grid {
        grid-template-columns: 1fr;
    }

    .work-card__content {
        padding: var(--spacing-md);
    }

    .work-card {
        min-height: 320px;
    }

    .contact__links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .about__benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .benefit-item {
        padding: var(--spacing-md);
    }

    .about__subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__catch {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
} 