/* =============================================
   POP FACTORY — ポップ×プレミアム ダークテーマ
   ============================================= */

:root {
    --bg: #09071f;
    --bg-surface: #15113a;
    --bg-glass: rgba(21, 17, 58, 0.62);
    --text: #f8f8ff;
    --text-muted: #c5bee9;
    --primary: #5e5bff;
    --accent: #ff3f93;
    --highlight: #7dff72;
    --warm: #ffb703;
    --aqua: #37e8ff;
    --violet: #9d4dff;
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'M PLUS Rounded 1c', sans-serif;
    --border-radius: 24px;
    --padding-section: 8rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background:
        radial-gradient(1100px 700px at -15% -10%, rgba(157, 77, 255, 0.38), transparent 65%),
        radial-gradient(900px 580px at 100% 8%, rgba(55, 232, 255, 0.3), transparent 64%),
        radial-gradient(760px 500px at 50% 115%, rgba(255, 63, 147, 0.22), transparent 72%),
        linear-gradient(145deg, #08061a 0%, #120f34 48%, #1a1447 100%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

@media (hover: none), (pointer: coarse) {
    body {
        cursor: auto;
    }

    a,
    button,
    .menu-btn,
    .nav-link,
    .btn-cta,
    .social-links a,
    .back-to-portfolio,
    .service-card {
        cursor: auto !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ======================
   スクロールプログレスバー
   ====================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--aqua), var(--primary), var(--accent), var(--warm), var(--highlight));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ======================
   カスタムカーソル
   ====================== */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(247, 37, 133, 0.5);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--highlight);
}

/* ======================
   ヘッダー
   ====================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: normal;
    color: #fff;
    background: linear-gradient(180deg, rgba(9, 7, 31, 0.72), rgba(9, 7, 31, 0));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff, var(--aqua), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(55, 232, 255, 0.28);
}

.logo-dot {
    color: var(--accent);
    font-size: 2.5rem;
    line-height: 0;
}

.menu-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    cursor: none;
    position: relative;
    z-index: 101;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1),
                opacity 0.4s;
}

.menu-btn.active span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ナビゲーションオーバーレイ */
.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(700px 420px at 12% 14%, rgba(255, 63, 147, 0.26), transparent 70%),
        radial-gradient(720px 420px at 90% 82%, rgba(55, 232, 255, 0.22), transparent 68%),
        linear-gradient(145deg, #09071f, #171147 58%, #24185d);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 90;
}

.nav-overlay.active {
    right: 0;
}

.nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    transition: color 0.3s;
    cursor: none;
    text-shadow: 0 0 14px rgba(157, 77, 255, 0.2);
}

.nav-link:hover {
    color: var(--aqua);
}

/* ======================
   Hero
   ====================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform;
}

.hero-bg::before {
    width: 82vw;
    height: 82vw;
    min-width: 520px;
    min-height: 520px;
    top: -42%;
    right: -14%;
    background: conic-gradient(from 0deg, rgba(55, 232, 255, 0.55), rgba(157, 77, 255, 0.5), rgba(255, 63, 147, 0.55), rgba(255, 183, 3, 0.45), rgba(55, 232, 255, 0.55));
    filter: blur(95px);
    opacity: 0.68;
    animation: heroAuraSpinA 20s ease-in-out infinite;
}

.hero-bg::after {
    width: 72vw;
    height: 72vw;
    min-width: 460px;
    min-height: 460px;
    bottom: -44%;
    left: -12%;
    background: conic-gradient(from 180deg, rgba(255, 63, 147, 0.45), rgba(255, 183, 3, 0.4), rgba(125, 255, 114, 0.38), rgba(55, 232, 255, 0.42), rgba(255, 63, 147, 0.45));
    filter: blur(88px);
    opacity: 0.62;
    animation: heroAuraSpinB 24s ease-in-out infinite reverse;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(96px);
    opacity: 0.52;
    mix-blend-mode: screen;
    animation: float 12s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, var(--aqua), var(--primary));
    top: -10%;
    left: -10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 40% 40%, var(--accent), var(--violet));
    bottom: 10%;
    right: -5%;
    animation-delay: -3s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 35% 35%, var(--warm), var(--highlight));
    bottom: -10%;
    left: 30%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes heroAuraSpinA {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    25% { transform: translate3d(-6%, 4%, 0) rotate(90deg) scale(1.08); }
    50% { transform: translate3d(-2%, 10%, 0) rotate(180deg) scale(1.16); }
    75% { transform: translate3d(5%, 6%, 0) rotate(270deg) scale(1.08); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg) scale(1); }
}

@keyframes heroAuraSpinB {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    30% { transform: translate3d(8%, -6%, 0) rotate(108deg) scale(1.1); }
    60% { transform: translate3d(2%, -12%, 0) rotate(216deg) scale(1.18); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
    padding: 0.1em 0;
}

.title-line .reveal-up {
    display: inline-block;
    transform: translateY(120%);
    opacity: 0;
}

.title-line .reveal-up.visible {
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line:nth-child(2) .reveal-up.visible {
    animation-delay: 0.15s;
}

.title-line:nth-child(3) .reveal-up.visible {
    animation-delay: 0.3s;
}

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

/* ストロークテキスト */
.stroke-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    position: relative;
}

