:root {
    --bg-gradient: radial-gradient(ellipse at top, #1a1a2e 0%, #16213e 25%, #0f0f23 50%, #000000 100%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    --text-strong: #ffffff;
    --text-normal: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.7);
    --surface-glass: rgba(255, 255, 255, 0.08);
    --surface-glass-hover: rgba(255, 255, 255, 0.12);
    --surface-border: rgba(255, 255, 255, 0.15);
    --surface-border-strong: rgba(255, 255, 255, 0.25);
    --control-bg: rgba(255, 255, 255, 0.12);
    --control-border: rgba(255, 255, 255, 0.25);
    --control-icon: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] {
    --bg-gradient: radial-gradient(ellipse at top, #f4f7fb 0%, #e9eef6 25%, #dde5f0 50%, #d8e0ea 100%),
        linear-gradient(135deg, #ffffff 0%, #f7f9fc 50%, #ecf1f7 100%);
    --text-strong: #0f172a;
    --text-normal: rgba(15, 23, 42, 0.9);
    --text-muted: rgba(15, 23, 42, 0.7);
    --surface-glass: rgba(15, 23, 42, 0.06);
    --surface-glass-hover: rgba(15, 23, 42, 0.08);
    --surface-border: rgba(15, 23, 42, 0.12);
    --surface-border-strong: rgba(15, 23, 42, 0.18);
    --control-bg: rgba(15, 23, 42, 0.06);
    --control-border: rgba(15, 23, 42, 0.18);
    --control-icon: rgba(15, 23, 42, 0.9);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-gradient);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 40px 20px;
}

/* モバイルのテキストはみ出し対策 */
* {
    box-sizing: border-box;
}

.glass-card h1,
.glass-card h2,
.work-title,
.work-description,
.tech-tag,
.profile-value,
.profile-label,
.social-link {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* コントロールバー（テーマ/言語） */
.control-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 11;
    display: flex;
    gap: 10px;
}

.toggle-btn, .lang-select {
    background: var(--control-bg);
    border: 1px solid var(--control-border);
    color: var(--text-strong);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toggle-btn:hover, .lang-select:hover {
    background: var(--surface-glass-hover);
}

/* 大画面でのスクロールインジケーター調整 */
@media (min-width: 1440px) {
    .scroll-indicator {
        right: 40px;
        gap: 18px;
    }
    
    .scroll-dot {
        width: 14px;
        height: 14px;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .scroll-indicator {
        right: 35px;
        gap: 16px;
    }
    
    .scroll-dot {
        width: 13px;
        height: 13px;
    }
}

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

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

.scroll-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.scroll-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.scroll-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

.scroll-dot.active::after {
    width: 20px;
}

/* 宇宙のアニメーション */
.universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 星雲 */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: nebulaFloat 20s ease-in-out infinite;
}

.nebula-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(75, 0, 130, 0.2) 50%, transparent 100%);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.nebula-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3) 0%, rgba(220, 20, 60, 0.2) 50%, transparent 100%);
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.nebula-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.3) 0%, rgba(0, 100, 200, 0.2) 50%, transparent 100%);
    bottom: 20%;
    left: 10%;
    animation-delay: -14s;
}

/* 惑星 */
.planet {
    position: absolute;
    border-radius: 50%;
    animation: planetOrbit 30s linear infinite;
}

.planet-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    top: 20%;
    left: 70%;
    animation-delay: 0s;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.planet-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    top: 70%;
    left: 80%;
    animation-delay: -10s;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

.planet-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    bottom: 30%;
    left: 20%;
    animation-delay: -20s;
    box-shadow: 0 0 18px rgba(254, 202, 87, 0.5);
}

/* 小惑星 */
.asteroid {
    position: absolute;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 30%;
    animation: asteroidFloat 15s ease-in-out infinite;
}

.asteroid-1 {
    width: 15px;
    height: 15px;
    top: 15%;
    left: 30%;
    animation-delay: 0s;
}

.asteroid-2 {
    width: 12px;
    height: 12px;
    top: 40%;
    left: 60%;
    animation-delay: -3s;
}

.asteroid-3 {
    width: 18px;
    height: 18px;
    top: 65%;
    left: 25%;
    animation-delay: -6s;
}

.asteroid-4 {
    width: 10px;
    height: 10px;
    top: 80%;
    left: 70%;
    animation-delay: -9s;
}

.asteroid-5 {
    width: 14px;
    height: 14px;
    top: 25%;
    left: 85%;
    animation-delay: -12s;
}

