/* ===================================
   CSS Variables (カスタムプロパティ)
   =================================== */
:root {
    /* カラーパレット */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6b7280;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));

    /* フォント */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Roboto', sans-serif;

    /* サイズ */
    --header-height: 80px;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* アニメーション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   リセット & ベーススタイル
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    /* 1rem = 10px */
    height: 100%;
    overflow-y: auto;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    overflow-x: clip;
    overflow-y: auto;
    min-height: 100vh;
}

/* ===================================
   共通コンポーネント
   =================================== */
.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;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section__title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: gradientFlow 8s ease infinite;
}

/* グラデーション流れるアニメーション */
@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2rem;
    animation: lineGlow 2s ease-in-out infinite;
}

/* ライン輝きアニメーション */
@keyframes lineGlow {

    0%,
    100% {
        opacity: 0.5;
        width: 6rem;
    }

    50% {
        opacity: 1;
        width: 10rem;
    }
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn--secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn--full {
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn--primary:hover {
    background: var(--gradient-accent);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
}

.btn--locked {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn--locked:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===================================
   ローディング画面
   =================================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f23 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
    overflow: hidden;
}

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

.loading__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ロゴアニメーション */
.loading__logo {
    width: 20rem;
    height: 20rem;
    position: relative;
    margin: 0 auto 4rem;
    perspective: 1000px;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 0.3rem solid transparent;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.logo-ring-1 {
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
    animation: rotate3D 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    transform-origin: center;
}

.logo-ring-2 {
    border-bottom-color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    animation: rotate3D 4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite reverse;
    transform-origin: center;
}

.logo-ring-3 {
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    animation: rotate3D 5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    transform-origin: center;
}

.logo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10rem;
    height: 10rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite, glow 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.logo-center:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.logo-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.logo-center.w5-clicked {
    animation: w5Click 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes w5Click {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: brightness(1) saturate(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
        filter: brightness(1.5) saturate(2);
        box-shadow: 
            0 0 60px rgba(99, 102, 241, 1),
            0 0 100px rgba(99, 102, 241, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(360deg);
        filter: brightness(1.3) saturate(1.5);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.15) rotate(450deg);
        filter: brightness(1.2) saturate(1.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(540deg);
        filter: brightness(1) saturate(1);
    }
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(99, 102, 241, 0.6);
    animation: logoTextPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* ヒントテキスト回転 */
.loading-hints-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.loading-hint {
    position: absolute;
    top: 50%;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    transform-origin: center center;
}

/* wine-5を左側に配置 */
.loading-hint:nth-child(1) {
    left: calc(50% - 150px);
    animation: rotateLeftSide 8s linear infinite;
}

/* debugを右側に配置 */
.loading-hint:nth-child(2) {
    left: calc(50% + 150px);
    animation: rotateRightSide 8s linear infinite;
    animation-delay: 4s;
}

@keyframes rotateLeftSide {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(-80px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(-80px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes rotateRightSide {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateX(80px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateX(80px) rotate(-360deg);
        opacity: 0;
    }
}

/* プログレスバー */
.loading__progress {
    position: relative;
    margin-top: 3rem;
}

.progress-bar {
    width: 30rem;
    height: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    margin: 0 auto 2rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    background-size: 200% 100%;
    border-radius: 1rem;
    animation: progressFlow 2s ease-in-out infinite, progressWidth 3s ease-out forwards;
    box-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--secondary-color);
}

.loading__text {
    font-family: var(--font-primary);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s ease infinite;
    margin-bottom: 1rem;
}

.loading__percentage {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

/* パーティクルエフェクト */
.loading__particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* アニメーション定義 */
@keyframes rotate3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg) rotateZ(180deg);
        opacity: 0.7;
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
        opacity: 1;
    }
}

@keyframes logoTextPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(99, 102, 241, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(139, 92, 246, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

@keyframes progressFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes progressWidth {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.header__title {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
}

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

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--primary-color);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 0.2rem;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.header__hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.header__hamburger span {
    width: 2.5rem;
    height: 0.3rem;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

/* 古いパーティクル処理を削除 - WebGL版を使用 */

.hero__content {
    text-align: center;
    z-index: 2;
    max-width: 80rem;
    padding: 0 2rem;
    transform-style: preserve-3d;
    perspective: 1200px;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===================================
   水たまり・水面エフェクト
   =================================== */
.water-surface {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw; /* 強制的に右端まで */
    height: 40vh;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.water-svg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    animation: waterFlow 8s ease-in-out infinite;
}

.water-path {
    filter: blur(1px);
    animation: waterRipple 6s ease-in-out infinite;
}

@keyframes waterFlow {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(-20px);
    }
}

@keyframes waterRipple {

    0%,
    100% {
        d: path("M0,150 Q300,130 600,150 T1200,150 L1200,300 L0,300 Z");
    }

    25% {
        d: path("M0,150 Q300,140 600,145 T1200,155 L1200,300 L0,300 Z");
    }

    50% {
        d: path("M0,150 Q300,135 600,155 T1200,145 L1200,300 L0,300 Z");
    }

    75% {
        d: path("M0,150 Q300,145 600,140 T1200,150 L1200,300 L0,300 Z");
    }
}

/* 3D空間演出用の追加要素 */
.hero__3d-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-style: preserve-3d;
    perspective: 1500px;
}

.hero__floating-cube {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    transform-style: preserve-3d;
    animation: floatingCube 8s ease-in-out infinite;
}

.hero__floating-cube:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero__floating-cube:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.hero__floating-cube:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes floatingCube {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) translateZ(0px);
    }

    25% {
        transform: translateY(-30px) rotateX(90deg) rotateY(45deg) translateZ(50px);
    }

    50% {
        transform: translateY(-60px) rotateX(180deg) rotateY(90deg) translateZ(100px);
    }

    75% {
        transform: translateY(-30px) rotateX(270deg) rotateY(135deg) translateZ(50px);
    }
}

.hero__title {
    /* CSS版を無効化 - WebGL版のみを使用 */
    display: none;
}

.hero__title::before {
    /* CSS版を無効化 - WebGL版を使用 */
    content: '';
    display: none;
}

.hero__title::after {
    /* CSS版を無効化 - WebGL版を使用 */
    display: none;
}

.hero__title:hover,
.hero__title:hover::before,
.hero__title:hover::after {
    /* CSS版を無効化 - WebGL版を使用 */
    display: none;
}

/* 3Dタイトル登場アニメーション */
@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(-90deg) translateZ(-200px);
        filter: blur(10px);
    }

    50% {
        opacity: 0.7;
        transform: translateY(20px) rotateX(-15deg) translateZ(-50px);
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) translateZ(0px);
        filter: blur(0px);
    }
}

/* グラデーション移動アニメーション */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) brightness(1) saturate(1);
    }

    25% {
        background-position: 100% 100%;
        filter: hue-rotate(90deg) brightness(1.2) saturate(1.3);
    }

    50% {
        background-position: 100% 0%;
        filter: hue-rotate(180deg) brightness(1) saturate(1.5);
    }

    75% {
        background-position: 0% 100%;
        filter: hue-rotate(270deg) brightness(1.2) saturate(1.2);
    }

    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg) brightness(1) saturate(1);
    }
}

