/* グローバル スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --text-dark: #000000;
    --text-light: #202020;
    --bg-light: #ffffff;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* ナビゲーション */
.navbar {
    background: var(--white);
    color: var(--text-dark);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    font-size: 0.95rem;
    margin-right: 48px; /* ハンバーガーとの間隔を確保 */
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-light);
}

/* ハンバーガーメニュー */
.hamburger {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: top 0.18s ease, transform 0.2s ease, opacity 0.15s ease;
    transform-origin: center center;
    box-sizing: border-box;
}
.hamburger span:nth-child(1) {
    top: 4px;
}
.hamburger span:nth-child(2) {
    top: 9px;
}
.hamburger span:nth-child(3) {
    top: 14px;
}

/* ナビ開閉時の状態 */
.navbar.open .hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.navbar.open .hamburger span:nth-child(2) {
    opacity: 0;
}
.navbar.open .hamburger span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* 開いているときのナビ（全画面対応） */
.navbar.open .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    flex-direction: column;
    background: var(--white);
    padding: 12px 16px;
    gap: 12px;
    border: 1px solid #f0f0f0;
    display: flex;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        display: none;
    }
    .navbar.open .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        right: 20px;
        flex-direction: column;
        background: var(--white);
        padding: 12px 16px;
        gap: 12px;
        border: 1px solid #f0f0f0;
        box-shadow: none;
    }
    .navbar.open .nav-links a {
        color: var(--text-dark);
    }
}

/* ヒーロー セクション */
.hero {
    background: var(--white);
    color: var(--text-dark);
    padding: 100px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

.hero-content {
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text-dark);
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    box-shadow: none;
}

.cta-button:hover {
    transform: none;
    box-shadow: none;
}

/* セクション共通 */
.section {
    padding: 60px 20px;
}

.section:nth-child(even) {
    background-color: var(--white);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 自己紹介 セクション */
.about-section .container {
    max-width: 900px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    max-width: 360px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

.about-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 360px 1fr;
    }
}

/* スキル セクション */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-card {
    background: transparent;
    padding: 1.5rem 1rem;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    cursor: default;
    text-align: center;
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.skill-icon img,
.skill-subicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.skill-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
    max-width: 220px;
}

.skill-subicon {
    width: 48px;
    height: 48px;
}

.skill-card:hover {
    transform: none;
    box-shadow: none;
    border-bottom: 1px solid #7e7e7e;
}

.skill-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* これまでの取り組み セクション */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.work-card {
    background: transparent;
    border: 1px solid #f0f0f0;
    padding: 1.5rem;
    border-radius: 14px;
}

.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #d8d8d8;
}

.work-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.work-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.work-section .work-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: #f6f6f6;
    display: block;
}

.work-section .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 連絡先 セクション */
.contact-section .container {
    text-align: center;
}

/* 実績補足 */
.work-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
    opacity: 0.9;
}

.contact-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-block;
    background: transparent;
    color: var(--text-dark);
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    box-shadow: none;
    font-size: 0.95rem;
    margin: 0.5rem;
}

.contact-button:hover {
    transform: none;
    box-shadow: none;
    color: var(--text-light);
}

/* フッター */
.footer {
    background: var(--white);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

/* アニメーション */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 2rem;
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 20px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.8rem;
    }
}
