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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #d4a574;
    --text-light: #666;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('images/hero-bg.png');
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('images/hero-bg.webp');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
}

.hero-title-jp {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
}

.hero-title-en {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease 0.3s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: white;
}

/* アバウトセクション */
.about {
    padding: 100px 0;
    background: var(--secondary-color);
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: 0.08em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

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

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.about-info {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-description {
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* 出演作品セクション */
.works {
    padding: 100px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    cursor: default;
}

.work-item[data-link] {
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.work-item[data-link]:hover .work-link-icon {
    opacity: 1;
    transform: scale(1);
}

.work-year {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.work-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.work-role {
    color: var(--text-light);
    margin-bottom: 10px;
}

.work-detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.work-link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: var(--transition);
}

.work-item[data-link]:hover .work-link-icon {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ギャラリーセクション */
.gallery {
    padding: 100px 0;
    background: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Instagramセクション */
.instagram {
    padding: 100px 0;
}

.instagram-feed {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    min-height: 400px;
    align-items: center;
}

.instagram-follow {
    text-align: center;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* コンタクトセクション */
.contact {
    padding: 100px 0;
    background: var(--secondary-color);
}

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

.contact-text {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-highlight {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    font-weight: 500;
    color: var(--primary-color);
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--accent-color);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('images/hero-bg.png') center center / cover no-repeat;
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('images/hero-bg.webp') center center / cover no-repeat;
        background-attachment: scroll !important;
        height: 100vh;
        min-height: 600px;
        /* iOS Chrome/Safari対応 */
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        /* 強制的にレンダリング */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* メモリ最適化 */
        will-change: transform;
    }

    .hero-title-jp {
        font-size: 2.5rem;
    }

    .hero-title-en {
        font-size: 1.2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .works-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .instagram-media {
        max-width: 100% !important;
    }
}

/* iOS Chrome 専用修正 */
@supports (-webkit-touch-callout: none) {
    .hero {
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('images/hero-bg.png') center center / cover no-repeat;
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('images/hero-bg.webp') center center / cover no-repeat;
        background-attachment: scroll !important;
        /* iOS Chrome のレイヤー合成問題対策 */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        /* GPU レンダリング強制 */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* 強制再描画 */
        -webkit-perspective: 1000;
        perspective: 1000;
    }
}