/* ===================================
   ヒーロータイトル文字アニメーション
   =================================== */
.hero__title-container {
    /* CSS版を無効化 - WebGL版を使用 */
    display: none;
    /* レスポンシブ対応のための基本設定 */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero__title-letters {
    /* CSS版を無効化 - WebGL版を使用 */
    display: none;
    /* レスポンシブ対応のための基本設定 */
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}

.letter {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #10b981, #f59e0b);
    background-size: 500% 500%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    opacity: 0;
    transform: translateX(-400px) rotateY(-90deg) scale(0.2) translateZ(-200px) rotateZ(-180deg);
    transition: all 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow:
        0 8px 25px rgba(99, 102, 241, 0.6),
        0 15px 50px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(6, 182, 212, 0.3);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    letter-spacing: clamp(-0.2rem, -0.1vw, 0rem);
    display: inline-block;
    white-space: nowrap;
}

.letter.animate-in {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1.1) translateZ(20px) rotateZ(0deg);
    animation: gradientShift 3s ease-in-out infinite, letterPulse 2s ease-in-out infinite, letterFloat 4s ease-in-out infinite;
}

@keyframes letterPulse {

    0%,
    100% {
        transform: translateX(0) rotateY(0deg) scale(1.1) translateZ(20px) rotateZ(0deg);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    }

    50% {
        transform: translateX(0) rotateY(0deg) scale(1.15) translateZ(25px) rotateZ(0deg);
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
    }
}

