/* ========================================================= */
/* 1. リセットCSSと共通スタイル */
/* ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', '游ゴシック', YuGothic, sans-serif;
    line-height: 1.8;
    color: #f0f0f0;
    background-color: #111122; 
    touch-action: manipulation;
}

h1, h2, h3 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #a788cb;
}

section {
    padding: 10vh 5vw;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* ========================================================= */
/* 2. ヘッダーメニューのスタイル */
/* ========================================================= */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(5px);
    padding: 1.5rem 5vw;
    z-index: 1000;
    transition: top 0.5s ease-in-out;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#main-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

#main-header .nav-links a {
    margin-left: 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

#main-header .nav-links a:hover {
    opacity: 1;
}

/* ========================================================= */
/* 3. コンテンツセクションのスタイル */
/* ========================================================= */
#philosophy {
    padding-top: 20vh;
}

#creators {
    background-color: transparent;
}

.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5rem 3rem;
    margin-top: 3rem;
}

.creator-card {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.creator-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.creator-card img:hover {
    transform: scale(1.05);
}

.creator-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.creator-card .role {
    font-weight: bold;
    color: #a788cb;
    margin-bottom: 1rem;
}

/* クリエイターカード内のソーシャルリンクのスタイル */
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #a788cb;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
    background-color: #a788cb;
    color: #ffffff;
}

/* 会社概要セクションのスタイル */
#company-profile {
    padding: 8vh 5vw;
}

.profile-table {
    text-align: left;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 2;
}

.profile-table dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.profile-table dt {
    width: 30%;
    font-weight: bold;
    color: #a788cb;
    white-space: nowrap;
}

.profile-table dd {
    width: 70%;
    margin: 0;
}

/* ========================================================= */
/* 4. フッターのスタイル */
/* ========================================================= */
footer {
    background-color: #000000;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
}

.footer-links a {
    margin: 0 1.5rem;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
}

/* ========================================================= */
/* 5. レスポンシブデザイン */
/* ========================================================= */
@media (max-width: 768px) {
    section h2 {
        font-size: 2rem;
    }
    
    .creator-grid {
        grid-template-columns: 1fr;
    }

    /* 会社情報テーブルの改善 */
    .profile-table dl {
        display: block;
        padding: 1rem 0;
    }

    .profile-table dt {
        width: 100%;
        margin-bottom: 0.5rem;
        white-space: normal;
    }

    .profile-table dd {
        width: 100%;
        margin: 0;
    }

    /* ハンバーガーメニューのスタイル */
    #main-header nav .logo {
        display: none;
    }

    #main-header {
        background-color: transparent;
        backdrop-filter: none;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        z-index: 100;
    }

    .hamburger-menu .bar {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: 0.4s;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99;
    transition: transform 0.5s ease-in-out;
    transform: translateX(100%);
    gap: 3rem;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        animation: fadeIn 0.8s forwards;
    }
}