.stroke-text::after {
    content: 'UNIMAGINABLE';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--aqua);
    -webkit-text-stroke: 0;
    clip-path: inset(0 100% 0 0);
    animation: textFill 2s cubic-bezier(0.7, 0, 0.3, 1) forwards 1s;
}

@keyframes textFill {
    to { clip-path: inset(0 0 0 0); }
}

/* グラデーションテキスト */
.gradient-text {
    background: linear-gradient(135deg, var(--aqua), var(--primary), var(--accent), var(--warm), var(--highlight), var(--violet));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #efeafe;
    text-shadow: 0 0 14px rgba(157, 77, 255, 0.22);
    margin-bottom: 2.5rem;
}

/* CTAボタン */
.btn-cta {
    display: inline-block;
    position: relative;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--aqua));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s,
                filter 0.3s;
    z-index: 2;
}

.btn-cta span {
    position: relative;
    z-index: 1;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--warm), var(--highlight));
    transition: left 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 0;
}

.btn-cta:hover::before {
    left: 0;
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 63, 147, 0.45), 0 0 28px rgba(55, 232, 255, 0.35);
    filter: saturate(1.2);
}

.btn-cta--large {
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #d8d2f6;
}

/* Hero内のボタンは下部マージンを追加 */
.hero .btn-cta {
    margin-bottom: 0rem;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: -6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ======================
   共通セクション
   ====================== */
.section {
    padding: var(--padding-section) 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* セクションラベル */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

.label-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, var(--aqua), var(--accent), var(--warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
}

.label-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.label-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(55, 232, 255, 0.9), rgba(157, 77, 255, 0.1), transparent);
}

/* ======================
   About
   ====================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-weight: 900;
    text-shadow: 0 0 18px rgba(55, 232, 255, 0.12);
}

.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 40%;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #d7d1f2;
    line-height: 2;
}

.about-visual {
    position: relative;
}

.blob-image {
    width: 100%;
    height: 400px;
    background: url('../images/about-blob.jpg') center/cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 8s infinite alternate;
    position: relative;
    overflow: hidden;
}

.blob-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 91, 255, 0.35), rgba(255, 63, 147, 0.38), rgba(55, 232, 255, 0.28));
}

.blob-frame {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(55, 232, 255, 0.75);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 8s infinite alternate;
    animation-delay: -1s;
    opacity: 0.5;
}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
}

/* ======================
   Services
   ====================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(157, 77, 255, 0.38);
    padding: 3rem 2rem 2rem;
    border-radius: var(--border-radius);
    text-align: left;
    overflow: hidden;
    cursor: none;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 10px 26px rgba(10, 6, 40, 0.35);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: rgba(55, 232, 255, 0.55);
    box-shadow: 0 18px 36px rgba(255, 63, 147, 0.18), 0 0 24px rgba(55, 232, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(55, 232, 255, 0.24), rgba(157, 77, 255, 0.16) 40%, transparent 68%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.18);
    text-shadow: 0 0 14px rgba(55, 232, 255, 0.2);
    line-height: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--aqua), var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    background: linear-gradient(120deg, #fff, #e3ddff 40%, #c8fff2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.card-arrow {
    margin-top: 1.5rem;
    color: var(--aqua);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.service-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ======================
   Marquee
   ====================== */