@keyframes letterFloat {

    0%,
    100% {
        transform: translateX(0) rotateY(0deg) scale(1.1) translateZ(20px) rotateZ(0deg) translateY(0px);
    }

    25% {
        transform: translateX(0) rotateY(2deg) scale(1.1) translateZ(20px) rotateZ(1deg) translateY(-3px);
    }

    50% {
        transform: translateX(0) rotateY(0deg) scale(1.1) translateZ(20px) rotateZ(0deg) translateY(-5px);
    }

    75% {
        transform: translateX(0) rotateY(-2deg) scale(1.1) translateZ(20px) rotateZ(-1deg) translateY(-3px);
    }
}

/* 反射効果 */
.hero__title-reflection {
    opacity: 0.8;
    transform: rotateX(180deg) translateY(10px);
    filter: blur(1px);
}

.letter-reflection {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    background: linear-gradient(180deg, transparent 0%, #6366f1 30%, #8b5cf6 60%, transparent 100%);
    background-size: 500% 500%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite, reflectionWave 4s ease-in-out infinite;
    opacity: 0;
    transform: translateX(-400px) rotateY(-90deg) translateZ(-100px) rotateX(180deg) scaleY(-1);
    transition: all 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: blur(1px) brightness(0.7);
    letter-spacing: clamp(-0.2rem, -0.1vw, 0rem);
    display: inline-block;
    white-space: nowrap;
}

.letter-reflection.animate-in {
    opacity: 0.7;
    transform: translateX(0) rotateY(0deg) translateZ(0px) rotateX(180deg) scaleY(-1);
    animation: gradientShift 3s ease-in-out infinite, reflectionWave 4s ease-in-out infinite, reflectionDistort 6s ease-in-out infinite;
}

@keyframes reflectionDistort {

    0%,
    100% {
        filter: blur(1px) brightness(0.7);
        transform: translateX(0) rotateY(0deg) translateZ(0px) rotateX(180deg) scaleY(-1) skewX(0deg);
    }

    25% {
        filter: blur(2px) brightness(0.6);
        transform: translateX(1px) rotateY(1deg) translateZ(0px) rotateX(180deg) scaleY(-1) skewX(1deg);
    }

    50% {
        filter: blur(1.5px) brightness(0.8);
        transform: translateX(-1px) rotateY(0deg) translateZ(0px) rotateX(180deg) scaleY(-1) skewX(0deg);
    }

    75% {
        filter: blur(2px) brightness(0.6);
        transform: translateX(1px) rotateY(-1deg) translateZ(0px) rotateX(180deg) scaleY(-1) skewX(-1deg);
    }
}

@keyframes reflectionWave {

    0%,
    100% {
        transform: translateX(0) scaleX(1);
        filter: blur(1px);
    }

    50% {
        transform: translateX(2px) scaleX(0.98);
        filter: blur(1.5px);
    }
}

.hero__subtitle {
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    /* animation: fadeInUp 1s ease 0.4s both; */
}

.hero__description {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero__buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    /* animation: fadeInUp 1s ease 0.8s both; */
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease 1s both;
}

.hero__scroll-text {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.hero__scroll-icon {
    width: 0.2rem;
    height: 3rem;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 1rem;
    position: relative;
}

.hero__scroll-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.6rem;
    height: 0.6rem;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(1rem);
    }

    60% {
        transform: translateX(-50%) translateY(0.5rem);
    }
}

/* ===================================
   作品セクション
   =================================== */
.works {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
    perspective: 2000px;
    perspective-origin: center;
}

.work-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.work-card:hover {
    transform: translateZ(100px) translateY(-20px) rotateX(5deg) scale(1.05);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(99, 102, 241, 0.3),
        0 0 100px rgba(99, 102, 241, 0.1);
    z-index: 100;
}

/* 3D光沢エフェクト */
.work-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 10;
}

.work-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* 3D深度シャドウ */
.work-card::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 30px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 70%
    );
    transform: translateY(0) scaleX(1);
    transition: all 0.6s ease;
    opacity: 0;
}

.work-card:hover::after {
    transform: translateY(20px) scaleX(1.2);
    opacity: 1;
}

.work-card__award {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.work-card__year-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
}

.work-card__note {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.work-card__details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
}

.work-card__detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.work-card__detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 1.3rem;
    white-space: nowrap;
    padding-right: 1em;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.3rem;
}

