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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* 背景のぼかし丸 */
.background-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    transition: background-color 1.5s ease-in-out;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background-color: #ffb6c1;
    top: 10%;
    left: 5%;
    animation: float1 20s ease-in-out infinite;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background-color: #ffc0cb;
    top: 50%;
    right: 10%;
    animation: float2 25s ease-in-out infinite;
}

/* 色のバリエーション */
.background-circles.color-white .circle-1 {
    background-color: #ffffff;
}

.background-circles.color-white .circle-2 {
    background-color: #ffffff;
}

.background-circles.color-brown .circle-1 {
    background-color: #f5e6d3; /* light beige/brown */
}

.background-circles.color-brown .circle-2 {
    background-color: #f0dbb4; /* light beige/brown */
}

.background-circles.color-red .circle-1 {
    background-color: #ffe5e5; /* light red */
}

.background-circles.color-red .circle-2 {
    background-color: #ffd6d6; /* light red */
}

.background-circles.color-green .circle-1 {
    background-color: #e6f7e6; /* light green */
}

.background-circles.color-green .circle-2 {
    background-color: #d0f0d0; /* light green */
}
.background-circles.color-pink .circle-1 {
    background-color: #ffb6c1;
}

.background-circles.color-pink .circle-2 {
    background-color: #ffc0cb;
}

.background-circles.color-yellow .circle-1 {
    background-color: #fffacd;
}

.background-circles.color-yellow .circle-2 {
    background-color: #ffffe0;
}

.background-circles.color-blue .circle-1 {
    background-color: #e0f7fa;
}

.background-circles.color-blue .circle-2 {
    background-color: #b2ebf2;
}

.background-circles.color-purple .circle-1 {
    background-color: #e1bee7;
}

.background-circles.color-purple .circle-2 {
    background-color: #f3e5f5;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 30px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-40px, -50px);
    }
}

/* ループテキスト */
.loop-text-container {
    position: fixed;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
    overflow: hidden;
    pointer-events: none;
}

.loop-text-top {
    top: -26px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
}

.loop-text-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
}

@media (max-width: 768px) {
    .loop-text-top {
        top: -15px;
    }

    .loop-text-bottom {
        bottom: -30px;
    }
}

.loop-text-wrapper {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

@media (max-width: 768px) {
    .loop-text-wrapper {
        animation: scroll-left 10s linear infinite;
    }
}

.loop-text {
    display: inline-block;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(26, 26, 26, 0.1);
    letter-spacing: 0.1em;
    padding-right: 4rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* タイトル画面 */
.title-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: opacity 0.8s ease-out;
}

.title-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.title-text {
    font-size: 13.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #9c9c9c;
    transition: filter 1.5s ease-out, opacity 1.5s ease-out;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: filter, opacity;
}

/* タイトルの下からスッと表示アニメーション */
.title-text.title-reveal {
    animation: titleSlideUp 0.8s ease-out forwards;
}

@keyframes titleSlideUp {
    from {
        transform: translate(-50%, -50%) translateY(30px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 1;
    }
}

/* 作品セクション */
.works-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    filter: blur(0px);
    transition: opacity 0.5s ease-out, filter 0.5s ease-out;
}

.works-section.active {
    pointer-events: auto;
    opacity: 1;
}

.works-spacer {
    width: 100%;
    background-color: transparent;
    margin-top: 100vh;
}

.works-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    perspective: 2000px;
    perspective-origin: center center;
}

.work-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 80%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1s ease-out, filter 1s ease-out;
    pointer-events: none;
    will-change: transform, opacity, filter;
    transform-style: preserve-3d;
}

.work-item-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}

.work-item.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    filter: blur(0px);
}

.work-item.hidden {
    opacity: 0;
    z-index: 1;
    filter: blur(20px);
    pointer-events: none;
}

.work-image-container {
    flex: 1;
    max-width: 600px;
    aspect-ratio: 6 / 3;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.work-item.active .work-image {
    transform: scale(1);
}

.work-item.prev .work-image,
.work-item.next .work-image {
    transform: scale(0.95);
}

.work-text-container {
    flex: 1;
    max-width: 500px;
    text-align: left;
}


.work-year {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.work-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.work-description {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.work-link-button {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    padding: 0.75rem 2rem;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.work-link-button:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* 自己紹介セクション */
.about-section {
    width: 100%;
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1.5s ease-out, filter 1.5s ease-out;
    will-change: opacity, filter;
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.about-image-container {
    flex: 1;
    max-width: 400px;
}

.profile-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #f5f5f5;
}

.about-text-container {
    flex: 1;
    max-width: 600px;
}

.about-title {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.about-subtitle {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    color: #666;
}

.about-description {
    font-size: 0.875rem;
    line-height: 2;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.02em;
    white-space: pre-line;
    margin-bottom: 3rem;
}

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

.skill-item {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    font-weight: 300;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: #1a1a1a;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #999;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* スクリーンリーダー用の非表示クラス */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .title-text {
        font-size: 5rem;
    }

    .work-item {
        flex-direction: column;
        gap: 2rem;
        width: 90%;
    }

    .work-item-content {
        flex-direction: column;
        gap: 2rem;
    }

    .work-text-container {
        text-align: center;
    }

    .work-image-container {
        max-width: 100%;
    }

    .work-text-container {
        max-width: 100%;
    }

    .work-title {
        font-size: 1.25rem;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
    }

    .about-image-container {
        max-width: 100%;
    }

    .about-text-container {
        max-width: 100%;
    }

    .loop-text {
        font-size: 2.5rem;
    }

    .circle-1 {
        width: 400px;
        height: 400px;
    }

    .circle-2 {
        width: 350px;
        height: 350px;
    }
}