.marquee-section {
    padding: 3rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-reverse {
    animation-direction: reverse;
    margin-top: 1rem;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.36);
    white-space: nowrap;
    padding: 0 1rem;
    transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.marquee-content span:hover {
    color: var(--aqua);
    -webkit-text-stroke: 0px;
}

.marquee-dot {
    font-size: 0.65rem !important;
    color: var(--accent) !important;
    -webkit-text-stroke: 0 !important;
    -webkit-text-fill-color: var(--accent);
    padding: 0 0.5rem !important;
}

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

/* ======================
   Contact
   ====================== */
.contact {
    text-align: center;
}

.contact-container {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(157, 77, 255, 0.35);
    box-shadow: 0 12px 34px rgba(9, 7, 31, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius);
    padding: 6rem 2rem;
    overflow: hidden;
}

.contact-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: floatShape 6s ease-in-out infinite;
}

.fs-1 {
    width: 200px;
    height: 200px;
    background: var(--aqua);
    filter: blur(80px);
    top: -50px;
    left: -50px;
    opacity: 0.3;
}

.fs-2 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    filter: blur(60px);
    bottom: -30px;
    right: -30px;
    opacity: 0.2;
    animation-delay: -2s;
}

.fs-3 {
    width: 100px;
    height: 100px;
    background: var(--violet);
    filter: blur(50px);
    top: 50%;
    right: 20%;
    opacity: 0.15;
    animation-delay: -4s;
}

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #fff, var(--aqua), var(--accent), var(--warm));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(255, 63, 147, 0.3));
}

.contact p {
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: #ddd8f7;
    position: relative;
    z-index: 1;
}

/* ======================
   Footer
   ====================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(157, 77, 255, 0.3);
    background: linear-gradient(180deg, rgba(9, 7, 31, 0), rgba(9, 7, 31, 0.65));
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, var(--aqua), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #d8d2f6;
    margin-top: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a,
.social-links .is-demo-link {
    font-size: 1.3rem;
    color: #bfb8e6;
    transition: color 0.3s, transform 0.3s;
    cursor: none;
}

.social-links a:hover {
    color: var(--aqua);
    transform: translateY(-2px);
}

.social-links .is-demo-link {
    display: inline-flex;
    pointer-events: none;
    opacity: 0.66;
}

.social-note {
    margin-top: 0.9rem;
    text-align: right;
    font-size: 0.8rem;
    color: #c8c2ea;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.85rem;
    color: #c8c2ea;
}

.back-to-portfolio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #c8c2ea;
    transition: color 0.3s;
    cursor: none;
}

.back-to-portfolio:hover {
    color: var(--aqua);
}

/* ======================
   リビールアニメーション
   ====================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* スタガードアニメーション */
.about-text .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.about-text .reveal-up:nth-child(3) { transition-delay: 0.2s; }

.services-grid .reveal-up:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal-up:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal-up:nth-child(3) { transition-delay: 0.3s; }

/* ======================
   レスポンシブ
   ====================== */
@media (max-width: 768px) {
    :root {
        --padding-section: 5rem;
    }

    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-bg::before {
        width: 120vw;
        height: 120vw;
        top: -58%;
        right: -36%;
    }

    .hero-bg::after {
        width: 110vw;
        height: 110vw;
        bottom: -60%;
        left: -36%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        text-align: center;
    }

    .card-arrow {
        opacity: 1;
        transform: none;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .btn-cta,
    .nav-link,
    .social-links a,
    .back-to-portfolio,
    .menu-btn {
        cursor: auto;
    }

    .contact-container {
        padding: 4rem 1.5rem;
    }

    .nav-link {
        font-size: 2rem;
    }

    .social-note {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .stroke-text {
        -webkit-text-stroke-width: 1px;
    }

    .marquee-content span {
        font-size: 1.2rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    .shape,
    .hero-bg::before,
    .hero-bg::after,
    body::before {
        animation: none;
    }
}

body::before {
    content: '';
    position: fixed;
    inset: -40% -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 63, 147, 0.22) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 22%, rgba(55, 232, 255, 0.24) 0 1.6px, transparent 2.8px),
        radial-gradient(circle at 35% 70%, rgba(255, 183, 3, 0.2) 0 2.2px, transparent 3.4px),
        radial-gradient(circle at 68% 82%, rgba(125, 255, 114, 0.2) 0 1.8px, transparent 3px);
    opacity: 0.42;
    pointer-events: none;
    z-index: -2;
    animation: sparkleDrift 18s linear infinite;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.05));
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

@keyframes sparkleDrift {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(2%, -3%, 0) rotate(3deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