/* 星 */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-1 {
    width: 2px;
    height: 2px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 80%;
    animation-delay: 0.5s;
}

.star-3 {
    width: 2px;
    height: 2px;
    top: 30%;
    left: 15%;
    animation-delay: 1s;
}

.star-4 {
    width: 4px;
    height: 4px;
    top: 50%;
    left: 90%;
    animation-delay: 1.5s;
}

.star-5 {
    width: 2px;
    height: 2px;
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.star-6 {
    width: 3px;
    height: 3px;
    top: 75%;
    left: 75%;
    animation-delay: 2.5s;
}

.star-7 {
    width: 2px;
    height: 2px;
    top: 85%;
    left: 40%;
    animation-delay: 0.3s;
}

.star-8 {
    width: 4px;
    height: 4px;
    top: 35%;
    left: 50%;
    animation-delay: 1.8s;
}

.star-9 {
    width: 3px;
    height: 3px;
    top: 45%;
    left: 25%;
    animation-delay: 0.8s;
}

.star-10 {
    width: 2px;
    height: 2px;
    top: 90%;
    left: 60%;
    animation-delay: 2.2s;
}

/* アニメーション */
@keyframes nebulaFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-10px, 20px) scale(0.9);
        opacity: 0.2;
    }
    75% {
        transform: translate(30px, 10px) scale(1.05);
        opacity: 0.35;
    }
}