.work-card__image {
    width: 100%;
    height: 25rem;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.work-card__main-image {
    border-radius: 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.placeholder-image h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.placeholder-image p {
    font-size: 1rem;
    opacity: 0.8;
}

.work-card:hover .work-card__image img {
    transform: scale(1.1);
}

.work-card__content {
    padding: 2.5rem;
}

.work-card__title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.work-card__description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.work-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.work-card__tag {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--text-primary);
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 詳細情報の折りたたみ */
.work-card__details {
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card__details[open] {
    border-color: var(--primary-color);
}

.work-card__details-summary {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
}

.work-card__details-summary::-webkit-details-marker {
    display: none;
}

.work-card__details-summary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.work-card__details-summary i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.work-card__details[open] .work-card__details-summary i {
    transform: rotate(180deg);
}

.work-card__details-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    animation: detailsSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

@keyframes detailsSlideIn {
    0% {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        max-height: 500px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        transform: translateY(0);
    }
}

.work-card__responsibilities,
.work-card__features-section {
    animation: detailsFadeInUp 0.5s ease forwards;
    opacity: 0;
}

.work-card__responsibilities {
    animation-delay: 0.1s;
}

.work-card__features-section {
    animation-delay: 0.2s;
}

@keyframes detailsFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card__features {
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
    margin: 0;
}

/* 担当箇所セクション */
.work-card__responsibilities {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-card__responsibilities-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.work-card__responsibilities-title i {
    font-size: 0.9rem;
}

.work-card__responsibilities-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* 詳細説明セクション */
.work-card__details-content>.work-card__features-section:first-child {
    padding-top: 0;
    border-top: none;
}

.work-card__features-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.work-card__features-title i {
    font-size: 0.9rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card__buttons {
    display: flex;
    gap: 1rem;
}

.work-card__button {
    flex: 0 0 calc(50% - 0.5rem);
    padding: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

/* 非表示ボタン用のスタイル */
.work-card__button--hidden {
    visibility: hidden;
    pointer-events: none;
}

/* ===================================
   セクション出現アニメーション
   =================================== */
.section-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* セクションタイトルは最初から見える状態に */
.section__title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===================================
   スキルセクション
   =================================== */
.skills {
    padding: 10rem 0;
}

.skills__note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin: -2rem auto 4rem;
    max-width: 60rem;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.skills__note i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.skills__grid {
    display: grid;
    gap: 3rem;
    max-width: 80rem;
    margin: 0 auto;
}

.skill {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    border-left: 4px solid var(--primary-color);

    /* 初期状態 - アニメーション前 */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* アニメーション適用後 */
.skill.skill-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.skill:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--box-shadow);
    border-left-color: var(--accent-color);
}

.skill__header {
    margin-bottom: 1.5rem;
}

.skill__name {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill__name::before {
    content: '▶';
    color: var(--primary-color);
    font-size: 1.4rem;
}

.skill__description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.6rem;
}

/* ===================================
   ゲーム的UIエフェクト
   =================================== */
/* スキルレベルシステム */
.skill-level-badge {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.level-number {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.exp-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin: 0.5rem 0;
    overflow: hidden;
    position: relative;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    position: relative;
}

.exp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.exp-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* レベルアップアニメーション */
.level-up-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: levelUpFade 2s ease-out;
    pointer-events: none;
}

@keyframes levelUpFade {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.level-up-content {
    position: relative;
    text-align: center;
}

.level-up-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    animation: flashExpand 0.5s ease-out;
}

@keyframes flashExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.level-up-text {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: levelUpBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    letter-spacing: 0.2em;
}

@keyframes levelUpBounce {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.level-up-number {
    font-family: var(--font-primary);
    font-size: 6rem;
    font-weight: 900;
    color: white;
    text-shadow: 
        0 0 30px rgba(99, 102, 241, 1),
        0 0 60px rgba(99, 102, 241, 0.7),
        4px 4px 8px rgba(0, 0, 0, 0.8);
    animation: levelUpNumber 0.8s ease-out 0.3s backwards;
}

@keyframes levelUpNumber {
    0% {
        transform: translateY(50px) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.level-up-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.level-up-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #FFD700, transparent);
    border-radius: 50%;
    animation: particleBurst 1.5s ease-out forwards;
    top: 50%;
    left: 50%;
}

@keyframes particleBurst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(-50% + var(--tx, 100px)),
            calc(-50% + var(--ty, -100px))
        ) scale(0);
        opacity: 0;
    }
}

/* HP/MPバー */
.game-stats {
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.stat-bar {
    margin-bottom: 1.5rem;
}

.stat-bar:last-child {
    margin-bottom: 0;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.4rem;
}

.stat-label i {
    font-size: 1.6rem;
}

.hp-bar .stat-label {
    color: #ff4444;
}

.hp-bar .stat-label i {
    color: #ff4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

.mp-bar .stat-label {
    color: #44aaff;
}

.mp-bar .stat-label i {
    color: #ff6600;
}

.exp-bar-game .stat-label {
    color: #ffd700;
}

.exp-bar-game .stat-label i {
    color: #ffd700;
}

.stat-bar-container {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-bar-fill {
    height: 100%;
    width: 0;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
}

.hp-fill {
    background: linear-gradient(90deg, #ff0000, #ff6666);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.mp-fill {
    background: linear-gradient(90deg, #0066ff, #66aaff);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.exp-fill {
    background: linear-gradient(90deg, #ffa500, #ffd700);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

.stat-value {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* 経験言語タグ表示 */
.exp-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.exp-lang {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 215, 0, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: expLangFadeIn 0.5s ease forwards;
}

.exp-lang:nth-child(1) { animation-delay: 0.1s; }
.exp-lang:nth-child(2) { animation-delay: 0.2s; }
.exp-lang:nth-child(3) { animation-delay: 0.3s; }
.exp-lang:nth-child(4) { animation-delay: 0.4s; }
.exp-lang:nth-child(5) { animation-delay: 0.5s; }
.exp-lang:nth-child(6) { animation-delay: 0.6s; }
.exp-lang:nth-child(7) { animation-delay: 0.7s; }
.exp-lang:nth-child(8) { animation-delay: 0.8s; }

.exp-lang:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 215, 0, 0.4));
    border-color: rgba(255, 215, 0, 0.8);
}

@keyframes expLangFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===================================
   Aboutセクション
   =================================== */
.about {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3rem;
    align-items: start;
}

/* 左上: アイコン */
.about__image {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

/* 右上・右下: テキスト（2行分） */
.about__text {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* 左下: ステータスバー（JavaScriptで追加） */
.game-stats {
    grid-column: 1;
    grid-row: 2;
}

.about__subtitle {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about__description {
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.about__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.about__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.about__link:hover {
    background: var(--primary-color);
    transform: translateY(-0.2rem);
}

.about__image {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

.about__avatar {
    width: 20rem;
    height: 20rem;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5),
                0 0 60px rgba(168, 85, 247, 0.3);
}

.about__avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about__avatar-placeholder {
    font-size: 6rem;
    color: var(--text-primary);
}

/* ===================================
   タイムライン（SourceTree風）
   =================================== */
.about__timeline {
    margin-top: 6rem;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.about__timeline-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.about__timeline-subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-container {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.timeline-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.timeline-main-line {
    position: absolute;
    top: 125px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.timeline-dates {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.timeline-date--current {
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-item {
    position: absolute;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-node {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    border: 3px solid #1a1a2e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-node:hover {
    transform: scale(1.1);
}

.timeline-duration-bar {
    position: absolute;
    top: 23px;
    left: 50px;
    height: 4px;
    border-radius: 2px;
    opacity: 0.8;
    z-index: 5;
}

.timeline-card {
    position: absolute;
    top: 70px;
    left: -100px;
    width: 300px;
    background: var(--bg-card);
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.timeline-item:hover .timeline-card {
    opacity: 1;
    pointer-events: auto;
}

.timeline-item--milestone .timeline-card {
    top: -180px;
}

.timeline-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.timeline-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.timeline-card__date {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.timeline-card__award {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.timeline-card__status {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.timeline-card__description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.timeline-card__tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.timeline-card__duration {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
}

.timeline-connection {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .timeline-container {
        height: 300px;
        padding: 2rem;
    }

    .timeline-card {
        width: 250px;
        left: -75px;
        padding: 1.5rem;
    }

    .timeline-node {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .about__timeline-title {
        font-size: 2.4rem;
    }
}

/* ===================================
   コンタクトセクション
   =================================== */
.contact {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact__subtitle {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact__description {
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.contact__form {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form__group {
    margin-bottom: 2.5rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1.6rem;
    transition: all var(--transition-normal);
    resize: vertical;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(99, 102, 241, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}

/* ===================================
   更新履歴セクション
   =================================== */
.updates {
    padding: 10rem 0;
    background: var(--bg-primary);
}

.updates__content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.updates__simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 500px;
    width: 100%;
}

.updates__subtitle {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.updates__last-modified {
    background: var(--bg-card);
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--primary-color);
    width: 100%;
}

.updates__date {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
}

.updates__action {
    text-align: center;
}

.updates__action .btn {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.updates__action .btn--primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.updates__action .btn--primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-0.2rem);
    box-shadow: 0 1rem 3rem rgba(99, 102, 241, 0.3);
}

.updates .update-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2rem;
    opacity: 1;
    visibility: visible;
}

.updates .update-item:last-child {
    margin-bottom: 0;
}

.updates .update-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.updates .update-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1.5rem;
    width: 0.2rem;
    height: calc(100% + 1rem);
    background: var(--primary-color);
    opacity: 0.3;
}

.updates .update-item__date {
    min-width: 12rem;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 600;
}

.updates .update-item__content {
    flex: 1;
}

.updates .update-item__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.updates .update-item__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__text {
    color: var(--text-muted);
    font-size: 1.4rem;
}

/* ===================================
   ユーティリティクラス
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(3rem);
    transition: all 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   軽微なカードフリップアニメーション
   =================================== */
.work-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(99, 102, 241, 0.1);
}

/* ===================================
   タイムラインページ専用スタイル
   =================================== */

/* タイムラインヒーローセクション */
.timeline-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.timeline-hero__content {
    margin-bottom: 60px;
}

.timeline-hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.timeline-hero__description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-hero__stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.timeline-stat {
    text-align: center;
}

.timeline-stat__number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #fbbf24;
}

.timeline-stat__label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* タイムラインセクション */
.timeline-section {
    padding: 80px 0 120px 0;
    /* 下部パディングを適切なサイズに調整 */
    background: var(--bg-primary);
    min-height: 100vh;
    /* 通常の高さに調整 */
}

.timeline-section .section__subtitle {
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* シンプルタイムライン（メインページ用） */
.simple-timeline {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.simple-timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.simple-timeline-item:nth-child(n) {
    animation-delay: calc(var(--index, 0) * 0.1s);
}

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

.simple-timeline-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.simple-timeline-content {
    flex: 1;
}

.simple-timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.simple-timeline-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.simple-timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.simple-timeline-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.timeline__cta {
    text-align: center;
    margin-top: 3rem;
}

/* タイムラインアニメーション */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About タイムラインリンク */
.about__timeline-link {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.about__timeline-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.about__timeline-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* タイムラインナビゲーション */
.timeline-navigation {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-navigation__content {
    text-align: center;
}

.timeline-navigation__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* アクティブナビゲーションリンク */
.header__nav-link--active {
    color: var(--primary-color) !important;
    font-weight: 500;
    position: relative;
}

.header__nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* ヘッダータイトルリンク */
.header__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__title-link:hover {
    color: var(--primary-color);
}

/* フッター拡張 */
.footer__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer__brand {
    flex: 1;
    min-width: 250px;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer__links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer__section {
    min-width: 150px;
}

.footer__section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer__link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__link-list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;

    /* 初期状態 - アニメーション前 */
    opacity: 0;
    transform: translateY(20px);
}

.footer__link i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* アニメーション適用後 */
.footer__link.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.footer__link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer__link:hover i {
    transform: scale(1.2) translateY(-3px);
    animation: float 1s ease-in-out infinite;
}

/* SNSリンクのパルス効果 */
.footer__section:last-child .footer__link.animate-in i {
    animation: pulse-icon 2s ease-in-out infinite;
}

/* アイコンが浮き上がるアニメーション */
@keyframes float {

    0%,
    100% {
        transform: scale(1.2) translateY(-3px);
    }

    50% {
        transform: scale(1.2) translateY(-8px);
    }
}

/* パルスアニメーション */
@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer__text {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .timeline-hero {
        padding: 100px 0 60px;
    }

    .timeline-hero__title {
        font-size: 2.5rem;
    }

    .timeline-hero__stats {
        gap: 2rem;
    }

    .timeline-stat__number {
        font-size: 2rem;
    }

    .footer__main {
        flex-direction: column;
        gap: 2rem;
    }

    .footer__links {
        gap: 2rem;
    }

    .about__timeline-link {
        padding: 1.5rem;
    }
}

/* ===================================
   タイムライン（スクロールドリブン版）
   =================================== */

/* スクロールタイムラインコンテナ */
.scroll-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0 8rem 0;
    /* 下部マージンを適切なサイズに調整 */
    min-height: auto;
    /* 自動高さに変更 */
}

/* プログレスライン */
.timeline-progress-line {
    position: fixed;
    left: 50%;
    top: 120px;
    bottom: 200px;
    /* 下部マージンを増加 */
    width: 4px;
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 5;
}

.timeline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom,
            #10b981 0%,
            #6366f1 25%,
            #06b6d4 50%,
            #f59e0b 75%,
            #ec4899 100%);
    border-radius: 2px;
    transition: height 0.1s ease-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* タイムラインアイテム */
.scroll-timeline-item {
    position: relative;
    margin: 6rem 0;
    /* アイテム間のスペースを適切に調整 */
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 最後のアイテムには追加のマージン */
.scroll-timeline-item:last-child {
    margin-bottom: 8rem;
    /* 最後のアイテムのマージンを適切に調整 */
}

/* タイムラインエラー表示 */
.timeline-error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.timeline-error h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-error p {
    font-size: 1rem;
    opacity: 0.8;
}

.scroll-timeline-item--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 左右の配置 */
.scroll-timeline-item--left {
    padding-right: calc(50% + 3rem);
    text-align: right;
}

.scroll-timeline-item--right {
    padding-left: calc(50% + 3rem);
    text-align: left;
}

/* ノード */
.scroll-timeline-node {
    position: absolute;
    top: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: 5px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--primary-color), 0 0 30px rgba(99, 102, 241, 0.4);
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
}

.scroll-timeline-item--left .scroll-timeline-node {
    right: calc(50% - 30px);
}

.scroll-timeline-item--right .scroll-timeline-node {
    left: calc(50% - 30px);
}

.scroll-timeline-node.node-activated {
    transform: scale(1);
    box-shadow: 0 0 0 5px var(--primary-color), 0 0 40px rgba(99, 102, 241, 0.6);
}

.scroll-timeline-node i {
    color: white;
    font-size: 1.4rem;
    z-index: 2;
}

/* ノードパルスエフェクト */
.timeline-node-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
}

.timeline-node-pulse.pulse-animation {
    animation: pulse-expand 2s infinite;
}

@keyframes pulse-expand {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* カード */
.scroll-timeline-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.scroll-timeline-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* カード装飾 */
.timeline-card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.scroll-timeline-item--left .timeline-card-decoration {
    background: linear-gradient(to left, var(--primary-color), transparent);
}

.scroll-timeline-item--right .timeline-card-decoration {
    background: linear-gradient(to right, var(--primary-color), transparent);
}

/* カードコンテンツ */
.timeline-card-content {
    padding: 2rem 5em;
}

.timeline-card__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.timeline-card__date {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.scroll-timeline-item--left .timeline-card__date {
    justify-content: flex-end;
}

/* カードボディ */
.timeline-card__body {
    color: var(--text-secondary);
}

.timeline-card__description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* 技術タグ */
.timeline-card__tech {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.scroll-timeline-item--left .timeline-card__tech {
    justify-content: flex-end;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* 詳細情報 */
.timeline-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.scroll-timeline-item--left .timeline-detail {
    justify-content: flex-end;
}

.timeline-detail--award {
    color: #f59e0b;
}

.timeline-detail--duration {
    color: var(--accent-color);
}

.timeline-detail--status {
    color: var(--text-muted);
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* レスポンシブ対応 */
@media (max-width: 968px) {
    .timeline-progress-line {
        left: 3rem;
    }

    .scroll-timeline-item--left,
    .scroll-timeline-item--right {
        padding-left: 5rem;
        padding-right: 1rem;
        text-align: left;
    }

    .scroll-timeline-node {
        left: calc(3rem - 30px) !important;
        right: auto !important;
    }

    .timeline-card__date,
    .timeline-card__tech,
    .timeline-detail {
        justify-content: flex-start !important;
    }

    .scroll-timeline-item {
        margin: 6rem 0;
    }

    .timeline-card-content {
        padding: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .scroll-timeline {
        padding: 2rem 0 4rem 0;
    }

    .timeline-progress-line {
        left: 2rem;
    }

    .scroll-timeline-item--left,
    .scroll-timeline-item--right {
        padding-left: 4rem;
        margin: 4rem 0;
    }

    .scroll-timeline-node {
        left: calc(2rem - 25px) !important;
        width: 50px;
        height: 50px;
    }

    .scroll-timeline-node i {
        font-size: 1.2rem;
    }

    .timeline-card__title {
        font-size: 1.3rem;
    }

    .timeline-card__description {
        font-size: 1rem;
    }
}

/* ===================================
   画像スライダー
   =================================== */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.single-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.locked-image {
    filter: grayscale(0.5) brightness(0.7);
    cursor: default !important;
}

.locked-image .clickable-image {
    cursor: default !important;
}

.locked-image:hover .clickable-image {
    transform: none !important;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 3;
}

.lock-overlay i {
    font-size: 1.5rem;
    color: #ffc107;
}

.lock-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
}

.play-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
}

.image-slider:hover .play-hint,
.single-image-container:hover .play-hint {
    opacity: 1;
}

.play-hint i {
    font-size: 1.2rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    border-radius: 0;
}

.slider-image.active {
    opacity: 1;
}

.slider-image:hover {
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.image-slider:hover .slider-controls {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-slider:hover .slider-indicators {
    opacity: 1;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .slider-controls {
        opacity: 1;
        pointer-events: auto;
    }

    .slider-indicators {
        opacity: 1;
    }

    .play-hint {
        opacity: 1;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .lock-overlay {
        opacity: 1;
        font-size: 0.8rem;
        padding: 0.8rem 1.2rem;
    }

    .lock-overlay i {
        font-size: 1.2rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .clickable-image:hover {
        transform: none;
    }

    .slider-image:hover {
        transform: none;
    }

    .locked-image:hover .clickable-image {
        transform: none;
    }
}

.scroll-hint {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-hint-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-hint-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* タイムライン レスポンシブ対応 */
@media (max-width: 768px) {
    .simple-timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .simple-timeline-icon {
        align-self: center;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .simple-timeline-title {
        font-size: 1.1rem;
    }

    .timeline-section {
        padding: 60px 0;
    }
}

/* セクションタイトルの強制表示 */
.section__title.no-animate,
.section__title {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateY(0) !important;
}

/* ===================================
   セクション背景テキスト装飾
   =================================== */
.section__bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    font-family: var(--font-primary);
    font-size: clamp(8rem, 20vw, 25rem);
    font-weight: 900;
    color: rgba(99, 102, 241, 0.03);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
    letter-spacing: 0.1em;

    /* デフォルト: フェードイン + スケール */
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-20deg) scale(0.8);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.section__bg-text.visible {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-20deg) scale(1);
}

/* オプション2: ブラー効果版（コメントを外すと有効化）*/
/*
.section__bg-text {
    opacity: 0;
    filter: blur(30px);
    transform: translate(-50%, -50%) rotate(-20deg);
    transition: opacity 1.2s ease-out, filter 1.2s ease-out;
}

.section__bg-text.visible {
    opacity: 1;
    filter: blur(0px);
}
*/

/* セクションに相対位置を設定 */
.works,
.skills,
.about,
.contact,
.updates {
    position: relative;
    overflow: hidden;
}

/* data属性から文字列を取得して表示 */
.section__bg-text::before {
    content: attr(data-text);
}

/* ===================================
   スキルカード展開システム
   =================================== */
.skill-expand-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

.skill-expand-overlay.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.skill--expanded {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3) !important;
    overflow: visible !important;
    /* 画質改善のための設定 */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: crisp-edges;
    transform-style: preserve-3d;
}

/* 展開時にレベルバッジを非表示 */
.skill--expanded .skill-level-badge {
    display: none !important;
}

/* 展開時に元のdescriptionを非表示 */
.skill--expanded .skill__description {
    display: none !important;
}

/* 詳細コンテンツ */
.skill-details-content {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(15, 15, 35, 0.98);
    border-radius: 15px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    /* 画質改善 */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.skill-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.skill-details-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.skill-details-close {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-details-close:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* 統計情報 */
.skill-details-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.skill-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.skill-stat i {
    font-size: 2rem;
}

/* 詳細セクション */
.skill-details-section {
    margin-bottom: 2rem;
}

.skill-details-subtitle {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-details-subtitle i {
    font-size: 2.2rem;
}

/* スキルグリッド */
.skill-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.skill-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: slideInFromLeft 0.5s ease backwards;
}

.skill-detail-item:nth-child(1) { animation-delay: 0.1s; }
.skill-detail-item:nth-child(2) { animation-delay: 0.15s; }
.skill-detail-item:nth-child(3) { animation-delay: 0.2s; }
.skill-detail-item:nth-child(4) { animation-delay: 0.25s; }
.skill-detail-item:nth-child(5) { animation-delay: 0.3s; }
.skill-detail-item:nth-child(6) { animation-delay: 0.35s; }
.skill-detail-item:nth-child(7) { animation-delay: 0.4s; }
.skill-detail-item:nth-child(8) { animation-delay: 0.45s; }

.skill-detail-item:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.skill-detail-item i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.skill-detail-item span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* フッター */
.skill-details-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.skill-details-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
}

.skill-details-note i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header__controls {
        margin-left: 1rem;
        gap: 0.5rem;
    }

    .skill--expanded {
        width: 95vw !important;
    }

    .skill-details-content {
        padding: 1.5rem;
    }

    .skill-details-title {
        font-size: 2.2rem;
    }

    .skill-details-close {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
    }

    .skill-details-grid {
        grid-template-columns: 1fr;
    }

    .skill-details-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .skill-stat {
        width: 100%;
    }
}