@keyframes planetOrbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes asteroidFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg);
    }
    75% {
        transform: translate(40px, 10px) rotate(270deg);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.card-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 35px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px 0 rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.profile-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.avatar-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.glass-card h1 {
    color: var(--text-strong);
    margin: 0 0 25px 0;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.glass-card h2 {
    color: var(--text-strong);
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.glass-card p {
    color: var(--text-normal);
    margin: 0;
    line-height: 1.7;
    font-size: 17px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* プロフィール情報 */
.profile-info {
    margin: 30px 0;
    text-align: left;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 10px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.profile-item:hover .profile-icon {
    fill: rgba(255, 255, 255, 0.9);
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-icon {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.profile-value {
    color: var(--text-strong);
    font-weight: 600;
    font-size: 19px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* アコーディオンヘッダー */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 0;
    border-radius: 10px;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.accordion-header:hover .accordion-icon {
    fill: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* スキルコンテンツ */
.skills-content {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
}

/* Worksコンテンツ */
.works-content {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
}

/* Works カルーセル */
.works-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.works-viewport {
    overflow: hidden;
    width: 100%;
}

.works-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.works-nav {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.works-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.works-nav-icon {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.9);
}

/* 2件ずつ横並びに見せるための item 幅調整 */
.works-track > .work-item {
    min-width: calc(50% - 15px);
    box-sizing: border-box;
}

/* スキルセクション */
.skills-grid {
    display: grid;
    gap: 25px;
    margin-top: 25px;
}

.skill-item {
    text-align: left;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
}

.skill-name {
    display: block;
    color: var(--text-strong);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc, #0066aa);
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.skill-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%);
    }
}

/* ソーシャルリンクセクション */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 140px;
    justify-content: center;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.social-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

.social-link:focus {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-link:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.github-link:hover {
    background: rgba(36, 41, 46, 0.95);
    border-color: rgba(36, 41, 46, 0.95);
    box-shadow: 
        0 15px 40px rgba(36, 41, 46, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(36, 41, 46, 0.5);
    color: #ffffff;
}

.x-link:hover {
    background: rgba(29, 161, 242, 0.95);
    border-color: rgba(29, 161, 242, 0.95);
    box-shadow: 
        0 15px 40px rgba(29, 161, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(29, 161, 242, 0.5);
    color: #ffffff;
}

.zenn-link:hover {
    background: rgba(58, 58, 58, 0.95);
    border-color: rgba(58, 58, 58, 0.95);
    box-shadow: 
        0 15px 40px rgba(58, 58, 58, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(58, 58, 58, 0.5);
    color: #ffffff;
}

.qiita-link:hover {
    background: rgba(85, 197, 0, 0.95);
    border-color: rgba(85, 197, 0, 0.95);
    box-shadow: 
        0 15px 40px rgba(85, 197, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(85, 197, 0, 0.5);
    color: #ffffff;
}

/* 成果物セクション */
.works-grid {
    display: grid;
    gap: 30px;
    margin-top: 25px;
}

.work-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.work-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.work-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.work-icon {
    width: 48px;
    height: 48px;
    fill: rgba(255, 255, 255, 0.6);
}

.work-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.work-title {
    color: var(--text-strong);
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.work-description {
    color: var(--text-normal);
    margin: 0;
    line-height: 1.6;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.work-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.work-links {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.work-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.work-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.work-link-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.work-link:hover .work-link-icon {
    transform: scale(1.1);
}

/* 大画面デスクトップ向け（1440px以上） */
@media (min-width: 1440px) {
    body {
        padding: 80px 60px;
    }
    
    .card-container {
        gap: 60px;
        max-width: 1200px;
        padding: 40px;
    }
    
    .glass-card {
        padding: 60px;
    }
    
    .glass-card h1 {
        font-size: 48px;
        margin-bottom: 35px;
    }
    
    .glass-card h2 {
        font-size: 40px;
        margin-bottom: 45px;
    }
    
    .profile-info {
        margin: 50px 0;
    }
    
    .profile-item {
        padding: 25px 0;
    }
    
    .profile-label {
        font-size: 22px;
    }
    
    .profile-value {
        font-size: 24px;
    }
    
    .profile-icon {
        width: 24px;
        height: 24px;
    }
    
    .avatar-image {
        width: 120px;
        height: 120px;
    }
    
    .skills-grid {
        gap: 35px;
        margin-top: 35px;
    }
    
    .skill-name {
        font-size: 20px;
    }
    
    .skill-bar {
        height: 14px;
    }
    
    .social-links {
        gap: 30px;
    }
    
    .social-row {
        gap: 40px;
    }
    
    .social-link {
        padding: 20px 36px;
        font-size: 18px;
        min-width: 200px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .accordion-icon {
        width: 32px;
        height: 32px;
    }
    
    .works-grid {
        gap: 45px;
        margin-top: 40px;
    }
    
    .work-item {
        padding: 40px;
        gap: 35px;
    }
    
    .work-image {
        width: 180px;
        height: 180px;
    }
    
    .work-icon {
        width: 70px;
        height: 70px;
    }
    
    .work-title {
        font-size: 28px;
    }
    
    .work-description {
        font-size: 20px;
        line-height: 1.8;
    }
    
    .tech-tag {
        padding: 10px 18px;
        font-size: 15px;
    }
    
    .work-link {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .work-link-icon {
        width: 20px;
        height: 20px;
    }
}

/* 中画面デスクトップ向け（1200px以上） */
@media (min-width: 1200px) and (max-width: 1439px) {
    body {
        padding: 70px 50px;
    }
    
    .card-container {
        gap: 55px;
        max-width: 1100px;
        padding: 35px;
    }
    
    .glass-card {
        padding: 55px;
    }
    
    .glass-card h1 {
        font-size: 45px;
        margin-bottom: 32px;
    }
    
    .glass-card h2 {
        font-size: 38px;
        margin-bottom: 42px;
    }
    
    .profile-info {
        margin: 45px 0;
    }
    
    .profile-item {
        padding: 22px 0;
    }
    
    .profile-label {
        font-size: 20px;
    }
    
    .profile-value {
        font-size: 22px;
    }
    
    .profile-icon {
        width: 22px;
        height: 22px;
    }
    
    .avatar-image {
        width: 110px;
        height: 110px;
    }
    
    .skills-grid {
        gap: 32px;
        margin-top: 32px;
    }
    
    .skill-name {
        font-size: 19px;
    }
    
    .skill-bar {
        height: 13px;
    }
    
    .social-links {
        gap: 27px;
    }
    
    .social-row {
        gap: 37px;
    }
    
    .social-link {
        padding: 19px 34px;
        font-size: 17px;
        min-width: 190px;
    }
    
    .social-icon {
        width: 27px;
        height: 27px;
    }
    
    .accordion-icon {
        width: 31px;
        height: 31px;
    }
    
    .works-grid {
        gap: 42px;
        margin-top: 37px;
    }
    
    .work-item {
        padding: 37px;
        gap: 32px;
    }
    
    .work-image {
        width: 165px;
        height: 165px;
    }
    
    .work-icon {
        width: 65px;
        height: 65px;
    }
    
    .work-title {
        font-size: 27px;
    }
    
    .work-description {
        font-size: 19px;
        line-height: 1.75;
    }
    
    .tech-tag {
        padding: 9px 17px;
        font-size: 14px;
    }
    
    .work-link {
        padding: 13px 22px;
        font-size: 15px;
    }
    
    .work-link-icon {
        width: 19px;
        height: 19px;
    }
}

/* デスクトップ向け（1024px以上） */
@media (min-width: 1024px) {
    body {
        padding: 60px 40px;
        align-items: flex-start;
    }
    
    .card-container {
        gap: 50px;
        max-width: 1000px;
        padding: 30px;
    }
    
    .glass-card {
        padding: 50px;
        margin-bottom: 20px;
    }
    
    .glass-card h1 {
        font-size: 42px;
        margin-bottom: 30px;
    }
    
    .glass-card h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .profile-info {
        margin: 40px 0;
    }
    
    .profile-item {
        padding: 20px 0;
    }
    
    .profile-label {
        font-size: 19px;
    }
    
    .profile-value {
        font-size: 21px;
    }
    
    .profile-icon {
        width: 20px;
        height: 20px;
    }
    
    .avatar-image {
        width: 100px;
        height: 100px;
    }
    
    .skills-grid {
        gap: 30px;
        margin-top: 30px;
    }
    
    .skill-name {
        font-size: 18px;
    }
    
    .skill-bar {
        height: 12px;
    }
    
    .social-links {
        gap: 25px;
    }
    
    .social-row {
        gap: 35px;
    }
    
    .social-link {
        padding: 18px 32px;
        font-size: 17px;
        min-width: 180px;
    }
    
    .social-icon {
        width: 26px;
        height: 26px;
    }
    
    .accordion-icon {
        width: 30px;
        height: 30px;
    }
    
    .works-grid {
        gap: 40px;
        margin-top: 35px;
    }
    
    .work-item {
        padding: 35px;
        gap: 30px;
    }
    
    .work-image {
        width: 150px;
        height: 150px;
    }
    
    .work-icon {
        width: 60px;
        height: 60px;
    }
    
    .work-title {
        font-size: 26px;
    }
    
    .work-description {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .tech-tag {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .work-link {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .work-link-icon {
        width: 18px;
        height: 18px;
    }
}

/* タブレット横向き（1024px以下） */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        padding: 40px 30px;
    }
    
    .scroll-indicator {
        right: 20px;
    }
    
    .scroll-dot {
        width: 10px;
        height: 10px;
    }
    
    .card-container {
        max-width: 800px;
        padding: 25px;
        gap: 35px;
    }
    
    .glass-card {
        padding: 35px;
    }
    
    .glass-card h1 {
        font-size: 32px;
        margin-bottom: 25px;
    }
    
    .glass-card h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .profile-info {
        margin: 30px 0;
    }
    
    .profile-item {
        padding: 15px 0;
    }
    
    .profile-label {
        font-size: 17px;
    }
    
    .profile-value {
        font-size: 19px;
    }
    
    .profile-icon {
        width: 18px;
        height: 18px;
    }
    
    .avatar-image {
        width: 80px;
        height: 80px;
    }
    
    .skills-grid {
        gap: 25px;
        margin-top: 25px;
    }
    
    .skill-name {
        font-size: 17px;
    }
    
    .skill-bar {
        height: 11px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-row {
        gap: 25px;
    }
    
    .social-link {
        padding: 15px 28px;
        font-size: 16px;
        min-width: 160px;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
    }
    
    .accordion-icon {
        width: 26px;
        height: 26px;
    }
    
    .works-grid {
        gap: 30px;
        margin-top: 30px;
    }
    
    .work-item {
        padding: 30px;
        gap: 25px;
    }
    
    .work-image {
        width: 130px;
        height: 130px;
    }
    
    .work-icon {
        width: 50px;
        height: 50px;
    }
    
    .work-title {
        font-size: 24px;
    }
    
    .work-description {
        font-size: 17px;
        line-height: 1.6;
    }
    
    .tech-tag {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .work-link {
        padding: 11px 18px;
        font-size: 14px;
    }
    
    .work-link-icon {
        width: 16px;
        height: 16px;
    }
}

/* タブレット縦向き（768px以下） */
@media (max-width: 768px) and (min-width: 481px) {
    body {
        padding: 30px 20px;
    }
    
    .scroll-indicator {
        right: 15px;
    }
    
    .scroll-dot {
        width: 8px;
        height: 8px;
    }
    
    .card-container {
        max-width: 600px;
        padding: 20px;
        gap: 30px;
    }
    
    .glass-card {
        padding: 30px;
    }
    
    .glass-card h1 {
        font-size: 30px;
        margin-bottom: 25px;
    }
    
    .glass-card h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .accordion-icon {
        width: 22px;
        height: 22px;
    }
    
    .profile-info {
        margin: 25px 0;
    }
    
    .profile-item {
        padding: 12px 0;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .profile-label {
        font-size: 16px;
    }
    
    .profile-value {
        font-size: 18px;
    }
    
    .profile-icon {
        width: 17px;
        height: 17px;
    }
    
    .avatar-image {
        width: 70px;
        height: 70px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-row {
        gap: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        padding: 14px 24px;
        font-size: 15px;
        min-width: 140px;
    }
    
    .social-icon {
        width: 22px;
        height: 22px;
    }
    
    .works-grid {
        gap: 25px;
        margin-top: 25px;
    }
    
    .work-item {
        flex-direction: row;
        padding: 25px;
        gap: 20px;
    }
    
    .work-image {
        width: 110px;
        height: 110px;
        flex-shrink: 0;
    }
    
    .work-icon {
        width: 45px;
        height: 45px;
    }
    
    .work-title {
        font-size: 22px;
        text-align: left;
    }
    
    .work-description {
        font-size: 16px;
        text-align: left;
    }
    
    .work-tech {
        justify-content: flex-start;
    }
    
    .tech-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .work-links {
        justify-content: flex-start;
    }
    
    .work-link {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .work-link-icon {
        width: 15px;
        height: 15px;
    }
    
    .skill-name {
        font-size: 16px;
    }
    
    .skill-bar {
        height: 10px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    
    .card-container {
        padding: 15px;
        gap: 25px;
    }
    
    .glass-card {
        padding: 25px;
    }
    
    .glass-card h1 {
        font-size: 28px;
    }
    
    .glass-card h2 {
        font-size: 22px;
    }
    
    .accordion-icon {
        width: 20px;
        height: 20px;
    }
    
    .profile-info {
        margin: 25px 0;
    }
    
    .profile-item {
        padding: 12px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profile-label {
        font-size: 15px;
    }
    
    .profile-value {
        font-size: 17px;
    }
    
    .profile-icon {
        width: 16px;
        height: 16px;
    }
    
    .avatar-image {
        width: 60px;
        height: 60px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-row {
        gap: 15px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
        width: auto;
        max-width: none;
        flex: 0 1 calc(50% - 15px);
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .nebula {
        filter: blur(30px);
    }
    
    .nebula-1, .nebula-2, .nebula-3 {
        width: 200px;
        height: 200px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .works-grid {
        gap: 20px;
        margin-top: 20px;
    }
    
    .work-item {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    /* スマホではカルーセルを1枚ずつにするため幅を100%に */
    .works-track > .work-item {
        min-width: 100%;
    }
    
    .work-image {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .work-icon {
        width: 40px;
        height: 40px;
    }
    
    .work-title {
        font-size: 20px;
        text-align: center;
    }
    
    .work-description {
        font-size: 15px;
        text-align: center;
    }
    
    .work-tech {
        justify-content: center;
    }
    
    .tech-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .work-links {
        justify-content: center;
    }
    
    .work-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .work-link-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px 5px;
    }
    
    .card-container {
        padding: 10px;
        gap: 20px;
    }
    
    .glass-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .glass-card h1 {
        font-size: 24px;
    }
    
    .glass-card h2 {
        font-size: 20px;
    }
    
    .accordion-header {
        padding: 10px 0;
    }
    
    .accordion-icon {
        width: 18px;
        height: 18px;
    }
    
    .profile-item {
        padding: 10px 0;
    }
    
    .profile-label {
        font-size: 14px;
    }
    
    .profile-value {
        font-size: 16px;
    }
    
    .profile-icon {
        width: 14px;
        height: 14px;
    }
    
    .avatar-image {
        width: 50px;
        height: 50px;
    }
    
    .social-link {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .work-item {
        padding: 15px;
    }
    
    .work-image {
        width: 80px;
        height: 80px;
    }
    
    .work-icon {
        width: 32px;
        height: 32px;
    }
    
    .work-title {
        font-size: 18px;
    }
    
    .work-description {
        font-size: 14px;
    }
    
    .tech-tag {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .work-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .work-link-icon {
        width: 12px;
        height: 12px;
    }
    
    .skill-name {
        font-size: 14px;
    }
    
    .skill-bar {
        height: 8px;
    }
}